/* RewindClan web: the app's Midnight look by default, Light on a toggle.
   Modern and clean first; the VHS stripe and ◀◀ are the only retro touches. */
:root, [data-theme="midnight"] {
  --bg: #0b1230; --bg2: #101a40; --surface: #131d47; --surface2: #1b2a5e;
  --line: rgba(255,255,255,.08); --tint: 255,255,255;
  --ink: #f2efe8; --ink-soft: #d6d3cd; --ink-dim: #aab0cc; --ink-faint: #7a82a8;
  --accent: #f5b83d; --accent-deep: #f2792b; --on-accent: #14172a;
  --mint: #3fb67a; --rose: #ff6a5e; --blue: #3b7be0; --red: #e0362f;
  --shadow: 0 18px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f4f0; --bg2: #fbfaf7; --surface: #ffffff; --surface2: #ecebe4;
  --line: #e2dfd7; --tint: 0,0,0;
  --ink: #16182a; --ink-soft: #33364a; --ink-dim: #5e6276; --ink-faint: #8c90a3;
  --accent: #b5740c; --accent-deep: #c4561a; --on-accent: #ffffff;
  --mint: #1f9a5e; --rose: #e5483c; --blue: #2a67c9;
  --shadow: 0 14px 34px rgba(20,22,40,.14);
  color-scheme: light;
}
:root { --serif: "Fraunces", Georgia, serif; --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif; --radius: 16px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em, h3 em, .logo em { font-style: italic; font-weight: 500; color: var(--accent); }
p { margin: 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--ink-dim); }
.stripe { display: flex; height: 4px; width: 180px; border-radius: 2px; overflow: hidden; }
.stripe i { flex: 1; } .stripe i:nth-child(1){background:#e0362f}.stripe i:nth-child(2){background:#f2792b}.stripe i:nth-child(3){background:#f5b83d}.stripe i:nth-child(4){background:#3fb67a}.stripe i:nth-child(5){background:#3b7be0}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 700 15px var(--sans); transition: transform .12s, filter .12s; }
.btn:hover { color: var(--on-accent); filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(var(--tint),.28); }
.btn-ghost:hover { color: var(--ink); background: rgba(var(--tint),.06); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(var(--tint),.08); color: var(--ink); white-space: nowrap; }
.chip:hover { background: rgba(var(--tint),.14); color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { font: 800 23px var(--serif); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.logo:hover { color: var(--ink); }
.main-nav { display: flex; gap: 20px; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--ink-dim); }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.header-search { position: relative; margin-left: auto; }
.header-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--ink-faint); stroke-width: 2; }
.header-search input { width: 240px; height: 38px; padding: 0 14px 0 36px; border-radius: 999px; border: 1px solid var(--line); background: rgba(var(--tint),.05); color: var(--ink); font: 14px var(--sans); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink-dim); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 920px) { .main-nav { display: none; } .header-search input { width: 160px; } }
@media (max-width: 560px) { .header-app { display: none; } .header-search input { width: 120px; } }

/* Section heads */
.section { padding: 64px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head a.more { font-weight: 700; color: var(--accent); white-space: nowrap; font-size: 15px; }

/* Posters */
.poster { display: block; }
.poster-img { display: block; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--surface2); box-shadow: var(--shadow); position: relative; }
.poster-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.poster:hover .poster-img img { transform: scale(1.04); }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 10px; text-align: center; font: 700 15px var(--serif); color: var(--ink-dim); }
.poster-cap { display: block; margin-top: 10px; }
.poster-cap strong { display: block; font: 700 15px/1.25 var(--sans); color: var(--ink); }
.poster-cap small { display: block; margin-top: 3px; font-size: 13px; color: var(--accent); font-weight: 600; }
.poster-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; }
@media (max-width: 1000px) { .poster-row { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 700px) { .poster-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; } .poster-row > * { flex: 0 0 38%; scroll-snap-align: start; } }
.rank { position: absolute; left: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 800 14px var(--sans); z-index: 1; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 70px; isolation: isolate; }
.hero-wall { position: absolute; inset: -40px -10%; z-index: -2; display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; transform: rotate(-6deg); opacity: .62; }
.hero-wall img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 45%, color-mix(in srgb, var(--bg) 70%, transparent), var(--bg) 82%), linear-gradient(to bottom, transparent 60%, var(--bg)); }
.hero-inner { text-align: center; }
.hero h1 { font-size: clamp(42px, 7vw, 78px); margin: 14px auto 0; max-width: 14ch; }
.hero-search { margin: 30px auto 0; max-width: 640px; display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 17px var(--sans); padding: 0 18px; }
.hero-search input:focus { outline: none; }
.vibes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.hero-sub { margin: 18px auto 0; max-width: 560px; color: var(--ink-soft); font-size: 18px; }

