/* ============ ShoShows portal styles ============ */
/* Desktop-first streaming portal: full-bleed hero, poster rails with hover
   reveals, a two-column watch page and a plan-first storefront. Shares the
   classic shell's dark palette so both frontends read as one brand. */

:root {
  --bg: #0b0b12;
  --bg-elev: #14141f;
  --bg-card: #1a1a28;
  --text: #f2f2f7;
  --text-dim: #9a9ab0;
  --text-faint: #62627a;
  --accent: #ff3d6e;
  --accent-2: #ff7a45;
  --gold: #ffc94d;
  --radius: 14px;
  --topbar-h: 64px;
  --tabbar-h: 56px;
  --max-w: 1200px;
  /* The phone app runs this page edge to edge — under the status bar, the
     Dynamic Island and the home indicator — so anything that touches an edge
     asks the device how much room it really has. In a browser these resolve to
     0 and no layout moves. */
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100dvh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; }

#app2 { display: flex; flex-direction: column; min-height: 100dvh; }
.view { flex: 1; width: 100%; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }

.view-in { animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: calc(var(--topbar-h) + var(--sat));
  padding-top: var(--sat);
  background: rgba(11, 11, 18, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.topbar-inner {
  max-width: var(--max-w); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 14px;
  padding-inline: max(22px, var(--sal)) max(22px, var(--sar));
}
.brand {
  font-size: 21px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: center; gap: 8px; flex: none;
}
.brand .mark { font-size: 18px; -webkit-text-fill-color: initial; }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.tb-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-card); color: var(--text-dim); position: relative;
  transition: background .15s, color .15s;
}
.tb-btn:hover { background: #232336; color: var(--text); }
.tb-btn svg { width: 19px; height: 19px; fill: currentColor; }
.tb-btn .dot {
  position: absolute; top: 5px; right: 5px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg);
}
.tracker-badge {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #fff;
  background:
    radial-gradient(closest-side, var(--bg-elev) 74%, transparent 75% 100%),
    conic-gradient(var(--accent) calc(var(--p, 0) * 1%), #2a2a3c 0);
}
.coin-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border-radius: 999px; padding: 8px 13px;
  font-size: 13.5px; font-weight: 700; color: var(--gold);
  transition: background .15s;
}
.coin-pill:hover { background: #232336; }
.cta-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  border-radius: 999px; padding: 9px 16px;
  font-size: 13.5px; font-weight: 700; color: #fff;
  box-shadow: 0 4px 18px rgba(255, 61, 110, .35);
  transition: transform .15s, box-shadow .15s;
}
.cta-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(255, 61, 110, .45); }

/* ---------- menu drawer ---------- */
.menu-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6);
  animation: fadeIn .18s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.menu-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(320px, 88vw);
  background: var(--bg-elev);
  padding: calc(18px + var(--sat)) 16px calc(26px + var(--sab));
  display: flex; flex-direction: column; gap: 4px;
  animation: menuIn .22s ease both; overflow-y: auto;
}
@keyframes menuIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
[dir="rtl"] .menu-panel { animation-name: menuInRtl; }
@keyframes menuInRtl { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.menu-close { align-self: flex-end; font-size: 17px; color: var(--text-dim); padding: 8px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; text-align: start;
  padding: 13px 12px; border-radius: 12px; font-size: 15.5px; font-weight: 600;
  color: var(--text); width: 100%;
}
.menu-item:hover { background: var(--bg-card); }
.menu-item .mi { font-size: 17px; width: 24px; text-align: center; }
.menu-item .mi-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.menu-sep { height: 1px; background: rgba(255, 255, 255, .07); margin: 10px 8px; }
.menu-foot { margin-top: auto; padding: 14px 12px 0; font-size: 12px; color: var(--text-faint); }

/* ---------- hero carousel ---------- */
/* Every slide sits in the same grid cell, so the carousel is as tall as its
   tallest slide and keeps that height as it rotates. Showing one slide at a
   time in the flow made the header's height follow whichever was active — and
   these differ by a genre row and a line of title — so the whole page below it
   jumped every seven seconds. */
.hero { position: relative; overflow: hidden; display: grid; }
.hero-slide {
  position: relative; grid-area: 1 / 1; min-height: clamp(420px, 62vh, 620px);
  /* Not display:none: a slide that is out of the flow cannot contribute its
     height to the cell, which is the whole point. Hidden this way it is still
     measured, and still out of reach of a tap, the tab order and a screen
     reader. */
  visibility: hidden;
}
.hero-slide.active { visibility: visible; animation: fadeIn .5s ease both; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
/* `visibility: hidden` keeps a slide measured — which is the point, it lends
   the cell its height — but it does not stop the browser paying for what is
   inside it. Every slide holds a full-viewport blur(38px) plate, so all five
   were being kept as filter layers to show one. Only the visible backdrop
   needs to exist; the slide itself still measures. */
.hero-slide:not(.active) .hero-bg { display: none; }
.hero-bg .poster-art, .hero-bg .poster-photo, .hero-bg svg {
  width: 100%; height: 100%; object-fit: cover; filter: blur(38px) saturate(1.2) brightness(.45);
  transform: scale(1.2);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, transparent 45%),
              linear-gradient(100deg, rgba(11,11,18,.88) 30%, rgba(11,11,18,.25) 70%);
}
.hero-inner {
  position: relative; max-width: var(--max-w); margin: 0 auto; padding: 48px 22px 58px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 40px; align-items: center; min-height: inherit;
}
.hero-copy h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.06; margin-bottom: 14px; }
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  color: var(--text-dim); font-size: 13.5px; margin-bottom: 14px;
}
.hero-meta .tag { color: var(--accent); font-weight: 700; }
.hero-meta .star { color: var(--gold); }
.hero-copy p {
  color: var(--text-dim); font-size: 15px; line-height: 1.55; max-width: 520px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 24px;
}
.hero-art {
  display: block;
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
}
.hero-art .poster-art, .hero-art svg, .hero-art .poster-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-art .poster-photo-title { display: none; }
.hero-badge {
  position: absolute; top: 8%; inset-inline-start: 6%; z-index: 2;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 5px 10px; border-radius: 999px; text-transform: uppercase;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; font-size: 15.5px;
  border-radius: 12px; padding: 13px 26px;
  box-shadow: 0 6px 24px rgba(255, 61, 110, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255, 61, 110, .45); }
.btn-primary:disabled { opacity: .55; cursor: default; transform: none; }
/* A claim is a round trip. Until it answers the button spins in place rather
   than sitting there greyed out, which reads as a button that did nothing. */
