/* Rozmaza — deep navy + restrained gold. Spacing on a 4/8 px rhythm. Fonts are self-hosted (assets/fonts, SIL OFL).

   TYPE SYSTEM — Anek (Ek Type): one family drawn across Latin, Devanagari, Tamil and Telugu, so mixed-script lines
   share weight, rhythm and x-height. Variable, weights 500–800 (500 is the text weight). `unicode-range` means a
   reader only downloads the script on screen; an interface language's full font is in the stack only for that
   language, and language names shown in their own script (हिन्दी · தமிழ் · తెలుగు …) come from tiny name-only subsets
   ("Anek Names", 2–12 KB each). Vertical metrics are overridden so every script sits on the same baseline, and
   "Anek Fallback" is a width-matched system face so text does not jump when the web font arrives. */
@font-face { font-family: "Anek"; src: url("/assets/fonts/anek-latin.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2010-2015, U+2018-201E, U+2020, U+2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+2044, U+20B9, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Anek Devanagari"; src: url("/assets/fonts/anek-devanagari.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap;
  unicode-range: U+0900-097F, U+1CD0, U+200C-200D, U+25CC, U+A8FB; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; size-adjust: 104%; }
@font-face { font-family: "Anek Tamil"; src: url("/assets/fonts/anek-tamil.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap;
  unicode-range: U+0964-0965, U+0B80-0BFF, U+200C-200D, U+25CC; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Anek Telugu"; src: url("/assets/fonts/anek-telugu.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap;
  unicode-range: U+0964-0965, U+0C00-0C7F, U+200C-200D, U+25CC; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; size-adjust: 102%; }
@font-face { font-family: "Anek Names"; src: url("/assets/fonts/anek-devanagari-name.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0900-097F; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; size-adjust: 104%; }
@font-face { font-family: "Anek Names"; src: url("/assets/fonts/anek-tamil-name.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0B80-0BFF; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Anek Names"; src: url("/assets/fonts/anek-telugu-name.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0C00-0C7F; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; size-adjust: 102%; }
@font-face { font-family: "Anek Names"; src: url("/assets/fonts/anek-malayalam-name.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0D00-0D7F; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Anek Names"; src: url("/assets/fonts/anek-kannada-name.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0C80-0CFF; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Anek Names"; src: url("/assets/fonts/anek-bangla-name.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0980-09FF; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Anek Names"; src: url("/assets/fonts/anek-gujarati-name.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0A80-0AFF; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: "Anek Names"; src: url("/assets/fonts/anek-gurmukhi-name.woff2?v=202611301723") format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0A00-0A7F; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }
/* Anek Latin runs about 6% narrower than Roboto/Arial; same vertical metrics as the web font (90% / 20%). */
@font-face { font-family: "Anek Fallback"; src: local("Roboto"), local("Arial"), local("Helvetica Neue"); size-adjust: 94.3%; ascent-override: 95.4%; descent-override: 21.2%; line-gap-override: 0%;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2027, U+20B9; }
:root {
  --bg: #0A0E19; --bg-1: #0F1424; --bg-2: #141A30; --bg-3: #1E2847;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --text: #F3F5FA; --text-2: #B7BFD3; --text-3: #8B95AE;
  --gold: #D2AD67; --gold-hi: #EED18B; --gold-lo: #A88443; --on-gold: #17110A;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --gutter: 16px; --max: 1760px; --hdr-h: 56px;
  --n: 2.7; --tn: 2.3; --gap: 10px; --gcol: 100px;       /* rail columns, tile columns, gap, grid min column */
  --tight: 1.08; --track: -.02em; --caps: .12em; --lh: 1.5;   /* Latin metrics; relaxed for Indic scripts below */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --zari: linear-gradient(90deg, rgba(210, 173, 103, 0), rgba(238, 209, 139, .55) 22%, rgba(210, 173, 103, .9) 50%, rgba(238, 209, 139, .55) 78%, rgba(210, 173, 103, 0));
  --f-sys: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Telugu",
    "Nirmala UI", "Kohinoor Devanagari", "Tamil Sangam MN", "Kohinoor Telugu", sans-serif;
  --font: "Anek", "Anek Fallback", var(--f-sys);
  --font-native: "Anek", "Anek Names", "Anek Fallback", var(--f-sys);     /* language names written in their own script */
}
/* Script-aware type. Indic scripts carry marks above and below the letters: no capitals, no tracking, more leading,
   and never a mid-word break. Tamil and Telugu words run long, so headings there are a step lighter in size. */
:root:lang(hi) { --font: "Anek", "Anek Devanagari", "Anek Fallback", var(--f-sys); --font-native: "Anek", "Anek Devanagari", "Anek Names", "Anek Fallback", var(--f-sys); --tight: 1.34; --track: 0; --caps: 0; --lh: 1.6; }
:root:lang(ta) { --font: "Anek", "Anek Tamil", "Anek Fallback", var(--f-sys); --font-native: "Anek", "Anek Tamil", "Anek Names", "Anek Fallback", var(--f-sys); --tight: 1.34; --track: 0; --caps: 0; --lh: 1.6; }
:root:lang(te) { --font: "Anek", "Anek Telugu", "Anek Fallback", var(--f-sys); --font-native: "Anek", "Anek Telugu", "Anek Names", "Anek Fallback", var(--f-sys); --tight: 1.42; --track: 0; --caps: 0; --lh: 1.65; }
:root.lite { --font: var(--f-sys); --font-native: var(--f-sys); }           /* data saver / 2G: system fonts, nothing to download */
:root.slow { --font: "Anek", "Anek Fallback", var(--f-sys); --font-native: "Anek", "Anek Names", "Anek Fallback", var(--f-sys); }   /* 3G: skip the 50-170 KB Indic font, the phone's own is used */
:root:lang(hi) .kicker, :root:lang(ta) .kicker, :root:lang(te) .kicker { font-size: 15px; }
:root:lang(hi) :is(h1, h2, .btn, .chip, .tabs a, strong), :root:lang(ta) :is(h1, h2, .btn, .chip, .tabs a, strong), :root:lang(te) :is(h1, h2, .btn, .chip, .tabs a, strong) { word-break: keep-all; overflow-wrap: break-word; hyphens: none; }
.native { font-family: var(--font-native); letter-spacing: 0; text-transform: none; }
@media (min-width: 600px)  { :root { --gutter: 24px; --n: 4.6; --tn: 3.4; --gap: 12px; --gcol: 132px; } }
@media (min-width: 768px)  { :root { --gutter: 32px; --n: 5.6; --tn: 4.4; --hdr-h: 64px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --n: 6.6; --tn: 5.4; --gap: 16px; --gcol: 152px; } }
@media (min-width: 1280px) { :root { --gutter: 64px; --n: 7.6; --tn: 6.4; --hdr-h: 72px; --gcol: 164px; } }
@media (min-width: 1600px) { :root { --n: 8.6; --tn: 8; --gcol: 172px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
  font: 500 16px/var(--lh) var(--font); color: var(--text); text-rendering: optimizeLegibility; background: var(--bg); -webkit-font-smoothing: antialiased; }
main { flex: 1; outline: 0; }
main:empty { min-height: 100vh; }      /* before the first render the footer must not sit in the first viewport (it would paint, then jump: CLS 0.62) */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
::selection { background: rgba(210, 173, 103, .35); }
.sprite { position: absolute; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 24px; height: 24px; flex: none; }
.i-sm { width: 16px; height: 16px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 8px 16px; border-radius: var(--r-m); background: var(--gold); color: var(--on-gold); font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }
.noscript { padding: 96px 24px; text-align: center; line-height: 2; }
.noscript a { color: var(--gold-hi); text-decoration: underline; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
main:focus, h1[tabindex="-1"]:focus { outline: 0; }      /* focus is moved here on route change so the next Tab starts in the new view */

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px;
  border: 1px solid transparent; border-radius: var(--r-m); font: 600 15px/1.25 var(--font); color: var(--text); text-align: center;
  cursor: pointer; transition: transform .2s var(--ease), filter .2s, background-color .2s, border-color .2s; }
.btn .i { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 52px; padding: 10px 28px; font-size: 16px; border-radius: 12px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 8px; }
.btn-sm .i { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 48%, var(--gold-lo)); color: var(--on-gold); box-shadow: 0 8px 24px -8px rgba(210, 173, 103, .5); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-glass { background: rgba(255, 255, 255, .1); border-color: var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }
.btn-outline { border-color: rgba(210, 173, 103, .55); color: var(--gold-hi); background: rgba(210, 173, 103, .06); }
.btn-outline:hover { background: rgba(210, 173, 103, .14); }
.btn-ghost { background: none; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.btn-sm, .link, .dot { position: relative; }
.btn-sm::after, .link::after { content: ""; position: absolute; inset: -6px -4px; }

.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color .2s; }
.iconbtn:hover { background: rgba(255, 255, 255, .12); }
.link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--gold-hi); font-weight: 600; font-size: 14px; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .16); border-top-color: var(--gold); animation: spin .8s linear infinite; }

/* ── header ── */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr-h); padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(10, 14, 25, .82), rgba(10, 14, 25, 0)); transition: background-color .3s, box-shadow .3s; }
/* Scrolled: 92% navy over a strong blur — nothing behind the bar is legible through it. Without backdrop-filter
   support, or in data-saver mode (blur is costly on low-end GPUs), the bar is simply solid. */
.hdr.solid { background: rgba(10, 14, 25, .92); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); box-shadow: 0 1px 0 var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hdr.solid, .tabs { background: #0A0E19 !important; } }
.lite .hdr.solid, .lite .tabs { background: #0A0E19; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr-in { height: 100%; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 40px); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word { font-size: 20px; font-weight: 700; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current] { color: var(--text); font-weight: 600; }
.nav a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px; border-radius: 1px; background: var(--gold); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-search { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text); transition: background-color .2s; }
.hdr-search:hover { background: rgba(255, 255, 255, .12); }
.hdr-search .i, .lang-btn .i { width: 22px; height: 22px; }
.hdr-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 9px; font-family: var(--font-native); border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); }
.lang-btn span, .lang-btn .i-sm { display: none; }
.lang-btn .i-sm { width: 14px; height: 14px; color: var(--text-3); }
.lang-menu ul { margin: 0; padding: 0; list-style: none; }
.lang-menu-h { padding: 6px 12px 4px; font-size: 12px; color: var(--text-3); }
.lang-menu .lang-menu-more { justify-content: flex-start; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; font-size: 14px; color: var(--gold-hi); }
.lang-menu-more .i { width: 20px; height: 20px; }
.lang-menu [data-loc] { font-family: var(--font-native); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 232px; margin: 0; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 48px rgba(0, 0, 0, .5); animation: pop .18s var(--ease); }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font-size: 15px; text-align: start; cursor: pointer; }
.lang-menu button:hover { background: rgba(255, 255, 255, .08); }
.lang-menu button[aria-current="true"] { color: var(--gold-hi); font-weight: 600; }
.lang-menu button[aria-current="true"]::after { content: ""; width: 6px; height: 11px; margin-right: 4px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.hdr-dl .dl-long { display: none; }
.hdr-dl { background: rgba(10, 14, 25, .55); transition: opacity .2s, visibility 0s, background-color .2s, border-color .2s; }      /* outline, not gradient: the page's primary button keeps the only gold fill */
.hdr-dl:hover { background: rgba(210, 173, 103, .16); }
@media (max-width: 379px) { .hdr-dl { padding-inline: 10px; gap: 6px; } }      /* 360 px: "Free app" is a word longer than the old label, Tamil most of all */
@media (max-width: 339px) { .hdr-dl { padding-inline: 10px; } .hdr-dl .dl-short { display: none; } }      /* 320 px: icon only (the button keeps its aria-label) */
@media (max-width: 767px) {      /* phones: once the hero has scrolled away the bottom app bar is the download button — never both */
  .past-hero.has-bar .hdr-dl { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, visibility 0s .2s; }
}
@media (min-width: 1024px) {
  .lang-btn { padding: 0 12px; }
  .lang-btn span, .lang-btn .i-sm { display: block; }
  .hdr-dl .dl-long { display: inline; } .hdr-dl .dl-short { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {      /* tablets and landscape phones: Tamil/Telugu nav labels are long */
  .hdr-in { gap: 12px; } .nav { gap: 0; } .nav a { padding: 8px 9px; font-size: 14px; } .nav a[aria-current]::after { left: 9px; right: 9px; }
  :root:lang(ta) .brand-word, :root:lang(te) .brand-word { display: none; }
}
@media (min-width: 1280px) {
  .hdr-search { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 200px; padding: 0 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 14px; }
  .hdr-search .i { width: 18px; height: 18px; }
  .hdr-search span { position: static; width: auto; height: auto; clip-path: none; }
}

/* ── phone: bottom tab bar (portrait only; landscape keeps the top nav) ── */
.tabs { display: none; }
@media (max-width: 767px) and (orientation: portrait) {
  .nav, .hdr-search { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 50; padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10, 14, 25, .92); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); box-shadow: 0 -1px 0 var(--line); }
  .tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 2px; font-size: 11px; line-height: 1.3; color: var(--text-3); }
  .tabs a[aria-current] { color: var(--gold-hi); }
  .tabs .i { width: 22px; height: 22px; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) and (orientation: landscape) { .brand-word { display: none; } .nav a { padding: 8px 10px; font-size: 14px; } .nav a[aria-current]::after { left: 10px; right: 10px; } }

/* ── shared bits ── */
.kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: var(--caps); text-transform: uppercase; color: var(--gold); }
.hero .kicker > span:first-child, .detail .kicker > span:first-child { padding: 2px 10px; border-radius: 999px; background: rgba(6, 9, 18, .78); color: var(--gold-hi); line-height: 1.6; }
.badge { padding: 2px 8px; border-radius: 4px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: calc(var(--caps) / 2); text-transform: uppercase; }
.meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-size: 15px; color: var(--text-2); }
.meta > * { display: inline-flex; align-items: center; }
.meta > * + *::before { content: ""; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: var(--text-3); }
.rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.rate .i { width: 14px; height: 14px; color: var(--gold); }
.meta > .rate + *::before, .meta > * + .rate::before { margin-right: 6px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* the reassurance under the primary button: free forever to watch & download · no phone number · no sign-up. One line on wide screens,
   two short lines on phones (the first item takes a line of its own); on the same dark pill as the kicker so it reads over any artwork */
.assure { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; width: max-content; max-width: min(760px, calc(100vw - 2 * var(--gutter))); margin: 12px 0 0; padding: 4px 12px; list-style: none; border-radius: 16px; background: rgba(6, 9, 18, .78);
  font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--text); white-space: nowrap; }
.assure li { display: inline-flex; align-items: center; gap: 4px; }
.assure .i { width: 14px; height: 14px; flex: none; color: var(--gold-hi); }
:root:lang(ta) .assure { font-size: 13px; }      /* Tamil is the longest: a step smaller keeps it on one line beside the artwork */
.when-phone { display: none; }
@media (max-width: 767px) { .when-wide { display: none; } .when-phone { display: inline; } }
.sk, .art { background: linear-gradient(160deg, var(--bg-3), var(--bg-2) 55%, var(--bg-1)); }
.sk { position: relative; overflow: hidden; }
.sk::after, .art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .07) 50%, transparent 70%) 0 0 / 200% 100%; animation: shimmer 1.6s linear infinite; }
.art::before { animation-play-state: paused; }                 /* posters shimmer only while their image is actually loading */
.art.loading::before { animation-play-state: running; }
.art.failed::before, .art:has(img.ok)::before { animation: none; opacity: 0; }
.cert { padding: 0 6px; border: 1px solid var(--line-2); border-radius: 4px; font-size: .85em; font-weight: 600; line-height: 1.55; color: var(--text); white-space: nowrap; }
.sk-line { display: block; width: 160px; height: 14px; margin: 6px 0; border-radius: 4px; }
.sk-line.w100 { width: 100%; } .sk-line.w60 { width: 60%; }
.top-pad { height: calc(var(--hdr-h) + 24px); }
.view { animation: fade .35s ease; }

/* ── hero ── */
.hero { position: relative; height: clamp(480px, 80vh, 820px); overflow: hidden; isolation: isolate; touch-action: pan-y; }
.hero-media, .hero-slide, .hero-scrim { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity .9s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 18%; opacity: 0; transition: opacity .6s ease; }
.hero-slide img.ok { opacity: 1; }
.hero-slide.on img { animation: drift 9s ease-out both; }
/* The first slide is the page's largest paint: it appears the instant it has loaded — no fade, no drift — so the
   browser records LCP when the image arrives, not when the carousel first advances. */
.hero-slide:first-child img { opacity: 1; transition: none; animation: none; }
.hero-slide.noimg { background: linear-gradient(140deg, var(--bg-3), var(--bg-1) 70%); }
.hero-scrim { background:
  radial-gradient(120% 100% at 68% 34%, rgba(4, 6, 12, 0) 52%, rgba(4, 6, 12, .42) 100%),
  linear-gradient(90deg, rgba(10, 14, 25, .94) 0%, rgba(10, 14, 25, .62) 30%, rgba(10, 14, 25, 0) 62%),
  linear-gradient(0deg, var(--bg) 0%, rgba(10, 14, 25, .55) 20%, rgba(10, 14, 25, 0) 46%),
  linear-gradient(180deg, rgba(10, 14, 25, .5) 0%, rgba(10, 14, 25, 0) 20%); }
.hero-in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(32px, 7vh, 80px); }
.hero-copy { max-width: min(620px, 100%); }
.hero-copy.in > * { animation: rise .6s var(--ease) both; }
.hero-copy.in > :nth-child(2) { animation-delay: .05s; } .hero-copy.in > :nth-child(3) { animation-delay: .1s; }
.hero-copy.in > :nth-child(4) { animation-delay: .15s; } .hero-copy.in > :nth-child(5) { animation-delay: .2s; } .hero-copy.in > :nth-child(6) { animation-delay: .25s; }
.hero-title a { padding-block: 6px; }
.hero-title { margin: 6px 0 10px; padding-block: 6px max(6px, .14em); font-size: clamp(32px, 4.4vw, 68px); font-weight: 800; line-height: var(--tight); letter-spacing: var(--track); text-wrap: balance;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-audio { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.hero-audio > .i { color: var(--text-3); }
.audio-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.audio-chips i { font-style: normal; color: var(--text-3); }
.audio-chips .native { font-weight: 600; }
.multi { margin-left: 2px; padding: 1px 8px; border: 1px solid rgba(210, 173, 103, .4); border-radius: 999px; color: var(--gold-hi); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
/* film grain + vignette: a static layer, no blend modes (cheap on low-end phones) */
.hero-grain { position: absolute; inset: 0; pointer-events: none; opacity: .09; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 92%); mask-image: linear-gradient(180deg, #000 55%, transparent 92%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.lite .hero-grain { display: none; }
.hero.no-auto .dot.on i::after { animation: none; transform: none; }       /* slow connection: slides change only when asked */
.hero .cta { margin-top: 28px; }
.hero-dots { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.hero-pause { display: grid; place-items: center; width: 44px; height: 44px; margin: -12px 0 -12px 4px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; transition: background-color .2s, color .2s; }
.hero-pause:hover { background: rgba(255, 255, 255, .12); color: var(--text); }
.hero-pause .i { width: 18px; height: 18px; }
.hero-pause .when-stopped, .hero.stopped .hero-pause .when-running { display: none; }
.hero.stopped .hero-pause .when-stopped { display: block; }
.dot::after { content: ""; position: absolute; inset: -12px 0; }
.dot { width: 24px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .4s var(--ease); }
.dot.on { width: 48px; }
.dot i { display: block; position: relative; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .3); }
.dot i::after { content: ""; position: absolute; inset: 0; background: var(--gold-hi); transform: scaleX(0); transform-origin: 0 50%; }
.dot.on i::after { animation: dotfill 7s linear forwards; }       /* transform only: runs on the compositor */
.hero.paused .dot.on i::after, .hero.stopped .dot.on i::after, .hero.off .dot.on i::after, .hero.off .hero-slide.on img { animation-play-state: paused; }
.hero-arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-arrow { display: grid; place-items: center; position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
    background: rgba(10, 14, 25, .55); cursor: pointer; opacity: 0; transition: opacity .25s, background-color .2s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }
  .hero:hover .hero-arrow, .hero-arrow:focus-visible { opacity: 1; }
  .hero-arrow:hover { background: rgba(30, 40, 71, .9); }
}
@media (max-width: 600px) and (orientation: portrait) {
  .hero { height: min(150vw, 78vh); min-height: 460px; }
  .hero-slide img { object-position: 50% 0; }
  .hero-scrim { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 14, 25, .96) 20%, rgba(10, 14, 25, .62) 42%, rgba(10, 14, 25, 0) 66%), linear-gradient(180deg, rgba(10, 14, 25, .6), rgba(10, 14, 25, 0) 18%); }
  .hero-in { padding-bottom: 20px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; max-width: none; }
  .hero-title { margin: 2px 0 4px; font-size: 30px; -webkit-line-clamp: 2; }
  .hero .meta { justify-content: center; font-size: 14px; }
  .hero-audio { font-size: 13px; }
  .hero .cta { width: 100%; margin-top: 20px; flex-wrap: nowrap; gap: 10px; }
  .hero .cta .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; font-size: 15px; }
  .hero-dots { justify-content: center; margin-top: 16px; padding-left: 48px; }      /* the pause button sits to the right; the padding keeps the dots centred */
  .hero.hero-pitch { height: min(130vw, 63vh); min-height: 440px; }      /* home: the promise strip follows, and the first rail must still show above the tab bar */
  .assure, :root:lang(ta) .assure { justify-content: center; gap: 0 10px; margin-top: 10px; border-radius: 14px; font-size: 12px; }
  .assure li:first-child { flex: 0 0 100%; justify-content: center; }
  .assure .i { width: 13px; height: 13px; }
  .detail .assure { margin-inline: auto; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero { height: calc(100vh - 44px); height: calc(100dvh - 44px); min-height: 300px; }      /* the first rail's heading peeks in under the hero */
  .hero-in { padding-bottom: 12px; }
  .hero-title { margin: 0 0 2px; font-size: clamp(24px, 4vw, 34px); -webkit-line-clamp: 2; }
  .hero-audio { display: none; }
  .hero .cta { margin-top: 16px; } .hero .btn-lg { min-height: 44px; padding-block: 6px; font-size: 15px; } .hero .assure { margin-top: 8px; }
  .hero-dots { margin-top: 12px; }
}

/* ── promise strip ── (home, right under the hero; its button is outline — the hero's is the one gold fill) */
.promises { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.8fr) auto; align-items: center; gap: 16px 32px;
  padding: 16px 28px; border: 1px solid var(--line); border-radius: var(--r-l); background: linear-gradient(120deg, rgba(30, 40, 71, .6), rgba(20, 26, 48, .4)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 16px 40px -24px rgba(0, 0, 0, .6); }
.promises::before { content: ""; position: absolute; top: -1px; left: 12%; right: 12%; height: 1px; background: var(--zari); }      /* zari hairline */
.plats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.plat { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.plat.on { border-color: rgba(210, 173, 103, .4); background: rgba(210, 173, 103, .12); color: var(--gold-hi); }
.plat.soon { border: 1px dashed var(--line-2); color: var(--text-3); font-weight: 500; }
.plat .i { width: 14px; height: 14px; }
.eyebrow { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gold); }
.promises h2 { margin-top: 2px; font-size: 20px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.promises-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.promises-list li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.promises-list p { min-width: 0; }
.promise-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(210, 173, 103, .12); color: var(--gold-hi); }
.promises-list strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.promise-sub { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.promises .btn { white-space: nowrap; }
@media (max-width: 1279px) { .promises { grid-template-columns: minmax(0, 1fr) auto; } .promises-list { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 1599px) {      /* Tamil runs long: below 1600 px the strip uses the short labels (as phones do) on its button so it stays one compact row */
  :root:lang(ta) .promises .when-wide { display: none; } :root:lang(ta) .promises .when-phone { display: inline; }
  :root:lang(ta) .promises { column-gap: 24px; }
}
@media (min-width: 1280px) { :root:lang(ta) .promises { grid-template-columns: minmax(280px, .95fr) minmax(0, 3.3fr) auto; } :root:lang(ta) .promises h2 { font-size: 16px; } :root:lang(ta) .promises-list { gap: 16px; } :root:lang(ta) .promise-ic { width: 32px; height: 32px; } :root:lang(ta) .promise-ic .i { width: 20px; height: 20px; } }
@media (max-width: 767px) {      /* phones: a tight card — headline and button on one row, then one line per promise (the explanations are for wider screens) */
  .promises-wrap { margin-top: -16px; }
  .promises { gap: 8px 12px; padding: 10px 12px 12px 14px; }
  .promises .eyebrow { display: none; } .promises h2 { margin: 0; font-size: 15px; line-height: 1.35; }
  .promises .btn { min-height: 36px; padding: 6px 12px; gap: 6px; font-size: 13px; border-radius: 8px; } .promises .btn .i { width: 16px; height: 16px; }
  .promises-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .promises-list li { align-items: flex-start; gap: 8px; }
  .promise-ic { width: 18px; height: 18px; margin-top: 1px; background: none; } .promise-ic .i { width: 16px; height: 16px; }
  .promises-list strong { font-size: 13px; line-height: 1.45; } .promise-sub { display: none; }
  /* Tamil runs long (the headline takes three lines): it keeps the full width and the strip's own button is dropped —
     the hero's button is right above it, and the app bar takes over as soon as the hero is gone (watchCta in app.js) */
  :root:lang(ta) .promises { grid-template-columns: minmax(0, 1fr); } :root:lang(ta) .promises h2 { font-size: 15px; }
  :root:lang(ta) .promises .btn { display: none; }
}
@media (max-width: 339px) { .appbar .brand-mark { display: none; } }
@media (max-width: 339px) and (orientation: portrait) { .hero.hero-pitch { min-height: 500px; } }      /* 320 px: the copy needs the room */
@media (max-width: 339px) { .assure, :root:lang(ta) .assure { gap: 0 8px; padding-inline: 8px; font-size: 11px; white-space: normal; text-align: center; } }      /* 320 px: the first line may wrap */
@media (max-width: 767px) and (orientation: landscape) { .promises-wrap { margin-top: 0; } }

/* ── rails + cards ── */
/* the slim row under the hero that replaced the first-visit language picker */
.langrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-block: -20px calc(clamp(28px, 3.6vw, 48px) * -1 + 12px); font-size: 14px; line-height: 1.5; color: var(--text-3); }
.langrow p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-width: 0; }
.langrow-v { display: inline-flex; flex-wrap: wrap; gap: 0 8px; font-weight: 600; color: var(--text); }
.langrow-v i, .foot-clangs-v i { font-style: normal; color: var(--text-3); }
.langrow .link { min-height: 44px; padding-inline: 4px; }
.rails { display: flex; flex-direction: column; gap: clamp(28px, 3.6vw, 48px); padding-block: clamp(28px, 3.6vw, 48px) 72px; }
.rail { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.rail-head { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.rail-head h2 { min-width: 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; line-height: 1.3; letter-spacing: calc(var(--track) / 2); }
.rail-more { display: inline-flex; align-items: center; gap: 2px; flex: none; min-height: 44px; margin-block: -12px; padding-inline: 8px 4px; margin-inline-end: -4px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color .2s; }
.rail-more:hover { color: var(--gold-hi); }
.rail-body { position: relative; margin-inline: calc(var(--gutter) * -1); }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); gap: var(--gap);
  margin-block: -16px; padding: 16px var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.rail-track::-webkit-scrollbar { display: none; }
.card { display: block; position: relative; min-width: 0; border-radius: var(--r-m); scroll-snap-align: start; }
.art { display: block; position: relative; aspect-ratio: 2 / 3; overflow: hidden; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
/* Branded fallback tile: shown when a title has no poster on this origin (or the file failed). Title set in type. */
.art-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px 10px 30px; text-align: center; visibility: hidden; }
.art.noimg .art-ph { visibility: visible; }
.art.noimg { background: linear-gradient(160deg, #26325C, var(--bg-2) 58%, var(--bg-1)); box-shadow: inset 0 0 0 1px rgba(210, 173, 103, .3); }
.art.noimg::before { display: none; }
.art-ph-mark { width: 30px; height: 30px; flex: none; opacity: .95; }
.art-ph b { max-width: 100%; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.detail-poster .art-ph b { font-size: clamp(14px, 1.4vw, 20px); } .detail-poster .art-ph-mark { width: 40px; height: 40px; }
.prompt-art .art-ph { padding: 4px; } .prompt-art .art-ph b { display: none; } .prompt-art .art-ph-mark { width: 24px; height: 24px; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.art img.ok { opacity: 1; }
.art .rate { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: var(--r-s); background: rgba(6, 9, 18, .78); font-size: 12px; line-height: 1.5; }
.art .rate .i { width: 12px; height: 12px; }
.art .badge { position: absolute; top: 8px; left: 8px; }
.art::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .16); }   /* crisp inner highlight over the artwork */
.lchip { position: absolute; left: 6px; bottom: 6px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 12px); padding: 1px 7px; border-radius: var(--r-s);
  background: rgba(6, 9, 18, .8); font-size: 11px; font-weight: 600; line-height: 1.6; color: var(--text); white-space: nowrap; transition: opacity .2s; }
.lchip b { font-weight: 600; color: var(--gold-hi); }
.card:active .art { transform: scale(.98); }
.card .art { transition: transform .15s var(--ease), box-shadow .28s; }
.sk-cap { height: 18px; }
@media (max-width: 599px) { .art .rate { top: 6px; right: 6px; padding: 1px 5px; font-size: 11px; } .art .rate .i { width: 10px; height: 10px; } .art .badge { top: 6px; left: 6px; padding: 1px 6px; font-size: 10px; } }
.card-cap { display: block; margin-top: 8px; overflow: hidden; font-size: 13px; line-height: 1.4; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.card-hov { display: none; }
.rail-btn { display: none; }
@media (hover: hover) and (pointer: fine) {
  .card { transition: transform .28s var(--ease); }
  .card:hover, .card:focus-visible { transform: scale(1.06); z-index: 2; }
  .card:hover .art, .card:focus-visible .art { box-shadow: 0 16px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .22); }
  /* hover: a strong bottom scrim carrying year · genre. The title stays under the card (never over the poster's own
     lettering) and the language chip stays where it is. */
  .card-hov { display: block; position: absolute; inset: auto 0 0 0; z-index: 1; padding: 56px 8px 32px; background: linear-gradient(0deg, rgba(6, 9, 18, .96), rgba(6, 9, 18, .82) 45%, rgba(6, 9, 18, 0));
    opacity: 0; transition: opacity .25s; }
  .card-hov i { display: block; font-size: 12px; font-style: normal; line-height: 1.4; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .card:hover .card-hov, .card:focus-visible .card-hov { opacity: 1; }
  .card:hover .card-cap, .card:focus-visible .card-cap { color: var(--text); }
  .rail-btn { display: grid; place-items: center; position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%;
    background: rgba(15, 20, 36, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); cursor: pointer; opacity: 0; transition: opacity .2s, background-color .2s, border-color .2s; }
  .rail-btn.prev { left: max(8px, calc(var(--gutter) - 22px)); } .rail-btn.next { right: max(8px, calc(var(--gutter) - 22px)); }
  .rail:hover .rail-btn, .rail-btn:focus-visible { opacity: 1; }
  .rail-btn:hover { background: var(--bg-3); border-color: rgba(210, 173, 103, .6); }
  .rail-body.at-start .prev, .rail-body.at-end .next { opacity: 0 !important; pointer-events: none; }
}
@media (min-width: 1024px) {
  .rail-track { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); }
}
.rail-tiles .rail-track { grid-auto-columns: calc((100% - (var(--tn) - 1) * var(--gap)) / var(--tn)); }
.ltile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 96px; padding: 16px 8px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: linear-gradient(140deg, var(--bg-3), var(--bg-2) 70%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); text-align: center; scroll-snap-align: start; transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
button.ltile { width: 100%; font: inherit; color: inherit; cursor: pointer; }
.ltile:hover { border-color: rgba(210, 173, 103, .6); transform: translateY(-2px); }
.ltile:active { transform: scale(.98); }
.ltile-native { font-size: 22px; font-weight: 700; line-height: 1.5; }
.ltile-name { font-size: 13px; line-height: 1.4; color: var(--text-3); }
.ltile-check { display: none; }
.ltile[aria-pressed="true"] { border-color: var(--gold); background: linear-gradient(140deg, rgba(210, 173, 103, .26), rgba(30, 40, 71, .9) 62%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px var(--gold); }
.ltile[aria-pressed="true"] .ltile-native { color: var(--gold-hi); }
.ltile[aria-pressed="true"] .ltile-check { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--on-gold); animation: pop .18s var(--ease); }
.ltile-check .i { width: 13px; height: 13px; }

/* ── page heads, chips, grids, search ── */
.page-head { padding-top: calc(var(--hdr-h) + clamp(24px, 4vw, 48px)); }
.page-head h1 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: var(--tight); letter-spacing: var(--track); }
.page-head h1 small { margin-left: 8px; font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--text-3); }
.grid-count { min-height: 20px; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--text-3); }
.chips { display: flex; gap: 8px; margin: 20px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.mylangs { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; max-width: 760px; margin-top: 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-m);
  background: linear-gradient(120deg, rgba(30, 40, 71, .6), rgba(20, 26, 48, .4)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.mylangs-h { font-size: 12px; color: var(--text-3); }
.mylangs-v { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 16px; font-weight: 600; }
.mylangs-v i { font-style: normal; color: var(--text-3); }
.mylangs .btn { flex: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; flex: none; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--text-2); transition: border-color .2s, color .2s; }
.chip:hover { border-color: rgba(210, 173, 103, .6); color: var(--text); }
.chip[aria-current="true"] { border-color: transparent; background: var(--gold); color: var(--on-gold); font-weight: 600; }
.gridbox { padding-block: 32px 72px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--gcol), 1fr)); gap: 24px var(--gap); }
.grid-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 20px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; line-height: 1.3; }
.grid-title .grid-count { margin: 0; }
.grid-foot { display: grid; place-items: center; min-height: 32px; padding-top: 32px; }
.grid-foot:empty { display: none; }
.search-head { padding-bottom: 0; }
.searchbar { display: flex; align-items: center; gap: 12px; max-width: 760px; height: 56px; padding: 0 8px 0 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); color: var(--text-3); transition: border-color .2s, box-shadow .2s; }
.searchbar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(210, 173, 103, .14); }
.searchbar input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 18px/1.4 var(--font); }
.searchbar input::placeholder { color: var(--text-3); font-weight: 400; }
.searchbar input::-webkit-search-cancel-button { display: none; }