/* Live ticker */
.ticker { border-block: 1px solid var(--line); background: rgba(var(--tint),.03); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 34px; padding: 12px 0; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick-item { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-dim); }
.tick-item img { width: 22px; height: 33px; object-fit: cover; border-radius: 3px; }
.tick-item b { color: var(--ink); font-weight: 600; }
.tick-item i { color: var(--ink); font-style: italic; font-family: var(--serif); font-weight: 600; }
.live-dot { color: var(--rose); font-weight: 800; letter-spacing: .12em; font-size: 12px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.prompt-card { padding: 26px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); }
.prompt-card h3 { font-size: 30px; margin: 10px 0 18px; }

.airing { padding: 20px 22px; }
.airing-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.airing-row:first-of-type { border-top: 0; }
.airing-row img { width: 40px; height: 60px; border-radius: 6px; object-fit: cover; }
.airing-row .what { flex: 1; min-width: 0; }
.airing-row strong { display: block; }
.airing-row small { color: var(--ink-dim); }
.airing-row .when { text-align: right; font-weight: 700; }
.airing-row .when small { display: block; font-weight: 400; }

/* Community band */
.band { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.band h2 { font-size: clamp(34px, 4.6vw, 54px); margin-top: 12px; }
.band p.lead { margin-top: 16px; color: var(--ink-dim); font-size: 18px; max-width: 34ch; }
.band .ctas { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }
.feed { display: grid; gap: 14px; }
.act { display: grid; grid-template-columns: 74px 1fr; gap: 16px; padding: 16px; position: relative; overflow: hidden; }
.act::before { content: ""; position: absolute; inset: 0; background: var(--glow, transparent); opacity: .22; filter: blur(40px); z-index: 0; }
.act > * { position: relative; }
.act img { width: 74px; height: 111px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.act .who { font-size: 14px; color: var(--ink-dim); }
.act .who b { color: var(--ink); }
.act h3 { font-size: 22px; font-style: italic; margin: 4px 0 6px; }
.act .note { color: var(--ink-soft); font-size: 15px; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.pen { font-style: italic; }

/* Clubs */
.clubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 900px) { .clubs { grid-template-columns: repeat(2, 1fr); } }
.club { display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; padding: 18px; border-radius: var(--radius); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--c1, #3b7be0), var(--c2, #1b2a5e)); }
.club:hover { color: #fff; transform: translateY(-2px); }
.club img { position: absolute; right: -10px; top: 14px; width: 74px; border-radius: 6px; transform: rotate(8deg); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.club small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .8; }
.club strong { font: 800 22px/1.1 var(--serif); margin-top: 4px; max-width: 70%; }
.club span { font-size: 13px; opacity: .85; margin-top: 6px; }

/* App band */
.app-band { margin-top: 72px; padding: 46px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 80% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--surface); }
.app-band h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 12px; }
.app-band p { margin-top: 14px; color: var(--ink-dim); font-size: 17px; max-width: 46ch; }
.app-band .ctas { display: flex; align-items: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.app-band .phone { justify-self: center; width: min(280px, 80%); border-radius: 36px; box-shadow: var(--shadow); transform: rotate(4deg); }
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 12px; background: #000; color: #fff; }
.store-badge:hover { color: #fff; }
.store-badge small { display: block; font-size: 10px; letter-spacing: .06em; opacity: .8; }
.store-badge b { display: block; font-size: 19px; line-height: 1; }
@media (max-width: 860px) { .app-band { grid-template-columns: 1fr; padding: 30px; } }

/* Blog cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .posts { grid-template-columns: 1fr; } }
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card .cover { aspect-ratio: 16/9; background: var(--surface2) center/cover; }
.post-card .body { padding: 18px; }
.post-card h3 { font-size: 21px; }
.post-card p { margin-top: 8px; color: var(--ink-dim); font-size: 15px; }
.post-card small { display: block; margin-top: 12px; color: var(--ink-faint); font-size: 13px; }

/* Footer */
.site-footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 48px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-brand p { margin: 12px 0 16px; color: var(--ink-dim); max-width: 40ch; }
.footer-brand a:not(.logo) { color: var(--accent); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.footer-cols a { display: block; padding: 4px 0; color: var(--ink-dim); }
.footer-small { margin-top: 30px; font-size: 13px; color: var(--ink-faint); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* Empty / error pages */
.empty-page { padding: 120px 0 40px; text-align: center; }
.empty-page h1 { font-size: clamp(40px, 6vw, 64px); margin: 12px 0 14px; }
.empty-page p { color: var(--ink-dim); margin-bottom: 24px; }

/* Title page */
.title-page { position: relative; }
.title-backdrop { position: absolute; inset: 0 0 auto; height: 620px; background: center 20%/cover; filter: blur(48px) saturate(1.2); opacity: .45; z-index: -1; transform: scale(1.1); }
.title-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg)); }
.title-top { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-top: 56px; align-items: start; }
.title-poster img, .title-poster .poster-fallback { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.55); position: relative; }
.title-info h1 { font-size: clamp(40px, 6vw, 68px); margin: 8px 0 0; }
.tagline { font: italic 500 20px var(--serif); color: var(--ink-soft); margin-top: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.facts span { padding: 5px 12px; border-radius: 999px; background: rgba(var(--tint),.08); font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.facts .rated { box-shadow: inset 0 0 0 1.5px rgba(var(--tint),.35); background: none; }
.scores { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.score { padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-width: 92px; }
.score b { display: block; font: 800 24px var(--serif); }
.score small { color: var(--ink-dim); font-size: 12px; }
.score.ours { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.synopsis { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 64ch; }
.title-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.trailer { margin-top: 22px; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.trailer iframe { width: 100%; height: 100%; border: 0; }
.title-body { display: grid; grid-template-columns: 1fr 340px; gap: 40px; margin-top: 56px; }
.block { margin-bottom: 44px; }
.block h2 { font-size: 30px; margin-bottom: 16px; }
.cast { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.cast span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.season { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.season-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-size: 17px; }
.episodes { list-style: none; margin: 0; padding: 0 0 6px; }
.episodes li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.episodes .num { font: 600 13px ui-monospace, Menlo, monospace; color: var(--ink-faint); padding-top: 2px; }
.episodes strong { display: block; }
.episodes small { color: var(--ink-faint); font-size: 13px; }
.episodes .upcoming small { color: var(--mint); font-weight: 700; }
.ep-sum { display: block; margin-top: 4px; color: var(--ink-dim); font-size: 14px; }
.quote { margin: 0 0 14px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; font: italic 500 19px/1.45 var(--serif); }
.quote cite { display: block; margin-top: 8px; font: 600 13px var(--sans); color: var(--ink-dim); font-style: normal; }
.trivia { padding-left: 20px; color: var(--ink-soft); }
.trivia li { margin-bottom: 10px; }
.order { padding-left: 22px; } .order li { margin-bottom: 6px; } .order li.this a { color: var(--accent); font-weight: 700; }
.title-side { display: grid; gap: 16px; align-content: start; }
.side-card { padding: 20px; }
.side-card h3 { font-size: 24px; margin: 6px 0 4px; }
.side-card .btn { margin-top: 14px; }
.watchers { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-dim); }
.watchers b { color: var(--ink); }
.app-nudge p:not(.kicker) { margin-top: 8px; color: var(--ink-dim); }
@media (max-width: 900px) {
  .title-top { grid-template-columns: 1fr; gap: 24px; } .title-poster { max-width: 240px; }
  .title-body { grid-template-columns: 1fr; }
}

/* Grids, chips, pager */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 18px; }
@media (max-width: 560px) { .poster-grid { grid-template-columns: repeat(3, 1fr); gap: 18px 12px; } .poster-cap strong { font-size: 13px; } }
.chip.on { background: var(--accent); color: var(--on-accent); }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 40px; }

/* Blog */
.lead-post { display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; margin-top: 30px; }
.lead-post .cover { min-height: 320px; background: var(--surface2) center/cover; }
.lead-post .body { padding: 34px; align-self: center; }
.lead-post h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.lead-post p { margin-top: 12px; color: var(--ink-dim); font-size: 17px; }
.lead-post small { display: block; margin-top: 16px; color: var(--ink-faint); }
@media (max-width: 800px) { .lead-post { grid-template-columns: 1fr; } .lead-post .cover { min-height: 200px; } }
.article { max-width: 760px; padding-top: 56px; }
.article .kicker a { color: var(--accent); }
.article h1 { font-size: clamp(38px, 6vw, 60px); margin-top: 12px; }
.standfirst { margin-top: 16px; font: 500 21px/1.5 var(--serif); color: var(--ink-soft); }
.byline { margin-top: 18px; color: var(--ink-dim); font-size: 15px; }
.byline b { color: var(--ink); }
.article-cover { width: 100%; border-radius: 16px; margin-top: 28px; box-shadow: var(--shadow); }
.article-body { margin-top: 32px; font-size: 19px; line-height: 1.75; color: var(--ink-soft); }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: 32px; margin-top: 1.6em; color: var(--ink); }
.article-body h3 { font-size: 24px; margin-top: 1.4em; color: var(--ink); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 3px solid var(--accent); font: italic 500 22px/1.5 var(--serif); color: var(--ink); }
.article-body img { border-radius: 12px; }
.article-body strong { color: var(--ink); }
.embed-card { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none !important; }
.embed-card img { width: 64px; height: 96px; object-fit: cover; border-radius: 8px; }
.embed-card small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.embed-card strong { display: block; font: 800 21px var(--serif); color: var(--ink); }
.embed-card em { display: block; font-style: normal; font-size: 14px; color: var(--ink-dim); line-height: 1.45; margin-top: 2px; }
.embed-icon { width: 64px; height: 64px; display: grid; place-items: center; font-size: 28px; border-radius: 12px; background: var(--surface2); }
.draft-note { background: var(--rose); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 700; display: inline-block; }

/* Home v2 */
.home-top { padding: 54px 0 34px; background: radial-gradient(ellipse 70% 120% at 50% 0%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 70%); }
.home-top h1 { font-size: clamp(38px, 5.6vw, 64px); text-align: center; }
.home-top .hero-search { position: relative; margin-top: 26px; }
.home-top .hero-search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-faint); stroke-width: 2; align-self: center; margin-left: 14px; flex: 0 0 auto; }
.home-top .hero-search input { padding-left: 10px; }
.home-sub { text-align: center; margin-top: 14px; color: var(--ink-dim); font-size: 14px; }
.board { padding-top: 46px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; scrollbar-width: none; }
.tab { flex: 0 0 auto; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font: 700 15px var(--sans);
  background: rgba(var(--tint),.07); color: var(--ink-dim); }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--ink); color: var(--bg); }