button.busy { position: relative; color: transparent !important; pointer-events: none; }
button.busy > * { visibility: hidden; }
button.busy::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { button.busy::after { animation-duration: 2s; } }
.btn-primary svg { width: 17px; height: 17px; fill: currentColor; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px;
  padding: 12px 22px; font-weight: 700; font-size: 14.5px; color: var(--text);
  transition: background .15s, border-color .15s;
}
.btn-outline:hover { background: rgba(255, 255, 255, .06); }
.btn-outline.gold { color: var(--gold); border-color: rgba(255, 201, 77, .45); }
.btn-plain { color: var(--text-dim); font-size: 14px; padding: 10px; }
.hero-dots {
  position: absolute; bottom: 20px; inset-inline-start: 0; width: 100%;
  display: flex; justify-content: center; gap: 8px; z-index: 3;
}
.hero-dot { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); transition: background .2s, width .2s; }
.hero-dot.active { background: var(--accent); width: 34px; }
/* A 4px dot is a miss under a thumb: give each one an invisible hit area. */
@media (pointer: coarse) {
  .hero-dot { position: relative; }
  .hero-dot::after { content: ""; position: absolute; inset: -14px -3px; }
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(11, 11, 18, .6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; color: var(--text);
  transition: background .15s;
}
.hero-arrow:hover { background: rgba(255, 61, 110, .8); }
.hero-arrow.prev { inset-inline-start: 14px; }
.hero-arrow.next { inset-inline-end: 14px; }
.hero-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections & rails ---------- */
.section { padding: 26px 0 6px; }
.section-head {
  max-width: var(--max-w); margin: 0 auto; padding: 0 22px 14px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
}
.section-head h2 { font-size: clamp(19px, 2.2vw, 24px); }
.section-head a { color: var(--text-faint); font-size: 13.5px; font-weight: 600; }
.section-head a:hover { color: var(--accent); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 16vw, 205px);
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 4px max(22px, calc((100vw - var(--max-w)) / 2 + 22px)) 18px;
  scroll-snap-type: x proximity; scrollbar-width: none;
  scroll-padding-inline-start: max(22px, calc((100vw - var(--max-w)) / 2 + 22px));
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail.ranked { grid-auto-columns: clamp(180px, 18vw, 235px); }

/* ---------- cards ---------- */
.card { position: relative; display: block; }
.poster-wrap {
  position: relative; aspect-ratio: 2 / 3; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover .poster-wrap { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.poster-art, .poster-art svg { width: 100%; height: 100%; }
.poster-art { position: absolute; inset: 0; }
.poster-photo { width: 100%; height: 100%; object-fit: cover; }
.poster-photo-title {
  position: absolute; bottom: 12px; inset-inline: 12px; z-index: 1;
  font-weight: 800; font-size: 15px; line-height: 1.15; color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
.card-badge {
  position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .07em;
  padding: 4px 8px; border-radius: 999px; text-transform: uppercase;
}
.card-views {
  position: absolute; bottom: 10px; inset-inline-end: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  /* No backdrop-filter: every poster on the page carries one of these, and each
     one makes WebKit rasterise the cover behind it into its own composited
     layer. A hundred of those get re-composited on every scroll frame, for a
     frost nobody can see behind a 50x22 pill. The plate is darkened instead. */
  background: rgba(0, 0, 0, .72);
  border-radius: 999px; padding: 4px 9px; font-size: 11px; font-weight: 700; color: #fff;
}
.card-views svg { width: 12px; height: 12px; fill: currentColor; }
.card-hover {
  position: absolute; inset: 0; z-index: 3; padding: 16px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  background: linear-gradient(to top, rgba(6, 6, 12, .94) 25%, rgba(6, 6, 12, .35) 70%, transparent);
  opacity: 0; transition: opacity .2s ease;
}
.card-hover p {
  color: var(--text-dim); font-size: 12.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.card-hover .play-mini {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700;
}
.card-hover .play-mini svg { width: 13px; height: 13px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-hover { opacity: 1; }
  .card:hover .poster-photo-title { opacity: 0; }
}
.card-title {
  margin-top: 10px; font-size: 14px; font-weight: 700; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: 3px; font-size: 12px; color: var(--text-faint); }
.rank-num {
  position: absolute; bottom: -6px; inset-inline-start: 4px; z-index: 2;
  font-size: 64px; font-weight: 900; line-height: 1; color: var(--bg);
  -webkit-text-stroke: 2px var(--accent); letter-spacing: -.04em;
}
.progress-strip { position: absolute; bottom: 0; inset-inline: 0; height: 4px; background: rgba(255,255,255,.14); z-index: 2; }
.progress-strip i { display: block; height: 100%; background: linear-gradient(100deg, var(--accent), var(--accent-2)); }

/* ---------- marquee (originals strip) ---------- */
/* Standing still it is an ordinary shelf and must stay swipeable, or a strip
   wider than the screen would put its last titles out of reach. Only the
   scrolling variant hides its overflow, since the animation does the work. */
.marquee { overflow-x: auto; scrollbar-width: none; padding: 6px 0 18px; }
.marquee::-webkit-scrollbar { display: none; }
.marquee:has(.is-scrolling) { overflow: hidden; }
/* The animation is attached only once the strip is measured and found
   longer than the screen; a strip that fits simply sits still. */
.marquee-track { display: flex; gap: 16px; width: max-content; }
.marquee-track.is-scrolling { animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track.is-scrolling { animation-name: marqueeRtl; }
@media (prefers-reduced-motion: reduce) { .marquee-track.is-scrolling { animation: none; } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }
.marquee .card { width: 150px; flex: none; }

/* ---------- must-watch banner ---------- */
.must {
  max-width: var(--max-w); margin: 10px auto 0; padding: 0 22px;
}
.must-inner {
  position: relative; border-radius: 22px; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  min-height: 300px; background: var(--bg-elev);
}
.must-bg { position: absolute; inset: 0; }
.must-bg .poster-art, .must-bg svg, .must-bg .poster-photo { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5) saturate(1.15); }
.must-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,11,18,.92) 35%, rgba(11,11,18,.2)); }
.must-copy { position: relative; z-index: 1; padding: 38px; display: flex; flex-direction: column; justify-content: center; gap: 12px; grid-column: 1 / -1; }
.must-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; }
.must-copy h2 { font-size: clamp(24px, 3vw, 34px); }
.must-copy p { color: var(--text-dim); font-size: 14.5px; max-width: 560px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- grid ---------- */
.grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 18px 16px; padding: 4px 22px 20px;
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  max-width: var(--max-w); margin: 0 auto; padding: 18px 22px 4px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 13.5px; color: var(--text-faint);
}
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }
.crumbs .cur { color: var(--text); font-weight: 600; }

