/* ArashMovie design tokens — cinematic charcoal + gold accent.
   Shared visual language for Customer Web/PWA.
   html[data-theme] is the resolved appearance (dark|light). System mode is applied in JS. */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050607;
  --bg-elevated: #0a0c10;
  --bg-glow-1: #12151c;
  --bg-glow-2: #0b0d12;
  --surface: #11141b;
  --surface-solid: #11141b;
  --surface-elevated: #181c25;
  --surface-border: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f6f3ec;
  --text-primary: #f6f3ec;
  --text-secondary: rgba(246, 243, 236, 0.78);
  --text-dim: rgba(246, 243, 236, 0.78);
  --text-faint: rgba(246, 243, 236, 0.52);
  --muted: rgba(246, 243, 236, 0.78);
  --text-muted: rgba(246, 243, 236, 0.78);
  --icon: #f6f3ec;
  --on-accent: #120e06;
  --s0: #050607;
  --s1: #11141b;
  --s2: #181c25;
  --ink: #f6f3ec;
  --ink-2: rgba(246, 243, 236, 0.78);
  --ink-3: rgba(246, 243, 236, 0.52);
  --hairline: rgba(255, 255, 255, 0.07);
  --accent: #e8c27a;
  --accent-hover: #f6e2b0;
  --accent-muted: rgba(232, 194, 122, 0.14);
  --accent-soft: rgba(232, 194, 122, 0.34);
  --accent-active: #f6e2b0;
  --accent-2: #e8c27a;
  --accent-strong: #f6e2b0;
  --accent-gradient: linear-gradient(135deg, #f6e2b0 0%, #e8c27a 48%, #c4953d 100%);
  --movie-gradient: linear-gradient(135deg, #5b9fd4 0%, #3d7eb8 100%);
  --series-gradient: linear-gradient(135deg, #e8c27a 0%, #c4953d 100%);
  --gold: #e8c27a;
  --success: #3dba7e;
  --warn: #e8c27a;
  --warning: #e8c27a;
  --danger: #e06b7c;
  --error: #e06b7c;
  --info: #5b9fd4;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --shadow-1: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 10px 28px rgba(0, 0, 0, 0.34);
  --motion-fast: 0.12s ease;
  --motion-normal: 0.2s ease;
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --text-sm: 12px;
  --text-md: 14px;
  --text-lg: 18px;
  --line: 1.5;
  --glass-bg: rgba(14, 16, 22, 0.62);
  --glass-bg-strong: rgba(8, 9, 13, 0.86);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(246, 226, 176, 0.2);
  --glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(246, 226, 176, 0.12);
  --glass-blur: 16px;
  --glass-text: #f6f3ec;
  --glass-active: rgba(232, 194, 122, 0.22);
  --nav-glass: rgba(8, 9, 13, 0.9);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-elevated: #ffffff;
  --bg-glow-1: #ebe6dc;
  --bg-glow-2: #e8e2d6;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-elevated: #f7f4ee;
  --surface-border: #ddd4c4;
  --border: #ddd4c4;
  --text: #14110c;
  --text-primary: #14110c;
  --text-secondary: #2a2418;
  --text-dim: #2a2418;
  --text-faint: #3a3224;
  --muted: #2a2418;
  --text-muted: #2a2418;
  --icon: #14110c;
  --on-accent: #1a1408;
  --s0: #f4f1ea;
  --s1: #ffffff;
  --s2: #f7f4ee;
  --ink: #14110c;
  --ink-2: #2a2418;
  --ink-3: #3a3224;
  --hairline: rgba(28, 24, 16, 0.14);
  --accent: #b8892f;
  --accent-hover: #9a7224;
  --accent-muted: rgba(184, 137, 47, 0.14);
  --accent-soft: rgba(184, 137, 47, 0.24);
  --accent-active: #d4a84a;
  --accent-2: #b8892f;
  --accent-strong: #9a7224;
  --accent-gradient: linear-gradient(135deg, #e8c27a 0%, #b8892f 100%);
  --gold: #b8892f;
  --success: #1f8a58;
  --warn: #8a7310;
  --warning: #8a7310;
  --danger: #c43b54;
  --error: #c43b54;
  --info: #2d6fa0;
  --shadow-1: 0 4px 16px rgba(28, 24, 16, 0.08);
  --shadow-2: 0 10px 28px rgba(28, 24, 16, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.64);
  --glass-bg-strong: rgba(255, 255, 255, 0.86);
  --glass-border: rgba(28, 24, 16, 0.14);
  --glass-highlight: rgba(232, 194, 122, 0.55);
  --glass-shadow: 0 6px 18px rgba(28, 24, 16, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --glass-blur: 14px;
  --glass-text: #14110c;
  --glass-active: rgba(184, 137, 47, 0.18);
  --nav-glass: rgba(247, 244, 238, 0.94);
}

/* Tokens: webapp/tokens.css (linked first). Keep aliases used by older rules. */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Light surfaces only. Palette tokens live in tokens.css. */
html[data-theme="light"] body {
  background:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(28, 33, 48, 0.04), transparent 60%),
    var(--bg);
}

html[data-theme="light"] .card {
  background-color: var(--surface-solid);
  box-shadow: var(--shadow-1);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] button.secondary,
html[data-theme="light"] button.icon-btn {
  background-color: var(--surface-elevated);
}

html[data-theme="light"] .bg-vignette {
  background: radial-gradient(ellipse at center, transparent 42%, rgba(206, 211, 235, 0.22) 100%);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

html[dir="ltr"] body {
  direction: ltr;
}

.dir-auto,
.poster-title,
#detail-title,
#detail-title-fa,
#music-title,
#music-artist {
  unicode-bidi: plaintext;
  text-align: start;
}

.dir-ltr,
.tech-id,
input[type="tel"],
input[type="url"],
input[type="email"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

.card,
.poster-info,
.modal-info,
.field,
.poster-title {
  min-width: 0;
  max-width: 100%;
}

/* Shared viewport gutters. Existing page layouts keep their own grids. */
@media (min-width: 1280px) {
  #screen-app { max-width: 1240px; }
}

@media (min-width: 1440px) {
  :root { --edge: clamp(20px, 4vw, 48px); }
}

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  /* A static color wash across the whole viewport (not just behind the mobile-width
     content column) so wide desktop windows don't show flat black side gutters —
     the animated glow blobs below add extra movement/brightness on top of this. */
  background:
    radial-gradient(ellipse 90% 60% at 15% -10%, rgba(91, 159, 212, 0.08), transparent 60%),
    radial-gradient(ellipse 90% 60% at 100% 110%, rgba(28, 34, 48, 0.55), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before, body::after {
  content: "";
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
  animation: driftGlow 22s ease-in-out infinite;
}

body::before {
  background: var(--bg-glow-1);
  top: -20vw;
  right: -15vw;
}

body::after {
  background: var(--bg-glow-2);
  bottom: -25vw;
  left: -20vw;
  animation-delay: -11s;
  animation-direction: alternate-reverse;
}

.bg-glow-3 {
  content: "";
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
  background: var(--bg-glow-1);
  top: 35vh;
  left: -12vw;
  animation: driftGlow 26s ease-in-out infinite;
  animation-delay: -6s;
}

.bg-glow-4 {
  content: "";
  position: fixed;
  width: 36vw;
  height: 36vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  z-index: -1;
  pointer-events: none;
  background: var(--gold);
  bottom: 5vh;
  right: -10vw;
  animation: driftGlow 30s ease-in-out infinite;
  animation-delay: -18s;
}

/* Soft dark edges so the glow blobs read as ambient cinema light rather than
   flat color patches, and content stays readable at the viewport edges. */
.bg-vignette {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(3, 4, 8, 0.55) 100%);
}

/* Very subtle film-grain texture (inline SVG noise, no external asset) to keep
   the dark background from looking like a flat, dead-flat gradient. */
.bg-grain {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes driftGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4vw, 3vw) scale(1.08); }
  66% { transform: translate(-3vw, -2vw) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before, body::after, .bg-glow-3, .bg-glow-4 {
    animation: none;
  }
}

.screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 100px 16px;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hidden {
  display: none !important;
}

h1 {
  font-size: 21px;
  font-weight: 800;
  margin: 8px 0 4px 0;
  letter-spacing: -0.2px;
}

p.subtitle {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0 0 22px 0;
}

/* ---------- surfaces ---------- */
.card {
  background-color: var(--surface-solid);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.15s ease;
}

.card:active {
  transform: scale(0.985);
}

/* ---------- inputs ---------- */
input, textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

input::placeholder, textarea::placeholder {
  color: var(--text-faint);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.07);
}

/* Keyboard users need a focus signal just as clear as the touch feedback. */
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 82%, white);
  outline-offset: 3px;
}

input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- buttons ---------- */
button {
  width: 100%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: var(--shadow-1);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

button:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  box-shadow: none;
}

button.icon-btn {
  width: auto;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 0;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-dim);
  box-shadow: none;
  min-height: 44px;
  min-width: 44px;
}

button.icon-btn:active {
  transform: scale(0.94);
}

/* Progressive disclosure for secondary/advanced blocks. Do not wrap primary CTAs. */
.advanced-disclosure {
  border-top: 1px solid var(--border);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
}

.advanced-disclosure > summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: var(--text-md);
  font-weight: 600;
  list-style: none;
}

.advanced-disclosure > summary::-webkit-details-marker {
  display: none;
}

.advanced-disclosure > summary:focus-visible {
  outline: 3px solid rgba(245, 139, 193, 0.92);
  outline-offset: 3px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-row--compact {
  padding: 10px 14px;
}

.search-row--compact input {
  border: none;
  background: transparent;
  padding: 6px 0;
}

.search-row input {
  flex: 1;
  min-width: 0;
}

.genre-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ---------- top bar ---------- */
/* Frosted glass rather than a painted purple band: the app's own background glow
   shows through it, so the bar reads as part of the page instead of a stripe sitting
   on top of it. The tint is deliberately faint — the previous 0.28/0.22/0.24 gradient
   was strong enough to fight the posters for attention on every screen. */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 -16px 14px -16px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(26, 29, 36, 0.82);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--surface-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Scrolled state only deepens the glass a little and adds a lift shadow — enough to
   separate it from content passing underneath without becoming a solid slab. */
.top-bar.scrolled {
  background: rgba(20, 22, 28, 0.92);
  border-bottom-color: var(--surface-border);
  box-shadow: var(--shadow-2);
}

/* Slides up out of view while scrolling down through the catalog, returns on the
   first upward scroll — see onScroll() in app.js. */
.top-bar.bar-hidden {
  transform: translateY(-100%);
}

.top-bar {
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .top-bar {
    transition: none;
  }
  .top-bar.bar-hidden {
    transform: none;
  }
}

/* The logo is a <button> so tapping it goes home, but it must not look like one:
   strip the browser's chrome and the app's own primary-button styling (which is why
   .brand joins the :not() list on the primary rule above). */
.top-bar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  /* The bar is a flex row; without this the brand refuses to go below its
     min-content width and pushes whatever follows it off the edge instead. */
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  min-height: 0;
  text-align: inherit;
}

.top-bar .brand:active .brand-icon {
  transform: scale(0.94);
}

.top-bar .brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.top-bar .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(245, 139, 193, 0.4);
  transition: transform 0.12s ease;
}

.top-bar .brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-bar .app-name {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--text) 25%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Logout is a rare action that was taking a full-size labelled pill in the most
   valuable strip of the screen. Same tap target (36px), a fraction of the weight. */
#logout-button {
  /* Never shrink: as a plain flex item it was being squeezed from 44px down to
     24px, well under the minimum tap target. */
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* Drawn as an inline SVG rather than the "⏻" (U+23FB) character it used to be: that
   glyph is missing from Vazirmatn and from the default Android system fonts, so the
   button rendered as an empty box on phones. */
#logout-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 0.12s ease;
}

#logout-button:active {
  background: rgba(255, 107, 129, 0.16);
  border-color: rgba(255, 107, 129, 0.35);
}

#logout-button:active svg {
  stroke: var(--danger);
}

/* The shop's main selling point. It spent a while on a full-width strip of its own
   because the sentence it used to carry ("تمام فیلم‌ها بدون سانسور هستن") could not
   share the bar with the logo and the logout button on any phone. Cut to two words
   it fits in the masthead again — see the redesign layer at the end of this file. */
.uncensored-badge {
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  color: #ffe9b0;
  background: linear-gradient(135deg, rgba(255, 202, 75, 0.22) 0%, rgba(255, 107, 214, 0.18) 100%);
  border: 1px solid rgba(255, 202, 75, 0.45);
  box-shadow: 0 2px 12px rgba(255, 202, 75, 0.16);
}

@media (max-width: 420px) {
  .uncensored-badge {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* ---------- person (director/actor) filter ---------- */
.person-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px 0;
  padding: 9px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(245, 139, 193, 0.2) 0%, rgba(255, 107, 214, 0.14) 100%);
  border: 1px solid rgba(245, 139, 193, 0.45);
}

.person-filter-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-filter-clear {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--surface-border);
  color: var(--text);
  box-shadow: none;
}

/* ---------- detail modal: cast & director ---------- */
.detail-people {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0 2px;
}

.people-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.people-label {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-faint);
}

.people-names {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 9px;
  min-width: 0;
}

/* Compact text actions keep long cast lists readable.  They remain semantic buttons
   because tapping a name filters the library, but no longer consume card-sized space. */
.person-chip {
  width: auto;
  margin: 0;
  min-height: 28px;
  padding: 4px 1px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(221, 214, 255, 0.20);
  background: transparent;
  border: 0;
  border-bottom: 1px dotted rgba(164, 139, 255, 0.42);
  box-shadow: none;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.person-chip:active {
  color: #ffffff;
  background: rgba(245, 139, 193, 0.14);
  border-color: var(--accent);
}

.person-chip:focus-visible {
  outline: 2px solid #9b7cff;
  outline-offset: 2px;
}

/* ==================== cart, checkout, orders ==================== */


















/* Picking seasons and episodes by tapping them. The box customers used to type
   into produced answers the shop could not act on, so what the shop really has is
   offered as things to tap instead.

   The chips are deliberately small: a series like زخم کاری can put thirty numbers
   on screen at once, and at the size these started they pushed the price and the
   remove button off the bottom of a phone. */














/* One season of an episode-priced series, with its own episodes inside it. */














/* The episodes stay out of the way until the season is being worked on, so a show
   with four seasons is four short rows rather than a wall of numbers. */




/* Dubbed or subtitled, on the titles that have both. */






/* Nothing chosen yet on a title that needs it - checkout stops here, so it says so
   rather than failing silently when the button is pressed. */












/* No stepper when the choice is made by tapping - the count follows the taps. */








/* Sticks to the bottom of the cart list rather than the viewport: the list is
   short enough to scroll past, and a floating bar would cover the last title. */


/* «حضوری می‌گیرم» — the one control on this screen that is allowed to move. A slow
   breathing glow rather than a hard blink: it catches the eye across the room at the
   counter without turning the cart into something that flashes at you while you read. */


/* The pulse rides on a pseudo-element's opacity and transform, both of which the
   compositor animates on its own thread. Animating box-shadow instead — which is
   how this started — repainted the button on every single frame. */




@keyframes pickupPulse {
  0%   { opacity: .85; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.06); }
  100% { opacity: 0;   transform: scale(1.06); }
}
/* Anyone who has asked their phone to stop animating things gets the colour and
   none of the pulse — it is decoration, not information. */
@media (prefers-reduced-motion: reduce) {
  .pickup-btn::after { animation: none; }
}

/* Both ways of receiving an order sit on one line: they are two answers to the same
   question, and stacked full-width they read as a primary action followed by an
   afterthought. Smaller than a standalone button for the same reason — this is a
   choice, not a call to action. */






/* Under about 330px the two labels stop fitting side by side and would wrap into
   ragged two-line buttons; there they stack rather than break. */
@media (max-width: 330px) {
  .checkout-choices { grid-template-columns: 1fr; }
}

/* The cart line: a small poster, then everything that was already there. */
















/* ---------- payment sheet ---------- */
.pay-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 202, 75, 0.1);
  border: 1px solid rgba(255, 202, 75, 0.32);
  font-size: 13px;
}

.pay-amount b {
  font-size: 20px;
  color: var(--gold);
}

.pay-label {
  margin: 12px 0 6px 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

.pay-card-status:empty,
.pay-card-list:empty {
  display: none;
}

.pay-card-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
}

/* Card numbers are read digit by digit off the screen while typing them into a
   banking app, so they get a monospaced face and wide tracking. */
.pay-card-details {
  min-width: 0;
}

.pay-card .pay-card-number {
  font-family: "Courier New", monospace;
  font-size: clamp(13px, 3.8vw, 17px);
  font-weight: 700;
  letter-spacing: clamp(0px, 0.18vw, 1px);
  overflow-wrap: anywhere;
  direction: ltr;
}

.pay-copy {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 999px;
}

.pay-holder {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.pay-note {
  margin: 8px 0 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--warn);
}

/* ---------- orders ---------- */
.orders-head {
  margin: 22px 0 10px 0;
  font-size: 15px;
  font-weight: 800;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  border-top: 1px dashed var(--surface-border);
}

.order-item-note {
  flex-basis: 100%;
  font-size: 11.5px;
  color: var(--text-dim);
}

.dl-link {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #34d17c 0%, #1f9e59 100%);
}

.order-badge--ok { background: rgba(52, 209, 124, 0.16); color: #6be0a0; }
.order-badge--warn { background: rgba(212, 195, 77, 0.16); color: var(--warn); }
.order-badge--bad { background: rgba(255, 107, 129, 0.16); color: var(--danger); }

.order-note, .order-reason {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.7;
}

.order-note { background: rgba(255, 255, 255, 0.05); color: var(--text-dim); }
.order-reason { background: rgba(255, 107, 129, 0.12); color: var(--danger); }

/* The "call us if nothing arrives" line on a paid, undelivered order. Quieter than
   .order-reason — it's reassurance, not an error — but it has to be findable at a
   glance by someone who has already started worrying. */
.order-contact {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.9;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.order-contact-phone {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  /* A phone number is dialled, so it stays a tap target on a phone. */
  min-height: 28px;
}

.order-contact-phone:hover,
.order-contact-phone:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- filter chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 2px 12px 2px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

/* Tightened from 8px/16px padding and 12px text: with seven categories these wrap
   onto two rows, and at the old size the header (bar + search + chips) took a third
   of the screen before a single poster was visible. */
.chip {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.chip:active {
  transform: scale(0.94);
}

.chip.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 139, 193, 0.38);
}

/* ---------- library grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.poster-card {
  background-color: #141622;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.poster-card:active {
  border-color: var(--accent);
  transform: scale(0.97);
}

.poster-tile {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
}

.poster-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-tile .kind-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.55);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.poster-tile .kind-badge.movie { background: var(--movie-gradient); }
.poster-tile .kind-badge.series { background: var(--series-gradient); }

/* A diagonal corner ribbon rather than a small pill: the IMDb score is the thing
   customers scan a grid of posters for, and a banner across the corner reads at a
   glance from across the shop. Clipped by the tile's own overflow, so the ends of
   the band are cut off by the poster edges exactly like a real ribbon.
   Top-LEFT because the kind badge ("فیلم"/"سریال") already owns the top right. */
.poster-tile .rating-badge {
  position: absolute;
  /* Sized as a share of the tile, not in pixels: posters render anywhere from ~90px
     wide in a home row to 130px in the grid, and a fixed 104px band swallowed half
     the small ones. In percentages the ribbon keeps the same proportion everywhere. */
  top: 9%;
  left: -21%;
  width: 82%;
  padding: 3px 0;
  text-align: center;
  transform: rotate(-45deg);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #2a1c00;
  background: linear-gradient(135deg, #ffd97a 0%, var(--gold) 45%, #e0a21a 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  /* The band sits above the poster image but below the tap overlay. */
  z-index: 2;
  pointer-events: none;
}

.poster-info {
  padding: 7px 8px 9px 8px;
}

.poster-title {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* The catalogue mixes Persian and Latin titles inside an RTL page. Left to inherit,
     a Latin title is treated as RTL text and the clamp's ellipsis lands at its visual
     start ("…itan The Last"), which reads as a broken string rather than a shortened
     one. plaintext makes each title take direction from its own first letter, so both
     scripts align on their natural side and truncate at their real end. */
  unicode-bidi: plaintext;
  text-align: start;
}

.poster-meta {
  font-size: 9.5px;
  color: var(--text-faint);
  margin-top: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  /* Holds its line even when a title has neither a year nor an audio badge, so those
     cards stop being visibly shorter than the ones beside them. */
  min-height: 16px;
}

.poster-meta > span:first-child {
  unicode-bidi: plaintext;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poster-reason {
  font-size: 10px;
  line-height: 1.3;
  color: var(--text-faint);
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-badge-group {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.audio-badge {
  flex: 0 0 auto;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.audio-badge.dubbed { background: rgba(52, 209, 124, 0.16); color: var(--success); }
.audio-badge.subtitled { background: rgba(75, 214, 255, 0.16); color: #7fe0ff; }
.audio-badge.original { background: rgba(255, 202, 75, 0.16); color: var(--gold); }

/* ---------- bottom nav ---------- */
/* Anchored to both edges instead of centred with a max-width, and the buttons share
   the space equally (flex: 1 1 0). Before this, each tab was sized by its own label,
   so the four came out 59/67/103/90px wide — visibly lopsided, and on a 375px phone
   they filled the pill to the last pixel with no breathing room. */
.tabs {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  right: 12px;
  max-width: 456px;
  margin: 0 auto;
  background: linear-gradient(120deg, rgba(24, 20, 46, 0.88) 0%, rgba(16, 18, 36, 0.86) 55%, rgba(32, 18, 42, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 4px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  z-index: 20;
}

.tabs button {
  /* Each tab takes only the width its own label needs, instead of an equal quarter
     of the bar. With equal columns the short labels ("درخواست", "کتابخانه") sat in
     oversized slots while the longest one ("سبد و سفارش‌ها") got cut off — sizing to
     content moves that slack to where it's actually needed. */
  flex: 0 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  font-size: 10px;
  box-shadow: none;
  border-radius: 999px;
  padding: 9px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease, background 0.18s ease;
}

/* Four Persian labels don't fit at 320px even sized to content, so the smallest
   phones trade padding and a little type size for whole words. */
@media (max-width: 340px) {
  .tabs button {
    padding: 9px 5px;
    font-size: 9.5px;
  }
}

.tabs button.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 139, 193, 0.45);
}

/* Content used to scroll right up against the floating bar. This fades the last few
   rows out behind it instead of letting posters collide with its edge. Height also
   covers the assistant-fab (the AI robot floating above the library tab), which
   otherwise sat outside this fade zone and visually collided with poster art
   (real-device QA, Redmi Note 13 Pro+, amm-shell-v183). */
.tabs::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(72px + var(--fab-clearance, 70px) + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 15%, transparent);
  pointer-events: none;
  z-index: -1;
}

/* ---------- status badges ---------- */
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.badge {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge.pending { background-color: rgba(212, 195, 77, 0.15); color: var(--warn); }
.badge.fulfilled { background-color: rgba(52, 209, 124, 0.15); color: var(--success); }
.badge.delivered { background-color: rgba(75, 214, 255, 0.15); color: #7fe0ff; }
.badge.cancelled { background-color: rgba(255, 107, 129, 0.15); color: var(--danger); }

.meta {
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 6px;
}

.empty-state {
  text-align: center;
  color: var(--text-faint);
  padding: 50px 20px;
  font-size: 13px;
}

.empty-state .empty-icon {
  font-size: 34px;
  margin-bottom: 10px;
  opacity: 0.6;
}

/* ---------- skeleton loaders ---------- */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.skeleton-card {
  border-radius: var(--radius-md);
  aspect-ratio: 2 / 3;
  background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.04) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- notify banner ---------- */
#notify-banner {
  background: linear-gradient(135deg, rgba(224,155,138,0.18), rgba(75,107,255,0.12));
  border: 1px solid rgba(245, 139, 193, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#notify-banner span {
  flex: 1;
}

#notify-banner button {
  width: auto;
  margin-top: 0;
  padding: 9px 16px;
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- toast ---------- */
#toast-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  pointer-events: none;
}

.toast {
  background: var(--surface-solid);
  border: 1px solid var(--surface-border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.25s ease;
  max-width: 400px;
}

.toast.success { border-color: rgba(52, 209, 124, 0.4); }
.toast.error { border-color: rgba(255, 107, 129, 0.4); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- login screen ---------- */
/* Centred rather than pinned to the top: the login screen is a short form on an
   otherwise empty page, so top-aligning it left a tall dead area underneath. */
#screen-login {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 40px;
}

.login-hero {
  text-align: center;
  margin-top: 0;
  margin-bottom: 26px;
}

.login-theme-toggle {
  width: auto;
  min-width: 44px;
  margin-inline: auto;
  margin-top: 10px;
}

.login-hero .logo-orb {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px auto;
  border-radius: 24px;
  overflow: hidden;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 34px rgba(245, 139, 193, 0.45);
  animation: orbGlow 3.2s ease-in-out infinite;
}

.login-hero .logo-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes orbGlow {
  0%, 100% { box-shadow: 0 12px 34px rgba(245, 139, 193, 0.45); }
  50% { box-shadow: 0 16px 46px rgba(255, 107, 214, 0.5); }
}

.login-hero h1 {
  font-family: "Vazirmatn", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* A soft halo behind the logo so it sits in its own pool of light rather than
   floating on flat background. */
.login-hero .logo-orb::after {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 139, 193, 0.35), transparent 65%);
  filter: blur(18px);
  z-index: -1;
}

.login-hero .logo-orb {
  position: relative;
  isolation: isolate;
}

.login-card {
  background: linear-gradient(160deg, rgba(28, 24, 52, 0.9), rgba(18, 20, 32, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 18px;
}

/* The two inputs sat flush against each other with nothing between them. */
.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
}

.field-optional {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 2px 7px;
  margin-right: 4px;
}

.field input {
  /* A phone number is Latin digits reading left-to-right even inside an RTL form. */
  text-align: right;
}

.field input:focus {
  box-shadow: 0 0 0 3px rgba(245, 139, 193, 0.18);
}

#login-button {
  margin-top: 6px;
  padding: 15px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(245, 139, 193, 0.35);
}

.login-error {
  color: var(--danger);
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

.login-error:empty {
  margin-top: 0;
}

.login-note {
  margin: 14px 0 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-faint);
}

/* ---------- pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 8px 0;
}

.page-btn {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  margin-top: 0;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  box-shadow: none;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-btn:not(:disabled):active {
  transform: scale(0.95);
}

.page-indicator {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1.6;
}

.page-indicator small {
  font-weight: 400;
  color: var(--text-faint);
}

/* ---------- title detail modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 8, 0.72);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  background-color: #141622;
  border: 1px solid var(--surface-border);
  border-radius: 22px 22px 0 0;
  padding: 18px 18px 26px 18px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

/* Deliberately louder than a normal secondary button: on a phone this is the only
   on-screen way out of a full-height modal, and at 12px dim-on-6%-white it read as
   decoration rather than a control. Solid surface, full-strength text, 40px tall so
   it clears the minimum touch target. */
.modal-close {
  width: auto;
  margin: 0 0 12px auto;
  display: block;
  min-height: 34px;
  background: rgba(255, 255, 255, 0.13);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.modal-close:active {
  background: rgba(255, 107, 129, 0.22);
  border-color: rgba(255, 107, 129, 0.55);
  color: var(--danger);
}

.modal-body {
  display: flex;
  gap: 14px;
}

.modal-poster {
  flex: 0 0 auto;
  width: 120px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
}

.modal-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  flex: 1;
  min-width: 0;
}

.modal-info h2 {
  font-size: 17px;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.title-fa {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin: -2px 0 6px 0;
}

.select-btn {
  margin-top: 16px;
  background: var(--accent-gradient);
  border: none;
  box-shadow: 0 8px 24px rgba(245, 139, 193, 0.4);
}

.select-btn.selected {
  background: linear-gradient(135deg, #34d17c, #1fa864);
  box-shadow: 0 6px 18px rgba(52, 209, 124, 0.3);
}

.select-hint {
  margin: 8px 0 0 0;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.fact-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.fact-chip--runtime { background: rgba(75, 214, 255, 0.12); border-color: rgba(75, 214, 255, 0.3); color: #7fe0ff; }
.fact-chip--episodes { background: rgba(245, 139, 193, 0.14); border-color: rgba(245, 139, 193, 0.32); color: var(--accent-active); }
.fact-chip--audio { background: rgba(52, 209, 124, 0.12); border-color: rgba(52, 209, 124, 0.3); color: #6be0a0; }
.fact-chip--rating { background: rgba(255, 202, 75, 0.14); border-color: rgba(255, 202, 75, 0.35); color: var(--gold); }
.fact-chip--genres { background: rgba(255, 107, 214, 0.12); border-color: rgba(255, 107, 214, 0.3); color: #ff9fe0; }
.fact-chip--quality { background: rgba(255, 154, 75, 0.13); border-color: rgba(255, 154, 75, 0.32); color: #ffb877; }
.fact-chip--country { background: rgba(120, 200, 255, 0.11); border-color: rgba(120, 200, 255, 0.28); color: #9dd3ff; }
.fact-chip-button {
  width: auto;
  min-height: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
}

.install-entry {
  margin-top: 17px;
}

.install-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(235, 233, 255, 0.72);
  font-size: 11px;
  white-space: nowrap;
}

.install-divider::before,
.install-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(158, 125, 255, 0.35));
}

.install-divider::after { transform: scaleX(-1); }

.install-entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.install-entry-button {
  min-width: 0;
  min-height: 61px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  text-align: right;
  border: 1px solid rgba(167, 137, 255, 0.28);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, rgba(130, 91, 244, 0.19), rgba(16, 19, 31, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.install-entry-button--ios {
  background: linear-gradient(145deg, rgba(56, 193, 234, 0.13), rgba(16, 19, 31, 0.82));
  border-color: rgba(102, 212, 242, 0.23);
}

.install-entry-button b,
.install-entry-button small { display: block; }
.install-entry-button b { font-size: 12px; line-height: 1.7; }
.install-entry-button small { font-size: 9px; color: rgba(232, 232, 245, 0.62); line-height: 1.45; }
.install-platform-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #8b63ff, #4c7bff);
  box-shadow: 0 6px 18px rgba(104, 80, 255, 0.32);
}
.install-entry-button--ios .install-platform-icon { background: linear-gradient(135deg, #56d2ee, #6377ff); }

/* The rest of the sprite is drawn with strokes; a platform mark is a solid shape.
   Sized a touch under its tile so the robot's antennae are not clipped. */
/* .ui-icon (further down this file) sets fill:none;stroke:currentColor for the
   outline icons. Matching both classes wins regardless of which rule comes first. */
.ui-icon.platform-mark {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: none;
}

/* «مشاهده تریلر» — offered under the Persian title, where a customer is already
   deciding. Deliberately quieter than «افزودن به سبد»: it is a way to make up your
   mind, not the action the shop is asking for. */
.detail-trailer-button {
  width: auto;
  margin-top: 8px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  color: #ffe6a6;
  background: rgba(255, 200, 88, 0.12);
  border: 1px solid rgba(255, 200, 88, 0.42);
  box-shadow: none;
}
.detail-trailer-button .ui-icon { width: 15px; height: 15px; stroke: #ffe6a6; }
.detail-trailer-button:active { transform: scale(0.97); }

/* Above the detail sheet it was opened from. */

.install-guide-overlay { z-index: 1200; }
.install-guide-sheet {
  max-width: 420px;
  padding: 23px 20px calc(22px + env(safe-area-inset-bottom));
  text-align: right;
  background: linear-gradient(155deg, #1b1830, #0d101a 72%);
  border-color: rgba(158, 125, 255, 0.42);
}
.install-guide-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 14px 0 12px auto;
  border-radius: 17px;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, #9b65ff, #416eff);
  box-shadow: 0 9px 27px rgba(103, 75, 255, 0.34);
}
.install-guide-kicker { margin: 0 0 3px; color: #bca4ff; font-size: 11px; font-weight: 800; }
.install-guide-sheet h2 { margin: 0 0 8px; font-size: 21px; }
.install-guide-lead { margin: 0 0 16px; color: rgba(245, 244, 255, 0.72); font-size: 12px; line-height: 1.9; }
.install-guide-steps { margin: 0; padding: 0; list-style: none; counter-reset: install-step; }
.install-guide-steps li {
  counter-increment: install-step;
  position: relative;
  margin-bottom: 9px;
  padding: 11px 45px 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(249, 248, 255, 0.9);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11.5px;
  line-height: 1.8;
}
.install-guide-steps li::before {
  content: counter(install-step);
  position: absolute;
  right: 11px;
  top: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 9px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #8f5cff, #536eff);
}
.install-guide-download {
  display: block;
  margin-top: 15px;
  padding: 13px 16px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #945cff, #3f70ff);
  box-shadow: 0 10px 28px rgba(79, 72, 255, 0.28);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}
.install-guide-download.hidden { display: none; }
.install-guide-footnote { margin: 11px 2px 0; color: rgba(230, 230, 244, 0.55); font-size: 10px; line-height: 1.75; text-align: center; }

@media (max-width: 370px) {
  .install-entry-actions { grid-template-columns: 1fr; }
}

.home-install-card {
  position: relative;
  overflow: hidden;
  margin: 30px 3px calc(108px + env(safe-area-inset-bottom));
  padding: 19px 17px 17px;
  border: 1px solid rgba(155, 116, 255, 0.3);
  border-radius: 23px;
  background:
    radial-gradient(circle at 92% 0%, rgba(152, 87, 255, 0.22), transparent 46%),
    linear-gradient(145deg, rgba(27, 24, 51, 0.96), rgba(11, 15, 27, 0.97));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.05);
}

.home-install-copy { text-align: center; }
.home-install-badge {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid rgba(192, 164, 255, 0.32);
  border-radius: 999px;
  color: #d7c7ff;
  background: rgba(137, 91, 255, 0.12);
  font-size: 9px;
  font-weight: 800;
}
.home-install-copy h2 { margin: 8px 0 4px; color: #fff; font-size: 17px; font-weight: 900; }
.home-install-copy p { margin: 0; color: rgba(231, 232, 244, 0.65); font-size: 10.5px; line-height: 1.8; }
.home-install-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; }
.home-install-button {
  min-width: 0;
  min-height: 57px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(174, 143, 255, 0.28);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(140deg, rgba(137, 88, 255, 0.24), rgba(26, 31, 49, 0.8));
  text-align: right;
}
.home-install-button--ios { border-color: rgba(99, 210, 242, 0.25); background: linear-gradient(140deg, rgba(68, 193, 232, 0.17), rgba(26, 31, 49, 0.8)); }
.home-install-button b, .home-install-button small { display: block; }
.home-install-button b { font-size: 11.5px; line-height: 1.7; }
.home-install-button small { color: rgba(235, 235, 247, 0.57); font-size: 9px; }
.home-install-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #9a62ff, #4775ff);
  box-shadow: 0 6px 16px rgba(96, 69, 255, 0.27);
}
.home-install-button--ios .home-install-icon { background: linear-gradient(135deg, #50cce9, #6176ff); }

@media (max-width: 370px) {
  .home-install-actions { grid-template-columns: 1fr; }
}
.fact-chip-button:active { transform: scale(0.96); }

.modal-poster.zoomable {
  cursor: zoom-in;
  position: relative;
}

.modal-poster.zoomable::after {
  content: "🔍";
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(3, 4, 8, 0.55);
  border-radius: 999px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ---------- poster lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 4, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-overlay .modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  margin: 0;
}

/* ---------- request form ---------- */
.tab-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Inputs carry no margin of their own, so the title box and the notes box sat
   edge to edge and read as a single control. */


/* The version question. Deliberately outside .request-form: that becomes a two
   column grid on a wide screen, and a chip row inside it would be pulled apart. */

.version-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.version-chips .chip {
  padding: 9px 16px;
  font-size: 12.5px;
}

/* Heading above a list that follows a card ("درخواست‌های من", "پلن‌ها"). */
.section-head {
  font-size: 14px;
  font-weight: 800;
  margin: 22px 2px 12px;
  color: var(--text-dim);
}

/* ---------- VPN tab ---------- */
.vpn-lead {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-dim);
}

.vpn-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.vpn-features span {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-dim);
}

.vpn-plans {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vpn-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vpn-plan-head b {
  font-size: 16px;
  font-weight: 800;
}

.vpn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.vpn-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  white-space: nowrap;
}

.vpn-price {
  margin-top: 8px;
  font-size: 19px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vpn-note b {
  font-size: 13.5px;
}

.vpn-note .meta {
  line-height: 1.9;
}

/* ==================== home screen (hero + rows) ==================== */
/* Shown instead of the flat paged grid whenever nothing is filtered — see
   isHomeMode() in app.js. */

.hero {
  margin: 4px 0 20px;
}

.hero-track {
  display: flex;
  direction: rtl;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-height: 210px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}

/* The poster itself, blown up and blurred, is the banner's backdrop — no separate
   wide artwork is stored, and a blurred poster reads as intentional atmosphere. */
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.4);
  transform: scale(1.25);
  opacity: 0.55;
  z-index: -1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 8, 13, 0.94) 8%, rgba(7, 8, 13, 0.55) 60%, rgba(7, 8, 13, 0.85));
  z-index: -1;
}

.hero-content {
  display: flex;
  gap: 14px;
  padding: 16px;
  align-items: center;
}

.hero-poster {
  flex: 0 0 auto;
  width: 96px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The tile a hero slide falls back to when its title has no poster yet — it holds
   the same shape so the slide doesn't reflow, and centres the initial the way the
   grid cards do. */
.hero-poster:not(:has(img)) {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}

.hero-text {
  min-width: 0;
  flex: 1;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.hero-text h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.hero-text p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cta {
  width: auto;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 8px 22px rgba(245, 139, 193, 0.4);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.hero-dot.active {
  width: 18px;
  background: var(--accent);
}

.home-row {
  margin-bottom: 22px;
}

.row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.row-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.row-more {
  width: auto;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  background: transparent;
  border: none;
  box-shadow: none;
}

.row-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.row-scroller::-webkit-scrollbar {
  display: none;
}

/* A row card is a fixed-width version of the same grid card so both stay in sync
   visually — see posterCardHtml() in app.js, which builds both. */
.poster-card--row {
  flex: 0 0 120px;
  width: 120px;
  scroll-snap-align: start;
}

.hero-skeleton,
.row-skeleton {
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, var(--surface) 8%, var(--surface-elevated) 18%, var(--surface) 33%);
  background-color: var(--surface);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.hero-skeleton {
  height: 210px;
  margin-bottom: 22px;
}

.row-skeleton {
  height: 190px;
  margin-bottom: 22px;
}

/* ==================== sort picker ==================== */
.modal-sheet--short {
  max-height: 70vh;
}

.sort-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  color: var(--text);
  box-shadow: none;
}

.sort-option.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

#sort-button.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
}

/* ==================== detail modal: prev/next ==================== */
.modal-body {
  position: relative;
}

/* These step through the list the title was opened from — an easy thing to miss
   entirely when they're small, dark and low-contrast against a dark modal. Now a
   44px accent-tinted disc with a coloured ring and glow, so they read as the
   interactive controls they are rather than as chrome. */
.detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(245, 139, 193, 0.42) 0%, rgba(7, 9, 15, 0.48) 100%);
  border: 1.5px solid rgba(245, 139, 193, 0.55);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 139, 193, 0.28);
  backdrop-filter: blur(6px);
}

/* The base rule's translateY has to be repeated here — the global
   `button:active { transform: scale(...) }` would otherwise replace it outright and
   drop the button half its own height on every tap. */
.detail-nav:active {
  transform: translateY(-50%) scale(0.92);
  background: linear-gradient(140deg, rgba(245, 139, 193, 0.58) 0%, rgba(7, 9, 15, 0.55) 100%);
}

.detail-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-nav--prev {
  right: -8px;
}

.detail-nav--next {
  left: -8px;
}

.detail-nav:disabled {
  opacity: 0.28;
  box-shadow: none;
  background: rgba(20, 22, 34, 0.9);
  border-color: var(--surface-border);
}

.detail-position {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  margin-top: 14px;
}

/* ==================== detail modal: similar titles ==================== */
.detail-similar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--surface-border);
}

.detail-similar .row-head h3 {
  font-size: 14px;
}

/* ---------- cancel request ---------- */
/* Deliberately understated: withdrawing a request is a legitimate action but not the
   one the card is about, so it reads as a quiet secondary control until pressed. */








.order-card {
  max-width: 100%;
  overflow-wrap: anywhere;
}



.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cancel-order-btn,
.order-actions .select-btn {
  min-height: 44px;
  min-width: 44px;
}



.status-timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted, #9aa0b4);
  font-size: 11px;
  font-weight: 700;
}

.status-timeline li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.status-timeline li:not(:last-child)::after {
  content: "←";
  display: inline-block;
  margin: 0 6px;
  opacity: 0.55;
  font-weight: 500;
}

.status-timeline .is-done { color: var(--text-secondary, #c5c8d6); }
.status-timeline .is-current { color: var(--text-primary, #f4f2ff); font-weight: 800; }

.order-card.is-highlighted {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.order-delivery { font-weight: 700; }

/* Shown instead of the فصلی/قسمتی buttons when the category has only one way of
   being priced (see isEpisodePriced in app.js). */


/* ==================== 2026 cinematic product layer ====================
   The catalogue is visually rich already, so chrome stays calm and lets posters
   lead. Tokens below keep glass, elevation and interaction states consistent. */
:root {
  --content-max: 1180px;
  --edge: clamp(16px, 3vw, 36px);
  --surface-raised: rgba(22, 24, 39, 0.84);
  --surface-hover: rgba(245, 139, 193, 0.12);
  --ring: #b8a8ff;
  --shadow-raised: 0 20px 48px rgba(0, 0, 0, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

.skip-link {
  position: fixed;
  top: 10px;
  right: 50%;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 12px;
  color: #fff;
  background: #4338ca;
  transform: translate(50%, -180%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translate(50%, 0);
}

button,
[role="button"] {
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

#app-main:focus { outline: none; }

input,
textarea,
button {
  min-height: 44px;
}

button {
  transition: transform 180ms var(--ease-out), background-color 180ms ease,
    border-color 180ms ease, box-shadow 180ms var(--ease-out), color 180ms ease;
}

button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: not-allowed; }

.card {
  background: var(--surface-solid);
  box-shadow: var(--shadow-raised);
}

.search-row--compact {
  position: sticky;
  /* Sticks directly under the top bar. Both this offset and the bar's own height
     come from --topbar-h (declared with the .top-bar rules), so the two cannot drift
     apart the way three separately hardcoded per-breakpoint numbers used to. The
     variable already carries the safe-area inset, so no env() is added again here.
     The 3px overlap hides a hairline gap while scrolling. */
  top: calc(var(--topbar-h, 69px) - 3px);
  z-index: 12;
  margin-top: 4px;
  padding: 8px;
  border-color: rgba(232, 196, 186, 0.16);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.search-row--compact:focus-within {
  border-color: rgba(232, 196, 186, 0.72);
  box-shadow: 0 14px 34px rgba(10, 9, 28, 0.42), 0 0 0 1px rgba(232, 196, 186, 0.18);
}

.search-row--compact input {
  font-size: 15px;
  min-height: 44px;
}

.genre-btn {
  min-height: 44px;
  padding-inline: 12px;
}

.top-bar {
  margin-inline: calc(var(--edge) * -1);
  padding-inline: var(--edge);
  border-radius: 0 0 24px 24px;
}

#logout-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.poster-card {
  background: var(--surface-raised);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .poster-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232, 196, 186, 0.58);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(245, 139, 193, 0.1);
  }

  .poster-card:hover .poster-tile img {
    transform: scale(1.045);
  }
}

.poster-tile img {
  transition: transform 380ms var(--ease-out);
}

.poster-info { padding: 10px 10px 11px; }
.poster-title { font-size: 12px; }
.poster-meta { font-size: 10px; margin-top: 4px; }

.tabs {
  max-width: min(720px, calc(100vw - 24px));
  min-height: 64px;
  gap: 4px;
  padding: 5px;
  border-radius: 22px;
  background: linear-gradient(125deg, rgba(26, 23, 49, 0.9), rgba(14, 17, 32, 0.9));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(232, 196, 186, 0.05);
}

.tabs button {
  flex: 1 1 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 16px;
  font-size: 11px;
  overflow: visible;
}

.tabs button svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabs button.active {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 8px 20px rgba(201, 120, 106, 0.42);
}

.tabs button:active { transform: scale(0.96); }

@media (max-width: 420px) {
  .tabs button { font-size: 9.5px; gap: 4px; }
  .tabs button svg { width: 16px; height: 16px; }
}

@media (min-width: 680px) {
  #screen-app {
    max-width: var(--content-max);
    padding-inline: var(--edge);
    padding-bottom: 110px;
  }

  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .poster-title { font-size: 13px; }
  .poster-meta { font-size: 10.5px; }
  .home-row { margin-bottom: 32px; }
  /* offset comes from --topbar-h — see the base .search-row--compact rule */
}

@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .top-bar { margin-bottom: 22px; }
  .top-bar .app-name { font-size: 22px; }
  .tabs { bottom: calc(20px + env(safe-area-inset-bottom)); }
}

html[data-theme="light"] {
  --surface-raised: rgba(255, 255, 255, 0.92);
  --surface-hover: rgba(67, 56, 202, 0.1);
  --ring: #4338ca;
  --shadow-raised: 0 18px 42px rgba(42, 48, 83, 0.13);
}

html[data-theme="light"] .card { background: var(--surface-solid); }
html[data-theme="light"] .tabs { background: rgba(251, 252, 255, 0.86); border-color: rgba(45, 51, 90, 0.14); }
html[data-theme="light"] .tabs button { color: #47506f; }
html[data-theme="light"] .tabs button.active { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .poster-card,
  .poster-tile img,
  button,
  .skip-link { transition: none !important; }
}

/* ==================== Arash Club premium interface ====================
   A calm cinematic shell with vivid accents, crisp hierarchy and lightweight
   motion. The product stays entirely local: no remote fonts, icon kits or images. */
:root {
  --bg: #14161c;
  --surface-solid: #1e222b;
  --surface-soft: rgba(30, 34, 43, 0.76);
  --surface-raised: rgba(38, 43, 54, 0.9);
  --surface-border: #323846;
  --surface-border-strong: color-mix(in srgb, var(--accent) 32%, transparent);
  --cyan: #5b9fd4;
  --text: #ffffff;
  --text-dim: #f8f8f8;
  --text-faint: #fafafa;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --shadow-raised: 0 22px 56px rgba(0, 0, 0, 0.34);
  --shadow-accent: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.18em;
}

#i-star path { fill: currentColor; stroke: currentColor; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 72% 48% at 82% -8%, rgba(91, 159, 212, 0.08), transparent 66%),
    radial-gradient(ellipse 62% 46% at -4% 68%, rgba(28, 34, 48, 0.38), transparent 66%),
    var(--bg);
}

.bg-grain { opacity: 0.032; }
.bg-vignette { background: radial-gradient(ellipse at center, transparent 36%, rgba(2, 3, 8, 0.62) 100%); }

.screen {
  width: 100%;
}

#screen-app {
  max-width: 1240px;
  padding-inline: var(--edge);
}

.card {
  border-color: var(--surface-border);
  background: var(--surface-solid);
  box-shadow: var(--shadow-raised), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.card:active { transform: none; }

button,
.dl-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button {
  letter-spacing: -0.1px;
}

/* The accent glow is opt-out by design: anything listed here is a control that
   should read as part of a surface rather than as a raised object. The music
   transport, the now-playing text and the requests shortcut were added when that row
   was flattened — the glow is what made the strip look like a row of stickers. */


.top-bar {
  min-height: 70px;
  background: rgba(26, 29, 36, 0.86);
  border: 1px solid var(--surface-border);
  border-top: 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

/* The top bar's total height, in one place.
   It is the brand icon (the tallest thing in the bar) + the bar's 10px/10px padding
   + its 1px bottom border, plus whatever the device's safe-area inset adds. The
   sticky search row offsets itself from this, so change the icon size and this line
   together — nothing else needs touching. */
:root { --topbar-h: calc(52px + 21px + env(safe-area-inset-top)); }

/* Sized up now that the uncensored badge has its own strip: the bar holds only the
   brand and the logout button, so the logo and name can take the room back. */
.top-bar .brand { gap: 12px; }
.top-bar .brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  box-shadow: 0 8px 24px var(--accent-soft);
}
.top-bar .app-name {
  font-size: clamp(23px, 6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.55px;
}

.uncensored-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffe28a;
  background: linear-gradient(120deg, rgba(245, 190, 73, 0.12), rgba(255, 107, 214, 0.08));
  border: 1px solid rgba(255, 211, 99, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(255, 183, 68, 0.08);
}

#logout-button {
  color: #c5c7d7;
  background: rgba(255, 255, 255, 0.055);
}

.search-row--compact {
  min-height: 66px;
  padding: 9px 12px;
  border-radius: 20px;
  background: rgba(16, 18, 30, 0.82);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.3);
}

.search-icon {
  width: 21px;
  height: 21px;
  color: #8d92aa;
  margin-inline: 4px 2px;
}

.search-clear {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #bec1d2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear .ui-icon {
  width: 16px;
  height: 16px;
}

.search-row--compact input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-row--compact input {
  font-size: 14.5px;
  color: var(--text);
}

.genre-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bec1d2 !important;
  border-color: rgba(206, 198, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

.genre-btn.active {
  color: #fff !important;
  border-color: rgba(177, 158, 255, 0.45) !important;
  background: rgba(119, 88, 244, 0.2) !important;
}

.chip-row {
  scrollbar-width: none;
  padding-block: 4px 8px;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  min-height: 42px;
  padding-inline: 17px;
  border-color: rgba(196, 190, 226, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #aeb2c5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.chip.active {
  color: #fff;
  border-color: rgba(184, 166, 255, 0.55);
  background: linear-gradient(135deg, rgba(139, 101, 255, 0.92), rgba(73, 70, 223, 0.92));
  box-shadow: 0 10px 24px rgba(90, 67, 230, 0.32);
}

.hero-slide {
  min-height: 400px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(206, 197, 255, 0.13);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}
.hero-slide::after {
  background:
    linear-gradient(90deg, rgba(5, 6, 12, 0.16), rgba(5, 6, 12, 0.72) 58%, rgba(5, 6, 12, 0.96)),
    linear-gradient(0deg, rgba(5, 6, 12, 0.52), transparent 60%);
}
.hero-content { gap: clamp(18px, 4vw, 42px); padding: clamp(20px, 4vw, 44px); }
.hero-poster {
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.52);
}
.hero-text h2 {
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.22;
  letter-spacing: -1px;
}
.hero-text p {
  max-width: 54ch;
  color: #c2c4d2;
  font-size: clamp(13px, 1.6vw, 16px);
}
.hero-eyebrow {
  color: #c7baff;
  font-weight: 800;
}
.hero-cta { width: auto; min-width: 154px; }
.hero-dot { width: 7px; height: 7px; }
.hero-dot.active { width: 28px; }

.row-head { margin-bottom: 13px; }
.row-head h3,
.section-head {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text);
  letter-spacing: -0.35px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin: 24px 2px 12px;
}
.section-head .ui-icon { color: #a990ff; }
.row-more {
  width: auto;
  color: #b7a9f6;
  background: transparent;
  box-shadow: none;
}

.poster-card {
  display: flex;
  flex-direction: column;
  border-color: rgba(203, 197, 234, 0.09);
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.25);
}
.poster-tile {
  flex: 0 0 auto;
  overflow: hidden;
}
.poster-info {
  flex: 1 1 auto;
  min-height: 67px;
  background: linear-gradient(180deg, rgba(19, 21, 34, 0.98), rgba(13, 15, 25, 0.99));
}
/* Two lines tall, always — a one-line title otherwise left its card's meta row sitting
   higher than its neighbours', which is what made a shelf of covers look ragged along
   the bottom. The height has to live here, next to the line-height it depends on:
   later rules override both the font-size (12px, 13px above 680px) and the
   line-height, so a height set beside the earlier declaration was computed from
   numbers that no longer applied and clipped the second line. In em against 1.55 it
   follows the font-size at every breakpoint on its own. */
.poster-title {
  line-height: 1.55;
  font-weight: 700;
  height: 3.1em;
}
.kind-badge, .rating-badge {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tab-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -0.4px;
}
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #8d6bff, #4c57e9);
  box-shadow: 0 10px 26px rgba(101, 75, 234, 0.32);
}
.section-icon--vpn {
  background: linear-gradient(135deg, #57d9ff, #765cff 70%, #fb60c4);
}
.section-copy {
  margin: 8px 54px 18px 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.8;
}


.vpn-hero,
.vpn-note,
.my-orders {
  max-width: 880px;
  margin-inline: auto;
}

.vpn-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 34px);
  background:
    radial-gradient(circle at 12% 20%, rgba(72, 201, 255, 0.18), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(255, 84, 194, 0.17), transparent 32%),
    linear-gradient(135deg, rgba(36, 31, 78, 0.95), rgba(15, 20, 38, 0.96));
}
.vpn-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  left: -90px;
  bottom: -150px;
  border: 1px solid rgba(114, 221, 255, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(114, 221, 255, 0.025), 0 0 0 58px rgba(114, 221, 255, 0.018);
  pointer-events: none;
}
.vpn-lead {
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.9;
  color: #c2c7da;
}
.vpn-features { gap: 9px; }
.vpn-features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 8px 12px;
  color: #cdd2e6;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(200, 196, 232, 0.1);
  border-radius: 999px;
}
.vpn-features .ui-icon { color: #82e2ff; }

.vpn-plans { gap: 14px; }
.vpn-plan {
  position: relative;
  padding: 20px;
  overflow: hidden;
  isolation: isolate;
}
.vpn-plan::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(#65dcff, #8d6dff, #ff67c8);
}
.vpn-plan-head { align-items: flex-start; }
.vpn-plan-head b { font-size: 17px; }
.vpn-badge {
  color: #c3b4ff;
  background: rgba(130, 98, 255, 0.12);
  border: 1px solid rgba(169, 143, 255, 0.16);
}
.vpn-price {
  margin: 14px 0 6px;
  font-size: 22px;
  color: #ff82d2;
  letter-spacing: -0.5px;
}
.vpn-buy-btn { min-height: 48px; }
.vpn-note { border-style: dashed; box-shadow: none; }
.vpn-note .meta { line-height: 2; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 220px;
  padding: 28px 18px;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed rgba(191, 184, 224, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.018);
}
.empty-state b { color: var(--text); font-size: 16px; }
.empty-state span { max-width: 44ch; font-size: 12.5px; line-height: 1.8; }
.empty-state .empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 5px;
  color: #ac99ff;
  border-radius: 17px;
  background: rgba(245, 139, 193, 0.1);
  border: 1px solid rgba(183, 164, 255, 0.16);
}
.empty-state .empty-icon .ui-icon { width: 25px; height: 25px; }



#library-results.is-searching {
  opacity: 0.72;
  pointer-events: none;
}

.badge .ui-icon { width: 13px; height: 13px; }
.sort-option > span { display: inline-flex; align-items: center; gap: 9px; }
.sort-check { color: var(--success); }

.modal-overlay {
  background: rgba(2, 3, 8, 0.78);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}
.modal-sheet {
  border-color: rgba(204, 194, 255, 0.15);
  background:
    radial-gradient(circle at 100% 0, rgba(127, 88, 255, 0.12), transparent 30%),
    #11131d;
  box-shadow: 0 28px 90px rgba(0,0,0,.62);
}
.modal-close {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 6px;
}
.detail-people { font-size: 11px; }
.dl-link .ui-icon { width: 16px; height: 16px; }

.tabs {
  border: 1px solid rgba(195, 186, 242, 0.12);
  background: rgba(10, 11, 20, 0.86);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
}
.tabs button {
  color: #9095aa;
  font-weight: 700;
}
.tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(130, 95, 255, 0.98), rgba(63, 57, 190, 0.98));
  box-shadow: 0 10px 25px rgba(84, 61, 213, 0.42), inset 0 1px 0 rgba(255,255,255,.16);
}

@media (min-width: 760px) {



  #submit-request-button { width: auto; min-width: 210px; margin-inline-start: auto; }
  .vpn-plans {
    max-width: 980px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .vpn-plan { display: flex; flex-direction: column; margin: 0; }
  .vpn-price { margin-bottom: auto; padding-bottom: 12px; }
}

@media (max-width: 560px) {
  /* Smaller icon on a phone, so --topbar-h drops to match — the search row pinned
     under the bar follows automatically. */
  :root { --topbar-h: calc(48px + 21px + env(safe-area-inset-top)); }
  #screen-app { padding-inline: 14px; }
  .top-bar {
    margin-inline: -14px;
    min-height: 64px;
    border-radius: 0 0 22px 22px;
  }
  .top-bar .brand-icon { width: 48px; height: 48px; }
  .uncensored-badge {
    min-height: 31px;
    padding: 6px 12px;
    font-size: 11px;
    line-height: 1.5;
  }
  #logout-button { width: 40px; height: 40px; min-height: 40px; }
  #logout-button svg { width: 20px; height: 20px; }
  .search-row--compact {
    flex-wrap: nowrap;
    min-height: 0;
  }
  .search-row--compact input {
    flex: 1 1 auto;
    flex-basis: auto;
    min-width: 0;
  }
  .genre-btn {
    flex: 0 1 auto;
    margin-top: 0;
  }
  .hero-slide { min-height: 335px; }
  .hero-content { align-items: flex-end; }
  .hero-poster { width: 33%; }
  .hero-text { width: 64%; }
  .hero-text h2 { font-size: clamp(21px, 7vw, 30px); }
  .hero-text p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-cta { min-width: 128px; padding: 12px 15px; }
  .section-copy { margin-right: 0; }
  .vpn-plan { padding: 18px; }
  .vpn-plan-head { flex-direction: column; gap: 9px; }
  .vpn-price { font-size: 20px; }
  .tabs { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .tabs button span { line-height: 1.35; }
}

/* Mobile stability pass: keep the cinematic colour wash, but avoid compositing
   several fixed, blurred layers on every scroll frame (a common Android flicker
   trigger). The solid translucent surfaces preserve the same visual hierarchy. */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  body::before,
  body::after,
  .bg-glow-3,
  .bg-glow-4,
  .bg-grain,
  .tabs::before {
    display: none;
  }

  .bg-vignette {
    position: absolute;
  }

  .top-bar,
  .search-row--compact,
  .tabs {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .top-bar {
    background: linear-gradient(135deg, rgba(27, 24, 62, 0.98), rgba(38, 19, 55, 0.98));
    will-change: auto;
  }

  .tabs {
    background: linear-gradient(145deg, rgba(17, 18, 32, 0.99), rgba(10, 11, 22, 0.99));
  }
}

@media (max-width: 560px) {
  /* One compact line: query, then the two filter buttons beside it. They used to
     wrap onto a second line at 50% width each, which turned two small controls into
     two wide slabs. */
  .search-row--compact {
    min-height: 0;
    padding: 7px 9px;
    gap: 6px;
    border-radius: 17px;
    background: rgba(16, 18, 30, 0.98);
  }

  .search-icon {
    width: 19px;
    height: 19px;
    margin-inline: 2px 0;
  }

  .search-row--compact input {
    min-height: 38px;
    padding-block: 6px;
    line-height: 1.45;
    flex: 1 1 auto;
    flex-basis: auto;
    min-width: 0;
  }

  .genre-btn {
    flex: 0 1 auto;
    /* Capped so a long chosen sort ("جدیدترین اضافه‌شده‌ها") can't eat the row and
       squeeze the search field down to nothing — the label ellipsises instead. */
    max-width: 33%;
    min-height: 38px;
    padding: 6px 8px;
    gap: 4px;
    font-size: 11.5px;
    margin-top: 0;
  }

  .genre-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .genre-btn .ui-icon {
    flex: 0 0 auto;
  }

  /* Equal columns keep every category anchored to a predictable position. */
  #category-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 4px 0 8px;
    overflow: visible;
  }

  #category-chips .chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 7px 4px;
    text-align: center;
    white-space: normal;
    line-height: 1.45;
    font-size: 11px;
    border-radius: 14px;
  }

  /* Let banner content define its height; the old fixed minimum created a
     large empty area below short descriptions on phone screens. */
  .hero-slide {
    min-height: 0;
  }

  .hero-content {
    min-height: 0;
    padding: 16px;
    align-items: center;
  }

  .hero-poster {
    width: 34%;
  }

  .hero-text {
    width: 62%;
  }
}

@media (max-width: 360px) {
  /* The app name used to be hidden here purely to make room for the uncensored
     badge. The badge has its own strip now, so the brand can stay readable. */
  .uncensored-badge { font-size: 10px; padding: 6px 10px; }
  .tabs button { font-size: 8.8px; }
  #category-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #home-view,
  .home-row,
  .home-moods,
  .row-scroller,
  .hero,
  .hero-slide,
  .hero-content,
  .hero-text {
    max-width: 100%;
    min-width: 0;
  }
  .poster-card--row {
    flex-basis: 120px;
    width: 120px;
  }
  .poster-reason {
    font-size: 9px;
  }
  .hero-text h2 {
    white-space: normal;
  }
  .search-row--compact input {
    min-width: 0;
    font-size: 16px;
  }
  .search-clear {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track { scroll-behavior: auto; }
  .hero-dot,
  .poster-card,
  .poster-tile img { transition: none !important; }
}

/* ==================== focused browsing refinements ==================== */
.pagination {
  flex-direction: column;
  gap: 9px;
  margin-top: 24px;
}

.pagination-controls {
  width: min(100%, 430px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.page-numbers {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
}

.page-numbers::-webkit-scrollbar { display: none; }

.page-number {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border-radius: 11px;
  color: #aeb2c5;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(194, 187, 228, 0.11);
  box-shadow: none !important;
  font-size: 12px;
}

.page-number.active {
  color: #fff;
  border-color: rgba(189, 171, 255, 0.62);
  background: linear-gradient(135deg, #8b69ff, #5147d7);
  box-shadow: 0 8px 18px rgba(83, 63, 211, 0.36) !important;
}

.page-arrow {
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 12px;
  font-size: 22px;
}

.page-indicator {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-faint);
}

.detail-action-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 14px;
}





.detail-overview-card {
  position: relative;
  margin-top: 17px;
  padding: 15px 16px 16px;
  overflow: hidden;
  border: 1px solid rgba(183, 165, 255, 0.2);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(245, 139, 193, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(37, 34, 62, 0.62), rgba(18, 20, 33, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.detail-overview-card::before {
  content: "";
  position: absolute;
  inset-block: 13px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(#8e70ff, #ff67c8);
  box-shadow: 0 0 16px rgba(245, 139, 193, 0.48);
}

.detail-overview-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #c8bcff;
  font-size: 12px;
  font-weight: 800;
}

.detail-overview-label .ui-icon {
  width: 16px;
  height: 16px;
}

#detail-overview {
  margin: 0;
  color: #d6d8e5;
  font-size: 13px;
  font-weight: 400;
  line-height: 2;
  text-align: justify;
}

@media (max-width: 380px) {
  .modal-poster { width: 108px; }
  .modal-body { gap: 11px; }


}


/* ---------- motion ----------
   These replace GSAP. Everything is gated behind .motion on <html>, which app.js
   only adds when the visitor has not asked for reduced motion and is not on a touch
   device — the same condition that used to gate the timelines, so phones behave
   exactly as before (no animation) while no longer downloading 46 KB to find that
   out. The tab fade is the exception: it runs everywhere, because it is the only
   signal that the tab actually changed. */

@keyframes amm-pop      { from { transform: scale(0.92); } to { transform: scale(1); } }
@keyframes amm-rise     { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes amm-rise-far { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes amm-toast-in { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes amm-fade-up  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes amm-sheet-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
@keyframes amm-reveal   { from { opacity: 0; transform: translateY(26px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes amm-body-in  { from { opacity: 0.3; } to { opacity: 1; } }
@keyframes amm-orb      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* The tab fade is deliberately outside .motion — see above. */
.anim-tab-in { animation: amm-fade-up 0.3s ease both; }

.motion .anim-pop        { animation: amm-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.motion .anim-rise       { animation: amm-rise 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.motion .anim-rise-tabs  { animation: amm-rise-far 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 0.1s both; }
.motion .anim-toast-in   { animation: amm-toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.motion .anim-body-in    { animation: amm-body-in 0.25s ease both; }
.motion .logo-orb        { animation: amm-orb 1.6s ease-in-out infinite; }

/* The reveal stagger: app.js sets --reveal-delay per card as each batch arrives. */
.motion .anim-reveal { animation: amm-reveal 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms) both; }

.motion .anim-modal-in                { animation: amm-body-in 0.2s ease both; }
.motion .anim-modal-in .modal-sheet   { animation: amm-sheet-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Closing. The class is cosmetic only — closeDetailModal's timer is what actually
   hides the modal, so a browser that never runs the animation still closes it. */
.anim-modal-out              { opacity: 0; transition: opacity 0.2s ease; }
.anim-modal-out .modal-sheet { opacity: 0; transform: translateY(40px); transition: opacity 0.25s ease, transform 0.25s ease; }

/* A toast leaves on a transition rather than a keyframe so it works with or without
   .motion — it is removed on a timer either way. */
.toast.anim-toast-out { opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }


/* ---------- picture attached to a request ---------- */










/* A 44px target: removing the wrong picture because the button was too small to aim
   at is a worse outcome than the button looking slightly large. */




/* ==========================================================================
   2026 redesign layer — "cinema at night"
   ==========================================================================
   Why a layer at the end rather than edits in place: the rules above are the
   record of every fix this app has had, and rewriting them wholesale would throw
   away decisions made for reasons (RTL scroll direction, the poster fallback
   tile, the sticky offsets). This layer changes the *system* — surface, type,
   colour, density — and leaves that record intact.

   The three problems it fixes, in order of what they cost:

   1. Five stacked bands of chrome — bar, uncensored pill, notify card, search,
      chips — pushed the first poster 460px down an 812px screen. More than half
      the phone was spent before the shop showed anything it sells.
   2. One surface for everything. Bar, banner, search, hero and card shared a
      radius, a border and a fill, so nothing looked more important than anything
      else and the eye had nowhere to land.
   3. One colour. Violet did the logo, the buttons, the active chip and the active
      tab, so it stopped meaning "you can press this" and became wallpaper.
   ========================================================================== */

:root {
  /* Three surfaces instead of one, separated by lightness rather than by border:
     borders everywhere are what made the old screens read as a stack of boxes. */
  --s0: #14161c;
  --s1: #1e222b;
  --s2: #262b36;
  --hairline: rgba(255, 255, 255, 0.07);

  /* Text has three jobs — say it, support it, get out of the way — and they are
     now visibly different, by weight and tone rather than by size alone. */
  --ink: #eef0f4;
  --ink-2: #9aa1b2;
  --ink-3: #6d7384;

  /* iPhone pink is reserved for "you can act on this". Gold carries value. */
  --brand: var(--accent);
  --brand-bright: var(--accent-active);
  --value: #f5c451;

  --r-md: 14px;
}

/* ---------- 1. reclaiming the top of the screen ---------- */
/* The uncensored promise sits in the masthead beside the name, as two words. It had
   its own full-width band before, which cost a whole strip of a phone screen for a
   line the customer reads once. */
.uncensored-badge {
  flex: 0 0 auto;
  min-height: 0;
  padding: 5px 11px;
  margin-inline-start: 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.34);
  background: rgba(245, 196, 81, 0.11);
  box-shadow: none;
  color: #f7dfa4;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.uncensored-badge .ui-icon {
  width: 12px;
  height: 12px;
  color: var(--value);
}

/* Brand and action icons use the same gutter as the search row and posters.
   A 10px inset (left over from the old uncensored badge) pulled "آرش مووی"
   a few millimetres past that line toward the screen edge. */
.top-bar {
  padding-inline: var(--edge);
}
@media (max-width: 560px) {
  .top-bar {
    padding-inline: 14px;
  }
}

/* Nothing here may shrink: the badge has to keep its two words on one line and the
   logout button has to keep its tap target, so the brand is what gives if a name
   ever gets long enough to need it. */
.top-bar .brand {
  flex: 0 1 auto;
  min-width: 0;
}

.uncensored-badge,
#logout-button {
  flex-shrink: 0;
}

/* On a 320px phone the shop's own name was the thing that gave way, arriving as
   "کلوپ آر…". Shrinking the mark and the name a step buys back the ~20px that
   costs, so all three keep their full text instead. */
@media (max-width: 345px) {
  /* With a 40px mark the bar's content is 61px, so its own min-height of 64px is
     what decides — and --topbar-h has to say so. The formula used at the wider
     breakpoints (icon + 21) would claim 61px and leave the sticky search row
     floating 3px clear of the bar with the page showing through the gap. */
  :root {
    --topbar-h: calc(64px + env(safe-area-inset-top));
  }

  .top-bar .brand-icon {
    width: 40px;
    height: 40px;
  }

  .top-bar .app-name {
    font-size: 19px;
  }

  .uncensored-badge {
    margin-inline-start: 7px;
    padding: 5px 9px;
    font-size: 10.5px;
  }
}

/* The notify prompt was a full card competing with the catalogue. One line. */
#notify-banner {
  margin: 0 0 12px 0;
  padding: 9px 12px;
  border-radius: var(--r-md);
  background: rgba(245, 139, 193, 0.09);
  border: 1px solid rgba(245, 139, 193, 0.2);
  font-size: 12px;
}

#notify-banner button {
  min-height: 32px;
  padding: 5px 13px;
  font-size: 12px;
  border-radius: 9px;
}

/* ---------- 2. type ---------- */
/* A display size the app did not have. Section headings were the same size as
   body copy, which is the main reason every screen read flat. */
.home-row .row-head h3,
.section-head span,
.tab-icon-title span {
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
}

/* A short coloured rule beside a heading does the work a heavier font would, at a
   fraction of the visual weight. */
.home-row .row-head h3::before,
.section-head span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-inline-end: 9px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand));
  vertical-align: -0.12em;
}

/* "همه" was a bordered button pretending to be as important as the row it sat on.
   It is a way out of a shelf, not an action — so it reads as a link. */
.home-row .row-more {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--brand-bright);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 2px;
  min-height: 0;
}

/* ---------- 3. the hero ---------- */
/* It was a card: rounded, inset, a small poster beside text. A hero's job is to be
   the film for a moment, so it goes edge to edge, the backdrop fills it, and the
   text sits on a scrim at the bottom where it always has contrast. */
.hero {
  margin-inline: calc(var(--edge, 16px) * -1);
  border-radius: 0;
}

/* --edge is clamp(16px, 3vw, 36px), but on a phone #screen-app is padded 14px, not
   16. Breaking out by --edge therefore overhung the page by 2px each side and put a
   horizontal scrollbar on every phone. The break-out has to match the padding that
   is actually applied, so it is stated here rather than inferred. */
@media (max-width: 560px) {
  .hero {
    margin-inline: -14px;
  }
}

/* A column that pushes its content to the floor of the panel. Without this the
   text sat at the top of the slide with the artwork empty beneath it — the panel
   is 300px tall and nothing was holding the copy down. */
.hero-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  border-radius: 0;
  border: 0;
  overflow: hidden;
}

/* The only artwork the catalogue has is a 2:3 poster. Stretching one across a wide
   panel crops it to a smear, so the blurred-poster-as-atmosphere idea the original
   had is kept — just pushed further, with the sharp poster still on top of it. */
.hero-backdrop {
  filter: blur(26px) saturate(1.5);
  transform: scale(1.35);
  opacity: 0.6;
}

/* Two stops, not one: a short dark cap so the top bar keeps its contrast, and a
   long foot for the title to sit on. A single flat overlay greys the poster. */
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 13, 0.72) 0%, rgba(7, 8, 13, 0) 26%),
    linear-gradient(0deg, rgba(7, 8, 13, 0.96) 4%, rgba(7, 8, 13, 0.86) 26%, rgba(7, 8, 13, 0.1) 62%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-items: flex-end;
  gap: 16px;
  padding: 0 var(--edge, 16px) 20px;
}

/* Bigger, lifted off the backdrop, and allowed to overrun the panel slightly so it
   reads as an object sitting in the scene rather than a thumbnail pasted on it. */
.hero-poster {
  width: 118px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.66),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h2 {
  font-size: clamp(22px, 6.4vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 5px 0 7px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  /* Beside a poster there is not room for four lines of title. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--value);
}

.hero-text p {
  color: rgba(238, 242, 248, 0.78);
  font-size: 13px;
  line-height: 1.75;
  max-width: 46ch;
}

.hero-cta {
  margin-top: 14px;
  min-height: 46px;
  padding-inline: 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.hero-actions .hero-cta {
  margin-top: 10px;
}

.home-moods {
  margin: 8px 0 28px;
  min-width: 0;
  max-width: 100%;
}

.mood-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.mood-chip {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mood-chip:active {
  transform: scale(0.97);
}

/* Dots become a measure of position rather than four identical blobs. */
.hero-dots {
  gap: 5px;
}

.hero-dot {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dot.active {
  width: 20px;
  background: var(--brand-bright);
}

/* ---------- 4. poster cards ---------- */
/* The title used to sit in a strip under the tile, so every card was a picture
   plus a paragraph. Putting it on the poster under a scrim gives the grid one
   rectangle per film and lets the artwork do the talking. */
.poster-card {
  position: relative;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: var(--r-md);
}

.poster-tile {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.poster-tile::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(0deg, rgba(6, 7, 12, 0.94) 12%, rgba(6, 7, 12, 0) 100%);
  pointer-events: none;
}

.poster-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: 9px 10px 10px;
  background: none;
}

.poster-title {
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.poster-meta {
  margin-top: 3px;
  font-size: 10.5px;
  color: rgba(232, 236, 245, 0.62);
}

/* Rating is value, so it is gold, and it is the one thing allowed to sit on the
   artwork's top corner. */
.rating-badge {
  background: rgba(10, 8, 4, 0.72);
  border: 1px solid rgba(245, 196, 81, 0.5);
  color: var(--value);
  font-weight: 800;
  backdrop-filter: blur(6px);
}

/* Where the kind badge went — see posterCardHtml() in app.js. Plain text in the
   meta line, separated from the year by a dot. */
/* Three things do not fit on one line of a 140px card — the kind was arriving as
   "فیل…". They wrap instead: kind and year read together, the dub badge takes the
   line under them. Nothing is dropped, because "دوبله" is the thing customers ask
   about most and the year is how they tell two versions apart. */
.poster-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 6px;
}

.poster-kind {
  flex: 0 0 auto;
  color: rgba(232, 236, 245, 0.82);
  font-weight: 700;
}

.poster-kind::after {
  content: "·";
  margin-inline-start: 6px;
  color: rgba(232, 236, 245, 0.35);
}

/* Posters are 2:3. Letting the tile take whatever height the image happened to be
   made the shelves ragged, which no amount of styling on the card can rescue. */
.poster-tile {
  aspect-ratio: 2 / 3;
}

.poster-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 5. search and chips ---------- */
.search-row--compact {
  border-radius: 999px;
  background: var(--s1);
  border: 1px solid rgba(202, 191, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(121, 225, 255, 0.08),
    0 0 15px rgba(155, 113, 255, 0.24),
    0 0 32px rgba(65, 207, 255, 0.09),
    0 10px 26px rgba(0, 0, 0, 0.30);
}

.hero-slide {
  direction: rtl;
}

.search-row--compact:focus-within {
  border-color: rgba(229, 222, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 0 0 1px rgba(125, 226, 255, 0.16),
    0 0 21px rgba(169, 127, 255, 0.36),
    0 0 44px rgba(62, 207, 255, 0.13),
    0 12px 30px rgba(0, 0, 0, 0.32);
}

.genre-btn {
  border-radius: 999px;
}

/* Chips were large pills on a row of their own. Smaller, and the inactive ones
   step back so the active one reads as a state rather than a decoration. */
#category-chips .chip {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  background: var(--s1);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}

#category-chips .chip.active {
  background: linear-gradient(135deg, var(--brand), var(--accent-strong));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 139, 193, 0.32);
}

/* ---------- 6. bottom navigation ---------- */
/* The active tab was a filled violet pill the size of a button. A bar marks where
   you are, it does not ask to be pressed: the label brightens and a rule appears. */
.tabs {
  background: rgba(9, 11, 18, 0.9);
  backdrop-filter: blur(18px) saturate(1.2);
  border-top: 1px solid var(--hairline);
}

.tabs button {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--ink-3);
  position: relative;
  border-radius: 0;
}

/* Has to name .active too: the filled-pill rule further up is `.tabs button.active`,
   and a plain `.tabs button` here loses to it however far down the file it sits. */
.tabs button.active {
  color: var(--ink);
  background: none;
  box-shadow: none;
}

.tabs button.active::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 22%;
  height: 2.5px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand));
}

.tabs button.active svg {
  stroke: var(--brand-bright);
}

/* ==========================================================================
   redesign layer, part 2 — the screens behind the catalogue
   ==========================================================================
   The home screen was the loud problem; these are the quiet ones. Request, cart
   and VPN all shared the same weaknesses: form fields that were empty rounded
   boxes with nothing but a placeholder in them, cards that sat on the same fill
   as everything else, and empty states that read as an error rather than as an
   invitation.
   ========================================================================== */

/* ---------- cards ---------- */
/* One step up from the page instead of the same fill with a border drawn round it.
   The hairline is there to catch the light at the top edge, not to draw a box. */
.card {
  background: var(--s1);
  border: 1px solid var(--hairline);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.sort-section-title { margin: 10px 2px 2px; color: var(--text-muted); font-size: 12px; font-weight: 800; }
.sort-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sort-filter-option {
  min-height: 40px; padding: 8px 10px; border: 1px solid var(--surface-border);
  border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text);
  font-size: 12px; font-weight: 750; box-shadow: none;
}
.sort-filter-option.active { border-color: rgba(224,155,138,.75); background: rgba(201,120,106,.2); color: #fff; }
.sort-filter-count {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; color: #7047e8; font-size: 10px;
}

.sort-section-title { margin: 10px 2px 2px; color: var(--text-muted); font-size: 12px; font-weight: 800; }
.sort-filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sort-filter-option {
  min-height: 40px; padding: 8px 10px; border: 1px solid var(--surface-border);
  border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text);
  font-size: 12px; font-weight: 750; box-shadow: none;
}
.sort-filter-option.active { border-color: rgba(224,155,138,.75); background: rgba(201,120,106,.2); color: #fff; }
.sort-filter-count {
  display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; color: #7047e8; font-size: 10px;
}

/* ==================== mobile contrast & compact navigation pass ====================
   The Android screenshot exposed two issues that desktop emulation hid: muted text
   became washed out on a real OLED panel, and the category grid read as eight large
   buttons. Keep every touch target safe while making the visible pills lighter and
   the navigation typography decisively white. */
@media (max-width: 560px) {
  #logout-button,
  #logout-button svg,
  #profile-button,
  #profile-button svg,
  .search-row--compact,
  .search-row--compact input,
  .search-row--compact .search-icon,
  .genre-btn,
  .genre-btn .ui-icon,
  .tabs button,
  .tabs button svg,
  .tabs button span {
    color: #fff !important;
    stroke: currentColor;
    opacity: 1;
  }

  .search-row--compact input::placeholder {
    color: rgba(255, 255, 255, 0.88);
    opacity: 1;
  }

  #logout-button {
    border-color: rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.075) !important;
  }

  .genre-btn {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.055) !important;
  }

  #category-chips {
    gap: 5px 6px;
    padding: 2px 0 5px;
  }

  #category-chips .chip {
    min-height: 44px; /* safe tap target; the visible treatment remains compact */
    padding: 5px 4px;
    border-radius: 11px;
    border-color: rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(25, 29, 43, 0.92), rgba(15, 18, 29, 0.96));
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  #category-chips .chip.active {
    color: #fff;
    background: linear-gradient(135deg, #956fff, #6347dc);
    border-color: rgba(209, 198, 255, 0.55);
    box-shadow: 0 5px 14px rgba(111, 76, 226, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  .tabs button {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }

  .tabs button:not(.active) svg {
    stroke: rgba(255, 255, 255, 0.88) !important;
  }

  .tabs button.active,
  .tabs button.active span {
    color: #fff !important;
  }
}

/* ==================== curated music mini-player ==================== */
.music-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  margin: 8px 0 10px;
  padding: 6px 8px;
  border: 1px solid rgba(202, 191, 255, 0.62);
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(24, 21, 48, 0.96), rgba(13, 16, 27, 0.97));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 0 1px rgba(124, 225, 255, 0.10),
    0 0 16px rgba(158, 121, 255, 0.26),
    0 0 34px rgba(74, 207, 255, 0.10),
    0 10px 28px rgba(0, 0, 0, 0.30);
}

.music-bar:focus-within {
  border-color: rgba(224, 218, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(135, 225, 255, 0.18),
    0 0 20px rgba(170, 128, 255, 0.36),
    0 0 42px rgba(62, 207, 255, 0.14),
    0 10px 30px rgba(0, 0, 0, 0.32);
}

.music-bar.hidden { display: none; }
.music-bar audio { display: none; }

.music-control {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.music-control svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-control:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.music-play {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  box-shadow: 0 5px 16px rgba(245, 139, 193, 0.32);
}

.music-play svg { fill: currentColor; stroke: none; }

.music-now {
  display: flex;
  flex: 1 1 120px;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(5, 7, 18, 0.34);
  color: inherit;
  text-align: right;
  box-shadow: none;
  cursor: pointer;
}

.music-player-sheet { max-height: min(92vh, 760px); overflow-y: auto; padding-bottom: 24px; }
.music-player-art {
  display: grid; place-items: center; width: 118px; height: 118px; margin: 12px auto 15px;
  border: 1px solid rgba(203,184,255,.28); border-radius: 30px;
  background: radial-gradient(circle at 35% 25%, #e75ad5, #7649ef 42%, #17172c 76%);
  box-shadow: 0 18px 48px rgba(112,71,232,.34), inset 0 1px 0 rgba(255,255,255,.25);
}
.music-player-art span { color: #fff; font-size: 58px; text-shadow: 0 5px 20px rgba(0,0,0,.35); }
.music-player-heading { text-align: center; }
.music-player-heading > span { color: #b99cff; font-size: 11px; font-weight: 800; }
.music-player-heading h2 { margin: 5px 0 2px; color: #fff; font-size: 21px; }
.music-player-heading p { margin: 0; color: var(--text-muted); font-size: 12px; }
.music-timeline { margin: 22px 3px 8px; direction: ltr; }
.music-timeline input {
  width: 100%; height: 5px; margin: 0; border: 0; border-radius: 99px; appearance: none;
  background: linear-gradient(90deg, #a178ff var(--music-progress, 0%), rgba(255,255,255,.14) 0);
}
.music-timeline input::-webkit-slider-thumb { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; appearance: none; background: #8c5cff; box-shadow: 0 2px 9px rgba(93,55,210,.7); }
.music-timeline > div { display: flex; justify-content: space-between; margin-top: 7px; color: var(--text-muted); font-size: 10px; }
.music-player-controls { display: flex; justify-content: center; align-items: center; gap: 22px; direction: ltr; margin: 8px 0 22px; }
.music-player-controls .music-play { width: 58px; height: 58px; flex-basis: 58px; }
.music-package-card {
  padding: 17px; border: 1px solid rgba(196,172,255,.23); border-radius: 20px;
  background: linear-gradient(145deg, rgba(121,77,230,.17), rgba(255,255,255,.035));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.music-package-kicker { color: #d5c4ff; font-size: 10px; font-weight: 850; }
.music-package-card h3 { margin: 5px 0; color: #fff; font-size: 18px; }
.music-package-card p { margin: 0 0 8px; color: var(--text-muted); font-size: 12px; line-height: 1.8; }
.music-package-price { margin: 8px 0 12px; color: #fff; font-size: 12px; }
.music-package-price b { font-size: 23px; color: #ffd369; }
.music-package-card .select-btn { width: 100%; min-height: 48px; }
.music-package-card small { display: block; margin-top: 11px; color: rgba(255,255,255,.68); font-size: 10.5px; line-height: 1.8; }

.music-now b,
.music-now span {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-now b { color: #fff; font-size: 12px; font-weight: 800; }
.music-now span { color: rgba(255, 255, 255, 0.72); font-size: 10.5px; }

@media (max-width: 420px) {
  .music-bar { gap: 4px; padding-inline: 6px; }
}

/* ---------- form fields ---------- */
/* These were the weakest thing left in the app: tall, empty, identical boxes whose
   only content was grey placeholder text, and which did nothing visible when you
   tapped into them. A field should look like somewhere to put something, and it
   must say plainly which one is receiving what you type. */






/* ---------- the request card's own furniture ---------- */
/* The "+" tile beside the heading was a filled violet square the size of a button,
   sitting next to a heading that already says "درخواست جدید". It is a bullet, not
   a control, so it stops shouting and stops looking pressable. */




.section-copy {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.8;
}



/* "افزودن عکس" is optional and secondary; it was as wide and as tall as the submit
   button below it, so the two competed for the same press. */






/* The one action on the screen, so it keeps its weight — but as a settled shape
   rather than a full-width slab of gradient. */
#submit-request-button {
  border-radius: 14px;
  min-height: 50px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* ---------- empty states ---------- */
/* An empty cart is the normal state of a shop the customer has just opened, not a
   fault. Soft brand-tinted disc, a real heading, and one line telling them what to
   do next — instead of a flat grey square and two similar-sized sentences. */
.empty-state {
  padding: 34px 20px;
}

.empty-state .empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(245, 139, 193, 0.26), rgba(245, 139, 193, 0.05) 70%);
  border: 1px solid rgba(245, 139, 193, 0.22);
  color: var(--brand-bright);
  box-shadow: 0 10px 26px rgba(245, 139, 193, 0.12);
}

.empty-state b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.home-row .row-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-row .row-head .shelf-icon {
  display: inline-grid;
  place-items: center;
  min-width: 1.2em;
  font-size: 0.88em;
  line-height: 1;
  filter: drop-shadow(0 0 7px rgba(180, 151, 255, 0.28));
}

.empty-state span {
  color: var(--ink-2);
}

/* ---------- section heads ---------- */
/* The icon that sat before these headings duplicated the coloured rule the type
   scale already gives them, so the rule keeps the job and the icon steps back. */
.section-head {
  align-items: center;
  gap: 8px;
}

.section-head > .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}

/* ---------- the VPN panel ---------- */
/* Already the best-composed card in the app; it only needed the same surface and a
   quieter set of feature chips so they read as facts rather than as buttons. */
.vpn-hero .vpn-feature,
.vpn-hero .feature-chip {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  font-weight: 600;
}

/* A caption above each field, replacing the sr-only labels — see index.html. Small
   and quiet: it names the box without competing with what gets typed into it. */
.field-label {
  display: block;
  margin: 0 2px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}

.field-label span {
  font-weight: 500;
  color: var(--ink-3);
}

/* The gap between the two fields was carrying the whole separation; with labels
   above them the spacing has to belong to the pair, not to the boxes. */




/* ==========================================================================
   redesign layer, part 3 — corrections from the shop
   ==========================================================================
   Three things the mock could not show, because it had no real posters in it:

   1. Laying the title over the artwork was wrong. Real posters carry their own
      printed title, so the app's title landed on top of it — "بازی تاج و تخت"
      across the throne, "The rational life" across two faces. The title and year
      go back under the poster where nothing is competing with them.
   2. The uncensored badge ended up against the logout button.
   3. The hero kept a 300px floor, so with a short title there was a band of empty
      backdrop above the copy.
   ========================================================================== */

/* ---------- 1. the card ---------- */
/* Undoes the overlay from layer 1: the info block is part of the card again, in
   normal flow, under the picture. */
.poster-info {
  position: static;
  z-index: auto;
  padding: 9px 2px 2px;
  background: none;
}

/* The scrim existed only to make overlaid text readable. Nothing sits on the
   artwork now except the two corner badges, which carry their own backgrounds. */
.poster-tile::after {
  content: none;
}

.poster-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
  text-shadow: none;
  /* Two lines, then stop — a long Persian title used to push the row's cards to
     different heights and the shelf lost its baseline. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  margin-top: 5px;
  font-size: 11px;
  color: var(--ink-3);
}

/* ---------- 2. the badges, louder ---------- */
/* The shop asked for these to catch the eye. They are the only two marks on the
   artwork, so they can afford to be saturated — which they could not when a title
   was competing with them. */
.poster-tile .kind-badge {
  top: 7px;
  right: 7px;
  left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
}

.poster-tile .kind-badge.movie {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.poster-tile .kind-badge.series {
  background: linear-gradient(135deg, #ff6bd6, #f5893a);
}

/* Dub and subtitle are what customers ask about before anything else, so they get
   real colour rather than the grey they had. */
.audio-badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid transparent;
}

.audio-badge.dubbed {
  background: rgba(52, 209, 124, 0.16);
  border-color: rgba(52, 209, 124, 0.42);
  color: #6ee7a8;
}

.audio-badge.subtitled {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.42);
  color: #7dd3fc;
}

/* The tile carries the shadow and the artwork; the card underneath it is just the
   caption, so it needs no fill of its own. */
.poster-tile {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

/* ---------- 3. the masthead ---------- */
/* The badge was hard against the logout button. The bar lays its three items out
   with space-between, so the breathing room has to be asked for. */
.top-bar {
  gap: 10px;
}

.uncensored-badge {
  margin-inline-start: 8px;
  margin-inline-end: 6px;
}

/* ---------- 4. the hero ---------- */
/* The 300px floor left dead backdrop above a short title. The panel is as tall as
   what is in it, with a floor low enough only to stop a one-line entry collapsing. */
.hero-slide {
  min-height: 0;
  padding-top: 18px;
}

.hero-content {
  padding-bottom: 18px;
}

/* The third audio state, so it does not sit grey beside two coloured ones. */
.audio-badge.original {
  background: rgba(245, 196, 81, 0.16);
  border-color: rgba(245, 196, 81, 0.42);
  color: #f7dfa4;
}

/* The year and the dub badge were being thrown to opposite ends of the caption by
   a space-between inherited from the old overlay layout, so they read as two
   unrelated things instead of one line about the film. */
.poster-meta {
  justify-content: flex-start;
}

/* ---------- audio marks move onto the artwork ---------- */
/* Dub and subtitle are what a customer checks before anything else, so they ride
   along the foot of the poster where the eye already is, instead of queueing on a
   caption line under it. The year that shared that line is gone — see the note in
   posterCardHtml(). */
.poster-tile .audio-badge-group {
  position: absolute;
  bottom: 7px;
  left: 7px;
  right: auto;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: calc(100% - 14px);
}

/* A short gradient under them so a badge never has to sit on a bright patch of
   artwork and lose its edge. Behind the badges, not over them. */
.poster-tile::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 34%;
  z-index: 1;
  background: linear-gradient(0deg, rgba(6, 7, 12, 0.8) 6%, rgba(6, 7, 12, 0) 100%);
  pointer-events: none;
}

/* The caption is one line now, so it needs no flex row of its own. */
.poster-info {
  padding: 8px 2px 2px;
}

/* Real posters often print their own credits along the foot, so the badges land on
   top of small light text. A deeper, taller wash keeps them readable there without
   dulling the artwork any higher up the tile. */
.poster-tile::after {
  height: 42%;
  background: linear-gradient(0deg, rgba(5, 6, 11, 0.92) 4%, rgba(5, 6, 11, 0.45) 40%, rgba(5, 6, 11, 0) 100%);
}

/* ---------- the scrim comes off ---------- */
/* It washed the bottom 42% of every poster to make one small badge readable, which
   on a dark poster read as the artwork being cut in half — Game of Thrones lost its
   whole lower half, printed Persian title and all. The badge can carry its own
   background instead: it is 60px wide, the poster is not. */
.poster-tile::after {
  content: none;
}

/* Opaque enough to sit on white artwork, blurred so it still belongs to the image
   underneath rather than looking stuck on top of it. */
.poster-tile .audio-badge {
  background: rgba(8, 10, 16, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.poster-tile .audio-badge.dubbed {
  border-color: rgba(52, 209, 124, 0.75);
  color: #7cf0b4;
}

.poster-tile .audio-badge.subtitled {
  border-color: rgba(56, 189, 248, 0.75);
  color: #8ad9fb;
}

.poster-tile .audio-badge.original {
  border-color: rgba(245, 196, 81, 0.75);
  color: #f8e2a8;
}

/* ---------- the year, where the customer looks for it ---------- */
/* It was the middle of three bullet-joined words in the detail sheet's meta line,
   at the same size and the same grey as the two beside it. As a chip at the head of
   the line it is the first thing read, and the line still says kind and category
   after it. */
#detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-year {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: #0c0a04;
  background: linear-gradient(135deg, #f7d36b, #e0a92f);
  border: 1px solid rgba(255, 226, 150, 0.55);
  box-shadow: 0 5px 16px rgba(224, 169, 47, 0.28);
}

/* ==================== luminous mobile dock ====================
   A compact four-destination dock: equal hit areas, a raised active icon and a
   live cart count. The glass is deliberately dark enough to stay legible over a
   bright poster while the edge light keeps it separate from the page. */
.tabs {
  --dock-accent: #a98cff;
  --dock-accent-2: #ff75d8;
  align-items: center;
  justify-content: stretch;
  gap: 3px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 10px;
  right: 10px;
  width: auto;
  max-width: 470px;
  min-height: 70px;
  padding: 6px;
  overflow: visible;
  border: 1px solid rgba(198, 183, 255, 0.2);
  border-radius: 23px;
  background:
    linear-gradient(135deg, rgba(24, 20, 48, 0.94), rgba(8, 11, 21, 0.96) 54%, rgba(28, 16, 42, 0.94));
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.62),
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 0 0 1px rgba(104, 71, 243, 0.06);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}

.tabs button,
.tabs button.active {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 7px 2px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 17px;
  color: rgba(238, 236, 255, 0.68);
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  isolation: isolate;
}

.tabs button::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 15px;
  border: 1px solid transparent;
  background: transparent;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 220ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tabs button.active::before {
  inset: 3px;
  height: auto;
  opacity: 1;
  transform: scale(1);
  border: 1px solid rgba(202, 187, 255, 0.28);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 117, 216, 0.2), transparent 52%),
    linear-gradient(150deg, rgba(126, 91, 246, 0.32), rgba(76, 56, 182, 0.15));
  box-shadow: 0 9px 24px rgba(83, 58, 194, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tabs button svg {
  width: 22px;
  height: 22px;
  padding: 0;
  flex: 0 0 auto;
  color: inherit;
  stroke: currentColor;
  stroke-width: 1.9;
  filter: drop-shadow(0 2px 7px rgba(0, 0, 0, 0.38));
  transition: color 180ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease;
}



.tabs button.active {
  color: #fff;
}

.tabs button.active svg {
  color: #c7b8ff;
  stroke: currentColor;
  transform: translateY(-1px) scale(1.12);
  filter:
    drop-shadow(0 0 6px rgba(169, 140, 255, 0.82))
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.42));
}



.tabs button.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dock-accent-2), var(--dock-accent), #70dcff);
  box-shadow: 0 0 11px rgba(169, 140, 255, 0.9);
  transform: translateX(-50%);
  animation: dockIndicatorIn 320ms cubic-bezier(0.16, 1, 0.3, 1);
}





.tabs button:not(.active):active {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(0.94);
}

@keyframes dockIndicatorIn {
  from { opacity: 0; transform: translateX(-50%) scaleX(0.2); }
  to { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

@media (max-width: 360px) {
  .tabs { left: 7px; right: 7px; gap: 1px; padding-inline: 4px; }

  .tabs button svg { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .tabs button::before,
  .tabs button svg,
  .tabs button > span,
  .tabs button.active::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Compact inline dock: icon and label read as one control instead of two stacked
   rows. Kept last in the cascade so it intentionally refines the luminous dock. */
.tabs {
  min-height: 58px;
  padding: 5px;
  gap: 2px;
  border-radius: 20px;
}

.tabs button,
.tabs button.active {
  min-height: 46px;
  padding: 6px 5px;
  flex-direction: row;
  gap: 5px;
  border-radius: 14px;
}

.tabs button::before,
.tabs button.active::before {
  inset: 2px;
  border-radius: 12px;
}

.tabs button svg { width: 18px; height: 18px; }



.tabs button.active svg { transform: scale(1.08); }

.tabs button.active::after { bottom: -5px; width: 20px; }



@media (max-width: 360px) {
  .tabs button,
  .tabs button.active { gap: 3px; padding-inline: 3px; }

  .tabs button svg { width: 17px; height: 17px; }
}

/* The cart label is intentionally longer than the other three destinations. Give
   it the slack those short labels do not need instead of truncating a useful word. */
.tabs button[data-tab="browse"],
.tabs button[data-tab="request"],
.tabs button[data-tab="vpn"] {
  flex: 1 1 22.5%;
  width: auto;
}

.tabs button[data-tab="selections"] {
  flex: 1.45 1 32.5%;
  width: auto;
}



/* Capacitor's Android WebView is already inset below the system status bar. The
   browser safe-area remains correct for PWA/iOS, but adding it again in the native
   shell produced the empty purple strip visible above the brand. */
html.native-app {
  --topbar-h: 72px;
}

html.native-app .top-bar {
  padding-top: 12px;
}

@media (max-width: 345px) {
  html.native-app { --topbar-h: 72px; }
}

.order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.order-actions > button {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 14px;
  font-size: 11.5px;
}

.cancel-order-btn {
  color: #ff9aaa;
  background: rgba(255, 82, 122, 0.09);
  border: 1px solid rgba(255, 107, 129, 0.32);
  border-radius: 999px;
  box-shadow: none;
}

.cancel-order-btn:active {
  color: #fff;
  background: rgba(255, 82, 122, 0.2);
}

.cancel-order-btn:disabled { opacity: 0.55; }

/* ==================== detail layout precision pass ====================
   Fact labels vary from one short rating to a long genre list. Inline text with
   padding only looked vertically offset as emoji/font metrics changed. Make every
   capsule a real alignment container and let long labels wrap inside their frame. */
#detail-facts.fact-chips {
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#detail-facts .fact-chip {
  box-sizing: border-box;
  min-height: 34px;
  max-width: 100%;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

#detail-facts .fact-chip-button {
  position: relative;
  min-height: 34px;
}

/* Keep the visible country capsule compact while its invisible hit area remains
   comfortable for a thumb. */
#detail-facts .fact-chip-button::after {
  content: "";
  position: absolute;
  inset: -5px -4px;
}

/* Keep mixed audio labels on one line over narrow mobile posters. Their strong
   colour and border preserve recognition at this compact size. */
.poster-tile .audio-badge-group {
  flex-wrap: nowrap;
  gap: 2px;
  max-width: calc(100% - 10px);
  bottom: 5px;
  left: 5px;
}

.poster-tile .audio-badge {
  min-width: 0;
  padding: 2px 5px;
  font-size: 8.5px;
  line-height: 1.35;
  letter-spacing: -0.15px;
}

/* The close control belongs to the enlarged poster, not to the viewport. Anchoring
   it to this shrink-wrapped dialog keeps it a consistent 8px from the image on
   short, tall and landscape phones. */
.lightbox-dialog {
  position: relative;
  width: fit-content;
  max-width: 92vw;
  max-height: 92dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay .lightbox-dialog > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92vw;
  max-height: 88dvh;
}

.lightbox-overlay .lightbox-dialog > .modal-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  left: auto;
  margin: 0;
  min-width: 48px;
  min-height: 44px;
  padding: 8px 13px;
  background: rgba(11, 12, 21, 0.82);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (orientation: landscape) and (max-height: 560px) {
  .lightbox-overlay .lightbox-dialog > img { max-height: 92dvh; }
  .lightbox-overlay .lightbox-dialog > .modal-close {
    top: 6px;
    right: 6px;
  }
}
/* ---------- polished genre picker ----------
   A predictable grid replaces the uneven wrapping pills. White labels meet dark
   mode contrast targets; the dot + border + check state avoid relying on colour
   alone, and every cell remains a full-size touch target. */
#genre-modal .modal-sheet {
  max-width: 560px;
  background:
    radial-gradient(circle at 88% 4%, rgba(124, 58, 237, 0.2), transparent 34%),
    linear-gradient(160deg, rgba(25, 33, 52, 0.985), rgba(10, 13, 27, 0.99));
  border: 1px solid rgba(167, 139, 250, 0.22);
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.58), 0 0 40px rgba(124, 58, 237, 0.1);
}

#genre-modal #genre-title {
  color: #fff;
  margin-bottom: 3px;
  letter-spacing: -0.02em;
}

.genre-modal-subtitle {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 600;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: min(60vh, 520px);
  padding: 2px 2px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 139, 250, 0.5) transparent;
}

.genre-chip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(31, 38, 59, 0.92), rgba(18, 22, 39, 0.96));
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.35;
  text-align: right;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 7px 18px rgba(0, 0, 0, 0.16);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 120ms ease;
}

.genre-chip__mark {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-soft);
}

.genre-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: linear-gradient(145deg, var(--glass-bg-strong), var(--glass-bg));
}

.genre-chip:active { transform: scale(0.97); }

.genre-chip:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 2px;
}

.genre-chip.active {
  justify-content: center;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--glass-border));
  background: var(--accent-soft);
  color: var(--glass-text);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 18px var(--accent-soft);
}

.genre-chip.active .genre-chip__mark {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  background: transparent;
  box-shadow: inset 0 0 0 3px #8b5cf6, 0 0 12px rgba(255, 255, 255, 0.36);
}

@media (max-width: 560px) {
  #genre-modal {
    padding-bottom: calc(7px + env(safe-area-inset-bottom));
  }
  #genre-modal .modal-sheet {
    padding-inline: 12px;
    border-radius: 22px;
    transform: translateY(-7px);
  }
  .genre-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding-bottom: 16px;
  }
  .genre-chip {
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 6px 5px;
    border-radius: 11px;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
  .genre-chip__mark { flex-basis: 6px; width: 6px; height: 6px; }
}

@media (max-width: 330px) {
  .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .genre-chip { transition: none; }
}
.series-status {
  margin-top: 4px;
  color: #b9c4dc;
  font-size: .72rem;
  line-height: 1.35;
}
.series-status--airing { color: #65e6b4; }
.series-status--ended { color: #aeb7cb; }
.series-status--planned { color: #ffd36d; }

.hero-title-year {
  color: var(--value, #f5c451);
  font-size: .78em;
  font-weight: 850;
  white-space: nowrap;
}

/* Keep the first banner visually tied to the category controls. Both the category
   grid's bottom padding and the hero's top margin used to contribute here, leaving
   a conspicuous empty strip on phones. Preserve a small 3px breathing space only. */
#home-view {
  overflow-x: clip;
  overflow-y: visible;
  min-width: 0;
  max-width: 100%;
}

#home-view > .hero {
  margin-top: 0;
}

@media (max-width: 560px) {
  #category-chips {
    padding-bottom: 3px;
  }
  #home-view > .hero {
    margin-top: 0;
  }
  .hero-slide {
    padding-top: 0;
  }
  .hero-content {
    padding-top: 12px;
  }
  .hero-text h2 {
    max-width: 100%;
    font-size: clamp(15px, 4.4vw, 19px);
    line-height: 1.35;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
}

/* Final browse-toolbar polish: 2 mm is approximately 8 CSS pixels at the standard
   96dpi CSS reference density. This final cascade layer intentionally follows all
   mobile overrides so the spacing and gold treatment stay identical in the APK. */
#home-view > .hero {
  margin-top: 8px;
}

#genre-filter-button,
#sort-button,
#genre-filter-button.active,
#sort-button.active {
  color: var(--value, #f5c451) !important;
  border: 1px solid rgba(245, 196, 81, 0.78) !important;
  background: rgba(245, 196, 81, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(245, 196, 81, 0.08);
}

#genre-filter-button:focus-visible,
#sort-button:focus-visible {
  outline: 2px solid rgba(255, 220, 126, 0.95);
  outline-offset: 2px;
}

#genre-filter-button:active,
#sort-button:active {
  background: rgba(245, 196, 81, 0.16) !important;
}

@media (max-width: 560px) {
  #category-chips {
    padding-bottom: 0;
  }
}

/* ---------- final vertical-rhythm contract ----------
   Home banners, filtered grids, search results and empty states are mutually
   exclusive views, so each owns its leading space. Previously only the hero had
   one; category/search grids started at y=0 inside library-results and their first
   posters touched the category labels. Keep a full 12px rhythm step everywhere. */
#library-results > .grid,
#library-results > .empty-state {
  margin-top: 12px;
}

.person-filter-bar:not(.hidden) {
  margin-bottom: 12px;
}

#library-results > .grid + .pagination,
#pagination:not(:empty) {
  margin-top: 20px;
}

@media (max-width: 560px) {
  #library-results > .grid,
  #library-results > .empty-state {
    margin-top: 12px;
  }
}
.broken-poster-image {
  display: none !important;
}


/* Nothing inside a card influences layout or paint outside it. Saying so lets the
   browser skip the other cards entirely when one of them changes. */
/* Why the per-card controls above carry no backdrop-filter: each one is a separate
   GPU blur pass, they repeat for every card in the feed, and they sit on top of a
   playing video — the one place the phone can least afford it. The blur is kept
   only on the chrome there is exactly one of: the top bar, the tab dock, the sound
   button and the filter pills. */

/* Two badges plus a long title would push the second one off the copy column. */
@media (prefers-reduced-motion:reduce) {
  .pickup-btn::after{animation:none}
}

/* آرش‌ریل: animated discovery accent in the bottom dock. */

/* The pulse is an overlay whose opacity animates, not a border-color/box-shadow
   animation on the button itself. The dock sits above every screen and never
   unmounts, so its old version repainted a strip of the app forever. */


/* Request shortcut replaces the old music genre selector and stays visually
   independent from playback controls. */






/* Four balanced dock destinations after moving Requests into the top shortcut. */
.tabs button[data-tab="browse"],
.tabs button[data-tab="vpn"] { flex:1 1 22%;width:auto; }
.tabs button[data-tab="selections"] { flex:1.45 1 34%;width:auto; }

/* Current cart titles and historical orders must read as two different layers. */





.my-orders { margin-top:16px; }
.orders-head {
  display:flex;
  align-items:center;
  gap:10px;
  margin:24px 0 14px;
  color:#e7dcff;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.orders-head::before,
.orders-head::after {
  content:"";
  height:1px;
  flex:1;
  background:linear-gradient(90deg,transparent,rgba(182,139,255,.58),rgba(93,213,255,.38));
}
.orders-head::after { transform:scaleX(-1); }
.order-card {
  position:relative;
  margin:0 0 13px;
  padding:15px 16px 14px;
  overflow:hidden;
  border-color:rgba(187,160,255,.2);
  background:linear-gradient(145deg,rgba(24,24,42,.96),rgba(12,14,25,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 12px 28px rgba(0,0,0,.26);
}
.order-card::before {
  content:"";
  position:absolute;
  right:0;
  top:12px;
  bottom:12px;
  width:3px;
  border-radius:3px 0 0 3px;
  background:linear-gradient(180deg,#9d72ff,#f467c4);
}
.order-card--pickup::before { background:linear-gradient(180deg,#54d9ff,#5481ff); }
.order-card--ok { border-color:rgba(74,218,142,.2); }
.order-card--bad { opacity:.78; }
.order-card .title-row>b {
  color:#fff;
  padding:4px 9px;
  border-radius:9px;
  background:rgba(255,255,255,.055);
  font-size:11px;
}
.order-item {
  margin-top:8px;
  padding:10px 8px;
  border:1px solid rgba(255,255,255,.055);
  border-radius:11px;
  background:rgba(255,255,255,.025);
}
.order-item-title {
  color:#d9c6ff;
  font-size:12.5px;
  font-weight:850;
  unicode-bidi:plaintext;
  text-align:start;
  text-shadow:0 0 13px rgba(160,113,255,.22);
}
.order-card--pickup .order-item-title { color:#83ddff; }
.order-card--online .order-item-title { color:#f0b7ff; }

@media (max-width:360px) {



  .music-now { flex-basis:72px;padding-inline:6px; }
  .order-card { padding:12px; }
  .status-timeline { font-size:10.5px; }
}


/* Music and Requests are sibling tools: equal-height, separate frames. */
.top-tools-row {
  display:flex;
  align-items:stretch;
  gap:8px;
  margin:8px 0 10px;
}
.top-tools-row .music-bar {
  flex:1 1 auto;
  min-width:0;
  min-height:56px;
  margin:0;
  padding:5px 7px;
  gap:5px;
}
.top-tools-row .music-control {
  flex-basis:40px;
  width:40px;
  height:40px;
  min-height:40px;
}
.top-tools-row .music-play { flex-basis:40px;width:40px;height:40px; }
.top-tools-row .music-now { flex-basis:80px;padding:4px 8px; }
.top-tools-row .music-now b { font-size:11px; }
.top-tools-row .music-now span { font-size:9.5px; }





@media (max-width:360px) {
  .top-tools-row { gap:6px; }
  .top-tools-row .music-bar { gap:3px;padding-inline:4px; }
  .top-tools-row .music-control,
  .top-tools-row .music-play { flex-basis:36px;width:36px;height:36px;min-height:36px; }


}

/* The title frame sits on the same line as the round controls.
   It used to be nudged by three different translateY() hacks stacked on top of each
   other (-3px in the base rule, cancelled to none here, then -1px again), which is
   why it never quite lined up. Matching the controls' 40px box and centring both the
   frame and its two lines of text puts it on the same axis with no offsets at all.
   The line-heights are set on the lines themselves: Persian glyphs carry deep
   descenders, so an inherited 1.35 left the pair sitting visibly low in the frame. */
.top-tools-row .music-now {
  align-self:center;
  justify-content:center;
  height:40px;
  gap:1px;
  line-height:1.2;
}
.top-tools-row .music-now b { line-height:1.2; }
.top-tools-row .music-now span { line-height:1.2; }


/* Keep the original title treatment. Only the obsolete painted lower backdrop is
   removed; the four controls stay above the fixed application navigation. */

/* Seven shelves do not fit across a phone, so the row scrolls sideways. The wrapper
   holds the fade and the hint; the row itself is the scroller. */
/* The region shelves read as a second group, which is itself a cue that the row
   carries on past the edge. */

/* Fade on whichever edge still has content behind it, so the row visibly continues
   rather than ending flush with the screen. */




/* ---------------------------------------------------------------------------
   The shelf row. Eight chips, scrolled sideways, and dressed so it reads as a
   short structured row rather than a long undifferentiated wall.
   --------------------------------------------------------------------------- */

/* The selected shelf carries real weight; everything else steps back so the eye
   lands on it first instead of scanning all eight. */

/* The regions are a second group. A cooler accent when selected says so without
   adding another word to a row that is already long. */

/* A hairline between the content types and the regions. Structure, and a quiet
   promise that the row continues. */

/* The sliding indicator belonged to the four-column grid; the chips carry their own
   selected state now, and leaving it in drew a pill over the wrong one. */

/* The edge marker. It used to sit at the bottom of the wrapper, behind the chips,
   which is why it could not be seen - so it is centred on the fade instead, above
   the scroller, exactly where the row runs off the screen. */


/* The slider now supplies the fill and glow behind whichever pill is active — kept
   here as its own rule (rather than folded into the .active rule above) so it wins
   by simply coming later, without touching that rule's own text-colour transition. */

/* A one-shot burst on the like button's own circular backdrop — replayed on every
   tap that results in a like (see the `like-burst` class toggle in app.js), not
   tied to the persistent `.liked` state so it reads as a response to *this* tap
   rather than a static badge. */

/* ---------- music player polish ----------
   Two jobs here: settle the mini bar so the title frame reads as part of the same
   row as the round controls, and give the full-screen sheet the finish the rest of
   the app already has. No layout offsets — alignment is handled where the frame is
   sized, further up. */

/* The frame now reads as a recessed "screen" the title sits inside, instead of a
   flat panel that happened to be a slightly different shade of the bar. */
.top-tools-row .music-now {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 62%),
    rgba(4, 6, 16, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  transition: border-color .22s ease, background .22s ease;
}
.top-tools-row .music-now:active { border-color: rgba(196, 176, 255, 0.42); }
.music-bar.is-playing .music-now { border-color: rgba(174, 143, 255, 0.36); }
.music-bar.is-playing .music-now b { color: #f3ecff; }

/* The play button carries the state, so it is the one control that lights up. */
.music-bar.is-playing .music-play {
  color: #fff;
  background: linear-gradient(150deg, rgba(150, 99, 255, 0.95), rgba(108, 66, 214, 0.9));
  box-shadow: 0 0 0 1px rgba(196, 168, 255, 0.32), 0 6px 18px rgba(116, 70, 232, 0.42);
}

/* ---- full-screen sheet ---- */
/* The artwork tile was a static gradient square. Slowly drifting the highlight makes
   the sheet feel alive while a track plays, and it costs one compositor-only frame. */
.music-modal-art-lift .music-player-art,
.music-player-art { transition: transform .4s ease, box-shadow .4s ease; }
#music-modal.is-playing .music-player-art {
  animation: musicArtBreathe 4.5s ease-in-out infinite;
  box-shadow: 0 22px 56px rgba(112, 71, 232, .46), inset 0 1px 0 rgba(255, 255, 255, .3);
}
@keyframes musicArtBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.02); }
}

.music-player-heading h2 {
  line-height: 1.45;
  letter-spacing: -.2px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}
.music-player-heading > span {
  display: inline-block;
  padding: 3px 11px;
  border: 1px solid rgba(185, 156, 255, .3);
  border-radius: 99px;
  background: rgba(146, 108, 255, .14);
  letter-spacing: .2px;
}

/* A taller track with a soft glow on the filled part reads as a real progress bar
   and is easier to hit with a thumb than the old 5px hairline. */
.music-timeline input {
  height: 7px;
  background: linear-gradient(90deg, #b48cff var(--music-progress, 0%), rgba(255, 255, 255, .12) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.music-timeline input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  box-shadow: 0 2px 10px rgba(93, 55, 210, .8), 0 0 0 4px rgba(140, 92, 255, .16);
}
.music-timeline > div { font-size: 10.5px; font-variant-numeric: tabular-nums; }

/* The three transport controls were the same weight, so the play button did not
   read as the primary action it is. */
.music-player-controls .music-control {
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .05);
}
.music-player-controls .music-play {
  border: 0;
  background: linear-gradient(150deg, #9a68ff, #6c42d6);
  box-shadow: 0 10px 26px rgba(108, 66, 214, .45), inset 0 1px 0 rgba(255, 255, 255, .26);
}
.music-player-controls .music-control:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  #music-modal.is-playing .music-player-art { animation: none; }
  .music-player-controls .music-control:active { transform: none; }
}

/* ---------- home-screen music strip ----------
   The bar next to «درخواست‌ها» was four grey circles and a small label — it read as
   a toolbar, not as something playing. Three changes give it an identity without
   taking a single pixel from the title, which is the scarcest thing in this row:
   the play control becomes an artwork tile, that tile shows a live equaliser while
   audio plays, and the foot of the bar carries the playback position. */

.top-tools-row .music-bar { position: relative; overflow: hidden; }

/* Artwork tile. Same 40px box as before, so the row's alignment is untouched —
   only the shape, fill and contents change. */
.top-tools-row .music-play {
  position: relative;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(245, 139, 193, 0.42) 0%, rgba(228, 90, 168, 0.22) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 236, 0.26),
    0 5px 14px rgba(245, 139, 193, 0.28);
}
.top-tools-row .music-play:disabled {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  opacity: .55;
}
.top-tools-row .music-play svg { position: relative; z-index: 1; }

/* Equaliser: hidden until something is actually playing, and it replaces the glyph
   rather than sitting beside it, so the tile never looks crowded. */
.music-eq {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2.5px;
}
.music-eq i {
  width: 2.5px;
  height: 7px;
  border-radius: 2px;
  background: #fff;
  transform-origin: center bottom;
}
.music-bar.is-playing .music-play svg { opacity: 0; }
.music-bar.is-playing .music-eq { display: flex; }
.music-bar.is-playing .music-eq i { animation: musicEqBounce .9s ease-in-out infinite; }
/* Staggered so the four bars never move as one block. */
.music-bar.is-playing .music-eq i:nth-child(1) { animation-delay: -.62s; }
.music-bar.is-playing .music-eq i:nth-child(2) { animation-delay: -.28s; }
.music-bar.is-playing .music-eq i:nth-child(3) { animation-delay: -.45s; }
.music-bar.is-playing .music-eq i:nth-child(4) { animation-delay: -.1s; }
@keyframes musicEqBounce {
  0%, 100% { transform: scaleY(.55); }
  50% { transform: scaleY(2.05); }
}

/* Playback position. Sits on the bar's own bottom edge, clipped by the overflow
   above so it follows the rounded corners instead of cutting across them. */
.music-progress-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.music-progress-line::after {
  content: "";
  display: block;
  width: var(--music-progress, 0%);
  height: 100%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #7ce1ff, #b48cff 62%, #ff8ad4);
  box-shadow: 0 0 9px rgba(150, 120, 255, 0.75);
  transition: width .25s linear;
}
/* Nothing loaded yet — an empty rail is noise on a bar that isn't playing. */
.music-bar:not(.is-playing) .music-progress-line { opacity: .45; }

@media (max-width: 360px) {
  .music-eq i { width: 2px; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .music-bar.is-playing .music-eq i { animation: none; transform: scaleY(1.25); }
  .music-progress-line::after { transition: none; }
}


/* The icon tile loses its frame and becomes just the glyph. */
/* Under a heart, the number is the label — the word adds nothing. */

/* The view count, sitting under the sound control. It is a fact, not a control, so
   it takes the rail's shape but none of its press behaviour. */
/* Like the heart, the number is the label down here. */

/* IMDb rating, beside the year. Same pill geometry as the year so the meta line
   reads as one row; the yellow is IMDb's own, which is what makes it recognisable
   at this size without writing out more than the four letters. */

/* دوبله/زیرنویس moved down here from the title line, so it no longer needs the
   margin that separated it from the title, and it sizes with its new neighbours. */

/* The copy column steps aside for the rail instead of running under it. Measured:
   the rail ends at 62px, so this leaves a real gutter rather than letting the title
   sit flush against the icons. */

/* The one filled control on the screen: the action that earns the shop money. */
/* The «مشاهده» chip was there to stand out against a translucent button; on a solid
   white one it is just a second badge saying the same thing. */

/* The filter row follows the same rule: the selected one is solid, the rest recede.
   It used to be drawn by a white pill sliding behind a row of glassy chips, which
   worked when there were four of them in a fixed grid. With eight chips on a
   scroller the pill has to chase a moving target, and a chip half off-screen was
   getting the highlight, so each chip carries its own state now and the slider is
   retired. The rules that dress them live with the rest of the shelf row above;
   what remains here is the resting look they share. */


/* Now that the copy sits over the picture rather than on black, it needs its own
   gradient behind it to stay readable against a bright frame. */

/* The order button lives in the side rail, so the wide white one under the title was
   a second control for the same action. Removed — the rail keeps «سفارش», and the
   title block drops into the space it leaves. */


/* Both columns move down into the room this frees, so the title and the rail sit
   near the foot of the picture rather than floating above a dark strip. */

/* The meta line kept a 12px margin underneath it — room for the order button that
   used to sit there and has since moved to the rail. With that gone, and the last
   few pixels of the card's own margin, the title block drops to the foot of the
   picture instead of hovering above an empty gap. */

/* ---------- home strip: the same treatment the reel controls got ----------
   This row carried the identical dated signature: a purple 34px drop-shadow on every
   control, a gradient fill on each one, and a lavender border around the whole bar,
   so five separate objects all shouted at once.

   Same rules as the reel: no coloured glow, no gradient fills, transport glyphs sit
   bare, and exactly one control is filled — the one you actually press. */

.top-tools-row .music-bar {
  border:1px solid rgba(255, 255, 255, .09);
  background:rgba(255, 255, 255, .035);
  box-shadow:none;
}
.top-tools-row .music-bar:focus-within {
  border-color:rgba(255, 255, 255, .2);
  box-shadow:none;
}

/* Previous / next lose their discs and become just the glyph. */
.top-tools-row .music-control {
  border:0;
  background:none;
  box-shadow:none;
  color:rgba(255, 255, 255, .92);
}
.top-tools-row .music-control:disabled { opacity:.32; }
.top-tools-row .music-control svg { filter:drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }

/* Play is the one filled control on the strip, so it is the only one with a fill:
   solid white, dark glyph — the same rule the reel's order button follows. */
.top-tools-row .music-play {
  border:0;
  border-radius:12px;
  color:#0c0b10;
  background:#fff;
  box-shadow:0 4px 14px rgba(0, 0, 0, .38);
}
.top-tools-row .music-play:disabled {
  color:rgba(255, 255, 255, .6);
  background:rgba(255, 255, 255, .08);
  box-shadow:none;
}
/* The equaliser bars follow the button's own colour, or they would vanish on white. */
.music-eq i { background:currentColor; }

/* The title is text on the bar, not a panel inside it. */
.top-tools-row .music-now {
  border:0;
  background:none;
  box-shadow:none;
}
.music-bar.is-playing .music-now { border:0; }

/* Position reads better as a plain white line than a three-colour gradient. */
.music-progress-line::after {
  background:#fff;
  box-shadow:none;
}

/* The requests shortcut is a peer of the bar, so it gets the same quiet surface. */




/* ========================================================================== 
   2026 spatial cinema layer
   ========================================================================== 
   Progressive enhancement: the material system is available everywhere; pointer
   tilt is enabled by app.js only for fine pointers and never for reduced motion.
   No WebGL dependency is shipped, so first paint and scrolling stay inexpensive. */
:root {
  --space-3d: 1100px;
  --spatial-ease: cubic-bezier(.16,1,.3,1);
  --glass-highlight: rgba(255,255,255,.12);
  --glass-depth: rgba(5,7,17,.72);
  --spectral-violet: #f58bc1;
  --spectral-cyan: #e45aa8;
  --spectral-pink: #ffb3dc;
  --elevation-float: 0 24px 70px rgba(0,0,0,.42), 0 2px 0 rgba(255,255,255,.06) inset;
}

/* Ambient aurora is made from existing, non-semantic layers. It adds dimensional
   atmosphere without a canvas, network request or continuous JavaScript loop. */
.bg-glow-3,
.bg-glow-4 {
  opacity:.08;
  filter:blur(90px) saturate(1.05);
  transform:translate3d(0,0,0);
  animation:spatialAurora 18s ease-in-out infinite alternate;
}
.bg-glow-4 { animation-duration:23s; animation-direction:alternate-reverse; }
@keyframes spatialAurora {
  0% { transform:translate3d(-3vw,-1vh,0) scale(.94); }
  55% { transform:translate3d(4vw,3vh,0) scale(1.08); }
  100% { transform:translate3d(-1vw,6vh,0) scale(1); }
}

/* The main chrome behaves as one laminated sheet. A top specular edge and a quiet
   lower shadow communicate depth without drawing another visible frame. */
.top-bar,
.top-tools-row .music-bar,
.search-row--compact,
.tabs {
  border-color:color-mix(in srgb,var(--glass-highlight) 68%,transparent);
  background-image:
    linear-gradient(145deg,rgba(255,255,255,.06),rgba(255,255,255,.02) 42%,rgba(28,34,48,.08)),
    linear-gradient(180deg,rgba(26,29,36,.88),rgba(20,22,28,.86));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 18px 48px rgba(0,0,0,.3);
  backdrop-filter:blur(22px) saturate(1.35);
  -webkit-backdrop-filter:blur(22px) saturate(1.35);
}

html[data-theme="light"] .top-bar,
html[data-theme="light"] .top-tools-row .music-bar,
html[data-theme="light"] .search-row--compact,
html[data-theme="light"] .tabs {
  background-image:
    linear-gradient(145deg,rgba(255,255,255,.92),rgba(247,248,250,.88));
  box-shadow: 0 10px 28px rgba(28, 33, 48, 0.08);
  border-color: var(--surface-border);
}

html[data-theme="light"] .top-bar .app-name {
  color: var(--text);
}

.brand-icon,
.logo-orb {
  transform:translateZ(22px);
  filter: drop-shadow(0 10px 22px var(--accent-soft));
}

/* Posters have an optical coating: a narrow inner edge, soft spectral reflection
   and foreground badges at distinct Z planes. The reflection is driven by two CSS
   variables only while the pointer is over the card. */
.poster-card,
.hero-slide,
.login-card {
  --tilt-x:0deg;
  --tilt-y:0deg;
  --tilt-x-soft:0deg;
  --tilt-y-soft:0deg;
  --shine-x:50%;
  --shine-y:18%;
  transform-style:preserve-3d;
  backface-visibility:hidden;
}

.poster-tile {
  transform:translateZ(0);
  border:1px solid rgba(255,255,255,.105);
  box-shadow:var(--elevation-float);
}

.poster-tile::before {
  content:"";
  position:absolute;
  z-index:5;
  inset:0;
  border-radius:inherit;
  background:
    radial-gradient(circle at var(--shine-x) var(--shine-y),rgba(255,255,255,.24),rgba(255,255,255,.055) 16%,transparent 38%),
    linear-gradient(125deg,rgba(85,221,255,.08),transparent 30%,transparent 68%,rgba(255,114,200,.07));
  opacity:.24;
  mix-blend-mode:screen;
  pointer-events:none;
  transition:opacity 260ms ease;
}

.poster-info { transform:translateZ(22px); }
.poster-tile .kind-badge,
.poster-tile .audio-badge-group { transform:translateZ(30px); }

/* IMDb keeps its original diagonal ribbon. Giving every badge translateZ replaced
   this element's rotate(-45deg), turning the ribbon into a flat horizontal label. */
.poster-tile .rating-badge { transform:rotate(-45deg); }

.spatial-ui .poster-card,
.spatial-ui .hero-slide,
.spatial-ui .login-card {
  transition:transform 420ms var(--spatial-ease),filter 260ms ease,box-shadow 260ms ease;
}
.spatial-ui .poster-card.depth-active {
  z-index:3;
  transform:perspective(var(--space-3d)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-5px) scale(1.018);
}
.spatial-ui .poster-card.depth-active .poster-tile::before { opacity:.72; }
.spatial-ui .hero-slide.depth-active,
.spatial-ui .login-card.depth-active {
  transform:perspective(1500px) rotateX(var(--tilt-x-soft)) rotateY(var(--tilt-y-soft));
}

/* Active controls use an iPhone-pink glass tint instead of a neon rim. */
.genre-btn.active,
.sort-btn.active,
.tabs button.active {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--glass-border));
  background:
    linear-gradient(180deg, var(--glass-highlight), transparent 52%),
    var(--accent-soft);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 18px var(--accent-soft);
}

.home-row .row-head h3,
.section-head span,
.tab-icon-title span {
  text-wrap:balance;
  text-shadow:0 8px 28px rgba(0,0,0,.35);
}

/* Larger viewports gain space and depth, but keep the same information structure. */
@media (min-width:900px) {
  #screen-app { perspective:1800px; }
  .hero { border-radius:0 0 28px 28px; overflow:hidden; }
  .home-row { content-visibility:auto; contain-intrinsic-size:300px; }
  .poster-card { contain:layout paint style; }
}

html[data-theme="light"] {
  --glass-highlight: rgba(255, 255, 255, 0.94);
  --glass-depth: rgba(255, 255, 255, 0.78);
  --elevation-float: 0 22px 48px rgba(28, 33, 48, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
html[data-theme="light"] .top-tools-row .music-bar,
html[data-theme="light"] .tabs {
  background-image:
    linear-gradient(145deg,rgba(255,255,255,.96),rgba(245,244,255,.82) 56%,rgba(224,235,255,.78));
  box-shadow:inset 0 1px 0 #fff,0 16px 38px rgba(49,50,88,.14);
}
html[data-theme="light"] .poster-tile::before { mix-blend-mode:soft-light; }

@property --request-ring-angle {
  syntax:"<angle>";
  inherits:false;
  initial-value:0deg;
}
@keyframes requestRingSpin {
  to { --request-ring-angle:360deg; }
}



/* Older Android WebViews and a few iOS releases composite sticky backdrop filters
   as a milky layer. These two controls are the first layers on screen, so use an
   opaque cinematic surface on touch devices: visually identical, but independent
   of GPU blur and of the phone's light/dark preference. */
@media (hover:none), (pointer:coarse) {
  html[data-theme="dark"] .top-bar,
  html[data-theme="dark"] .search-row--compact {
    background-color:#10121e;
    background-image:linear-gradient(145deg,#18172b,#10121e 58%,#171226);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 14px 34px rgba(0,0,0,.34);
  }
}

@media (prefers-reduced-motion:reduce) {
  .bg-glow-3,
  .bg-glow-4 { animation:none!important; }
  .poster-card,
  .hero-slide,
  .login-card { transform:none!important; transition:none!important; }
  .poster-tile::before { opacity:.18; transition:none; }

}

@media (hover:none),(pointer:coarse) {
  /* Static depth is still visible; pointer-only compositing is not allocated. */
  .poster-card { transform:none; }
  .poster-tile::before { opacity:.2; }
}

/* Some mobile WebViews inherited the reel title's gold text paint into the side
   rail. Pin every action glyph, label and counter to white at the final cascade
   layer; the selected heart remains the one intentional state colour. */

/* mobile header clipping hotfix
   The masthead used to share width with the uncensored pill. The brand then had
   min-width:0 + ellipsis, so "آرش مووی" became "کلوپ آر…". Genre/sort buttons
   were allowed to shrink (flex-shrink + max-width:33%) with ellipsis on their
   labels, so "ژانر" became "ژ…". The theme control stayed an icon-btn circle
   whose sun glyph had no stroke, so it read as an empty tap target.
   Theme cycling stays on this header button; only the empty-circle look goes. */
.top-bar .brand {
  flex: 1 1 0;
  min-width: 0;
  justify-content: flex-start;
  overflow: hidden;
}

.top-bar .app-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#theme-button,
#profile-button,
#notify-button {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

#theme-button svg,
#profile-button svg,
#notify-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-dim);
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 560px) {
  #theme-button,
  #profile-button,
  #notify-button,
  #logout-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.075);
  }

  #theme-button svg,
  #profile-button svg,
  #notify-button svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
  }

  .genre-btn,
  #genre-filter-button,
  #sort-button {
    flex: 0 0 auto;
    max-width: none;
  }

  .genre-btn span {
    overflow: visible;
    text-overflow: unset;
    flex-shrink: 0;
  }

  #category-chips .chip {
    overflow: visible;
    text-overflow: unset;
  }
}

/* light theme visibility hotfix
   Mobile contrast passes painted search, tabs, chips, music and chrome with
   hardcoded #fff / dark fills and were not scoped to html[data-theme="dark"].
   Light surfaces then inherited white text. Keep white only on dark/accent fills. */
html[data-theme="light"] .top-bar,
html[data-theme="light"] .search-row--compact,
html[data-theme="light"] .card,
html[data-theme="light"] .music-bar,
html[data-theme="light"] .tabs {
  color: var(--text-primary);
  border-color: var(--border);
}

html[data-theme="light"] .top-bar,
html[data-theme="light"] .search-row--compact {
  background-color: var(--surface-solid);
  background-image: none;
}

html[data-theme="light"] .search-clear {
  background: rgba(32, 24, 64, 0.06);
  color: var(--text-primary);
}


html[data-theme="light"] .search-row--compact input,
html[data-theme="light"] .search-row--compact input::placeholder,
html[data-theme="light"] .search-clear,
html[data-theme="light"] .genre-btn,
html[data-theme="light"] .genre-btn span,
html[data-theme="light"] .section-head,
html[data-theme="light"] .row-head h3,
html[data-theme="light"] .poster-title,
html[data-theme="light"] .poster-meta,
html[data-theme="light"] .poster-reason,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .empty-state b,
html[data-theme="light"] .empty-state span,
html[data-theme="light"] .music-now b,
html[data-theme="light"] .music-now span,
html[data-theme="light"] .tabs button {
  color: var(--text-primary);
}

html[data-theme="light"] .search-row--compact input::placeholder,
html[data-theme="light"] .music-now span,
html[data-theme="light"] .poster-meta,
html[data-theme="light"] .poster-reason,
html[data-theme="light"] .empty-state span,
html[data-theme="light"] .row-more {
  color: var(--text-secondary);
}

html[data-theme="light"] .search-icon,
html[data-theme="light"] .genre-btn .ui-icon,
html[data-theme="light"] .tabs button svg,
html[data-theme="light"] #logout-button svg,
html[data-theme="light"] #theme-button svg,
html[data-theme="light"] #profile-button svg,
html[data-theme="light"] #notify-button svg,
html[data-theme="light"] .section-head .ui-icon {
  color: var(--icon);
  stroke: var(--icon);
  fill: none;
}

html[data-theme="light"] .music-bar {
  background: var(--surface-solid);
  color: var(--text-primary);
}

html[data-theme="light"] .music-control {
  color: var(--icon) !important;
  background: var(--surface-elevated);
}

html[data-theme="light"] .music-control svg {
  stroke: var(--icon) !important;
}

html[data-theme="light"] .music-play {
  color: var(--on-accent);
  background: var(--accent-gradient);
}

html[data-theme="light"] .tabs {
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .tabs button.active {
  color: var(--text-primary);
}

html[data-theme="light"] .chip {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--border);
}

html[data-theme="light"] .chip.active {
  color: var(--on-accent);
  background: var(--accent-gradient);
  border-color: transparent;
}

html[data-theme="light"] #theme-button,
html[data-theme="light"] #profile-button,
html[data-theme="light"] #logout-button,
html[data-theme="light"] button.icon-btn,
html[data-theme="light"] button.secondary {
  color: var(--text-primary);
  border-color: var(--border);
  background: var(--surface-elevated);
}

html[data-theme="light"] input,
html[data-theme="light"] textarea {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--border);
}

html[data-theme="light"] .modal,
html[data-theme="light"] .modal-info,
html[data-theme="light"] .toast,
html[data-theme="light"] .sort-option,
html[data-theme="light"] .sort-filter-option,
html[data-theme="light"] .person-filter-bar,
html[data-theme="light"] .person-filter-text {
  color: var(--text-primary);
}

@media (max-width: 560px) {
  html[data-theme="light"] #logout-button,
  html[data-theme="light"] #logout-button svg,
  html[data-theme="light"] #theme-button svg,
  html[data-theme="light"] #profile-button svg,
  html[data-theme="light"] .search-row--compact,
  html[data-theme="light"] .search-row--compact input,
  html[data-theme="light"] .search-row--compact .search-icon,
  html[data-theme="light"] .genre-btn,
  html[data-theme="light"] .genre-btn .ui-icon,
  html[data-theme="light"] .tabs button,
  html[data-theme="light"] .tabs button svg,
  html[data-theme="light"] .tabs button span {
    color: var(--text-primary) !important;
    stroke: var(--icon);
  }

  html[data-theme="light"] .search-row--compact input::placeholder {
    color: var(--text-muted) !important;
    opacity: 1;
  }

  html[data-theme="light"] #logout-button,
  html[data-theme="light"] #theme-button,
  html[data-theme="light"] #profile-button {
    border-color: var(--border) !important;
    background: var(--surface-elevated) !important;
  }

  html[data-theme="light"] #theme-button svg,
  html[data-theme="light"] #profile-button svg {
    stroke: var(--icon) !important;
  }

  html[data-theme="light"] .genre-btn {
    border-color: var(--border) !important;
    background: var(--surface-elevated) !important;
    color: var(--text-primary) !important;
  }

  html[data-theme="light"] #category-chips .chip {
    color: var(--text-primary);
    background: var(--surface-solid);
    border-color: var(--border);
  }

  html[data-theme="light"] #category-chips .chip.active {
    color: var(--on-accent);
    background: var(--accent-gradient);
    border-color: transparent;
  }

  html[data-theme="light"] .tabs button:not(.active) svg {
    stroke: var(--icon) !important;
  }

  html[data-theme="light"] .tabs button.active,
  html[data-theme="light"] .tabs button.active span {
    color: var(--text-primary) !important;
  }
}

@media (hover:none), (pointer:coarse) {
  html[data-theme="light"] .top-bar,
  html[data-theme="light"] .search-row--compact {
    background-color: var(--surface-solid);
    background-image: none;
    box-shadow: var(--shadow-1);
  }
}

html[data-theme="light"] .mood-chip {
  color: var(--text-primary);
  background: var(--surface-solid);
  border-color: var(--border);
}

/* Phase 37 — unified content detail sheet */
.detail-sheet {
  max-width: 560px;
  overflow-x: hidden;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.detail-hero {
  margin: -6px -18px 14px;
  height: 148px;
  background-color: var(--surface-solid, #1e222b);
  background-size: cover;
  background-position: center;
  border-radius: 0;
  position: relative;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface-solid, #11131d) 0%, rgba(17, 19, 29, 0.15) 55%, rgba(17, 19, 29, 0.35) 100%);
}

.detail-hero--from-poster {
  filter: none;
  background-size: cover;
}

#detail-title,
#detail-title-fa,
#detail-original {
  overflow-wrap: anywhere;
  word-break: break-word;
  unicode-bidi: plaintext;
  max-width: 100%;
}

#detail-title {
  font-size: 18px;
  line-height: 1.45;
}

.detail-original {
  margin: -2px 0 8px;
  color: var(--text-muted, var(--text-dim));
  font-size: 12.5px;
  font-weight: 600;
}

.detail-availability {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary, var(--text-dim));
}

.detail-availability.is-missing {
  color: var(--warning, #d4a017);
}

.detail-trailer-button {
  margin-top: 10px;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary, var(--text));
  background: transparent;
  border: 1px solid var(--border, var(--surface-border));
  box-shadow: none;
}

#detail-facts.fact-chips {
  gap: 6px;
}

#detail-facts .fact-chip,
#detail-facts .fact-chip--runtime,
#detail-facts .fact-chip--episodes,
#detail-facts .fact-chip--audio,
#detail-facts .fact-chip--rating,
#detail-facts .fact-chip--genres,
#detail-facts .fact-chip--quality,
#detail-facts .fact-chip--country,
#detail-facts .fact-chip--year,
#detail-facts .fact-chip--genre,
#detail-facts .fact-chip--season {
  background: var(--surface-elevated, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border, var(--surface-border));
  color: var(--text-secondary, var(--text-dim));
  font-weight: 650;
  white-space: nowrap;
}

.detail-year {
  background: var(--surface-elevated, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--border, var(--surface-border));
  color: var(--text-primary, var(--text));
  box-shadow: none;
}

.detail-dna {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 2px;
}

.detail-dna-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary, var(--text));
  background: transparent;
  border: 1px solid var(--accent);
}

#detail-people .people-names {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

#detail-people .people-names::-webkit-scrollbar { display: none; }

.detail-overview-card {
  background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, var(--surface-border));
  box-shadow: none;
}

.detail-overview-card::before {
  background: var(--accent);
  box-shadow: none;
  width: 2px;
  opacity: 0.7;
}

.detail-overview-label {
  color: var(--text-secondary, var(--text-dim));
}

#detail-overview {
  color: var(--text-primary, var(--text));
  max-width: 62ch;
}

#detail-overview.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}

#detail-overview.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.detail-overview-more {
  margin-top: 8px;
  min-height: 32px;
  padding: 0 4px;
  width: auto;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.detail-series {
  margin-top: 16px;
}

.detail-seasons-label {
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-secondary, var(--text-dim));
}

.detail-seasons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.detail-seasons::-webkit-scrollbar { display: none; }

.detail-season-btn {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary, var(--text));
  background: var(--surface-elevated, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border, var(--surface-border));
  box-shadow: none;
}

.detail-season-btn.is-active {
  color: var(--on-accent, #fff);
  background: var(--accent);
  border-color: var(--accent);
}

.detail-episodes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.detail-episode {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border, var(--surface-border));
}

.detail-episode-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted, var(--text-dim));
}

.detail-episode-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.detail-episode-runtime,
.detail-episode-avail {
  font-size: 11px;
  font-weight: 650;
  color: var(--text-secondary, var(--text-dim));
  white-space: nowrap;
}

.detail-episode--empty {
  grid-template-columns: 1fr;
  color: var(--text-muted, var(--text-dim));
}

.detail-cta-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 16px -18px -8px;
  padding: 12px 18px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--surface-solid, #11131d) 70%, transparent);
}

.detail-cta-bar .detail-action-wrap {
  margin-top: 0;
  width: 100%;
}



.detail-cta-bar .select-hint {
  max-width: none;
  font-size: 11px;
  background: none;
  -webkit-text-fill-color: var(--text-muted, var(--text-dim));
  color: var(--text-muted, var(--text-dim));
}

.detail-skeleton {
  height: 18px;
  margin: 10px 0;
  border-radius: 8px;
  background: var(--surface-elevated, rgba(255, 255, 255, 0.08));
}

@media (max-width: 560px) {
  #detail-modal .modal-sheet.detail-sheet {
    max-width: 100%;
    max-height: 96vh;
    border-radius: 18px 18px 0 0;
  }
  .detail-hero { height: 132px; }
}

@media (max-width: 360px) {
  #detail-modal .modal-sheet.detail-sheet {
    overflow-x: hidden;
    padding-inline: 12px;
  }
  .detail-hero { margin-inline: -12px; }
  .detail-cta-bar { margin-inline: -12px; padding-inline: 12px; }
  .modal-poster { width: 96px; }
  #detail-title { font-size: 16px; }
  .detail-episode {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
  }
  .detail-episode-runtime { display: none; }
}

@media (min-width: 760px) {
  #detail-modal .modal-sheet.detail-sheet {
    max-width: 720px;
    border-radius: 22px;
    max-height: 90vh;
  }
  .detail-hero { height: 200px; border-radius: 18px 18px 0 0; margin-top: -8px; }
  #detail-overview.is-clamped { -webkit-line-clamp: 12; }

}

html[data-theme="light"] .detail-sheet,
html[data-theme="light"] #detail-modal .modal-sheet.detail-sheet {
  background: var(--surface-solid);
  color: var(--text-primary);
}

html[data-theme="light"] .detail-hero::after {
  background: linear-gradient(to top, var(--surface-solid) 0%, rgba(255, 255, 255, 0.2) 60%, rgba(0, 0, 0, 0.2) 100%);
}

html[data-theme="light"] #detail-title,
html[data-theme="light"] #detail-overview,
html[data-theme="light"] .detail-original,
html[data-theme="light"] .detail-availability,
html[data-theme="light"] .detail-overview-label,
html[data-theme="light"] .person-chip,
html[data-theme="light"] .detail-season-btn,
html[data-theme="light"] .detail-episode-title {
  color: var(--text-primary);
  text-shadow: none;
}

html[data-theme="light"] #detail-facts .fact-chip,
html[data-theme="light"] .detail-year,
html[data-theme="light"] .detail-episode,
html[data-theme="light"] .detail-season-btn {
  background: var(--surface-elevated);
  border-color: var(--border);
  color: var(--text-primary);
}

html[data-theme="light"] .detail-season-btn.is-active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

html[data-theme="light"] .detail-cta-bar {
  background: linear-gradient(to top, var(--surface-solid) 70%, transparent);
}

html[data-theme="light"] .detail-overview-card {
  background: var(--surface-elevated);
  border-color: var(--border);
}

html[data-theme="system"] .detail-sheet {
  background: var(--surface-solid);
}

/* ---------- Phase 39 customer profile ---------- */
#preference-prompt {
  background: linear-gradient(135deg, rgba(224,155,138,0.16), rgba(75,107,255,0.1));
  border: 1px solid rgba(245, 139, 193, 0.28);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#preference-prompt.hidden { display: none; }

#preference-prompt span { flex: 1; min-width: 0; }

.preference-prompt-actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

#preference-prompt button {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

:is(#profile-modal, #tab-selections) .profile-sheet {
  max-width: 560px;
  max-height: 90vh;
}

.profile-subtitle,
.profile-hint {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
}

.profile-hint { margin-top: -6px; font-size: 12px; font-weight: 500; }

.profile-section { margin-bottom: 18px; }

.profile-section h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
}

.pref-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pref-chip-grid--single { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.pref-chip {
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.pref-chip.active {
  border-color: transparent;
  background: var(--accent-gradient);
  color: #fff;
}

.profile-notify-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-notify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.profile-notify-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.profile-save-status {
  min-height: 20px;
  margin: 4px 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.profile-save-status.is-ok { color: #8ee0b0; }
.profile-save-status.is-error { color: var(--danger); }
.profile-save-status.is-pending { color: var(--text-dim); }

#profile-save-button {
  margin-top: 4px;
  font-weight: 800;
}

#profile-save-button:disabled { opacity: 0.65; }

.profile-reset {
  margin-top: 8px;
}

#profile-phone {
  opacity: 0.85;
}

@media (max-width: 360px) {
  .pref-chip-grid,
  .pref-chip-grid--single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(#profile-modal, #tab-selections) .profile-sheet { padding-bottom: 28px; }
  #preference-prompt {
    flex-wrap: wrap;
  }
  .preference-prompt-actions { width: 100%; }
  .preference-prompt-actions button { flex: 1; }
  .top-bar {
    overflow-x: hidden;
    gap: 6px;
    padding-inline: 14px;
  }
  .top-bar-actions { gap: 4px; }
  .top-bar .brand { gap: 6px; }
  .top-bar .brand-icon { width: 36px; height: 36px; }
  .top-bar .app-name { font-size: 16px; }
  #theme-button,
  #profile-button,
  #notify-button,
  #logout-button {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  #notify-panel .notify-sheet {
    overflow-x: hidden;
    padding-inline: 12px;
  }
  .notify-row {
    grid-template-columns: 32px minmax(0, 1fr) 8px;
    padding: 8px 4px;
  }
  .notify-read-all { font-size: 11px; padding: 6px 8px; }
  .poster-reason { overflow-wrap: anywhere; }
}

html[data-theme="light"] #preference-prompt,
html[data-theme="light"] .profile-notify-row,
html[data-theme="light"] .pref-chip {
  background: var(--surface-elevated);
  border-color: var(--border);
  color: var(--text-primary);
}

html[data-theme="light"] .profile-section h3,
html[data-theme="light"] .profile-subtitle,
html[data-theme="light"] .profile-hint,
html[data-theme="light"] #profile-title {
  color: var(--text-primary);
}

html[data-theme="light"] .pref-chip.active {
  color: var(--on-accent);
  background: var(--accent-gradient);
  border-color: transparent;
}

html[data-theme="light"] .profile-save-status.is-ok { color: #1f7a46; }

html[data-theme="system"] .pref-chip,
html[data-theme="system"] .profile-notify-row {
  color: var(--text-primary);
}

html[data-theme="system"] .poster-reason {
  color: var(--text-secondary);
}

/* Phase 42 — customer notification inbox. Compact rows, not large cards. */
.top-bar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

#notify-button {
  position: relative;
}

.notify-badge {
  position: absolute;
  top: -3px;
  inset-inline-start: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger, #ff6b81);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.notify-overlay {
  z-index: 62;
}

.notify-sheet {
  max-width: 480px;
  max-height: min(72vh, 560px);
  padding: 14px 14px 22px;
}

.notify-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.notify-sheet-head h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
  font-weight: 800;
}

.notify-read-all {
  flex: 0 0 auto;
  width: auto;
  min-height: 34px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}

.notify-sheet-head .modal-close {
  margin: 0;
}

.notify-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notify-empty {
  margin: 28px 0;
  text-align: center;
  color: var(--text-dim, var(--text-secondary));
  font-weight: 700;
}

.notify-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 10px;
  align-items: start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: start;
  box-shadow: none;
  cursor: pointer;
}

.notify-row:active,
.notify-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notify-row-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.notify-row-icon .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}

.notify-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.notify-row-copy b {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notify-row-body,
.notify-row-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim, var(--text-secondary));
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.notify-row-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.notify-row.is-unread .notify-row-copy b {
  color: var(--text);
}

@media (min-width: 760px) {
  .notify-overlay {
    align-items: flex-start;
    justify-content: flex-start;
    background: rgba(3, 4, 8, 0.35);
    padding: calc(var(--topbar-h, 72px) + 8px) 16px 16px;
  }
  .notify-sheet {
    width: min(380px, 100%);
    max-height: min(70vh, 520px);
    border-radius: 16px;
    margin-inline-start: auto;
  }
}

html[data-theme="light"] .notify-sheet,
html[data-theme="light"] #notify-panel .modal-sheet.notify-sheet {
  background: var(--surface-solid);
  color: var(--text-primary);
}

html[data-theme="light"] .notify-sheet-head h2,
html[data-theme="light"] .notify-row-copy b,
html[data-theme="light"] .notify-empty {
  color: var(--text-primary);
}

html[data-theme="light"] .notify-row-body,
html[data-theme="light"] .notify-row-time {
  color: var(--text-secondary);
}

html[data-theme="light"] .notify-row:hover,
html[data-theme="light"] .notify-row:active {
  background: rgba(32, 24, 64, 0.06);
}

html[data-theme="light"] .notify-row-icon,
html[data-theme="light"] .notify-read-all {
  background: var(--surface-elevated);
  border-color: var(--border);
  color: var(--text-primary);
}

html[data-theme="light"] .notify-row-icon .ui-icon {
  color: var(--icon);
  stroke: var(--icon);
}

html[data-theme="dark"] .notify-sheet {
  color: var(--text-primary, #f4f2ff);
}

html[data-theme="system"] .notify-sheet,
html[data-theme="system"] .notify-row,
html[data-theme="system"] .notify-empty {
  color: var(--text-primary);
}

html[data-theme="light"] .order-card,
html[data-theme="system"] .order-card {
  background: var(--surface-solid);
  color: var(--text-primary);
  border-color: var(--border);
}

html[data-theme="light"] .order-card .title-row > b,
html[data-theme="light"] .order-item-title,
html[data-theme="light"] .orders-head,
html[data-theme="light"] .status-timeline .is-current,
html[data-theme="system"] .order-card .title-row > b,
html[data-theme="system"] .order-item-title,
html[data-theme="system"] .orders-head,
html[data-theme="system"] .status-timeline .is-current {
  color: var(--text-primary);
}

html[data-theme="light"] .status-timeline,
html[data-theme="system"] .status-timeline {
  color: var(--text-muted);
}

html[data-theme="dark"] .order-card {
  color: var(--text-primary);
}

/* ==========================================================================
   Liquid-glass control system (amm-shell-v155)
   Frosted controls only. Poster/content cards stay opaque.
   Coarse pointers (Android WebView) skip backdrop-filter.
   ========================================================================== */

#theme-button,
#profile-button,
#notify-button,
#logout-button,
button.secondary,
button.icon-btn,
.search-clear,
.notify-read-all,
.detail-trailer-button,
.login-theme-toggle {
  color: var(--glass-text);
  background-color: var(--glass-bg);
  background-image: linear-gradient(180deg, var(--glass-highlight), transparent 44%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  transition:
    transform var(--motion-fast),
    filter var(--motion-fast),
    background-color var(--motion-fast),
    box-shadow var(--motion-fast),
    border-color var(--motion-fast);
}

.chip,
.mood-chip,
.pref-chip,
.genre-btn,
.detail-season-btn,
.sort-option,
.sort-filter-option,
.fact-chip-button,
.person-chip {
  color: var(--glass-text);
  background-color: var(--glass-bg);
  background-image: linear-gradient(180deg, var(--glass-highlight), transparent 52%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#theme-button,
#profile-button,
#notify-button,
#logout-button,
.search-clear {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

.notify-read-all,
.detail-trailer-button,
.genre-btn,
.chip,
.mood-chip,
.pref-chip,
.detail-season-btn {
  min-height: 44px;
}

.install-entry-button {
  min-height: 44px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.24);
}

#theme-button svg,
#profile-button svg,
#notify-button svg,
#logout-button svg,
.search-clear .ui-icon {
  color: var(--glass-text);
  stroke: var(--glass-text);
  fill: none;
}

.chip.active,
.mood-chip.active,
.pref-chip.active,
.genre-btn.active,
.sort-btn.active,
.detail-season-btn.is-active {
  color: var(--on-accent);
  background: var(--accent-gradient);
  background-image: var(--accent-gradient);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px rgba(106, 75, 232, 0.22);
}

.chip.active,
.pref-chip.active,
.genre-btn.active,
.detail-season-btn.is-active {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (hover: hover) and (pointer: fine) {
  #theme-button:hover,
#profile-button:hover,
#notify-button:hover,
#logout-button:hover,
button.secondary:hover,
button.icon-btn:hover,
.chip:hover,
.mood-chip:hover,
.pref-chip:hover,
.genre-btn:hover,
.detail-season-btn:hover,
.search-clear:hover,
.notify-read-all:hover {
    filter: brightness(1.05);
    background-color: var(--glass-bg-strong);
  }

  button:hover:not(:disabled):not(.chip):not(.secondary) {
    filter: brightness(1.04);
  }
}

#theme-button:active,
#profile-button:active,
#notify-button:active,
#logout-button:active,
button.secondary:active,
button.icon-btn:active,
.chip:active,
.mood-chip:active,
.pref-chip:active,
.genre-btn:active,
.detail-season-btn:active,
.search-clear:active,
.notify-read-all:active {
  transform: scale(0.97);
  filter: brightness(0.96);
  background-color: var(--glass-bg-strong);
}

button:disabled,
button[disabled],
button[aria-disabled="true"],
.chip:disabled,
.pref-chip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
  pointer-events: none;
}

button[aria-busy="true"],
button.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.hero-cta {
  min-height: 44px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 20px rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Hero ghost sits on dark artwork in both themes. */





html[data-theme="light"] .home-row .row-head h3,
html[data-theme="light"] .section-head span,
html[data-theme="light"] .tab-icon-title span {
  text-shadow: none;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] .search-row--compact input::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

html[data-theme="light"] #profile-phone,
html[data-theme="light"] .poster-meta,
html[data-theme="light"] .poster-reason,
html[data-theme="light"] .detail-original,
html[data-theme="light"] .notify-row-body,
html[data-theme="light"] .notify-row-time,
html[data-theme="light"] .detail-episode-runtime,
html[data-theme="light"] .detail-episode-avail {
  color: var(--text-secondary);
  opacity: 1;
}

html[data-theme="light"] #notify-button,
html[data-theme="light"] #theme-button,
html[data-theme="light"] #profile-button,
html[data-theme="light"] #logout-button {
  color: var(--glass-text);
  border-color: var(--glass-border);
  background-color: var(--glass-bg-strong);
}

html[data-theme="light"] #notify-button svg,
html[data-theme="light"] #theme-button svg,
html[data-theme="light"] #profile-button svg,
html[data-theme="light"] #logout-button svg {
  color: var(--icon) !important;
  stroke: var(--icon) !important;
}

@media (max-width: 430px) {
  html, body, #screen-app {
    overflow-x: hidden;
  }
  .top-bar,
  .search-row--compact,
  .notify-sheet,
  .profile-sheet,
  .detail-sheet {
    max-width: 100%;
  }
  .top-bar .app-name {
    font-size: clamp(0.92rem, 4.2vw, 1.05rem);
  }
}

@media (max-width: 360px) {
  html, body, #screen-app, .top-bar, #notify-panel, #profile-modal, .notify-sheet {
    overflow-x: hidden;
  }
  .pref-chip-grid,
  .pref-chip-grid--single {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .poster-reason { overflow-wrap: anywhere; }
  #theme-button,
  #profile-button,
  #notify-button,
  #logout-button,
  .search-clear {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .notify-read-all {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12px;
  }
  #home-view > .hero .hero-actions {
    flex-wrap: wrap;
  }
  #home-view > .hero .hero-content {
    padding-inline-end: 42px;
  }
  .chip-row {
    gap: 4px;
  }
  .chip {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}

@media (hover: none), (pointer: coarse) {
  html {
    --glass-blur: 0px;
  }
  #theme-button,
#profile-button,
#notify-button,
#logout-button,
button.secondary,
button.icon-btn,
.search-clear,
.notify-read-all,
.detail-trailer-button,
.login-theme-toggle {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: var(--glass-bg-strong);
  }
}

@media (prefers-reduced-motion: reduce) {
  #theme-button,
  #profile-button,
  #notify-button,
  #logout-button,
  button,
  .chip,
  .mood-chip,
  .pref-chip,
  .genre-btn,
  .detail-season-btn,
  .search-clear,
  .notify-read-all,
  .hero-cta,
  .install-entry-button {
    transition: none !important;
  }
  #theme-button:active,
  #profile-button:active,
  #notify-button:active,
  #logout-button:active,
  button:active,
  .chip:active,
  .genre-btn:active,
  .detail-season-btn:active {
    transform: none !important;
  }
}

/* Header alignment: phones (max-width 430px) set .top-bar { max-width: 100% }
   to stop horizontal scroll. The bar also uses negative margin-inline to cancel
   #screen-app padding. In RTL that cap keeps used width at the content box
   (viewport minus 28px) while margin-inline-start pulls the right edge flush,
   so the whole glass bar sits 28px to the right and the actions look inset.
   Unlock max-width and size the border-box to content-width + both gutters. */
.top-bar {
  margin: 0 0 14px;
  margin-inline: calc(var(--header-gutter, var(--edge)) * -1);
  padding-inline: var(--header-gutter, var(--edge));
  width: calc(100% + (2 * var(--header-gutter, var(--edge))));
  max-width: none;
  justify-content: space-between;
  align-items: center;
  overflow-x: clip;
}
@media (max-width: 560px) {
  :root { --header-gutter: 14px; }
  .top-bar {
    margin-inline: -14px;
    padding-inline: 14px;
    width: calc(100% + 28px);
    max-width: none;
  }
}
.top-bar .brand {
  justify-content: flex-start;
  flex: 1 1 0;
  min-width: 0;
}
.top-bar-actions {
  flex: 0 0 auto;
}
#theme-button,
#profile-button,
#notify-button,
#logout-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  box-sizing: border-box;
}
html.native-app .top-bar {
  padding-top: 12px;
  padding-inline: var(--header-gutter, var(--edge));
}
@media (max-width: 560px) {
  html.native-app .top-bar {
    padding-inline: 14px;
  }
}

/* ==========================================================================
   iOS-26-inspired Liquid Glass — amm-shell-v161
   iPhone pink accent on frosted controls. Posters stay opaque.
   Header width/gutter rules above must not be restated here.
   ========================================================================== */

:root {
  --brand: var(--accent);
  --brand-bright: var(--accent-active);
}

.top-bar {
  background-color: var(--glass-bg-strong);
  background-image:
    linear-gradient(180deg, var(--glass-highlight), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.18);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.18);
}

.top-bar .brand-icon {
  background: linear-gradient(145deg, var(--accent-active), var(--accent-strong));
  box-shadow: 0 8px 22px var(--accent-soft);
}

.search-row--compact {
  color: var(--glass-text);
  background-color: var(--glass-bg);
  background-image: linear-gradient(180deg, var(--glass-highlight), transparent 55%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
}

.search-row--compact input,
.search-row--compact input::placeholder {
  color: var(--glass-text);
}

.search-row--compact input::placeholder {
  color: var(--text-faint);
  opacity: 1;
}

/* Primary CTAs: glass + iPhone pink tint, not a flat fill. */


.hero-cta,
.install-entry-button,
.select-btn,
html[data-theme="light"] .music-play,
.music-play {
  color: var(--glass-text);
  background-color: var(--glass-bg-strong);
  background-image:
    linear-gradient(180deg, var(--glass-highlight), transparent 48%),
    var(--accent-gradient);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--glass-border));
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 10px 24px var(--accent-soft);
}

.chip.active,
.mood-chip.active,
.pref-chip.active,
.genre-btn.active,
.genre-chip.active,
.sort-btn.active,
.sort-option.active,
.sort-filter-option.active,
.detail-season-btn.is-active,
#category-chips .chip.active {
  color: var(--glass-text);
  background-color: var(--accent-soft);
  background-image: linear-gradient(180deg, var(--glass-highlight), transparent 55%);
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--glass-border));
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 16px var(--accent-soft);
}

#bottom-tabs {
  background-color: var(--glass-bg-strong);
  background-image: linear-gradient(180deg, var(--glass-highlight), transparent 52%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  overflow: hidden;
}

#bottom-tabs button {
  color: var(--text-faint);
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 44px;
}

#bottom-tabs button.active {
  color: var(--glass-text);
  background: var(--accent-soft);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  border-radius: 16px;
}

#bottom-tabs button.active::before {
  display: none;
}

#bottom-tabs button.active svg {
  stroke: var(--accent-active);
  color: var(--accent-active);
}

html[data-theme="light"] #bottom-tabs button {
  color: var(--text-secondary);
}

html[data-theme="light"] #bottom-tabs button.active {
  color: var(--text-primary);
}

html[data-theme="light"] .chip.active,
html[data-theme="light"] .mood-chip.active,
html[data-theme="light"] .pref-chip.active,
html[data-theme="light"] .genre-btn.active,
html[data-theme="light"] .genre-chip.active {
  color: var(--text-primary);
}

html[data-theme="light"] .top-bar,
html[data-theme="light"] .search-row--compact,
html[data-theme="light"] #bottom-tabs {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72) 58%);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

html[data-theme="light"] .top-bar .app-name,
html[data-theme="light"] .search-row--compact input,
html[data-theme="light"] .notify-empty,
html[data-theme="light"] .empty-state,
html[data-theme="light"] .profile-sheet,
html[data-theme="light"] .detail-sheet {
  color: var(--text-primary);
}

html[data-theme="light"] .vpn-price {
  background: none;
  color: var(--accent-strong);
  -webkit-text-fill-color: var(--accent-strong);
}

@media (hover: hover) and (pointer: fine) {
  #bottom-tabs button:hover {
    background-color: var(--glass-active);
  }
  button:not(:disabled):hover {
    filter: brightness(1.04);
  }
}

@media (hover: none), (pointer: coarse) {
  .top-bar,
  .search-row--compact,
  #bottom-tabs {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: var(--glass-bg-strong);
  }
}

#genre-filter-button,
#sort-button,
#genre-filter-button.active,
#sort-button.active,
.genre-btn,
.genre-btn.active {
  color: var(--glass-text) !important;
  border: 1px solid var(--glass-border) !important;
  background: var(--glass-bg) !important;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

#genre-filter-button.active,
#sort-button.active,
.genre-btn.active {
  color: var(--glass-text) !important;
  border-color: color-mix(in srgb, var(--accent) 52%, var(--glass-border)) !important;
  background: var(--accent-soft) !important;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 16px var(--accent-soft);
}

@media (prefers-reduced-motion: reduce) {
  #bottom-tabs button,
.genre-chip,
.hero-cta,
.install-entry-button {
    transition: none !important;
  }
  #bottom-tabs button:active,
.genre-chip:active {
    transform: none !important;
  }

}


.page-number.active,
.install-entry-button .install-platform-icon,
.top-tools-row .music-play:not(:disabled) {
  color: var(--glass-text);
  background: var(--accent-soft) !important;
  background-image:
    linear-gradient(180deg, var(--glass-highlight), transparent 52%),
    var(--accent-gradient) !important;
  border-color: color-mix(in srgb, var(--accent) 48%, var(--glass-border));
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 18px var(--accent-soft) !important;
}

/* ==========================================================================
   Reference iPhone Pink dock + active glass — amm-shell-v162
   Sampled from the approved mockup: #F58BC1 / #F79AC8 / #FF9DCE / #F284B8.
   Kills leftover purple dock indicator (::after) and muddy low-opacity tints.
   ========================================================================== */

.tabs,
#bottom-tabs {
  --dock-accent: var(--accent);
  --dock-accent-2: var(--accent-active);
  background-color: var(--nav-glass) !important;
  background-image: linear-gradient(180deg, var(--glass-highlight), transparent 48%) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 var(--glass-highlight) !important;
  backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.12);
}

#bottom-tabs button,
#bottom-tabs button.active {
  color: var(--text-secondary);
  background: transparent;
  filter: none;
}



#bottom-tabs button svg {
  color: inherit;
  stroke: currentColor;
  filter: none;
  transform: none;
}

#bottom-tabs button.active {
  color: var(--glass-text) !important;
  background:
    linear-gradient(180deg, var(--glass-highlight), transparent 52%),
    var(--accent-soft) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, #fff) !important;
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 8px 18px var(--accent-soft) !important;
}

#bottom-tabs button.active svg {
  color: var(--accent-active) !important;
  stroke: var(--accent-active) !important;
  filter: drop-shadow(0 0 8px var(--accent-soft));
  transform: none;
}

#bottom-tabs button.active::before,
#bottom-tabs button.active::after,
.tabs button.active::before,
.tabs button.active::after {
  display: none !important;
  content: none !important;
  background: none !important;
  animation: none !important;
}

html[data-theme="light"] .tabs,
html[data-theme="light"] #bottom-tabs {
  background-color: var(--nav-glass) !important;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 236, 246, 0.72) 58%) !important;
  box-shadow: 0 10px 28px rgba(28, 33, 48, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] #bottom-tabs button {
  color: var(--text-secondary);
}

html[data-theme="light"] #bottom-tabs button.active {
  color: var(--text-primary) !important;
}

html[data-theme="light"] #bottom-tabs button.active svg {
  color: var(--accent) !important;
  stroke: var(--accent) !important;
}

.chip.active,
.mood-chip.active,
.pref-chip.active,
.genre-btn.active,
.genre-chip.active,
.sort-btn.active,
.sort-option.active,
.sort-filter-option.active,
.detail-season-btn.is-active,
#category-chips .chip.active,
#genre-filter-button.active,
#sort-button.active {
  background-color: var(--accent-soft) !important;
  background-image: linear-gradient(180deg, var(--glass-highlight), transparent 55%) !important;
  border-color: color-mix(in srgb, var(--accent) 58%, var(--glass-border)) !important;
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 18px var(--accent-soft) !important;
}

@media (hover: none), (pointer: coarse) {
  .tabs,
  #bottom-tabs {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ==========================================================================
   Premium pink hero carousel + Light banner — amm-shell-v163
   ========================================================================== */

.hero {
  position: relative;
}

.hero-track {
  display: flex;
  direction: rtl;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.hero-track::-webkit-scrollbar { display: none; }

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  color: var(--glass-text);
  background: var(--glass-bg-strong);
  background-image: linear-gradient(180deg, var(--glass-highlight), transparent 55%);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--glass-border));
  box-shadow: var(--glass-shadow);
  transform: translateY(-50%);
}

.hero-nav--next { left: 4px; right: auto; }
.hero-nav--prev { right: 4px; left: auto; }
.hero-nav svg,
.hero-nav--next svg,
.hero-nav--prev svg { transform: none; }
html[dir="rtl"] .hero-nav svg,
html[dir="rtl"] .hero-nav--next svg,
html[dir="rtl"] .hero-nav--prev svg { transform: none; }
.hero-nav .ui-icon { width: 15px; height: 15px; stroke: currentColor; }

.hero-dots,
.hero-dot {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none;
}

.hero--single .hero-nav { display: none; }

html[data-theme="dark"] .hero-slide::after {
  background:
    linear-gradient(180deg, rgba(26, 15, 23, 0.5) 0%, transparent 28%),
    linear-gradient(0deg, rgba(26, 15, 23, 0.88) 4%, rgba(26, 15, 23, 0.42) 36%, rgba(255, 111, 177, 0.14) 72%);
}

html[data-theme="light"] .hero-slide::after {
  background:
    linear-gradient(180deg, rgba(243, 244, 246, 0.62) 0%, transparent 30%),
    linear-gradient(0deg, rgba(243, 244, 246, 0.94) 6%, rgba(243, 244, 246, 0.78) 28%, rgba(255, 218, 238, 0.28) 68%);
}

html[data-theme="light"] .hero-text h2,
html[data-theme="light"] .hero-eyebrow {
  color: var(--text-primary);
}

html[data-theme="light"] .hero-text p {
  color: var(--text-secondary);
}

html[data-theme="light"] .hero-eyebrow {
  color: var(--accent);
}

.mood-chip {
  min-height: 44px;
}

@media (hover: none), (pointer: coarse) {
  .hero-backdrop {
    filter: blur(8px) saturate(1.15);
  }
  .hero-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ==========================================================================
   Cinematic hero + spacing + 40px outward arrows — amm-shell-v166
   Larger banner and poster, standard gaps above/below, no dots.
   ========================================================================== */

#home-view > .hero {
  position: relative;
  margin: 16px 0 20px;
  overflow: hidden;
  border-radius: 18px;
}

#home-view > .hero + .home-row {
  margin-top: 0;
}

.hero-skeleton {
  height: 248px;
  margin: 16px 0 20px;
}

#home-view > .hero .hero-slide {
  min-height: 248px;
  max-height: none;
  padding-top: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

#home-view > .hero .hero-content {
  width: 100%;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
  padding-inline-start: 10px;
  padding-inline-end: 46px;
}

#home-view > .hero .hero-poster {
  flex: 0 0 auto;
  width: 148px;
  max-width: min(148px, 46%);
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--glass-highlight) 55%, transparent);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
}

#home-view > .hero .hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#home-view > .hero .hero-text h2 {
  margin: 0 0 6px;
  font-size: clamp(17px, 4.6vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#home-view > .hero .hero-text p {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  max-width: none;
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.72);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#home-view > .hero .hero-eyebrow {
  margin-bottom: 4px;
  font-size: 12px;
}

#home-view > .hero .hero-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 0;
  gap: 6px;
}

#home-view > .hero .hero-cta,
#home-view > .hero .hero-actions .hero-cta {
  flex: 0 1 auto;
  margin-top: 0;
  min-height: 32px;
  min-width: 0;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  background-color: var(--glass-bg-strong);
  background-image:
    linear-gradient(180deg, var(--glass-highlight), transparent 48%),
    var(--accent-gradient);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--glass-border));
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 4px 10px color-mix(in srgb, var(--accent) 26%, transparent);
}

#home-view > .hero .hero-nav,
#home-view > .hero .hero-nav--next,
#home-view > .hero .hero-nav--prev {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  inset: auto;
  top: 50%;
  transform: translateY(-50%);
}

#home-view > .hero .hero-nav--next {
  left: 6px;
  right: auto;
}

#home-view > .hero .hero-nav--prev {
  right: 6px;
  left: auto;
}

.hero-nav:active,
#home-view > .hero .hero-nav:active {
  transform: translateY(-50%) scale(0.96);
}

.hero-nav svg,
.hero-nav--next svg,
.hero-nav--prev svg,
html[dir="rtl"] .hero-nav svg,
html[dir="rtl"] .hero-nav--next svg,
html[dir="rtl"] .hero-nav--prev svg {
  transform: none;
}

@media (max-width: 560px) {
  #home-view > .hero {
    margin: 16px 0 20px;
  }
  #home-view > .hero .hero-slide {
    min-height: 232px;
  }
  #home-view > .hero .hero-content {
    gap: 10px;
    padding-block: 10px;
    padding-inline-start: 8px;
    padding-inline-end: 44px;
  }
  #home-view > .hero .hero-poster {
    width: 128px;
    max-width: min(128px, 44%);
  }
}

@media (min-width: 761px) {
  #home-view > .hero {
    margin: 16px 0 20px;
  }
  #home-view > .hero .hero-slide {
    min-height: 268px;
  }
  #home-view > .hero .hero-poster {
    width: 168px;
    max-width: 168px;
  }
  #home-view > .hero .hero-content {
    padding-block: 16px;
    padding-inline-start: 14px;
    padding-inline-end: 56px;
    gap: 16px;
  }
}

html[data-theme="dark"] #home-view > .hero .hero-text p,
html[data-theme="system"] #home-view > .hero .hero-text p {
  color: #ffffff;
  opacity: 1;
}

html[data-theme="light"] #home-view > .hero .hero-text p {
  color: #000000;
  opacity: 1;
  text-shadow: none;
}

.poster-tile .kind-badge.movie {
  background-color: rgba(20, 92, 168, 0.55);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 48%),
    linear-gradient(135deg, #3db4ff, #1a74d6);
  border: 1px solid rgba(186, 228, 255, 0.62);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 10px rgba(26, 116, 214, 0.28);
}














































































#bottom-tabs,
#bottom-tabs.tabs {
  overflow: visible;
}
.tab-library-slot {
  position: relative;
  flex: 1 1 0;
  display: flex;
  min-width: 0;
  align-items: stretch;
}
.tab-library-slot > [data-tab="browse"] {
  flex: 1 1 auto;
  width: auto;
}








/* ==========================================================================
   Customer Web/PWA stability layer — amm-shell-v177
   Preserve Pink Liquid Glass / current layout. Harden Home scroll, zoom,
   and zero-gray customer typography.
   ========================================================================== */

html[data-theme="dark"] {
  --text: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #f8f8f8;
  --text-dim: #f8f8f8;
  --text-faint: #fafafa;
  --text-muted: #f8f8f8;
  --muted: #f8f8f8;
  --ink: #ffffff;
  --ink-2: #f8f8f8;
  --ink-3: #fafafa;
  --glass-text: #ffffff;
  --icon: #ffffff;
}

html[data-theme="light"] {
  --text: #000000;
  --text-primary: #000000;
  --text-secondary: #111111;
  --text-dim: #111111;
  --text-faint: #0a0a0a;
  --text-muted: #111111;
  --muted: #111111;
  --ink: #000000;
  --ink-2: #111111;
  --ink-3: #0a0a0a;
  --glass-text: #000000;
  --icon: #000000;
}

body {
  font-weight: 600;
}

h1, h2, h3, .app-name, .section-head, .row-head h3 {
  font-weight: 800;
}

button,
.chip,
.mood-chip,
.hero-cta,
.genre-btn,
.row-more {
  font-weight: 700;
}

.meta,
.poster-meta,
.poster-reason,
.empty-state,
.empty-state span,
.detail-availability,
.order-note,
.page-indicator {
  font-weight: 600;
  opacity: 1;
  color: var(--text-secondary);
}

.hero-eyebrow {
  font-weight: 800;
  opacity: 1;
}

#detail-overview,
.hero-text p,
.poster-title {
  font-weight: 600;
}

html[data-theme="dark"] #detail-overview,
html[data-theme="dark"] .hero-text p,
html[data-theme="dark"] .meta,
html[data-theme="dark"] .poster-meta,
html[data-theme="dark"] .poster-reason,
html[data-theme="dark"] .empty-state span,
html[data-theme="dark"] .music-player-heading p,
html[data-theme="dark"] .music-package-card p,
html[data-theme="dark"] .music-timeline > div,
html[data-theme="dark"] .sort-section-title,
html[data-theme="dark"] .notify-empty,
html[data-theme="dark"] .order-note,
html[data-theme="dark"] .series-status--ended {
  color: #ffffff;
}

html[data-theme="light"] #detail-overview,
html[data-theme="light"] .hero-text p,
html[data-theme="light"] .meta,
html[data-theme="light"] .poster-meta,
html[data-theme="light"] .poster-reason,
html[data-theme="light"] .empty-state span,
html[data-theme="light"] .music-player-heading p,
html[data-theme="light"] .music-package-card p,
html[data-theme="light"] .music-timeline > div,
html[data-theme="light"] .sort-section-title,
html[data-theme="light"] .notify-empty,
html[data-theme="light"] .order-note,
html[data-theme="light"] .series-status--ended {
  color: #000000;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #f8f8f8;
  opacity: 1;
  font-weight: 500;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #111111;
  opacity: 1;
  font-weight: 500;
}

html[data-theme="dark"] .chip,
html[data-theme="dark"] .mood-chip,
html[data-theme="dark"] #bottom-tabs button,
html[data-theme="dark"] .tabs button,
html[data-theme="dark"] .genre-btn,
html[data-theme="dark"] .row-more {
  color: #ffffff;
}

html[data-theme="light"] .chip,
html[data-theme="light"] .mood-chip,
html[data-theme="light"] #bottom-tabs button,
html[data-theme="light"] .tabs button,
html[data-theme="light"] .genre-btn,
html[data-theme="light"] .row-more {
  color: #000000;
}

html[data-theme="dark"] .chip.active,
html[data-theme="dark"] .mood-chip.active,
html[data-theme="dark"] .hero-cta,
html[data-theme="light"] .chip.active,
html[data-theme="light"] .hero-cta {
  color: #ffffff;
}

button:disabled,
.icon-btn:disabled,
.cancel-order-btn:disabled {
  opacity: 1;
  color: var(--text);
  border: 1px dashed var(--border);
  box-shadow: none;
  cursor: not-allowed;
}

.top-bar,
.search-row--compact,
.chip-row,
.hero-content,
.hero-actions,
.modal-body {
  min-width: 0;
}

.top-bar {
  gap: clamp(6px, 1.6vw, 12px);
}

.top-bar .brand,
.top-bar .app-name,
.search-row--compact input,
.poster-title,
#detail-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chip {
  max-width: 100%;
}

.hero-track {
  overflow-y: hidden;
}

#home-view > .hero .hero-poster {
  width: clamp(96px, 36vw, 148px);
  max-width: min(148px, 46%);
}

#home-view > .hero .hero-text {
  min-width: 0;
  flex: 1 1 auto;
}

#home-view > .hero .hero-actions {
  min-width: 0;
}

#home-view > .hero .hero-nav,
#home-view > .hero .hero-nav--next,
#home-view > .hero .hero-nav--prev {
  z-index: 4;
  pointer-events: auto;
}

#bottom-tabs {
  display: flex;
  align-items: stretch;
  gap: clamp(2px, 1vw, 8px);
  padding-bottom: 4px;
}

#bottom-tabs button {
  min-width: 0;
  flex: 1 1 0;
  padding: clamp(4px, 1.1vw, 8px) clamp(2px, 0.8vw, 6px);
}

#bottom-tabs button svg {
  width: clamp(16px, 4.2vw, 22px);
  height: clamp(16px, 4.2vw, 22px);
}















.poster-card,
.poster-card--row {
  min-width: 0;
}

.poster-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 761px) {
  #home-view > .hero .hero-poster {
    width: 168px;
    max-width: 168px;
  }
}

.install-entry-button small,
.home-install-button small,
.home-install-copy p {
  color: #ffffff;
  opacity: 1;
  font-weight: 600;
}

.vpn-lead,
.vpn-features span {
  color: var(--text);
  font-weight: 600;
}

html[data-theme="light"] .vpn-lead,
html[data-theme="light"] .vpn-features span {
  color: #000000;
}

html[data-theme="dark"] .vpn-lead,
html[data-theme="dark"] .vpn-features span {
  color: #ffffff;
}

button.secondary {
  color: var(--text);
  font-weight: 700;
}

html[data-theme="light"] button.secondary {
  color: #000000;
}

html[data-theme="dark"] button.secondary {
  color: #ffffff;
}

.music-player-heading p,
.music-package-card p,
.music-now span,
.music-bar small,
.music-timeline > div {
  color: var(--text);
  opacity: 1;
  font-weight: 600;
}


















:root {
  --dock-stack: calc(56px + env(safe-area-inset-bottom, 0px));
  /* Height (58px max) + gap (12px) of the assistant-fab AI robot that floats above
     the library tab. Anything positioned using --dock-stack alone (composer,
     assistant sheet bottom padding) undershot by this amount, so on a real device
     the composer/chips ended up overlapping the robot once the keyboard compressed
     the layout (real-device QA, Redmi Note 13 Pro+, amm-shell-v183). */
  --fab-clearance: 70px;
  --compose-stack: 100px;
  --compose-bottom: calc(var(--dock-stack) + var(--fab-clearance));
}





#bottom-tabs,
#bottom-tabs.tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: stretch;
  overflow: visible;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  gap: clamp(2px, 0.9vw, 6px);
  padding: 4px 6px 3px;
  bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
#bottom-tabs > .tab-library-slot {
  flex: 0.95 1 0;
  min-width: 0;
  max-width: none;
  display: flex;
  align-items: stretch;
}
#bottom-tabs > .tab-library-slot > [data-tab="browse"] {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}
#bottom-tabs button,
#bottom-tabs button.active {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 3px 2px 2px;
  gap: 2px;
  border-radius: 12px;
}
#bottom-tabs > button[data-tab="vpn"] {
  flex: 0.9 1 0;
}
#bottom-tabs > button[data-tab="selections"] {
  flex: 1.28 1 0;
  min-width: 0;
}
#bottom-tabs button svg,
#bottom-tabs button.active svg {
  width: clamp(20px, 5.4vw, 24px);
  height: clamp(20px, 5.4vw, 24px);
  flex: 0 0 auto;
}


html[data-theme="dark"] #bottom-tabs button,
html[data-theme="system"] #bottom-tabs button {
  color: #ffffff;
}
html[data-theme="light"] #bottom-tabs button {
  color: #111111;
}
#bottom-tabs button.active {
  padding: 3px 2px 2px;
}


.home-install-card {
  margin-bottom: calc(var(--dock-stack) + 18px);
}


/* Number contrast: selected episode/page/cart counts sit on the pink accent.
   White type on that fill disappears. --on-accent is the token for ink on pink. */
.page-number,
.page-btn {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  background-image: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}

html[data-theme="light"] .page-number,
html[data-theme="light"] .page-btn {
  background: rgba(28, 33, 48, 0.06);
  border-color: rgba(28, 33, 48, 0.16);
}

.page-number.active {
  color: var(--on-accent) !important;
  background: #ff8ec7 !important;
  background-image: none !important;
  border-color: #ff6fb1 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-text-fill-color: var(--on-accent) !important;
  font-weight: 800;
}



#library-results,
#pagination,
.pagination,
.page-numbers {
  overflow-anchor: none;
}


/* Shared checkout controls remain readable and reachable on narrow phones. */


@media (max-width: 600px) {
  .page-btn, .page-number {
    min-width: 44px;
    min-height: 44px;
  }
  .modal-sheet { max-width: 100%; box-sizing: border-box; }
}


/* «فهرست من» toggle beside the trailer button; gold when the title is in the list. */
.detail-mylist-button { margin-inline-start: 6px; display: inline-flex; align-items: center; gap: 6px; }
.detail-mylist-button .mylist-mark { font-weight: 900; }
#detail-mylist-button { border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.07); }
#detail-mylist-button.is-on { color: #ffe6a6; border-color: rgba(255, 200, 88, 0.6); background: rgba(255, 200, 88, 0.14); }
.detail-mylist-button:disabled { opacity: 0.6; }


/* ---------- online playback ---------- */
.detail-cta-bar #detail-play-button {
  width: 100%; min-height: 54px; margin: 0; border: 0; border-radius: 16px; gap: 8px;
  font-size: 17px; font-weight: 900; color: #1a1206; -webkit-text-fill-color: #1a1206;
  background: linear-gradient(180deg, #ffd77a, #f0b53c); box-shadow: 0 10px 26px rgba(240, 181, 60, 0.28);
  display: flex; align-items: center; justify-content: center;
}
.detail-cta-bar #detail-play-button .ui-icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.detail-cta-bar #detail-play-button:active { transform: scale(0.98); }



@media (min-width: 700px) {
  .detail-cta-bar #detail-play-button { width: auto; min-width: 260px; }
}
.detail-episode.is-playable { cursor: pointer; }
.detail-episode.is-playable .detail-episode-num { color: #ffd77a; }
.detail-episode.is-playable .detail-episode-num .ui-icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.detail-episode.is-playable:active { transform: scale(0.98); }

.play-overlay { align-items: flex-end; }
#play-modal .play-sheet { box-sizing: border-box; max-width: 560px; width: 100%; margin: 0 auto; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.play-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 14px; }
.play-poster { width: 64px; height: 96px; border-radius: 10px; overflow: hidden; flex: none; }
.play-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-head h2 { font-size: 18px; margin: 0 0 4px; line-height: 1.5; }
.play-sub { margin: 0; opacity: 0.75; font-size: 14px; }
.play-label { font-size: 13px; opacity: 0.7; margin: 12px 2px 8px; font-weight: 700; }
#play-modal .play-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#play-modal .play-chip {
  min-height: 44px; padding: 8px 16px; border-radius: 14px; font-size: 15px; font-weight: 800;
  color: inherit; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.3;
  width: auto; box-shadow: none;
}
#play-modal .play-chip small { font-size: 11px; font-weight: 600; opacity: 0.7; }
#play-modal .play-chip.is-active { color: #1a1206; background: linear-gradient(180deg, #ffd77a, #f0b53c); border-color: transparent; }
.play-single { font-weight: 800; margin: 6px 2px; }
.play-note { font-size: 13px; opacity: 0.85; margin: 12px 2px 0; display: flex; gap: 6px; align-items: center; }
.play-note .ui-icon { width: 15px; height: 15px; }
.play-note--warn { color: #ffd77a; }
.play-actions { display: flex; gap: 10px; margin-top: 18px; min-width: 0; }
#play-modal .play-go {
  flex: 1; min-height: 52px; border-radius: 16px; font-size: 17px; font-weight: 900; border: 0;
  color: #1a1206; background: linear-gradient(180deg, #ffd77a, #f0b53c);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
}
#play-modal .play-go .ui-icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
#play-modal .play-go { width: auto; min-width: 0; }
#play-modal .play-go--ghost { flex: 0 0 auto; width: auto; padding: 0 18px; color: inherit; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); }
#play-modal .play-go:disabled { opacity: 0.75; }
.play-loading { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 26px 0; opacity: 0.85; }
.play-spinner {
  width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #ffd77a; animation: play-spin 0.8s linear infinite;
}
@keyframes play-spin { to { transform: rotate(360deg); } }

.partner-results { margin-top: 22px; }
.partner-note { font-size: 13px; opacity: 0.8; margin: 0 4px 12px; display: flex; gap: 8px; align-items: center; }

.poster-card, .poster-tile { position: relative; }
.card-progress {
  position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.25); overflow: hidden; pointer-events: none;
}
.card-progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: #ffc858; }
[dir="rtl"] .card-progress::after, .card-progress:dir(rtl)::after { inset: 0 0 0 auto; }
.card-episode {
  position: absolute; bottom: 18px; left: 8px; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 800;
  background: rgba(0, 0, 0, 0.65); color: #fff; pointer-events: none;
}


/* TV app download: full width under the phone/iPhone pair. */
.home-install-button--tv { grid-column: 1 / -1; border-color: rgba(255, 200, 88, 0.3); background: linear-gradient(140deg, rgba(255, 200, 88, 0.16), rgba(26, 31, 49, 0.8)); }
.home-install-button--tv .home-install-icon { background: linear-gradient(135deg, #ffd77a, #f0a83c); }
.home-install-button--tv .platform-mark { fill: none; stroke: #1a1206; stroke-width: 2; stroke-linecap: round; }
.home-install-actions.is-single { grid-template-columns: 1fr; }


/* ---------- calmer detail page (2026-10-04) ---------- */
/* Seasons: slim pills that scroll sideways. */
#detail-modal .detail-seasons { gap: 6px; padding: 2px 0 4px; }
#detail-modal .detail-seasons .detail-season-btn {
  min-height: 32px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
  flex: 0 0 auto; width: auto; min-width: 0; box-shadow: none;
  background: rgba(255, 255, 255, 0.06); background-image: none; border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78); -webkit-text-fill-color: currentColor;
}
#detail-modal .detail-seasons .detail-season-btn.is-active {
  color: #fff; background: linear-gradient(135deg, #c2457f, #8b4fd6) !important; border-color: transparent !important;
}
#detail-modal .detail-seasons-label { font-size: 13px; opacity: 0.7; margin-bottom: 8px; }

/* Episodes: a grid of small numbered tiles. */
#detail-modal .detail-episodes.ep-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-top: 12px;
}
#detail-modal .ep-tile {
  position: relative; min-height: 56px; height: 56px; width: auto; margin: 0; padding: 4px 2px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: rgba(255, 255, 255, 0.05); background-image: none; border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none; color: #fff; -webkit-text-fill-color: currentColor; cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}
#detail-modal .ep-tile b { font-size: 17px; font-weight: 900; line-height: 1.2; }
#detail-modal .ep-tile small { font-size: 10px; font-weight: 600; opacity: 0.55; line-height: 1.2; }
#detail-modal .ep-tile:active { transform: scale(0.95); background: rgba(255, 200, 88, 0.14); border-color: rgba(255, 200, 88, 0.5); }
#detail-modal .ep-tile.is-resume { border-color: rgba(255, 200, 88, 0.7); background: rgba(255, 200, 88, 0.1); }
#detail-modal .ep-tile.is-resume small { color: #ffd77a; opacity: 1; }
#detail-modal .ep-tile.is-missing { cursor: default; opacity: 0.32; }
#detail-modal .ep-runtime { grid-column: 1 / -1; margin: 4px 2px 0; font-size: 11.5px; opacity: 0.55; }

/* Bottom actions: play and cart side by side, both coloured, play a little wider. */
.detail-cta-bar .detail-action-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; align-items: stretch; }

.detail-cta-bar #detail-play-button {
  width: 100%; min-width: 0; min-height: 44px; height: 44px; margin: 0; padding: 0 10px; font-size: 14.5px;
  border-radius: 13px; box-shadow: 0 6px 16px rgba(240, 181, 60, 0.22); white-space: nowrap; overflow: hidden;
}
.detail-cta-bar #detail-play-button .ui-icon { width: 15px; height: 15px; flex: none; }
.detail-cta-bar #detail-play-button span { overflow: hidden; text-overflow: ellipsis; }





.detail-cta-bar .select-hint { font-size: 10.5px; margin-top: 2px; opacity: 0.7; text-align: center; }
@media (min-width: 700px) {
  .detail-cta-bar .detail-action-wrap { max-width: 520px; }
}

/* Online titles shown in place of «not found», right under the filters. */
.partner-results.partner-results--top { margin-top: 4px; }
.partner-results--top .row-head h3 { color: #ffd77a; }


/* ---------- in-site film player ---------- */
body.web-player-open { overflow: hidden; }
.web-player { position: fixed; inset: 0; z-index: 9000; background: #000; display: flex; align-items: center; justify-content: center; }
.web-player.hidden { display: none; }
.web-player video { width: 100%; height: 100%; max-height: 100vh; background: #000; outline: none; }
.web-player video::cue { color: #ffdd33; background: transparent; font-weight: 700; font-size: clamp(16px, 2.6vw, 34px);
  text-shadow: 0 0 3px #000, 0 0 3px #000, 1px 1px 2px #000, -1px -1px 2px #000; }
.web-player .wp-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px 34px; background: linear-gradient(to bottom, rgba(0,0,0,.75), transparent);
  opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.web-player.wp-awake .wp-top { opacity: 1; pointer-events: auto; }
.web-player .wp-title { color: #fff; font-size: 17px; font-weight: 800; flex: 1; text-align: right; }
#web-player .wp-close { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; border: 0; flex: none;
  background: rgba(255,255,255,.14); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
#web-player .wp-close .ui-icon { width: 20px; height: 20px; }
.web-player .wp-notice { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); padding: 9px 18px;
  border-radius: 20px; background: rgba(20,18,31,.85); border: 1px solid rgba(255,200,88,.35); color: #fff; font-size: 14px; }
.web-player .wp-notice.hidden, .web-player .wp-next.hidden { display: none; }
.web-player .wp-next { position: absolute; bottom: 90px; left: 24px; display: flex; gap: 8px; align-items: center;
  padding: 10px 14px; border-radius: 14px; background: rgba(20,18,31,.9); color: #fff; }
#web-player .wp-next button { width: auto; min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; box-shadow: none; }
#web-player .wp-next .wp-next-go { background: linear-gradient(180deg, #ffd77a, #f0b53c); color: #1a1206; border: 0; }
#web-player .wp-next .wp-next-cancel { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
#play-modal .play-unsupported { padding: 6px 2px 4px; }
#play-modal .play-unsupported b { display: block; font-size: 15px; margin-bottom: 6px; color: #ffd77a; }
#play-modal .play-unsupported p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.9; opacity: .9; }

/* Play sheet: smaller, tidier choices. */
#play-modal .play-sheet { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
#play-modal .play-head { gap: 12px; margin: 2px 0 6px; }
#play-modal .play-poster { width: 50px; height: 75px; border-radius: 9px; }
#play-modal .play-head h2 { font-size: 16px; }
#play-modal .play-sub { font-size: 12.5px; }
#play-modal .play-label { font-size: 12px; margin: 12px 2px 7px; }
#play-modal .play-chips { gap: 6px; }
#play-modal .play-chip { min-height: 38px; padding: 5px 13px; border-radius: 12px; font-size: 13.5px; }
#play-modal .play-chip small { font-size: 10px; }
#play-modal .play-actions { margin-top: 14px; gap: 8px; }
#play-modal .play-go { min-height: 48px; height: 48px; border-radius: 14px; font-size: 15.5px; }
#play-modal .play-go .ui-icon { width: 17px; height: 17px; }
#play-modal .play-go--ghost { padding: 0 16px; font-size: 14px; }
#play-modal .play-note { font-size: 12px; }
#play-modal .modal-close { min-height: 34px; padding: 4px 12px; font-size: 13px; }


/* ================= guest browsing + sign-in sheet ================= */
.guest-login-button { display: none; }
body.is-guest .guest-login-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--accent-gradient, var(--accent));
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}
body.is-guest #notify-button,
body.is-guest #logout-button,
body.is-guest #profile-button,
body.is-guest #preference-prompt { display: none !important; }

#screen-login.as-sheet {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  padding: 0;
  background: rgba(6, 7, 12, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
#screen-login.as-sheet.hidden { display: none; }
#screen-login.as-sheet .login-card {
  position: relative;
  width: min(460px, 100%);
  margin: 0;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0;
  max-height: 92vh;
  overflow-y: auto;
}
@media (min-width: 700px) {
  #screen-login.as-sheet { align-items: center; }
  #screen-login.as-sheet .login-card { border-radius: 26px; }
}
#screen-login .login-close { position: static; margin: 0 0 6px; }
#screen-login .login-head { text-align: center; margin-bottom: 18px; }
#screen-login .login-head .logo-orb { width: 64px; height: 64px; margin: 0 auto 10px; }
#screen-login .login-head .logo-orb img { width: 100%; height: 100%; border-radius: 18px; }
#screen-login .login-head h1 { margin: 0 0 6px; font-size: 21px; }
#screen-login .login-head .subtitle { margin: 0; font-size: 13.5px; color: var(--text-dim); }
#screen-login.as-sheet .install-entry { display: none; }


/* ================= detail sheet: credits row ================= */
#detail-people.detail-people {
  display: block;
  margin: 18px 0 6px;
  padding: 0;
  font-size: inherit;
}
#detail-people.hidden { display: none; }
#detail-people .credits-head {
  margin: 0 16px 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
#detail-people .credits-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 16px 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#detail-people .credits-row::-webkit-scrollbar { display: none; }
#detail-people .credit-card {
  flex: 0 0 76px;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  scroll-snap-align: start;
  cursor: pointer;
}
#detail-people .credit-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14), 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
#detail-people .credit-card.is-director .credit-avatar {
  box-shadow: 0 0 0 2px var(--gold, #f5c451), 0 4px 14px rgba(0, 0, 0, 0.3);
}
#detail-people .credit-card:active .credit-avatar { transform: scale(0.94); }
#detail-people .credit-name {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#detail-people .credit-role {
  margin-top: -3px;
  font-size: 10.5px;
  color: var(--text-dim);
  opacity: 0.7;
}
#detail-people .credit-card.is-director .credit-role { color: var(--gold, #f5c451); opacity: 1; }


/* Next / previous title: small round buttons on the backdrop picture instead of over
   the poster and the title text, which they used to cover on a phone. */
#detail-modal .detail-nav {
  top: -52px;
  transform: none;
  width: 36px;
  height: 36px;
  background: rgba(8, 9, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
#detail-modal .detail-nav:active { transform: scale(0.92); }
#detail-modal .detail-nav svg { width: 18px; height: 18px; }
#detail-modal .detail-nav--prev { right: 12px; }
#detail-modal .detail-nav--next { left: 12px; }


/* /title/<key> pages carry a plain summary for search engines; the app replaces it with
   the title's sheet as soon as it starts. */
.seo-title {
  max-width: 720px;
  margin: 16px auto;
  padding: 16px;
  color: var(--text);
  line-height: 1.8;
}
.seo-title h1 { font-size: 22px; margin: 0 0 8px; }
.seo-title img { float: left; margin: 0 16px 8px 0; border-radius: 12px; width: 140px; height: auto; }
.seo-title a { color: var(--accent); }


/* ================= «حساب من» (account page) ================= */
:is(#profile-modal, #tab-selections) .acct {
  padding: 18px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
:is(#profile-modal, #tab-selections) .acct > * { flex-shrink: 0; }
:is(#profile-modal, #tab-selections) .acct .modal-close { align-self: flex-start; margin: 0; }
.acct-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 22px;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%),
    color-mix(in srgb, var(--surface-solid, #1e222b) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--surface-border, #323846));
  overflow: hidden;
}
.acct-avatar {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: var(--accent-gradient, linear-gradient(135deg, #f58bc1, #7c5cff));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.acct-who { min-width: 0; flex: 1; }
.acct-who h2 {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-dim);
  opacity: 0.75;
}
.acct-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-phone {
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0.8;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.acct-plan {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #0f2a1c;
  background: #8ee0b0;
}

.acct-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
:is(#profile-modal, #tab-selections) .acct-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 12px 6px;
  border-radius: 16px;
  border: 1px solid var(--surface-border, #323846);
  background: color-mix(in srgb, var(--surface-solid, #1e222b) 80%, transparent);
  color: var(--text);
  box-shadow: none;
  font: inherit;
}
.acct-stat b { font-size: 20px; font-weight: 800; line-height: 1.2; }
.acct-stat span { font-size: 12px; color: var(--text-dim); opacity: 0.8; }

.acct-shelf h3,
.acct-group h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.acct-row { gap: 10px; padding-bottom: 4px; }
.acct-row .poster-card--row { width: 104px; flex: 0 0 104px; }

.acct-links {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--surface-border, #323846);
  background: color-mix(in srgb, var(--surface-solid, #1e222b) 80%, transparent);
}
:is(#profile-modal, #tab-selections) .acct-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}
:is(#profile-modal, #tab-selections) .acct-link + .acct-link { border-top: 1px solid var(--surface-border, #323846); }
.acct-link span { flex: 1; }
.acct-link .ui-icon { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.acct-link .acct-chev { width: 16px; height: 16px; color: var(--text-dim); opacity: 0.6; }

.acct-group {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--surface-border, #323846);
  background: color-mix(in srgb, var(--surface-solid, #1e222b) 80%, transparent);
}
.acct-group .field { margin: 0; }
.acct-group .field label { font-size: 12px; color: var(--text-dim); }
.acct-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.acct-setting + .acct-setting { border-top: 1px solid var(--surface-border, #323846); }
.acct-setting--stack { flex-direction: column; align-items: stretch; }
.acct-setting-label { font-size: 13px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }

.acct-segment {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
:is(#profile-modal, #tab-selections) .acct-segment .pref-chip {
  min-height: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
:is(#profile-modal, #tab-selections) .acct-segment .pref-chip.active {
  background: var(--accent);
  color: var(--on-accent, #fff);
}

.acct-tags { display: flex; flex-wrap: wrap; gap: 8px; }
:is(#profile-modal, #tab-selections) .acct-tags .pref-chip {
  min-height: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--surface-border, #323846);
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  width: auto;
  flex: 0 0 auto;
}
:is(#profile-modal, #tab-selections) .acct-tags .pref-chip.active {
  border-color: transparent;
  background: color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--accent);
}
:is(#profile-modal, #tab-selections) .acct-tags .pref-chip.active::before { content: "✓ "; font-weight: 800; }

.acct-switches { display: flex; flex-direction: column; }
.acct-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.acct-switch + .acct-switch { border-top: 1px solid var(--surface-border, #323846); }
.acct-switch span { flex: 1; }
.acct-switch input { position: absolute; opacity: 0; pointer-events: none; }
.acct-switch i {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 18%, transparent);
  transition: background 0.2s;
}
.acct-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s;
}
.acct-switch input:checked + i { background: var(--accent); }
.acct-switch input:checked + i::after { transform: translateX(-18px); }
.acct-switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

.acct-actions {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 4px;
  background: linear-gradient(to top, var(--bg, #14161c) 70%, transparent);
}
.acct-actions .profile-save-status { flex: 1; margin: 0; font-size: 12.5px; }
:is(#profile-modal, #tab-selections) #profile-save-button { flex: 0 0 auto; min-width: 128px; margin: 0; }
:is(#profile-modal, #tab-selections) .acct-logout {
  align-self: center;
  min-height: 0;
  padding: 8px 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--danger, #ff6b7a);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
}

html[data-theme="light"] .acct-card,
html[data-theme="light"] :is(#profile-modal, #tab-selections) .acct-stat,
html[data-theme="light"] .acct-links,
html[data-theme="light"] .acct-group { background: #fff; border-color: rgba(15, 23, 42, 0.1); }
html[data-theme="light"] .acct-card {
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%), #fff;
}
html[data-theme="light"] .acct-actions { background: linear-gradient(to top, var(--bg, #f6f7fb) 70%, transparent); }


html[data-theme="light"] :is(#profile-modal, #tab-selections) .acct {
  background: #f4f5fa;
  color: #14161c;
}
html[data-theme="light"] :is(#profile-modal, #tab-selections) .acct-actions { background: transparent; }
html[data-theme="light"] .acct-shelf h3,
html[data-theme="light"] .acct-group h3,
html[data-theme="light"] .acct-name,
html[data-theme="light"] .acct-link,
html[data-theme="light"] .acct-switch { color: #14161c; }
html[data-theme="light"] .acct-who h2,
html[data-theme="light"] .acct-phone,
html[data-theme="light"] .acct-stat span,
html[data-theme="light"] .acct-setting-label { color: #5b6170; }
html[data-theme="light"] .acct-segment { background: rgba(15, 23, 42, 0.07); }
html[data-theme="light"] :is(#profile-modal, #tab-selections) .acct-tags .pref-chip { border-color: rgba(15, 23, 42, 0.16); color: #14161c; }
html[data-theme="light"] .acct-switch i { background: rgba(15, 23, 42, 0.18); }
html[data-theme="light"] .acct-switch + .acct-switch,
html[data-theme="light"] .acct-setting + .acct-setting,
html[data-theme="light"] :is(#profile-modal, #tab-selections) .acct-link + .acct-link { border-color: rgba(15, 23, 42, 0.08); }
html[data-theme="light"] #screen-login.as-sheet .login-card { background: #fff; color: #14161c; }


/* A sheet scrolled to its end must not drag the page (or the browser's own
   pull-to-refresh) along with it. */
.modal-overlay .modal-sheet,
#screen-login.as-sheet .login-card { overscroll-behavior: contain; }
body.modal-open { overscroll-behavior-y: none; }


/* Credits, refined: smaller rings with a soft gradient border, like a cast strip. */
#detail-people .credits-row { gap: 10px; }
#detail-people .credit-card { flex: 0 0 62px; width: 62px; gap: 5px; }
#detail-people .credit-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  outline: 2px solid rgba(255, 255, 255, 0.10);
  outline-offset: 2px;
}
#detail-people .credit-card.is-director .credit-avatar {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  outline: 2px solid var(--gold, #f5c451);
}
#detail-people .credit-name { font-size: 11px; line-height: 1.3; font-weight: 600; }
#detail-people .credit-role { font-size: 9.5px; margin-top: -2px; }
html[data-theme="light"] #detail-people .credit-avatar { outline-color: rgba(15, 23, 42, 0.10); }


/* Credits line up whatever the name length: circles on one line at the top, names
   in a fixed two-line box, roles on one line underneath. */
#detail-people .credits-row { align-items: flex-start; }
#detail-people .credit-card { justify-content: flex-start; align-self: flex-start; }
#detail-people .credit-avatar { flex: 0 0 auto; }
#detail-people .credit-name {
  height: calc(2 * 1.3em);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}


/* iPhone: hand the film to VLC / Infuse */
.ios-play { display: flex; flex-direction: column; gap: 10px; }
.ios-play-lead { margin: 0; font-size: 14px; line-height: 1.8; color: var(--text); }
.ios-play-actions { flex-direction: column; align-items: stretch; }
.ios-play-actions .play-go { width: 100%; justify-content: center; }
.ios-play-help {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  background: color-mix(in srgb, var(--warn, #f5c451) 16%, transparent);
}
.ios-play-help.hidden { display: none; }
.ios-play-help a,
.ios-play-store a { color: var(--accent); font-weight: 700; }
.ios-play-store { margin: 0; font-size: 13px; color: var(--text-dim); }

.web-player .wp-notice{width:min(580px,calc(100% - 32px));box-sizing:border-box;background:#141a24;color:#fff;border:1px solid #d4b45a;border-radius:16px;padding:14px 18px;font-family:var(--font);font-size:15px;line-height:1.85;text-align:center;white-space:normal;overflow-wrap:anywhere}.web-player .wp-recovery{position:absolute;inset-inline:16px;bottom:max(110px,env(safe-area-inset-bottom));display:flex;justify-content:center;flex-wrap:wrap;gap:10px;z-index:4}.web-player .wp-recovery.hidden{display:none}#web-player .wp-recovery button{width:auto;min-height:48px;padding:10px 22px;border-radius:14px;background:#f4ce73;color:#201700;border:1px solid #ffe5ab;font:700 15px/1.6 var(--font);box-shadow:0 4px 18px #0008}#web-player .wp-recovery button:focus-visible{outline:3px solid white;outline-offset:4px}#play-modal .play-note{font-size:14px;line-height:1.8;opacity:1;color:var(--text-dim)}.acct .profile-save-status,.acct .acct-setting-label,.acct .acct-security-state{font-size:14px;line-height:1.8}.acct .profile-save-status.is-error{color:#ffb4ab}html[data-theme=light] .acct .profile-save-status.is-error{color:#a71920}.acct input,.acct button{font-family:var(--font)}

#web-player .wp-top{gap:.45rem}#web-player.wp-settings-open .wp-top,#web-player .wp-top:focus-within{opacity:1;pointer-events:auto;transform:none}#web-player .wp-title{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#web-player :is(.wp-settings-button,.wp-fullscreen,.wp-settings-close){display:inline-grid;place-items:center;flex-shrink:0;min-height:44px;min-width:44px;padding-inline:.65rem;color:#fff;background:#252321;border:1px solid #5e584e;border-radius:.65rem;font:inherit;font-size:.875rem;cursor:pointer}#web-player .wp-fullscreen svg{width:20px;height:20px}#web-player .wp-settings{position:absolute;z-index:6;inset-block-start:max(76px,calc(env(safe-area-inset-top) + 68px));inset-inline-end:max(12px,env(safe-area-inset-right));width:min(330px,calc(100% - 24px));max-height:calc(100% - 126px);box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:.75rem;padding:1rem;color:#fff;background:#1b1917;border:1px solid #5e584e;border-radius:.85rem;box-shadow:0 10px 36px #0008}#web-player .wp-settings.hidden,#web-player .wp-settings label.hidden{display:none}#web-player .wp-settings label{display:grid;gap:.35rem}#web-player .wp-settings select{min-width:0;width:100%;min-height:44px;padding-inline:.6rem;color:#fff;background:#292623;color-scheme:dark;border:1px solid #726756;border-radius:.5rem;font:inherit;font-size:.95rem}#web-player .wp-settings select:focus-visible,#web-player :is(.wp-settings-button,.wp-fullscreen,.wp-settings-close):focus-visible{outline:2px solid #ffcc71;outline-offset:3px}#web-player .wp-setting-status{color:#ffd383;font-size:.85rem}#web-player .wp-setting-status:empty{display:none}.play-edition-field{display:grid;grid-template-columns:minmax(0,auto) minmax(9rem,1fr);align-items:center;gap:.65rem;margin-block:.7rem;color:var(--muted, #bdb4a7);font-size:.9rem}.play-edition-field select{width:100%;min-height:44px;padding-inline:.65rem;color:var(--text, #fff);background:var(--panel, #252321);border:1px solid var(--line, #5e584e);border-radius:.55rem;font:inherit}.play-edition-field select:focus-visible{outline:2px solid #e1a944;outline-offset:2px}.play-dub-notice,#web-player .wp-dub-status{padding:.6rem .85rem;border:1px solid #6d5332;border-radius:.55rem;background:#2c2114;color:#ffe5b9;font-size:.87rem;line-height:1.55}#web-player .wp-dub-status{position:absolute;inset-block-end:max(76px,calc(env(safe-area-inset-bottom) + 66px));inset-inline:12px;margin-inline:auto;width:fit-content;max-width:min(calc(100% - 24px),32rem);text-align:center;pointer-events:none}#web-player .wp-dub-status.hidden{display:none}

.vpn-support-link{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;min-height:48px;padding:10px 16px;margin-top:10px;border-radius:12px;background:#f4ce73;color:#201700;border:1px solid #ffe5ab;font-size:14px;line-height:1.8;text-decoration:none;box-sizing:border-box;max-width:100%;overflow-wrap:anywhere}.vpn-support-link:focus-visible{outline:3px solid #438bff;outline-offset:3px}.partner-results--top .partner-note{font-size:14px;line-height:1.9;white-space:normal}

@media(hover:hover)and (pointer:fine){.row-scroller,.credits-row,.mood-row{cursor:grab}.row-scroller .poster-card{cursor:inherit}.is-mouse-dragging,.is-mouse-dragging *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}.is-mouse-dragging{scroll-snap-type:none!important;scroll-behavior:auto!important}}

html[data-theme] body.d26,body.d26{--bg: #0d0c0b;--bg-elevated: #151311;--surface: #191714;--surface-solid: #191714;--surface-elevated: #221f1b;--surface-border: rgba(255, 240, 220, .08);--border: rgba(255, 240, 220, .08);--hairline: rgba(255, 240, 220, .06);--text: #f6f2ea;--text-primary: #f6f2ea;--text-secondary: #d9d3c8;--text-dim: #a8a196;--text-faint: #7d776d;--muted: #a8a196;--text-muted: #a8a196;--accent: #e8b44c;--accent-hover: #f2c56a;--accent-strong: #f2c56a;--accent-2: #e8b44c;--accent-active: #ffd27a;--accent-muted: rgba(232, 180, 76, .16);--accent-soft: rgba(232, 180, 76, .32);--accent-gradient: linear-gradient(180deg, #ffd27a 0%, #e8b44c 100%);--on-accent: #1a1206;--glass-bg: rgba(20, 18, 16, .72);--glass-bg-strong: rgba(13, 12, 11, .9);--glass-border: rgba(255, 240, 220, .1);--glass-shadow: 0 8px 24px rgba(0, 0, 0, .45);--glass-active: rgba(232, 180, 76, .22);--nav-glass: rgba(13, 12, 11, .86);--d26-edge: 16px;--d26-radius: 14px;background:#0d0c0b!important;color:var(--text)}body.d26 .bg-glow-3,body.d26 .bg-glow-4,body.d26 .bg-vignette,body.d26 .bg-grain{display:none!important}body.d26 .top-bar{background:linear-gradient(180deg,#0d0c0beb,#0d0c0b99 70%,#0d0c0b00)!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding-inline:var(--d26-edge)!important;min-height:56px}body.d26 .top-bar .app-name{color:var(--text)!important;font-weight:800;letter-spacing:-.2px;background:none!important;-webkit-text-fill-color:currentColor!important}body.d26 .top-bar .brand-icon{width:34px!important;height:34px!important;border-radius:10px!important;box-shadow:none!important}body.d26 .top-bar .icon-btn,body.d26 .top-bar .d26-icon{width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:50%!important;border:0!important;box-shadow:none!important;background:#fff0dc12!important;color:var(--text)!important;display:inline-flex!important;align-items:center;justify-content:center}body.d26 .top-bar .icon-btn svg,body.d26 .top-bar .d26-icon svg{width:19px;height:19px}body.d26 #theme-button,body.d26 #logout-button{display:none!important}body.d26 .guest-login-button{min-height:34px!important;padding:0 14px!important;border-radius:999px!important;background:var(--accent)!important;color:var(--on-accent)!important;border:0!important;font-weight:800!important;font-size:13px!important;box-shadow:none!important}body.d26 .top-tools-row{display:none!important}body.d26.d26-music-on .top-tools-row{display:flex!important;position:fixed;inset-inline:12px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:60;margin:0!important;padding:0!important;gap:0!important}body.d26.d26-music-on #music-bar{flex:1;min-height:52px!important;border-radius:14px!important;margin:0!important;background:#1e1b17f5!important;border:1px solid rgba(255,240,220,.1)!important;box-shadow:0 10px 30px #00000080!important}body.d26 #tab-browse{padding-top:4px}body.d26 .search-row{background:#fff0dc0f!important;border:1px solid rgba(255,240,220,.08)!important;border-radius:999px!important;box-shadow:none!important;min-height:46px!important;margin-inline:var(--d26-edge)!important;padding-block:4px!important}body.d26 .search-row input{font-size:15px!important;color:var(--text)!important}body.d26 .search-row button{min-height:34px!important;height:34px!important;padding:0 12px!important;border-radius:999px!important;background:#fff0dc12!important;border:0!important;box-shadow:none!important;color:var(--text-secondary)!important;font-size:12.5px!important}body.d26 #category-chips{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:8px!important;padding:12px var(--d26-edge) 4px!important;margin:0!important;scrollbar-width:none;grid-template-columns:none!important}body.d26 #category-chips::-webkit-scrollbar{display:none}body.d26 #category-chips>*{flex:none!important;width:auto!important;min-height:34px!important;height:34px!important;padding:0 14px!important;border-radius:999px!important;font-size:13px!important;font-weight:600!important;background:transparent!important;border:1px solid rgba(255,240,220,.14)!important;color:var(--text-secondary)!important;box-shadow:none!important;white-space:nowrap}body.d26 #category-chips>.active,body.d26 #category-chips>[aria-pressed=true]{background:var(--text)!important;color:#0d0c0b!important;border-color:var(--text)!important}body.d26 #home-view .hero{margin:14px 0 6px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important}body.d26 .hero-nav{display:none!important}body.d26 .hero-track{border-radius:0!important;gap:12px;padding-inline:var(--d26-edge);scroll-padding-inline:var(--d26-edge)}body.d26 .hero-slide{position:relative;flex:0 0 100%!important;min-height:0!important;aspect-ratio:4 / 5;max-height:560px;border-radius:18px!important;overflow:hidden;background:#191714!important;box-shadow:0 18px 40px #00000073!important;border:0!important}body.d26 .hero-backdrop{position:absolute!important;inset:0!important;filter:none!important;opacity:1!important;background-size:cover!important;background-position:center 20%!important;transform:none!important}body.d26 .hero-backdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0d0c0b00 38%,#0d0c0b8c 62%,#0d0c0bf5)}body.d26 .hero-content{position:absolute!important;inset:auto 0 0!important;display:block!important;padding:18px 18px 20px!important;background:none!important;z-index:2}body.d26 .hero-poster{display:none!important}body.d26 .hero-text{max-width:none!important;text-align:right}body.d26 .hero-text h2,body.d26 .hero-text .hero-title{font-size:26px!important;line-height:1.25!important;font-weight:900!important;margin:4px 0 6px!important;color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.5)}body.d26 .hero-text p{font-size:13px!important;line-height:1.8!important;color:#f6f2ead1!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}body.d26 .hero-text button,body.d26 .hero-text .hero-cta{min-height:42px!important;border-radius:12px!important;padding:0 18px!important;font-weight:800!important;background:#fff!important;color:#0d0c0b!important;border:0!important;box-shadow:none!important}body.d26 .home-row{margin:22px 0 0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}body.d26 .home-row .row-head{padding:0 var(--d26-edge)!important;margin-bottom:10px!important;align-items:center}body.d26 .home-row .row-head h3{font-size:17px!important;font-weight:800!important;color:var(--text)!important;letter-spacing:-.2px;display:flex;align-items:center;gap:6px}body.d26 .home-row .shelf-icon{display:none!important}body.d26 .row-more{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;color:var(--accent)!important;font-size:13px!important;font-weight:700!important}body.d26 .row-scroller{gap:10px!important;padding:0 var(--d26-edge) 6px!important;scroll-padding-inline:var(--d26-edge)}body.d26 .poster-card--row{width:124px!important;flex:0 0 124px!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}body.d26 .poster-tile{border-radius:10px!important;overflow:hidden;background:#191714!important;border:0!important;box-shadow:0 6px 16px #00000059!important;aspect-ratio:2 / 3}body.d26 .poster-tile img{width:100%;height:100%;object-fit:cover}body.d26 .poster-info{padding:7px 2px 0!important}body.d26 .poster-title{font-size:12.5px!important;font-weight:700!important;color:var(--text)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.d26 .poster-meta{font-size:11px!important;color:var(--text-dim)!important}body.d26 .poster-reason{font-size:11px!important;color:var(--accent)!important;font-weight:600!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.d26 .kind-badge{top:6px!important;inset-inline-start:6px!important;font-size:10px!important;font-weight:700!important;padding:2px 7px!important;border-radius:999px!important;background:#0d0c0bb8!important;color:#fff!important;border:0!important;box-shadow:none!important;backdrop-filter:blur(6px)}body.d26 #bottom-tabs{background:#0d0c0be6!important;border:0!important;border-top:1px solid rgba(255,240,220,.07)!important;border-radius:0!important;box-shadow:none!important;inset-inline:0!important;bottom:0!important;padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;margin:0!important;width:auto!important;max-width:none!important}body.d26 #bottom-tabs button{background:none!important;border:0!important;box-shadow:none!important;color:var(--text-faint)!important;font-size:11px!important;font-weight:600!important;min-height:50px!important;border-radius:12px!important}body.d26 #bottom-tabs button.active{color:var(--accent)!important;background:none!important}body.d26 #bottom-tabs button.active svg{stroke:var(--accent)!important}@media(orientation:landscape)and (max-height:520px){body.d26 .hero-slide{aspect-ratio:16 / 9;max-height:70vh;flex-basis:70%!important}body.d26 .top-bar{min-height:48px}}@media(min-width:900px){body.d26{--d26-edge: 40px}body.d26 .hero-slide{aspect-ratio:21 / 9;max-height:520px}body.d26 .hero-backdrop{background-position:center 25%!important}body.d26 .hero-content{padding:40px 48px!important;max-width:640px}body.d26 .hero-text h2,body.d26 .hero-text .hero-title{font-size:40px!important}body.d26 .poster-card--row{width:168px!important;flex-basis:168px!important}body.d26 #bottom-tabs{inset-inline:50% auto!important;transform:translate(50%);bottom:16px!important;border-radius:18px!important;border:1px solid rgba(255,240,220,.08)!important;width:min(560px,90vw)!important}}body.d26 #bottom-tabs button:before,body.d26 #bottom-tabs button:after{display:none!important;content:none!important}body.d26 .home-row .row-head h3:before{display:none!important}body.d26 .guest-login-button{max-width:112px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.d26 .top-bar .brand{min-width:0;flex:1 1 auto}body.d26 .top-bar .app-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:17px!important}body.d26 .top-bar-actions{gap:6px!important;flex:none}body.d26 .search-row button{width:34px!important;padding:0!important;font-size:0!important;gap:0!important;justify-content:center}body.d26 .search-row button span{display:none!important}body.d26 .search-row button svg{width:17px!important;height:17px!important;margin:0!important}body.d26 .search-row input{flex:1 1 auto!important;min-width:0!important;padding-inline:6px!important}body.d26:has(#tab-browse:not(.hidden)) .d26-search-shortcut{display:none!important}body.d26 .poster-info{min-height:0!important;height:auto!important;display:flex!important;flex-direction:column;gap:2px}body.d26 .poster-title{min-height:0!important;height:auto!important;margin:0!important;padding:0!important;line-height:1.45!important;-webkit-line-clamp:1!important;display:block!important}body.d26 .poster-meta,body.d26 .poster-reason{margin:0!important;line-height:1.5!important;min-height:0!important}body.d26 #detail-modal{background:#0009!important}body.d26 #detail-modal .detail-sheet{background:#0d0c0b!important;border:0!important;box-shadow:none!important;color:var(--text)}body.d26 #detail-close-button{position:absolute;top:calc(12px + env(safe-area-inset-top));inset-inline-end:12px;z-index:6;width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:50%!important;font-size:0!important;gap:0!important;justify-content:center;background:#0d0c0b9e!important;border:0!important;color:#fff!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:none!important}body.d26 #detail-close-button svg{width:18px;height:18px}body.d26 .detail-hero{height:min(58vh,520px)!important;max-height:none!important;margin:0!important;border-radius:0!important;background-size:cover!important;background-position:center 18%!important;position:relative}body.d26 .detail-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0d0c0b26,#0d0c0b00 35%,#0d0c0bbf 78%,#0d0c0b)!important}body.d26 #detail-modal:has(.detail-hero:not(.hidden)) #detail-poster{display:none!important}body.d26 .detail-nav{display:none!important}body.d26 #detail-modal .modal-body{margin-top:-120px!important;position:relative;z-index:3;padding:0 var(--d26-edge)!important;background:none!important;display:block!important}body.d26 #detail-title{font-size:28px!important;line-height:1.3!important;font-weight:900!important;color:#fff!important;margin:0 0 2px!important}body.d26 .detail-original{color:var(--text-dim)!important;font-size:14px!important}body.d26 #detail-meta{display:none!important}body.d26 .detail-availability{color:var(--accent)!important;font-size:13px!important;font-weight:700!important;margin:8px 0 0!important}body.d26 .detail-mylist-button,body.d26 .detail-trailer-button{min-height:38px!important;border-radius:999px!important;padding:0 14px!important;margin-top:12px!important;background:#fff0dc14!important;border:0!important;box-shadow:none!important;color:var(--text)!important;font-size:13px!important;font-weight:700!important}body.d26 #detail-facts{display:flex!important;flex-wrap:wrap;align-items:center;gap:0!important;padding:14px var(--d26-edge) 0!important;margin:0!important}body.d26 #detail-facts .fact-chip{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;color:var(--text-secondary)!important;font-size:13px!important;font-weight:600!important}body.d26 #detail-facts .fact-chip+.fact-chip:before{content:"\b7";margin:0 8px;color:var(--text-faint)}body.d26 #detail-facts .fact-chip--quality,body.d26 #detail-facts .fact-chip--audio{border:1px solid rgba(255,240,220,.22)!important;border-radius:5px!important;padding:0 6px!important;font-size:11.5px!important;margin-inline-start:8px}body.d26 #detail-facts .fact-chip--quality:before,body.d26 #detail-facts .fact-chip--audio:before{content:none!important}body.d26 .detail-overview-card{background:none!important;border:0!important;box-shadow:none!important;padding:14px var(--d26-edge) 0!important;margin:0!important}body.d26 .detail-overview-label{display:none!important}body.d26 #detail-overview{font-size:14.5px!important;line-height:2!important;color:var(--text-secondary)!important}body.d26 .detail-overview-more{color:var(--accent)!important;background:none!important;border:0!important;padding:0!important}body.d26 .detail-people{padding:18px 0 0!important;margin:0!important;background:none!important;border:0!important}body.d26 .credits-head{padding:0 var(--d26-edge);font-size:15px!important;font-weight:800!important;color:var(--text)!important}body.d26 .credits-row{padding:10px var(--d26-edge) 0!important;gap:14px!important}body.d26 .credit-card{background:none!important;border:0!important;box-shadow:none!important;width:70px!important;padding:0!important}body.d26 .credit-avatar{width:56px!important;height:56px!important;background:#221f1b!important;color:var(--text-secondary)!important;border:1px solid rgba(255,240,220,.1)!important;box-shadow:none!important;font-weight:800!important;background-image:none!important}body.d26 .credit-card.is-director .credit-avatar{border-color:var(--accent)!important;color:var(--accent)!important}body.d26 .credit-name{font-size:11.5px!important;color:var(--text)!important}body.d26 .credit-role{font-size:10.5px!important;color:var(--text-faint)!important}body.d26 .detail-series{padding:18px var(--d26-edge) 0!important;margin:0!important;background:none!important;border:0!important}body.d26 .detail-seasons-label{font-size:15px!important;font-weight:800!important;color:var(--text)!important}body.d26 .detail-season-btn{min-height:34px!important;border-radius:999px!important;padding:0 14px!important;font-size:13px!important;background:transparent!important;border:1px solid rgba(255,240,220,.14)!important;color:var(--text-secondary)!important;box-shadow:none!important}body.d26 .detail-season-btn.is-active{background:var(--text)!important;color:#0d0c0b!important;border-color:var(--text)!important}body.d26 .ep-tile{background:#191714!important;border:1px solid rgba(255,240,220,.06)!important;box-shadow:none!important;border-radius:12px!important}body.d26 .ep-tile b{color:var(--text)!important}body.d26 .ep-tile small{color:var(--text-faint)!important}body.d26 .ep-tile.is-resume{border-color:var(--accent)!important}body.d26 .ep-tile.is-resume b{color:var(--accent)!important}body.d26 .detail-similar{padding:20px 0 120px!important;margin:0!important;background:none!important;border:0!important}body.d26 .detail-similar .row-head{padding:0 var(--d26-edge)!important;margin-bottom:10px!important}body.d26 .detail-similar .row-head h3{font-size:15px!important;font-weight:800!important}body.d26 .detail-cta-bar{background:linear-gradient(180deg,#0d0c0b00,#0d0c0bf0 30%)!important;border:0!important;box-shadow:none!important;padding:18px var(--d26-edge) calc(12px + env(safe-area-inset-bottom))!important}body.d26 .detail-action-wrap{gap:10px!important}body.d26 #detail-play-button{min-height:50px!important;border-radius:14px!important;font-size:15.5px!important;font-weight:900!important;background:var(--accent-gradient)!important;color:var(--on-accent)!important;border:0!important;box-shadow:0 10px 24px #e8b44c40!important}body.d26 .detail-cta-bar .select-hint{color:var(--text-faint)!important;font-size:11.5px!important}body.d26 #detail-modal #detail-hero{width:100%!important;margin:0!important;border-radius:0!important;inset:auto!important;height:min(60vh,520px)!important;display:block!important;position:relative!important;background-size:cover!important;background-position:center 15%!important;box-shadow:none!important;border:0!important}body.d26 #detail-modal #detail-hero.hidden{display:none!important}body.d26 #detail-modal #detail-hero:before{display:none!important}body.d26 #detail-modal #detail-hero:after{content:""!important;display:block!important;position:absolute!important;inset:0!important;opacity:1!important;background:linear-gradient(180deg,#0d0c0b59,#0d0c0b00 22% 45%,#0d0c0bd9 80%,#0d0c0b)!important}body.d26 #detail-modal .detail-sheet{padding-top:0!important;overflow-x:hidden}body.d26 #detail-modal #detail-title{text-shadow:0 2px 14px rgba(0,0,0,.6)}body.d26 #detail-modal .detail-cta-bar #detail-play-button,body.d26 #detail-modal .detail-cta-bar #detail-play-button.select-btn.play-btn{background:linear-gradient(180deg,#ffd27a,#e8b44c)!important;color:#1a1206!important}body.d26 #detail-modal #detail-hero{width:calc(100% + 36px)!important;margin:0 -18px!important}body.d26 .modal-overlay{background:#0000009e!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}body.d26 .modal-sheet{background:#151311!important;border:1px solid rgba(255,240,220,.07)!important;box-shadow:0 -20px 50px #00000080!important;color:var(--text)!important}body.d26 .modal-sheet h2{color:var(--text)!important;font-weight:900!important}body.d26 .modal-close{background:#fff0dc14!important;border:0!important;box-shadow:none!important;color:var(--text)!important}body.d26 .card{background:#191714!important;border:1px solid rgba(255,240,220,.07)!important;box-shadow:none!important}body.d26 .search-row.card{background:#fff0dc0f!important}body.d26 input:not([type=checkbox]):not([type=radio]):not([type=range]),body.d26 textarea,body.d26 select{background:#fff0dc0d!important;border:1px solid rgba(255,240,220,.12)!important;color:var(--text)!important;box-shadow:none!important;border-radius:12px!important}body.d26 .search-row input{background:transparent!important;border:0!important}body.d26 input:focus,body.d26 textarea:focus,body.d26 select:focus{border-color:var(--accent)!important;outline:none!important;box-shadow:0 0 0 3px #e8b44c2e!important}body.d26 .search-row input:focus{box-shadow:none!important}body.d26 .search-row:focus-within{border-color:#e8b44c80!important}body.d26 #login-button,body.d26 .select-btn,body.d26 button.primary{background:linear-gradient(180deg,#ffd27a,#e8b44c)!important;color:#1a1206!important;border:0!important;box-shadow:none!important;font-weight:800!important;border-radius:14px!important}body.d26 .logo-orb{box-shadow:none!important}body.d26 .subtitle,body.d26 .meta{color:var(--text-dim)!important}body.d26 .chip:not(#category-chips .chip){background:#fff0dc0f!important;border-color:#fff0dc1f!important;color:var(--text-secondary)!important}body.d26 #toast-container>*{background:#221f1b!important;color:var(--text)!important;border:1px solid rgba(255,240,220,.1)!important;box-shadow:0 10px 30px #00000080!important}body.d26 .section-head h2,body.d26 .section-head h3{color:var(--text)!important;font-weight:800!important}body.d26 .home-install-card{background:#191714!important;border:1px solid rgba(255,240,220,.07)!important;box-shadow:none!important;margin-inline:var(--d26-edge)!important}@media(min-width:900px){body.d26 #bottom-tabs{left:50%!important;right:auto!important;transform:translate(-50%)!important;inset-inline:auto!important}body.d26 #app-main{padding-bottom:110px!important}}@media(min-width:900px){body.d26 .hero-slide{aspect-ratio:auto;height:440px;max-height:none}body.d26 .hero-backdrop{filter:blur(26px) brightness(.5) saturate(1.2)!important;transform:scale(1.15)!important}body.d26 .hero-backdrop:after{background:linear-gradient(270deg,#0d0c0b33,#0d0c0bd9 75%)!important}body.d26 .hero-content{inset:0!important;display:flex!important;align-items:center;gap:36px;padding:36px 48px!important;max-width:none}body.d26 .hero-poster{display:block!important;flex:none;width:240px!important;height:360px!important;border-radius:14px!important;overflow:hidden;box-shadow:0 20px 50px #0009!important;border:0!important}body.d26 .hero-poster img{width:100%;height:100%;object-fit:cover}body.d26 .hero-text{max-width:560px!important}body.d26 .hero-text p{-webkit-line-clamp:3;font-size:15px!important}}body.d26 .search-row input#search-input,body.d26 .search-row input#search-input:focus{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}body.d26 .top-bar-actions{display:flex!important;align-items:center!important;gap:8px!important}body.d26 .top-bar-actions>button{margin:0!important;align-self:center!important;flex:none!important;vertical-align:middle}body.d26 .top-bar .d26-icon,body.d26 .top-bar .icon-btn{width:38px!important;height:38px!important;min-width:38px!important}body.d26 .top-bar .d26-icon svg{display:block}body.d26 #home-tv-install .home-install-icon{background:linear-gradient(135deg,#f472b6,#8b5cf6)!important;color:#fff!important}body.d26 #home-tv-install .home-install-icon svg,body.d26 #home-tv-install .home-install-icon svg *{stroke:#fff!important}body.d26 #detail-facts{display:flex!important;flex-direction:column!important;align-items:flex-start;gap:9px!important}body.d26 #detail-facts .facts-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px}body.d26 #detail-facts .fact-chip:before{content:none!important}body.d26 #detail-facts .facts-line--top .fact-chip{margin:0!important;padding:2px 8px!important;border:1px solid rgba(255,240,220,.24)!important;border-radius:6px!important;font-size:12px!important;font-weight:700!important;line-height:1.6!important;color:var(--text-secondary)!important;background:none!important}body.d26 #detail-facts .facts-line--top .fact-chip--imdb{background:#f5c518!important;border-color:#f5c518!important;color:#111!important;font-weight:900!important}body.d26 #detail-facts .facts-line--info{gap:0}body.d26 #detail-facts .facts-line--info .fact-chip{margin:0!important;padding:0!important;border:0!important;font-size:13px!important;color:var(--text-dim)!important}body.d26 #detail-facts .facts-line--info .fact-chip+.fact-chip:before{content:"\b7"!important;margin:0 8px;color:var(--text-faint)}.poster-tile{position:relative}body.d26 .imdb-badge{position:absolute;inset-inline:auto;inset:6px auto auto 6px;z-index:2;direction:ltr;display:inline-flex;align-items:center;gap:3px;padding:2px 7px;border-radius:999px;background:#0d0c0bc7;color:#fff;font-size:11px;font-weight:800;line-height:1.5;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}body.d26 .imdb-badge b{color:#f5c518;font-weight:900}body.d26 .search-row #genre-filter-button{width:auto!important;padding:0 13px!important;font-size:12.5px!important;font-weight:700!important}body.d26 .search-row #genre-filter-button svg{display:none!important}body.d26 .search-row #genre-filter-button span{display:inline!important;font-size:12.5px!important}body.d26 .search-mode{display:flex!important;gap:6px;margin:8px 2px 4px;overflow-x:auto}body.d26 .search-mode .search-mode-btn{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:32px!important;padding:0 14px!important;margin:0!important;border-radius:16px!important;box-shadow:none!important;background:#fff0dc0f!important;color:var(--muted, #a8a196)!important;border:1px solid rgba(255,240,220,.1)!important;font:inherit!important;font-size:13px!important;cursor:pointer;transform:none!important}body.d26 .search-mode .search-mode-btn.active{background:#e8b44c!important;color:#1a1206!important;border-color:#e8b44c!important;font-weight:700!important}body.d26 .people-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;padding:6px 0 18px}body.d26 .people-results .person-result{display:flex!important;align-items:center;gap:12px;width:100%!important;height:auto!important;margin:0!important;padding:10px 12px!important;border-radius:14px!important;text-align:start;background:#fff0dc0d!important;border:1px solid rgba(255,240,220,.08)!important;color:var(--text, #f3ede4)!important;box-shadow:none!important;font:inherit!important;cursor:pointer}body.d26 .people-results .person-result:hover,body.d26 .people-results .person-result:focus-visible{border-color:#e8b44c!important}body.d26 .person-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#e8b44c,#b07f26);color:#1a1206;font-weight:800;font-size:18px}body.d26 .person-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}body.d26 .person-text b{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.d26 .person-text small{font-size:12px;color:var(--muted, #a8a196);direction:ltr;text-align:start}body.d26 .person-count{flex:0 0 auto;font-size:12px;color:#e8b44c}body.d26 #tab-browse .search-row--compact.search-panel{display:flex!important;flex-direction:column;align-items:stretch;gap:0;min-height:0;padding:6px 8px 8px!important;border-radius:22px!important;height:auto!important}body.d26 .search-panel .search-main{display:flex;align-items:center;gap:6px;min-width:0;min-height:44px}body.d26 .search-panel .search-main input{flex:1 1 0;min-width:0}body.d26 .search-panel .search-tools{display:flex;align-items:center;gap:6px;margin-top:4px;padding-top:8px;border-top:1px solid rgba(255,240,220,.08);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}body.d26 .search-panel .search-tools::-webkit-scrollbar{display:none}body.d26 .search-panel .search-mode{display:flex!important;flex:0 0 auto;gap:6px;margin:0!important;overflow:visible}body.d26 .search-panel .search-tools .genre-btn{flex:0 0 auto;width:auto!important;min-height:32px;height:32px!important;padding:0 12px!important;font-size:12px!important;gap:4px!important;border-radius:999px!important}body.d26 .search-panel .search-tools .genre-btn span{display:inline!important}body.d26 .search-panel .search-tools .genre-btn svg{width:15px!important;height:15px!important}body.d26 .search-tools-split{flex:0 0 1px;align-self:stretch;margin:5px 2px;background:currentColor;opacity:.16}body.d26 #tab-browse .search-panel #category-chips{display:flex;flex:0 0 auto;gap:6px;margin:0;padding:0;overflow:visible}body.d26 #tab-browse .search-panel #category-chips .chip{display:inline-flex;align-items:center;width:auto;min-height:32px;height:32px;margin:0;padding:0 13px;font-size:12px;line-height:1;white-space:nowrap}body.d26 .search-panel .search-token:not(.hidden){display:inline-flex!important;align-items:center;gap:4px;flex:0 0 auto;max-width:62%;min-width:0;margin:0!important;padding:4px 4px 4px 10px!important;border:0!important;border-radius:999px!important;background:#e8b44c!important;box-shadow:0 6px 16px #e8b44c38}body.d26 .search-token .person-filter-text{display:inline-flex;align-items:center;gap:4px;min-width:0;color:#1a1206!important;font-size:12px}body.d26 .search-token .person-filter-text b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;unicode-bidi:plaintext}body.d26 .search-token .person-filter-text .ui-icon{width:14px;height:14px;flex:0 0 auto}body.d26 .search-token .person-filter-clear{width:22px!important;height:22px!important;min-width:22px;min-height:22px;padding:0!important;border:0!important;border-radius:50%!important;background:#1a12062e!important;color:#1a1206!important;display:inline-flex;align-items:center;justify-content:center}body.d26 .search-token .person-filter-clear .ui-icon{width:12px;height:12px}body.d26 #tab-selections:not(.hidden){display:flex;flex-direction:column;gap:12px;padding-bottom:12px}body.d26 #tab-selections .acct-page{position:static;max-height:none;overflow:visible;margin:0;padding:4px 0 0;background:transparent;box-shadow:none}body.d26 .profile-orders .my-orders{margin:0}body.d26 #search-input{text-align:right}body.d26 #search-input:placeholder-shown{direction:rtl;text-align:right}body.d26 #search-input::placeholder{text-align:right}body.d26 .search-panel{overflow:visible!important}body.d26 .search-panel #category-chips,body.d26 .search-panel .search-mode{display:none!important}body.d26 .search-panel .menu-btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;width:auto!important;height:32px!important;min-height:32px;margin:0!important;padding:0 12px!important;border-radius:999px!important;border:1px solid rgba(255,240,220,.1)!important;background:#fff0dc0f!important;color:var(--text, #f3ede4)!important;font:inherit!important;font-size:12.5px!important;font-weight:700!important;box-shadow:none!important;white-space:nowrap;cursor:pointer}body.d26 .search-panel .menu-btn .menu-caret{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}body.d26 .search-panel .menu-btn.open{color:#e8b44c!important;border-color:#e8b44c73!important}body.d26 .search-panel .menu-btn.open .menu-caret{transform:rotate(180deg)}body.d26 .search-panel .menu-btn.active{background:#e8b44c!important;color:#1a1206!important;border-color:#e8b44c!important}body.d26 .menu-pop{position:absolute;z-index:60;min-width:236px;max-width:calc(100% - 16px);max-height:62vh;overflow-y:auto;padding:8px;border-radius:16px;background:#1a1714;border:1px solid rgba(255,240,220,.1);box-shadow:0 18px 44px #0000008c;animation:menuIn .14s ease-out}@keyframes menuIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}body.d26 .menu-pop.hidden{display:none!important}body.d26 .menu-pop .menu-item{display:flex!important;align-items:center;gap:10px;width:100%!important;height:auto!important;margin:0!important;padding:11px 12px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;color:#f3ede4!important;font:inherit!important;font-size:14px!important;font-weight:700!important;text-align:right;cursor:pointer}body.d26 .menu-pop .menu-item:before{content:"";flex:0 0 auto;width:8px;height:8px;border-radius:50%;border:2px solid #e8b44c;box-sizing:border-box}body.d26 .menu-pop .menu-item:hover,body.d26 .menu-pop .menu-item:focus-visible{background:#e8b44c1a!important;color:#f2c56a!important}body.d26 .menu-pop .menu-item.active{color:#e8b44c!important}body.d26 .menu-pop .menu-item.active:before{background:#e8b44c}body.d26 .menu-pop .menu-item--reset{margin-top:4px!important;border-top:1px solid rgba(255,240,220,.08)!important;border-radius:0 0 10px 10px!important;color:#a8a196!important;font-weight:600!important}body.d26 .menu-pop .menu-item--reset:before{border-color:#a8a196}body.d26 .menu-pop .menu-item{justify-content:flex-start!important;text-align:start!important}body.d26 .search-panel .search-mode+.search-tools-split{display:none!important}body.d26 .search-panel .menu-btn span,body.d26 .search-panel .menu-btn .menu-btn-label{display:inline!important;font-size:12.5px!important}body.d26 .search-panel .menu-btn svg.menu-caret{display:inline-block!important;width:11px!important;height:11px!important;margin:0!important}body.d26 .top-bar{padding-top:18px!important;padding-bottom:2px!important}body.d26 #tab-browse .search-row--compact.search-panel{margin-top:0!important}body.d26 #bottom-tabs>.tab-library-slot,body.d26 #bottom-tabs>button[data-tab=vpn],body.d26 #bottom-tabs>button[data-tab=selections]{flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important}body.d26 .password-field{position:relative;display:flex;align-items:center}body.d26 .password-field input{flex:1 1 auto;min-width:0;padding-left:46px!important}body.d26 .password-field .password-toggle{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;margin:0!important;border:0!important;border-radius:999px!important;background:transparent!important;color:var(--text-dim)!important;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center}body.d26 .password-field .password-toggle.active{color:var(--accent)!important}body.d26 .password-field .password-toggle .ui-icon{width:19px;height:19px}body.d26 .login-note{margin:10px 0 0;font-size:12px;line-height:1.8;color:var(--text-dim);text-align:center}body.d26 .acct-security-head{display:flex;align-items:center;gap:12px}body.d26 .acct-security-head>div{flex:1 1 auto;min-width:0}body.d26 .acct-security-state{margin:4px 0 0;font-size:12px;line-height:1.8;color:var(--text-dim)}body.d26 .acct-security-action{flex:0 0 auto;width:auto!important;min-height:36px!important;margin:0!important;padding:0 14px!important;border-radius:999px!important;font-size:12px!important;font-weight:800!important}body.d26 .profile-password-form{display:flex;flex-direction:column;gap:10px;margin-top:12px}body.d26 .profile-password-form.hidden{display:none}body.d26 .profile-password-form button[type=submit]{font-weight:800}body.d26 .search-panel .search-main-tools{display:flex;flex:0 0 auto;align-items:center;gap:5px}body.d26 .search-panel .search-main-tools .genre-btn{flex:0 0 auto;width:auto!important;min-width:0!important;min-height:32px!important;height:32px!important;margin:0!important;padding:0 10px!important;font-size:12px!important;font-weight:700!important;gap:4px!important;border-radius:999px!important;display:inline-flex!important;align-items:center}body.d26 .search-panel .search-main-tools .genre-btn span{display:inline!important}body.d26 .search-panel .search-main-tools .genre-btn svg{display:inline-block!important;width:14px!important;height:14px!important}body.d26 .search-panel .search-tools{gap:6px;overflow:visible}body.d26 .search-panel .search-tools .search-tools-split{display:none!important}body.d26 .search-panel .search-tools .menu-btn{flex:1 1 auto!important;min-width:0!important;justify-content:center;padding:0 8px!important;height:34px!important}body.d26 .search-panel .search-tools .menu-btn .menu-btn-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.d26 .search-panel .search-tools .menu-btn .menu-caret{flex:0 0 auto}body.d26 .detail-cta-bar .detail-action-wrap{display:grid!important;grid-template-columns:1fr!important;justify-items:stretch}body.d26 .detail-cta-bar #detail-play-button{width:100%!important;justify-content:center;grid-column:1 / -1}

.support-dialog{background:var(--bg,#12110f);color:var(--text,#f3ede2);border:1px solid #b49a5b66;border-radius:22px;padding:24px;width:min(620px,calc(100vw - 24px));max-height:88dvh;box-sizing:border-box;font-family:inherit;overflow:auto}.support-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.support-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.support-dialog h2{font-size:21px;margin:0}.support-dialog h3{font-size:17px}.support-dialog label{display:grid;gap:8px;margin:14px 0}.support-dialog input,.support-dialog textarea,.support-dialog select{background:#22201c;color:inherit;border:1px solid #b49a5b55;padding:12px;border-radius:10px;font:inherit;box-sizing:border-box;width:100%}.support-dialog button,.support-open{font:inherit;background:#b49a5b;color:#17130c;border:0;padding:12px 16px;border-radius:12px;cursor:pointer}.support-open{width:100%;margin:16px 0}.support-dialog [data-inbox]>button{display:block;width:100%;text-align:right;margin:8px 0;background:#28251d;color:#f3ede2}.support-message{padding:14px;border-radius:12px;background:#24221e;margin:10px 0}.support-message.staff{border-right:3px solid #b49a5b}.support-message p{white-space:pre-wrap;overflow-wrap:anywhere}.support-dialog [data-status]{color:#d7bd7c;line-height:1.8}.support-dialog :focus-visible,.support-open:focus-visible{outline:3px solid #d7bd7c;outline-offset:3px}.support-dialog button:disabled{opacity:.5}.support-dialog header h2{flex:1;min-width:0;line-height:1.5}.support-dialog header>button{flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:#28251d;color:#f3ede2;font-size:26px}.support-dialog .support-contact{padding:16px;margin:16px 0;border:1px solid #d4b45a66;border-radius:16px;background:#1a1815;color:#f6f2ea}.support-dialog .support-contact h3{margin:0 0 8px;font-size:17px}.support-dialog .support-contact p{margin:0;font-size:14px;line-height:1.9;color:#ddd5c8}.support-direct-link{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;min-height:48px;box-sizing:border-box;padding:10px 14px;margin-top:12px;border-radius:12px;background:#f4ce73;color:#201700;font:700 14px/1.8 var(--font);text-decoration:none;max-width:100%;overflow-wrap:anywhere}.support-direct-link:visited{color:#201700}.support-direct-link:focus-visible{outline:3px solid #438bff;outline-offset:3px}.support-login-contact{width:100%}

@media(min-width:1024px)and (hover:hover)and (pointer:fine){body.d26 .top-bar.perf-header{position:sticky!important;top:0!important;z-index:60;background:var(--bg)!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;gap:16px!important;align-items:center}html{scroll-padding-top:84px}.perf-header>.brand{grid-column:1}.perf-header>.top-bar-actions{grid-column:3}body.d26 #bottom-tabs.perf-desktop-nav{grid-column:2;grid-row:1;justify-self:center;position:static!important;inset:auto!important;inset-inline:auto!important;transform:none!important;width:100%!important;max-width:520px!important;margin:0!important;padding:4px!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;animation:none!important}body.d26 #bottom-tabs.perf-desktop-nav:before{content:none!important;display:none!important}body.d26 #bottom-tabs.perf-desktop-nav.hidden{display:none!important}body.d26 #bottom-tabs.perf-desktop-nav button{flex-direction:row!important;gap:7px!important;min-height:44px!important;padding:6px 8px!important}body.d26 #bottom-tabs.perf-desktop-nav button svg{width:19px!important;height:19px!important}body.d26 #bottom-tabs.perf-desktop-nav button>span:not(.nav-badge){font-size:13px!important}body.d26 #tab-browse .search-panel{position:relative!important;top:auto!important;margin-bottom:20px!important;z-index:20;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}body.d26 #home-view>.hero{margin-top:0!important}body.d26 #home-view>.hero .hero-content{gap:28px!important;padding:28px 40px!important}body.d26 #home-view>.hero .hero-poster{width:clamp(150px,14vw,210px)!important;max-width:none!important;height:auto!important;aspect-ratio:2 / 3;flex:0 0 auto}}@supports (content-visibility: auto){#home-view>.home-row{content-visibility:auto;contain-intrinsic-size:auto 300px}}@media(prefers-reduced-motion:reduce){#home-view .poster-card{animation:none!important;transition:none!important}}body.d26 .brand-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:2px}body.d26 .brand-copy .app-name{max-width:100%}body.d26 .brand-tagline{color:var(--accent);font-size:10.5px;font-weight:600;line-height:1.5;white-space:nowrap}body.d26:has(#home-view.hidden) .brand-tagline{display:none}

#password-recovery[hidden],#recovery-verification[hidden],#screen-login [hidden]{display:none!important}#password-recovery{margin-top:16px;display:grid;gap:12px;text-align:right}#password-recovery label{display:block;margin:8px 0}#password-recovery input{width:100%;min-width:0;box-sizing:border-box;min-height:44px}#password-recovery button,#forgot-password{min-height:44px;margin-top:8px}#password-recovery p{line-height:1.8}#password-recovery p,#password-recovery h3{margin:0}#recovery-message:empty{display:none}#screen-login #forgot-password,#screen-login #recovery-back{background:transparent!important;color:var(--text)!important;box-shadow:none!important;border:1px solid var(--border, #555)!important}#screen-login .login-code-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}#screen-login #login-code{width:100%!important;min-width:0;margin:0!important;min-height:46px;text-align:center;letter-spacing:.45em;font-size:20px;font-weight:800}#screen-login .login-code-resend{width:auto!important;min-width:0!important;margin:0!important;min-height:46px;padding:0 14px!important;white-space:nowrap;font-size:13px!important;background:transparent!important;color:var(--text)!important;box-shadow:none!important;border:1px solid var(--border, #555)!important}#screen-login .login-code-resend:disabled{opacity:.55}#screen-login .login-code-note{margin:8px 0 0;font-size:13px;line-height:1.8;color:var(--muted, #a8a196)}#screen-login .login-code-note:empty{display:none}

#amm-install-invite{position:fixed;z-index:60;inset-inline:12px;bottom:calc(var(--ai-offset, 12px) + env(safe-area-inset-bottom));max-width:460px;margin-inline-start:auto;padding:10px 12px;border-radius:18px;border:1px solid #f5b54433;background:#14100cf0;backdrop-filter:blur(10px);box-shadow:0 10px 30px #00000073;color:#fff6e7;font-family:inherit;animation:ai-in .35s ease-out both}@keyframes ai-in{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){#amm-install-invite{animation:none}}#amm-install-invite .ai-row{display:flex;align-items:center;gap:10px}#amm-install-invite button{width:auto;min-height:0;background-image:none;box-shadow:none;transform:none}#amm-install-invite .ai-logo{flex:none;width:40px;height:40px;border-radius:11px}#amm-install-invite .ai-text{flex:1;min-width:0;margin:0;line-height:1.5}#amm-install-invite .ai-text b{display:block;font-size:14px;font-weight:800}#amm-install-invite .ai-text small{display:block;font-size:11.5px;color:#e9dcc3b3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#amm-install-invite .ai-close{flex:none;align-self:flex-start;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:#ffffff14;color:#fff6e7;cursor:pointer}#amm-install-invite .ai-close svg{width:16px;height:16px;display:block}#amm-install-invite .ai-apps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}#amm-install-invite .ai-app{display:flex;align-items:center;justify-content:center;gap:6px;height:40px;min-width:0;padding:0 8px;border:1px solid #ffffff1f;border-radius:12px;background:#ffffff0d;color:#fff6e7;font:inherit;font-size:13px;font-weight:700;line-height:1;white-space:nowrap;text-decoration:none;cursor:pointer}#amm-install-invite .ai-app span{overflow:hidden;text-overflow:ellipsis}#amm-install-invite .ai-app svg{flex:none;width:18px;height:18px;display:block}#amm-install-invite .ai-app.is-primary{background:#f5b544;border-color:#f5b544;color:#1a1206;font-weight:800}#amm-install-invite .ai-app:not(.is-primary):hover{background:#ffffff1a}#amm-install-invite .ai-ios-steps{margin:8px 0 0;font-size:12.5px;line-height:1.9}#amm-install-invite .ai-ios-steps ol{margin:0;padding-inline-start:20px}#amm-install-invite :is(a,button):focus-visible{outline:2px solid #f5b544;outline-offset:2px}@media(max-width:360px){#amm-install-invite .ai-text small{display:none}#amm-install-invite .ai-app{font-size:12px;gap:4px;padding:0 4px}}

body.d26{--polish-radius: 20px}body.d26 .top-bar{gap:16px;border-bottom:1px solid rgba(232,180,76,.12)}body.d26 .top-bar .brand-name{color:var(--text, #f4f0e9)}body.d26 #guest-login-button{box-shadow:none;font-weight:800;min-height:44px}body.d26 #bottom-tabs button{min-height:46px;border-radius:14px}body.d26 #bottom-tabs button.active{background:#e8b44c1f;box-shadow:inset 0 0 0 1px #e8b44c38}body.d26 .poster-card{border-radius:15px;overflow:hidden;cursor:pointer}body.d26 .poster-card .poster{overflow:hidden}body.d26 .poster-card img{background:var(--surface, #191714)}body.d26 .row-head{align-items:center;gap:14px;margin-block:8px 14px}body.d26 .row-head h3{font-size:clamp(17px,1.6vw,23px);line-height:1.6;font-weight:800}body.d26 .row-more{border:1px solid rgba(232,180,76,.2);border-radius:999px;padding:7px 16px;min-height:40px}body.d26 :is(button,a,input,select,textarea,[role=button]):focus-visible{outline:3px solid var(--accent, #e8b44c);outline-offset:4px}body.d26 .hero-skeleton,body.d26 .row-skeleton{border:1px solid rgba(255,255,255,.05);border-radius:22px}body.d26 :is(.hero-title,.detail-title,h1,h2){text-wrap:balance}body.d26 input,body.d26 textarea,body.d26 select{scroll-margin-block:100px}@media(min-width:1024px)and (hover:hover)and (pointer:fine){body.d26 .top-bar.perf-header{width:100%!important;max-width:100%!important;margin:0 0 18px!important;padding-inline:20px!important;overflow:visible!important}body.d26 .top-bar-actions{min-width:max-content;gap:10px!important}body.d26 #tab-browse{max-width:1480px;margin-inline:auto}body.d26 .hero{border:1px solid rgba(232,180,76,.13);border-radius:26px;overflow:hidden}body.d26 .poster-card{transition:transform .16s ease,box-shadow .16s ease}body.d26 .poster-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #00000038}}@media(max-width:767px),(pointer:coarse){body.d26 .top-bar{gap:10px}body.d26 :is(.top-bar,#bottom-tabs,.search-panel){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}body.d26 :is(.poster-card,.hero-slide){animation:none!important}body.d26 :is(button,.icon-button,select){min-height:44px}body.d26 .row-head{margin-block:6px 10px}body.d26 .row-scroller{scroll-padding-inline:16px;overscroll-behavior-inline:contain}}@media(prefers-reduced-motion:reduce){body.d26 *,body.d26 *:before,body.d26 *:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

:root{--v-gold: #ffd36e;--v-orange: #ff9a3d;--v-violet: #8b5cf6;--v-rose: #ff5d8f;--v-ink: #1b1206;--v-glow: rgba(255, 170, 70, .28);--v-edge: rgba(255, 196, 92, .22);--v-surface: rgba(30, 24, 16, .72)}html[data-theme] body.d26.d26{background:radial-gradient(1100px 520px at 85% -8%,rgba(255,170,60,.11),transparent 62%),radial-gradient(900px 620px at 0% 108%,rgba(139,92,246,.1),transparent 60%),#0c0a08!important}html body.d26 .top-bar.perf-header{border-bottom:1px solid rgba(255,196,92,.1)!important}html body.d26 #bottom-tabs.perf-desktop-nav{border:1px solid var(--v-edge)!important;background:linear-gradient(180deg,#241c12e6,#16120ce6)!important;box-shadow:0 10px 30px #00000059,inset 0 1px #ffdc960f!important}html body.d26 #bottom-tabs button.active{background:linear-gradient(90deg,var(--v-orange),var(--v-gold))!important;color:var(--v-ink)!important;box-shadow:0 6px 18px var(--v-glow)!important}html body.d26 #bottom-tabs button.active svg,html body.d26 #bottom-tabs button.active .ui-icon{color:var(--v-ink)!important;fill:currentColor}html body.d26 #guest-login-button,html body.d26 .hero-cta,html body.d26 #home-view .hero .hero-cta:not(.hero-cta--ghost),html body.d26 .play-btn,html body.d26 .select-btn.play-btn{background:linear-gradient(90deg,var(--v-orange),var(--v-gold))!important;color:var(--v-ink)!important;border:0!important;box-shadow:0 8px 22px var(--v-glow)!important;font-weight:800!important}html body.d26 #guest-login-button:hover,html body.d26 .hero-cta:hover,html body.d26 .play-btn:hover{filter:brightness(1.06)}html body.d26 .search-panel{background:linear-gradient(180deg,#221b12d1,#14100bd1)!important;border:1px solid var(--v-edge)!important;box-shadow:0 12px 34px #00000052!important}html body.d26 #search-input:focus{outline:none}html body.d26 .search-panel:focus-within{border-color:#ffb4468c!important;box-shadow:0 0 0 3px #ffaa3c24,0 12px 34px #00000052!important}html body.d26 .chip.active{background:linear-gradient(90deg,var(--v-orange),var(--v-gold))!important;color:var(--v-ink)!important;border-color:transparent!important}html body.d26 section.hero{border:1px solid rgba(160,120,255,.28)!important;box-shadow:0 24px 60px #00000073,0 0 0 1px #ffc45c0f inset!important}html body.d26 section.hero:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(115deg,rgba(255,160,60,.1),transparent 45%,rgba(139,92,246,.14))}html body.d26 .row-head h3{position:relative;padding-inline-start:14px}html body.d26 .row-head h3:before{content:"";position:absolute;inset-inline-start:0;top:18%;bottom:18%;width:4px;border-radius:4px;background:linear-gradient(180deg,var(--v-gold),var(--v-orange));box-shadow:0 0 10px var(--v-glow)}html body.d26 .row-more{border:1px solid var(--v-edge)!important;border-radius:999px!important;padding:4px 12px!important;background:#281e1299!important;color:var(--v-gold)!important}html body.d26 .row-more:hover{border-color:var(--v-orange)!important}html body.d26 .poster-tile{border-radius:16px!important;box-shadow:0 10px 24px #00000073,0 0 0 1px #ffdc9612!important}@media(hover:hover)and (pointer:fine){html body.d26 .poster-card .poster-tile{transition:transform .18s ease,box-shadow .18s ease}html body.d26 .poster-card:hover .poster-tile{transform:translateY(-4px);box-shadow:0 16px 34px #0000008c,0 0 0 2px #ffb4468c,0 0 26px var(--v-glow)!important}}html body.d26 .kind-badge{background:linear-gradient(90deg,#14100bd1,#281e12d1)!important;border:1px solid rgba(255,196,92,.35)!important;color:#ffe2a3!important}html body.d26 .kind-badge.series{border-color:#a78bfa8c!important;color:#e4dbff!important}html body.d26 .poster-title{color:#fff3dc!important}html body.d26 #detail-modal .detail-seasons button.active,html body.d26 #detail-modal .detail-seasons [aria-selected=true]{background:linear-gradient(90deg,var(--v-orange),var(--v-gold))!important;color:var(--v-ink)!important;border-color:transparent!important}html body.d26 #detail-modal .detail-series{border-top-color:#ffc45c2e!important}@media(prefers-reduced-motion:reduce){html body.d26 .poster-card .poster-tile{transition:none!important}html body.d26 .poster-card:hover .poster-tile{transform:none!important}}

/* Search-engine readable parts of the site (server/seo.py, 2026-10-28).
   App pages: the login heading (now h2, so it is not the page's h1), the title summary's
   breadcrumb and related titles, and the site footer. /browse and /genre pages: the
   whole standalone archive page. */

/* Same look the login heading had as the global h1 (style.css "h1" + #screen-login rule). */
#screen-login .login-head h2#login-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.5;
}

.poster-link { color: inherit; text-decoration: none; }
.poster-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.seo-crumbs { font-size: 13px; color: var(--text-dim, #a9a9b8); margin: 0 0 10px; }
.seo-crumbs a { color: var(--accent, #f5b544); text-decoration: none; }
.seo-crumbs a:hover { text-decoration: underline; }

.seo-grid {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 16px 12px;
}
.seo-card { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.seo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  background: #1b1b26;
}
.seo-card-name { font-weight: 700; font-size: 14px; line-height: 1.6; }
.seo-card-en { font-size: 12px; color: var(--text-dim, #a9a9b8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-card-facts { font-size: 12px; color: var(--text-dim, #a9a9b8); }
.seo-card:hover .seo-card-name, .seo-card:focus-visible .seo-card-name { color: var(--accent, #f5b544); }
.seo-title .seo-grid { clear: both; }
.seo-title h2 { font-size: 18px; margin: 18px 0 4px; }

.seo-footer {
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 20px 16px calc(96px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text, #f1f1f6);
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}
.seo-footer *, .seo-footer *::before, .seo-footer *::after { box-sizing: border-box; }
.seo-footer .seo-footer__groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; align-items: start; }
.seo-footer .seo-footer__group {
  min-width: 0; margin: 0; padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.seo-footer h2 { font-size: 16px; margin: 0 0 12px; font-weight: 800; line-height: 1.5; }
.seo-footer .seo-footer__links {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
}
.seo-footer .seo-footer__genres { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seo-footer .seo-footer__links li { min-width: 0; display: flex; }
.seo-footer a { color: inherit; text-decoration: none; }
.seo-footer .seo-footer__links a {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; width: 100%; min-height: 44px; padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px; line-height: 1.65; text-align: center;
  white-space: normal; overflow-wrap: break-word; overflow-wrap: anywhere;
}
.seo-footer .seo-footer__links a:hover { color: var(--accent, #f5b544); background: rgba(245, 181, 68, 0.08); }
.seo-footer a:focus-visible { outline: 2px solid var(--accent, #f5b544); outline-offset: 3px; }
.seo-footer .seo-footer__meta {
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.seo-footer .seo-footer__brand { min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; color: var(--accent, #f5b544); }
.seo-footer .seo-footer__meta p { flex: 1 1 260px; margin: 0; color: var(--text-dim, #b9b8c6); font-size: 13px; line-height: 1.9; }
html[data-theme="light"] .seo-footer,
html[data-theme="light"] .seo-footer .seo-footer__group,
html[data-theme="light"] .seo-footer .seo-footer__links a,
html[data-theme="light"] .seo-footer .seo-footer__meta { border-color: rgba(15, 23, 42, 0.13); }
html[data-theme="light"] .seo-footer .seo-footer__group,
html[data-theme="light"] .seo-footer .seo-footer__links a { background: rgba(15, 23, 42, 0.025); }
html[data-theme="light"] .seo-footer .seo-footer__brand,
html[data-theme="light"] .seo-footer .seo-footer__links a:hover { color: var(--text, #182030); }
html[data-theme="light"] .seo-footer a:focus-visible { outline-color: var(--text, #182030); }
@media (max-width: 860px) {
  .seo-footer .seo-footer__groups { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .seo-footer .seo-footer__shelves { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .seo-footer { padding-inline: 12px; }
  .seo-footer .seo-footer__group { padding: 12px; border-radius: 12px; }
  .seo-footer .seo-footer__shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-footer .seo-footer__genres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-footer .seo-footer__meta { gap: 4px; flex-direction: column; align-items: stretch; }
  .seo-footer .seo-footer__meta p { flex: initial; }
}
@media (max-width: 359px) {
  .seo-footer .seo-footer__genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- standalone archive pages (/browse/<shelf>, /genre/<genre>) ---------- */
body.seo-page {
  margin: 0;
  background: #0b0b12;
  color: #f1f1f6;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.7;
  --text: #f1f1f6;
  --text-dim: #a9a9b8;
  --accent: #f5b544;
}
.seo-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(11, 11, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.seo-brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 800; font-size: 17px; }
.seo-brand img { border-radius: 10px; }
.seo-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f5b544;
  color: #1a1206;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.seo-main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.seo-main h1 { font-size: 24px; margin: 4px 0; }
.seo-summary { margin: 0 0 8px; color: var(--text-dim); font-size: 14px; }
.seo-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 24px 0; }
.seo-pager a, .seo-pager span[aria-current] {
  min-width: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
}
.seo-pager a:hover { background: rgba(245, 181, 68, 0.18); }
.seo-pager span[aria-current] { background: #f5b544; color: #1a1206; font-weight: 800; }
body.seo-page .seo-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (max-width: 560px) {
  .seo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .seo-card-name { font-size: 12.5px; }
  .seo-main h1 { font-size: 20px; }
  .seo-cta { padding: 7px 10px; font-size: 12px; }
}

/* 2026-11-13: the about page (/about) and the title page's «پرسش‌های رایج». */
.seo-about h2 { font-size: 17px; margin: 22px 0 6px; color: var(--accent, #f5b544); }
.seo-about p, .seo-about li { font-size: 15px; line-height: 2; }
.seo-about ul { margin: 0; padding-inline-start: 20px; }
.seo-about a { color: var(--accent, #f5b544); }
.seo-title h3 { font-size: 15px; margin: 12px 0 2px; }


/* ==================================================================== 2026-11-14: footer redesign (.amf)
   The footer the server writes (seo.site_footer). Colours come from the لوکس tokens when the page
   has them (dark or light), with the dark look as the fallback on the standalone pages. */
#seo-footer.amf {
  --f-text: var(--lux-text, #f6f3ec);
  --f-text-2: var(--lux-text-2, rgba(246, 243, 236, 0.72));
  --f-text-3: var(--lux-text-3, rgba(246, 243, 236, 0.48));
  --f-gold: var(--lux-gold, #e6b869);
  --f-gold-hi: var(--lux-gold-hi, #f7dc9c);
  --f-gold-soft: var(--lux-gold-soft, rgba(230, 184, 105, 0.14));
  --f-gold-line: var(--lux-gold-line, rgba(230, 184, 105, 0.38));
  --f-line: var(--lux-line, rgba(255, 255, 255, 0.075));
  --f-fill: var(--lux-fill, rgba(255, 255, 255, 0.045));
}
html body #seo-footer.amf {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - 40px) !important;
  max-width: 1400px !important;
  margin: 64px auto 0 !important;
  padding: 48px 8px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--f-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--f-text-2) !important;
  font-size: 14px;
  line-height: 1.8;
}
html body #seo-footer.amf::before {
  content: ""; position: absolute; top: -1px; left: 50%; width: min(420px, 60%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--f-gold), transparent);
}
html body #seo-footer.amf > .igf-footer,
html body #seo-footer.amf > .mz-apps { display: none !important; }
html body #seo-footer.amf .amf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
}
/* brand */
html body #seo-footer.amf .amf-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
html body #seo-footer.amf .amf-logo img {
  width: 52px; height: 52px; border-radius: 15px; display: block;
  box-shadow: 0 0 0 1px var(--f-gold-line), 0 10px 26px rgba(230, 184, 105, 0.16);
}
html body #seo-footer.amf .amf-logo span { display: flex; flex-direction: column; line-height: 1.35; }
html body #seo-footer.amf .amf-logo b { color: var(--f-text) !important; font-size: 20px; font-weight: 900; }
html body #seo-footer.amf .amf-logo small { color: var(--f-gold) !important; font-size: 12px; font-weight: 700; }
html body #seo-footer.amf .amf-brand p { margin: 18px 0 22px; max-width: 34ch; color: var(--f-text-2); font-size: 14px; line-height: 2; }
html body #seo-footer.amf .amf-social { display: flex; gap: 10px; }
html body #seo-footer.amf .amf-soc {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--f-fill); border: 1px solid var(--f-line); color: var(--f-text-2) !important;
  transition: transform 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
html body #seo-footer.amf .amf-soc svg { width: 20px; height: 20px; }
html body #seo-footer.amf .amf-soc:hover { transform: translateY(-3px); color: #fff !important; border-color: transparent; }
html body #seo-footer.amf .amf-soc--tg:hover { background: #229ed9; }
html body #seo-footer.amf .amf-soc--ig:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
html body #seo-footer.amf .amf-soc--chat:hover { background: var(--f-gold); color: #1c1304 !important; }
/* columns */
html body #seo-footer.amf h2 {
  position: relative; margin: 6px 0 20px; padding-bottom: 12px;
  color: var(--f-text) !important; font-size: 15px; font-weight: 800; line-height: 1.5;
}
html body #seo-footer.amf h2::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--f-gold-hi), var(--f-gold));
}
html body #seo-footer.amf ul { list-style: none; margin: 0; padding: 0; }
html body #seo-footer.amf .amf-links { display: grid; gap: 11px; }
html body #seo-footer.amf .amf-links--two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
html body #seo-footer.amf .amf-links a {
  display: inline-block; color: var(--f-text-2) !important; font-size: 14px; text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}
html body #seo-footer.amf .amf-links a:hover { color: var(--f-gold-hi) !important; transform: translateX(-3px); }
html body #seo-footer.amf .amf-tags { display: flex; flex-wrap: wrap; gap: 8px; }
html body #seo-footer.amf .amf-tags a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--f-fill); border: 1px solid var(--f-line);
  color: var(--f-text-2) !important; font-size: 13px; line-height: 1.6; text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
html body #seo-footer.amf .amf-tags a:hover { color: var(--f-gold-hi) !important; background: var(--f-gold-soft); border-color: var(--f-gold-line); }
html body #seo-footer.amf a:focus-visible { outline: 2px solid var(--f-gold); outline-offset: 3px; border-radius: 6px; }
/* bottom line */
html body #seo-footer.amf .amf-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--f-line);
  color: var(--f-text-3); font-size: 12.5px;
}
@media (max-width: 1100px) {
  html body #seo-footer.amf .amf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
  html body #seo-footer.amf .amf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  html body #seo-footer.amf .amf-brand p { margin: 0; max-width: none; }
}
@media (max-width: 720px) {
  html body #seo-footer.amf { width: calc(100% - 32px) !important; padding-top: 36px !important; }
  html body #seo-footer.amf .amf-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  html body #seo-footer.amf .amf-brand { display: block; text-align: center; }
  html body #seo-footer.amf .amf-brand p { margin: 14px auto 18px; }
  html body #seo-footer.amf .amf-social { justify-content: center; }
  html body #seo-footer.amf .amf-links:not(.amf-links--two) { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  html body #seo-footer.amf .amf-bottom { justify-content: center; text-align: center; margin-top: 32px; }
}
/* In the app on touch screens the dock floats over the page bottom. */
@media (max-width: 1023px), (hover: none), (pointer: coarse) {
  html body.d26 #seo-footer.amf { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ==================================================================== 2026-11-14: about page (.amb) */
body.amb-page {
  --b-text: #f6f3ec; --b-text-2: rgba(246, 243, 236, 0.74); --b-text-3: rgba(246, 243, 236, 0.5);
  --b-gold: #e6b869; --b-gold-hi: #f7dc9c; --b-gold-lo: #c9973f;
  --b-gold-soft: rgba(230, 184, 105, 0.12); --b-gold-line: rgba(230, 184, 105, 0.36);
  --b-line: rgba(255, 255, 255, 0.08); --b-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  background: radial-gradient(1100px 520px at 50% -120px, rgba(230, 184, 105, 0.13), transparent 70%), #060709 !important;
  color: var(--b-text);
}
.amb { box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 8px 20px 0; }
.amb *, .amb *::before, .amb *::after { box-sizing: border-box; }
.amb .seo-crumbs { margin: 6px 0 18px; }
.amb-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 28px 50px; border-radius: 28px; border: 1px solid var(--b-line);
  background: radial-gradient(600px 260px at 50% 0, rgba(230, 184, 105, 0.16), transparent 75%), var(--b-card);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.amb-hero-logo {
  width: 88px; height: 88px; border-radius: 24px; display: block; margin: 0 auto 18px;
  box-shadow: 0 0 0 1px var(--b-gold-line), 0 18px 44px rgba(230, 184, 105, 0.25);
}
.amb-kicker {
  display: inline-block; margin: 0 0 14px; padding: 4px 14px; border-radius: 999px;
  background: var(--b-gold-soft); border: 1px solid var(--b-gold-line); color: var(--b-gold-hi); font-size: 12.5px; font-weight: 800;
}
.amb-hero h1 {
  text-wrap: balance;
  margin: 0 auto 16px; max-width: 760px; font-size: clamp(24px, 4vw, 38px); font-weight: 900; line-height: 1.55;
  background: linear-gradient(180deg, #fff 30%, var(--b-gold-hi) 130%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.amb-lead { margin: 0 auto; max-width: 640px; color: var(--b-text-2); font-size: 16px; line-height: 2.1; }
.amb-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.amb-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 140px; padding: 12px 26px; border-radius: 999px;
  background: linear-gradient(135deg, var(--b-gold-hi), var(--b-gold) 45%, var(--b-gold-lo)); color: #1c1304; font-weight: 900; font-size: 15px;
  text-decoration: none; box-shadow: 0 12px 30px rgba(230, 184, 105, 0.28); transition: transform 0.2s, box-shadow 0.2s;
}
.amb-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(230, 184, 105, 0.38); }
.amb-btn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--b-text); border: 1px solid var(--b-line); box-shadow: none; }
.amb-btn--ghost:hover { border-color: var(--b-gold-line); color: var(--b-gold-hi); box-shadow: none; }
.amb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.amb-stat {
  padding: 22px 16px; border-radius: 20px; text-align: center; border: 1px solid var(--b-line); background: var(--b-card);
}
.amb-stat b {
  display: block; font-size: 30px; font-weight: 900; line-height: 1.4;
  background: linear-gradient(180deg, var(--b-gold-hi), var(--b-gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.amb-stat span { color: var(--b-text-3); font-size: 13px; }
.amb-section { margin-top: 64px; }
.amb-section > h2 {
  position: relative; margin: 0 0 22px; padding-right: 16px; font-size: 22px; font-weight: 900; color: var(--b-text);
}
.amb-section > h2::before {
  content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 22px; margin-top: -11px; border-radius: 4px;
  background: linear-gradient(180deg, var(--b-gold-hi), var(--b-gold-lo));
}
.amb-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.amb-feature {
  padding: 24px 20px; border-radius: 22px; border: 1px solid var(--b-line); background: var(--b-card);
  transition: border-color 0.25s, transform 0.25s;
}
.amb-feature:hover { border-color: var(--b-gold-line); transform: translateY(-3px); }
.amb-feature i {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 15px;
  background: var(--b-gold-soft); border: 1px solid var(--b-gold-line); font-style: normal; color: var(--b-gold-hi);
}
.amb-feature i svg { width: 24px; height: 24px; }
.amb-feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--b-text); }
.amb-feature p { margin: 0; color: var(--b-text-2); font-size: 14px; line-height: 1.95; }
.amb-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.amb-plan { padding: 26px 26px 14px; border-radius: 24px; border: 1px solid var(--b-line); background: var(--b-card); }
.amb-plan--plus {
  border-color: var(--b-gold-line);
  background: radial-gradient(420px 180px at 100% 0, rgba(230, 184, 105, 0.14), transparent 70%), var(--b-card);
  box-shadow: 0 20px 50px rgba(230, 184, 105, 0.08);
}
.amb-plan header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.amb-plan h3 { margin: 0; font-size: 21px; font-weight: 900; color: var(--b-text); }
.amb-badge {
  padding: 3px 12px; border-radius: 999px; font-style: normal; font-size: 12px; font-weight: 800; color: #1c1304;
  background: linear-gradient(135deg, var(--b-gold-hi), var(--b-gold));
}
.amb-plan > p { margin: 4px 0 14px; color: var(--b-text-3); font-size: 13.5px; }
.amb-plan ul { list-style: none; margin: 0; padding: 0; }
.amb-plan li { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 0; border-top: 1px solid var(--b-line); }
.amb-plan li span { color: var(--b-text-2); font-size: 15px; }
.amb-plan li b { color: var(--b-gold-hi); font-size: 19px; font-weight: 900; }
.amb-plan li small { color: var(--b-text-3); font-size: 12px; font-weight: 600; }
.amb-note {
  margin: 16px 0 0; padding: 12px 18px; border-radius: 16px; text-align: center;
  background: var(--b-gold-soft); border: 1px dashed var(--b-gold-line); color: var(--b-text-2); font-size: 14px;
}
.amb-note b { color: var(--b-gold-hi); }
.amb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.amb-chips a {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--b-line); background: rgba(255, 255, 255, 0.035);
  color: var(--b-text-2); font-size: 14px; text-decoration: none; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.amb-chips a:hover { color: var(--b-gold-hi); border-color: var(--b-gold-line); background: var(--b-gold-soft); }
.amb-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.amb-contact {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 22px; text-decoration: none;
  border: 1px solid var(--b-line); background: var(--b-card); transition: transform 0.25s, border-color 0.25s;
}
.amb-contact:hover { transform: translateY(-3px); border-color: var(--b-gold-line); }
.amb-contact i { flex: 0 0 52px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; }
.amb-contact i svg { width: 24px; height: 24px; }
.amb-contact--tg i { background: linear-gradient(135deg, #37aee2, #1e96c8); }
.amb-contact--ig i { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.amb-contact span { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.amb-contact b { color: var(--b-text); font-size: 15px; font-weight: 800; }
.amb-contact em { color: var(--b-gold-hi); font-style: normal; font-size: 13.5px; text-align: right; }
.amb-contact small { color: var(--b-text-3); font-size: 12.5px; }
@media (max-width: 960px) {
  .amb-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amb-contacts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .amb { padding-inline: 16px; }
  .amb-hero { padding: 40px 18px 36px; border-radius: 24px; }
  .amb-hero-logo { width: 72px; height: 72px; border-radius: 20px; }
  .amb-lead { font-size: 15px; }
  .amb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .amb-stat b { font-size: 24px; }
  .amb-section { margin-top: 48px; }
  .amb-features, .amb-plans { grid-template-columns: minmax(0, 1fr); }
  .amb-plan { padding: 22px 20px 10px; }
}
/* site-polish.css pulls the footer up (margin-top 0, padding-top 10px !important); the new footer keeps its air. */
html:root:root:root body.d26.d26.d26 #seo-footer.amf { margin-top: 64px !important; padding-top: 48px !important; }
@media (max-width: 720px) { html:root:root:root body.d26.d26.d26 #seo-footer.amf { margin-top: 40px !important; padding-top: 36px !important; } }

/* ---------------------------------------------------------------- 2026-11-14 v2: phones (owner: «توی اپ گوشی و مرورگر گوشی خوب نیست»)
   One compact column: brand in a row, every link group as tidy pills, no tall lists. */
@media (max-width: 720px) {
  html body #seo-footer.amf { width: calc(100% - 24px) !important; padding-inline: 4px !important; font-size: 13px; }
  html:root:root:root body.d26.d26.d26 #seo-footer.amf, html body.seo-page #seo-footer.amf { margin-top: 28px !important; padding-top: 26px !important; }
  html body #seo-footer.amf .amf-grid { gap: 22px; }
  html body #seo-footer.amf .amf-brand {
    display: grid !important; grid-template-columns: auto 1fr; align-items: center; gap: 12px 12px; text-align: right;
    padding: 16px; border-radius: 20px; border: 1px solid var(--f-line); background: var(--f-fill);
  }
  html body #seo-footer.amf .amf-logo img { width: 44px; height: 44px; border-radius: 13px; }
  html body #seo-footer.amf .amf-logo b { font-size: 17px; }
  html body #seo-footer.amf .amf-logo small { font-size: 11px; }
  html body #seo-footer.amf .amf-social { justify-content: flex-end; gap: 8px; }
  html body #seo-footer.amf .amf-soc { width: 38px; height: 38px; }
  html body #seo-footer.amf .amf-soc svg { width: 18px; height: 18px; }
  html body #seo-footer.amf .amf-brand p { grid-column: 1 / -1; margin: 0; max-width: none; font-size: 13px; line-height: 1.95; }
  html body #seo-footer.amf h2 { margin: 0 0 12px; padding-bottom: 9px; font-size: 14px; }
  html body #seo-footer.amf .amf-links,
  html body #seo-footer.amf .amf-links:not(.amf-links--two) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html body #seo-footer.amf .amf-links:not(.amf-links--two) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body #seo-footer.amf .amf-links li { display: flex; min-width: 0; }
  html body #seo-footer.amf .amf-links a {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 6px 8px;
    border-radius: 12px; border: 1px solid var(--f-line); background: var(--f-fill);
    font-size: 12.5px; line-height: 1.5; text-align: center;
  }
  html body #seo-footer.amf .amf-links a:hover { transform: none; border-color: var(--f-gold-line); background: var(--f-gold-soft); }
  html body #seo-footer.amf .amf-tags { gap: 6px; }
  html body #seo-footer.amf .amf-tags a { padding: 5px 12px; font-size: 12.5px; }
  html body #seo-footer.amf .amf-bottom { margin-top: 22px; padding-top: 16px; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; }
}
@media (max-width: 360px) {
  html body #seo-footer.amf .amf-links, html body #seo-footer.amf .amf-links--two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
/* about page on phones: shorter hero, side-by-side feature rows, tighter cards. */
@media (max-width: 640px) {
  .amb { padding-inline: 14px; }
  .amb .seo-crumbs { margin: 4px 0 12px; font-size: 13px; }
  .amb-hero { padding: 30px 16px 26px; border-radius: 22px; }
  .amb-hero-logo { width: 62px; height: 62px; border-radius: 18px; margin-bottom: 12px; }
  .amb-kicker { margin-bottom: 10px; font-size: 11.5px; padding: 3px 12px; }
  .amb-hero h1 { font-size: 21px; margin-bottom: 10px; }
  .amb-lead { font-size: 14px; line-height: 2; }
  .amb-actions { margin-top: 20px; gap: 10px; }
  .amb-btn { min-width: 0; flex: 1 1 0; padding: 11px 14px; font-size: 14px; }
  .amb-stats { margin-top: 12px; gap: 8px; }
  .amb-stat { padding: 14px 10px; border-radius: 16px; }
  .amb-stat b { font-size: 21px; }
  .amb-stat span { font-size: 12px; }
  .amb-section { margin-top: 38px; }
  .amb-section > h2 { font-size: 18px; margin-bottom: 14px; padding-right: 13px; }
  .amb-section > h2::before { width: 4px; height: 18px; margin-top: -9px; }
  .amb-features { gap: 10px; }
  .amb-feature { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 15px 16px; border-radius: 18px; }
  .amb-feature i { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; border-radius: 13px; }
  .amb-feature i svg { width: 21px; height: 21px; }
  .amb-feature h3 { margin: 1px 0 3px; font-size: 15px; }
  .amb-feature p { font-size: 13px; line-height: 1.85; }
  .amb-plans { gap: 12px; }
  .amb-plan { padding: 18px 18px 6px; border-radius: 20px; }
  .amb-plan h3 { font-size: 18px; }
  .amb-plan li { padding: 11px 0; }
  .amb-plan li b { font-size: 17px; }
  .amb-note { font-size: 13px; padding: 10px 14px; }
  .amb-chips { gap: 8px; }
  .amb-chips a { padding: 7px 14px; font-size: 13px; }
  .amb-contacts { gap: 10px; }
  .amb-contact { padding: 13px 14px; gap: 12px; border-radius: 18px; }
  .amb-contact i { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
}


/* ==================================================================== 2026-11-14: list pages (.aml) and the schedule (.ams) */
.aml { box-sizing: border-box; max-width: 1100px; margin: 0 auto; padding: 8px 20px 0; }
.aml *, .aml *::before, .aml *::after { box-sizing: border-box; }
.aml .seo-crumbs { margin: 6px 0 18px; }
.aml-head {
  padding: 34px 28px 30px; border-radius: 26px; border: 1px solid var(--b-line);
  background: radial-gradient(560px 220px at 100% 0, rgba(230, 184, 105, 0.14), transparent 72%), var(--b-card);
}
.aml-head h1 { margin: 0 0 10px; font-size: clamp(22px, 3.4vw, 32px); font-weight: 900; line-height: 1.55; color: var(--b-text); text-wrap: balance; }
.aml-intro { margin: 0; max-width: 760px; color: var(--b-text-2); font-size: 15px; line-height: 2.05; }
.aml-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aml-item a {
  position: relative; display: flex; gap: 14px; height: 100%; padding: 12px; border-radius: 20px; text-decoration: none;
  border: 1px solid var(--b-line); background: var(--b-card); transition: border-color 0.25s, transform 0.25s;
}
.aml-item a:hover { border-color: var(--b-gold-line); transform: translateY(-2px); }
.aml-item img { flex: 0 0 92px; width: 92px; height: 138px; object-fit: cover; border-radius: 13px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); }
.aml-rank {
  position: absolute; top: 8px; right: 8px; z-index: 1; min-width: 30px; height: 30px; padding: 0 8px; display: grid; place-items: center;
  border-radius: 999px; background: linear-gradient(135deg, var(--b-gold-hi), var(--b-gold)); color: #1c1304; font-size: 13px; font-weight: 900;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.aml-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 2px; }
.aml-body b { color: var(--b-text); font-size: 16px; font-weight: 800; line-height: 1.6; }
.aml-en { color: var(--b-text-3); font-size: 12.5px; text-align: right; }
.aml-facts { color: var(--b-text-2); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.aml-imdb { padding: 1px 8px; border-radius: 6px; background: #f5c518; color: #121212; font-size: 11.5px; font-weight: 900; }
.aml-story { margin-top: 4px; color: var(--b-text-3); font-size: 13px; line-height: 1.9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aml-index a small { margin-inline-start: 4px; color: var(--b-gold); font-size: 12px; }
/* schedule */
.ams-jump { margin-top: 18px; }
.ams-jump a { padding: 6px 14px; font-size: 13px; }
.ams-day > h2 small, .aml .amb-section > h2 small { margin-inline-start: 8px; color: var(--b-text-3); font-size: 13px; font-weight: 600; }
.ams-today > h2 { color: var(--b-gold-hi); }
.ams-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ams-card a {
  display: flex; gap: 12px; align-items: center; height: 100%; padding: 10px; border-radius: 16px; text-decoration: none;
  border: 1px solid var(--b-line); background: var(--b-card); transition: border-color 0.25s;
}
.ams-today .ams-card a { border-color: var(--b-gold-line); }
.ams-card a:hover { border-color: var(--b-gold-line); }
.ams-card img { flex: 0 0 52px; width: 52px; height: 78px; object-fit: cover; border-radius: 10px; }
.ams-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ams-body b { color: var(--b-text); font-size: 14.5px; font-weight: 800; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ams-facts { color: var(--b-text-3); font-size: 12px; }
.ams-ep { color: var(--b-gold-hi); font-size: 12.5px; font-weight: 700; }
.ams-when { color: var(--b-text-3); font-size: 11.5px; }
.ams-empty { grid-column: 1 / -1; padding: 14px; border-radius: 14px; border: 1px dashed var(--b-line); color: var(--b-text-3); font-size: 13.5px; }
@media (max-width: 900px) {
  .ams-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .aml { padding-inline: 14px; }
  .aml-head { padding: 24px 16px 20px; border-radius: 22px; }
  .aml-head h1 { font-size: 20px; }
  .aml-intro { font-size: 14px; line-height: 2; }
  .aml-list { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .aml-item a { padding: 10px; gap: 12px; border-radius: 18px; }
  .aml-item img { flex-basis: 78px; width: 78px; height: 117px; }
  .aml-body b { font-size: 15px; }
  .ams-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ams-jump { gap: 6px; }
  .ams-jump a { padding: 5px 11px; font-size: 12.5px; }
}


/* 2026-11-29: archive and genre links as even chips, not a ragged wrap. */
html body #seo-footer.amf .amf-links--two {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
html body #seo-footer.amf .amf-links a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--f-line);
  background: var(--f-fill);
  text-align: center;
  line-height: 1.5;
  transform: none !important;
}
html body #seo-footer.amf .amf-tags {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
}
html body #seo-footer.amf .amf-tags a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 6px 8px;
  border-radius: 12px;
  text-align: center;
}
@media (min-width: 721px) {
  html body #seo-footer.amf .amf-links:not(.amf-links--two) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
  }
  html body #seo-footer.amf .amf-tags { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  html body #seo-footer.amf .amf-links,
  html body #seo-footer.amf .amf-links--two,
  html body #seo-footer.amf .amf-links:not(.amf-links--two) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
}

html body #seo-footer.amf .amf-links a,
html body #seo-footer.amf .amf-tags a { height: 100%; box-sizing: border-box; }


/* 2026-11-29: the air above the club logo was a hole on phones. */
@media (max-width: 720px) {
  html:root:root:root body.d26.d26.d26 #seo-footer.amf {
    margin-top: 0 !important;
    padding-top: 4px !important;
  }
  html body #seo-footer.amf .amf-brand { padding-top: 0 !important; }
}

/* 2026-11 design layer, loaded last (v2, 2026-11-08).
   Owner: a galaxy backdrop; «حالت روشن» must turn the WHOLE site light, not only the
   middle; every block on one grid. Structure lives in mz-2026.js.

   How it is built
   - Tokens (--mz-*) for both appearances, and the earlier layers' own variables
     (design-2026.css: --text, --surface, --glass-*, ...) redefined for light at the root,
     so header, menus, sheets and pages follow without per-element rules.
   - One column: the header, the category strip, the notice, the panel and the footer
     share the same outer edges; inside the panel every block sits 16px in, exactly where
     the shelves' scrollers start (design-2026's --d26-edge).
   - Every rule starts with html:root body.d26 so it wins over the earlier layers;
     !important only where one of them forces a value. */

:root {
  --mz-gold: #f5c451;
  --mz-amber: #ff9440;
  --mz-grad: linear-gradient(135deg, #ffd36e, #ff9440);
  --mz-page: #05060c;
  --mz-backdrop: url("/galaxy-dark.jpg");
  --mz-veil: linear-gradient(180deg, rgba(5, 6, 12, 0) 0%, rgba(5, 6, 12, 0.25) 55%, rgba(5, 6, 12, 0.6) 100%);
  --mz-panel: rgba(11, 13, 21, 0.80);
  --mz-panel-line: rgba(255, 255, 255, 0.08);
  --mz-card: #151925;
  --mz-card-2: #1b2030;
  --mz-glass: rgba(16, 19, 30, 0.72);
  --mz-line: rgba(255, 255, 255, 0.07);
  --mz-line-2: rgba(255, 255, 255, 0.13);
  --mz-text: #f3f4f8;
  --mz-text-2: #aab1c4;
  --mz-text-3: #747c93;
  --mz-dub: #22c55e;
  --mz-sub: #3b82f6;
  --mz-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --mz-edge: 16px;
}
html.mz-light:root {
  --mz-page: #eef0f7;
  --mz-backdrop: url("/galaxy-light.jpg");
  --mz-veil: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
  --mz-panel: rgba(250, 250, 253, 0.9);
  --mz-panel-line: rgba(30, 34, 60, 0.08);
  --mz-card: #ffffff;
  --mz-card-2: #f5f6fa;
  --mz-glass: rgba(255, 255, 255, 0.78);
  --mz-line: #e4e6ee;
  --mz-line-2: #d6d9e3;
  --mz-text: #121521;
  --mz-text-2: #4a5164;
  --mz-text-3: #7b8296;
  --mz-shadow: 0 24px 60px rgba(40, 44, 80, 0.16);

  /* design-2026.css and the older layers read these: the whole site follows. */
  --bg: #eef0f7; --bg-elevated: #ffffff;
  --surface: #ffffff; --surface-solid: #ffffff; --surface-elevated: #f5f6fa;
  --surface-border: #e4e6ee; --border: #e4e6ee; --hairline: #eceef4;
  --text: #121521; --text-primary: #121521; --text-secondary: #3b4254; --text-dim: #5b6276;
  --text-faint: #7b8296; --muted: #5b6276; --text-muted: #5b6276;
  --accent: #b45309; --accent-hover: #c2610c; --accent-strong: #c2610c; --accent-2: #b45309;
  --accent-active: #92400e; --accent-muted: rgba(217, 119, 6, 0.12); --accent-soft: rgba(217, 119, 6, 0.24);
  --glass-bg: rgba(255, 255, 255, 0.82); --glass-bg-strong: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(30, 34, 60, 0.10); --glass-shadow: 0 8px 24px rgba(40, 44, 80, 0.14);
  --glass-active: rgba(217, 119, 6, 0.14); --nav-glass: rgba(255, 255, 255, 0.9);
  --glass-text: #121521; --glass-highlight: rgba(255, 255, 255, 0.6);
  color-scheme: light;
}

/* design-2026.css redefines its variables on body.d26 (html[data-theme] body.d26): the light
   values have to be set on the body too, or every page under it keeps the dark ones. */
html.mz-light:root body.d26.d26.d26 {
  --bg: #eef0f7; --bg-elevated: #ffffff;
  --surface: #ffffff; --surface-solid: #ffffff; --surface-elevated: #f5f6fa;
  --surface-border: #e4e6ee; --border: #e4e6ee; --hairline: #eceef4;
  --text: #121521; --text-primary: #121521; --text-secondary: #3b4254; --text-dim: #5b6276;
  --text-faint: #7b8296; --muted: #5b6276; --text-muted: #5b6276;
  --accent: #b45309; --accent-hover: #c2610c; --accent-strong: #c2610c; --accent-2: #b45309;
  --accent-active: #92400e; --accent-muted: rgba(217, 119, 6, 0.12); --accent-soft: rgba(217, 119, 6, 0.24);
  --glass-bg: rgba(255, 255, 255, 0.82); --glass-bg-strong: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(30, 34, 60, 0.10); --glass-shadow: 0 8px 24px rgba(40, 44, 80, 0.14);
  --glass-active: rgba(217, 119, 6, 0.14); --nav-glass: rgba(255, 255, 255, 0.9);
  --glass-text: #121521; --glass-highlight: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------------- the galaxy */
html:root { background: var(--mz-page); }
/* vivid-2026.css paints the body with !important at html[data-theme] body.d26.d26: outrank it. */
html:root:root body.d26.d26.d26 { background: transparent !important; color: var(--mz-text); }
html:root:root body.d26.d26.d26::before {
  /* Fixed layer, not background-attachment: fixed (iOS ignores that and repaints). An
     earlier layer used this pseudo-element for film grain at 8% opacity: reset all of it. */
  content: "" !important; position: fixed !important; inset: 0 !important; z-index: -2 !important; pointer-events: none;
  opacity: 1 !important; mix-blend-mode: normal !important; filter: none !important; animation: none !important;
  transform: none !important; width: auto !important; height: auto !important; border-radius: 0 !important;
  -webkit-mask: none !important; mask: none !important; clip-path: none !important; margin: 0 !important;
  background: var(--mz-veil), var(--mz-backdrop) center / cover no-repeat, var(--mz-page);
}
html:root:root body.d26.d26.d26::after {
  /* A few stars that breathe, over the picture (dark only, and never for reduced motion). */
  content: "" !important; position: fixed !important; inset: 0 !important; z-index: -1 !important; pointer-events: none;
  mix-blend-mode: normal !important; filter: none !important; transform: none !important; border-radius: 0 !important;
  -webkit-mask: none !important; mask: none !important; clip-path: none !important; width: auto !important; height: auto !important;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1.4px 1.4px at 78% 12%, rgba(255, 240, 210, 0.85), transparent 60%),
    radial-gradient(1.2px 1.2px at 64% 46%, rgba(200, 220, 255, 0.8), transparent 60%),
    radial-gradient(1.6px 1.6px at 30% 72%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1.3px 1.3px at 88% 80%, rgba(255, 230, 190, 0.8), transparent 60%),
    radial-gradient(1.2px 1.2px at 46% 30%, rgba(255, 255, 255, 0.7), transparent 60%);
  animation: mz-twinkle 6s ease-in-out infinite alternate;
}
html.mz-light:root:root body.d26.d26.d26::after { display: none !important; }
@keyframes mz-twinkle { from { opacity: 0.25; } to { opacity: 1; } }
html:root body.d26 :is(.bg-glow-3, .bg-glow-4, .bg-vignette, .bg-grain) { display: none !important; }

/* ---------------------------------------------------------------- one column */
html:root body.d26 #screen-app { max-width: 1440px; margin: 0 auto; padding-inline: 20px; box-sizing: border-box; }
html:root body.d26 #app-main {
  background: var(--mz-panel);
  border: 1px solid var(--mz-panel-line);
  border-radius: 28px;
  margin: 8px 0 0;
  padding: 24px 12px 30px;
  box-shadow: var(--mz-shadow);
  color: var(--mz-text);
}
/* Blocks inside the panel start where the shelves' scrollers start. */
html:root body.d26 #app-main :is(.mz-stats, .mz-quick, .mz-genres, .home-install-card, #home-view > .hero, .home-row .row-head),
html:root body.d26 #tab-browse > .search-row {
  margin-inline: var(--mz-edge) !important;
}
html:root body.d26 #home-view > .hero .hero-track { padding-inline: 0 !important; scroll-padding-inline: 0 !important; }
html:root body.d26 .home-row .row-head { padding-inline: 0 !important; }

/* ---------------------------------------------------------------- announcement bar */
html:root body.d26 .mz-announce {
  display: flex; align-items: center; justify-content: center; gap: 12px; position: relative;
  min-height: 40px; margin: 10px 0 0; padding: 6px 48px;
  background: var(--mz-glass); border: 1px solid var(--mz-line); border-radius: 14px;
  color: var(--mz-text-2); font-size: 13px;
}
html:root body.d26 .mz-announce b { color: var(--mz-gold); font-weight: 800; }
html.mz-light:root body.d26 .mz-announce b { color: #b45309; }
html:root body.d26 .mz-announce-cta {
  border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer;
  background: var(--mz-grad); color: #1a1006; font: inherit; font-weight: 900;
}
html:root body.d26 .mz-announce-close {
  position: absolute; left: 10px; top: 50%; margin-top: -13px;
  width: 26px; height: 26px; padding: 0; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--mz-line-2); color: var(--mz-text-2); font-size: 16px; line-height: 1;
}

/* ---------------------------------------------------------------- header */
html:root body.d26 .top-bar {
  background: transparent !important; border: 0 !important; box-shadow: none !important;
  /* panel border + panel padding + edge: the logo and the buttons line up with the content */
  padding: calc(14px + env(safe-area-inset-top, 0px)) calc(var(--mz-edge) + 13px) 14px !important; gap: 18px; min-height: 0;
}
html:root body.d26 .brand-copy .app-name { color: var(--mz-text) !important; }
html:root body.d26 .brand-copy .brand-tagline { color: var(--mz-gold) !important; }
html.mz-light:root body.d26 .brand-copy .brand-tagline { color: #b45309 !important; }
html:root body.d26 :is(.mz-nav-link, .mz-light-switch, .mz-announce-cta, .mz-announce-close, .mz-quick-chip,
                       .mz-genre, .mz-apps-chip, .mz-apps-cta) {
  width: auto; min-height: 0; box-shadow: none; transform: none; text-shadow: none;
}
html:root body.d26 .mz-nav-strip {
  display: none; margin: 0; padding: 2px calc(var(--mz-edge) + 1px) 6px;   /* a link's own 12px finishes the line */
}
html:root body.d26 .mz-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
@media (min-width: 900px) {
  html:root body.d26 .mz-nav-strip { display: block; }
}
html:root body.d26 .mz-nav-link {
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  color: var(--mz-text-2); font: inherit; font-size: 14px; font-weight: 800;
  padding: 8px 12px; border-radius: 10px;
}
html:root body.d26 .mz-nav-link:hover { color: var(--mz-text); background: var(--mz-glass); }
html:root body.d26 .mz-nav-link:focus-visible { outline: 2px solid var(--mz-gold); outline-offset: 1px; }

/* the main tabs (کتابخانه / فیلترشکن / پروفایل) and the account buttons */
@media (min-width: 900px) {
  html:root body.d26 #bottom-tabs {
    background: var(--mz-glass) !important; border: 1px solid var(--mz-line) !important;
    box-shadow: none !important;
  }
}
html:root body.d26 #bottom-tabs .tab:not(.active) { color: var(--mz-text-2) !important; }
html.mz-light:root body.d26 #bottom-tabs { background: rgba(255, 255, 255, 0.92) !important; border-color: var(--mz-line) !important; }
html.mz-light:root body.d26 .top-bar-actions :is(.d26-icon, .icon-btn) {
  background: rgba(255, 255, 255, 0.85) !important; border-color: var(--mz-line) !important; color: var(--mz-text) !important;
}
html:root body.d26 .mz-light-switch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--mz-line-2); border-radius: 999px; padding: 5px 10px 5px 12px;
  background: var(--mz-glass); color: var(--mz-text-2); font: inherit; font-size: 12px; font-weight: 800;
}
html:root body.d26 .mz-switch-track {
  position: relative; width: 34px; height: 18px; border-radius: 999px; background: #3a3f50; transition: background .2s;
}
html:root body.d26 .mz-switch-knob {
  position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  transition: right .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
html:root body.d26 .mz-light-switch[aria-pressed="true"] .mz-switch-track { background: var(--mz-grad); }
html:root body.d26 .mz-light-switch[aria-pressed="true"] .mz-switch-knob { right: 18px; }
@media (max-width: 640px) {
  html:root body.d26 .mz-switch-label { display: none; }
  html:root body.d26 .mz-light-switch { padding: 5px 8px; }
}

/* ---------------------------------------------------------------- the notice above the panel */
html:root body.d26 #playback-link-notice {
  margin: 6px 0 4px !important; padding: 12px 18px !important;
  background: rgba(245, 196, 81, 0.08) !important; border: 1px solid rgba(245, 196, 81, 0.28) !important;
  border-radius: 16px !important; box-shadow: none !important; color: var(--mz-text-2) !important;
  font-size: 13px !important; line-height: 1.8 !important;
}
html:root body.d26 #playback-link-notice strong { color: var(--mz-gold) !important; font-size: 14px !important; }
html:root body.d26 #playback-link-notice p { color: var(--mz-text-2) !important; margin: 2px 0 0 !important; }
html.mz-light:root body.d26 #playback-link-notice { background: #fff8e8 !important; border-color: #f3d79a !important; }
html.mz-light:root body.d26 #playback-link-notice strong { color: #a15c07 !important; }
html.mz-light:root body.d26 #playback-link-notice p { color: #5b4a2a !important; }

/* ---------------------------------------------------------------- search and filters */
html:root body.d26 #tab-browse .search-row--compact.search-panel,
html:root body.d26 #tab-browse .search-row {
  background: var(--mz-card) !important; border: 1px solid var(--mz-line) !important;
  border-radius: 18px !important; box-shadow: none !important; margin-bottom: 18px !important;
}
@media (min-width: 1100px) {
  /* One row on a wide screen: the search field, then its tools and the menus. */
  html:root body.d26 #tab-browse .search-row--compact.search-panel {
    flex-direction: row !important; align-items: center !important; gap: 10px !important; padding: 8px 10px !important;
  }
  html:root body.d26 #tab-browse .search-panel .search-main { flex: 1 1 auto; }
  html:root body.d26 #tab-browse .search-panel .search-tools {
    flex: 0 0 auto; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: visible;
  }
  html:root body.d26 #tab-browse .search-panel .menu-btn { min-width: 112px; justify-content: center; }
}
html:root body.d26 .search-panel .menu-btn,
html:root body.d26 .search-panel :is(.search-tools, .search-main-tools) .genre-btn {
  background: var(--mz-card-2) !important; border: 1px solid var(--mz-line-2) !important; color: var(--mz-text) !important;
}
html:root body.d26 .search-panel .menu-btn.active { background: var(--mz-gold) !important; color: #1a1206 !important; border-color: var(--mz-gold) !important; }
html:root body.d26 .search-panel input { color: var(--mz-text) !important; }
html:root body.d26 .search-panel input::placeholder { color: var(--mz-text-3) !important; }

/* ---------------------------------------------------------------- featured cards (the hero) */
html:root body.d26 #home-view > .hero {
  margin-block: 0 18px !important; border: 0 !important; overflow: visible !important; background: none !important;
}
html:root body.d26 #home-view > .hero .hero-track { gap: 14px !important; }
html:root body.d26 #home-view > .hero .hero-slide {
  border-radius: 20px !important; border: 1px solid var(--mz-line) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}
@media (min-width: 900px) {
  /* Three compact featured cards (two on a tablet), like a shelf of highlights. */
  html:root body.d26 #home-view > .hero .hero-slide {
    flex: 0 0 calc((100% - 28px) / 3) !important; height: 236px !important; max-height: none !important; aspect-ratio: auto !important;
  }
  html:root body.d26 #home-view > .hero .hero-content {
    gap: 16px !important; padding: 18px 18px !important; align-items: stretch !important;
  }
  html:root body.d26 #home-view > .hero .hero-poster {
    width: 132px !important; height: auto !important; aspect-ratio: 2 / 3; flex: 0 0 132px !important; border-radius: 12px !important;
  }
  html:root body.d26 #home-view > .hero .hero-text {
    display: flex !important; flex-direction: column; justify-content: center; min-width: 0; max-width: none !important;
  }
  html:root body.d26 #home-view > .hero .hero-text h2 {
    font-size: 19px !important; line-height: 1.4 !important; margin: 2px 0 6px !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html:root body.d26 #home-view > .hero .hero-text p:not(.hero-eyebrow) {
    font-size: 12.5px !important; line-height: 1.8 !important; -webkit-line-clamp: 3 !important;
    display: -webkit-box !important; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 10px !important;
  }
  html:root body.d26 #home-view > .hero .hero-eyebrow { font-size: 12px !important; margin: 0 !important; }
  html:root body.d26 #home-view > .hero .hero-actions { margin-top: auto; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  html:root body.d26 #home-view > .hero .hero-slide { flex-basis: calc((100% - 14px) / 2) !important; }
}
html:root body.d26 .hero-text .hero-cta {
  background: var(--mz-grad) !important; color: #1a1006 !important; border: 0 !important;
  border-radius: 999px !important; font-weight: 900 !important; padding: 9px 18px !important; min-height: 0 !important;
  width: auto !important; font-size: 13px !important;
}
html:root body.d26 .hero-text .hero-cta--ghost {
  background: rgba(255, 255, 255, 0.10) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
/* The featured cards stay dark in the light appearance: they are artwork. */
html.mz-light:root body.d26 #home-view > .hero {
  --text: #f6f2ea; --text-primary: #f6f2ea; --text-secondary: #d9d3c8; --text-dim: #b9b2a6;
  --text-faint: #8d877d; --muted: #b9b2a6; --text-muted: #b9b2a6; --accent: #e8b44c;
}
html.mz-light:root body.d26 #home-view > .hero .hero-slide { box-shadow: 0 14px 30px rgba(40, 44, 80, 0.22) !important; border-color: transparent !important; }

/* ---------------------------------------------------------------- quick chips */
html:root body.d26 .mz-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 0 26px; }
html:root body.d26 .mz-quick-chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid var(--mz-line-2); border-radius: 999px; padding: 10px 18px;
  background: var(--mz-card); color: var(--mz-text); font: inherit; font-size: 14px; font-weight: 800;
  transition: border-color .15s, transform .15s;
}
html:root body.d26 .mz-quick-chip:hover { border-color: var(--mz-gold); transform: translateY(-1px); }
html:root body.d26 .mz-quick-chip--hot { background: var(--mz-grad); color: #1a1006; border-color: transparent; }
@media (max-width: 640px) {
  html:root body.d26 .mz-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
  html:root body.d26 .mz-quick::-webkit-scrollbar { display: none; }
  html:root body.d26 .mz-quick-chip { flex: 0 0 auto; padding: 9px 14px; font-size: 13px; }
}

/* ---------------------------------------------------------------- shelves */
html:root body.d26 .home-row { margin-bottom: 28px; }
html:root body.d26 .home-row .row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
html:root body.d26 .home-row .row-head h3,
html:root body.d26 .mz-genres .row-head h3 {
  display: flex !important; align-items: center; gap: 10px; margin: 0;
  font-size: 19px !important; font-weight: 900 !important; color: var(--mz-text) !important;
}
html:root body.d26 .home-row .row-head h3 .shelf-icon { display: none !important; }
html:root body.d26 .home-row .row-head h3::before,
html:root body.d26 .mz-genres .row-head h3::before {
  content: "" !important; display: inline-block !important; width: 4px; height: 22px; border-radius: 3px; background: var(--mz-grad);
}
html:root body.d26 .home-row .row-more {
  border: 1px solid var(--mz-line-2) !important; border-radius: 999px !important; padding: 5px 13px !important;
  background: var(--mz-card) !important; color: var(--mz-text-2) !important; font-size: 12px !important; font-weight: 800 !important;
  width: auto !important; min-height: 0 !important;
}
html:root body.d26 .home-row .row-more:hover { color: var(--mz-text) !important; border-color: var(--mz-gold) !important; }

/* ---------------------------------------------------------------- cards */
html:root body.d26 .poster-card { background: transparent; border: 0; box-shadow: none; }
html:root body.d26 .poster-card .poster-tile {
  border-radius: 12px !important; overflow: hidden; background: var(--mz-card-2) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.30) !important; transition: transform .18s ease, box-shadow .18s ease;
}
html:root body.d26 .poster-card:hover .poster-tile { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38) !important; }
html.mz-light:root body.d26 .poster-card .poster-tile { box-shadow: 0 6px 16px rgba(40, 44, 80, 0.16) !important; }
html:root body.d26 .poster-card .imdb-badge {
  top: 6px; left: 6px; right: auto;
  background: rgba(10, 11, 16, 0.86); color: #ffd36e; border-radius: 6px; padding: 2px 6px; font-size: 11px; font-weight: 900;
}
html:root body.d26 .poster-card .audio-badge-group {
  position: absolute; top: 30px; right: 6px; left: auto; bottom: auto; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
html:root body.d26 .poster-card .audio-badge { border-radius: 5px; font-size: 10px; font-weight: 900; padding: 1px 6px; color: #fff; }
html:root body.d26 .poster-card .audio-badge.dubbed { background: var(--mz-dub); }
html:root body.d26 .poster-card .audio-badge.subtitled { background: var(--mz-sub); }
html:root body.d26 .poster-card .episode-band {
  position: absolute; bottom: 6px; right: 6px; z-index: 2;
  background: rgba(10, 11, 16, 0.86); color: #fff; border-radius: 7px; padding: 2px 8px; font-size: 11px; font-weight: 800;
}
html:root body.d26 .poster-info { padding: 8px 2px 0; }
html:root body.d26 .poster-card .poster-title,
html:root body.d26 .poster-card .poster-title a { color: var(--mz-text) !important; font-weight: 800; font-size: 13.5px; }
html:root body.d26 .poster-card .poster-original {
  color: var(--mz-text-2); font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html:root body.d26 .poster-card .poster-meta { color: var(--mz-text-3) !important; font-size: 11.5px; }
html:root body.d26 .poster-card .poster-meta span + span::before { content: "|"; margin: 0 6px; opacity: 0.5; }
html:root body.d26 .poster-card .poster-genres {
  color: var(--mz-text-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- genre tiles */
html:root body.d26 .mz-genres { margin-block: 6px 26px; }
html:root body.d26 .mz-genres .row-head { margin-bottom: 12px; }
html:root body.d26 .mz-genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
html:root body.d26 .mz-genre {
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--mz-line); border-radius: 16px; padding: 18px 8px 14px;
  background: var(--mz-card); color: var(--mz-text); font: inherit; transition: transform .15s, border-color .15s;
}
html:root body.d26 .mz-genre:hover { transform: translateY(-2px); border-color: var(--mz-gold); }
html:root body.d26 .mz-genre-icon { font-size: 22px; line-height: 1; }
html:root body.d26 .mz-genre-name { font-size: 14px; font-weight: 900; }
html:root body.d26 .mz-genre-count { font-size: 11.5px; color: var(--mz-text-3); }

/* ---------------------------------------------------------------- the archive in numbers (bottom) */
html:root body.d26 .mz-stats {
  position: relative; overflow: hidden;
  background: var(--mz-card); border: 1px solid var(--mz-line); border-radius: 22px;
  padding: 26px 30px 22px; margin-block: 6px 22px; text-align: center; color: var(--mz-text);
}
html:root body.d26 .mz-stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background: radial-gradient(600px 160px at 85% 0%, rgba(139, 124, 255, 0.16), transparent 70%),
              radial-gradient(500px 160px at 10% 100%, rgba(255, 148, 64, 0.12), transparent 70%);
}
html:root body.d26 .mz-stats > * { position: relative; }
html:root body.d26 .mz-stats-title { margin: 0 0 8px; font-size: 22px; font-weight: 900; line-height: 1.6; color: var(--mz-text); }
html:root body.d26 .mz-stats-lead { margin: 0 0 20px; color: var(--mz-text-2); font-size: 14px; }
html:root body.d26 .mz-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
html:root body.d26 .mz-stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px solid var(--mz-line-2); border-radius: 18px; padding: 20px 16px 18px; background: var(--mz-card-2);
}
html:root body.d26 .mz-stat-kicker { font-size: 13px; font-weight: 800; color: var(--mz-text-2); }
html:root body.d26 .mz-stat-value { font-size: 54px; line-height: 1.15; font-weight: 900; color: var(--mz-text); letter-spacing: -1px; }
html:root body.d26 .mz-stat-caption { font-size: 14px; font-weight: 800; color: var(--mz-text-2); }
html:root body.d26 .mz-stat-foot { margin-top: 10px; font-size: 12px; color: var(--mz-text-3); }
html:root body.d26 .mz-stat-foot b { color: var(--mz-text); font-weight: 900; }
html:root body.d26 .mz-stat--gold .mz-stat-kicker, html:root body.d26 .mz-stat--gold .mz-stat-value { color: var(--mz-gold); }
html.mz-light:root body.d26 .mz-stat--gold .mz-stat-kicker, html.mz-light:root body.d26 .mz-stat--gold .mz-stat-value { color: #a16207; }
html:root body.d26 .mz-stats-new { margin: 16px 0 0; color: var(--mz-text-2); font-size: 14px; }
html:root body.d26 .mz-stats-new b { color: var(--mz-text); font-size: 22px; font-weight: 900; margin-left: 6px; }

/* ---------------------------------------------------------------- install card */
html:root body.d26 .home-install-card {
  background: var(--mz-card) !important; border: 1px solid var(--mz-line) !important; border-radius: 20px !important;
  color: var(--mz-text) !important; box-shadow: none !important;
}

/* ---------------------------------------------------------------- footer */
html:root body.d26 #seo-footer.seo-footer {
  max-width: 1400px; width: auto; margin: 22px 20px 0; padding: 24px 28px calc(96px + env(safe-area-inset-bottom, 0px));
  background: var(--mz-panel); border: 1px solid var(--mz-panel-line); border-bottom: 0;
  border-radius: 24px 24px 0 0; color: var(--mz-text-2);
}
@media (min-width: 1440px) { html:root body.d26 #seo-footer.seo-footer { margin-inline: auto; } }
html:root body.d26 #seo-footer h2 { color: var(--mz-text); }
html:root body.d26 #seo-footer a { color: var(--mz-text-2); }
html:root body.d26 #seo-footer a:hover { color: var(--mz-gold); }
html.mz-light:root body.d26 #seo-footer a:hover { color: #b45309; }
html:root body.d26 .mz-apps {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--mz-line);
}
html:root body.d26 .mz-apps-copy { display: flex; flex-direction: column; gap: 2px; }
html:root body.d26 .mz-apps-copy b { color: var(--mz-text); font-size: 15px; }
html:root body.d26 .mz-apps-copy span { color: var(--mz-text-3); font-size: 12.5px; }
html:root body.d26 .mz-apps-actions { display: flex; gap: 8px; flex-wrap: wrap; }
html:root body.d26 .mz-apps-chip, html:root body.d26 .mz-apps-cta {
  cursor: pointer; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 800;
  border: 1px solid var(--mz-line-2); background: var(--mz-card); color: var(--mz-text);
}
html:root body.d26 .mz-apps-cta { background: var(--mz-grad); color: #1a1006; border-color: transparent; }

/* ---------------------------------------------------------------- light: the rest of the site
   Sheets, menus and pages already read the variables above; these are the places the
   earlier layers painted with fixed dark colours. */
html.mz-light:root body.d26 :is(.modal-content, .detail-sheet, .menu-pop, .card, .acct-card, .acct-group, .vpn-plans > *,
                                  .toast, .login-card, .sort-menu, .genre-menu) {
  background-color: var(--mz-card) !important; color: var(--mz-text) !important; border-color: var(--mz-line) !important;
}
html.mz-light:root body.d26 .menu-pop :is(button, a) { color: var(--mz-text) !important; }
html.mz-light:root body.d26 :is(input, textarea, select):not([type="checkbox"]):not([type="radio"]) {
  background-color: #ffffff !important; color: var(--mz-text) !important; border-color: var(--mz-line-2) !important;
}
@media (max-width: 899px) {
  html.mz-light:root body.d26 #bottom-tabs {
    background: rgba(255, 255, 255, 0.94) !important; border-color: var(--mz-line) !important;
    box-shadow: 0 10px 30px rgba(40, 44, 80, 0.18) !important;
  }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  html:root body.d26 #screen-app { padding-inline: 0; }
  html:root body.d26 #app-main { margin: 4px 0 0; padding: 16px 4px 22px; border-radius: 22px 22px 0 0; }
  html:root body.d26 .mz-announce { display: none; }   /* phones already get the small install invite */
  html:root body.d26 .top-bar { padding: 10px 12px !important; }
  html:root body.d26 #playback-link-notice { margin: 4px 10px 6px !important; padding: 10px 14px !important; }
  html:root body.d26 #seo-footer.seo-footer { margin: 16px 0 0; padding-inline: 16px; }
  html:root body.d26 .mz-genre-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  html:root body.d26 .mz-genre { padding: 12px 4px 10px; }
  html:root body.d26 .mz-stats { padding: 18px 14px; border-radius: 18px; }
  html:root body.d26 .mz-stats-title { font-size: 17px; }
  html:root body.d26 .mz-stats-grid { grid-template-columns: 1fr; gap: 10px; }
  html:root body.d26 .mz-stat-value { font-size: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  html:root:root body.d26.d26.d26::after { animation: none !important; opacity: 0.6 !important; }
  html:root body.d26 :is(.mz-genre, .mz-switch-knob, .mz-quick-chip, .poster-tile) { transition: none !important; }
}

/* ---------------------------------------------------------------- contested selectors
   The header bar (performance.css .top-bar.perf-header), the search tools (#genre-filter-
   button, #sort-button) and the tab labels are painted by earlier layers with ids and
   !important; these restate the same intent with enough weight to win. */
html:root:root body.d26.d26.d26 .top-bar,
html:root:root body.d26.d26.d26 .top-bar.perf-header {
  background: transparent !important; border-color: transparent !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
html:root:root body.d26.d26.d26 #tab-browse .search-panel :is(.menu-btn, #genre-filter-button, #sort-button, .genre-btn) {
  background: var(--mz-card-2) !important; border: 1px solid var(--mz-line-2) !important; color: var(--mz-text) !important;
  box-shadow: none !important;
}
html:root:root body.d26.d26.d26 #tab-browse .search-panel :is(.menu-btn, .genre-btn) :is(span, svg) { color: inherit !important; }
html:root:root body.d26.d26.d26 #tab-browse .search-panel .menu-btn.active {
  background: var(--mz-gold) !important; color: #1a1206 !important; border-color: var(--mz-gold) !important;
}
html:root:root body.d26.d26.d26 #bottom-tabs button:not(.active):not(.assistant-fab),
html:root:root body.d26.d26.d26 #bottom-tabs button:not(.active):not(.assistant-fab) span { color: var(--mz-text-2) !important; }
html:root:root body.d26.d26.d26 #bottom-tabs button:not(.active):not(.assistant-fab):hover { color: var(--mz-text) !important; }

/* ---------------------------------------------------------------- the small install invite */
html.mz-light:root body.d26 #amm-install-invite {
  background: rgba(255, 255, 255, 0.96) !important; border-color: #f3d79a !important; color: var(--mz-text) !important;
  box-shadow: 0 16px 40px rgba(40, 44, 80, 0.18) !important;
}
html.mz-light:root body.d26 #amm-install-invite .ai-text small,
html.mz-light:root body.d26 #amm-install-invite .ai-close { color: var(--mz-text-2) !important; }
html.mz-light:root body.d26 #amm-install-invite .ai-close { background: #f1f2f6 !important; color: var(--mz-text) !important; }
html.mz-light:root:root body.d26.d26.d26 .home-install-card .home-install-copy :is(h2, p) { color: var(--mz-text) !important; }
html.mz-light:root:root body.d26.d26.d26 .home-install-card .home-install-copy p { color: var(--mz-text-2) !important; }
html.mz-light:root:root body.d26.d26.d26 .home-install-card .home-install-badge {
  color: #6d28d9 !important; background: #f1edff !important; border-color: #ddd3ff !important;
}
@media (max-width: 640px) {
  /* The header carries a -14px margin meant for a 14px page padding the phone layout here
     does not have: without this it hung 14px off each side of the screen. */
  html:root:root body.d26.d26.d26 .top-bar { margin-inline: 0 !important; width: auto !important; padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px !important; }
}
@media (max-width: 640px) {
  /* The light switch joins the phone header as the bare toggle, and the header tightens,
     so brand, switch, music and sign-in fit a 360px screen. */
  html:root:root body.d26.d26.d26 .top-bar { gap: 8px !important; }
  html:root:root body.d26.d26.d26 .top-bar-actions { gap: 6px !important; }
  html:root body.d26 .mz-light-switch { padding: 0 !important; border: 0 !important; background: none !important; }
}

/* ---------------------------------------------------------------- the title sheet, light
   design-2026.css gives the sheet a fixed #0d0c0b; its text already follows the variables,
   so in the light appearance the sheet, its tiles and the artwork's fade follow too. */
html.mz-light:root:root body.d26.d26.d26 #detail-modal .modal-sheet {
  background: var(--mz-card) !important; color: var(--mz-text) !important;
  box-shadow: 0 30px 80px rgba(40, 44, 80, 0.28) !important;
}
html.mz-light:root:root body.d26.d26.d26 #detail-modal .detail-hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.75) 78%, var(--mz-card) 100%) !important;
}
html.mz-light:root:root body.d26.d26.d26 #detail-modal :is(.ep-tile, .detail-season-btn:not(.is-active), #detail-mylist-button) {
  background: var(--mz-card-2) !important; color: var(--mz-text) !important; border-color: var(--mz-line-2) !important;
}
html.mz-light:root:root body.d26.d26.d26 #detail-modal :is(.ep-tile, #detail-mylist-button) :is(b, span) { color: inherit !important; }
html.mz-light:root:root body.d26.d26.d26 #detail-modal .modal-close {
  background: rgba(255, 255, 255, 0.9) !important; color: #121521 !important; border-color: var(--mz-line) !important;
}
html.mz-light:root:root body.d26.d26.d26 #detail-modal .detail-seasons-label { color: var(--mz-text-2) !important; }
html.mz-light:root:root body.d26.d26.d26 #detail-modal h2 { color: var(--mz-text) !important; }

/* ---------------------------------------------------------------- poster badges, one system
   Owner 2026-11-08: «دوبله/زیرنویس» must line up with «فیلم/سریال» above them. Every
   badge now has the same height, corner and type; the right-hand column starts at the
   same edge (RTL start = flex-start) with an even 4px rhythm; IMDb mirrors it on the left. */
html:root:root body.d26.d26.d26 .poster-card :is(.kind-badge, .audio-badge, .imdb-badge) {
  height: 20px !important; min-height: 0 !important; line-height: 20px !important; padding: 0 7px !important;
  border-radius: 6px !important; font-size: 10.5px !important; font-weight: 900 !important;
  display: inline-flex !important; align-items: center; gap: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
  border: 0 !important; letter-spacing: 0;
}
html:root:root body.d26.d26.d26 .poster-card .kind-badge {
  position: absolute !important; top: 6px !important; right: 6px !important; left: auto !important; bottom: auto !important;
  background: rgba(10, 11, 16, 0.86) !important; color: #fff !important;
}
html:root:root body.d26.d26.d26 .poster-card .audio-badge-group {
  position: absolute !important; top: 30px !important; right: 6px !important; left: auto !important; bottom: auto !important;
  display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 4px !important;
  margin: 0 !important; padding: 0 !important; width: auto !important;
}
html:root:root body.d26.d26.d26 .poster-card .audio-badge.dubbed { background: #16a34a !important; color: #fff !important; }
html:root:root body.d26.d26.d26 .poster-card .audio-badge.subtitled { background: #2563eb !important; color: #fff !important; }
html:root:root body.d26.d26.d26 .poster-card .audio-badge.original { background: rgba(10, 11, 16, 0.86) !important; color: #fff !important; }
html:root:root body.d26.d26.d26 .poster-card .imdb-badge {
  position: absolute !important; top: 6px !important; left: 6px !important; right: auto !important;
  background: rgba(10, 11, 16, 0.86) !important; color: #ffd36e !important;
}
html:root:root body.d26.d26.d26 .poster-card .episode-band {
  height: 20px; line-height: 20px; padding: 0 7px; border-radius: 6px; bottom: 6px; right: 6px;
}

/* ---------------------------------------------------------------- «ادامه تماشا» */
html:root:root body.d26.d26.d26 .home-row--continue .episode-band,
html:root:root body.d26.d26.d26 .home-row--continue .card-episode { display: none !important; }
html:root:root body.d26.d26.d26 .home-row--continue .card-progress {
  left: 0 !important; right: 0 !important; bottom: 0 !important; height: 4px !important; border-radius: 0 !important;
  background: rgba(0, 0, 0, 0.45) !important;
}
html:root:root body.d26.d26.d26 .home-row--continue .card-progress::after { background: var(--mz-grad) !important; }
html:root body.d26 .poster-card .poster-continue {
  margin-top: 2px; font-size: 11.5px; font-weight: 800; color: var(--mz-gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.mz-light:root body.d26 .poster-card .poster-continue { color: #b45309; }
html:root body.d26 .detail-resume-note {
  display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; font-weight: 800; color: var(--mz-gold);
}
html.mz-light:root body.d26 .detail-resume-note { color: #b45309; }
html:root body.d26 .detail-resume-note svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- playback help */
html:root body.d26 .play-support-quiet { margin: 10px 0 0; font-size: 12px; color: var(--mz-text-3); text-align: center; }
html:root body.d26 .play-support-quiet a { color: var(--mz-gold); font-weight: 800; text-decoration: none; }
html.mz-light:root body.d26 .play-support-quiet a { color: #b45309; }
html:root body.d26 .play-support {
  display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; padding: 14px 16px; border-radius: 16px;
  background: rgba(245, 196, 81, 0.08); border: 1px solid rgba(245, 196, 81, 0.35); color: var(--mz-text);
}
html.mz-light:root body.d26 .play-support { background: #fff8e8; border-color: #f3d79a; }
html:root body.d26 .play-support b { font-size: 14px; }
html:root body.d26 .play-support span { font-size: 12.5px; color: var(--mz-text-2); line-height: 1.8; }
html:root body.d26 .play-support-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
html:root body.d26 .play-support-actions .play-go { flex: 1 1 auto; justify-content: center; text-decoration: none; }
html:root body.d26 #web-player .wp-support { background: rgba(245, 196, 81, 0.16); border: 1px solid rgba(245, 196, 81, 0.5); color: #ffe3a3; }

/* ---------------------------------------------------------------- phone status bar
   In the Android app the page draws under the status bar (clock, battery): scrolled
   posters ran under the icons. A strip of the page colour, exactly the status bar's
   height, now sits there; it is zero tall in a desktop browser. */
html:root body.d26 #screen-app::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px);
  z-index: 95; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 12, 0.96), rgba(5, 6, 12, 0.88));
}
html.mz-light:root body.d26 #screen-app::before { background: rgba(238, 240, 247, 0.96); }

/* The phone app (targetSdk 36) now draws edge to edge: the WebView runs under the Android status
   bar and reports it as env(safe-area-inset-top). The header padding above carries that inset
   again (it is 0 in a browser tab and when the WebView sits below the bar). */
html.native-app { --topbar-h: calc(72px + env(safe-area-inset-top, 0px)); }

/* Continue row: «فصل ۱، قسمت ۵» and the percentage as two parts (a middle dot beside Persian
   digits reads as ۰). */
html:root body.d26 .poster-card .poster-continue { display: flex; align-items: center; gap: 6px; min-width: 0; }
html:root body.d26 .poster-card .poster-continue span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html:root body.d26 .poster-card .poster-continue b {
  flex: none; font-weight: 800; font-size: 10.5px; line-height: 16px; padding: 0 6px; border-radius: 999px;
  background: rgba(245, 196, 81, 0.16); color: var(--mz-gold);
}
html.mz-light:root body.d26 .poster-card .poster-continue b { background: #fdf0d5; color: #b45309; }
/* The same order on every poster: دوبله, then زیرنویس, then the original-audio tag (the data
   lists them in whatever order the sources gave). */
html:root:root body.d26.d26.d26 .poster-card .audio-badge.dubbed { order: 0; }
html:root:root body.d26.d26.d26 .poster-card .audio-badge.subtitled { order: 1; }
html:root:root body.d26.d26.d26 .poster-card .audio-badge.original { order: 2; }

/* Title page on a phone: the play bar is solid under its button and the resume note, so the
   tags and the story no longer show through them (seen in the Android app 2026-11-08). */
html:root:root body.d26.d26.d26 #detail-modal .detail-cta-bar {
  background: linear-gradient(180deg, rgba(13, 12, 11, 0) 0, rgba(13, 12, 11, 0.97) 18px, #0d0c0b 100%) !important;
}
html.mz-light:root:root body.d26.d26.d26 #detail-modal .detail-cta-bar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0, var(--mz-card) 18px, var(--mz-card) 100%) !important;
}
html:root:root body.d26.d26.d26 #detail-modal .detail-resume-note { justify-content: center; margin: 8px 0 0; }
/* The «install the app» card waits while a title, a sheet or the player is open: on a phone it
   sat over the title page's play button. */
html:root body.d26:has(.modal-overlay:not(.hidden):not(.install-guide-overlay), #web-player:not(.hidden)) #amm-install-invite {
  display: none !important;
}

/* «لغو سفارش» is the quiet choice next to «پرداخت»: an outlined red pill, readable in both
   appearances (the button chain painted it pale gold with white text). */
html:root:root body.d26.d26.d26 .cancel-order-btn:not(:disabled) {
  background: rgba(239, 68, 68, 0.10) !important; color: #fca5a5 !important; -webkit-text-fill-color: currentColor !important;
  border: 1px solid rgba(248, 113, 113, 0.45) !important; box-shadow: none !important; text-shadow: none !important;
}
html.mz-light:root:root body.d26.d26.d26 .cancel-order-btn:not(:disabled) {
  background: #fef2f2 !important; color: #b91c1c !important; border-color: #fca5a5 !important;
}

/* ---------------------------------------------------------------- continue row, 2026-11-08 (2)
   «حذف از ادامه تماشا»: a small round button at the poster's top-left (the IMDb tag steps
   aside on this row); on a mouse it shows on hover, on touch it is always there. */
html:root:root body.d26.d26.d26 .home-row--continue .imdb-badge { display: none !important; }
html:root:root body.d26.d26.d26 .home-row--continue .continue-remove {
  position: absolute; top: 6px; left: 6px; z-index: 4; width: 26px !important; height: 26px !important;
  min-width: 26px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
  display: grid !important; place-items: center; border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important; background: rgba(10, 11, 16, 0.72) !important;
  color: #fff !important; box-shadow: none !important; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
html:root:root body.d26.d26.d26 .home-row--continue .continue-remove svg { width: 14px; height: 14px; display: block; }
html:root:root body.d26.d26.d26 .home-row--continue .continue-remove:hover,
html:root:root body.d26.d26.d26 .home-row--continue .continue-remove:focus-visible { background: #dc2626 !important; border-color: transparent !important; }
@media (hover: hover) and (pointer: fine) {
  html:root:root body.d26.d26.d26 .home-row--continue .continue-remove { opacity: 0; transition: opacity 0.15s ease; }
  html:root:root body.d26.d26.d26 .home-row--continue .poster-card:hover .continue-remove,
  html:root:root body.d26.d26.d26 .home-row--continue .continue-remove:focus-visible { opacity: 1; }
}
html:root:root body.d26.d26.d26 .home-row--continue .poster-card.is-removed { display: none !important; }
/* «قسمت بعد» (blue) and «قسمت جدید» (green) in place of the minute */
html:root body.d26 .poster-card .poster-continue.is-next b { background: rgba(96, 165, 250, 0.18); color: #93c5fd; }
html:root body.d26 .poster-card .poster-continue.is-new b { background: #16a34a; color: #fff; }
html.mz-light:root body.d26 .poster-card .poster-continue.is-next b { background: #dbeafe; color: #1d4ed8; }
html:root:root body.d26.d26.d26 .detail-resume-note.is-new { color: #4ade80; }
html.mz-light:root:root body.d26.d26.d26 .detail-resume-note.is-new { color: #15803d; }
/* A toast with «برگرداندن» */
html:root body.d26 #toast-container .toast--action {
  display: flex; align-items: center; gap: 12px; pointer-events: auto; padding: 8px 16px 8px 8px; max-width: min(440px, 100%);
}
html:root body.d26 #toast-container .toast--action span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:root:root body.d26.d26.d26 #toast-container .toast-action {
  flex: none; width: auto !important; min-height: 0 !important; margin: 0 !important; padding: 6px 14px !important;
  border: 0 !important; border-radius: 999px !important; background: var(--mz-gold) !important; color: #1a1206 !important;
  font: inherit; font-size: 12.5px; font-weight: 800; box-shadow: none !important; cursor: pointer;
}
/* Phone app: the strip under Android's navigation buttons (edge to edge since 1.6.3) is solid,
   so the page no longer scrolls visibly behind them. */
html.native-app body.d26 #screen-app::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: env(safe-area-inset-bottom, 0px);
  z-index: 95; pointer-events: none; background: rgba(5, 6, 12, 0.97);
}
html.native-app.mz-light body.d26 #screen-app::after { background: rgba(238, 240, 247, 0.97); }
/* Narrow phone cards: the label keeps its whole text and the pill moves to a second line. */
html:root body.d26 .poster-card .poster-continue { flex-wrap: wrap; row-gap: 3px; }
html:root body.d26 .poster-card .poster-continue span { flex: 0 1 auto; white-space: nowrap; }

/* ---------------------------------------------------------------- web player, 2026-11-08
   Owner: «پخش آنلاین تمام صفحه نمیشه … گزینه تنظیمات پخش کوچیکتر و در جای مناسب قرار بگیره».
   The settings button had no .secondary, so the site's general button rule stretched it across
   the screen and pushed the full-screen button out of sight. Now one slim bar: close and the
   title on the right, two round icon buttons (settings, full screen) on the left. */
html:root:root body.d26.d26.d26 #web-player .wp-top {
  gap: 10px !important; padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 28px max(14px, env(safe-area-inset-left)) !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)) !important; border: 0 !important; box-shadow: none !important;
}
html:root:root body.d26.d26.d26 #web-player .wp-title { font-size: 15px !important; font-weight: 800; color: #fff !important; }
html:root:root body.d26.d26.d26 #web-player :is(.wp-close, .wp-settings-button, .wp-fullscreen) {
  flex: none; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  width: auto !important; min-width: 40px !important; height: 40px !important; min-height: 40px !important;
  margin: 0 !important; padding: 0 10px !important; border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important; background: rgba(20, 20, 26, 0.62) !important;
  color: #fff !important; box-shadow: none !important; font: inherit; font-size: 13px !important; font-weight: 700;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transform: none !important;
}
html:root:root body.d26.d26.d26 #web-player :is(.wp-close, .wp-fullscreen) { width: 40px !important; padding: 0 !important; }
html:root:root body.d26.d26.d26 #web-player :is(.wp-close, .wp-settings-button, .wp-fullscreen):hover { background: rgba(255, 255, 255, 0.18) !important; }
html:root:root body.d26.d26.d26 #web-player :is(.wp-settings-button, .wp-fullscreen) svg { width: 19px; height: 19px; display: block; }
html:root:root body.d26.d26.d26 #web-player .wp-close .ui-icon { width: 18px; height: 18px; }
html:root:root body.d26.d26.d26 #web-player .wp-fullscreen .wp-fs-out,
html:root:root body.d26.d26.d26 #web-player.wp-is-fullscreen .wp-fullscreen .wp-fs-in { display: none !important; }
html:root:root body.d26.d26.d26 #web-player.wp-is-fullscreen .wp-fullscreen .wp-fs-out { display: block !important; }
@media (max-width: 560px) {
  html:root:root body.d26.d26.d26 #web-player .wp-settings-button { width: 40px !important; padding: 0 !important; }
  html:root:root body.d26.d26.d26 #web-player .wp-settings-button span { display: none; }
}
/* The settings: a small card under the gear, not a page-wide panel. */
html:root:root body.d26.d26.d26 #web-player .wp-settings {
  inset-block-start: calc(max(10px, env(safe-area-inset-top)) + 48px) !important; inset-inline-end: auto !important;
  inset-inline-start: auto !important; left: max(14px, env(safe-area-inset-left)) !important; right: auto !important;
  width: min(260px, calc(100% - 28px)) !important; padding: 12px !important; gap: 10px !important;
  border-radius: 14px !important; background: rgba(22, 22, 28, 0.96) !important; border: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-size: 13px;
}
html:root:root body.d26.d26.d26 #web-player .wp-settings select { min-height: 38px !important; font-size: 13px !important; }
html:root:root body.d26.d26.d26 #web-player .wp-settings-close {
  width: auto !important; min-height: 34px !important; height: 34px; padding: 0 14px !important; justify-self: start;
  border-radius: 999px !important; background: rgba(255, 255, 255, 0.1) !important; border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #fff !important; box-shadow: none !important; font-size: 12.5px !important;
}
/* Notices sit under the bar, a little narrower. */
html:root:root body.d26.d26.d26 #web-player .wp-notice { top: calc(max(10px, env(safe-area-inset-top)) + 56px) !important; max-width: calc(100% - 32px); font-size: 13px; }
/* Full screen without the browser's help: on an upright phone the whole player turns to landscape. */
html:root:root body.d26.d26.d26 #web-player.wp-turned { position: fixed; inset: 0; z-index: 2147483000; }
@media (orientation: portrait) {
  html:root:root body.d26.d26.d26 #web-player.wp-turned {
    inset: auto; top: 0; left: 100vw; width: 100vh; height: 100vw; width: 100dvh;
    transform-origin: top left; transform: rotate(90deg);
  }
}
html:root:root body.d26.d26.d26 #web-player.wp-turned video, #web-player:fullscreen video { max-height: none !important; height: 100% !important; }
/* The install card (2026-11-08): light appearance for the three app buttons. */
html.mz-light:root body.d26 #amm-install-invite .ai-app:not(.is-primary) { background: #f4f5f9 !important; border-color: #e3e5ee !important; color: var(--mz-text) !important; }
/* The site's general button rule adds a margin and a minimum height to <button>s only: the
   iPhone button (a <button>) sat 10px lower than the two links next to it. */
html:root:root body.d26.d26.d26 #amm-install-invite .ai-app { margin: 0 !important; width: auto !important; min-height: 0 !important; height: 40px !important; box-shadow: none !important; transform: none !important; }
html:root:root body.d26.d26.d26 #amm-install-invite .ai-close { margin: 0 !important; min-height: 0 !important; box-shadow: none !important; }


/* 2026-11-29: genre tiles stay in three columns, but shorter and even. */
html:root:root body.d26.d26 .mz-genres { margin-block: 4px 18px !important; }
html:root:root body.d26.d26 .mz-genre-grid {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
  gap: 8px !important;
}
html:root:root body.d26.d26 .mz-genre {
  gap: 3px !important;
  padding: 10px 6px 8px !important;
  border-radius: 14px !important;
}
html:root:root body.d26.d26 .mz-genre-icon { font-size: 18px !important; }
html:root:root body.d26.d26 .mz-genre-name { font-size: 12.5px !important; line-height: 1.45 !important; }
html:root:root body.d26.d26 .mz-genre-count { font-size: 10.5px !important; }
@media (max-width: 720px) {
  html:root:root body.d26.d26 .mz-genre-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  html:root:root body.d26.d26 .mz-genre { padding: 9px 4px 8px !important; }
}


/* 2026-11-29: the empty band between the update banner and the logo. */
html:root body.d26:has(#release-banner) #screen-app { padding-top: 0 !important; }
html:root body.d26:has(#release-banner) .top-bar {
  padding-top: 2px !important;
  margin-bottom: 8px !important;
}

/* Phone: keep the search card clear of the club bar and the hero. */
@media (max-width: 720px) {
  html:root:root body.d26.d26:has(#release-banner) .top-bar {
    margin-bottom: 0 !important;
  }
  html:root:root body.d26.d26 #app-main {
    margin-top: 0 !important;
    padding-top: 16px !important;
  }
  html:root:root body.d26.d26 #tab-browse .search-row--compact.search-panel {
    margin: 0 var(--mz-edge, 16px) 24px !important;
  }
  html:root:root body.d26.d26 #home-view > .hero {
    margin: 0 var(--mz-edge, 16px) 20px !important;
  }
}

/* Phone: one full-width feature card, and even search controls. */
@media (max-width: 720px) {
  html:root:root body.d26.d26 #tab-browse .search-row--compact.search-panel {
    position: relative !important;
    top: auto !important;
    padding: 10px !important;
  }
  html:root:root body.d26.d26 #tab-browse .search-panel .search-main {
    width: 100% !important;
    min-width: 0 !important;
  }
  html:root:root body.d26.d26 #tab-browse .search-panel .search-tools {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
  }
  html:root:root body.d26.d26 #tab-browse .search-panel .search-tools .menu-btn,
  html:root:root body.d26.d26 #tab-browse .search-panel .search-main-tools .genre-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 36px !important;
    justify-content: center !important;
    padding-inline: 8px !important;
  }
  html:root:root body.d26.d26 #home-view > .hero { overflow: hidden !important; }
  html:root:root body.d26.d26 #home-view > .hero .hero-track {
    display: flex !important;
    gap: 0 !important;
    overflow: hidden !important;
  }
  html:root:root body.d26.d26 #home-view > .hero .hero-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* Phone: the sort and genre buttons stay inside the search card. */
@media (max-width: 720px) {
  html:root:root:root body.d26.d26.d26 #tab-browse .search-panel .search-main {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: hidden !important;
  }
  html:root:root:root body.d26.d26.d26 #tab-browse .search-panel .search-main-tools {
    display: flex !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    width: auto !important;
  }
  html:root:root:root body.d26.d26.d26 #tab-browse .search-panel .search-main-tools .genre-btn {
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    padding-inline: 10px !important;
  }
  html:root:root:root body.d26.d26.d26 #tab-browse .search-panel input[type="search"] {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }
}

.ag-overlay,.ag-page{--ag-bg: #0b0d16;--ag-card: #151925;--ag-card-2: #1b2030;--ag-line: rgba(255, 255, 255, .09);--ag-text: #f3f4f8;--ag-text-2: #aab1c4;--ag-gold: #f5c451;--ag-grad: linear-gradient(135deg, #ffd36e, #ff9440);--ag-warn: rgba(255, 148, 64, .12);--ag-warn-line: rgba(255, 148, 64, .45);font-family:inherit;color:var(--ag-text)}html.mz-light .ag-overlay,html.mz-light .ag-page,html[data-theme=light] .ag-page{--ag-bg: #f6f3ec;--ag-card: #ffffff;--ag-card-2: #f3efe6;--ag-line: rgba(20, 24, 40, .12);--ag-text: #171a24;--ag-text-2: #545b6e;--ag-gold: #b7790a;--ag-warn: rgba(214, 112, 20, .1);--ag-warn-line: rgba(214, 112, 20, .45)}.ag-overlay{position:fixed;inset:0;z-index:10050;display:flex;align-items:flex-end;justify-content:center;background:#030409a8;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.ag-sheet{position:relative;width:min(560px,100%);max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;background:var(--ag-bg);border:1px solid var(--ag-line);border-bottom:0;border-radius:22px 22px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px #00000073}@media(min-width:720px){.ag-overlay{align-items:center}.ag-sheet{border-radius:22px;border-bottom:1px solid var(--ag-line);padding:26px 26px 24px}}.ag-close{position:absolute;top:12px;left:12px;width:36px;height:36px;border-radius:50%;border:1px solid var(--ag-line);background:var(--ag-card);color:var(--ag-text);font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}.ag-head{display:flex;gap:14px;align-items:flex-start;padding-left:40px}.ag-badge{flex:0 0 48px;width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--ag-grad);color:#1a1205}.ag-badge svg{width:28px;height:28px}.ag-head h2{margin:2px 0 6px;font-size:1.18rem;line-height:1.5;color:var(--ag-text)}.ag-lead{margin:0;color:var(--ag-text-2);font-size:.92rem;line-height:1.85}.ag-lead b{color:var(--ag-text)}.ag-download{margin:18px 0 6px;display:flex;align-items:center;justify-content:center;gap:12px;min-height:58px;border-radius:16px;background:var(--ag-grad);color:#1a1205!important;text-decoration:none!important;font-weight:800;box-shadow:0 10px 28px #ff944047}.ag-download svg{width:24px;height:24px;flex:0 0 24px}.ag-download span{display:flex;flex-direction:column;line-height:1.45;text-align:right}.ag-download b{font-size:1.02rem}.ag-download small{font-weight:600;font-size:.8rem;opacity:.85}.ag-started{margin:8px 0 0;padding:10px 12px;border-radius:12px;font-size:.88rem;line-height:1.8;background:#22c55e1f;border:1px solid rgba(34,197,94,.4);color:var(--ag-text)}.ag-steps{list-style:none;counter-reset:ag;margin:18px 0 0;padding:0;display:grid;gap:10px}.ag-steps>li{counter-increment:ag;position:relative;padding:14px 54px 14px 14px;border-radius:16px;background:var(--ag-card);border:1px solid var(--ag-line)}.ag-steps>li:before{content:counter(ag,persian);position:absolute;right:14px;top:14px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:.95rem;background:var(--ag-card-2);color:var(--ag-gold);border:1px solid var(--ag-line)}.ag-steps h3{margin:2px 0 6px;font-size:.98rem;color:var(--ag-text)}.ag-steps p{margin:4px 0 0;font-size:.9rem;line-height:2;color:var(--ag-text-2)}.ag-steps p b{color:var(--ag-text)}.ag-note{font-size:.85rem!important}.ag-steps>li.ag-warn{background:var(--ag-warn);border-color:var(--ag-warn-line)}.ag-steps>li.ag-warn:before{color:#ff9440}.ag-chip{display:inline-flex;align-items:baseline;gap:6px;padding:1px 9px;margin:0 1px;border-radius:8px;background:var(--ag-card-2);border:1px solid var(--ag-line);color:var(--ag-text);font-size:.86rem;line-height:1.8;white-space:nowrap}.ag-chip b{font-weight:700}.ag-chip i{font-style:normal;color:var(--ag-text-2);font-size:.78rem}.ag-more,.ag-faq details{margin-top:10px;border-radius:12px;border:1px solid var(--ag-line);background:var(--ag-card-2);padding:2px 12px}.ag-more summary,.ag-faq summary{cursor:pointer;padding:10px 0;font-weight:700;font-size:.9rem;color:var(--ag-text);line-height:1.7}.ag-more ol{list-style:persian;margin:0 0 10px;padding-right:22px;color:var(--ag-text-2);font-size:.88rem;line-height:2.05}.ag-faq{margin-top:18px}.ag-faq h3{margin:0 0 4px;font-size:1rem}.ag-faq details p{margin:0 0 10px;color:var(--ag-text-2);font-size:.88rem;line-height:1.95}.ag-support{margin:16px 0 0;font-size:.88rem;line-height:1.9;color:var(--ag-text-2);text-align:center}.ag-support a{color:var(--ag-gold);font-weight:700}@media(max-width:380px){.ag-steps>li{padding-right:48px}.ag-chip{white-space:normal}}.ag-page-body{margin:0;min-height:100vh;background:#05060c}html.mz-light .ag-page-body,html[data-theme=light] .ag-page-body{background:#efe9dc}.ag-page{width:min(620px,100%);margin:0 auto;padding:18px 16px 40px;box-sizing:border-box}.ag-page .ag-head{padding-left:0}.ag-page-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.ag-page-top a{color:var(--ag-gold);text-decoration:none;font-weight:700;font-size:.92rem}.ag-page-top img{width:36px;height:36px;border-radius:10px}.ag-page-body{font-family:Vazirmatn,system-ui,sans-serif}@media(prefers-color-scheme:light){.ag-page-body{background:#efe9dc}.ag-page-body .ag-page{--ag-bg: #f6f3ec;--ag-card: #ffffff;--ag-card-2: #f3efe6;--ag-line: rgba(20, 24, 40, .12);--ag-text: #171a24;--ag-text-2: #545b6e;--ag-gold: #b7790a;--ag-warn: rgba(214, 112, 20, .1);--ag-warn-line: rgba(214, 112, 20, .45)}}

html:root body .igf-card{--igf-text: #f4efe8;--igf-text-2: rgba(244, 239, 232, .72);--igf-bg: #191714;--igf-line: rgba(255, 240, 220, .08);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;margin:18px var(--d26-edge, 16px);padding:16px 18px;border-radius:18px;background:var(--igf-bg);border:1px solid var(--igf-line);color:var(--igf-text);direction:rtl}html.mz-light:root body .igf-card{--igf-text: #1d1a17;--igf-text-2: rgba(29, 26, 23, .68);--igf-bg: #ffffff;--igf-line: rgba(0, 0, 0, .08)}.igf-glyph{width:20px;height:20px;flex:none}html:root body .igf-card .igf-icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;color:#fff;background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7)}html:root body .igf-card .igf-icon .igf-glyph{width:28px;height:28px}html:root body .igf-card .igf-copy{display:flex;flex-direction:column;gap:4px;min-width:0}html:root body .igf-card .igf-copy b{font-size:1.02rem;color:var(--igf-text)}html:root body .igf-card .igf-copy span{font-size:.86rem;line-height:1.7;color:var(--igf-text-2)}html:root body .igf-card .igf-copy .igf-handle{font-weight:700;color:#ee2a7b;text-align:right}html:root body .igf-card .igf-actions{display:flex;gap:8px;align-items:center}html:root body .igf-card .igf-follow{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border-radius:999px;white-space:nowrap;color:#fff!important;text-decoration:none!important;font-weight:700;background:linear-gradient(45deg,#f9ce34,#ee2a7b,#6228d7)}html:root body .igf-card .igf-later.secondary{width:auto!important;min-width:0!important;padding:10px 14px!important;border-radius:999px!important;background:transparent!important;border:1px solid var(--igf-line)!important;color:var(--igf-text-2)!important;box-shadow:none!important;font-size:.86rem!important}@media(max-width:640px){html:root body .igf-card{grid-template-columns:auto 1fr;padding:14px}html:root body .igf-card .igf-icon{width:44px;height:44px;border-radius:13px}html:root body .igf-card .igf-actions{grid-column:1 / -1}html:root body .igf-card .igf-follow{flex:1;justify-content:center}}html:root body .igf-footer{display:flex;justify-content:center;padding:10px 16px 4px}html:root body .igf-footer-link,html:root body .igf-profile{display:inline-flex;align-items:center;gap:8px;text-decoration:none!important;color:inherit!important;font-size:.9rem;opacity:.92}html:root body .igf-footer-link .igf-glyph,html:root body .igf-profile .igf-glyph{color:#ee2a7b}html:root body .igf-footer-link b,html:root body .igf-profile b{color:#ee2a7b;font-weight:700}html:root body .igf-profile{display:flex;margin:10px 0 4px;padding:12px 14px;border-radius:14px;border:1px solid rgba(238,42,123,.28);background:#ee2a7b12}html:root body .igf-profile b{margin-inline-start:auto}

/* «اشتراک ویژه» and «دانلودها» (plans.js, 2026-11-09). Dark by default, html.mz-light switches. */
:root {
  --pl-bg: #15130f; --pl-card: #1d1a16; --pl-line: rgba(255, 240, 220, 0.09); --pl-text: #f4efe8;
  --pl-text-2: rgba(244, 239, 232, 0.7); --pl-gold: #e8b44c; --pl-gold-2: #f4cf7c; --pl-ok: #3fb27f; --pl-warn: #e05a4f;
}
html.mz-light:root {
  --pl-bg: #f7f4ef; --pl-card: #ffffff; --pl-line: rgba(0, 0, 0, 0.09); --pl-text: #1d1a17; --pl-text-2: rgba(29, 26, 23, 0.66);
}

/* ---------------------------------------------------------------- the sheet */
html:root body .pl-overlay {
  position: fixed; inset: 0; z-index: 2600; background: rgba(0, 0, 0, 0.62); display: flex; align-items: flex-end;
  justify-content: center; direction: rtl; backdrop-filter: blur(3px);
}
html:root body .pl-overlay.hidden { display: none; }
html:root body .pl-sheet {
  position: relative; width: min(980px, 100%); max-height: 92vh; overflow-y: auto; background: var(--pl-bg); color: var(--pl-text);
  border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}
@media (min-width: 760px) {
  html:root body .pl-overlay { align-items: center; }
  html:root body .pl-sheet { border-radius: 22px; }
}
html:root body .pl-close.secondary {
  position: absolute; top: 12px; left: 12px; width: 38px !important; min-width: 0 !important; height: 38px; padding: 0 !important;
  border-radius: 50% !important; font-size: 22px !important; line-height: 1; background: var(--pl-card) !important;
  border: 1px solid var(--pl-line) !important; color: var(--pl-text) !important; box-shadow: none !important;
}
html:root body .pl-body h2 { margin: 2px 0 14px; font-size: 1.3rem; color: var(--pl-text); }
html:root body .pl-reason {
  margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(232, 180, 76, 0.12);
  border: 1px solid rgba(232, 180, 76, 0.35); color: var(--pl-text); line-height: 1.8;
}
html:root body .pl-mine {
  display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--pl-card); border: 1px solid var(--pl-line); margin-bottom: 16px;
}
html:root body .pl-mine-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html:root body .pl-mine-head span, html:root body .pl-mine small { color: var(--pl-text-2); font-size: 0.85rem; line-height: 1.8; }
html:root body .pl-meter-head { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--pl-text-2); margin-bottom: 5px; }
html:root body .pl-meter-head b { color: var(--pl-text); }
html:root body .pl-bar { height: 7px; border-radius: 99px; background: var(--pl-line); overflow: hidden; }
html:root body .pl-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--pl-gold), var(--pl-gold-2)); }

html:root body .pl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { html:root body .pl-cards { grid-template-columns: 1fr; } }
html:root body .pl-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-radius: 18px;
  background: var(--pl-card); border: 1px solid var(--pl-line); color: var(--pl-text);
}
html:root body .pl-card--best { border-color: rgba(232, 180, 76, 0.65); box-shadow: 0 0 0 1px rgba(232, 180, 76, 0.25), 0 10px 30px rgba(232, 180, 76, 0.08); }
html:root body .pl-card--on { outline: 2px solid var(--pl-ok); }
html:root body .pl-card h3 { margin: 0; font-size: 1.08rem; color: var(--pl-text); }
html:root body .pl-ribbon {
  position: absolute; top: -11px; left: 16px; padding: 3px 12px; border-radius: 99px; font-size: 0.78rem; font-weight: 700;
  background: var(--pl-gold); color: #1d1a17;
}
html:root body .pl-price { display: flex; align-items: baseline; gap: 6px; }
html:root body .pl-price b { font-size: 1.9rem; color: var(--pl-gold); }
html:root body .pl-price span { color: var(--pl-text-2); }
html:root body .pl-price small { margin-inline-start: auto; color: var(--pl-text-2); }
html:root body .pl-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 0.9rem; line-height: 1.7; }
html:root body .pl-card li::before { content: "✓"; color: var(--pl-ok); margin-inline-end: 7px; font-weight: 700; }
html:root body .pl-card li.pl-no { color: var(--pl-text-2); }
html:root body .pl-card li.pl-no::before { content: "–"; color: var(--pl-text-2); }
html:root body .pl-current { margin-top: auto; font-size: 0.85rem; color: var(--pl-ok); min-height: 1.2em; }
html:root body .pl-buy.secondary {
  margin-top: auto; width: 100% !important; min-width: 0 !important; padding: 12px 16px !important; border-radius: 14px !important;
  border: 0 !important; background: linear-gradient(135deg, var(--pl-gold), var(--pl-gold-2)) !important; color: #1d1a17 !important;
  font-weight: 800 !important; font-size: 0.98rem !important; box-shadow: none !important;
}
html:root body .pl-how { margin: 14px 0 0; color: var(--pl-text-2); font-size: 0.84rem; line-height: 1.9; }

/* ---------------------------------------------------------------- play sheet row */
html:root body .pl-play-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
html:root body .pl-pill.secondary, html:root body .pl-download.secondary {
  display: inline-flex; align-items: center; gap: 7px; width: auto !important; min-width: 0 !important; padding: 9px 14px !important;
  border-radius: 999px !important; font-size: 0.86rem !important; box-shadow: none !important; line-height: 1.4;
  background: rgba(232, 180, 76, 0.1) !important; border: 1px solid rgba(232, 180, 76, 0.32) !important; color: var(--pl-text) !important;
}
html:root body .pl-pill b { color: var(--pl-gold); }
html:root body .pl-pill span { color: var(--pl-gold); font-weight: 700; }
html:root body .pl-pill--out.secondary { background: rgba(224, 90, 79, 0.12) !important; border-color: rgba(224, 90, 79, 0.45) !important; }
html:root body .pl-download.secondary { background: var(--pl-card) !important; border-color: var(--pl-line) !important; }
html:root body .pl-download svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html:root body .pl-download--locked.secondary { opacity: 0.75; }

/* ---------------------------------------------------------------- «حساب من» */
html:root body .pl-profile.secondary {
  display: grid !important; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100% !important; margin: 10px 0 4px;
  padding: 12px 14px !important; border-radius: 14px !important; text-align: right; box-shadow: none !important;
  background: rgba(232, 180, 76, 0.08) !important; border: 1px solid rgba(232, 180, 76, 0.3) !important; color: var(--pl-text) !important;
}
html:root body .pl-profile b { font-size: 0.95rem; }
html:root body .pl-profile span { grid-column: 1; color: var(--pl-text-2); font-size: 0.84rem; }
html:root body .pl-profile em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; color: var(--pl-gold); font-weight: 700; font-size: 0.86rem; }

/* ---------------------------------------------------------------- «دانلودها» tab */
html:root body #tab-downloads .dl-page { padding: 18px var(--d26-edge, 16px) 110px; color: var(--pl-text); direction: rtl; max-width: 980px; margin: 0 auto; }
html:root body #tab-downloads .dl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
html:root body #tab-downloads h2 { margin: 0; font-size: 1.35rem; }
html:root body #tab-downloads h3 { margin: 18px 0 10px; font-size: 1rem; color: var(--pl-text-2); }
html:root body #tab-downloads .dl-badge { padding: 6px 12px; border-radius: 99px; background: rgba(232, 180, 76, 0.12); color: var(--pl-gold); font-weight: 700; font-size: 0.86rem; }
html:root body #tab-downloads .dl-upsell {
  display: grid; gap: 6px; width: 100%; padding: 16px; border-radius: 16px; background: var(--pl-card);
  border: 1px solid rgba(232, 180, 76, 0.4);
}
html:root body #tab-downloads .dl-upsell span { color: var(--pl-text-2); font-size: 0.88rem; line-height: 1.8; }
html:root body #tab-downloads .dl-upsell .pl-buy.secondary { width: auto !important; justify-self: start; }
html:root body #tab-downloads .dl-list { display: grid; gap: 8px; }
html:root body #tab-downloads .dl-row {
  display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--pl-card); border: 1px solid var(--pl-line);
}
html:root body #tab-downloads .dl-poster { width: 46px; height: 66px; flex: none; border-radius: 8px; overflow: hidden; background: var(--pl-line); }
html:root body #tab-downloads .dl-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
html:root body #tab-downloads .dl-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
html:root body #tab-downloads .dl-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:root body #tab-downloads .dl-text span { color: var(--pl-text-2); font-size: 0.82rem; }
html:root body #tab-downloads :is(.dl-again, .dl-play, .dl-del).secondary {
  width: auto !important; min-width: 0 !important; padding: 8px 12px !important; border-radius: 99px !important; font-size: 0.82rem !important;
  box-shadow: none !important; background: transparent !important; border: 1px solid var(--pl-line) !important; color: var(--pl-text) !important;
}
html:root body #tab-downloads .dl-play.secondary { background: var(--pl-gold) !important; color: #1d1a17 !important; border: 0 !important; font-weight: 700 !important; }
html:root body #tab-downloads .dl-how, html:root body #tab-downloads .dl-empty-line, html:root body #tab-downloads .dl-wait {
  color: var(--pl-text-2); font-size: 0.86rem; line-height: 1.9;
}
html:root body #tab-downloads .dl-empty { text-align: center; padding: 40px 10px; display: grid; gap: 12px; justify-items: center; }

/* The music package is no longer sold (owner 2026-11-09); music stays free to play online. */
html:root body .music-package-card { display: none !important; }

/* The play sheet stays dark in both looks: its allowance row follows the sheet, not the page (2026-11-09). */
html:root body #play-body .pl-pill.secondary,
html:root body #play-body .pl-download.secondary {
  color: #f4efe8 !important; background: rgba(255, 255, 255, 0.07) !important; border-color: rgba(255, 255, 255, 0.16) !important;
}
html:root body #play-body .pl-pill.secondary { background: rgba(232, 180, 76, 0.12) !important; border-color: rgba(232, 180, 76, 0.4) !important; }
html:root body #play-body .pl-pill--out.secondary { background: rgba(224, 90, 79, 0.16) !important; border-color: rgba(224, 90, 79, 0.5) !important; }

/* ---------------------------------------------------------------- one phone and one TV (2026-11-10) */
html:root body .pl-device { display: grid; gap: 4px; margin: 10px 0 12px; padding: 12px 14px; border-radius: 14px; text-align: right; }
html:root body .pl-device b { font-size: 0.95rem; }
html:root body .pl-device span, html:root body .pl-device em { font-size: 0.84rem; opacity: 0.8; font-style: normal; }
html:root body .pl-device--ok { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.4); }
html:root body .pl-device--other { background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.45); }
html:root body .pl-device .pl-move.secondary {
  margin-top: 8px !important; width: 100% !important; min-height: 46px; border-radius: 12px !important; font-weight: 800;
  background: linear-gradient(180deg, #ffd77a, #f0b53c) !important; color: #1a1206 !important; border: 0 !important;
}

/* ---------------------------------------------------------------- 1-, 2- and 3-month plans (2026-11-10) */
html:root body .pl-tabs { display: flex; gap: 8px; justify-content: center; margin: 4px 0 14px; flex-wrap: wrap; }
html:root body .pl-tabs .pl-tab.secondary {
  width: auto !important; min-height: 40px; margin: 0 !important; padding: 6px 20px !important; border-radius: 999px !important;
  font-weight: 800; box-shadow: none !important;
  background: rgba(232, 180, 76, 0.08) !important; border: 1.5px solid rgba(232, 180, 76, 0.35) !important; color: inherit !important;
}
html:root body .pl-tabs .pl-tab.secondary[aria-selected="true"] {
  background: linear-gradient(180deg, #ffd77a, #f0b53c) !important; color: #1a1206 !important; border-color: transparent !important;
}
html:root body .pl-save { margin: 2px 0 8px; font-size: 0.82rem; font-weight: 700; color: #34d399; }
html.mz-light:root body .pl-save { color: #047857; }

/* ---------------------------------------------------------------- refined plan cards (owner 2026-11-10:
   «آیکون ها و توضیحات اشتراک هارو کوچیکتر و خوشگلتر کن و با کلاس تر طراحیشون کن») */
html:root body .pl-cards { gap: 10px; }
html:root body .pl-card { padding: 14px 14px 12px !important; gap: 9px !important; border-radius: 16px !important; }
html:root body .pl-head { display: flex; align-items: center; gap: 10px; }
html:root body .pl-head h3 { font-size: 0.98rem !important; font-weight: 800; line-height: 1.5; }
html:root body .pl-sub { display: block; font-size: 0.76rem; color: var(--pl-text-2); line-height: 1.5; }
html:root body .pl-ico {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; display: inline-block;
  background-repeat: no-repeat; background-position: center; background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
html:root body .pl-ico--play {
  background-color: #6d4df2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E");
}
html:root body .pl-ico--plus {
  background-color: #d99a2b; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19h14'/%3E%3C/svg%3E");
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11m0 0-4.5-4.5M12 15l4.5-4.5M5 19h14'/%3E%3C/svg%3E"),
                    linear-gradient(140deg, #f5c451, #c9821c);
  background-size: 18px 18px, cover;
}
html:root body .pl-ico--free {
  background-color: #2f3446;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='13' rx='2'/%3E%3Cpath d='M12 8v13M3 12h18M7.5 8a2.5 2.5 0 1 1 4.5-1.5A2.5 2.5 0 1 1 16.5 8'/%3E%3C/svg%3E");
}
html.mz-light:root body .pl-ico--free { background-color: #8a90a6; }
html:root body .pl-price { gap: 5px !important; }
html:root body .pl-price b { font-size: 1.45rem !important; font-weight: 900; letter-spacing: -0.5px; }
html:root body .pl-price span, html:root body .pl-price small { font-size: 0.78rem !important; }
html:root body .pl-save { margin: -2px 0 2px !important; font-size: 0.74rem !important; }
html:root body .pl-card ul { gap: 3px !important; font-size: 0.82rem !important; line-height: 1.75 !important; }
html:root body .pl-card ul li::before { font-size: 0.75rem; }
html:root body .pl-ribbon { font-size: 0.68rem !important; padding: 2px 10px !important; }
html:root body .pl-buy.secondary { min-height: 40px !important; font-size: 0.88rem !important; border-radius: 12px !important; }
html:root body .pl-tabs .pl-tab.secondary { min-height: 34px !important; padding: 4px 16px !important; font-size: 0.86rem; }
@media (max-width: 760px) {
  html:root body .pl-card { display: grid !important; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px !important; row-gap: 8px !important; }
  html:root body .pl-card > .pl-head { grid-column: 1; grid-row: 1; }
  html:root body .pl-card > .pl-price { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-end !important; gap: 0 !important; }
  html:root body .pl-card > .pl-price small { margin: 0 !important; }
  html:root body .pl-card > :not(.pl-head):not(.pl-price):not(.pl-ribbon) { grid-column: 1 / -1; }
  html:root body .pl-card ul { grid-template-columns: 1fr 1fr; column-gap: 8px; }
  html:root body .pl-card .pl-current:empty { display: none; }
}

html:root body .dl-picker {
  display: grid; gap: 14px; direction: rtl;
  color: #f4efe8; text-align: start;
}
html:root body .dl-picker-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
html:root body .dl-picker label {
  display: grid; gap: 6px; color: #e8dece; font-size: .9rem;
}
html:root body .dl-picker select {
  width: 100%; min-height: 44px; min-width: 0; padding: 5px 10px;
  border: 1px solid #554a38; border-radius: 10px; background: #252019; color: #fff5e2;
  font: inherit; color-scheme: dark;
}
html:root body .dl-picker select:focus-visible,
html:root body .dl-picker button:focus-visible { outline: 2px solid #f4cf7c; outline-offset: 2px; }
html:root body .dl-picker-state {
  min-height: 2.5em; margin: 0; padding: 9px 11px; line-height: 1.65; font-size: .88rem;
  border-radius: 8px; background: #231e17; color: #f1dcb5;
}
html:root body .dl-picker-actions { display: flex; gap: 8px; }
html:root body .dl-picker-actions [type="submit"] { flex: 1; }
html:root body .dl-picker-actions [type="submit"]:disabled { opacity: .6; cursor: default; }
html:is(.mz-light, [data-theme="light"]):root body .dl-picker label { color: #514435; }
html:is(.mz-light, [data-theme="light"]):root body #play-body .dl-picker-actions button[data-dl-copy] {
  color: #392b16 !important;
  background: #f5ead6 !important;
  border: 1px solid #ac936b !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
html:is(.mz-light, [data-theme="light"]):root body #play-body .dl-picker-actions button[data-dl-copy]:hover:not(:disabled) {
  background: #ecdcbf !important;
}
html:is(.mz-light, [data-theme="light"]):root body #play-body .dl-picker-actions button[data-dl-copy]:disabled {
  color: #736655 !important;
  background: #efebe3 !important;
  border-color: #c6baa9 !important;
  cursor: default;
}
html:root body #tab-downloads .dl-status { justify-self: start; color: var(--pl-gold); font-weight: 700; }


/* Shared checkout colors follow the app's current theme. */
:root {
  --checkout-ink: #f5ecdf;
  --checkout-muted: #c4b6a4;
  --checkout-bg: #201b16;
  --checkout-stroke: #654e31;
  --checkout-state: #ffd18a;
  --checkout-review: #9ae4c7;
}
html.mz-light:root, html[data-theme="light"]:root {
  --checkout-ink: #251e15;
  --checkout-muted: #615544;
  --checkout-bg: #fffaf1;
  --checkout-stroke: #dbccaf;
  --checkout-state: #744814;
  --checkout-review: #15624b;
}
html:root body #screen-app #subscription-checkout {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 980px);
  margin: 8px auto 12px;
  padding: 9px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  border-radius: 12px;
  border: 1px solid var(--checkout-stroke);
  color: var(--checkout-ink);
  background: var(--checkout-bg);
}
html:root body #screen-app #subscription-checkout.hidden { display: none; }
#subscription-checkout .checkout-copy { display: grid; gap: 2px; flex: 1 1 216px; min-width: 0; }
#subscription-checkout .checkout-label { font-size: 13px; line-height: 1.45; color: var(--checkout-state); }
#subscription-checkout[data-status="awaiting_approval"] .checkout-label { color: var(--checkout-review); }
#subscription-checkout .checkout-summary { font-size: 12px; line-height: 1.55; color: var(--checkout-muted); }
#subscription-checkout .checkout-actions { display: flex; align-items: center; gap: 6px; }
html:root body #screen-app #subscription-checkout .checkout-actions > button {
  box-sizing: border-box;
  width: auto !important;
  min-width: 48px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  border-radius: 8px;
  font-size: 12px !important;
  line-height: 1.35 !important;
  white-space: nowrap;
  font-weight: 700;
  box-shadow: none !important;
}
html:root body #screen-app #subscription-checkout .checkout-actions > button.hidden { display: none !important; }
#subscription-checkout button:focus-visible { outline: 2px solid var(--checkout-state); outline-offset: 2px; }
#subscription-checkout .checkout-resume { background: #ffd17d; color: #21170c; border: 1px solid #ffd17d; }
#subscription-checkout .checkout-cancel { background: transparent; color: var(--checkout-muted); border: 1px solid var(--checkout-stroke); }
@media (max-width: 550px) {
  #subscription-checkout .checkout-actions { width: 100%; }
  html:root body #screen-app #subscription-checkout .checkout-resume { flex: 1; }
}

/* Keep plan details dense while retaining touch-sized controls. */
html:root body #plans-sheet .pl-sheet {
  max-height: 90vh;
  max-height: 90dvh;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
}
html:root body #plans-sheet .pl-body h2 { font-size: 17px !important; padding-inline-end: 48px; min-height: 32px; margin: 4px 0 12px; }
html:root body #plans-sheet .pl-close.secondary { width: 44px !important; height: 44px !important; }
html:root body #plans-sheet .pl-card { padding: 11px !important; gap: 7px !important; border-radius: 12px !important; }
html:root body #plans-sheet .pl-card--on { outline: 1px solid var(--checkout-review); outline-offset: -1px; }
html:root body #plans-sheet .pl-card--best { box-shadow: none; }
html:root body #plans-sheet .pl-head { gap: 7px; }
html:root body #plans-sheet .pl-head h3 { font-size: 15px !important; line-height: 1.4; }
html:root body #plans-sheet .pl-sub { font-size: 11.5px !important; line-height: 1.5; }
html:root body #plans-sheet .pl-ico { width: 29px; height: 29px; border-radius: 8px; }
html:root body #plans-sheet .pl-price {
  flex-flow: row wrap;
  align-items: baseline !important;
  gap: 0 4px !important;
}
html:root body #plans-sheet .pl-price b { font-size: 19px !important; line-height: 1.2; color: var(--checkout-state); }
html:root body #plans-sheet .pl-price :is(span, small) { font-size: 11px !important; line-height: 1.4; }
html:root body #plans-sheet .pl-price small { flex-basis: 100%; }
html:root body #plans-sheet .pl-card ul {
  font-size: 12px !important;
  line-height: 1.6 !important;
  column-gap: 8px !important;
}
html:root body #plans-sheet .pl-card li::before { margin-inline-end: 4px; }
html:root body #plans-sheet .pl-buy.secondary {
  min-height: 44px !important;
  font-size: 13px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
}
html:root body #plans-sheet .pl-tab.secondary { min-height: 44px !important; font-size: 12px !important; }
html:root body #plans-sheet :is(.pl-how, .pl-device span, .pl-mine small) { font-size: 12px !important; line-height: 1.65; }
html:root body #plans-sheet :is(.pl-mine, .pl-device) { padding: 9px 11px; gap: 5px; margin-bottom: 10px; }

html:root body #payment-modal .modal-sheet {
  box-sizing: border-box;
  width: min(100%, 440px) !important;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
}
html:root body #payment-modal #payment-title {
  font-size: 17px !important;
  padding-inline-end: 54px;
  margin: 0 0 10px;
}
html:root body #payment-modal :is(.pay-label, .pay-holder, .pay-note, .select-hint) {
  font-size: 12px !important;
  line-height: 1.65;
}
html:root body #payment-modal .pay-amount { font-size: 12px; padding: 8px 10px; margin-bottom: 10px; }
html:root body #payment-modal .pay-amount b { font-size: 15px !important; }
html:root body #payment-modal .pay-card { gap: 6px; padding: 6px 8px; }
html:root body #payment-modal #pay-card-number { font-size: 14px !important; letter-spacing: 0 !important; overflow-wrap: anywhere; }
html:root body #payment-modal :is(#pay-copy-button, #receipt-upload-button) {
  min-height: 44px !important;
  padding-block: 5px !important;
  font-size: 13px !important;
}
html:root body #payment-modal #receipt-input { font-size: 12px !important; max-width: 100%; }

html:root body :is(#my-orders-list, #vpn-orders-list) .order-card {
  padding: 10px 12px !important;
  border-radius: 12px !important;
}
html:root body :is(#my-orders-list, #vpn-orders-list) .order-card :is(.order-item-title, .title-row > b) {
  font-size: 13px !important;
  line-height: 1.6;
}
html:root body :is(#my-orders-list, #vpn-orders-list) .order-card :is(.order-item-note, .order-reason, .order-note) {
  font-size: 12px !important;
  line-height: 1.6;
}
html:root body :is(#my-orders-list, #vpn-orders-list) .order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
html:root body :is(#my-orders-list, #vpn-orders-list) .order-actions button {
  width: auto !important;
  min-height: 44px !important;
  font-size: 12px !important;
  padding: 5px 10px !important;
}


/* VPN plans share the compact checkout typography and theme. */
html:root body #tab-vpn {
  --vpn-gift: #a9e1cf;
  --vpn-gift-bg: #182e28;
}
html.mz-light:root body #tab-vpn, html[data-theme="light"]:root body #tab-vpn {
  --vpn-gift: #205b49;
  --vpn-gift-bg: #e9f5ee;
}
html:root body #tab-vpn :is(.vpn-hero, .vpn-note) {
  padding: 12px 14px !important;
  border-radius: 13px !important;
  margin-block: 9px !important;
  box-shadow: none !important;
}
html:root body #tab-vpn :is(.tab-icon-title, .section-head) { font-size: 16px !important; }
html:root body #tab-vpn .tab-icon-title .section-icon {
  width: 32px !important;
  height: 32px !important;
}
html:root body #tab-vpn :is(.vpn-lead, .vpn-note .meta, .vpn-support-link, .vpn-gift-note) {
  font-size: 12px !important;
  line-height: 1.7;
}
html:root body #tab-vpn .vpn-features { gap: 6px !important; }
html:root body #tab-vpn .vpn-features > span { font-size: 11px !important; padding: 4px 7px !important; }
html:root body #tab-vpn .vpn-features .ui-icon { width: 14px; height: 14px; }
html:root body #tab-vpn .vpn-gift-note { margin: 8px 2px 14px; color: var(--checkout-muted); }
html:root body #tab-vpn #vpn-plans {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}
html:root body #tab-vpn #vpn-plans > .vpn-plan {
  box-sizing: border-box;
  display: grid !important;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  gap: 8px;
  min-width: 0;
  min-height: 0 !important;
  padding: 11px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid var(--checkout-stroke) !important;
  color: var(--checkout-ink);
  background: var(--checkout-bg) !important;
  box-shadow: none !important;
}
html:root body #tab-vpn #vpn-plans > .vpn-plan::before { display: none; }
html:root body #tab-vpn #vpn-plans .vpn-plan-head {
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 8px !important;
}
html:root body #tab-vpn #vpn-plans .vpn-plan-head b { font-size: 14px !important; }
html:root body #tab-vpn .vpn-plan-period {
  display: block;
  color: var(--checkout-muted);
  font-size: 11px;
  line-height: 1.45;
}
html:root body #tab-vpn #vpn-plans .vpn-price {
  align-self: center;
  margin: 0 !important;
  color: var(--checkout-state) !important;
  font-size: 13px !important;
  line-height: 1.6;
  white-space: nowrap;
}
html:root body #tab-vpn .vpn-plan-gift {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  background: var(--vpn-gift-bg);
  color: var(--vpn-gift);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.55;
}
html:root body #tab-vpn .vpn-plan-gift .ui-icon { width: 13px; height: 13px; flex: none; }
html:root body #tab-vpn #vpn-plans .vpn-buy-btn {
  box-sizing: border-box;
  min-height: 44px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}
html:root body #tab-vpn #vpn-plans .empty-state { grid-column: 1 / -1; }
@media (min-width: 1050px) {
  html:root body #tab-vpn #vpn-plans { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 359px) {
  html:root body #tab-vpn #vpn-plans { grid-template-columns: minmax(0, 1fr) !important; }
}

html:root body .order-qr-dialog {
  box-sizing: border-box;
  width: min(calc(100% - 32px), 380px);
  max-height: 90dvh;
  padding: 15px;
  border: 1px solid var(--checkout-stroke, #82633c);
  border-radius: 14px;
  color: var(--checkout-ink, #fff3de);
  background: var(--checkout-bg, #241c13);
  text-align: center;
  direction: rtl;
}
.order-qr-dialog::backdrop { background: #0009; }
.order-qr-dialog h2 { font-size: 16px; margin: 0 0 10px; }
.order-qr-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 55vh;
  margin: 0 auto 12px;
  border-radius: 6px;
}
.order-qr-dialog .order-qr-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 264px;
  margin-inline: auto;
}
html:root body .order-qr-dialog .order-qr-actions button {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  border: 1px solid var(--checkout-stroke, #82633c);
  background: transparent;
  color: inherit;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
}
html:root body .order-qr-dialog .order-qr-actions button:first-child { color: #21170c; background: #ffd17d; }
.order-qr-dialog .order-qr-status { margin: 8px 0 0; font-size: 12px; line-height: 1.65; }
html:root body .order-item .order-qr-button { width: auto !important; min-height: 44px; font-size: 13px !important; }

.amm-recheck { display: grid; gap: 6px; margin-block: 10px 2px; }
.amm-recheck-open { width: 100%; }
.amm-recheck-state { margin: 0; font-size: 13px; line-height: 1.75; }


/* Subscription storefront */
html:root body #plans-sheet .pl-hero {
  display: flex; align-items: center; gap: 11px; margin-bottom: 16px;
  padding: 12px 12px 12px 54px; border: 1px solid var(--pl-line); border-radius: 15px;
  background: radial-gradient(ellipse at 100% 0, #6b73952b, transparent 72%), var(--pl-card);
}
html:root body #plans-sheet .pl-hero h2 { margin: 0; padding: 0; min-height: 0; }
html:root body #plans-sheet .pl-hero p { margin: 4px 0 0; color: var(--pl-text-2); font-size: .8rem; }
.pl-hero-icon {
  display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 12px;
  color: white; background: linear-gradient(145deg, #307dae, #6844ba);
}
.pl-hero-icon svg, .pl-offer button svg, .pl-profile-shortcut svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8;
}
html:root body #plans-sheet .pl-section-title {
  margin: 0 0 9px; padding-inline-start: 9px; border-inline-start: 3px solid var(--pl-gold);
  color: var(--pl-text); font-size: 1rem;
}
.pl-duration {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 3px; gap: 3px;
  margin-bottom: 10px; border: 1px solid var(--pl-line); border-radius: 12px; background: var(--pl-card);
}
html:root body #plans-sheet .pl-duration button.secondary {
  min-width: 0 !important; min-height: 44px; margin: 0 !important; padding: 3px !important;
  border: 1px solid transparent !important; border-radius: 9px !important; background: transparent !important;
  color: var(--pl-text-2) !important; font-size: .80rem !important; box-shadow: none !important; white-space: nowrap;
}
html:root body #plans-sheet .pl-duration button[aria-pressed="true"] {
  background: #f4cf7c !important; color: #261b09 !important; font-weight: 800;
}
.pl-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-offer {
  min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 11px;
  border-radius: 14px; border: 1px solid var(--pl-line); background: var(--pl-card); color: var(--pl-text);
}
.pl-offer--active { border-color: var(--pl-ok); }
.pl-offer-head { display: flex; align-items: center; gap: 6px; }
html:root body #plans-sheet .pl-offer-icon {
  display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 8px; color: #fff; background: #6046b1;
}
html:root body #plans-sheet .pl-offer-icon--plus { color: #2e2007; background: #eec26c; }
.pl-offer-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pl-offer h3 { font-size: .92rem; margin: 0; }
.pl-offer-kind, .pl-offer-price, .pl-offer-saving { margin: 0; }
.pl-offer-kind { color: var(--pl-text-2); font-size: .75rem; }
.pl-offer-price { color: var(--pl-gold); white-space: nowrap; font-size: .78rem; }
.pl-offer-price strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.pl-offer-saving {
  color: #b4e9d8; background: #17382e; border-radius: 7px; padding: 4px 6px; font-size: .70rem;
}
html.mz-light .pl-offer-price, html[data-theme="light"] .pl-offer-price { color: #775317; }
html.mz-light .pl-offer-saving, html[data-theme="light"] .pl-offer-saving { color: #1d5948; background: #e1f3eb; }
html:root body #plans-sheet .pl-offer button.pl-buy {
  display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px !important;
  margin-top: auto; padding: 4px !important; background: linear-gradient(180deg, #ffda8b, #eab448) !important;
  color: #271b08 !important; border: 1px solid #efd08b !important; font-weight: 800 !important;
}
html:root body #plans-sheet .pl-how { margin-block: 10px 13px; }
html:root body #plans-sheet .pl-mine { margin-block-start: 12px; }
html:root body .acct-card > .acct-who { min-inline-size: 0; }
.pl-profile-name-row {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center;
  column-gap: 10px; max-inline-size: 23rem; margin-block: 2px;
}
html:root body .pl-profile-name-row .acct-name {
  min-inline-size: 0; margin: 0; overflow-wrap: anywhere; text-align: start;
}
html:root body button.pl-profile-shortcut {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto !important;
  min-width: 44px !important; min-height: 44px; padding: 4px 8px !important; margin: 0 !important;
  justify-self: end; white-space: nowrap; line-height: 1.2;
  border: 1px solid #c69a49 !important; border-radius: 11px !important; background: #f7d284 !important;
  color: #271b08 !important; box-shadow: none !important; font-size: 11px !important; font-weight: 800;
}
html:root body button.pl-profile-shortcut svg {
  box-sizing: border-box; width: 24px; height: 24px; flex: 0 0 24px; padding: 4px;
  border-radius: 7px; color: #fff; background: linear-gradient(145deg, #247c9e, #6940b7);
}
.pl-profile-shortcut:focus-visible, .pl-duration button:focus-visible, .pl-offer button:focus-visible {
  outline: 2px solid var(--pl-text); outline-offset: 2px;
}
@media (max-width: 335px) {
  .pl-offers { grid-template-columns: 1fr; }
}


/* Download transfer details and foreground update */
#tab-downloads .dl-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  font-variant-numeric: tabular-nums;
}
#tab-downloads .dl-local-progress { align-items: flex-start; }
#tab-downloads .dl-local-progress progress { width: 100%; height: 5px; accent-color: var(--pl-gold); }
#tab-downloads .dl-actions { display: flex; gap: 6px; flex-wrap: wrap; }
html:root body #tab-downloads .dl-actions button,
html:root body #tab-downloads [data-dl-history-del].secondary,
html:root body #tab-downloads [data-dl-again].secondary {
  min-height: 40px;
  padding: 4px 10px !important;
}
html:root body .dl-picker input[readonly] {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding-inline: 8px;
  border: 1px solid #796344;
  border-radius: 7px;
  background: #252019;
  color: #fff5e2;
}
#amm-foreground-update {
  position: fixed;
  z-index: 950;
  inset-inline: 0;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  width: fit-content;
  max-width: calc(100vw - 20px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 5px 12px;
  flex-wrap: wrap;
  padding: 6px 11px;
  border: 1px solid #b9904d;
  border-radius: 12px;
  background: #231e18;
  color: #fcf2e4;
  font-size: .82rem;
  box-shadow: 0 8px 28px #0005;
}
#amm-foreground-update :is(a, button) {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 0;
  box-shadow: none;
  padding: 3px 8px;
  border-radius: 7px;
  font: inherit;
}
#amm-foreground-update a { background: #ffda91; color: #22170a; }
#amm-foreground-update button { background: transparent; color: inherit; }
@media (max-width: 540px) {
  #tab-downloads .dl-row { flex-wrap: wrap; }
  #tab-downloads .dl-local-progress .dl-text { flex-basis: 100%; }
}

/* Site polish (owner 2026-11-09): «حساب من» layout, light-mode text in sheets, the music player,
   and «پخش آنلاین» + «دانلود مستقیم» side by side. Loaded last; see site-polish.js. */

/* ---------------------------------------------------------------- «حساب من» card
   The plan card and the Instagram link were added inside the card's single flex row: the name,
   the plan and the link shared one line and each was squeezed to a sliver. Now: avatar and
   name on the first line, the plan and Instagram underneath (side by side when wide). */
html:root body .acct-card { flex-wrap: wrap !important; align-items: center; row-gap: 12px; }
html:root body .acct-card > .acct-who { flex: 1 1 calc(100% - 80px) !important; min-width: 0; }
html:root body .acct-card > .pl-profile.secondary,
html:root body .acct-card > .igf-profile {
  flex: 1 1 260px !important; margin: 0 !important; min-width: 0; box-sizing: border-box; min-height: 64px;
}
html:root body .acct-card > .pl-profile.secondary { align-content: center; }
html:root body .acct-card > .pl-profile b,
html:root body .acct-card > .pl-profile span { white-space: normal; line-height: 1.6; }
html:root body .acct-card > .igf-profile { align-items: center; flex-wrap: nowrap; }
html:root body .acct-card > .igf-profile span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root body .acct-card > .igf-profile b { flex: 0 0 auto; white-space: nowrap; }
/* «پخش آنلاین رایگان» from the free-launch period: the plan card now says what the account has. */
html:root body .acct-card:has(.pl-profile) > .acct-plan { display: none !important; }
html:root body .acct-who h2 { white-space: nowrap; }

/* ---------------------------------------------------------------- light mode: sheets
   design-2026.css paints the sheets a fixed dark colour; in «حالت روشن» their text follows the
   light variables (dark ink) - dark on dark. They follow the light panel now. (Not the trailer
   or the video player.) */
html.mz-light:root:root body.d26.d26.d26 .modal-sheet:not(.trailer-sheet):not(.detail-sheet) {
  background: var(--mz-card) !important; color: var(--mz-text) !important;
  border-color: var(--mz-line) !important; box-shadow: 0 -18px 60px rgba(40, 44, 80, 0.22) !important;
}
html.mz-light:root:root body.d26.d26.d26 .modal-sheet:not(.trailer-sheet) :is(h2, h3) { color: var(--mz-text) !important; -webkit-text-fill-color: currentColor; }
html.mz-light:root:root body.d26.d26.d26 .modal-sheet:not(.trailer-sheet) .modal-close {
  background: #f1f2f6 !important; color: var(--mz-text) !important; -webkit-text-fill-color: currentColor;
  border: 1px solid var(--mz-line) !important; box-shadow: none !important;
}
html.mz-light:root:root body.d26.d26.d26 .modal-sheet:not(.trailer-sheet) .modal-close .ui-icon { color: inherit !important; }
html.mz-light:root:root body.d26.d26.d26 #notify-panel .notify-empty,
html.mz-light:root:root body.d26.d26.d26 #notify-panel .notify-sheet-head p { color: var(--mz-text-2) !important; }

/* ---------------------------------------------------------------- the music player */
html.mz-light:root:root body.d26.d26.d26 .music-player-sheet {
  background: radial-gradient(120% 70% at 50% 0%, rgba(140, 92, 255, 0.14), transparent 60%), var(--mz-card) !important;
}
html.mz-light:root:root body.d26.d26.d26 .music-player-heading h2 { color: #1b1530 !important; -webkit-text-fill-color: #1b1530; }
html.mz-light:root:root body.d26.d26.d26 .music-player-heading p { color: var(--mz-text-2) !important; -webkit-text-fill-color: var(--mz-text-2); }
html.mz-light:root:root body.d26.d26.d26 .music-player-heading > span {
  color: #6d3df0 !important; border-color: rgba(109, 61, 240, 0.35) !important; background: rgba(109, 61, 240, 0.08) !important;
}
html.mz-light:root:root body.d26.d26.d26 .music-timeline > div { color: var(--mz-text-2) !important; }
html.mz-light:root:root body.d26.d26.d26 .music-player-controls .music-control:not(.music-play) {
  background: #f1f2f6 !important; color: #1b1530 !important; border-color: var(--mz-line) !important;
}
/* The light theme gives every input a white box with a border: the seek bar became a white pill. */
html:root:root body.d26.d26.d26 .music-timeline input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; padding: 0 !important; margin: 0;
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
}
html:root:root body.d26.d26.d26 .music-timeline input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px; background: rgba(140, 92, 255, 0.28);
}
html:root:root body.d26.d26.d26 .music-timeline input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 3px; background: rgba(140, 92, 255, 0.28);
}
html:root:root body.d26.d26.d26 .music-timeline input[type="range"]::-webkit-slider-thumb { margin-top: -5px; }
html.mz-light:root:root body.d26.d26.d26 .music-timeline input[type="range"]::-webkit-slider-runnable-track { background: rgba(109, 61, 240, 0.18); }

/* ---------------------------------------------------------------- light mode: فیلترشکن
   (data-theme now follows the light switch; these were painted for the dark galaxy) */
html.mz-light:root:root body.d26.d26.d26 .vpn-hero :is(.tab-icon-title span, .vpn-lead),
html.mz-light:root:root body.d26.d26.d26 .section-head span,
html.mz-light:root:root body.d26.d26.d26 .tab-icon-title span { color: var(--mz-text) !important; -webkit-text-fill-color: currentColor; text-shadow: none !important; }
html.mz-light:root:root body.d26.d26.d26 .vpn-features span {
  color: var(--mz-text) !important; background: var(--mz-card-2) !important; border-color: var(--mz-line) !important;
}
html.mz-light:root:root body.d26.d26.d26 .vpn-plan-head b { color: var(--mz-text) !important; }
html.mz-light:root:root body.d26.d26.d26 .vpn-price { color: #b45309 !important; -webkit-text-fill-color: #b45309; background: none !important; }
html.mz-light:root:root body.d26.d26.d26 .vpn-badge { color: #5b3fd6 !important; background: rgba(109, 61, 240, 0.08) !important; border-color: rgba(109, 61, 240, 0.25) !important; }

/* ---------------------------------------------------------------- «پخش آنلاین» + «دانلود مستقیم» */
html:root body .sp-play-pair { display: flex; gap: 10px; align-items: stretch; width: 100%; }
html:root body .sp-play-pair > #detail-play-button { flex: 1 1 0; min-width: 0; }
html:root body .sp-play-pair > .sp-dl.secondary {
  flex: 1 1 0; min-width: 0; min-height: 54px; margin: 0 !important; border-radius: 16px !important;
  display: flex !important; align-items: center; justify-content: center; gap: 8px; width: auto !important;
  font-size: 16px; font-weight: 800; color: #ffd77a !important; -webkit-text-fill-color: currentColor;
  background: rgba(240, 181, 60, 0.1) !important; border: 1.5px solid rgba(240, 181, 60, 0.55) !important; box-shadow: none !important;
}
html:root body .sp-play-pair > .sp-dl[hidden] { display: none !important; }
html:root body .sp-dl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
html:root body .sp-dl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root body .sp-dl--locked.secondary { opacity: 0.85; }
html.mz-light:root:root body.d26.d26.d26 .sp-play-pair > .sp-dl.secondary {
  color: #a15c07 !important; background: #fff8e8 !important; border-color: #f0c46a !important;
}
@media (max-width: 380px) {
  html:root body .sp-play-pair > #detail-play-button,
  html:root body .sp-play-pair > .sp-dl.secondary { font-size: 14px; }
}
/* The sheet opened from «دانلود مستقیم»: its download button is the lit one. */
html:root body #play-body .pl-play-row.sp-intent-download .pl-download.secondary {
  background: linear-gradient(180deg, #ffd77a, #f0b53c) !important; color: #1a1206 !important; -webkit-text-fill-color: #1a1206;
  border-color: transparent !important; font-weight: 800; box-shadow: 0 8px 22px rgba(240, 181, 60, 0.3) !important;
}
html:root body #play-body .pl-play-row.sp-intent-download .pl-download.secondary { flex: 1 1 100%; min-height: 50px; justify-content: center; font-size: 16px; }

/* ---------------------------------------------------------------- «حساب من» on a wide screen
   The page kept its phone width (560 px) at the right edge: a dark empty half beside it. */
@media (min-width: 900px) {
  html:root:root body.d26.d26.d26 #tab-selections .acct-page {
    width: min(100%, 980px) !important; max-width: 980px !important; margin-inline: auto !important;
  }
  html:root:root body.d26.d26.d26 #tab-selections .acct-page > .acct-card { padding: 22px 24px !important; }
}

/* ---------------------------------------------------------------- a title's page in light mode
   design-2026.css darkens the artwork's foot with two ids (#detail-modal #detail-hero), which
   outranked the light fade: the title, in dark ink, sat on a black band and could not be read. */
html.mz-light:root:root body.d26.d26.d26 #detail-modal #detail-hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.78) 76%, var(--mz-card) 100%) !important;
}
html.mz-light:root:root body.d26.d26.d26 #detail-modal #detail-title { text-shadow: 0 1px 10px rgba(255, 255, 255, 0.7) !important; }

/* ================================================================ v2 — site review 2026-11-10
   «تمام قسمت های سایت رو بخش به بخش بررسی کن … روی زیبایی و بهتر شدن طراحی کار کن» */

/* ---------------------------------------------------------------- the top bar while scrolling
   It is sticky but had no background: row titles, posters and the library's search field slid
   under the logo and the menu and read through them. Now it turns to frosted glass once the page
   moves (site-polish.js sets html.sp-scrolled), the way Netflix, Filimo and Namava do. */
html:root body .top-bar.perf-header { transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease; }
html.sp-scrolled:root:root body.d26.d26.d26 .top-bar.perf-header {
  background-color: rgba(9, 10, 16, 0.82) !important;
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 0 0 100vmax rgba(9, 10, 16, 0.82), 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  clip-path: inset(0 -100vmax -40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
html.sp-scrolled.mz-light:root:root body.d26.d26.d26 .top-bar.perf-header {
  background-color: rgba(248, 249, 253, 0.86) !important;
  box-shadow: 0 0 0 100vmax rgba(248, 249, 253, 0.86), 0 10px 26px rgba(40, 44, 80, 0.12) !important;
  border-bottom-color: rgba(30, 34, 60, 0.08);
}

/* ---------------------------------------------------------------- فیلترشکن on a wide screen
   The cards kept a phone width in the middle while «انتخاب اشتراک» sat at the far right edge. */
@media (min-width: 900px) {
  html:root:root body.d26.d26.d26 #tab-vpn > :not(script):not(style) {
    width: min(100%, 980px) !important; max-width: 980px !important; margin-inline: auto !important; box-sizing: border-box;
  }
  html:root:root body.d26.d26.d26 #tab-vpn #vpn-plans {
    display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
  }
  html:root:root body.d26.d26.d26 #tab-vpn #vpn-plans > * { margin: 0 !important; width: auto !important; }
}

/* ---------------------------------------------------------------- پشتیبانی in light mode */
html.mz-light:root:root body.d26.d26.d26 .support-dialog .support-contact {
  background: #fff8e8 !important; color: #3a2a0c !important; border-color: #f0c46a !important;
}
html.mz-light:root:root body.d26.d26.d26 .support-dialog .support-contact :is(h3, p) { color: inherit !important; }

/* ---------------------------------------------------------------- the music player's playlist */
html:root body .sp-music { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }
html:root body .sp-music-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
html:root body .sp-music-head b { font-size: 15px; }
html:root body .sp-music-head span { font-size: 12px; opacity: 0.7; }
html:root body .sp-music-search {
  width: 100%; box-sizing: border-box; border-radius: 12px !important; padding: 10px 12px !important; margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important; background: rgba(255, 255, 255, 0.05) !important; color: inherit !important;
}
html:root body .sp-music-genres { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 6px; scrollbar-width: none; }
html:root body .sp-music-genres::-webkit-scrollbar { display: none; }
html:root body .sp-music-genres button.secondary {
  flex: 0 0 auto; width: auto !important; min-height: 30px; padding: 4px 12px !important; margin: 0 !important; border-radius: 999px !important;
  font-size: 12px; background: rgba(140, 92, 255, 0.1) !important; border: 1px solid rgba(140, 92, 255, 0.3) !important; color: inherit !important;
  box-shadow: none !important;
}
html:root body .sp-music-genres button.secondary[aria-pressed="true"] { background: #8c5cff !important; border-color: #8c5cff !important; color: #fff !important; }
html:root body .sp-music-list { list-style: none; margin: 0; padding: 0; max-height: min(46vh, 420px); overflow-y: auto; overscroll-behavior: contain; }
html:root body .sp-music-list li { margin: 0; }
html:root body .sp-music-list button.secondary {
  display: grid !important; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; width: 100% !important;
  margin: 0 !important; padding: 9px 8px !important; border-radius: 12px !important; text-align: right; min-height: 0;
  background: transparent !important; border: 0 !important; box-shadow: none !important; color: inherit !important;
}
html:root body .sp-music-list button.secondary:hover { background: rgba(140, 92, 255, 0.1) !important; }
html:root body .sp-music-list .sp-n { font-size: 12px; opacity: 0.55; text-align: center; font-variant-numeric: tabular-nums; }
html:root body .sp-music-list .sp-t { min-width: 0; }
html:root body .sp-music-list .sp-t b, html:root body .sp-music-list .sp-t small {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html:root body .sp-music-list .sp-t b { font-size: 14px; font-weight: 700; }
html:root body .sp-music-list .sp-t small { font-size: 12px; opacity: 0.65; margin-top: 2px; }
html:root body .sp-music-list .sp-g { font-size: 11px; opacity: 0.6; white-space: nowrap; }
html:root body .sp-music-list li.is-current button.secondary { background: rgba(140, 92, 255, 0.16) !important; }
html:root body .sp-music-list li.is-current .sp-t b { color: #b99cff; }
html:root body .sp-music-list li.is-current .sp-n { opacity: 1; color: #b99cff; }
html:root body .sp-music-empty { padding: 18px 8px; text-align: center; opacity: 0.7; font-size: 13px; }
html.mz-light:root:root body.d26.d26.d26 .sp-music { border-top-color: var(--mz-line); }
html.mz-light:root:root body.d26.d26.d26 .sp-music-search { background: #f5f6fa !important; border-color: var(--mz-line-2) !important; }
html.mz-light:root:root body.d26.d26.d26 .sp-music-list li.is-current .sp-t b,
html.mz-light:root:root body.d26.d26.d26 .sp-music-list li.is-current .sp-n { color: #6d3df0; }
html.mz-light:root:root body.d26.d26.d26 .sp-music-genres button.secondary[aria-pressed="true"] { color: #fff !important; }

/* ---------------------------------------------------------------- «ورود به آرش مووی» on a wide screen
   The login screen opens as a sheet over the page, but kept the 480 px width every .screen has:
   only a dark strip behind the card was dimmed. The dim now covers the window; the card stays put. */
html:root:root body #screen-login.screen.as-sheet {
  width: auto !important; max-width: none !important; left: 0 !important; right: 0 !important; margin: 0 !important;
}

/* ================================================================ v4 — 2026-11-10 (payment, toasts)
   «زمانی هم که گزینه ارسال رو میزنی و پیغام ارسال نشد بالا میاد اصلا مشخص نیست نوشته ها» */

/* ---------------------------------------------------------------- messages (toasts)
   In light mode a toast kept its dark background but took the light theme's dark ink: the text
   vanished. A message is now the same high-contrast pill in both themes (like Android/iOS
   snackbars), coloured by kind, and always above sheets. */
html:root:root body.d26.d26.d26 #toast-container > .toast {
  background: rgba(18, 20, 30, 0.97) !important; color: #ffffff !important; -webkit-text-fill-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14) !important; box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38) !important;
  z-index: 10050 !important; font-weight: 700 !important; font-size: 14px !important; line-height: 1.7 !important;
  text-shadow: none !important; opacity: 1;
}
html:root:root body.d26.d26.d26 #toast-container > .toast * { color: inherit !important; -webkit-text-fill-color: inherit; }
html:root:root body.d26.d26.d26 #toast-container > .toast.error { background: #47121f !important; border-color: rgba(251, 113, 133, 0.7) !important; }
html:root:root body.d26.d26.d26 #toast-container > .toast.success { background: #0d3324 !important; border-color: rgba(52, 211, 153, 0.65) !important; }

/* ---------------------------------------------------------------- choosing the receipt picture
   The browser's own «Choose File / No file chosen» (English, grey) is replaced by a clear Persian
   button that shows the chosen picture's name (site-polish.js). */
html:root body .sp-file-input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
html:root body label.sp-file {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 56px; padding: 10px 14px;
  border: 1.5px dashed rgba(240, 181, 60, 0.6); border-radius: 14px; cursor: pointer; margin: 6px 0 12px;
  background: rgba(240, 181, 60, 0.07); color: inherit; font-weight: 700; font-size: 14px;
}
html:root body label.sp-file svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: #f0b53c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html:root body label.sp-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:root body label.sp-file small { flex: 0 0 auto; font-size: 12px; opacity: 0.7; font-weight: 600; }
html:root body label.sp-file.has-file { border-style: solid; border-color: rgba(52, 211, 153, 0.7); background: rgba(52, 211, 153, 0.08); }
html:root body label.sp-file.has-file svg { stroke: #34d399; }
html.mz-light:root:root body.d26.d26.d26 label.sp-file { background: #fff8e8; border-color: #f0c46a; color: #3a2a0c; }
html.mz-light:root:root body.d26.d26.d26 label.sp-file.has-file { background: #ecfdf5; border-color: #34d399; color: #064e3b; }
html:root body label.sp-file:focus-within { outline: 2px solid #f0b53c; outline-offset: 2px; }

/* ---------------------------------------------------------------- the payment sheet, both themes */
html:root:root body.d26.d26.d26 #payment-modal .pay-card { font-weight: 800; letter-spacing: 1px; }
html.mz-light:root:root body.d26.d26.d26 #payment-modal .pay-card {
  background: #f5f6fa !important; color: #121521 !important; -webkit-text-fill-color: #121521; border-color: var(--mz-line-2) !important;
}
html.mz-light:root:root body.d26.d26.d26 #payment-modal .pay-card * { color: inherit !important; -webkit-text-fill-color: inherit; }

/* ================================================================ v7 — 2026-11-10
   «آیکون هارو خوشگل تر و جذابترش کن … آیکون اینستاگرام … با یه قاب خوشگلتر» */

/* ---------------------------------------------------------------- «آرش مووی همیشه همراهت»: three platform cards */
html:root:root body.d26.d26.d26 .home-install-card { scroll-margin-top: 110px; }
html:root:root body.d26.d26.d26 .home-install-card .home-install-actions {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px !important; margin-top: 18px;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button {
  grid-column: auto !important; position: relative; display: flex !important; flex-direction: column; align-items: center;
  justify-content: flex-start; gap: 10px; min-height: 0; padding: 22px 14px 18px !important; border-radius: 20px !important;
  text-align: center; color: #f4f6fb !important; -webkit-text-fill-color: currentColor;
  background: linear-gradient(160deg, #1b1f2d 0%, #12141d 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button:hover {
  transform: translateY(-3px); border-color: rgba(240, 181, 60, 0.6) !important; box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35) !important;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-icon {
  width: 60px !important; height: 60px !important; border-radius: 18px !important; display: grid !important; place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); margin: 0 !important;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-icon .platform-mark { width: 32px !important; height: 32px !important; }
html:root:root body.d26.d26.d26 .home-install-card .home-install-button--android .home-install-icon { background: linear-gradient(140deg, #4ade80, #16a34a) !important; }
html:root:root body.d26.d26.d26 .home-install-card .home-install-button--ios .home-install-icon { background: linear-gradient(140deg, #4b5563, #0b0c10) !important; }
html:root:root body.d26.d26.d26 .home-install-card .home-install-button--tv .home-install-icon { background: linear-gradient(140deg, #a78bfa, #6366f1) !important; }
html:root:root body.d26.d26.d26 .home-install-card .home-install-icon .platform-mark { color: #fff !important; fill: #fff; }
html:root:root body.d26.d26.d26 .home-install-card .home-install-button--tv .platform-mark { fill: none !important; stroke: #fff !important; }
html:root:root body.d26.d26.d26 .home-install-card .home-install-button b {
  font-size: 15.5px !important; font-weight: 900 !important; line-height: 1.6 !important; color: inherit !important;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button small {
  font-size: 12px !important; line-height: 1.7 !important; color: rgba(244, 246, 251, 0.62) !important; margin-top: 2px;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button::after {
  content: "دانلود"; margin-top: auto; padding: 6px 22px; border-radius: 999px; font-size: 13px; font-weight: 800;
  color: #1a1206; background: linear-gradient(180deg, #ffd77a, #f0b53c); box-shadow: 0 6px 16px rgba(240, 181, 60, 0.3);
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button--ios::after { content: "نصب"; }
html.mz-light:root:root body.d26.d26.d26 .home-install-card .home-install-button {
  background: #ffffff !important; color: #121521 !important; border-color: #e4e6ee !important; box-shadow: 0 10px 26px rgba(40, 44, 80, 0.1) !important;
}
html.mz-light:root:root body.d26.d26.d26 .home-install-card .home-install-button small { color: #5b6276 !important; }
@media (max-width: 700px) {
  html:root:root body.d26.d26.d26 .home-install-card .home-install-actions { grid-template-columns: 1fr !important; gap: 10px !important; }
  html:root:root body.d26.d26.d26 .home-install-card .home-install-button {
    flex-direction: row; text-align: right; padding: 14px !important; gap: 14px;
  }
  html:root:root body.d26.d26.d26 .home-install-card .home-install-button > span:not(.home-install-icon) { flex: 1; min-width: 0; }
  html:root:root body.d26.d26.d26 .home-install-card .home-install-icon { width: 50px !important; height: 50px !important; border-radius: 15px !important; flex: 0 0 auto; }
  html:root:root body.d26.d26.d26 .home-install-card .home-install-button::after { margin: 0; padding: 6px 16px; }
}
/* «دریافت اپلیکیشن» lands here: the card glows for a moment so the eye finds it. */
@keyframes sp-flash { 0% { box-shadow: 0 0 0 0 rgba(240, 181, 60, 0.7); } 100% { box-shadow: 0 0 0 18px rgba(240, 181, 60, 0); } }
html:root body .home-install-card.sp-flash { animation: sp-flash 1.1s ease-out 2; border-radius: 22px; }

/* ---------------------------------------------------------------- Instagram: the footer link as a framed card */
html:root:root body.d26.d26.d26 #seo-footer .igf-footer { padding: 18px 16px 6px; }
html:root:root body.d26.d26.d26 #seo-footer .igf-footer-link {
  position: relative; display: inline-flex !important; align-items: center; gap: 14px; padding: 12px 18px 12px 22px !important;
  border-radius: 20px; opacity: 1 !important; color: #f4f6fb !important; font-size: 15px !important; font-weight: 800;
  background: linear-gradient(#14161f, #14161f) padding-box,
              linear-gradient(120deg, #f9ce34, #ee2a7b 45%, #6228d7) border-box;
  border: 2px solid transparent; box-shadow: 0 12px 30px rgba(238, 42, 123, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
html:root:root body.d26.d26.d26 #seo-footer .igf-footer-link:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(238, 42, 123, 0.3); }
html:root:root body.d26.d26.d26 #seo-footer .igf-footer-link .igf-glyph {
  width: 44px; height: 44px; padding: 10px; box-sizing: border-box; border-radius: 14px; color: #fff !important;
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}
html:root:root body.d26.d26.d26 #seo-footer .igf-footer-link b {
  font-size: 15px; letter-spacing: 0.2px; background: linear-gradient(90deg, #ff9a5a, #ee2a7b, #a35cff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
html.mz-light:root:root body.d26.d26.d26 #seo-footer .igf-footer-link {
  color: #121521 !important;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(120deg, #f9ce34, #ee2a7b 45%, #6228d7) border-box;
}

/* ---------------------------------------------------------------- the play sheet's «دانلود» in light mode (it was nearly invisible) */
html.mz-light:root:root body.d26.d26.d26 #play-body .pl-download.secondary {
  background: #fff8e8 !important; color: #a15c07 !important; -webkit-text-fill-color: #a15c07; border: 1.5px solid #f0c46a !important;
}
html.mz-light:root:root body.d26.d26.d26 #play-body .pl-pill.secondary { color: #3a2a0c !important; -webkit-text-fill-color: #3a2a0c; }

/* ---------------------------------------------------------------- the home page's Instagram card, framed */
html:root:root body.d26.d26.d26 .igf-card {
  background: linear-gradient(var(--igf-bg), var(--igf-bg)) padding-box,
              linear-gradient(120deg, #f9ce34, #ee2a7b 45%, #6228d7) border-box !important;
  border: 2px solid transparent !important; border-radius: 20px !important;
  box-shadow: 0 14px 34px rgba(238, 42, 123, 0.16) !important; padding: 16px 20px !important;
}
html:root:root body.d26.d26.d26 .igf-card .igf-icon {
  width: 56px !important; height: 56px !important; border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(238, 42, 123, 0.35);
}
html:root:root body.d26.d26.d26 .igf-card .igf-copy b { font-size: 1.05rem !important; font-weight: 900; }
html:root:root body.d26.d26.d26 .igf-card .igf-copy .igf-handle {
  background: linear-gradient(90deg, #ff9a5a, #ee2a7b, #a35cff); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-weight: 800; letter-spacing: 0.2px;
}
html:root:root body.d26.d26.d26 .igf-card .igf-follow {
  padding: 11px 22px !important; font-weight: 800 !important; box-shadow: 0 8px 20px rgba(238, 42, 123, 0.35);
}


/* v8 (owner 2026-11-10): the «اپلیکیشن‌های آرش مووی» strip above the footer is gone (the download
   cards on the home page say it already), and the 74px left under those cards was empty space. */
html:root:root body.d26.d26.d26 #seo-footer .mz-apps { display: none !important; }
html:root:root body.d26.d26.d26 .home-install-card { margin-bottom: 10px !important; }
html:root:root body.d26.d26.d26 #seo-footer { margin-top: 0 !important; padding-top: 10px !important; }

/* v12 (owner 2026-11-11): «وقتی توی مرورگر لپ تاپ اسکرول میکنم گزینه های کتابخانه فیلترشکن و ... چشمک میزنن».
   On wide screens the tabs (کتابخانه / فیلترشکن / …) sit over the sticky top bar; both were see-through
   (0.72 / 0.82), the page scrolls on <body>, so Chrome repainted them on every scroll step with the
   posters moving underneath - the flicker. Solid backgrounds, their own compositor layer, no
   «transition: all» on the strip. */
@media (min-width: 900px) {
  html:root:root body.d26.d26.d26 #bottom-tabs {
    background: #10131e !important;
    transition: none !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  html:root:root body.d26.d26.d26 #bottom-tabs:not([style*="transform"]) { transform: translateZ(0); }
  html:root:root body.d26.d26.d26 .top-bar {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  html.sp-scrolled:root:root body.d26.d26.d26 .top-bar.perf-header { background: #090a10 !important; }
  html.mz-light:root:root body.d26.d26.d26 #bottom-tabs { background: #ffffff !important; }
  html.sp-scrolled.mz-light:root:root body.d26.d26.d26 .top-bar.perf-header { background: #ffffff !important; }
}
/* the version row: a version this title does not have, greyed out */
html:root:root body.d26.d26.d26 .amm-versions .play-chip.is-missing { opacity: .45; cursor: not-allowed; }
html:root:root body.d26.d26.d26 .amm-versions .play-chip.is-missing small { display: block; font-size: 11px; }

/* v13: «دعوت از دوستان» on the profile tab (2026-11-11, server/referrals.py) */
html:root:root body.d26.d26.d26 .amm-invite {
  margin: 14px 0; padding: 16px; border-radius: 18px; display: grid; gap: 10px;
  background: linear-gradient(135deg, rgba(245, 196, 81, .16), rgba(139, 124, 255, .12));
  border: 1px solid rgba(245, 196, 81, .35);
}
html:root:root body.d26.d26.d26 .amm-invite h3 { margin: 0; font-size: 16px; }
html:root:root body.d26.d26.d26 .amm-invite p { margin: 0; font-size: 13px; line-height: 1.9; opacity: .9; }
html:root:root body.d26.d26.d26 .amm-invite-link {
  direction: ltr; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 13px; overflow-wrap: anywhere;
  background: rgba(0, 0, 0, .25); border: 1px dashed rgba(245, 196, 81, .45);
}
html.mz-light:root:root body.d26.d26.d26 .amm-invite-link { background: rgba(255, 255, 255, .7); }
html:root:root body.d26.d26.d26 .amm-invite-actions { display: flex; gap: 8px; flex-wrap: wrap; }
html:root:root body.d26.d26.d26 .amm-invite-actions button { flex: 1; min-width: 120px; }
html:root:root body.d26.d26.d26 .amm-invite small { opacity: .75; }

/* v14 (owner 2026-11-11): «کانال تلگرام رو هم در کنار اینستاگرام توی سایت بزار ولی خیلی قالبهاشونو بزرگ نزن».
   Telegram next to Instagram - footer, home card, «حساب من» - and both boxes smaller than before. */
html:root:root body.d26.d26.d26 #seo-footer .igf-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 14px 12px 4px; }
html:root:root body.d26.d26.d26 #seo-footer .igf-footer-link,
html:root:root body.d26.d26.d26 #seo-footer .tgf-footer-link {
  padding: 7px 14px 7px 16px !important; gap: 10px !important; border-radius: 16px !important; font-size: 13px !important;
  box-shadow: none !important;
}
html:root:root body.d26.d26.d26 #seo-footer .igf-footer-link .igf-glyph,
html:root:root body.d26.d26.d26 #seo-footer .tgf-footer-link .tgf-glyph { width: 32px !important; height: 32px !important; padding: 7px !important; border-radius: 10px !important; }
html:root:root body.d26.d26.d26 #seo-footer .igf-footer-link b,
html:root:root body.d26.d26.d26 #seo-footer .tgf-footer-link b { font-size: 13px !important; }
html:root:root body.d26.d26.d26 #seo-footer .tgf-footer-link {
  position: relative; display: inline-flex !important; align-items: center; font-weight: 800; color: #f4f6fb !important;
  text-decoration: none; background: linear-gradient(#14161f, #14161f) padding-box, linear-gradient(120deg, #37aee2, #1e96c8) border-box;
  border: 2px solid transparent; transition: transform .2s ease;
}
html:root:root body.d26.d26.d26 #seo-footer .tgf-footer-link:hover { transform: translateY(-2px); }
html:root:root body.d26.d26.d26 #seo-footer .tgf-footer-link .tgf-glyph { box-sizing: border-box; color: #fff; background: linear-gradient(45deg, #2aabee, #229ed9); }
html:root:root body.d26.d26.d26 #seo-footer .tgf-footer-link b { color: #37aee2; }
html.mz-light:root:root body.d26.d26.d26 #seo-footer .tgf-footer-link {
  color: #121521 !important; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #37aee2, #1e96c8) border-box;
}
@media (max-width: 560px) {
  html:root:root body.d26.d26.d26 #seo-footer .igf-footer-link > span,
  html:root:root body.d26.d26.d26 #seo-footer .tgf-footer-link > span { display: none; }
}
/* the home card: smaller, with «کانال تلگرام» beside «دنبال کردن» */
html:root:root body.d26.d26.d26 .igf-card { padding: 12px 14px !important; box-shadow: none !important; gap: 12px !important; }
html:root:root body.d26.d26.d26 .igf-card .igf-icon { width: 44px !important; height: 44px !important; border-radius: 14px !important; box-shadow: none !important; }
html:root:root body.d26.d26.d26 .igf-card .igf-copy b { font-size: .98rem !important; }
html:root:root body.d26.d26.d26 .igf-card .igf-copy span:not(.igf-handle) { font-size: .82rem !important; }
html:root:root body.d26.d26.d26 .igf-card .igf-follow { padding: 8px 16px !important; box-shadow: none !important; }
html:root:root body.d26.d26.d26 .igf-card .tgf-join {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem;
  color: #fff !important; text-decoration: none; background: linear-gradient(45deg, #2aabee, #229ed9);
}
html:root:root body.d26.d26.d26 .igf-card .tgf-join svg { width: 18px; height: 18px; }
/* «حساب من» */
html:root body .acct-card > .tgf-profile { display: flex; align-items: center; gap: 8px; margin-top: 6px; text-decoration: none; color: inherit; font-size: 13px; }
html:root body .acct-card > .tgf-profile .tgf-glyph { width: 22px; height: 22px; padding: 4px; box-sizing: border-box; border-radius: 7px; color: #fff; background: #229ed9; }
html:root body .acct-card > .tgf-profile span { flex: 1 1 auto; min-width: 0; }
html:root body .acct-card > .tgf-profile b { color: #37aee2; }

/* v15: the home card's buttons stay on one line each and wrap as a row on phones */
html:root:root body.d26.d26.d26 .igf-card .igf-actions { display: flex !important; flex-wrap: wrap; gap: 8px !important; align-items: center; }
html:root:root body.d26.d26.d26 .igf-card .igf-actions > * { white-space: nowrap; flex: 0 0 auto; }

/* v16 (owner 2026-11-11): «حساب من» - the Telegram link in the same framed box as Instagram's, in Telegram blue. */
html:root body .acct-card > .tgf-profile {
  display: flex !important; align-items: center; flex-wrap: nowrap; gap: 8px; text-decoration: none !important;
  color: inherit !important; font-size: 0.9rem; opacity: 0.92;
  flex: 1 1 260px !important; margin: 0 !important; min-width: 0; box-sizing: border-box; min-height: 64px;
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(42, 171, 238, 0.32); background: rgba(42, 171, 238, 0.08);
}
html:root body .acct-card > .tgf-profile .tgf-glyph {
  width: 20px !important; height: 20px !important; padding: 0 !important; border-radius: 0 !important;
  background: none !important; color: #2aabee !important; flex: 0 0 auto;
}
html:root body .acct-card > .tgf-profile span { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html:root body .acct-card > .tgf-profile b { flex: 0 0 auto; white-space: nowrap; margin-inline-start: auto; color: #2aabee !important; font-weight: 700; }
html.mz-light:root body .acct-card > .tgf-profile { background: rgba(42, 171, 238, 0.07); }


/* 2026-11-29: four compact install choices instead of three tall cards. */
html:root:root body.d26.d26.d26 .home-install-card .home-install-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 12px !important;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100%;
  min-height: 0 !important;
  padding: 12px 8px 10px !important;
  border-radius: 16px !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button > span:not(.home-install-icon) {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  flex: 0 0 auto;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-icon .platform-mark {
  width: 20px !important;
  height: 20px !important;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button--windows .home-install-icon {
  background: linear-gradient(140deg, #5eb6ff, #0078d4) !important;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button b {
  font-size: 13px !important;
  line-height: 1.35 !important;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button small {
  font-size: 11px !important;
  line-height: 1.45 !important;
}
html:root:root body.d26.d26.d26 .home-install-card .home-install-button::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 700px) {
  html:root:root body.d26.d26.d26 .home-install-card .home-install-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  html:root:root body.d26.d26.d26 .home-install-card .home-install-button {
    flex-direction: column !important;
    text-align: center !important;
    padding: 12px 8px 10px !important;
    gap: 6px !important;
  }
  html:root:root body.d26.d26.d26 .home-install-card .home-install-icon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
  }
}

html:root:root body.d26.d26.d26 .home-install-card .home-install-actions { align-items: stretch !important; }
html:root:root body.d26.d26.d26 .home-install-card .home-install-button { height: 100% !important; box-sizing: border-box; }
html:root:root body.d26.d26.d26 .home-install-card .home-install-icon svg { display: block; }

html:root:root body.d26.d26.d26 .home-install-card .home-install-button { margin: 0 !important; }

html.lux[data-theme=dark]{--lux-bg: #060709;--lux-bg-2: #0b0d12;--lux-surface: #11141b;--lux-surface-2: #181c25;--lux-line: rgba(255, 255, 255, .075);--lux-line-strong: rgba(255, 255, 255, .14);--lux-text: #f6f3ec;--lux-text-2: rgba(246, 243, 236, .74);--lux-text-3: rgba(246, 243, 236, .5);--lux-gold: #e6b869;--lux-gold-hi: #f7dc9c;--lux-gold-lo: #c9973f;--lux-gold-grad: linear-gradient(135deg, #f7dc9c 0%, #e6b869 45%, #c9973f 100%);--lux-gold-soft: rgba(230, 184, 105, .14);--lux-gold-line: rgba(230, 184, 105, .38);--lux-on-gold: #1c1304;--lux-radius: 18px;--lux-radius-sm: 12px;--lux-shadow: 0 18px 44px rgba(0, 0, 0, .55);--lux-shadow-sm: 0 8px 22px rgba(0, 0, 0, .45);--lux-ease: cubic-bezier(.22, .8, .24, 1);--bg: var(--lux-bg);--bg-elevated: var(--lux-bg-2);--bg-glow-1: #0d1017;--bg-glow-2: #090b10;--surface: var(--lux-surface);--surface-solid: var(--lux-surface);--surface-elevated: var(--lux-surface-2);--surface-border: var(--lux-line);--border: var(--lux-line);--text: var(--lux-text);--text-primary: var(--lux-text);--text-secondary: var(--lux-text-2);--text-dim: var(--lux-text-2);--text-faint: var(--lux-text-3);--muted: var(--lux-text-2);--text-muted: var(--lux-text-2);--s0: var(--lux-bg);--s1: var(--lux-surface);--s2: var(--lux-surface-2);--ink: var(--lux-text);--ink-2: var(--lux-text-2);--ink-3: var(--lux-text-3);--hairline: var(--lux-line);--accent: var(--lux-gold);--accent-hover: var(--lux-gold-hi);--accent-muted: var(--lux-gold-soft);--accent-soft: var(--lux-gold-line);--accent-active: var(--lux-gold-hi);--accent-2: var(--lux-gold);--accent-strong: var(--lux-gold-hi);--accent-gradient: var(--lux-gold-grad);--on-accent: var(--lux-on-gold);--gold: var(--lux-gold);--radius-sm: 10px;--radius-md: 14px;--radius-lg: 20px;--shadow-1: var(--lux-shadow-sm);--shadow-2: var(--lux-shadow);--glass-bg: rgba(14, 16, 22, .62);--glass-bg-strong: rgba(8, 9, 13, .86);--glass-border: var(--lux-line-strong);--glass-highlight: rgba(247, 220, 156, .22);--glass-shadow: 0 12px 32px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);--glass-active: rgba(230, 184, 105, .22);--nav-glass: rgba(8, 9, 13, .82);--lux-gold-bright: #f7dc9c;--lux-gold-mid: #e6b869;--lux-fill: rgba(255, 255, 255, .045);--lux-fill-2: rgba(255, 255, 255, .03);--lux-card-bg: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .018));--lux-card-shadow: var(--lux-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .05);--lux-input-bg: rgba(0, 0, 0, .35);--lux-bar-bg: linear-gradient(180deg, rgba(6, 7, 9, .92), rgba(6, 7, 9, .62));--lux-brand-grad: linear-gradient(180deg, #fff 20%, #f7dc9c 120%);--lux-dock-bg: rgba(10, 11, 15, .78);--lux-dock-shadow: 0 18px 44px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .06);--lux-overlay: rgba(3, 4, 6, .72);--lux-sheet-bg: linear-gradient(180deg, #12151c, #0a0c11);--lux-sheet-shadow: 0 -20px 60px rgba(0, 0, 0, .7);--lux-sheet-fade: linear-gradient(180deg, rgba(10, 12, 17, 0) 40%, rgba(10, 12, 17, .85) 82%, #0c0e13 100%);--lux-tile-shadow: 0 10px 26px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07);--lux-tile-shadow-hover: 0 22px 44px rgba(0, 0, 0, .7), 0 0 0 1.5px var(--lux-gold-line), 0 0 34px rgba(230, 184, 105, .16);--lux-poster-shadow: 0 18px 40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .1);--lux-selection-text: #fff;--lux-hero-text: #f6f3ec;--lux-hero-text-2: rgba(246, 243, 236, .74);--lux-page-bg: radial-gradient(1200px 520px at 50% -180px, rgba(230, 184, 105, .1), transparent 62%), radial-gradient(900px 600px at 100% 30%, rgba(92, 70, 160, .07), transparent 60%), #060709;--lux-stage-bg: radial-gradient(1100px 480px at 50% -160px, rgba(230, 184, 105, .13), transparent 64%), radial-gradient(800px 520px at 0% 40%, rgba(120, 90, 200, .06), transparent 62%), linear-gradient(180deg, #08090c 0%, #060709 100%)}html.lux[data-theme=dark] body{background:var(--lux-page-bg)!important;background-attachment:fixed!important;color:var(--lux-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}html.lux[data-theme=dark] ::selection{background:#e6b86959;color:var(--lux-selection-text)}html.lux[data-theme=dark] #app-main,html.lux[data-theme=dark] .seo-footer{background:transparent!important;border:0!important;box-shadow:none!important}html.lux[data-theme=dark] *{scrollbar-color:rgba(230,184,105,.35) transparent}html.lux[data-theme=dark] .top-bar{background:var(--lux-bar-bg)!important;-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);border:0!important;border-bottom:1px solid var(--lux-line)!important;border-radius:0!important;box-shadow:none!important}html.lux[data-theme=dark] .brand .app-name{font-weight:800;letter-spacing:-.2px;background:var(--lux-brand-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}html.lux[data-theme=dark] .brand .brand-tagline{color:var(--lux-gold)!important;letter-spacing:.4px;font-weight:600;opacity:.92}html.lux[data-theme=dark] .brand-icon{border-radius:12px!important;box-shadow:0 0 0 1px var(--lux-gold-line),0 6px 18px #e6b8692e!important;overflow:hidden}html.lux[data-theme=dark] .guest-login-button{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border:0!important;font-weight:800!important;box-shadow:0 6px 20px #e6b86947,inset 0 1px #ffffff73!important}html.lux[data-theme=dark] .top-bar-actions .icon-btn,html.lux[data-theme=dark] .top-bar-actions .d26-icon{background:var(--lux-fill)!important;border:1px solid var(--lux-line)!important;color:var(--lux-text)!important;box-shadow:none!important}html.lux[data-theme=dark] button.primary,html.lux[data-theme=dark] .primary:not(.chip):not(.play-chip){background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border:0!important;font-weight:800;box-shadow:0 8px 22px #e6b8693d,inset 0 1px #ffffff73!important;transition:transform .18s var(--lux-ease),box-shadow .18s var(--lux-ease),filter .18s}html.lux[data-theme=dark] button.primary:hover{filter:brightness(1.06);transform:translateY(-1px)}html.lux[data-theme=dark] button.primary:active{transform:translateY(0) scale(.985)}html.lux[data-theme=dark] button.secondary:not(.mz-quick-chip):not(.mz-light-switch){background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;box-shadow:none!important}html.lux[data-theme=dark] button.secondary:not(.mz-quick-chip):not(.mz-light-switch):hover{border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux[data-theme=dark] :focus-visible{outline:2px solid var(--lux-gold)!important;outline-offset:2px}html.lux[data-theme=dark] .search-panel{background:var(--lux-card-bg)!important;border:1px solid var(--lux-line)!important;border-radius:22px!important;box-shadow:var(--lux-card-shadow)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}html.lux[data-theme=dark] .search-panel input[type=search],html.lux[data-theme=dark] .search-panel input[type=text]{background:var(--lux-input-bg)!important;border:1px solid var(--lux-line)!important;border-radius:14px!important;color:var(--lux-text)!important}html.lux[data-theme=dark] .search-panel input:focus{border-color:var(--lux-gold-line)!important;box-shadow:0 0 0 4px #e6b8691a!important}html.lux[data-theme=dark] .search-panel input::placeholder{color:var(--lux-text-3)!important}html.lux[data-theme=dark] .hero{margin-top:14px}html.lux[data-theme=dark] .hero-slide{border-radius:26px!important;border:1px solid var(--lux-line)!important;box-shadow:var(--lux-shadow)!important;overflow:hidden;background:#000!important}html.lux[data-theme=dark] .hero-backdrop{filter:saturate(1.08) contrast(1.04)}html.lux[data-theme=dark] .hero-slide:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#06070900 34%,#060709b8 68%,#060709f5),linear-gradient(90deg,#0607098c,#06070900 55%);z-index:1}html.lux[data-theme=dark] .hero-content{position:relative;z-index:2}html.lux[data-theme=dark] .hero-eyebrow{display:inline-block;color:var(--lux-gold-bright)!important;font-weight:700;letter-spacing:.6px;font-size:12px;padding:4px 10px;border:1px solid var(--lux-gold-line);border-radius:999px;background:#06070973;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}html.lux[data-theme=dark] .hero-text h2{font-weight:900!important;letter-spacing:-.6px;line-height:1.15;text-shadow:0 2px 24px rgba(0,0,0,.7)}html.lux[data-theme=dark] .hero-text p:not(.hero-eyebrow){color:var(--lux-hero-text-2)!important}html.lux[data-theme=dark] .hero-poster img{border-radius:16px!important;box-shadow:0 18px 40px #000000b3,0 0 0 1px #ffffff1f!important}html.lux[data-theme=dark] .hero-nav{background:#06070980!important;border:1px solid var(--lux-line-strong)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff!important}html.lux[data-theme=dark] .hero-dots button,html.lux[data-theme=dark] .hero-dot{background:#ffffff47!important}html.lux[data-theme=dark] .hero-dots button.active,html.lux[data-theme=dark] .hero-dot.active{background:var(--lux-gold-mid)!important}html.lux[data-theme=dark] .mz-quick-chip{background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;border-radius:999px!important;font-weight:700;box-shadow:none!important;transition:transform .18s var(--lux-ease),border-color .18s,background .18s}html.lux[data-theme=dark] .mz-quick-chip:hover{transform:translateY(-2px);border-color:var(--lux-gold-line)!important}html.lux[data-theme=dark] .mz-quick-chip--hot{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border-color:transparent!important;box-shadow:0 8px 20px #e6b86938,inset 0 1px #ffffff73!important}html.lux[data-theme=dark] .chip{background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text-2)!important}html.lux[data-theme=dark] .chip.active,html.lux[data-theme=dark] .chip[aria-pressed=true]{background:var(--lux-gold-soft)!important;border-color:var(--lux-gold-line)!important;color:var(--lux-gold-hi)!important}html.lux[data-theme=dark] .home-row{margin-top:30px}html.lux[data-theme=dark] .row-head{align-items:center;margin-bottom:14px}html.lux[data-theme=dark] .row-head h3{position:relative;font-size:19px!important;font-weight:800!important;letter-spacing:-.3px;color:var(--lux-text)!important;padding-inline-start:14px}html.lux[data-theme=dark] .row-head h3:before{content:"";position:absolute;inset-inline-start:0;top:12%;bottom:12%;width:4px;border-radius:4px;background:var(--lux-gold-grad);box-shadow:0 0 14px #e6b8698c}html.lux[data-theme=dark] .row-more{background:transparent!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text-2)!important;border-radius:999px!important;font-weight:700;font-size:12.5px!important;padding:7px 14px!important;box-shadow:none!important;transition:color .18s,border-color .18s,background .18s}html.lux[data-theme=dark] .row-more:hover{color:var(--lux-gold-hi)!important;border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux[data-theme=dark] .poster-card{background:transparent!important;border:0!important;box-shadow:none!important;transition:transform .28s var(--lux-ease)}html.lux[data-theme=dark] .poster-tile{position:relative;border-radius:16px!important;overflow:hidden;background:var(--lux-surface)!important;box-shadow:var(--lux-tile-shadow)!important;transition:box-shadow .28s var(--lux-ease),transform .28s var(--lux-ease)}html.lux[data-theme=dark] .poster-tile img{border-radius:0!important;transition:transform .5s var(--lux-ease),filter .3s}html.lux[data-theme=dark] .poster-tile:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(180deg,#00000047,#0000 26% 62%,#0009)}@media(hover:hover){html.lux[data-theme=dark] .poster-card:hover{transform:translateY(-6px)}html.lux[data-theme=dark] .poster-card:hover .poster-tile{box-shadow:var(--lux-tile-shadow-hover)!important}html.lux[data-theme=dark] .poster-card:hover .poster-tile img{transform:scale(1.045)}}html.lux[data-theme=dark] .poster-tile .kind-badge{z-index:2;background:#0607099e!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;border-radius:999px!important;font-size:10.5px!important;font-weight:700!important;padding:3px 9px!important;box-shadow:none!important}html.lux[data-theme=dark] .poster-tile .kind-badge.series{border-color:#e6b86980!important;color:var(--lux-gold-bright)!important}html.lux[data-theme=dark] .poster-tile .episode-band{z-index:2;background:transparent!important;color:#fff!important;font-weight:800!important;font-size:12px!important;text-shadow:0 1px 8px rgba(0,0,0,.9);border:0!important;box-shadow:none!important}html.lux[data-theme=dark] .poster-tile .audio-badge-group{z-index:2}html.lux[data-theme=dark] .poster-tile .audio-badge-group>*{background:#0607099e!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.16)!important;border-radius:999px!important;color:#fff!important;box-shadow:none!important}html.lux[data-theme=dark] .poster-info{padding:10px 2px 0!important;background:transparent!important}html.lux[data-theme=dark] .poster-title,html.lux[data-theme=dark] .poster-title a{color:var(--lux-text)!important;font-weight:700!important;font-size:13.5px!important;line-height:1.5;text-decoration:none}html.lux[data-theme=dark] .poster-meta{color:var(--lux-text-3)!important;font-size:11.5px!important}html.lux[data-theme=dark] .poster-meta span+span:before{color:var(--lux-gold)}html.lux[data-theme=dark] .poster-genres{color:var(--lux-text-3)!important;font-size:11px!important}html.lux[data-theme=dark] .card:not(.search-panel),html.lux[data-theme=dark] .igf-card,html.lux[data-theme=dark] .mz-stats,html.lux[data-theme=dark] .home-install-card{background:var(--lux-card-bg)!important;border:1px solid var(--lux-line)!important;border-radius:22px!important;box-shadow:var(--lux-card-shadow)!important}html.lux[data-theme=dark] .mz-genres a,html.lux[data-theme=dark] .mz-genres button,html.lux[data-theme=dark] .mz-genre{background:var(--lux-fill)!important;border:1px solid var(--lux-line)!important;border-radius:16px!important;color:var(--lux-text)!important;transition:transform .2s var(--lux-ease),border-color .2s,background .2s}html.lux[data-theme=dark] .mz-genres a:hover,html.lux[data-theme=dark] .mz-genres button:hover,html.lux[data-theme=dark] .mz-genre:hover{transform:translateY(-3px);border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux[data-theme=dark] .mz-stats b,html.lux[data-theme=dark] .mz-stats strong,html.lux[data-theme=dark] .mz-stat-value{color:var(--lux-gold-hi)!important}html.lux[data-theme=dark] #bottom-tabs.tabs{background:var(--lux-dock-bg)!important;-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);border:1px solid var(--lux-line-strong)!important;box-shadow:var(--lux-dock-shadow)!important}@media(max-width:899px){html.lux[data-theme=dark] #bottom-tabs.tabs{left:12px!important;right:12px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;padding-bottom:6px!important;width:auto!important;border-radius:24px!important}}html.lux[data-theme=dark] #bottom-tabs.tabs button:not(.assistant-fab){color:var(--lux-text-3)!important;background:transparent!important;border:0!important;box-shadow:none!important;transition:color .2s}html.lux[data-theme=dark] #bottom-tabs.tabs button.active:not(.assistant-fab){color:var(--lux-gold-hi)!important}html.lux[data-theme=dark] #bottom-tabs.tabs button.active:not(.assistant-fab) svg{filter:drop-shadow(0 0 8px rgba(230,184,105,.55))}html.lux[data-theme=dark] #bottom-tabs.tabs button.active:not(.assistant-fab) span{font-weight:800}html.lux[data-theme=dark] .modal-overlay{background:var(--lux-overlay)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}html.lux[data-theme=dark] .modal-sheet{background:var(--lux-sheet-bg)!important;border:1px solid var(--lux-line-strong)!important;box-shadow:var(--lux-sheet-shadow)!important}html.lux[data-theme=dark] .modal-sheet h2,html.lux[data-theme=dark] .modal-sheet h3{color:var(--lux-text)!important;letter-spacing:-.3px}html.lux[data-theme=dark] input:not([type=checkbox]):not([type=radio]):not([type=range]),html.lux[data-theme=dark] select,html.lux[data-theme=dark] textarea{background:var(--lux-input-bg)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;border-radius:14px}html.lux[data-theme=dark] input:focus,html.lux[data-theme=dark] select:focus,html.lux[data-theme=dark] textarea:focus{border-color:var(--lux-gold-line)!important}html.lux[data-theme=dark] .seo-footer{border-top:1px solid var(--lux-line)!important;border-radius:0!important;margin-top:40px}html.lux[data-theme=dark] .seo-footer__group{background:var(--lux-fill-2)!important;border:1px solid var(--lux-line)!important;border-radius:18px!important}html.lux[data-theme=dark] .seo-footer a{color:var(--lux-text-2)!important}html.lux[data-theme=dark] .seo-footer a:hover{color:var(--lux-gold-hi)!important}html.lux[data-theme=dark] .seo-footer h2{color:var(--lux-gold)!important}@media(prefers-reduced-motion:no-preference){html.lux[data-theme=dark] .home-row{animation:lux-rise .5s var(--lux-ease) both}}@keyframes lux-rise{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){html.lux[data-theme=dark] *{transition:none!important;animation:none!important}}html.lux[data-theme=dark]{--v-violet: var(--lux-gold)}html.lux[data-theme=dark] .hero-eyebrow{width:-moz-fit-content;width:fit-content;align-self:flex-start}html.lux[data-theme=dark] .poster-tile:before{display:none!important}html.lux[data-theme=dark] .detail-hero{filter:saturate(1.05)}html.lux[data-theme=dark] .detail-hero:after{content:"";position:absolute;inset:0;background:var(--lux-sheet-fade);pointer-events:none}html.lux[data-theme=dark] #detail-title{font-weight:900!important;letter-spacing:-.5px}html.lux[data-theme=dark] .detail-availability{color:var(--lux-gold)!important;font-weight:700}html.lux[data-theme=dark] .modal-close,html.lux[data-theme=dark] .detail-nav{background:#0607098c!important;border:1px solid var(--lux-line-strong)!important;color:#fff!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:none!important}html.lux[data-theme=dark] .modal-poster img{border-radius:16px!important;box-shadow:var(--lux-poster-shadow)!important}html.lux[data-theme=dark] .detail-season-btn{background:var(--lux-fill)!important;background-image:none!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;box-shadow:none!important;transition:border-color .18s,background .18s,transform .18s var(--lux-ease)}html.lux[data-theme=dark] .detail-season-btn:hover{border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux[data-theme=dark] .detail-season-btn.is-active{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border-color:transparent!important;font-weight:800;box-shadow:0 6px 18px #e6b86940!important}html.lux[data-theme=dark] .fact-chip,html.lux[data-theme=dark] .fact-chip-button,html.lux[data-theme=dark] .person-chip{background:var(--lux-fill)!important;border:1px solid var(--lux-line)!important;color:var(--lux-text-2)!important}html.lux[data-theme=dark] .person-chip:hover,html.lux[data-theme=dark] .fact-chip-button:hover{border-color:var(--lux-gold-line)!important;color:var(--lux-gold-hi)!important}html.lux[data-theme=dark] .play-chip{background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important}html.lux[data-theme=dark] .play-chip.is-active,html.lux[data-theme=dark] .play-chip[aria-pressed=true],html.lux[data-theme=dark] .play-chip.on{background:var(--lux-gold-soft)!important;border-color:var(--lux-gold)!important;color:var(--lux-gold-hi)!important}html.lux[data-theme=dark] .poster-tile:after{inset:0!important;height:auto!important;width:auto!important;opacity:1!important;mix-blend-mode:normal!important}html.lux[data-theme=dark] body:before{background:var(--lux-stage-bg)!important}html.lux[data-theme=dark] body:after{opacity:.1!important}html.lux[data-theme=dark].mz body .genre-btn,html.lux[data-theme=dark].mz body .menu-btn,html.lux[data-theme=dark].mz body .search-tools button{background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;box-shadow:none!important}html.lux[data-theme=dark].mz body .genre-btn:hover,html.lux[data-theme=dark].mz body .menu-btn:hover{border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux[data-theme=dark].mz body .row-more{background:transparent!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text-2)!important}html.lux[data-theme=dark].mz body .row-more:hover{color:var(--lux-gold-hi)!important;border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux[data-theme=dark].mz body #bottom-tabs.tabs button:not(.assistant-fab):not(.active){color:var(--lux-text-3)!important}html.lux[data-theme=dark].mz body #bottom-tabs.tabs button.active:not(.assistant-fab){color:var(--lux-gold-hi)!important}html.lux[data-theme=dark].mz body .mz-light-switch,html.lux[data-theme=dark].mz body .mz-nav-link{color:var(--lux-text-2)!important}html.lux[data-theme=dark].mz body .mz-nav-link:hover,html.lux[data-theme=dark].mz body .mz-nav-link.active{color:var(--lux-gold-hi)!important;border-color:var(--lux-gold-line)!important}html.lux[data-theme=dark].mz body .brand .app-name{-webkit-text-fill-color:transparent}html.lux[data-theme=dark].mz body .music-now{color:var(--lux-text)!important}html.lux[data-theme=dark].mz body .hero-text h2{color:var(--lux-hero-text)!important}html.lux[data-theme=dark].mz body .search-mode-btn.active{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important}html.lux[data-theme=dark].mz body .home-install-button{color:var(--lux-text)!important}html.lux[data-theme=dark].mz body.d26.d26.d26 #detail-modal .detail-season-btn.is-active{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border-color:transparent!important}html.lux[data-theme=dark] body #notify-panel .notify-row{background:var(--lux-card-bg)!important;background-color:var(--lux-surface)!important;border:1px solid var(--lux-line)!important;box-shadow:none!important;color:var(--lux-text)!important;border-radius:var(--lux-radius-sm)!important;transition:border-color .2s,background-color .2s}html.lux[data-theme=dark] body #notify-panel .notify-row:hover{border-color:var(--lux-gold-line)!important;background-color:var(--lux-surface-2)!important}html.lux[data-theme=dark] body #notify-panel .notify-row.is-unread{background:linear-gradient(180deg,var(--lux-gold-soft),transparent 70%)!important;background-color:var(--lux-surface)!important;border-color:var(--lux-gold-line)!important}html.lux[data-theme=dark] body #notify-panel .notify-row b{color:var(--lux-text)!important;font-weight:800}html.lux[data-theme=dark] body #notify-panel .notify-row-body{color:var(--lux-text-2)!important}html.lux[data-theme=dark] body #notify-panel .notify-row-time{color:var(--lux-text-3)!important}html.lux[data-theme=dark] body #notify-panel .notify-row-icon{background:var(--lux-gold-soft)!important;color:var(--lux-gold)!important;border:1px solid var(--lux-gold-line)!important}html.lux[data-theme=dark] body #notify-panel .notify-row-icon svg{color:var(--lux-gold)!important;stroke:currentColor}html.lux[data-theme=dark] body #notify-panel .notify-row-dot{background:var(--lux-gold)!important;box-shadow:0 0 8px #e6b86999}html.lux[data-theme=dark] body.d26 .mz-announce-close{width:30px!important;height:30px!important;margin-top:-15px!important;left:12px!important;display:grid!important;place-items:center!important;padding:0!important;border-radius:50%!important;background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text-2)!important;font-size:17px!important;font-weight:400!important;line-height:1!important;transition:transform .25s var(--lux-ease),color .2s,background-color .2s,border-color .2s}html.lux[data-theme=dark] body.d26 .mz-announce-close:hover,html.lux[data-theme=dark] body.d26 .mz-announce-close:focus-visible{color:var(--lux-gold-hi)!important;background:var(--lux-gold-soft)!important;border-color:var(--lux-gold-line)!important;transform:rotate(90deg)}@media(min-width:1024px)and (hover:hover)and (pointer:fine){html.lux[data-theme=dark] body.d26 .top-bar.perf-header{grid-template-columns:minmax(0,1fr) minmax(0,560px) minmax(0,1fr)!important}html.lux[data-theme=dark] body.d26 .top-bar.perf-header>.brand{justify-self:start}html.lux[data-theme=dark] body.d26 .top-bar.perf-header>.top-bar-actions{justify-self:end}html.lux[data-theme=dark] body.d26 #bottom-tabs.perf-desktop-nav{justify-self:stretch!important;width:100%!important;max-width:560px!important}html.lux[data-theme=dark] body.d26 .top-bar.perf-header .brand-icon{width:46px!important;height:46px!important;border-radius:14px!important}html.lux[data-theme=dark] body.d26 .top-bar.perf-header .brand .app-name{font-size:21px!important}html.lux[data-theme=dark] body.d26 .top-bar.perf-header .brand .brand-tagline{font-size:12.5px!important}}html.lux[data-theme=dark] body.d26 .mz-announce-cta{margin:0!important;align-self:center}html.lux.mz-light:root:root:root:root:root:root,html.lux.mz-light:root:root:root:root:root:root body.d26.d26.d26.d26{--lux-bg: #f6f1e7;--lux-bg-2: #fbf8f1;--lux-surface: #fffdf8;--lux-surface-2: #f3ecdf;--lux-line: rgba(96, 70, 20, .13);--lux-line-strong: rgba(96, 70, 20, .24);--lux-text: #1b1610;--lux-text-2: rgba(27, 22, 16, .74);--lux-text-3: rgba(27, 22, 16, .56);--lux-gold: #8f630e;--lux-gold-hi: #74500a;--lux-gold-lo: #c9973f;--lux-gold-grad: linear-gradient(135deg, #f7dc9c 0%, #e6b869 45%, #c9973f 100%);--lux-gold-soft: rgba(201, 151, 63, .16);--lux-gold-line: rgba(176, 125, 31, .5);--lux-on-gold: #1c1304;--lux-radius: 18px;--lux-radius-sm: 12px;--lux-shadow: 0 18px 44px rgba(88, 62, 14, .18);--lux-shadow-sm: 0 8px 22px rgba(88, 62, 14, .11);--lux-ease: cubic-bezier(.22, .8, .24, 1);--bg: var(--lux-bg);--bg-elevated: var(--lux-bg-2);--bg-glow-1: #fbf8f1;--bg-glow-2: #f1eadc;--surface: var(--lux-surface);--surface-solid: var(--lux-surface);--surface-elevated: var(--lux-surface-2);--surface-border: var(--lux-line);--border: var(--lux-line);--text: var(--lux-text);--text-primary: var(--lux-text);--text-secondary: var(--lux-text-2);--text-dim: var(--lux-text-2);--text-faint: var(--lux-text-3);--muted: var(--lux-text-2);--text-muted: var(--lux-text-2);--s0: var(--lux-bg);--s1: var(--lux-surface);--s2: var(--lux-surface-2);--ink: var(--lux-text);--ink-2: var(--lux-text-2);--ink-3: var(--lux-text-3);--hairline: var(--lux-line);--accent: var(--lux-gold);--accent-hover: var(--lux-gold-hi);--accent-muted: var(--lux-gold-soft);--accent-soft: var(--lux-gold-line);--accent-active: var(--lux-gold-hi);--accent-2: var(--lux-gold);--accent-strong: var(--lux-gold-hi);--accent-gradient: var(--lux-gold-grad);--on-accent: var(--lux-on-gold);--gold: var(--lux-gold);--radius-sm: 10px;--radius-md: 14px;--radius-lg: 20px;--shadow-1: var(--lux-shadow-sm);--shadow-2: var(--lux-shadow);--glass-bg: rgba(255, 252, 246, .72);--glass-bg-strong: rgba(255, 252, 246, .92);--glass-border: var(--lux-line-strong);--glass-highlight: rgba(255, 255, 255, .9);--glass-shadow: 0 12px 32px rgba(88, 62, 14, .14), inset 0 1px 0 rgba(255, 255, 255, .8);--glass-active: rgba(201, 151, 63, .22);--nav-glass: rgba(255, 252, 246, .88);--mz-gold: #8f630e;--mz-amber: #b07d1f;--mz-grad: linear-gradient(135deg, #f7dc9c 0%, #e6b869 45%, #c9973f 100%);--mz-page: #f6f1e7;--mz-backdrop: none;--mz-veil: none;--mz-panel: rgba(255, 253, 248, .9);--mz-panel-line: rgba(96, 70, 20, .12);--mz-card: #fffdf8;--mz-card-2: #f6f0e4;--mz-glass: rgba(255, 252, 246, .8);--mz-line: rgba(96, 70, 20, .13);--mz-line-2: rgba(96, 70, 20, .24);--mz-text: #1b1610;--mz-text-2: #5a4e3a;--mz-text-3: #84775f;--mz-shadow: 0 24px 60px rgba(88, 62, 14, .18);--glass-text: #1b1610;--pl-bg: #faf6ee;--pl-card: #fffdf8;--pl-line: rgba(96, 70, 20, .14);--pl-text: #1b1610;--pl-text-2: rgba(27, 22, 16, .68);--pl-gold: #c9973f;--pl-gold-2: #e6b869;color-scheme:light;--lux-gold-bright: #f7dc9c;--lux-gold-mid: #e6b869;--lux-fill: rgba(96, 70, 20, .055);--lux-fill-2: rgba(96, 70, 20, .035);--lux-card-bg: linear-gradient(180deg, #fffdf9, #fbf6ec);--lux-card-shadow: 0 8px 24px rgba(88, 62, 14, .1), inset 0 1px 0 #fff;--lux-input-bg: #fffdf8;--lux-bar-bg: linear-gradient(180deg, rgba(250, 246, 238, .95), rgba(250, 246, 238, .78));--lux-brand-grad: linear-gradient(180deg, #1b1610 25%, #8f630e 125%);--lux-dock-bg: rgba(255, 252, 246, .88);--lux-dock-shadow: 0 16px 40px rgba(88, 62, 14, .22), inset 0 1px 0 #fff;--lux-overlay: rgba(36, 27, 10, .5);--lux-sheet-bg: linear-gradient(180deg, #fffdf8, #f6f0e4);--lux-sheet-shadow: 0 -20px 60px rgba(60, 42, 8, .28);--lux-sheet-fade: linear-gradient(180deg, rgba(255, 253, 248, 0) 46%, rgba(255, 253, 248, .86) 84%, #fffdf8 100%);--lux-tile-shadow: 0 10px 24px rgba(88, 62, 14, .22), 0 0 0 1px rgba(96, 70, 20, .12);--lux-tile-shadow-hover: 0 20px 40px rgba(88, 62, 14, .32), 0 0 0 1.5px var(--lux-gold-line), 0 0 30px rgba(230, 184, 105, .3);--lux-poster-shadow: 0 18px 40px rgba(60, 42, 8, .35), 0 0 0 1px rgba(96, 70, 20, .14);--lux-selection-text: #1b1610;--lux-hero-text: #fff;--lux-hero-text-2: rgba(255, 255, 255, .82);--lux-page-bg: radial-gradient(1200px 520px at 50% -180px, rgba(230, 184, 105, .3), transparent 62%), radial-gradient(900px 600px at 100% 30%, rgba(201, 151, 63, .08), transparent 60%), #f6f1e7;--lux-stage-bg: radial-gradient(1100px 480px at 50% -160px, rgba(230, 184, 105, .32), transparent 64%), radial-gradient(800px 520px at 0% 40%, rgba(201, 151, 63, .09), transparent 62%), linear-gradient(180deg, #faf6ee 0%, #f4eee2 100%)}html.lux.mz-light:root:root:root:root:root:root body{background:var(--lux-page-bg)!important;background-attachment:fixed!important;color:var(--lux-text);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}html.lux.mz-light:root:root:root:root:root:root ::selection{background:#e6b86959;color:var(--lux-selection-text)}html.lux.mz-light:root:root:root:root:root:root #app-main,html.lux.mz-light:root:root:root:root:root:root .seo-footer{background:transparent!important;border:0!important;box-shadow:none!important}html.lux.mz-light:root:root:root:root:root:root *{scrollbar-color:rgba(230,184,105,.35) transparent}html.lux.mz-light:root:root:root:root:root:root .top-bar{background:var(--lux-bar-bg)!important;-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);border:0!important;border-bottom:1px solid var(--lux-line)!important;border-radius:0!important;box-shadow:none!important}html.lux.mz-light:root:root:root:root:root:root .brand .app-name{font-weight:800;letter-spacing:-.2px;background:var(--lux-brand-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}html.lux.mz-light:root:root:root:root:root:root .brand .brand-tagline{color:var(--lux-gold)!important;letter-spacing:.4px;font-weight:600;opacity:.92}html.lux.mz-light:root:root:root:root:root:root .brand-icon{border-radius:12px!important;box-shadow:0 0 0 1px var(--lux-gold-line),0 6px 18px #e6b8692e!important;overflow:hidden}html.lux.mz-light:root:root:root:root:root:root .guest-login-button{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border:0!important;font-weight:800!important;box-shadow:0 6px 20px #e6b86947,inset 0 1px #ffffff73!important}html.lux.mz-light:root:root:root:root:root:root .top-bar-actions .icon-btn,html.lux.mz-light:root:root:root:root:root:root .top-bar-actions .d26-icon{background:var(--lux-fill)!important;border:1px solid var(--lux-line)!important;color:var(--lux-text)!important;box-shadow:none!important}html.lux.mz-light:root:root:root:root:root:root button.primary,html.lux.mz-light:root:root:root:root:root:root .primary:not(.chip):not(.play-chip){background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border:0!important;font-weight:800;box-shadow:0 8px 22px #e6b8693d,inset 0 1px #ffffff73!important;transition:transform .18s var(--lux-ease),box-shadow .18s var(--lux-ease),filter .18s}html.lux.mz-light:root:root:root:root:root:root button.primary:hover{filter:brightness(1.06);transform:translateY(-1px)}html.lux.mz-light:root:root:root:root:root:root button.primary:active{transform:translateY(0) scale(.985)}html.lux.mz-light:root:root:root:root:root:root button.secondary:not(.mz-quick-chip):not(.mz-light-switch){background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;box-shadow:none!important}html.lux.mz-light:root:root:root:root:root:root button.secondary:not(.mz-quick-chip):not(.mz-light-switch):hover{border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux.mz-light:root:root:root:root:root:root :focus-visible{outline:2px solid var(--lux-gold)!important;outline-offset:2px}html.lux.mz-light:root:root:root:root:root:root .search-panel{background:var(--lux-card-bg)!important;border:1px solid var(--lux-line)!important;border-radius:22px!important;box-shadow:var(--lux-card-shadow)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}html.lux.mz-light:root:root:root:root:root:root .search-panel input[type=search],html.lux.mz-light:root:root:root:root:root:root .search-panel input[type=text]{background:var(--lux-input-bg)!important;border:1px solid var(--lux-line)!important;border-radius:14px!important;color:var(--lux-text)!important}html.lux.mz-light:root:root:root:root:root:root .search-panel input:focus{border-color:var(--lux-gold-line)!important;box-shadow:0 0 0 4px #e6b8691a!important}html.lux.mz-light:root:root:root:root:root:root .search-panel input::placeholder{color:var(--lux-text-3)!important}html.lux.mz-light:root:root:root:root:root:root .hero{margin-top:14px}html.lux.mz-light:root:root:root:root:root:root .hero-slide{border-radius:26px!important;border:1px solid var(--lux-line)!important;box-shadow:var(--lux-shadow)!important;overflow:hidden;background:#000!important}html.lux.mz-light:root:root:root:root:root:root .hero-backdrop{filter:saturate(1.08) contrast(1.04)}html.lux.mz-light:root:root:root:root:root:root .hero-slide:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#06070900 34%,#060709b8 68%,#060709f5),linear-gradient(90deg,#0607098c,#06070900 55%);z-index:1}html.lux.mz-light:root:root:root:root:root:root .hero-content{position:relative;z-index:2}html.lux.mz-light:root:root:root:root:root:root .hero-eyebrow{display:inline-block;color:var(--lux-gold-bright)!important;font-weight:700;letter-spacing:.6px;font-size:12px;padding:4px 10px;border:1px solid var(--lux-gold-line);border-radius:999px;background:#06070973;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}html.lux.mz-light:root:root:root:root:root:root .hero-text h2{font-weight:900!important;letter-spacing:-.6px;line-height:1.15;text-shadow:0 2px 24px rgba(0,0,0,.7)}html.lux.mz-light:root:root:root:root:root:root .hero-text p:not(.hero-eyebrow){color:var(--lux-hero-text-2)!important}html.lux.mz-light:root:root:root:root:root:root .hero-poster img{border-radius:16px!important;box-shadow:0 18px 40px #000000b3,0 0 0 1px #ffffff1f!important}html.lux.mz-light:root:root:root:root:root:root .hero-nav{background:#06070980!important;border:1px solid var(--lux-line-strong)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#fff!important}html.lux.mz-light:root:root:root:root:root:root .hero-dots button,html.lux.mz-light:root:root:root:root:root:root .hero-dot{background:#ffffff47!important}html.lux.mz-light:root:root:root:root:root:root .hero-dots button.active,html.lux.mz-light:root:root:root:root:root:root .hero-dot.active{background:var(--lux-gold-mid)!important}html.lux.mz-light:root:root:root:root:root:root .mz-quick-chip{background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;border-radius:999px!important;font-weight:700;box-shadow:none!important;transition:transform .18s var(--lux-ease),border-color .18s,background .18s}html.lux.mz-light:root:root:root:root:root:root .mz-quick-chip:hover{transform:translateY(-2px);border-color:var(--lux-gold-line)!important}html.lux.mz-light:root:root:root:root:root:root .mz-quick-chip--hot{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border-color:transparent!important;box-shadow:0 8px 20px #e6b86938,inset 0 1px #ffffff73!important}html.lux.mz-light:root:root:root:root:root:root .chip{background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text-2)!important}html.lux.mz-light:root:root:root:root:root:root .chip.active,html.lux.mz-light:root:root:root:root:root:root .chip[aria-pressed=true]{background:var(--lux-gold-soft)!important;border-color:var(--lux-gold-line)!important;color:var(--lux-gold-hi)!important}html.lux.mz-light:root:root:root:root:root:root .home-row{margin-top:30px}html.lux.mz-light:root:root:root:root:root:root .row-head{align-items:center;margin-bottom:14px}html.lux.mz-light:root:root:root:root:root:root .row-head h3{position:relative;font-size:19px!important;font-weight:800!important;letter-spacing:-.3px;color:var(--lux-text)!important;padding-inline-start:14px}html.lux.mz-light:root:root:root:root:root:root .row-head h3:before{content:"";position:absolute;inset-inline-start:0;top:12%;bottom:12%;width:4px;border-radius:4px;background:var(--lux-gold-grad);box-shadow:0 0 14px #e6b8698c}html.lux.mz-light:root:root:root:root:root:root .row-more{background:transparent!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text-2)!important;border-radius:999px!important;font-weight:700;font-size:12.5px!important;padding:7px 14px!important;box-shadow:none!important;transition:color .18s,border-color .18s,background .18s}html.lux.mz-light:root:root:root:root:root:root .row-more:hover{color:var(--lux-gold-hi)!important;border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux.mz-light:root:root:root:root:root:root .poster-card{background:transparent!important;border:0!important;box-shadow:none!important;transition:transform .28s var(--lux-ease)}html.lux.mz-light:root:root:root:root:root:root .poster-tile{position:relative;border-radius:16px!important;overflow:hidden;background:var(--lux-surface)!important;box-shadow:var(--lux-tile-shadow)!important;transition:box-shadow .28s var(--lux-ease),transform .28s var(--lux-ease)}html.lux.mz-light:root:root:root:root:root:root .poster-tile img{border-radius:0!important;transition:transform .5s var(--lux-ease),filter .3s}html.lux.mz-light:root:root:root:root:root:root .poster-tile:after{content:"";position:absolute;inset:0;pointer-events:none;border-radius:inherit;background:linear-gradient(180deg,#00000047,#0000 26% 62%,#0009)}@media(hover:hover){html.lux.mz-light:root:root:root:root:root:root .poster-card:hover{transform:translateY(-6px)}html.lux.mz-light:root:root:root:root:root:root .poster-card:hover .poster-tile{box-shadow:var(--lux-tile-shadow-hover)!important}html.lux.mz-light:root:root:root:root:root:root .poster-card:hover .poster-tile img{transform:scale(1.045)}}html.lux.mz-light:root:root:root:root:root:root .poster-tile .kind-badge{z-index:2;background:#0607099e!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.16)!important;color:#fff!important;border-radius:999px!important;font-size:10.5px!important;font-weight:700!important;padding:3px 9px!important;box-shadow:none!important}html.lux.mz-light:root:root:root:root:root:root .poster-tile .kind-badge.series{border-color:#e6b86980!important;color:var(--lux-gold-bright)!important}html.lux.mz-light:root:root:root:root:root:root .poster-tile .episode-band{z-index:2;background:transparent!important;color:#fff!important;font-weight:800!important;font-size:12px!important;text-shadow:0 1px 8px rgba(0,0,0,.9);border:0!important;box-shadow:none!important}html.lux.mz-light:root:root:root:root:root:root .poster-tile .audio-badge-group{z-index:2}html.lux.mz-light:root:root:root:root:root:root .poster-tile .audio-badge-group>*{background:#0607099e!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.16)!important;border-radius:999px!important;color:#fff!important;box-shadow:none!important}html.lux.mz-light:root:root:root:root:root:root .poster-info{padding:10px 2px 0!important;background:transparent!important}html.lux.mz-light:root:root:root:root:root:root .poster-title,html.lux.mz-light:root:root:root:root:root:root .poster-title a{color:var(--lux-text)!important;font-weight:700!important;font-size:13.5px!important;line-height:1.5;text-decoration:none}html.lux.mz-light:root:root:root:root:root:root .poster-meta{color:var(--lux-text-3)!important;font-size:11.5px!important}html.lux.mz-light:root:root:root:root:root:root .poster-meta span+span:before{color:var(--lux-gold)}html.lux.mz-light:root:root:root:root:root:root .poster-genres{color:var(--lux-text-3)!important;font-size:11px!important}html.lux.mz-light:root:root:root:root:root:root .card:not(.search-panel),html.lux.mz-light:root:root:root:root:root:root .igf-card,html.lux.mz-light:root:root:root:root:root:root .mz-stats,html.lux.mz-light:root:root:root:root:root:root .home-install-card{background:var(--lux-card-bg)!important;border:1px solid var(--lux-line)!important;border-radius:22px!important;box-shadow:var(--lux-card-shadow)!important}html.lux.mz-light:root:root:root:root:root:root .mz-genres a,html.lux.mz-light:root:root:root:root:root:root .mz-genres button,html.lux.mz-light:root:root:root:root:root:root .mz-genre{background:var(--lux-fill)!important;border:1px solid var(--lux-line)!important;border-radius:16px!important;color:var(--lux-text)!important;transition:transform .2s var(--lux-ease),border-color .2s,background .2s}html.lux.mz-light:root:root:root:root:root:root .mz-genres a:hover,html.lux.mz-light:root:root:root:root:root:root .mz-genres button:hover,html.lux.mz-light:root:root:root:root:root:root .mz-genre:hover{transform:translateY(-3px);border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux.mz-light:root:root:root:root:root:root .mz-stats b,html.lux.mz-light:root:root:root:root:root:root .mz-stats strong,html.lux.mz-light:root:root:root:root:root:root .mz-stat-value{color:var(--lux-gold-hi)!important}html.lux.mz-light:root:root:root:root:root:root #bottom-tabs.tabs{background:var(--lux-dock-bg)!important;-webkit-backdrop-filter:blur(22px) saturate(1.4);backdrop-filter:blur(22px) saturate(1.4);border:1px solid var(--lux-line-strong)!important;box-shadow:var(--lux-dock-shadow)!important}@media(max-width:899px){html.lux.mz-light:root:root:root:root:root:root #bottom-tabs.tabs{left:12px!important;right:12px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;padding-bottom:6px!important;width:auto!important;border-radius:24px!important}}html.lux.mz-light:root:root:root:root:root:root #bottom-tabs.tabs button:not(.assistant-fab){color:var(--lux-text-3)!important;background:transparent!important;border:0!important;box-shadow:none!important;transition:color .2s}html.lux.mz-light:root:root:root:root:root:root #bottom-tabs.tabs button.active:not(.assistant-fab){color:var(--lux-gold-hi)!important}html.lux.mz-light:root:root:root:root:root:root #bottom-tabs.tabs button.active:not(.assistant-fab) svg{filter:drop-shadow(0 0 8px rgba(230,184,105,.55))}html.lux.mz-light:root:root:root:root:root:root #bottom-tabs.tabs button.active:not(.assistant-fab) span{font-weight:800}html.lux.mz-light:root:root:root:root:root:root .modal-overlay{background:var(--lux-overlay)!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}html.lux.mz-light:root:root:root:root:root:root .modal-sheet{background:var(--lux-sheet-bg)!important;border:1px solid var(--lux-line-strong)!important;box-shadow:var(--lux-sheet-shadow)!important}html.lux.mz-light:root:root:root:root:root:root .modal-sheet h2,html.lux.mz-light:root:root:root:root:root:root .modal-sheet h3{color:var(--lux-text)!important;letter-spacing:-.3px}html.lux.mz-light:root:root:root:root:root:root input:not([type=checkbox]):not([type=radio]):not([type=range]),html.lux.mz-light:root:root:root:root:root:root select,html.lux.mz-light:root:root:root:root:root:root textarea{background:var(--lux-input-bg)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;border-radius:14px}html.lux.mz-light:root:root:root:root:root:root input:focus,html.lux.mz-light:root:root:root:root:root:root select:focus,html.lux.mz-light:root:root:root:root:root:root textarea:focus{border-color:var(--lux-gold-line)!important}html.lux.mz-light:root:root:root:root:root:root .seo-footer{border-top:1px solid var(--lux-line)!important;border-radius:0!important;margin-top:40px}html.lux.mz-light:root:root:root:root:root:root .seo-footer__group{background:var(--lux-fill-2)!important;border:1px solid var(--lux-line)!important;border-radius:18px!important}html.lux.mz-light:root:root:root:root:root:root .seo-footer a{color:var(--lux-text-2)!important}html.lux.mz-light:root:root:root:root:root:root .seo-footer a:hover{color:var(--lux-gold-hi)!important}html.lux.mz-light:root:root:root:root:root:root .seo-footer h2{color:var(--lux-gold)!important}@media(prefers-reduced-motion:no-preference){html.lux.mz-light:root:root:root:root:root:root .home-row{animation:lux-rise .5s var(--lux-ease) both}}@media(prefers-reduced-motion:reduce){html.lux.mz-light:root:root:root:root:root:root *{transition:none!important;animation:none!important}}html.lux.mz-light:root:root:root:root:root:root{--v-violet: var(--lux-gold)}html.lux.mz-light:root:root:root:root:root:root .hero-eyebrow{width:-moz-fit-content;width:fit-content;align-self:flex-start}html.lux.mz-light:root:root:root:root:root:root .poster-tile:before{display:none!important}html.lux.mz-light:root:root:root:root:root:root .detail-hero{filter:saturate(1.05)}html.lux.mz-light:root:root:root:root:root:root .detail-hero:after{content:"";position:absolute;inset:0;background:var(--lux-sheet-fade);pointer-events:none}html.lux.mz-light:root:root:root:root:root:root #detail-title{font-weight:900!important;letter-spacing:-.5px}html.lux.mz-light:root:root:root:root:root:root .detail-availability{color:var(--lux-gold)!important;font-weight:700}html.lux.mz-light:root:root:root:root:root:root .modal-close,html.lux.mz-light:root:root:root:root:root:root .detail-nav{background:#0607098c!important;border:1px solid var(--lux-line-strong)!important;color:#fff!important;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:none!important}html.lux.mz-light:root:root:root:root:root:root .modal-poster img{border-radius:16px!important;box-shadow:var(--lux-poster-shadow)!important}html.lux.mz-light:root:root:root:root:root:root .detail-season-btn{background:var(--lux-fill)!important;background-image:none!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;box-shadow:none!important;transition:border-color .18s,background .18s,transform .18s var(--lux-ease)}html.lux.mz-light:root:root:root:root:root:root .detail-season-btn:hover{border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux.mz-light:root:root:root:root:root:root .detail-season-btn.is-active{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border-color:transparent!important;font-weight:800;box-shadow:0 6px 18px #e6b86940!important}html.lux.mz-light:root:root:root:root:root:root .fact-chip,html.lux.mz-light:root:root:root:root:root:root .fact-chip-button,html.lux.mz-light:root:root:root:root:root:root .person-chip{background:var(--lux-fill)!important;border:1px solid var(--lux-line)!important;color:var(--lux-text-2)!important}html.lux.mz-light:root:root:root:root:root:root .person-chip:hover,html.lux.mz-light:root:root:root:root:root:root .fact-chip-button:hover{border-color:var(--lux-gold-line)!important;color:var(--lux-gold-hi)!important}html.lux.mz-light:root:root:root:root:root:root .play-chip{background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important}html.lux.mz-light:root:root:root:root:root:root .play-chip.is-active,html.lux.mz-light:root:root:root:root:root:root .play-chip[aria-pressed=true],html.lux.mz-light:root:root:root:root:root:root .play-chip.on{background:var(--lux-gold-soft)!important;border-color:var(--lux-gold)!important;color:var(--lux-gold-hi)!important}html.lux.mz-light:root:root:root:root:root:root .poster-tile:after{inset:0!important;height:auto!important;width:auto!important;opacity:1!important;mix-blend-mode:normal!important}html.lux.mz-light:root:root:root:root:root:root body:before{background:var(--lux-stage-bg)!important}html.lux.mz-light:root:root:root:root:root:root body:after{opacity:.1!important}html.lux.mz-light:root:root:root:root:root:root.mz body .genre-btn,html.lux.mz-light:root:root:root:root:root:root.mz body .menu-btn,html.lux.mz-light:root:root:root:root:root:root.mz body .search-tools button{background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important;box-shadow:none!important}html.lux.mz-light:root:root:root:root:root:root.mz body .genre-btn:hover,html.lux.mz-light:root:root:root:root:root:root.mz body .menu-btn:hover{border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux.mz-light:root:root:root:root:root:root.mz body .row-more{background:transparent!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text-2)!important}html.lux.mz-light:root:root:root:root:root:root.mz body .row-more:hover{color:var(--lux-gold-hi)!important;border-color:var(--lux-gold-line)!important;background:var(--lux-gold-soft)!important}html.lux.mz-light:root:root:root:root:root:root.mz body #bottom-tabs.tabs button:not(.assistant-fab):not(.active){color:var(--lux-text-3)!important}html.lux.mz-light:root:root:root:root:root:root.mz body #bottom-tabs.tabs button.active:not(.assistant-fab){color:var(--lux-gold-hi)!important}html.lux.mz-light:root:root:root:root:root:root.mz body .mz-light-switch{color:var(--lux-text-2)!important}html.lux.mz-light:root:root:root:root:root:root.mz body .mz-nav-link{color:var(--lux-text-2)!important}html.lux.mz-light:root:root:root:root:root:root.mz body .mz-nav-link:hover,html.lux.mz-light:root:root:root:root:root:root.mz body .mz-nav-link.active{color:var(--lux-gold-hi)!important;border-color:var(--lux-gold-line)!important}html.lux.mz-light:root:root:root:root:root:root.mz body .brand .app-name{-webkit-text-fill-color:transparent}html.lux.mz-light:root:root:root:root:root:root.mz body .music-now{color:var(--lux-text)!important}html.lux.mz-light:root:root:root:root:root:root.mz body .hero-text h2{color:var(--lux-hero-text)!important}html.lux.mz-light:root:root:root:root:root:root.mz body .search-mode-btn.active{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important}html.lux.mz-light:root:root:root:root:root:root.mz body .home-install-button{color:var(--lux-text)!important}html.lux.mz-light:root:root:root:root:root:root body .home-install-card .home-install-button{background:var(--lux-surface)!important;border-color:var(--lux-line-strong)!important;color:var(--lux-text)!important}html.lux.mz-light:root:root:root:root:root:root body .home-install-card .home-install-button small{color:var(--lux-text-2)!important}html.lux.mz-light:root:root:root:root:root:root.mz body.d26.d26.d26 #detail-modal .detail-season-btn.is-active{background:var(--lux-gold-grad)!important;color:var(--lux-on-gold)!important;border-color:transparent!important}html.lux.mz-light:root:root:root:root:root:root .modal-close,html.lux.mz-light:root:root:root:root:root:root .detail-nav{background:#fffcf6e6!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text)!important}html.lux.mz-light:root:root:root:root:root:root input::placeholder,html.lux.mz-light:root:root:root:root:root:root textarea::placeholder{color:var(--lux-text-3)!important;opacity:1}html.lux.mz-light:root:root:root:root:root:root #bottom-tabs.tabs button:not(.assistant-fab) svg{color:inherit;stroke:currentColor}html.lux.mz-light:root:root:root:root:root:root body.d26.d26.d26 .vpn-plan:before{background:var(--lux-gold-grad)!important}html.lux.mz-light:root:root:root:root:root:root body.d26.d26.d26 .vpn-badge{color:var(--lux-gold-hi)!important;background:var(--lux-gold-soft)!important;border-color:var(--lux-gold-line)!important}html.lux.mz-light:root:root:root:root:root:root body.d26.d26.d26 .vpn-price{color:var(--lux-gold)!important;-webkit-text-fill-color:var(--lux-gold)}html.lux.mz-light:root:root:root:root:root:root body #notify-panel .notify-row{background:var(--lux-card-bg)!important;background-color:var(--lux-surface)!important;border:1px solid var(--lux-line)!important;box-shadow:none!important;color:var(--lux-text)!important;border-radius:var(--lux-radius-sm)!important;transition:border-color .2s,background-color .2s}html.lux.mz-light:root:root:root:root:root:root body #notify-panel .notify-row:hover{border-color:var(--lux-gold-line)!important;background-color:var(--lux-surface-2)!important}html.lux.mz-light:root:root:root:root:root:root body #notify-panel .notify-row.is-unread{background:linear-gradient(180deg,var(--lux-gold-soft),transparent 70%)!important;background-color:var(--lux-surface)!important;border-color:var(--lux-gold-line)!important}html.lux.mz-light:root:root:root:root:root:root body #notify-panel .notify-row b{color:var(--lux-text)!important;font-weight:800}html.lux.mz-light:root:root:root:root:root:root body #notify-panel .notify-row-body{color:var(--lux-text-2)!important}html.lux.mz-light:root:root:root:root:root:root body #notify-panel .notify-row-time{color:var(--lux-text-3)!important}html.lux.mz-light:root:root:root:root:root:root body #notify-panel .notify-row-icon{background:var(--lux-gold-soft)!important;color:var(--lux-gold)!important;border:1px solid var(--lux-gold-line)!important}html.lux.mz-light:root:root:root:root:root:root body #notify-panel .notify-row-icon svg{color:var(--lux-gold)!important;stroke:currentColor}html.lux.mz-light:root:root:root:root:root:root body #notify-panel .notify-row-dot{background:var(--lux-gold)!important;box-shadow:0 0 8px #e6b86999}html.lux.mz-light:root:root:root:root:root:root body.d26 .mz-announce-close{width:30px!important;height:30px!important;margin-top:-15px!important;left:12px!important;display:grid!important;place-items:center!important;padding:0!important;border-radius:50%!important;background:var(--lux-fill)!important;border:1px solid var(--lux-line-strong)!important;color:var(--lux-text-2)!important;font-size:17px!important;font-weight:400!important;line-height:1!important;transition:transform .25s var(--lux-ease),color .2s,background-color .2s,border-color .2s}html.lux.mz-light:root:root:root:root:root:root body.d26 .mz-announce-close:hover,html.lux.mz-light:root:root:root:root:root:root body.d26 .mz-announce-close:focus-visible{color:var(--lux-gold-hi)!important;background:var(--lux-gold-soft)!important;border-color:var(--lux-gold-line)!important;transform:rotate(90deg)}@media(min-width:1024px)and (hover:hover)and (pointer:fine){html.lux.mz-light:root:root:root:root:root:root body.d26 .top-bar.perf-header{grid-template-columns:minmax(0,1fr) minmax(0,560px) minmax(0,1fr)!important}html.lux.mz-light:root:root:root:root:root:root body.d26 .top-bar.perf-header>.brand{justify-self:start}html.lux.mz-light:root:root:root:root:root:root body.d26 .top-bar.perf-header>.top-bar-actions{justify-self:end}html.lux.mz-light:root:root:root:root:root:root body.d26 #bottom-tabs.perf-desktop-nav{justify-self:stretch!important;width:100%!important;max-width:560px!important}html.lux.mz-light:root:root:root:root:root:root body.d26 .top-bar.perf-header .brand-icon{width:46px!important;height:46px!important;border-radius:14px!important}html.lux.mz-light:root:root:root:root:root:root body.d26 .top-bar.perf-header .brand .app-name{font-size:21px!important}html.lux.mz-light:root:root:root:root:root:root body.d26 .top-bar.perf-header .brand .brand-tagline{font-size:12.5px!important}}html.lux.mz-light:root:root:root:root:root:root body.d26 .mz-announce-cta{margin:0!important;align-self:center}

/* Compact application surfaces use the same colors as VPN checkout. */
:root {
  --ui-compact-border: var(--checkout-stroke);
  --ui-compact-surface: var(--checkout-bg);
  --ui-compact-ink: var(--checkout-ink);
  --ui-compact-muted: var(--checkout-muted);
  --ui-compact-accent: var(--checkout-state);
  --ui-compact-radius: 12px;
  --ui-compact-tap: 44px;
}

html:root body #tab-selections .acct-page {
  width: min(100%, 980px);
  box-sizing: border-box;
  margin-inline: auto;
}
html:root body #tab-selections .acct-page > :is(.acct-card, .acct-group, .acct-links),
html:root body #tab-selections #acct-stats .acct-stat,
html:root body #tab-downloads .dl-page :is(.dl-upsell, .dl-row, .dl-item) {
  background: var(--ui-compact-surface) !important;
  border: 1px solid var(--ui-compact-border) !important;
  border-radius: var(--ui-compact-radius) !important;
  box-shadow: none !important;
  color: var(--ui-compact-ink) !important;
}
html:root:root body.d26 #tab-selections .acct-page > :is(.acct-card, .acct-group) {
  padding: 12px 14px !important;
  margin-block: 9px !important;
  gap: 8px !important;
}
html:root body #tab-selections .acct-avatar {
  width: 40px !important;
  height: 40px !important;
  flex: 0 0 40px;
  border-radius: 10px !important;
  font-size: 16px !important;
}
html:root body #tab-selections .acct-card > .acct-who {
  flex: 1 1 calc(100% - 54px) !important;
  overflow-wrap: anywhere;
}
html:root body #tab-selections :is(#profile-title, .acct-name) {
  font-size: 16px !important;
  line-height: 1.4;
}
html:root body #tab-selections :is(.acct-group h3, .acct-shelf h3) { font-size: 14px !important; }
html:root body #tab-selections :is(.acct-phone, .acct-security-state, .field label, .acct-stat span) {
  color: var(--ui-compact-muted) !important;
  font-size: 12px !important;
  line-height: 1.5;
}
html:root body #tab-selections #acct-stats { gap: 8px; margin-block: 8px 11px; }
html:root body #tab-selections #acct-stats .acct-stat {
  min-width: 0;
  min-height: 56px !important;
  padding: 6px !important;
}
html:root body #tab-selections #acct-stats .acct-stat b { font-size: 16px !important; color: var(--ui-compact-accent); }
html:root body #tab-selections .acct-link {
  padding: 7px 11px !important;
  min-height: var(--ui-compact-tap);
  color: var(--ui-compact-ink) !important;
  font-size: 13px !important;
}
html:root body #tab-selections .acct-link .ui-icon { width: 16px; height: 16px; }
html:root body #tab-selections :is(.pl-profile.secondary, .igf-profile, .tgf-profile) {
  padding: 6px 10px !important;
  min-height: var(--ui-compact-tap) !important;
  margin-block: 0 !important;
  box-shadow: none !important;
  border-radius: 9px !important;
}
html:root body #tab-selections :is(.pl-profile, .igf-profile, .tgf-profile) :is(b, span, em) {
  font-size: 12px !important;
  line-height: 1.5;
}
html:root body #tab-selections :is(.acct-security-action, #profile-save-button, .acct-logout) {
  min-height: var(--ui-compact-tap) !important;
  padding: 5px 11px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
}

html:root body #tab-browse .search-panel {
  padding: 7px 9px !important;
  gap: 7px;
  border-radius: 13px !important;
}
html:root body #tab-browse .search-panel :is(button, select) { font-size: 12px !important; }
html:root body #tab-browse .search-panel :is(input[type="search"], input[type="text"]) { font-size: 14px !important; }
html:root body #tab-browse .home-row :is(h2, h3, .row-title) { font-size: 17px !important; }

html:root body #tab-downloads .dl-page { padding-top: 12px !important; }
html:root body #tab-downloads .dl-page h3 { font-size: 14px !important; }
html:root body #tab-downloads .dl-page :is(.dl-upsell, .dl-row, .dl-item) { padding: 8px 10px !important; }
html:root body #tab-downloads .dl-page :is(.dl-badge, .dl-status, .dl-text span) {
  font-size: 12px !important;
  color: var(--ui-compact-muted);
}
html:root body #tab-downloads .dl-page .dl-text b { font-size: 13px !important; }
html:root body #tab-downloads .dl-page button {
  min-height: var(--ui-compact-tap) !important;
  font-size: 12px !important;
}

html:root body :is(#sort-modal, #genre-modal, #notify-panel, #install-guide-modal, #play-modal) .modal-sheet,
html:root body #screen-login .login-card,
html:root body dialog.support-dialog {
  background: var(--ui-compact-surface) !important;
  border: 1px solid var(--ui-compact-border) !important;
  color: var(--ui-compact-ink) !important;
}
html:root body :is(#sort-modal, #genre-modal, #notify-panel, #install-guide-modal) .modal-sheet {
  padding-inline: 14px !important;
}
html:root body :is(#sort-modal, #genre-modal, #notify-panel, #install-guide-modal, #play-modal, #screen-login, #music-modal) h2,
html:root body dialog.support-dialog :is(h2, h3) { font-size: 17px !important; line-height: 1.45; }
html:root body :is(#sort-modal, #genre-modal) :is(.sort-option, .genre-chip) {
  min-height: var(--ui-compact-tap) !important;
  padding: 5px 9px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
}
html:root body :is(#sort-modal, #genre-modal) :is(.sort-option.active, .genre-chip.active) {
  color: #28190b !important;
  background: #ffd17d !important;
  border-color: #ffd17d !important;
}
html:root body :is(#detail-modal, #play-modal) :is(.detail-seasons-label, .detail-overview-label, .play-label) {
  font-size: 14px !important;
}
html:root body :is(#detail-modal, #play-modal) :is(.detail-season-btn, .ep-tile, .detail-cta-bar button, .play-sheet button) {
  min-height: var(--ui-compact-tap) !important;
  font-size: 13px !important;
  border-radius: 9px !important;
}
html:root body :is(#detail-modal, #play-modal) :is(.detail-position, #detail-overview, .play-sub, .play-note) {
  font-size: 13px !important;
  line-height: 1.7;
}
html:root body :is(#notify-panel, #install-guide-modal, #music-modal, #screen-login) :is(.modal-close, button.secondary) {
  min-height: var(--ui-compact-tap) !important;
  font-size: 12px !important;
}
html:root body :is(#notify-panel, #install-guide-modal) :is(.notify-item, .install-guide-step) {
  padding: 9px 10px !important;
  border-radius: 9px !important;
}
html:root body :is(#screen-login, #tab-selections) .field :is(input:not([type="hidden"]), select),
html:root body dialog.support-dialog :is(input, textarea, select) {
  box-sizing: border-box;
  min-height: var(--ui-compact-tap);
  font-size: max(16px, 1em);
  border-radius: 9px !important;
}
html:root body dialog.support-dialog :is(.support-contact, .support-message) {
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13px;
}
html:root body :is(#music-bar, #music-modal) :is(.music-now, .music-player-heading p) { font-size: 13px !important; }

html:root body :is(#tab-selections, #tab-downloads, #sort-modal, #genre-modal, #notify-panel, #install-guide-modal, dialog.support-dialog)
:is(button, a, input, textarea, select):focus-visible {
  outline: 2px solid var(--ui-compact-accent);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  html:root body #tab-browse .home-row :is(h2, h3, .row-title) { font-size: 15px !important; }
  html:root body #tab-selections .acct-page > :is(.acct-card, .acct-group) { padding-inline: 11px !important; }
}

html:root body #tab-selections .acct-switch {
  min-height: var(--ui-compact-tap);
  padding-block: 5px;
  font-size: 13px;
}
html:root body #tab-downloads .dl-page :is(.dl-head h2, .dl-empty h2) {
  font-size: 17px !important;
}
html:root body #tab-downloads .dl-page :is(.dl-empty-line, .dl-how, .dl-wait) {
  font-size: 12px !important;
  line-height: 1.7;
}
html:root body #tab-browse .search-panel button { min-height: 36px !important; }
html:root body #screen-login .login-card {
  max-width: 440px;
  border-radius: 14px !important;
}
html:root body #screen-login .login-head .subtitle { font-size: 13px !important; }
html:root body #screen-login .login-card .field label { font-size: 12px !important; }
html:root body #detail-modal :is(.detail-overview-card, #detail-series),
html:root body #music-modal .modal-sheet {
  border-color: var(--ui-compact-border) !important;
}
html:root body #detail-modal .detail-overview-card { padding: 11px 13px !important; border-radius: 12px !important; }
html:root body #play-modal .play-chip.is-active {
  background: #ffd17d !important;
  border-color: #ffd17d !important;
  color: #28190b !important;
}
html:root body #play-modal .play-chip.is-active small { color: #4e391e !important; }
html:root body #music-modal .music-player-art {
  width: clamp(106px, 28vw, 145px) !important;
  height: clamp(106px, 28vw, 145px) !important;
  border-radius: 14px !important;
}

html:root body #tab-selections .acct-page { gap: 9px !important; }
html:root:root body.d26 #tab-selections .acct-page > :is(.acct-card, .acct-group, .acct-links, #acct-stats) {
  margin-block: 0 !important;
}
html:root body #tab-selections .support-open {
  min-height: var(--ui-compact-tap);
  margin-block: 0 !important;
  padding: 7px 11px !important;
  border: 1px solid var(--ui-compact-border) !important;
  border-radius: 9px !important;
  background: var(--ui-compact-surface) !important;
  color: var(--ui-compact-accent) !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

/* Equal controls across the title and its playback sheet. */
html:root:root body #detail-modal .detail-cta-bar .detail-action-wrap {
  display: block;
  width: 100%;
  margin-inline: auto;
}
html:root:root body #detail-modal .detail-cta-bar .sp-play-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
html:root:root body #detail-modal .detail-cta-bar .sp-play-pair--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html:root:root body #detail-modal .detail-cta-bar :is(#detail-play-button, #detail-download-button) {
  grid-column: auto;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 46px !important;
  height: auto !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 6px 8px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  border-radius: 9px !important;
}
html:root:root body #detail-modal .detail-cta-bar :is(#detail-play-button, #detail-download-button):is([hidden], .hidden) {
  display: none !important;
}
html:root:root body #detail-modal .detail-cta-bar :is(#detail-play-button, #detail-download-button) svg,
html:root:root body #play-modal .play-sheet :is(.play-go, .pl-download) svg,
html:root:root body #detail-modal :is(.detail-mylist-button, #detail-like-button, #detail-dislike-button) svg {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  vertical-align: middle;
}

html:root:root body #tab-selections .amm-invite {
  display: grid;
  gap: 5px !important;
  margin: 4px 0 !important;
  padding: 9px 11px !important;
  border: 1px solid var(--ui-compact-border) !important;
  border-radius: var(--ui-compact-radius) !important;
  background: var(--ui-compact-surface) !important;
  color: var(--ui-compact-ink) !important;
}
html:root:root body #tab-selections .amm-invite h3 { font-size: 14px !important; margin: 0 !important; }
html:root:root body #tab-selections .amm-invite :is(p, small, .amm-invite-link) {
  font-size: 12px !important;
  line-height: 1.55 !important;
}
html:root:root body #tab-selections .amm-invite .amm-invite-link {
  min-height: 0;
  padding: 4px 7px !important;
  margin-block: 1px !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
html:root:root body #tab-selections .amm-invite-actions { gap: 6px !important; }
html:root:root body #tab-selections .amm-invite-actions button {
  flex: 1 1 0;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 5px 8px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}
html:root body .order-contact { font-size: 12px !important; line-height: 1.65; }
html:root body .order-contact > a { color: var(--ui-compact-accent); font-weight: 700; }

.continuity-notice {
  box-sizing: border-box;
  max-inline-size: 1180px;
  margin: 10px auto 12px;
  padding: 10px 14px;
  border: 1px solid #285348;
  border-inline-start: 3px solid #50b79a;
  border-radius: 12px;
  background: #112620;
  color: #d4e6df;
}
.continuity-notice strong { display: block; color: #a5e6cf; font-size: .91rem; }
.continuity-notice p { margin: 3px 0 0; font-size: .79rem; line-height: 1.8; }
html.mz-light .continuity-notice, html[data-theme="light"] .continuity-notice {
  background: #eff8f4; color: #28483d; border-color: #91bcac;
}
html.mz-light .continuity-notice strong, html[data-theme="light"] .continuity-notice strong { color: #185943; }
@media (max-width: 1204px) {
  .continuity-notice { margin-inline: 12px; }
}

/* Cinema 2026 — final dark+gold skin (owner choice 2026-11-28).
   Loaded last. Colours, atmosphere, motion only. No layout rewrites.
   Neutralizes leftover pink/violet from older vivid layers. */

:root,
html[data-theme="dark"],
html.lux[data-theme="dark"] {
  --cinema-bg: #050607;
  --cinema-bg-2: #0a0c10;
  --cinema-gold: #e8c27a;
  --cinema-gold-hi: #f6e2b0;
  --cinema-gold-lo: #c4953d;
  --cinema-ink: #120e06;
  --cinema-line: rgba(232, 194, 122, 0.28);
  --cinema-glow: rgba(232, 194, 122, 0.18);

  --accent: var(--cinema-gold);
  --accent-hover: var(--cinema-gold-hi);
  --accent-muted: rgba(232, 194, 122, 0.14);
  --accent-soft: rgba(232, 194, 122, 0.34);
  --accent-active: var(--cinema-gold-hi);
  --accent-2: var(--cinema-gold);
  --accent-strong: var(--cinema-gold-hi);
  --accent-gradient: linear-gradient(135deg, #f6e2b0 0%, #e8c27a 48%, #c4953d 100%);
  --on-accent: var(--cinema-ink);
  --gold: var(--cinema-gold);
  --bg: var(--cinema-bg);
  --bg-elevated: var(--cinema-bg-2);
  --glass-highlight: rgba(246, 226, 176, 0.2);
  --glass-active: rgba(232, 194, 122, 0.22);
}

html[data-theme="light"],
html.lux[data-theme="light"] {
  --accent: #b8892f;
  --accent-hover: #9a7224;
  --accent-2: #b8892f;
  --accent-strong: #9a7224;
  --accent-muted: rgba(184, 137, 47, 0.14);
  --accent-soft: rgba(184, 137, 47, 0.24);
  --accent-active: #d4a84a;
  --accent-gradient: linear-gradient(135deg, #e8c27a 0%, #b8892f 100%);
  --on-accent: #1a1408;
  --gold: #b8892f;
  --glass-highlight: rgba(232, 194, 122, 0.55);
  --glass-active: rgba(184, 137, 47, 0.18);
}

/* Atmosphere: noir stage light, no purple */
html[data-theme="dark"] body,
html.lux[data-theme="dark"] body,
html[data-theme] body.d26.d26 {
  background:
    radial-gradient(1100px 520px at 50% -160px, rgba(232, 194, 122, 0.11), transparent 60%),
    radial-gradient(800px 520px at 100% 20%, rgba(196, 149, 61, 0.05), transparent 55%),
    radial-gradient(900px 640px at 0% 100%, rgba(255, 255, 255, 0.03), transparent 55%),
    linear-gradient(180deg, #07080b 0%, #050607 48%, #040506 100%) !important;
  color: #f6f3ec;
}

html[data-theme="dark"] body::before,
html.lux[data-theme="dark"] body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

html[data-theme="dark"] #app,
html.lux[data-theme="dark"] #app,
html[data-theme="dark"] main,
html.lux[data-theme="dark"] main {
  position: relative;
  z-index: 1;
}

/* Kill vivid purple / rose leftovers */
html body.d26 section.hero,
html.lux body section.hero {
  border-color: rgba(232, 194, 122, 0.22) !important;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(232, 194, 122, 0.08) inset !important;
}
html body.d26 section.hero::after,
html.lux body section.hero::after {
  background: linear-gradient(120deg, rgba(232, 194, 122, 0.18), transparent 55%) !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Brand as hero signal */
html.lux[data-theme="dark"] .brand .app-name,
html[data-theme="dark"] .brand .app-name {
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  background: linear-gradient(180deg, #ffffff 10%, #f6e2b0 78%, #e8c27a 120%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  animation: cinema-brand-sheen 7s ease-in-out infinite;
}
html.lux[data-theme="dark"] .brand .brand-tagline,
html[data-theme="dark"] .brand .brand-tagline {
  color: var(--cinema-gold) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}
html.lux[data-theme="dark"] .brand-icon,
html[data-theme="dark"] .brand-icon {
  box-shadow:
    0 0 0 1px var(--cinema-line),
    0 10px 28px rgba(232, 194, 122, 0.2) !important;
}

@keyframes cinema-brand-sheen {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

/* Primary actions: gold only */
html body.d26 #guest-login-button,
html body.d26 .hero-cta:not(.hero-cta--ghost),
html body.d26 .play-btn,
html body.d26 .select-btn.play-btn,
html body.d26 #bottom-tabs button.active,
html body.d26 .chip.active,
html.lux #guest-login-button,
html.lux .hero-cta:not(.hero-cta--ghost),
html.lux .play-btn,
html.lux .chip.active {
  background: linear-gradient(135deg, #f6e2b0 0%, #e8c27a 45%, #c4953d 100%) !important;
  color: var(--cinema-ink) !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(232, 194, 122, 0.22) !important;
}

html body.d26 #bottom-tabs.perf-desktop-nav,
html.lux #bottom-tabs {
  border-color: rgba(232, 194, 122, 0.16) !important;
  background: linear-gradient(180deg, rgba(18, 20, 26, 0.92), rgba(8, 9, 12, 0.94)) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(246, 226, 176, 0.06) !important;
}

/* Header glass */
html[data-theme="dark"] .top-bar.perf-header,
html.lux[data-theme="dark"] .top-bar.perf-header {
  border-bottom: 1px solid rgba(232, 194, 122, 0.1) !important;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.72)) !important;
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}

/* Poster tiles: cinematic lift */
html[data-theme="dark"] .poster-card,
html[data-theme="dark"] .tile,
html.lux[data-theme="dark"] .poster-card,
html.lux[data-theme="dark"] .tile {
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.24, 1), box-shadow 0.28s ease !important;
}
html[data-theme="dark"] .poster-card:hover,
html[data-theme="dark"] .tile:hover,
html.lux[data-theme="dark"] .poster-card:hover,
html.lux[data-theme="dark"] .tile:hover {
  transform: translateY(-6px) scale(1.015) !important;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.65),
    0 0 0 1.5px var(--cinema-line),
    0 0 36px var(--cinema-glow) !important;
}

/* Row titles */
html[data-theme="dark"] .row-title,
html.lux[data-theme="dark"] .row-title,
html[data-theme="dark"] .shelf-title,
html.lux[data-theme="dark"] .shelf-title {
  color: #f6f3ec !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

/* Hero entrance */
@keyframes cinema-hero-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
html[data-theme="dark"] section.hero,
html.lux[data-theme="dark"] section.hero {
  animation: cinema-hero-in 0.55s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

/* Focus */
html[data-theme="dark"] :focus-visible,
html.lux[data-theme="dark"] :focus-visible {
  outline: 2px solid var(--cinema-gold) !important;
  outline-offset: 2px;
}

/* Search focus ring gold */
html body.d26 .search-panel:focus-within,
html.lux .search-panel:focus-within {
  border-color: rgba(232, 194, 122, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(232, 194, 122, 0.14), 0 12px 34px rgba(0, 0, 0, 0.32) !important;
}

@media (prefers-reduced-motion: reduce) {
  html.lux[data-theme="dark"] .brand .app-name,
  html[data-theme="dark"] .brand .app-name,
  html[data-theme="dark"] section.hero,
  html.lux[data-theme="dark"] section.hero {
    animation: none !important;
  }
  html[data-theme="dark"] .poster-card:hover,
  html[data-theme="dark"] .tile:hover,
  html.lux[data-theme="dark"] .poster-card:hover,
  html.lux[data-theme="dark"] .tile:hover {
    transform: none !important;
  }
}

/* Detail 2026 — cinematic title sheet (owner 2026-11-28).
   Colours, spacing, hierarchy only. Scoped to #detail-modal. No JS, no markup changes.
   Loaded after cinema-2026.css. */

#detail-modal .detail-sheet {
  background: linear-gradient(180deg, #0b0d11 0%, #060709 60%, #050607 100%) !important;
  border: 1px solid rgba(232, 194, 122, 0.14) !important;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03) inset !important;
  border-radius: 22px !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Full-bleed cinematic backdrop behind the top of the sheet */
#detail-modal #detail-hero {
  position: relative;
  height: 320px;
  background-size: cover !important;
  background-position: center 30% !important;
  filter: saturate(1.05) contrast(1.05);
}
#detail-modal #detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.15) 0%, rgba(5, 6, 7, 0.55) 55%, #060709 100%),
    radial-gradient(900px 300px at 80% -20%, rgba(232, 194, 122, 0.18), transparent 60%);
}
#detail-modal #detail-hero.detail-hero--from-poster {
  filter: blur(0) saturate(1.1);
}

/* Body: poster and text share one row, the poster floats over the backdrop */
#detail-modal .modal-body {
  position: relative;
  margin-top: -150px;
  padding: 0 22px 28px !important;
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 22px;
  align-items: end;
}

#detail-modal .modal-poster {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(232, 194, 122, 0.22),
    0 0 60px rgba(232, 194, 122, 0.12) !important;
  aspect-ratio: 2 / 3;
  background: #0f1117;
}
#detail-modal .modal-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }

#detail-modal .modal-info {
  min-width: 0;
  padding-bottom: 6px;
}

#detail-modal #detail-title {
  font-size: clamp(26px, 4.2vw, 40px) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 6px !important;
  background: linear-gradient(180deg, #ffffff 25%, #f6e2b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#detail-modal .title-fa,
#detail-modal .detail-original {
  color: rgba(246, 243, 236, 0.62) !important;
  font-size: 14px !important;
  margin-bottom: 10px !important;
}

#detail-modal .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px !important;
}
#detail-modal .meta > span,
#detail-modal .meta > .detail-year {
  padding: 5px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f6f3ec !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
#detail-modal .meta > .detail-year {
  background: rgba(232, 194, 122, 0.12) !important;
  border-color: rgba(232, 194, 122, 0.3) !important;
  color: #f6e2b0 !important;
}

#detail-modal .detail-availability {
  color: #e8c27a !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  margin: 0 0 12px !important;
}
#detail-modal .detail-availability.is-missing {
  color: rgba(246, 243, 236, 0.5) !important;
}

#detail-modal .detail-overview,
#detail-modal .detail-synopsis,
#detail-modal #detail-overview {
  color: rgba(246, 243, 236, 0.84) !important;
  line-height: 1.85 !important;
  font-size: 15px !important;
  max-width: 68ch;
}

#detail-modal .detail-trailer-button,
#detail-modal .detail-mylist-button {
  border-radius: 14px !important;
  border: 1px solid rgba(232, 194, 122, 0.3) !important;
  background: rgba(232, 194, 122, 0.08) !important;
  color: #f6e2b0 !important;
  font-weight: 800 !important;
  padding: 10px 18px !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
#detail-modal .detail-trailer-button:hover,
#detail-modal .detail-mylist-button:hover {
  background: rgba(232, 194, 122, 0.18) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(232, 194, 122, 0.14);
}

/* Primary CTA bar: one gold action, pinned at the bottom */
#detail-modal .detail-cta-bar {
  position: sticky;
  bottom: 0;
  margin: 0 -22px -28px !important;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0) 0%, rgba(5, 6, 7, 0.92) 30%, #050607 100%) !important;
  border-top: 1px solid rgba(232, 194, 122, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#detail-modal .detail-seasons-label {
  margin-top: 6px;
}

#detail-modal .detail-series {
  margin-top: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(232, 194, 122, 0.12) !important;
}

/* Mobile: poster smaller, stacks under the backdrop */
@media (max-width: 720px) {
  #detail-modal #detail-hero { height: 240px; }
  #detail-modal .modal-body {
    grid-template-columns: 1fr;
    margin-top: -110px;
    gap: 14px;
    padding: 0 16px 24px !important;
    justify-items: center;
    text-align: center;
  }
  #detail-modal .modal-poster { width: 150px; }
  #detail-modal .modal-info { width: 100%; }
  #detail-modal .meta { justify-content: center; }
  #detail-modal .detail-cta-bar { margin: 0 -16px -24px !important; padding-inline: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  #detail-modal .detail-trailer-button,
  #detail-modal .detail-mylist-button { transition: none; }
}


/* Light theme: the sheet is cream, so the synopsis cannot stay near-white. */
html.mz-light #detail-modal :is(.detail-overview, .detail-synopsis, #detail-overview),
html[data-theme="light"] #detail-modal :is(.detail-overview, .detail-synopsis, #detail-overview) {
  color: #241c14 !important;
  -webkit-text-fill-color: #241c14 !important;
}
html.mz-light #detail-modal :is(.title-fa, .detail-original),
html[data-theme="light"] #detail-modal :is(.title-fa, .detail-original) {
  color: #5c5348 !important;
  -webkit-text-fill-color: #5c5348 !important;
}
html.mz-light #detail-modal .meta > span:not(.detail-year),
html[data-theme="light"] #detail-modal .meta > span:not(.detail-year) {
  color: #241c14 !important;
  -webkit-text-fill-color: #241c14 !important;
  background: rgba(36, 28, 20, 0.06) !important;
  border-color: rgba(36, 28, 20, 0.12) !important;
}

/* Layered important declarations take precedence over the historical, unlayered
   theme rules. Keep this layer limited to shared presentation and layout. */
:root {
  --cin-page: #101113;
  --cin-panel: #191b1e;
  --cin-raised: #242629;
  --cin-line: #38393a;
  --cin-ink: #f5f2eb;
  --cin-muted: #bbb8b1;
  --cin-action: #edc17a;
  --cin-action-ink: #261b0c;
  --cin-gap: clamp(16px, 2.2vw, 32px);
  --cin-section: clamp(24px, 3vw, 44px);
  --cin-width: 1440px;
  --cin-safe: env(safe-area-inset-bottom, 0px);
}
:root:is([data-theme="light"], .mz-light) {
  --cin-page: #f5f2ec;
  --cin-panel: #fffdf9;
  --cin-raised: #eee9df;
  --cin-line: #d7d0c3;
  --cin-ink: #282520;
  --cin-muted: #625e56;
  --cin-action: #e8b665;
}
@layer screening-room {
  body { background: var(--cin-page) !important; color: var(--cin-ink) !important; }
  #app-main, #seo-footer, .top-bar {
    box-sizing: border-box;
    width: min(100%, var(--cin-width)) !important;
    margin-inline: auto !important;
  }
  .top-bar {
    border-block-end: 1px solid var(--cin-line) !important;
    background: var(--cin-panel) !important;
    padding: 8px var(--cin-gap) !important;
    box-shadow: none !important;
  }
  /* The Android WebView can draw beneath the status bar. Keep the
     masthead controls below its inset, including when the bar sticks. */
  @media (max-width: 760px) {
    html.native-app .top-bar {
      padding-block-start: max(0px, calc(env(safe-area-inset-top, 0px) - 11px)) !important;
      top: min(11px, env(safe-area-inset-top, 0px)) !important;
    }
    html.native-app .top-bar > :is(.brand, .top-bar-actions) {
      translate: 0 -9px;
    }
  }
  #tab-browse .continuity-notice {
    margin: 0 var(--d26-edge, 16px) 12px !important;
    padding: 10px 16px !important;
    max-width: none !important;
    box-sizing: border-box;
    border-radius: 14px;
  }

  .search-panel, .acct-group, .acct-card, .dl-row, .home-install-card {
    background: var(--cin-panel) !important;
    border: 1px solid var(--cin-line) !important;
    color: var(--cin-ink) !important;
    box-shadow: none !important;
  }
  #home-view > .hero { margin-block: 12px var(--cin-gap) !important; }
  .hero-track { gap: 12px !important; }
  #home-view .hero-slide {
    flex: 0 0 82% !important;
    height: clamp(270px, 27vw, 370px) !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    border-radius: 18px !important;
    background: #17181a !important;
    overflow: hidden;
  }
  .hero--single .hero-slide { flex-basis: 100% !important; }
  #home-view .hero-backdrop {
    inset: 0 !important;
    background-size: cover !important;
    background-position: center 32% !important;
    filter: none !important;
    opacity: .8 !important;
  }
  #home-view .hero-backdrop::after { background: none !important; }
  #home-view .hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg,#101113 4%,rgba(16,17,19,.93) 32%,rgba(16,17,19,.14) 86%) !important;
    pointer-events: none;
    z-index: 1;
  }
  #home-view .hero-content {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--cin-gap) !important;
    padding: var(--cin-gap) !important;
    box-sizing: border-box;
    z-index: 2;
  }
  #home-view .hero-poster {
    display: block !important;
    flex: 0 0 auto !important;
    width: clamp(104px, 12vw, 182px) !important;
    height: auto !important;
    aspect-ratio: 2/3 !important;
    border-radius: 9px !important;
    overflow: hidden;
  }
  .hero-poster img { width: 100%; height: 100%; object-fit: cover; }
  #home-view .hero-text { max-width: 34em !important; min-width: 0; text-align: start !important; }
  #home-view .hero-text h2 {
    font-size: clamp(23px, 2.7vw, 42px) !important;
    line-height: 1.28 !important;
    color: #fff !important;
    white-space: normal !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  #home-view .hero-text p { color: #e7e4dc !important; -webkit-line-clamp: 2 !important; }
  #home-view .hero-cta, .play-go:not(.play-go--ghost), #detail-play-button {
    background: var(--cin-action) !important;
    color: var(--cin-action-ink) !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    min-height: 44px !important;
  }
  .home-row, .mz-genres { margin-block: var(--cin-section) !important; }
  .row-head { margin-bottom: 12px !important; align-items: center; }
  .row-head h3 { font-size: clamp(18px, 1.6vw, 24px) !important; }
  .row-more, .genre-chip, .detail-season-btn, .modal-close, .play-chip { min-height: 44px !important; }
  .poster-tile { aspect-ratio: 2/3 !important; height: auto !important; border-radius: 12px !important; overflow: hidden; }
  .poster-tile img { width: 100%; height: 100%; object-fit: cover; }
  .poster-info { padding-block-start: 8px !important; }
  .poster-title { line-height: 1.55 !important; unicode-bidi: plaintext; }
  .poster-genres, .poster-meta, .play-sub { color: var(--cin-muted) !important; }
  .mz-genre-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    max-inline-size: 760px;
  }
  .mz-genre {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    min-inline-size: 0 !important;
    min-block-size: 44px;
    gap: 2px 8px !important;
    align-items: center;
    text-align: start !important;
    padding: 6px 10px !important;
    background: var(--cin-panel) !important;
    border-color: var(--cin-line) !important;
  }
  .mz-genre-icon { grid-row: span 2; font-size: 17px !important; }
  .mz-genre-name { font-size: 13px !important; line-height: 1.25 !important; }
  .mz-genre-count { color: var(--cin-muted) !important; font-size: 11px !important; line-height: 1.2 !important; }
  .modal-sheet, .play-sheet {
    background-color: var(--cin-panel) !important;
    color: var(--cin-ink) !important;
    max-height: calc(100dvh - env(safe-area-inset-top,0px) - 16px) !important;
    overscroll-behavior: contain;
    scroll-padding-block-end: calc(80px + var(--cin-safe));
  }
  .play-chips { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  .play-chip { flex: 1 1 82px; }
  .play-chip.is-active, .detail-season-btn.is-active { color: var(--cin-action-ink) !important; background: var(--cin-action) !important; }
  #detail-overview { line-height: 1.95 !important; text-align: start !important; }
  #detail-modal .detail-cta-bar { background: var(--cin-panel) !important; border-top: 1px solid var(--cin-line) !important; padding-block: 10px calc(10px + var(--cin-safe)) !important; }
  #detail-episodes { display: grid !important; grid-template-columns: repeat(auto-fill,minmax(56px,1fr)) !important; gap: 8px !important; }
  .ep-tile { min-height: 52px !important; }
  #seo-footer { margin-block-start: var(--cin-section) !important; padding: var(--cin-gap) !important; border-block-start: 1px solid var(--cin-line) !important; background: var(--cin-panel) !important; }
  .amf-grid { gap: var(--cin-gap) !important; }
  .amf-col li a { border: 0 !important; background: transparent !important; box-shadow: none !important; text-align: start !important; justify-content: flex-start !important; padding-inline: 5px !important; color: var(--cin-muted) !important; }
  .amf-col li a:hover { color: var(--cin-ink) !important; text-decoration: underline; }
  :focus-visible { outline: 3px solid #bd8a38 !important; outline-offset: 2px; }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .poster-tile img { transition: transform 180ms ease-out; }
    .poster-card:hover .poster-tile img { transform: scale(1.035); }
  }
  @media (max-width: 760px) {
    html { scroll-padding-bottom: calc(80px + var(--cin-safe)); }
    #bottom-tabs { background: var(--cin-panel) !important; border: 1px solid var(--cin-line) !important; box-shadow: none !important; bottom: max(4px,var(--cin-safe)) !important; }
    #seo-footer { padding-block-end: calc(84px + var(--cin-safe)) !important; }
    #home-view .hero-slide { height: clamp(240px,59vw,300px) !important; flex-basis: 96% !important; }
    #home-view .hero--single .hero-slide { flex-basis: 100% !important; }
    #home-view .hero-content { padding: 18px !important; }
    #home-view .hero-poster { width: clamp(76px,22vw,130px) !important; }
    #home-view .hero-text h2 { font-size: clamp(20px,5vw,29px) !important; }
    .mz-genre-grid { gap: 6px !important; }
    .mz-genre {
      grid-template-columns: minmax(0, 1fr) !important;
      justify-items: center;
      align-content: center;
      padding: 6px 3px !important;
      text-align: center !important;
    }
    .mz-genre-icon { grid-row: auto; font-size: 15px !important; }
    .mz-genre-name { overflow-wrap: anywhere; }
    .amf-col li a { min-height: 44px !important; }
    .detail-cta-bar button { min-width: 0; white-space: normal; }
    .modal-sheet { padding-bottom: max(16px,var(--cin-safe)); }
  }
  .dl-picker-fields { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  .dl-picker-fields label { min-width: 0; }
  .dl-picker-fields select { width: 100%; min-width: 0; min-height: 44px; }
  .dl-picker-state, .empty-state, .pl-sheet {
    border: 1px solid var(--cin-line) !important;
    background: var(--cin-panel) !important;
    color: var(--cin-ink) !important;
  }
  .pl-sheet { max-height: calc(100dvh - 16px - env(safe-area-inset-top,0px)) !important; overflow-y: auto; overscroll-behavior: contain; }
  .empty-state { padding: var(--cin-gap) !important; border-radius: 12px !important; }
  .row-skeleton, .hero-skeleton, .skeleton-card { background-color: var(--cin-raised) !important; border-radius: 12px !important; }
  .amf-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; min-height: 44px; padding: 4px 0; border: 0;
    font: inherit; color: inherit; text-align: start; background: transparent;
  }
  .amf-toggle::after { content: "+"; color: var(--cin-muted); }
  .amf-toggle[aria-expanded="true"]::after { content: "−"; }
  .amf-col ul[hidden] { display: none !important; }
  @media (max-width: 760px) {
    .amf-grid { gap: 8px !important; }
    .amf-col { border-block-start: 1px solid var(--cin-line); }
    .amf-col h2 { margin: 0 !important; }
    .amf-col h2:has(.amf-toggle)::after { display: none !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-skeleton, .row-skeleton, .skeleton-card, .modal-sheet { animation: none !important; }
  }

  #home-view > .hero .hero-track {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    touch-action: auto !important;
    overscroll-behavior-inline: contain;
    padding-inline: 0 !important;
    scroll-padding-inline: 0 !important;
  }
  #home-view > .hero .hero-slide {
    flex: 0 0 100% !important;
    scroll-snap-align: start !important;
  }
  @media (any-pointer: fine) {
    #home-view .hero-track--draggable,
    #home-view .hero-track--draggable .hero-slide { cursor: grab; }
    #home-view .hero-track--draggable.is-dragging,
    #home-view .hero-track--draggable.is-dragging .hero-slide { cursor: grabbing; }
  }
  #home-view > .hero .hero-track.is-dragging {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
    user-select: none;
  }
  #home-view > .hero { position: relative; }
  #home-view .hero-arrow {
    position: absolute !important;
    z-index: 4;
    inset: 50% auto auto !important;
    transform: translateY(-50%) !important;
    display: grid !important;
    place-items: center;
    width: 42px !important;
    min-width: 42px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #fff !important;
    cursor: pointer;
    isolation: isolate;
  }
  #home-view .hero-arrow::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgb(0 0 0 / 48%);
  }
  #home-view .hero-arrow .ui-icon { width: 15px; height: 15px; opacity: .73; }
  #home-view .hero-arrow:is(:hover, :focus-visible) .ui-icon { opacity: 1; }
  #home-view .hero-arrow--prev { right: 0 !important; }
  #home-view .hero-arrow--next { left: 0 !important; }
}

@layer wallet-layout {
  #wallet-dialog {
    --wallet-line: var(--cin-line, #3b3b40);
    --wallet-surface: var(--cin-panel, #1d1d21);
    --wallet-raised: var(--cin-raised, #29292e);
    --wallet-ink: var(--cin-ink, #f8f6f0);
    --wallet-muted: var(--cin-muted, #bdbbc3);
    --wallet-gold: var(--cin-action, #edc17a);
    box-sizing: border-box;
    width: min(calc(100vw - 24px), 580px) !important;
    max-height: min(760px, calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px)) !important;
    margin: auto;
    padding: 18px !important;
    border: 1px solid var(--wallet-line);
    border-radius: 16px;
    background: var(--wallet-surface) !important;
    color: var(--wallet-ink) !important;
    box-shadow: 0 16px 56px rgb(0 0 0 / 30%);
    text-align: start;
    overflow: auto;
    overscroll-behavior: contain;
  }
  #wallet-dialog::backdrop { background: rgb(0 0 0 / 62%); }
  #wallet-dialog [hidden], #wallet-dialog [data-wallet-status]:empty { display: none !important; }
  #wallet-dialog :is(h2,h3,p,ul) { margin: 0; }
  #wallet-dialog h2 { font-size: 21px; line-height: 1.25; white-space: nowrap; }
  #wallet-dialog h3 { font-size: 15px; line-height: 1.4; }
  #wallet-dialog .wallet-heading {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-block-end: 12px;
  }
  #wallet-dialog .wallet-heading-actions { display: flex; align-items: center; gap: 6px; }
  #wallet-dialog [data-wallet-status] {
    padding: 8px 10px;
    margin-block: 0 12px;
    border-inline-start: 2px solid var(--wallet-gold);
    color: var(--wallet-muted);
    font-size: 13px;
  }
  #wallet-dialog :is(form, .wallet-invite) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: end;
    gap: 8px;
    min-width: 0;
  }
  #wallet-dialog form { margin-block: 0 9px; }
  #wallet-dialog section {
    border-block-start: 1px solid var(--wallet-line);
    margin-block-start: 14px;
    padding-block-start: 12px;
  }
  #wallet-dialog label {
    display: grid !important;
    gap: 4px;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--wallet-ink);
  }
  #wallet-dialog :is(input, select) {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 6px 9px !important;
    margin: 0 !important;
    font-size: 14px !important;
    color: var(--wallet-ink) !important;
    background: var(--wallet-raised) !important;
    border: 1px solid var(--wallet-line) !important;
    border-radius: 8px !important;
  }
  #wallet-dialog button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    height: auto !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    color: var(--wallet-ink) !important;
    background: var(--wallet-raised) !important;
    border: 1px solid var(--wallet-line) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }
  #wallet-dialog form button {
    color: #281c0e !important;
    background: var(--wallet-gold) !important;
    border-color: transparent !important;
  }
  #wallet-dialog button:disabled {
    color: var(--wallet-muted) !important;
    background: var(--wallet-raised) !important;
    border-color: var(--wallet-line) !important;
    opacity: .7;
  }
  #wallet-dialog .wallet-balances {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-block: 0 14px;
  }
  #wallet-dialog .wallet-balances > div {
    border: 1px solid var(--wallet-line);
    border-radius: 10px;
    padding: 10px;
    background: var(--wallet-raised);
  }
  #wallet-dialog .wallet-balances small, #wallet-dialog [data-wallet-rate] { color: var(--wallet-muted); font-size: 12px; }
  #wallet-dialog .wallet-balances strong { display: block; margin-top: 3px; font-size: clamp(15px, 3.8vw, 21px); overflow-wrap: anywhere; }
  #wallet-dialog [data-wallet-rate] { margin-block: 5px 8px; line-height: 1.55; }
  #wallet-dialog ul { padding: 0; list-style: none; }
  #wallet-dialog li { padding-block: 6px; font-size: 13px; overflow-wrap: anywhere; }
  #wallet-dialog li + li { border-block-start: 1px solid var(--wallet-line); }

  @media (max-width: 480px) {
    #wallet-dialog { padding: 12px !important; }
    #wallet-dialog h2 { font-size: 18px; }
    #wallet-dialog button { min-height: 44px !important; padding-inline: 8px !important; }
    #wallet-dialog :is(input, select) { min-height: 44px !important; font-size: 16px !important; }
  }
}