.tab-panel { display: none; } .tab-panel.on { display: block; }
.scroller { display: flex; overflow-x: auto; gap: 18px; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.scroller > .tile { flex: 0 0 160px; scroll-snap-align: start; position: relative; }
.tile .poster-cap small { color: var(--ink-dim); font-weight: 500; line-height: 1.4; }
.tile .rank { z-index: 2; }
@media (max-width: 560px) { .scroller > .tile { flex-basis: 128px; } }
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.genre { position: relative; height: 96px; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 12px 14px; }
.genre strong { position: relative; z-index: 1; font: 800 20px var(--serif); color: var(--ink); }
.genre-art { position: absolute; right: -6px; top: 8px; height: 100%; width: 60%; }
.genre-art img { position: absolute; top: 0; right: calc(var(--i) * 26px); width: 56px; border-radius: 6px; transform: rotate(calc(8deg - var(--i) * 7deg)); box-shadow: 0 8px 16px rgba(0,0,0,.4); opacity: .9; }
.genre::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 30%, transparent); }
.genre:hover strong { color: var(--accent); }
.talk { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .talk { grid-template-columns: 1fr; } }
.threads { display: grid; gap: 12px; }
.thread { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 14px; align-items: center; }
.thread img { width: 54px; height: 81px; object-fit: cover; border-radius: 7px; }
.thread-icon { width: 54px; height: 54px; display: grid; place-items: center; font-size: 24px; border-radius: 12px; background: var(--surface2); }
.thread small { display: block; color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.thread strong { display: block; font: 700 18px/1.3 var(--serif); margin: 3px 0; }
.thread em { font-style: normal; font-size: 13px; color: var(--ink-dim); }
.empty-talk { padding: 26px; } .empty-talk h3 { font-size: 26px; } .empty-talk p { margin: 8px 0 16px; }
.talk-side { display: grid; gap: 16px; }
.talk-side .prompt-card h3 { font-size: 24px; }
.live { padding: 18px; }
.live ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-dim); }
.live b { color: var(--ink); } .live i { color: var(--ink); font-family: var(--serif); }
.live small { color: var(--ink-faint); }