/* Episode grid sheet, opened from the player. */
.eps-sheet h3 { font-size: 19px; padding-inline-end: 36px; }
.eps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; margin: 4px 0; }
.eps-tile {
  position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center; color: var(--text);
  font-weight: 700; font-size: 15px; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.eps-tile:hover { background: #222234; }
.eps-tile.now { border-color: var(--accent); background: rgba(255, 61, 110, .12); color: var(--accent); }
.eps-tile.watched { color: var(--text-faint); }
.eps-tile.locked { color: var(--text-dim); }
.eps-tile .eq { position: absolute; bottom: 6px; inset-inline-end: 6px; display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eps-tile .eq i { width: 2px; background: var(--accent); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eps-tile .eq i:nth-child(1) { height: 60%; } .eps-tile .eq i:nth-child(2) { height: 100%; animation-delay: .2s; }
.eps-tile .eq i:nth-child(3) { height: 45%; animation-delay: .4s; } .eps-tile .eq i:nth-child(4) { height: 80%; animation-delay: .1s; }
.eps-tile .eps-lock { position: absolute; top: 4px; inset-inline-end: 5px; font-size: 9px; }
.eps-tile .eps-check { position: absolute; top: 3px; inset-inline-end: 6px; font-size: 10px; color: #4cd97b; }
.eps-sheet .btn-outline { width: 100%; }

.pw-balance { font-size: 13px; color: var(--text-dim); }
.pw-balance b { color: var(--gold); }
.pw-toggle {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim);
  cursor: pointer; margin-top: 4px; position: relative;
}
/* Hidden from sight, not removed: display:none took the checkbox out of the
   tab order and away from a screen reader, and it is what spends coins. */
.pw-toggle input {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.pw-toggle .switch {
  width: 38px; height: 22px; border-radius: 999px; background: #2a2a3c; position: relative;
  transition: background .18s; flex: none;
}
.pw-toggle .switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .18s;
}
.pw-toggle input:checked + .switch { background: var(--accent); }
.pw-toggle input:checked + .switch::after { transform: translateX(16px); }
.pw-toggle input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 2px; }
[dir="rtl"] .pw-toggle .switch { transform: scaleX(-1); }
.vip-line { display: block; width: min(300px, 100%); }

/* ---------- watch side panel ---------- */
.panel {
  background: var(--bg-elev); border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px;
  max-height: min(78vh, 820px);
}
/* ⓘ scrolls the panel to the top; above 760px the sticky topbar is still
   there to land under, below it the watch page hides the topbar. */
@media (min-width: 761px) { .watch > .panel { scroll-margin-top: calc(var(--topbar-h) + var(--sat) + 12px); } }
.panel h1 { font-size: 22px; line-height: 1.2; }
.panel-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--text-dim); font-size: 13px; align-items: center; }
.panel-meta .pm { display: inline-flex; align-items: center; gap: 6px; }
.panel-meta svg { width: 15px; height: 15px; fill: currentColor; }
.panel-meta .like-btn.on { color: var(--accent); }
.panel-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-tags .tag {
  font-size: 11.5px; font-weight: 700; color: var(--accent);
  background: rgba(255, 61, 110, .12); padding: 4px 10px; border-radius: 999px;
}
.panel .synopsis { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }
.panel .synopsis.clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-toggle { color: var(--accent); font-size: 12.5px; font-weight: 700; align-self: flex-start; }
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.panel-actions .btn-outline { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.panel-actions .btn-outline.on { color: var(--accent); border-color: rgba(255, 61, 110, .5); background: rgba(255, 61, 110, .08); }
.panel-actions svg { width: 15px; height: 15px; fill: currentColor; }
.ep-list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ep-list-head h3 { font-size: 15px; }
.ep-list-head span { font-size: 11.5px; color: var(--text-faint); }
.ep-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 120px; padding-inline-end: 4px; }
.ep-row {
  position: relative; display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1px solid transparent; border-radius: 12px;
  padding: 13px 14px; font-size: 14px; font-weight: 600; text-align: start;
  transition: background .15s, border-color .15s; color: var(--text);
}
.ep-row:hover { background: #222234; }
.ep-row.current { border-color: var(--accent); background: rgba(255, 61, 110, .1); }
.ep-row.watched { color: var(--text-faint); }
.ep-row .eq { margin-inline-start: auto; display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.ep-row .eq i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.ep-row .eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.ep-row .eq i:nth-child(2) { height: 100%; animation-delay: .2s; }
.ep-row .eq i:nth-child(3) { height: 45%; animation-delay: .4s; }
.ep-row .eq i:nth-child(4) { height: 80%; animation-delay: .1s; }
@keyframes eq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .eps-tile .eq i, .ep-row .eq i { animation: none; } }
.ep-row .lock-b {
  margin-inline-start: auto; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.ep-row.current .lock-b, .ep-row .eq { margin-inline-start: auto; }
.batch-btn { width: 100%; }

/* ---------- plans page ---------- */
.plans { max-width: 640px; margin: 0 auto; padding: 26px 22px 50px; display: flex; flex-direction: column; gap: 18px; }
.plans-head { text-align: center; display: flex; flex-direction: column; gap: 10px; padding: 8px 0 4px; }
.plans-head h1 { font-size: clamp(26px, 4vw, 34px); }
.plans-head .sub { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; max-width: 480px; margin: 0 auto; }
.plans-head .web-tag {
  align-self: center; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); background: rgba(255, 201, 77, .1); border: 1px solid rgba(255, 201, 77, .3);
  padding: 6px 14px; border-radius: 999px;
}
.plan-card {
  position: relative; display: flex; align-items: center; gap: 14px;
  background: var(--bg-elev); border: 1.5px solid rgba(255, 255, 255, .09);
  border-radius: 16px; padding: 18px; width: 100%; text-align: start;
  transition: border-color .15s, background .15s;
}
.plan-card:hover { border-color: rgba(255, 61, 110, .5); }
.plan-card.selected { border-color: var(--accent); background: rgba(255, 61, 110, .07); }
.plan-card .radio {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--text-faint); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.plan-card.selected .radio { border-color: var(--accent); }
.plan-card.selected .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.plan-card .plan-t { flex: 1; }
.plan-card .plan-t b { display: block; font-size: 16px; letter-spacing: .02em; }
.plan-card .plan-t span { font-size: 12.5px; color: var(--text-dim); }
.plan-card .plan-p { text-align: end; }
.plan-card .plan-p b { font-size: 19px; }
.plan-card .plan-p span { display: block; font-size: 11.5px; color: var(--text-faint); }
.plan-card .badge {
  position: absolute; top: -9px; inset-inline-end: 16px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px;
}
.vip-banner {
  border-radius: 16px; padding: 18px 20px; background: linear-gradient(120deg, rgba(255, 201, 77, .14), rgba(255, 61, 110, .1));
  border: 1px solid rgba(255, 201, 77, .3);
}
.vip-banner .v-t { font-weight: 800; font-size: 15.5px; }
.vip-banner .v-b { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.plans-note { text-align: center; color: var(--text-faint); font-size: 12px; line-height: 1.5; }
.plans-divider { display: flex; align-items: center; gap: 14px; color: var(--text-faint); font-size: 13px; font-weight: 700; margin-top: 8px; }
.plans-divider::before, .plans-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .09); }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pkg-card {
  position: relative; background: var(--bg-elev); border: 1.5px solid rgba(255, 255, 255, .09);
  border-radius: 14px; padding: 16px 10px 14px; text-align: center;
  display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s;
}
.pkg-card:hover { border-color: rgba(255, 201, 77, .5); transform: translateY(-2px); }
.pkg-card .p-coins { font-size: 15.5px; font-weight: 800; color: var(--gold); }
.pkg-card .p-bonus { font-size: 11px; color: var(--accent-2); font-weight: 700; min-height: 14px; }
.pkg-card .p-price { font-size: 14px; font-weight: 700; margin-top: 4px; }
[dir="rtl"] .pkg-card .badge { transform: translateX(50%); }
.pkg-card .badge {
  position: absolute; top: -8px; inset-inline-start: 50%; transform: translateX(-50%);
  /* `inset-inline-start` flips with the direction but `translateX` does not,
     so in RTL the two agree instead of cancelling and the badge slides off the
     card by its own width. */
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.first-tag { font-size: 12px; color: var(--gold); font-weight: 700; }
.pkg-card .p-eps { font-size: 11px; color: var(--text-faint); }
.pkg-card .p-pct { font-style: normal; font-size: 10px; font-weight: 800; color: var(--gold); background: rgba(255, 201, 77, .14); border-radius: 999px; padding: 1px 6px; margin-inline-start: 3px; }
.pkg-card.best { border-color: rgba(255, 201, 77, .55); }
.pkg-card .badge.gold { background: linear-gradient(100deg, var(--gold), #ffb03a); color: #1a1005; }
/* The three packs that cover a shortfall, in a sheet over the paywall. */
.topup-sheet h3 { font-size: 19px; padding-inline-end: 36px; }
.topup-grid { grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.topup-card.highlight { border-color: var(--accent); background: rgba(255, 61, 110, .08); }
.topup-all { text-align: center; font-size: 13px; color: var(--text-dim); text-decoration: underline; padding: 2px; }
.topup-alt { display: flex; gap: 8px; }
.topup-alt > * { flex: 1; padding-inline: 10px; font-size: 13.5px; }
.pw-signin { flex-direction: column; gap: 0; line-height: 1.2; }
.pw-signin small { font-size: 11px; font-weight: 600; color: var(--text-dim); }
/* A guest on the storefront: the one thing worth saying before money changes hands. */
.guest-card {
  display: flex; align-items: center; gap: 12px; text-align: start; width: 100%;
  background: linear-gradient(120deg, rgba(255, 201, 77, .12), rgba(255, 61, 110, .08));
  border: 1px solid rgba(255, 201, 77, .3); border-radius: 14px; padding: 12px 14px; color: var(--text);
}
.guest-card-tag { flex: none; font-size: 12px; font-weight: 800; color: #1a1005; background: linear-gradient(100deg, var(--gold), var(--accent-2)); border-radius: 999px; padding: 4px 9px; }
.guest-card-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guest-card-txt b { font-size: 14px; }
.guest-card-txt span { font-size: 12px; color: var(--text-dim); }
.guest-card .chev { color: var(--text-faint); }
/* The show the viewer came from, above the plans. */
.plans-ctx {
  display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 12px 14px;
  background: var(--bg-elev); border: 1px solid rgba(255, 255, 255, .07); color: var(--text); text-decoration: none;
}
.plans-ctx-art { width: 54px; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; flex: none; background: var(--bg-card); }
.plans-ctx-art img, .plans-ctx-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.plans-ctx-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plans-ctx-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.plans-ctx-copy b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plans-ctx-copy span:last-child { font-size: 12.5px; color: var(--text-dim); }
.tx-list { background: var(--bg-elev); border-radius: 14px; overflow: hidden; }
.tx-row { display: flex; justify-content: space-between; padding: 13px 16px; font-size: 13.5px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.tx-row:last-child { border-bottom: 0; }
.tx-d.plus { color: #4cd97b; font-weight: 700; }
.tx-d.minus { color: var(--text-dim); font-weight: 700; }

/* ---------- rewards page ---------- */
.rewards { max-width: 760px; margin: 0 auto; padding: 26px 22px 50px; display: flex; flex-direction: column; gap: 20px; }
.rewards h1 { font-size: clamp(24px, 3.4vw, 30px); }
.rewards .sub { color: var(--text-dim); font-size: 14px; margin-top: -12px; }
.daily-card { background: var(--bg-elev); border-radius: 18px; padding: 20px; }
.daily-card h3 { margin-bottom: 14px; }
.daily-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.daily-tile {
  background: var(--bg-card); border-radius: 11px; padding: 10px 4px; text-align: center;
  display: flex; flex-direction: column; gap: 3px; border: 1px solid transparent;
}
.daily-tile .d { font-size: 10px; color: var(--text-faint); font-weight: 700; }
.daily-tile .c { font-size: 16px; }
.daily-tile .amt { font-size: 11.5px; font-weight: 800; color: var(--gold); }
.daily-tile.claimed { opacity: .55; }
.daily-tile.today { border-color: var(--accent); background: rgba(255, 61, 110, .1); }
.rewards-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-elev); border-radius: 16px; padding: 14px 18px;
}
.rewards-balance .lbl { font-size: 11px; letter-spacing: .1em; color: var(--text-faint); font-weight: 800; text-transform: uppercase; }
.rewards-balance .bal { font-size: 22px; font-weight: 800; color: var(--gold); margin-top: 2px; }
.rewards-balance .btn-outline { padding: 10px 16px; font-size: 13.5px; }
.daily-next { margin-top: 10px; text-align: center; }
.daily-vip {
  display: block; margin-top: 12px; text-align: center; font-size: 12.5px; font-weight: 600;
  color: var(--gold); text-decoration: none;
}
.daily-vip.on { color: var(--text-dim); }
.daily-won {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0 4px;
  animation: viewIn .32s ease both;
}
.daily-won-amt { font-size: 30px; font-weight: 800; color: var(--gold); letter-spacing: -.01em; }
.daily-won-sub { font-size: 13px; color: var(--text-dim); }
.find-more {
  display: flex; align-items: center; gap: 14px; margin: 6px auto 30px; max-width: var(--max-w);
  margin-inline: max(22px, calc((100% - var(--max-w)) / 2));
  padding: 16px 18px; border-radius: 16px; color: var(--text); text-decoration: none;
  background: linear-gradient(120deg, rgba(255, 61, 110, .1), rgba(255, 138, 61, .06));
  border: 1px solid rgba(255, 255, 255, .07);
}
.find-more-mark { font-size: 26px; }
.find-more-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.find-more-txt b { font-size: 15px; }
.find-more-txt span { font-size: 12.5px; color: var(--text-dim); }
.find-more .chev { color: var(--text-faint); font-size: 18px; }
@media (max-width: 720px) { .find-more { margin-inline: 16px; } }
.ob-alt { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--text-faint); }
.ob-alt .btn-plain { color: var(--accent); font-weight: 700; padding: 6px; }
.nudge-sheet { text-align: center; align-items: center; }
.nudge-mark { font-size: 36px; }
.nudge-sheet h3 { font-size: 20px; }
.nudge-tag { animation: none; font-size: 12.5px; padding: 4px 11px; }
.nudge-sheet .btn-primary { width: 100%; }
.earn-section { display: flex; flex-direction: column; gap: 10px; }
.earn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 2px 0; }
.earn-head h2 { font-size: 17px; }
.earn-head span { font-size: 12px; color: var(--text-faint); }
.mission-list { display: flex; flex-direction: column; gap: 10px; }
.mission-row {
  display: flex; align-items: center; gap: 13px; background: var(--bg-elev);
  border-radius: 14px; padding: 14px 16px;
}
.mission-row.done { opacity: .6; }
.mission-row .m-ico { font-size: 20px; width: 28px; text-align: center; }
.mission-row .m-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mission-row .m-t { font-size: 14.5px; font-weight: 700; }
.mission-row .m-p { font-size: 12px; color: var(--text-faint); }
.m-btn {
  border-radius: 999px; padding: 8px 18px; font-size: 13px; font-weight: 700;
  background: var(--bg-card); color: var(--text-dim);
}
.m-btn.claim { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff; }
.m-btn.off { opacity: .55; cursor: default; }

/* ---------- library / search / settings ---------- */
.page { max-width: var(--max-w); margin: 0 auto; padding: 26px 22px 50px; }
.page > h1 { font-size: clamp(24px, 3.4vw, 30px); margin-bottom: 8px; }
.continue-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 30vw, 330px); gap: 14px; overflow-x: auto; padding: 8px 0 16px; scrollbar-width: none; }
.continue-row::-webkit-scrollbar { display: none; }
.continue-card {
  position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center;
  background: var(--bg-elev); border-radius: 14px; overflow: hidden; padding-inline-end: 14px;
}
.continue-card .poster-art { position: relative; aspect-ratio: 2 / 3; }
.continue-card .cc-info { font-size: 13.5px; font-weight: 700; line-height: 1.3; display: flex; flex-direction: column; gap: 4px; }
.continue-card .cc-info .ep { color: var(--text-faint); font-size: 11.5px; font-weight: 600; }
.continue-card .cc-bar { position: absolute; bottom: 0; inset-inline: 0; height: 3px; background: rgba(255,255,255,.1); }
.continue-card .cc-bar i { display: block; height: 100%; background: linear-gradient(100deg, var(--accent), var(--accent-2)); }
.hist-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.hist-row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 13px; align-items: center;
  background: var(--bg-elev); border-radius: 13px; overflow: hidden; padding-inline-end: 16px;
}
.hist-row .h-poster { position: relative; aspect-ratio: 2 / 3; }
.hist-row .h-t { font-size: 14px; font-weight: 700; }
.hist-row .h-m { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.hist-row .h-bar { height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; margin-top: 7px; max-width: 220px; }
.hist-row .h-bar i { display: block; height: 100%; background: linear-gradient(100deg, var(--accent), var(--accent-2)); border-radius: 2px; }
.hist-row .h-play { color: var(--accent); font-size: 15px; }
.search-bar {
  display: flex; align-items: center; gap: 10px; background: var(--bg-card);
  border-radius: 13px; padding: 12px 16px; max-width: 560px; margin: 10px 0 16px;
}
.search-bar svg { width: 18px; height: 18px; stroke: var(--text-faint); flex: none; }
.search-bar input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
.chip {
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700;
  background: var(--bg-card); color: var(--text-dim); transition: background .15s, color .15s;
}
.chip:hover { color: var(--text); }
.chip.active { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff; }
.empty-state {
  text-align: center; color: var(--text-faint); padding: 60px 20px; font-size: 14.5px; line-height: 1.6;
}
.empty-state .big { font-size: 44px; margin-bottom: 12px; }
/* A shared link to a title this catalog does not carry: the age question,
   asked without naming anything. */
.title-gate { max-width: 460px; margin: 0 auto; padding-top: 14vh; }
.title-gate h2 { color: var(--text); font-size: 21px; margin-bottom: 8px; }
.title-gate-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 20px; }
.title-gate-actions .btn-primary { min-width: 220px; justify-content: center; }
.share-url { user-select: all; -webkit-user-select: all; word-break: break-all; color: var(--text); }
.title-wait .big { animation: fadeIn .6s ease both .4s; opacity: 0; }

.settings { max-width: 640px; margin: 0 auto; padding: 26px 22px 50px; display: flex; flex-direction: column; gap: 16px; }
.settings h1 { font-size: clamp(24px, 3.4vw, 30px); }
/* Inside these flex columns the shared .section-head must fill the row —
   its `margin: 0 auto` otherwise shrink-wraps and centers it. */
.settings .section-head, .plans .section-head { width: 100%; margin: 0; }
.tracker-card {
  background: linear-gradient(120deg, rgba(255, 61, 110, .14), rgba(255, 122, 69, .07));
  border: 1px solid rgba(255, 61, 110, .25); border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.tracker-card h3 { font-size: 15.5px; }
.tracker-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tracker-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(100deg, var(--accent), var(--accent-2)); min-width: 2%; }
.tracker-card p { font-size: 13px; color: var(--text-dim); }
.tracker-card p b { color: var(--accent); }
/* ---------- me / profile head ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar {
  width: 58px; height: 58px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.profile-head.guest .avatar { background: var(--bg-card); color: var(--text-dim); font-size: 26px; }
.profile-head .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.profile-head .who h2 { font-size: 19px; line-height: 1.2; display: flex; align-items: center; gap: 6px; min-width: 0; }
.profile-head .who h2 .who-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-head .who h2 .vip-chip { flex: none; }
.profile-head .who p { font-size: 12.5px; color: var(--text-dim); overflow-wrap: anywhere; }
.profile-id {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 3px;
  font-size: 11.5px; color: var(--text-faint); background: var(--bg-card); border-radius: 999px; padding: 4px 10px;
}
.profile-id strong { color: var(--text-dim); font-weight: 600; letter-spacing: .02em; }
.profile-id .copy-mark { color: var(--accent); font-size: 13px; }
.signin-cta { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none; }
.signin-tag {
  font-size: 11px; font-weight: 800; color: #1a1005; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(100deg, var(--gold), var(--accent-2)); animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .signin-tag { animation: none; } }
.btn-primary.small { padding: 9px 16px; font-size: 13.5px; border-radius: 10px; }
.balance-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--bg-elev); border-radius: 16px; padding: 14px 18px;
  border: 1px solid rgba(255, 201, 77, .18);
}
.balance-card .lbl { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .1em; color: var(--text-faint); font-weight: 800; text-transform: uppercase; }
.balance-card .bal { font-size: 24px; font-weight: 800; color: var(--gold); margin-top: 2px; }
.balance-actions { display: flex; gap: 8px; }
.balance-actions .btn-outline, .balance-actions .btn-primary { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
.info-btn {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; color: var(--text-faint);
  font-size: 10px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-style: italic; letter-spacing: 0; text-transform: none; position: relative;
}
.info-btn::after { content: ""; position: absolute; inset: -10px; }
.coins-how { display: flex; flex-direction: column; gap: 8px; text-align: start; }
.coins-how span { position: relative; padding-inline-start: 16px; }
.coins-how span::before { content: "•"; position: absolute; inset-inline-start: 2px; color: var(--gold); }
.set-toggle { cursor: pointer; }
.set-toggle .set-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-toggle .set-txt small { font-size: 11.5px; color: var(--text-faint); font-weight: 500; line-height: 1.35; }
.set-toggle .pw-toggle { margin: 0; }
.set-row.danger.faint { color: var(--text-faint); font-size: 13px; }
.delete-sheet h3 { font-size: 19px; padding-inline-end: 36px; }
.delete-sheet .ack { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-dim); cursor: pointer; text-align: start; }
.delete-sheet .ack input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.btn-primary.danger-btn { background: linear-gradient(100deg, #d63a5a, #ff3d6e); box-shadow: none; }
.set-group { background: var(--bg-elev); border-radius: 16px; overflow: hidden; }
.set-row {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: start;
  padding: 16px 18px; font-size: 14.5px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.set-row:last-child { border-bottom: 0; }
.set-row:hover { background: rgba(255, 255, 255, .03); }
.set-row .mi { width: 24px; text-align: center; font-size: 16px; }
.set-row .val { margin-inline-start: auto; color: var(--text-faint); font-size: 13px; font-weight: 500; }
.set-row .chev { color: var(--text-faint); margin-inline-start: auto; }
.set-row .val + .chev { margin-inline-start: 0; }
.set-row.danger { color: var(--accent); justify-content: center; }
.wallet-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-elev); border-radius: 16px; padding: 16px 18px;
}
.wallet-strip .lbl { font-size: 11px; letter-spacing: .1em; color: var(--text-faint); font-weight: 800; text-transform: uppercase; }
.wallet-strip .bal { font-size: 21px; font-weight: 800; color: var(--gold); margin-top: 2px; }
.vip-chip {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(100deg, var(--gold), var(--accent-2)); color: #1a1005;
  border-radius: 999px; padding: 3px 8px; vertical-align: middle;
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 30px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 30px 22px calc(40px + var(--sab));
  display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between;
  color: var(--text-faint); font-size: 13px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a:hover, .footer-links button:hover { color: var(--accent); }
.footer-links button { color: inherit; font-size: inherit; }
.footer-note { width: 100%; font-size: 12px; color: var(--text-faint); }

/* ---------- help & feedback ---------- */
.page-back { display: inline-block; color: var(--text-dim); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.page-back:hover { color: var(--text); }
.page-sub { color: var(--text-dim); font-size: 14px; line-height: 1.55; max-width: 560px; margin-bottom: 20px; }
.feedback-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
/* An explicit display beats the browser's own [hidden] rule, so the sent form
   stayed on screen above its own success message. */
.feedback-form[hidden] { display: none; }
.feedback-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.feedback-form .req { color: var(--accent); }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  padding: 12px 14px; color: var(--text); font-size: 15px; outline: none; width: 100%;
  /* iOS zooms into any field smaller than 16px; keep the page where it is. */
  font-size: max(15px, 16px);
}
.feedback-form select { appearance: auto; }
.feedback-form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus { border-color: var(--accent); }
.feedback-note { color: var(--text-faint); font-size: 12px; line-height: 1.5; }
.feedback-done h2 { color: var(--text); margin-bottom: 6px; }
.feedback-done .big { color: #4cd97b; }

/* ---------- bottom tab bar (phones) ---------- */
/* Exists only where the menu drawer was the sole way around: a phone. It is a
   fixed strip under the page, so the page keeps the strip's height clear at the
   bottom and the toast rises above it. It leaves while an episode plays — the
   picture owns that screen — and the footer, which is website chrome, gives way
   to it entirely. */
.tabbar { display: none; }
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--text-faint); font-size: 10.5px; font-weight: 600; position: relative;
  min-width: 0; transition: color .15s;
}
.tab-item svg { width: 23px; height: 23px; fill: currentColor; }
.tab-item.active { color: var(--accent); }
.tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 4px; }
.tab-dot {
  position: absolute; top: 7px; left: calc(50% + 6px); width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); border: 2px solid var(--bg);
}
/* Coins waiting on the Rewards tab, as a number rather than a dot. */
.tab-bubble {
  position: absolute; top: 4px; left: calc(50% + 4px);
  font-size: 9.5px; font-weight: 800; line-height: 1; padding: 3px 5px; border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #fff;
  border: 2px solid var(--bg); white-space: nowrap;
}
@media (max-width: 720px) {
  .tabbar {
    position: fixed; bottom: 0; inset-inline: 0; z-index: 70; display: flex;
    height: calc(var(--tabbar-h) + var(--sab)); padding-bottom: var(--sab);
    padding-inline: var(--sal) var(--sar);
    background: rgba(11, 11, 18, .92);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, .06);
  }
  body.watching .tabbar, body.theater .tabbar { display: none; }
  .view { padding-bottom: calc(var(--tabbar-h) + var(--sab)); }
  body.watching .view { padding-bottom: 0; }
  .footer { display: none; }
  /* body: the base .toast rule comes later in the file and would win. */
  body .toast { bottom: calc(var(--tabbar-h) + var(--sab) + 16px); }
  body.watching .toast { bottom: calc(28px + var(--sab)); }
  /* Sheets rise from the bottom edge on a phone, where the thumb is. The ones
     with a text field stay near the top so the keyboard does not cover them. */
  .drawer-scrim:not(:has(input:not(:where([type=checkbox])))) { align-items: flex-end; padding: 0; }
  .drawer-scrim:not(:has(input:not(:where([type=checkbox])))) .drawer {
    width: 100%; max-width: none; border-radius: 22px 22px 0 0; border-bottom: 0;
    padding-bottom: calc(22px + var(--sab)); max-height: 84dvh;
    animation: sheetUp .24s ease both;
  }
  .drawer-scrim:not(:has(input:not(:where([type=checkbox])))) .drawer .handle {
    display: block; width: 38px; height: 4px; border-radius: 2px; margin: -8px auto 4px;
    background: rgba(255, 255, 255, .18);
  }
}
@keyframes sheetUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Inside the native shell the footer is gone at every width. */
.in-app .footer { display: none; }