/* ── states ── */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: min(62vh, 640px); padding: clamp(48px, 12vh, 120px) 24px; text-align: center; }      /* tall enough that the footer does not ride up under a short message */
.state-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: 50%; background: rgba(210, 173, 103, .1); color: var(--gold-hi); }
.state-ic .i { width: 28px; height: 28px; }
.state h1, .state h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.35; text-wrap: balance; overflow-wrap: break-word; }
.page-head + .state { padding-top: 40px; }
.state p { max-width: 44ch; color: var(--text-3); }
.state .btn { margin-top: 20px; }
.grid-foot .state { min-height: 0; padding-block: 24px; }
#searchOut.is-empty .state, .state + .gridbox, .top-pad + .state:has(+ .gridbox) { min-height: 0; }
#searchOut.is-empty .state { padding-block: 24px 40px; }
.top-pad + .state:has(+ .gridbox) { padding-block: 40px 8px; }

/* ── detail ── */
.detail { position: relative; isolation: isolate; }
.detail-bg { position: absolute; inset: 0 0 auto 0; z-index: -1; height: min(84vh, 800px); overflow: hidden; }
.detail-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; opacity: 0; transition: opacity .7s ease; }
.detail-bg img.ok { opacity: 1; }
.detail-bg.is-poster img { filter: blur(48px) saturate(1.3); transform: scale(1.4); }
.detail-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10, 14, 25, .96) 0%, rgba(10, 14, 25, .78) 38%, rgba(10, 14, 25, .3) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(10, 14, 25, .7) 28%, rgba(10, 14, 25, 0) 60%); }
.detail-in { padding-top: calc(var(--hdr-h) + clamp(16px, 8vh, 96px)); padding-bottom: 16px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 0 0 12px -6px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: rgba(6, 9, 18, .66); font-size: 14px; font-weight: 500; color: var(--text); cursor: pointer; transition: background-color .2s, color .2s; }
.back:hover { background: rgba(6, 9, 18, .9); }
.back .i { width: 20px; height: 20px; }
.detail-grid { display: grid; grid-template-columns: clamp(160px, 19vw, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.detail-poster { box-shadow: 0 24px 64px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line-2); border-radius: var(--r-l); }
.detail-info { max-width: 800px; }
.detail-info h1 { margin: 12px 0 14px; font-size: clamp(28px, 3.6vw, 54px); font-weight: 800; line-height: var(--tight); letter-spacing: var(--track); text-wrap: balance; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.detail .cta { margin-top: 28px; }
.detail-desc { max-width: 68ch; margin-top: 28px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.facts { display: grid; gap: 10px; margin: 24px 0 0; }
.facts div { display: grid; grid-template-columns: minmax(88px, max-content) 1fr; gap: 16px; font-size: 14px; }
.facts dt { color: var(--text-3); } .facts dd { margin: 0; color: var(--text); }
/* share: the phone's own sheet first (where there is one), then three equal labelled chips */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; }
.share-h { font-size: 13px; color: var(--text-3); }
.share-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1 1 280px; max-width: 440px; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .05); font: 600 13px/1.25 var(--font); color: var(--text); text-align: center; cursor: pointer; transition: background-color .2s, border-color .2s, transform .15s var(--ease); }
.share-btn .i { width: 18px; height: 18px; }
.share-btn:hover { background: rgba(255, 255, 255, .12); }
.share-btn:active { transform: scale(.97); }
.share-main { flex: none; padding-inline: 18px; font-size: 14px; background: rgba(255, 255, 255, .1); }
@media (max-width: 600px) { .share-main, .share-row { flex: 1 1 100%; max-width: none; } .share-h { flex: 1 1 100%; } .share-btn { padding-inline: 6px; } }
.eps { padding-top: clamp(28px, 4vw, 48px); }
.eps-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: linear-gradient(120deg, rgba(30, 40, 71, .6), rgba(20, 26, 48, .4)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.eps-box h2 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; line-height: 1.35; }
.eps-note { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.eps ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.eps li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg-1); font-size: 15px; }
.ep-n { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--bg-3); color: var(--gold-hi); font-size: 13px; font-weight: 600; }
.ep-t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.detail-bg.noimg { background: radial-gradient(90% 120% at 80% 0%, rgba(30, 40, 71, .9), rgba(10, 14, 25, 0) 70%); }
@media (max-width: 600px) and (orientation: portrait) {
  .detail-bg { height: 360px; }
  .detail-bg::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 14, 25, .82) 34%, rgba(10, 14, 25, .2) 100%); }
  .detail-in { padding-top: calc(var(--hdr-h) + 104px); }
  .detail-grid { display: block; }
  .detail-poster { float: left; width: 112px; margin: 0 16px 8px 0; border-radius: var(--r-m); }
  .detail-info h1 { margin: 6px 0 8px; font-size: 24px; }
  .detail-info .meta { font-size: 13px; } .detail-info .meta > * + *::before { margin: 0 7px; }
  .tags { margin-top: 10px; gap: 6px; } .tags li { padding: 2px 10px; font-size: 12px; }
  .detail .cta { clear: both; flex-direction: column; padding-top: 12px; margin-top: 0; }
  .detail .share { margin-top: 16px; }
  .detail-desc { margin-top: 24px; font-size: 15px; }
  .eps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eps li { padding: 10px 12px; gap: 10px; font-size: 14px; }
  .eps-box { padding: 16px; } .eps-box .btn { width: 100%; }
}
@media (max-height: 500px) and (orientation: landscape) { .detail-in { padding-top: calc(var(--hdr-h) + 8px); } .detail-info h1 { font-size: 28px; margin: 8px 0; } .detail .cta { margin-top: 16px; } .detail .btn-lg { min-height: 44px; padding: 6px 18px; font-size: 15px; } }