/* Forums */
.page-h1 { font-size: clamp(36px, 5vw, 56px); margin-top: 8px; }
.lead-p { margin-top: 12px; color: var(--ink-dim); font-size: 18px; max-width: 62ch; }
.forum-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.forum-row { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; padding: 12px 14px; }
.forum-row img { width: 46px; height: 69px; object-fit: cover; border-radius: 6px; }
.forum-row strong { display: block; font: 700 18px var(--serif); }
.forum-row small { color: var(--ink-dim); font-size: 13px; }
.forum-hero { padding: 46px 0 10px; background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 12%, transparent), transparent); }
.forum-hero-in { display: flex; gap: 26px; align-items: center; }
.forum-poster { width: 120px; border-radius: 10px; box-shadow: var(--shadow); }
.forum-hero .kicker a { color: var(--accent); }
.forum-body { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; padding-top: 30px; }
@media (max-width: 900px) { .forum-body, .thread-page { grid-template-columns: 1fr !important; } .forum-poster { width: 84px; } }
.sortbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.thread-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px; align-items: center; }
.votes { text-align: center; } .votes b { display: block; font: 800 20px var(--serif); } .votes small { font-size: 11px; color: var(--ink-faint); }
.thread-row strong { display: block; font: 700 18px/1.3 var(--serif); margin: 4px 0; }
.thread-row small { color: var(--ink-dim); font-size: 13px; } .thread-row small b { color: var(--ink); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); font-size: 12px; font-weight: 700; margin-right: 6px; }
.tag.warn { background: color-mix(in srgb, var(--rose) 22%, transparent); color: var(--rose); }
.pin { font-size: 12px; font-weight: 700; color: var(--ink-dim); margin-right: 6px; }
.empty-forum { padding: 28px; text-align: center; } .empty-forum h2 { font-size: 28px; } .empty-forum p { margin-top: 8px; }
.starters { margin-top: 26px; display: grid; gap: 10px; }
.starter { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed rgba(var(--tint),.2); }
.starter span { font: 600 17px var(--serif); } .starter b { color: var(--accent); white-space: nowrap; font-size: 14px; }
.starter:hover { border-color: var(--accent); }
.thread-page { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.thread-page .kicker a { color: var(--accent); }
.thread-h1 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 8px; }
.thread-body { padding: 22px; margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.reply-cta { display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 12px 18px; margin-top: 14px; color: var(--ink-faint); }
.comments { margin-top: 22px; display: grid; gap: 12px; }
.comment { padding-left: calc(var(--d) * 18px); border-left: 2px solid transparent; }
.comment .comment { border-left-color: var(--line); margin-top: 10px; }
.c-head { font-size: 13px; color: var(--ink-dim); } .c-head b { color: var(--ink); }
.c-body { margin-top: 4px; color: var(--ink-soft); line-height: 1.6; }
.spoiler { position: relative; cursor: pointer; }
.spoiler .spoiler-body { filter: blur(7px); user-select: none; transition: filter .2s; }
.spoiler-btn { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); border: 0; border-radius: 999px; padding: 8px 14px; background: var(--rose); color: #fff; font-weight: 700; cursor: pointer; }
.spoiler.shown .spoiler-body { filter: none; user-select: auto; } .spoiler.shown .spoiler-btn { display: none; }

/* Episode page */
.episode-page { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
@media (max-width: 900px) { .episode-page { grid-template-columns: 1fr; } }
.episode-page .kicker a { color: var(--accent); }
.ep-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.block-h2 { font-size: 30px; margin: 40px 0 16px; }
.ep-list { list-style: none; padding: 0; margin: 10px 0 0; max-height: 420px; overflow: auto; }
.ep-list a { display: block; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--ink-soft); }
.ep-list a span { display: inline-block; width: 22px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ep-list li.this a { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); font-weight: 700; }
.episodes a { color: inherit; } .episodes a:hover strong { color: var(--accent); }

/* TV guide */
.guide { padding: 6px 0; }
.guide-row { display: grid; grid-template-columns: 84px 34px 1fr auto; gap: 14px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); }
.guide-row:first-child { border-top: 0; }
.guide-row time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.guide-row img, .guide-ph { width: 34px; height: 51px; object-fit: cover; border-radius: 5px; background: var(--surface2); }
.guide-row strong { display: block; } .guide-row small { color: var(--ink-dim); font-size: 13px; }
.guide-row .net { color: var(--ink-faint); font-size: 13px; text-align: right; }
.guide-row:hover strong { color: var(--accent); }
@media (max-width: 560px) { .guide-row { grid-template-columns: 64px 30px 1fr; } .guide-row .net { display: none; } }