/* ---------- inside the app, nothing is a document ----------
   Holding a poster in an app does nothing, or does something the app chose.
   In a web view it selects a title word by word, raises the Copy / Look Up /
   Share bar over the screen, and offers to drag the cover out — three answers
   to a question nobody asked, each one announcing that this is a page.

   Only in the shell: on the open web the same portal is a site, and a site
   whose text cannot be selected is a hostile one. The rule is written on the
   things a viewer reads rather than on everything, so anything that arrives
   later and genuinely wants selecting is unaffected until it is listed. */
.in-app body,
.in-app .card, .in-app .rail, .in-app .hero, .in-app .tabbar,
.in-app .panel, .in-app .sheet, .in-app .drawer, .in-app .modal,
.in-app .stage, .in-app .topbar, .in-app button, .in-app a {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Fields have to be editable at all. The support ID is not listed here: it has
   a copy button that puts it on the clipboard and says so, and restoring the
   selection would restore the grey Copy / Look Up bar with it — the exact thing
   being removed, in the one place it is least needed. */
.in-app input, .in-app textarea, .in-app [contenteditable] {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  user-select: text;
}

/* A cover is part of the layout and a poster is a place to go, not a file and
   not an address. Holding either and moving used to lift it out of the page as
   something to drop into another app. */
.in-app img, .in-app a { -webkit-user-drag: none; user-drag: none; }

/* A sheet that has run out of list does not hand the drag back to the feed
   underneath — in an app the list simply stops, and the page behind a sheet is
   not somewhere a finger can reach. */
.in-app .drawer, .in-app .modal, .in-app .ep-list,
.in-app .lang-list, .in-app .cc-menu-list, .in-app .stage-overlay,
.in-app .rail, .in-app .continue-row, .in-app .marquee {
  overscroll-behavior: contain;
}

/* Changing tab is not scrolling. Smooth behaviour turns every route change into
   the old screen sliding away under the new one, which is a page moving, not a
   screen being replaced. */
.in-app { scroll-behavior: auto; }

/* ---------- toast / modal / sheets ---------- */
.toast {
  position: fixed; bottom: calc(28px + var(--sab)); left: 50%; transform: translate(-50%, 16px); z-index: 200;
  background: #22222f; color: var(--text); border-radius: 12px; padding: 12px 20px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s; box-shadow: 0 10px 34px rgba(0, 0, 0, .5);
  width: max-content; max-width: min(480px, 90vw); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal-scrim, .drawer-scrim {
  position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .66);
  display: flex; align-items: center; justify-content: center;
  padding: calc(20px + var(--sat)) 20px calc(20px + var(--sab));
  animation: fadeIn .18s ease both;
}
/* A confirmation is always asked from something already open — the top-up
   sheet stays under its pack confirm and closes on success — so it sits above
   sheets (150) and the onboarding picker (160), and below the toast (200). */
.modal-scrim { z-index: 170; }
.modal {
  background: var(--bg-elev); border-radius: 20px; padding: 28px 24px 22px;
  width: min(420px, 100%); text-align: center; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
  max-height: calc(100dvh - var(--sat) - var(--sab) - 40px); overflow-y: auto;
}
.modal .m-ico { font-size: 38px; }
.modal h3 { font-size: 19px; }
.modal p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.drawer {
  background: var(--bg-elev); border-radius: 20px; padding: 26px 22px 22px;
  width: min(460px, 100%); overflow-y: auto; position: relative;
  max-height: min(86dvh, calc(100dvh - var(--sat) - var(--sab) - 40px));
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid rgba(255, 255, 255, .07);
}
.drawer .handle { display: none; }
.pw-close {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .08);
  color: var(--text-dim); font-size: 14px;
}
.pw-close:hover { color: var(--text); }
.daily-sheet h3 { font-size: 19px; }
.daily-sub { color: var(--text-dim); font-size: 13.5px; }
.daily-sheet .daily-grid { margin: 6px 0 4px; }
.daily-closing { animation: fadeOut .18s ease both; }
@keyframes fadeOut { to { opacity: 0; } }