/* ── dialogs: download prompt (modal + end of preview) ── */
/* A dialog is never taller than the screen: the card is capped to the viewport and its content scrolls inside it,
   so nothing is cut off in landscape (844×390) and the close button is always reachable. */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; padding: 16px; overflow: hidden; background: rgba(4, 6, 12, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade .2s ease; }
.modal-card { position: relative; display: flex; flex-direction: column; width: min(720px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; overflow: hidden; border: 1px solid var(--line-2); border-radius: 20px;
  background: linear-gradient(155deg, #1B2444, var(--bg-1) 62%); box-shadow: 0 32px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08); animation: pop .2s var(--ease); }
.modal-card::before { content: ""; position: absolute; top: 0; left: 14%; right: 14%; z-index: 1; height: 1px; background: var(--zari); }
.modal-x { position: absolute; top: 8px; right: 8px; z-index: 3; background: rgba(15, 20, 36, .82); }
.modal-card:focus { outline: 0; }
.modal-card > .prompt { min-height: 0; padding: clamp(20px, 4vw, 36px); overflow-y: auto; overscroll-behavior: contain; }
.ltile-name:empty { display: none; }
.prompt { display: flex; flex-direction: column; gap: 16px; text-align: start; }
.prompt-head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.prompt-head > div { min-width: 0; }
.prompt-art { width: 56px; flex: none; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line-2); }
.prompt .brand-mark { width: 48px; height: 48px; flex: none; }
.prompt-item { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-2); }
.prompt h2 { margin: 2px 0 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: calc(var(--tight) + .12); letter-spacing: var(--track); text-wrap: balance; }
.prompt-sub { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.prompt-body { display: flex; flex-direction: column; gap: 12px; }
.prompt-trust { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.prompt-trust .i { margin-top: 3px; color: var(--gold); }
.prompt-fine { font-size: 13px; line-height: 1.5; color: var(--text-3); text-align: center; }
.prompt-flag { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid rgba(210, 173, 103, .28); border-radius: var(--r-m); background: rgba(210, 173, 103, .1); color: var(--gold-hi); font-size: 14px; line-height: 1.45; }
.prompt-flag .i { margin-top: 2px; }
.modal-card .prompt-note { margin-right: 44px; }
.prompt-replay { align-self: flex-start; min-height: 44px; color: var(--text-2); }
/* desktop: the QR code is the action, so it is the largest thing in the dialog */
.prompt-qr { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
.qr { width: 184px; height: 184px; flex: none; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(210, 173, 103, .55), 0 16px 40px rgba(0, 0, 0, .45); }
.qr svg { width: 100%; height: 100%; }
.prompt-qr > div { min-width: 0; }
.prompt-qr strong { display: block; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.35; }
.prompt-qr p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.prompt-qr .prompt-trust { margin-top: 12px; }
.prompt-qr .prompt-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: 8px; }
.prompt-direct .link { min-height: 44px; } .prompt-direct .prompt-fine { margin: 0; text-align: start; }
.on-ios .qr { width: 132px; height: 132px; }
.steps { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: rgba(10, 14, 25, .45); }
.steps-h { margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.step-art { width: 44px; height: 66px; flex: none; }
.steps li > div { min-width: 0; }
.step-n { position: absolute; left: -6px; top: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-3); color: var(--gold-hi); font-size: 12px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 1px rgba(210, 173, 103, .6); }
.steps strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.step-sub { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.steps-warn { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; color: var(--text-2); }
.steps-warn .i { margin-top: 1px; color: var(--text-3); }
.prompt > .share { margin-top: 0; }
.prompt > .share .share-row { max-width: none; }
@media (max-width: 640px) { .steps ol { grid-template-columns: 1fr; gap: 12px; } .steps li { align-items: center; } .step-n { top: 50%; margin-top: -38px; } }
@media (max-width: 560px) {
  .modal { padding: 10px; } .modal-card { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .prompt-qr { gap: 16px; } .qr { width: 132px; height: 132px; } .on-ios .qr { width: 112px; height: 112px; }
  /* narrow: poster + title line on one row, the headline on its own full-width row (Tamil/Telugu headlines are long) */
  .prompt-head { flex-wrap: wrap; padding-right: 0; gap: 10px 14px; } .prompt-head > div { display: contents; }
  .prompt-art { width: 44px; } .prompt .brand-mark { width: 40px; height: 40px; }
  .prompt-item { flex: 1; min-width: 0; margin-right: 44px; } .prompt-head .brand-mark + div h2 { margin-right: 44px; }
  .prompt h2, .prompt-sub { flex: 1 1 100%; margin: 0; }
}
@media (max-height: 500px) and (min-width: 640px) {      /* landscape phones: two columns — the action on the left, the steps on the right */
  .modal-card { width: min(860px, 100%); }
  .modal-card > .prompt, .pl-end .prompt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "note note" "head steps" "body steps" "replay steps" "share share"; gap: 10px 24px; padding: 16px 20px; align-items: start; }
  .modal-card > .prompt { padding-right: 60px; }
  .prompt-note { grid-area: note; } .prompt-head { grid-area: head; } .prompt-body { grid-area: body; } .prompt-replay { grid-area: replay; } .prompt > .steps { grid-area: steps; } .prompt > .share { grid-area: share; }
  .on-ios.prompt { grid-template-areas: "head head" "body body" "share share"; }
  .steps { padding: 12px; } .steps ol { grid-template-columns: 1fr; gap: 8px; } .step-art { width: 30px; height: 45px; } .steps-h { margin-bottom: 8px; } .steps-warn { margin-top: 8px; padding-top: 8px; }
  .steps li { align-items: center; } .step-n { top: 50%; margin-top: -28px; }
  .prompt h2 { font-size: 19px; } .qr { width: 120px; height: 120px; } .prompt-art { width: 44px; }
}

/* ── preview player ── */
/* Wide screens: the video fills the screen and the bars lie over it, all on ONE gutter. Portrait phones: a 16:9
   video is a strip, so the layout stacks instead — bar, video, controls, then title / details / download button in
   what used to be dead black space. */
.player { position: fixed; inset: 0; z-index: 90; overflow: hidden; background: #04060C; animation: fade .25s ease; --pg: max(clamp(16px, 3vw, 40px), env(safe-area-inset-left)); }
.pl-stage { position: absolute; inset: 0; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #04060C; }
.player.idle { cursor: none; }
.pl-top, .pl-bottom { position: absolute; left: 0; right: 0; z-index: 2; padding-inline: var(--pg); pointer-events: none; transition: opacity .3s ease; }
.pl-top > *, .pl-bottom > * { pointer-events: auto; }
.pl-top { top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: 56px; background: linear-gradient(180deg, rgba(4, 6, 12, .88), rgba(4, 6, 12, 0)); }
.pl-top .iconbtn { margin-right: -10px; background: rgba(4, 6, 12, .5); }
.pl-id { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.pl-id strong { font-size: clamp(16px, 1.7vw, 22px); font-weight: 700; line-height: 1.3; }
.pl-pill { padding: 3px 10px; border: 1px solid rgba(210, 173, 103, .55); border-radius: 999px; background: rgba(10, 14, 25, .72); color: var(--gold-hi); font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: calc(var(--caps) / 2); text-transform: uppercase; }
.pl-bottom { bottom: 0; padding-top: 72px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(4, 6, 12, .94), rgba(4, 6, 12, 0)); }
.pl-ctrl { display: flex; align-items: center; gap: 8px; margin-inline: -10px; }      /* icon buttons are 44 px with a 24 px glyph: -10 px puts the glyphs on the gutter */
.pl-seek { flex: 1; min-width: 0; height: 44px; margin: 0 8px; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; --p: 0%; }
.pl-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(255, 255, 255, .26) var(--p)); }
.pl-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(210, 173, 103, .25); }
.pl-seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .26); }
.pl-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
.pl-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--gold-hi); }
.pl-count { position: relative; width: 40px; height: 40px; flex: none; }
.pl-count svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-count circle { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 2.5; }
.pl-count .ring { stroke: var(--gold-hi); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.pl-count b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; line-height: 1.4; color: var(--text-2); }
.pl-cta .btn { flex: none; }
.player.idle .pl-top, .player.idle .pl-bottom { opacity: 0; }
.player.idle .pl-top > *, .player.idle .pl-bottom > * { pointer-events: none; }
.player.ended .pl-top, .player.ended .pl-bottom, .player.ended .pl-stage, .player.ended .pl-info { display: none; }
.pl-big { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; padding: 0; border: 2px solid var(--gold); border-radius: 50%;
  background: rgba(10, 14, 25, .6); color: var(--gold-hi); cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .2s, transform .2s var(--ease); }