/* Phone: a bottom tab bar, like the app */
.mob-tabs { display: none; }
@media (max-width: 920px) {
  .mob-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mob-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ink-dim); }
  .mob-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
  body { padding-bottom: 70px; }
  .header-search { display: none; }
  .header-inner { justify-content: space-between; }
  .header-app { display: inline-flex !important; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .title-top { grid-template-columns: 120px 1fr; gap: 18px; padding-top: 28px; }
  .title-poster { max-width: none; }
  .title-info h1 { font-size: 34px; }
  .synopsis { font-size: 16px; }
}
@media (max-width: 560px) { .title-top { grid-template-columns: 1fr; } .title-poster { width: 150px; } .scores { gap: 8px; } .score { min-width: 0; flex: 1 1 40%; padding: 8px 12px; } }
.excerpt { display: block; font-style: normal; color: var(--ink-dim); font-size: 14px; margin: 2px 0 4px; line-height: 1.45; }

/* Join / sign in */
.auth-page { display: grid; grid-template-columns: 1fr 440px; gap: 50px; align-items: center; padding: 60px 0 20px; }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; } }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; color: var(--ink-dim); font-size: 17px; }
.perks b { color: var(--ink); }
.auth-card { padding: 24px; }
.f { display: block; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.f input, .f textarea, .f select { display: block; width: 100%; margin-top: 6px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(var(--tint),.04); color: var(--ink); font: 16px var(--sans); }
.f textarea { height: auto; padding: 12px 14px; line-height: 1.5; }
.err { color: var(--rose); font-weight: 600; font-size: 14px; margin: 4px 0 12px; }
.fine { font-size: 13px; color: var(--ink-faint); margin-top: 12px; text-align: center; }
.fine a { color: var(--accent); }
[hidden] { display: none !important; }

/* Signed-in header */
.header-signin { font-weight: 600; font-size: 15px; color: var(--ink-dim); padding: 0 6px; white-space: nowrap; }
.header-signin:hover { color: var(--ink); }
.me-menu { position: relative; }
.me-chip { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.me-chip::-webkit-details-marker { display: none; }
.me-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; }
.me-name { font-weight: 600; font-size: 14px; }
.me-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 14px; z-index: 50; display: grid; gap: 6px; }
.me-pop a, .me-pop button { text-align: left; font: 600 14px var(--sans); color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.me-pop a:hover, .me-pop button:hover { color: var(--accent); }
@media (max-width: 720px) { .me-name, .header-signin { display: none; } }

/* Composer, replies, votes */
.composer { padding: 20px; margin: 0 0 22px; }
.composer h2 { font-size: 22px; margin: 0 0 14px; }
.composer .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.composer .row .f { flex: 0 0 110px; }
.composer .check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.composer .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.vote-btns { display: inline-flex; align-items: center; gap: 4px; }
.vote-btns button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--ink-dim); cursor: pointer; font-size: 14px; }
.vote-btns button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.vote-btns b { min-width: 26px; text-align: center; }
.c-actions { display: flex; gap: 14px; margin-top: 6px; font-size: 13px; }
.c-actions button { background: none; border: 0; padding: 0; color: var(--ink-faint); font: 600 13px var(--sans); cursor: pointer; }
.c-actions button:hover, .c-actions button.on { color: var(--accent); }
.reply-form { margin-top: 10px; }
.reply-form textarea { width: 100%; min-height: 90px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--tint),.04); color: var(--ink); font: 16px/1.5 var(--sans); }
.reply-form .err { margin-top: 8px; }