/* auth sheet */
.auth-sheet .auth-brand {
  font-size: 19px; font-weight: 800;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-sheet h3 { font-size: 20px; }
.auth-sub { color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.auth-providers { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.auth-provider {
  display: flex; align-items: center; gap: 12px; background: var(--bg-card);
  border-radius: 12px; padding: 13px 16px; font-size: 14.5px; font-weight: 600;
}
.auth-provider:disabled { opacity: .5; cursor: default; }
.auth-provider .provider-mark { width: 22px; text-align: center; font-weight: 800; }
.auth-provider .provider-soon { margin-inline-start: auto; font-size: 11px; color: var(--text-faint); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-faint); font-size: 12px; margin: 4px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.auth-email { background: var(--bg-card); border-radius: 12px; padding: 13px 16px; font-size: 14.5px; font-weight: 600; text-align: center; }
.auth-email:disabled { opacity: .5; cursor: default; }
.auth-guest { color: var(--text-dim); font-size: 13.5px; padding: 8px; }
.auth-legal { color: var(--text-faint); font-size: 11.5px; line-height: 1.5; text-align: center; }
/* The sentence names the Terms and the Privacy Policy, so it opens them. */
.auth-legal a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 2px; }
.auth-api-note { color: var(--text-faint); font-size: 12px; text-align: center; }
.auth-back { align-self: flex-start; color: var(--text-dim); font-size: 13.5px; font-weight: 600; }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--text-dim); text-align: start; }
.auth-form input {
  background: var(--bg-card); border: 1px solid rgba(255, 255, 255, .1); border-radius: 11px;
  padding: 12px 14px; color: var(--text); font-size: 15px; outline: none;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-code { text-align: center; letter-spacing: .4em; font-size: 20px !important; font-weight: 800; }
.auth-form-error { color: var(--accent); font-size: 12.5px; }
.auth-dev-note, .auth-dev-link { font-size: 12.5px; color: var(--text-faint); text-align: center; }
.auth-resend { color: var(--text-dim); font-size: 13px; padding: 6px; }
.auth-resend:disabled { opacity: .55; cursor: default; }

/* notifications panel */
.notif-pop {
  position: fixed; top: calc(var(--topbar-h) + var(--sat) + 8px); inset-inline-end: 18px; z-index: 120;
  width: min(390px, calc(100vw - 36px)); max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--bg-elev); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); padding: 8px;
  animation: viewIn .2s ease both;
}
.notif-pop h4 { padding: 10px 12px 6px; font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }
.notif-item {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; width: 100%;
  padding: 11px 12px; border-radius: 12px; text-align: start; align-items: start;
}
.notif-item:hover { background: var(--bg-card); }
.notif-item .n-ico { font-size: 19px; }
.notif-item .n-t { font-size: 13.5px; font-weight: 700; display: block; }
.notif-item .n-b { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; display: block; margin-top: 2px; }
.notif-item .n-time { font-size: 11px; color: var(--text-faint); }
.notif-item.unread .n-t::after {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-inline-start: 7px; vertical-align: middle;
}