.pl-big .i { width: 36px; height: 36px; }
.player.playing .pl-big, .player.loading .pl-big { opacity: 0; pointer-events: none; transform: scale(.9); }
.pl-spin { position: absolute; inset: 0; display: none; place-items: center; pointer-events: none; }
.player.loading .pl-spin { display: grid; }
.pl-spin .spinner { width: 48px; height: 48px; }
/* previews start muted (so they may start by themselves); this chip is the visible way to turn the sound on */
.pl-unmute { position: absolute; left: var(--pg); bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 3; display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(10, 14, 25, .82); font: 600 14px/1.3 var(--font); color: var(--text); cursor: pointer; }
.pl-unmute .i { width: 20px; height: 20px; color: var(--gold-hi); }
.player.muted .pl-unmute { display: inline-flex; }
.when-playing, .when-muted, .player.playing .when-paused, .player.muted .when-sound { display: none; }
.player.playing .when-playing, .player.muted .when-muted { display: block; }
.pl-info { display: none; }
.pl-end { position: absolute; inset: 0; z-index: 4; isolation: isolate; background: #04060C; display: flex; padding: 56px 16px 24px; overflow: auto; animation: fade .45s ease; }
.pl-end-bg { position: fixed; inset: 0; z-index: -1; background: #04060C center / cover no-repeat; filter: blur(28px) brightness(.34) saturate(1.2); transform: scale(1.15); }
.pl-end-x { position: fixed; top: calc(8px + env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); z-index: 2; background: rgba(4, 6, 12, .6); }
.pl-end .prompt { width: min(720px, 100%); margin: auto; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line-2); border-radius: 20px; background: rgba(15, 20, 36, .86); box-shadow: 0 32px 80px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: pop .4s var(--ease); }
.pl-end .prompt-head { padding-right: 0; }
@media (max-width: 600px) { .pl-cta span { font-size: 13px; } .pl-ctrl { gap: 4px; } .pl-seek { margin: 0 4px; } }
@media (max-height: 500px) {
  .pl-cta { display: none; } .pl-bottom { padding-top: 40px; padding-bottom: calc(4px + env(safe-area-inset-bottom)); } .pl-top { padding-top: 8px; }
  .pl-unmute { bottom: 64px; }
  .pl-end { padding: 12px 56px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .player { display: flex; flex-direction: column; overflow-y: auto; --pg: 16px; }
  .pl-top, .pl-bottom { position: relative; background: none; pointer-events: auto; }
  .pl-top { align-items: center; padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }
  .pl-id strong { display: none; }
  .pl-stage { position: relative; inset: auto; flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .pl-bottom { padding-top: 0; padding-bottom: 0; }
  .pl-cta { display: none; }
  .pl-unmute { left: 12px; bottom: 12px; }
  .pl-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .pl-big .i { width: 28px; height: 28px; }
  .player.idle { cursor: auto; } .player.idle .pl-top, .player.idle .pl-bottom { opacity: 1; } .player.idle .pl-top > *, .player.idle .pl-bottom > * { pointer-events: auto; }
  .pl-info { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
  .pl-info h2 { font-size: 24px; font-weight: 800; line-height: var(--tight); letter-spacing: var(--track); text-wrap: balance; }
  .pl-info .meta { font-size: 14px; } .pl-info .audio-chips { font-size: 14px; color: var(--text-2); } .pl-info .audio-chips > .i { color: var(--text-3); }
  .pl-info-lead { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
}

/* ── footer, toast ── */
/* jaali-inspired lattice, drawn for this site: an eight-point star tile at ~3% contrast */
.foot, .pick-lattice { --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23EED18B' stroke-opacity='.055' stroke-width='1'%3E%3Cpath d='M16 16h24v24H16z'/%3E%3Cpath d='M28 11 45 28 28 45 11 28z'/%3E%3Ccircle cx='28' cy='28' r='5'/%3E%3Cpath d='M28 0v11M28 45v11M0 28h11M45 28h11M0 0l16 16M56 0 40 16M0 56l16-16M56 56 40 40'/%3E%3C/g%3E%3C/svg%3E"); }
.foot { position: relative; margin-top: 24px; border-top: 1px solid var(--line); background: var(--lattice) 50% 0 / 56px, linear-gradient(180deg, var(--bg-1), var(--bg)); }
.foot::before { content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px; background: var(--zari); }
.foot-in { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(0, 1.5fr) auto auto auto; gap: 32px clamp(32px, 5vw, 72px); align-items: start; padding-block: 48px 28px; }
.foot .brand-word { font-size: 20px; }
.foot .plats { margin-top: 14px; }
.foot-tagline { margin-top: 12px; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--gold); }
.foot-col h2 { margin-bottom: 10px; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--text); }
.foot-about p { max-width: 56ch; font-size: 14px; line-height: 1.7; color: var(--text-3); }
.foot-langs { display: grid; gap: 0; margin: 0 0 0 -8px; padding: 0; list-style: none; }
.foot-clangs-v { display: flex; flex-wrap: wrap; gap: 0 8px; max-width: 240px; margin-bottom: 4px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.foot-clangs .link { min-height: 36px; }
.foot-langs button { display: flex; align-items: center; width: 100%; min-height: 36px; padding: 4px 8px; border: 0; border-radius: var(--r-s); background: none; font-size: 14px; line-height: 1.4; color: var(--text-2); text-align: start; cursor: pointer; transition: color .2s; }
.foot-langs button:hover { color: var(--gold-hi); }
.foot-langs button[aria-current="true"] { color: var(--gold-hi); font-weight: 600; }
.foot-links { display: grid; gap: 2px; margin: 0 0 0 -8px; padding: 0; list-style: none; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 8px; border-radius: var(--r-s); font-size: 14px; color: var(--text-2); }
.foot-links a:hover { color: var(--gold-hi); }
.foot-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.foot-copy { margin-left: auto; white-space: nowrap; }
.foot-lite { color: var(--gold); }
@media (pointer: coarse) { .foot-langs button, .foot-clangs .link { min-height: 44px; } }
@media (max-width: 1023px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 40px 24px; } .foot-brand, .foot-about { grid-column: 1 / -1; } }
@media (max-width: 767px) { .foot-copy { margin-left: 0; } }

/* ── content-language sheet (opened from the row under the hero, the Languages page, the header menu, the footer) ── */
/* One question, tiles in a scrolling body, the action row always visible. Capped to the viewport at every size. */
.modal-pick .modal-card { width: min(760px, 100%); isolation: isolate; }
.pick-lattice { position: absolute; inset: 0; z-index: -1; background: var(--lattice) 0 0 / 56px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 62%); mask-image: linear-gradient(200deg, #000, transparent 62%); }
.pick { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pick-head { flex: none; padding: clamp(20px, 3.4vw, 32px) 60px 14px clamp(16px, 3.4vw, 32px); }
.pick h2 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 800; line-height: calc(var(--tight) + .1); letter-spacing: var(--track); text-wrap: balance; }
.pick-sub { max-width: 56ch; margin-top: 6px; font-size: 14px; color: var(--text-2); }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 76px; padding: 4px clamp(16px, 3.4vw, 32px) 16px; overflow-y: auto; overscroll-behavior: contain; }
.pick-grid .ltile { min-height: 68px; padding: 8px; }
.pick-grid .ltile:hover { transform: none; }
.pick-actions { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px clamp(16px, 3.4vw, 32px) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(15, 20, 36, .96); }
.pick-actions .btn-gold { min-width: 140px; }
@media (min-width: 480px) { .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) { .pick-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; } .pick-grid .ltile { min-height: 88px; } }
@media (max-width: 560px) {       /* phones: a bottom sheet */
  .modal-pick { padding: 0; }
  .modal-pick .modal-card { margin: auto 0 0; max-height: 88vh; max-height: 88dvh; border-radius: 20px 20px 0 0; border-bottom: 0; animation: sheet .2s var(--ease); }
  .pick-grid .ltile { min-height: 60px; padding: 6px 8px; } .pick-grid .ltile-native { font-size: 20px; }
  .pick-actions .btn { flex: 1; }
}
@media (max-height: 500px) {
  .pick-head { padding-block: 14px 8px; } .pick h2 { font-size: 20px; } .pick-sub { font-size: 13px; }
  .pick-grid .ltile { min-height: 52px; padding: 4px 8px; } .pick-grid .ltile-native { font-size: 19px; line-height: 1.35; }
  .pick-actions { padding-block: 8px; }
}

/* ── "Get the app" bar (phones; appears after the hero has scrolled away) ── */
.appbar { display: none; }
@media (max-width: 767px) {
  .appbar:not([hidden]) { display: flex; align-items: center; gap: 10px; position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 45; padding: 6px 2px 6px 10px;
    border: 1px solid rgba(210, 173, 103, .3); border-radius: 14px; background: rgba(20, 26, 48, .97); box-shadow: 0 12px 32px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
    opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
  .bar-on .appbar:not([hidden]) { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .locked .appbar, [data-route="watch"] .appbar { display: none !important; }
  .appbar .brand-mark { width: 32px; height: 32px; }
  .appbar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .appbar-t strong { font-size: 14px; font-weight: 700; line-height: 1.4; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .appbar-t span { font-size: 12px; line-height: 1.4; color: var(--text-3); }      /* "Free forever · No phone number": one line when it fits, else one promise per line — never cut */
  .appbar-t span i { font-style: normal; white-space: nowrap; }
  .appbar .btn { flex: none; }
  .appbar-x { color: var(--text-3); }
  .has-bar .foot-in { padding-bottom: 88px; }
  .has-bar .toast { bottom: 148px; }
}
@media (max-width: 767px) and (orientation: portrait) { .appbar:not([hidden]) { bottom: calc(64px + env(safe-area-inset-bottom)); } }
.toast { position: fixed; left: 50%; bottom: 88px; z-index: 120; padding: 10px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ── motion ── */
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes dotfill { to { transform: scaleX(1); } }
@keyframes drift { from { transform: scale(1.06); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .dot.on i::after { animation: none !important; transform: none; }   /* no auto-advance */
  .spinner { animation: spin 1.2s linear infinite !important; animation-duration: 1.2s !important; }
}