/* Horizontal chip rows (seasons): one line, swipe/scroll sideways, edges fade */
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-bottom: 16px; scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 36px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 36px), transparent 100%); padding-left: 2px; padding-right: 36px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll .chip { flex: 0 0 auto; scroll-snap-align: center; cursor: pointer; border: 0; font-family: var(--sans); }
.season-tabs { margin-top: -4px; }
/* Grid columns may shrink below their content, so long chip rows scroll
   sideways inside the column instead of widening the page. */
.forum-body > *, .title-body > *, .thread-page > *, .episode-page > *, .title-main { min-width: 0; }
.chip-scroll { max-width: 100%; min-width: 0; }
/* Oversized blurred backdrops stay inside the page. */
html, body { overflow-x: clip; }
.chip-scroll { position: relative; }

/* Search as you type */
.live-host { position: relative; }
.live-results { position: absolute; left: 0; top: calc(100% + 8px); width: max(100%, 380px); max-height: min(70vh, 560px); overflow-y: auto; z-index: 60;
  padding: 8px; text-align: left; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.header-search .live-results { right: 0; left: auto; }
.live-results a { display: flex; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 10px; color: var(--ink); }
.live-results a:hover, .live-results a.sel { background: rgba(var(--tint), .07); }
.live-results img, .lr-ph { width: 34px; height: 50px; border-radius: 6px; object-fit: cover; flex: 0 0 34px; background: var(--surface2); display: grid; place-items: center; font-size: 16px; }
.live-results b { display: block; font-size: 15px; line-height: 1.25; }
.live-results small { display: block; color: var(--ink-faint); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 290px; }
.lr-h { margin: 8px 8px 4px; font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lr-more { margin: 8px; color: var(--ink-faint); font-size: 13px; }
.live-results a.lr-all { justify-content: center; font-weight: 700; font-size: 14px; color: var(--accent); margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding: 12px; }
@media (max-width: 720px) { .live-results { width: 100%; } }

/* Search results (laid out like TBRTalk's) */
.sr-suggest { margin-top: 16px; font-size: 17px; color: var(--ink-dim); }
.sr-suggest a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sr-chips { margin: 22px 0 6px; }
.sr-chips .chip b { margin-left: 6px; font-size: 12px; opacity: .65; }
.sr-top { position: relative; overflow: hidden; display: grid; grid-template-columns: 170px 1fr; gap: 26px; padding: 24px; margin-top: 22px;
  border-color: color-mix(in srgb, var(--top-c, var(--accent)) 40%, var(--line)); }
.sr-top-bg { position: absolute; inset: -40px; background: center/cover; filter: blur(50px) saturate(1.3); opacity: .28; z-index: 0; }
.sr-top > :not(.sr-top-bg) { position: relative; z-index: 1; }
.sr-top-poster img, .sr-top-poster .poster-fallback { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); display: block; }
.sr-top h2 { font-size: clamp(28px, 4vw, 42px); margin: 6px 0 0; line-height: 1.05; }
.sr-top h2 a { color: inherit; } .sr-top h2 .muted { font-size: .6em; font-weight: 500; }
.sr-top-sub { color: var(--ink-dim); margin: 8px 0 0; font-weight: 600; }
.sr-top-ov { color: var(--ink-dim); margin: 12px 0 0; max-width: 62ch; line-height: 1.55; }
.sr-top-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 640px) { .sr-top { grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; } .sr-top-ov { display: none; } .sr-top-actions .btn { height: 38px; font-size: 14px; } }
.sr-head { margin: 42px 0 14px; }
.sr-head h2 { font-size: 26px; }
.sr-card { display: flex; flex-direction: column; gap: 8px; }
.sr-card .shelf-btn { width: 100%; justify-content: center; margin-top: auto; }
.shelf-btn.on { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
.sr-forums .forum-card { display: flex; gap: 12px; align-items: center; padding: 12px; }
.sr-forums .forum-card img { width: 44px; height: 64px; object-fit: cover; border-radius: 6px; }
.sr-forums strong { display: block; } .sr-forums small { color: var(--ink-faint); }
.sr-article img { width: 84px; height: 56px; object-fit: cover; border-radius: 8px; }
.sr-vibes { margin-top: 30px; }
.sr-help { margin-top: 40px; }

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