/* language modal */
.language-options { display: flex; flex-direction: column; gap: 4px; }
.language-option {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px;
  font-size: 14.5px; width: 100%; text-align: start;
}
.language-option:hover { background: var(--bg-card); }
.language-option.active { color: var(--accent); font-weight: 700; }
.language-check { margin-inline-start: auto; }
.language-device { font-size: 11px; color: var(--text-faint); margin-inline-start: auto; }
.language-option.active .language-device { margin-inline-start: 8px; }
.lang-search { display: flex; align-items: center; gap: 9px; background: var(--bg-card); border-radius: 11px; padding: 10px 13px; }
.lang-search svg { width: 16px; height: 16px; stroke: var(--text-faint); }
.lang-search input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 14px; }
/* Only the list scrolls: the title and the search stay where they are, and the
   list takes whatever height the sheet has rather than a fixed share of the
   screen that left a dead band under it on a tall phone. */
.lang-sheet { overflow: hidden; height: min(640px, calc(100dvh - var(--sat) - var(--sab) - 40px)); }
.lang-list { overflow-y: auto; flex: 1 1 auto; min-height: 0; margin-inline: -8px; padding-inline: 8px; }

/* onboarding genre picker */
.onboard-scrim {
  position: fixed; inset: 0; z-index: 160; background: rgba(4, 4, 9, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: calc(20px + var(--sat)) max(20px, var(--sar)) calc(20px + var(--sab)) max(20px, var(--sal));
  animation: fadeIn .2s ease both;
  /* A drag anywhere but the chip list must not scroll the page behind. */
  touch-action: none; overscroll-behavior: contain;
}
/* The catalog decides how many genres there are, and at 38 the sheet grew to
   1,300px inside an 812px phone: centred, it lost its title off the top and
   its buttons off the bottom, and nothing in a fixed scrim scrolls. The sheet
   is now capped at the screen, and only the chips scroll between a heading
   and buttons that always stay in reach. */
.onboard {
  background: var(--bg-elev); border-radius: 22px; padding: 30px 26px;
  width: min(480px, 100%); max-height: 100%; min-height: 0;
  text-align: center; display: flex; flex-direction: column; gap: 14px;
  /* Normally only the chips scroll. When even the heading and the buttons do
     not fit — a phone on its side — the whole sheet scrolls instead, so Skip
     is never out of reach. */
  overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
}
.onboard > * { flex-shrink: 0; }
.onboard > .ob-grid {
  flex: 0 1 auto; min-height: 96px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  /* A fade that says there is more above or below, with padding as deep as
     each fade so the first and last rows sit clear of it once scrolled to. */
  padding: 10px 2px 18px; margin: -10px -2px -8px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 18px), transparent 100%);
}
@media (max-height: 500px) {
  .onboard { padding: 14px 18px; gap: 8px; }
  .onboard .ob-logo, .onboard > p { display: none; }
  .onboard h2 { font-size: 18px; }
  .onboard > .ob-grid { min-height: 64px; }
}
.ob-logo {
  font-size: 21px; font-weight: 800;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.onboard p { color: var(--text-dim); font-size: 13.5px; }
.ob-grid { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
.ob-chip {
  border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 700;
  background: var(--bg-card); color: var(--text-dim); border: 1px solid transparent;
}
.ob-chip.on { background: rgba(255, 61, 110, .14); border-color: var(--accent); color: var(--text); }
@media (max-width: 720px) {
  .onboard-scrim { padding: calc(12px + var(--sat)) max(12px, var(--sar)) calc(12px + var(--sab)) max(12px, var(--sal)); }
  .onboard { padding: 22px 16px 16px; gap: 11px; border-radius: 18px; }
  .onboard h2 { font-size: 20px; }
  .ob-grid { gap: 7px; }
  .ob-chip { padding: 8px 14px; font-size: 13px; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .panel { max-height: none; }
  .ep-list { max-height: 380px; }
  .must-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --topbar-h: 58px; }
  .wrap, .section-head, .crumbs, .grid, .must { padding-inline: 16px; }
  .topbar-inner { padding-inline: max(16px, var(--sal)) max(16px, var(--sar)); }
  .rail { padding-inline: 16px; scroll-padding-inline-start: 16px; }
  .marquee { padding-inline: 16px; }
  .hero-inner { grid-template-columns: 1fr; padding: 34px 16px 54px; gap: 22px; }
  .hero-art { width: 100%; max-width: 240px; margin: 0 auto; order: -1; }
  .hero-copy { text-align: center; }
  .hero-copy p { margin-inline: auto; }
  .hero-meta { justify-content: center; }
  .hero-slide { min-height: 0; }
  .hero-arrow { display: none; }
  .cta-pill span { display: none; }
  .cta-pill { padding: 9px 12px; }
  /* Search and the reading tracker stay reachable from the menu drawer; the
     row has to fit a 360px phone, and it did not — the logo and the menu
     button were being clipped at both ends. */
  .topbar-actions a[href="#/search"],
  .topbar-actions .tracker-badge { display: none; }
  .topbar-inner, .topbar-actions { gap: 8px; }
  .brand { font-size: 18px; }
  .coin-pill { padding: 7px 10px; font-size: 12.5px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 11px; }
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  /* The top-up sheet shows exactly three, side by side, so the eye compares
     them; the tiles slim down to fit a narrow phone. */
  .topup-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .topup-card { padding: 12px 6px 10px; }
  .topup-card .p-bonus, .topup-card .p-eps { font-size: 10px; }
  .topup-card .p-coins { font-size: 14px; }
  .daily-grid { gap: 5px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* "Show N more" closes a browse grid; as a grid child it must span the row
   rather than take the next card's slot. */
.grid-more { grid-column: 1 / -1; margin-top: 4px; }

/* Upcoming premiere: the same two-column shape as the watch page, so an
   announced title reads as part of the catalog rather than an error state. */
.premiere {
  max-width: var(--max-w); margin: 0 auto; padding: 4vh 22px 6vh;
  display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 34px; align-items: center;
}
.premiere-art { border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 3; background: var(--bg-card); }
.premiere-art img, .premiere-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.premiere-copy h1 { font-size: clamp(28px, 4vw, 44px); margin: 10px 0 12px; letter-spacing: -.02em; }
.premiere-copy p { color: var(--text-dim); max-width: 62ch; }
.premiere-badge { display: inline-block; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(100deg, var(--accent), var(--accent-2)); }
.premiere-note { color: var(--text); margin-top: 14px; }
.premiere-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 760px) {
  .premiere { grid-template-columns: 1fr; gap: 20px; padding-top: 3vh; }
  .premiere-art { max-width: 220px; }
}

/* The premiere page's own shape. The two-column grid above is the watch page's,
   and it suits a page whose left column is a video; here the left column is a
   poster the viewer has already seen on the shelf they came from, and stacking
   it pushed the only button on the page below the fold. The poster shares a row
   with the badge and the name, the button follows immediately, and the synopsis
   folds — so the screen opens on the thing the viewer came to do. */
.premiere-compact { display: block; }
.premiere-compact .premiere-head {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start;
}
.premiere-compact .premiere-art { max-width: none; }
.premiere-compact .premiere-badge { font-size: 11px; padding: 5px 10px; }
.premiere-compact h1 { font-size: clamp(22px, 3.4vw, 34px); line-height: 1.14; margin: 9px 0 0; }
.premiere-compact .panel-tags { margin-top: 10px; }
/* The genres beyond the first two are a count, not five pills: at full length
   they wrapped to a second row and were the loudest thing on the screen. */
.premiere-compact .tag.rest { color: var(--text-dim); }
.premiere-compact .premiere-actions { margin-top: 16px; }
.premiere-compact .premiere-actions .btn-primary { flex: 1; justify-content: center; }
.premiere-compact .synopsis { color: var(--text-dim); font-size: 14px; line-height: 1.6; margin: 16px 0 0; }
.premiere-compact .synopsis.clamped {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.premiere-compact .more-toggle { display: block; margin-top: 6px; }
.premiere-compact .premiere-note { margin-top: 12px; font-size: 13.5px; color: var(--text-faint); }
/* The block's 6vh tail is there to end the page. When a shelf follows it the
   page does not end, and that tail read as a seam between two unrelated
   screens; browsers without :has() keep the original spacing. */
.premiere-compact:has(+ .section) { padding-bottom: 26px; }
@media (min-width: 761px) {
  .premiere-compact { max-width: 760px; }
  .premiere-compact .premiere-head { grid-template-columns: 200px minmax(0, 1fr); gap: 26px; }
  /* Off the phone the button stops being the width of the page: a save action
     stretched across 700px reads as a banner rather than as a button. */
  .premiere-compact .premiere-actions .btn-primary { flex: 0 0 auto; }
}

/* ---------- subscription-only shelf ---------- */
/* Sits in the shelf heading, so the shelf explains itself to someone who
   cannot open anything on it yet. */
.rail-upsell {
  margin-left: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--gold); text-decoration: none; vertical-align: 1px;
}
.rail-upsell:hover { text-decoration: underline; }

/* ---------- the studio's timed offer ---------- */
/* Drawn only from a server-set end time: when the clock runs out the band
   removes itself rather than sitting at zero. */
.offer-band {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255, 201, 77, .14), rgba(255, 61, 110, .12));
  border: 1px solid rgba(255, 201, 77, .34);
}
.offer-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.offer-pct {
  flex: none; font-weight: 800; font-size: 15px; color: #1a1a28;
  background: var(--gold); border-radius: 999px; padding: 3px 10px;
}
.offer-note { color: var(--text); font-size: 14px; line-height: 1.35; }
.offer-clock { display: flex; align-items: baseline; gap: 7px; flex: none; }
.offer-clock-label { color: var(--text-dim); font-size: 12px; }
.offer-clock-value {
  font-size: 17px; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}

/* ---------- mission progress ---------- */
/* Only multi-step missions get a bar; a bar for a single yes/no step is noise. */
.m-bar {
  display: block; height: 4px; margin-top: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); overflow: hidden;
}
.m-bar > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width .35s ease;
}
.mission-row.done .m-bar > i { background: var(--text-faint); }

@media (prefers-reduced-motion: reduce) { .m-bar > i { transition: none; } }

@media (max-width: 760px) {
  .offer-band { padding: 11px 13px; gap: 10px; }
  .offer-note { font-size: 13px; }
  .offer-clock-value { font-size: 15px; }
}

/* ---------- driven by a thumb ----------
   This layout was drawn for a mouse and now ships as a phone app, where a few
   of its assumptions stop holding: hover is not a state a finger can enter, a
   text link is not a target, and the keyboard takes a third of the screen. */
@media (pointer: coarse) {
  /* iOS zooms the page in when a field smaller than 16px takes focus. In a
     browser the viewer can pinch back out; in the app there is no chrome to
     reset it, so the whole full-bleed layout stays wider than the screen and
     the sticky topbar hangs off the edge. 16px is the price of not zooming. */
  .search-bar input,
  .lang-search input,
  .auth-form input,
  input, select, textarea { font-size: 16px; }

  /* The Originals strip slides forever and pauses on hover, which never
     arrives; while it animates its overflow is clipped, so it cannot be
     swiped either and a title only comes back round on the next loop. On a
     touchscreen it is a better shelf standing still. */
  .marquee:has(.is-scrolling) { overflow-x: auto; }
  .marquee-track.is-scrolling { animation: none; }
  [dir="rtl"] .marquee-track.is-scrolling { animation-name: none; }

  /* Sheets that focus a field open centred on a screen whose bottom third the
     keyboard is about to cover — which put the lower half of a 68-language
     list somewhere the viewer could scroll to but never see. Anchor those to
     the top and let the keyboard have the bottom. */
  .modal-scrim:has(input:not(:where([type=checkbox]))), .drawer-scrim:has(input:not(:where([type=checkbox]))) { align-items: flex-start; }

  /* The language sheet follows the visible viewport instead (set from
     visualViewport while it is open), so with the keyboard up it ends at the
     keyboard and every row stays reachable. */
  .drawer-scrim.lang-scrim { top: var(--vv-top, 0px); bottom: auto; height: var(--vv-h, 100%); }

  /* Under the full-height stage these two are the first things a viewer
     reaches for, and both were bare 12.5px text with no padding at all. */
  .more-toggle, .panel-meta .like-btn { min-height: 44px; padding-block: 11px; }
}

/* On a phone the language picker is a sheet from the bottom edge, full height
   under the status bar, the way the system presents a list this long. */
@media (max-width: 720px) {
  .drawer-scrim.lang-scrim { align-items: flex-end; padding: calc(10px + var(--sat)) 0 0; }
  .lang-sheet {
    width: 100%; height: 100%; max-height: none;
    border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: 0;
    animation: sheetUp .24s ease both;
  }
  .lang-sheet .lang-list { padding-bottom: calc(14px + var(--sab)); }
}
@media (prefers-reduced-motion: reduce) { .lang-sheet { animation: none; } }

/* Most of the catalog is announced rather than released, so the shelf says so
   on the poster. Gold rather than the accent pink, which already means "new
   and watchable" on the badge beside it. */
.card-badge.soon {
  /* Same reason as .card-views: one backdrop root per card is not worth 4px of
     frost behind a chip. */
  background: rgba(12, 12, 20, .9); color: var(--gold);
  border: 1px solid rgba(255, 201, 77, .5);
}

/* The plain-HTML description in index.html, for readers that run no script.
   sitegate.js marks <html class="js"> before the section is parsed. */
html.js .static-about { display: none; }
.static-about { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; color: var(--text); line-height: 1.6; }
.static-about h1 { font-size: 26px; margin-bottom: 12px; }
.static-about p, .static-about ul { margin: 0 0 14px; }
.static-about ul { padding-left: 22px; }
.static-about a { color: #ff3d6e; }
