/* After Dark channel site: the "Streamer" design (2026-10-30). One system for every channel: a cinematic billboard,
   rows of posters, a channel that re-themes the whole page through a handful of tokens.
   - The block between @channel-tokens and @end-channel-tokens is the channel's own (site/shows/lib.mjs writes each
     channel's from its spec.mjs CHANNEL_TOKENS); everything after it reads only those tokens.
   - The block from @channel-theme to the end is the channel's own extra rules (site/ keeps Wishlist After Dark's; a
     channel's build puts its fragments/theme.css there).
   - css/site.css is the older stylesheet: only /broadcast (the OBS picture) still uses it.
   No inline styles anywhere (the CSP has no 'unsafe-inline'): scripts set custom properties through the CSSOM. */

/* @channel-tokens */
:root {
  --bg: #0d0706;
  --bg2: #1a0e0c;
  --bg3: #241411;
  --accent: #ff7767;
  --accent2: #f4c770;
  --on-accent: #1e0705;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --dw: 700;
  --dls: -0.02em;
  --dtt: none;
}
/* @end-channel-tokens */

:root {
  --gut: clamp(16px, 4vw, 56px);
  --text: #f4f3f8;
  --text-2: #d7d6de;
  --muted: #a3a2ae;
  --dim: #6d6c78;
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --glass: rgba(24, 24, 32, 0.55);
  --live: #ff4343;
  --buy: #4fe08f;
  --wait: #ffbf47;
  --skip: #ff7b7b;
  --radius: 12px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hh: 68px;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html,
body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 88% -8%, color-mix(in oklab, var(--accent) 11%, transparent), transparent 70%),
    radial-gradient(800px 600px at -10% 110%, color-mix(in oklab, var(--accent2) 7%, transparent), transparent 70%);
}
main,
footer,
header { position: relative; }
main { z-index: 1; display: block; outline: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
svg { flex: none; }
h1,
h2,
h3 { text-wrap: balance; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); color: #fff; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 500;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }
.link { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--accent); }
.display { font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); text-transform: var(--dtt); }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.62) 70%, rgba(0, 0, 0, 0.12));
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
/* over the billboard: the bar overlaps the picture and keeps a dark scrim (the words never slide under it) */
body.has-bb .topbar { margin-bottom: calc(-1 * var(--hh)); }
.topbar.solid,
body:not(.has-bb) .topbar {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--line);
}
.hdr-row { display: flex; align-items: center; gap: 24px; min-height: 68px; padding-inline: var(--gut); }
.netmark { display: grid; place-items: center; flex: none; border-radius: 50%; }
.moon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #2a2a35, #0c0c11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.moon svg { width: 16px; height: 16px; }
.netmark:hover .moon { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.hdr-sep { width: 1px; height: 22px; background: var(--line2); flex: none; }
.brand { display: flex; align-items: center; min-width: 0; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.wordmark b {
  font-family: var(--display);
  font-weight: var(--dw);
  letter-spacing: var(--dls);
  text-transform: var(--dtt);
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}
.wordmark small { font: 700 10px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 14px; color: var(--muted); }
.nav a { position: relative; padding: 6px 0; white-space: nowrap; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current='page'] { color: var(--text); font-weight: 600; }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); }
.live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 2px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background 0.2s; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn .icon { width: 19px; height: 19px; }
.onair-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line2);
}
a.onair-pill:hover { background: rgba(255, 255, 255, 0.14); }
.onair-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.onair-pill[data-state='live'] .dot { animation: pulse 1.6s ease-in-out infinite; }
.onair-pill[data-state='off'] .dot,
.onair-pill[data-state='loading'] .dot { background: var(--dim); }
.onair-pill .sub { color: var(--muted); font-weight: 500; }
body[data-page='live'] .onair-pill { cursor: default; }

/* header search: a panel under the bar, opened by the search button (and "/") */
.hsearch {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 12px var(--gut) 14px;
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar[data-search='open'] .hsearch { display: flex; align-items: center; gap: 10px; }
.hsearch > .icon { position: absolute; left: calc(var(--gut) + 14px); top: 25px; color: var(--muted); }
.hsearch input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 46px 0 42px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: 500 15px var(--sans);
}
.hsearch input::placeholder { color: var(--dim); }
.hsearch input:focus { outline: none; border-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.hsearch-key {
  position: absolute;
  right: calc(var(--gut) + 12px);
  font: 600 11px var(--sans);
  color: var(--dim);
  border: 1px solid var(--line2);
  border-radius: 5px;
  padding: 2px 6px;
}
.hsearch input:not(:placeholder-shown) ~ .hsearch-key { display: none; }
.hsearch-pop {
  position: absolute;
  left: var(--gut);
  right: var(--gut);
  top: calc(100% - 6px);
  max-width: 760px;
  max-height: min(70vh, 560px);
  overflow: auto;
  border-radius: 14px;
  background: var(--bg2);
  border: 1px solid var(--line2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}
.hsearch-list { list-style: none; margin: 0; padding: 6px; }
.hs-opt { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; padding: 8px; border-radius: 10px; cursor: pointer; }
.hs-opt[aria-selected='true'],
.hs-opt:hover { background: rgba(255, 255, 255, 0.07); }
.hs-thumb { aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: var(--bg3); }
.hs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hs-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hs-title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.hs-snip { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-where { font-weight: 700; color: var(--accent); margin-right: 6px; }
.hs-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12px; color: var(--dim); }
.hs-opt.hs-all { grid-template-columns: auto 1fr; align-items: center; color: var(--muted); }
.hsearch-msg { margin: 0; padding: 14px 16px; color: var(--muted); }
mark { background: color-mix(in oklab, var(--accent) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ------------------------------------------------------------------ buttons, chips, small parts */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font: 600 15px/1 var(--sans);
  white-space: nowrap;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.15s, background 0.2s, filter 0.2s;
}
.btn:hover { background: rgba(255, 255, 255, 0.2); }
.btn:active { transform: scale(0.97); }
.btn .icon { width: 20px; height: 20px; }
.btn-play { background: #fff; color: #000; border-color: #fff; }
.btn-play:hover { background: #e6e6ea; }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent); filter: brightness(1.08); }
.btn-buy { background: var(--accent2); color: #1a1205; border-color: var(--accent2); }
.btn-buy:hover { background: var(--accent2); filter: brightness(1.06); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; gap: 7px; }
.btn-sm .icon { width: 16px; height: 16px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 10.5px/1 var(--sans);
  letter-spacing: 0.14em;
  padding: 5px 8px 5px 7px;
  border-radius: 5px;
  background: var(--live);
  color: #fff;
  text-transform: uppercase;
}
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pill.acc { background: color-mix(in oklab, var(--accent) 18%, transparent); border-color: color-mix(in oklab, var(--accent) 45%, transparent); color: var(--accent); }
a.pill:hover { border-color: var(--accent); }
.pill.hot { background: var(--live); border-color: var(--live); color: #fff; }
.verdict { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 800 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }
.verdict::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.v-buy { color: var(--buy); background: color-mix(in oklab, var(--buy) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--buy) 40%, transparent); }
.v-wait { color: var(--wait); background: color-mix(in oklab, var(--wait) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--wait) 40%, transparent); }
.v-skip { color: var(--skip); background: color-mix(in oklab, var(--skip) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--skip) 40%, transparent); }
.score { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--display); font-weight: var(--dw); }
.score b { font-size: 1.25em; letter-spacing: -0.02em; font-weight: inherit; }
.score small { font: 600 0.7em var(--sans); color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 14px; }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); flex: none; }
.meta .hl { color: var(--accent); font-weight: 600; }
.game-badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text-2); }
.game-badge .icon { width: 14px; height: 14px; color: var(--accent); }
.game-badge.over-media { padding: 5px 8px; border-radius: 6px; font-size: 11px; background: rgba(0, 0, 0, 0.66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cat-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cat-dot { display: none; }

/* faces: the cast's 3D portraits, or a tidy monogram in the channel's accent */
.face {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--accent) 30%, var(--bg3)), var(--bg3));
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in oklab, var(--accent) 55%, transparent);
  color: var(--accent);
  font: 700 14px/1 var(--display);
}
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.18); transform-origin: 50% 18%; }
.face.port { background: color-mix(in oklab, var(--accent) 34%, #14141b); }
.faces { display: inline-flex; align-items: center; }
.faces .face + .face { margin-left: -8px; }
.hostline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.hostline b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ billboard */
.bb { display: grid; position: relative; isolation: isolate; }
.bb-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(560px, 84vh, 800px);
  padding-top: calc(var(--hh) + 48px);
}
.bb-media { position: absolute; top: 0; right: 0; bottom: 0; width: 80%; overflow: hidden; background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 16%, var(--bg3)), var(--bg3) 70%); }
/* (113%: trims the frame's burned-in captions) */
.bb-media img { width: 100%; height: 113%; object-fit: cover; object-position: var(--fp, center); animation: drift 18s ease-out both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.bb-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 20%, color-mix(in oklab, var(--bg) 82%, transparent) 32%, color-mix(in oklab, var(--bg) 20%, transparent) 58%, transparent 75%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg) 8%, color-mix(in oklab, var(--bg) 72%, transparent) 22%, transparent 46%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 11%, transparent 30%);
}
.bb-frame { display: none; }
.bb-body { position: relative; z-index: 2; padding: 0 var(--gut) 150px; max-width: min(720px, 58%); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 700 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.eyebrow .icon { width: 14px; height: 14px; }
.bb-title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: var(--dw);
  letter-spacing: var(--dls);
  text-transform: var(--dtt);
  font-size: clamp(34px, 3.9vw, 60px);
  line-height: 1.04;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bb-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.bb-desc { margin: 14px 0 0; color: var(--text-2); font-size: 16px; line-height: 1.5; max-width: 560px; }
.bb .hostline { margin-top: 18px; }
.bb-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.bb-side { position: absolute; right: var(--gut); bottom: 150px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.rankbadge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.rankbadge .score { font-size: 30px; }
.rankbadge small { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rankbadge .r { font-weight: 600; font-size: 14px; }
.bb-skel { min-height: clamp(560px, 84vh, 800px); }

/* ------------------------------------------------------------------ rows / rails */
.rows { position: relative; z-index: 3; padding-bottom: 40px; }
.rows.overlap { margin-top: -112px; }
.row { margin-top: 34px; }
.rows > .row:first-child { margin-top: 0; }
.row-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 0 var(--gut); margin-bottom: 12px; }
.row-head h2 { margin: 0; font: 700 20px/1.2 var(--sans); letter-spacing: -0.01em; }
.row-sub { color: var(--muted); font-size: 14px; }
.row-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.row-more:hover { color: var(--accent); }
.row-more .icon { width: 14px; height: 14px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 10px; border-radius: 7px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.seg button .icon { width: 16px; height: 16px; }
.seg button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.14); color: #fff; }
.rail-wrap { position: relative; }
.rail {
  --per: 5.3;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  padding: 8px var(--gut) 14px;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 calc((100% - (var(--per) - 0.3) * 14px) / var(--per)); scroll-snap-align: start; min-width: 0; }
.rail.r-top { --per: 4.6; }
.rail.r-rank { --per: 4.3; }
.rail.r-cast { --per: 7; }
.rail-btn {
  position: absolute;
  top: 8px;
  bottom: 54px;
  width: calc(var(--gut) - 6px);
  min-width: 40px;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  background: linear-gradient(90deg, color-mix(in oklab, var(--bg) 85%, transparent), transparent);
  transition: opacity 0.25s;
}
.rail-btn.next { right: 0; background: linear-gradient(270deg, color-mix(in oklab, var(--bg) 85%, transparent), transparent); }
.rail-btn.prev { left: 0; }
.rail-btn .icon { width: 30px; height: 30px; filter: drop-shadow(0 2px 6px #000); }
.rail-wrap:hover .rail-btn,
.rail-btn:focus-visible { opacity: 1; }

/* ------------------------------------------------------------------ poster cards */
.card { display: block; position: relative; border-radius: var(--radius); }
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 16%, var(--bg3)), var(--bg3) 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 30px -14px rgba(0, 0, 0, 0.8);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .thumb img { transform: scale(1.045); }
.thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 42%); pointer-events: none; }
.dur,
.fmt,
.tag-new {
  position: absolute;
  z-index: 2;
  font: 700 11px/1 var(--sans);
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dur { right: 8px; bottom: 8px; font-variant-numeric: tabular-nums; color: #eee; }
.fmt { left: 8px; bottom: 8px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; max-width: calc(100% - 70px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmt.acc { color: var(--accent); }
.tag-new { left: 8px; top: 8px; background: var(--accent); color: var(--on-accent); letter-spacing: 0.08em; text-transform: uppercase; }
.card-t { margin: 10px 0 0; font-weight: 600; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-m { margin: 3px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card:hover .card-t { color: #fff; }
.card .rank-n {
  position: absolute;
  left: 10px;
  top: 4px;
  z-index: 2;
  font: 800 54px/1 var(--display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

/* ranked cards in rails */
.rcard .rk { position: absolute; left: 8px; top: 8px; z-index: 2; font: 800 13px/1 var(--display); padding: 6px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.rcard .sc { position: absolute; right: 8px; top: 8px; z-index: 2; padding: 5px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; }
.rcard .card-m { display: flex; align-items: center; gap: 8px; }

/* Top 5: giant numerals */
.t5 { display: flex; align-items: flex-end; position: relative; height: 100%; }
.t5 .num {
  flex: none;
  width: 44%;
  margin-right: -10%;
  font: 800 clamp(130px, 11vw, 190px)/0.78 var(--display);
  letter-spacing: -0.06em;
  color: var(--bg);
  -webkit-text-stroke: 2px color-mix(in oklab, var(--accent) 80%, #fff);
  text-align: right;
  position: relative;
  z-index: 0;
  user-select: none;
}
.t5-p { flex: 1; position: relative; z-index: 1; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--bg3); box-shadow: 0 18px 40px -16px #000, 0 0 0 1px rgba(255, 255, 255, 0.07); }
.t5-p img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 0.6s; }
.t5:hover .t5-p img { transform: scale(1.05); }
.t5-p::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 55%); }
.t5-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; }
.t5-cap b { font-size: 13px; line-height: 1.25; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t5-cap .score { font-size: 15px; margin-top: 6px; color: var(--accent2); }

/* cast tiles */
.cast { text-align: center; }
.cast .face { width: 100%; height: auto; aspect-ratio: 1; font-size: clamp(28px, 3vw, 44px); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px color-mix(in oklab, var(--accent) 50%, transparent); transition: box-shadow 0.25s, transform 0.25s; }
.cast:hover .face { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.cast b { display: block; margin-top: 12px; font-weight: 700; font-size: 15px; }
.cast span.role { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.sets { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px var(--gut) 0; color: var(--muted); font-size: 13px; align-items: center; }
.sets .lbl { font: 700 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-right: 6px; }
.sets .s { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: #d4d3da; }

/* loading placeholders */
.sk { background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: var(--radius); }
.sk-card .thumb { box-shadow: none; }
.sk-line { display: block; height: 12px; margin-top: 10px; border-radius: 6px; }
.sk-line.short { width: 60%; }
@keyframes sk { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ page head (pages without a billboard) */
.phead { position: relative; padding: 44px var(--gut) 8px; }
.phead .eyebrow { margin-bottom: 12px; }
.phead h1 { margin: 0; font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); text-transform: var(--dtt); font-size: clamp(34px, 4vw, 58px); line-height: 1.02; }
.phead p { margin: 12px 0 0; color: var(--muted); max-width: 680px; font-size: 16px; }
.backdrop { position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(1.2); opacity: 0.35; transform: scale(1.2); }
.backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--bg) 92%); }

/* ------------------------------------------------------------------ episodes (archive), search */
.filters {
  position: sticky;
  top: var(--hh);
  z-index: 50;
  margin-top: 22px;
  padding: 12px var(--gut);
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.f-row { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.f-group { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.lbl { font: 700 10.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-right: 4px; white-space: nowrap; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  color: #d6d5dd;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.chip[aria-pressed='true'],
.chip[aria-selected='true'],
.chip[aria-current='page'] { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.chip .count { color: var(--dim); font-weight: 600; font-size: 12px; }
.chip[aria-pressed='true'] .count,
.chip[aria-selected='true'] .count,
.chip[aria-current='page'] .count { color: #555; }
.chip.is-empty { opacity: 0.45; }
.chip .icon { width: 14px; height: 14px; }
.chip-x { border-style: dashed; }
.f-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
select.sel {
  height: 36px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0 30px 0 12px;
  font: 500 13px var(--sans);
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
select.sel option { background: #111; color: #eee; }
.count-line { padding: 18px var(--gut) 0; margin: 0; color: var(--muted); font-size: 13px; min-height: 1.5em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 18px; padding: 14px var(--gut) 40px; margin: 0; list-style: none; }
.grid.as-list { display: flex; flex-direction: column; gap: 6px; }
.li { display: grid; grid-template-columns: 260px 1fr auto; gap: 22px; align-items: center; padding: 12px; border-radius: 14px; transition: background 0.2s; }
.li:hover { background: rgba(255, 255, 255, 0.05); }
.li h2,
.li h3 { margin: 6px 0 6px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.li p.desc { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 640px; }
.li .go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); }
.li .go .icon { width: 18px; height: 18px; }
.li .meta { font-size: 13px; }
.li .snip { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { padding: 50px var(--gut); color: var(--muted); }
.empty h2 { margin: 0 0 6px; color: var(--text); font-size: 20px; }
.empty .btn { margin-top: 16px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 var(--gut) 50px; }
.pg { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; border: 1px solid var(--line2); font-weight: 600; font-size: 14px; color: var(--text-2); }
a.pg:hover { border-color: var(--accent); color: #fff; }
.pg[aria-current='page'] { background: #fff; color: #000; border-color: #fff; }
.pg[aria-disabled='true'] { opacity: 0.4; }
.pg .icon { width: 16px; height: 16px; }
.pg-gap { align-self: center; color: var(--dim); }
.search-big { position: relative; display: flex; gap: 10px; align-items: center; margin: 22px var(--gut) 0; max-width: 820px; }
.search-big > .icon { position: absolute; left: 16px; top: 16px; color: var(--muted); width: 20px; height: 20px; }
.search-big input { flex: 1; min-width: 0; height: 52px; padding: 0 16px 0 46px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.06); color: var(--text); font: 500 16px var(--sans); }
.search-big input:focus { outline: none; border-color: color-mix(in oklab, var(--accent) 60%, transparent); }
.search-page .filters { position: static; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 4px; padding-bottom: 0; }

/* ------------------------------------------------------------------ watch (episode page) */
.stage { padding: 28px var(--gut) 0; }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 120px -40px color-mix(in oklab, var(--accent) 35%, #000), 0 0 0 1px var(--line);
  max-width: min(1320px, max(640px, calc((100vh - 220px) * 16 / 9)));
  margin: 0 auto;
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; object-fit: contain; }
.bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s, background 0.25s;
}
.bigplay:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(255, 255, 255, 0.26); }
.bigplay .icon { width: 36px; height: 36px; margin-left: 5px; }
.wmark { position: absolute; left: 18px; top: 16px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; }
.wmark .moon { width: 24px; height: 24px; }
.wmark b { font-family: var(--display); font-weight: var(--dw); font-size: 14px; letter-spacing: 0.04em; color: var(--accent); text-transform: var(--dtt); }
.player[data-started='true'] .bigplay,
.player[data-started='true'] .wmark { display: none; }
.crumbs { padding: 18px var(--gut) 0; font-size: 13px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.wlayout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding: 30px var(--gut) 40px; max-width: calc(1320px + 2 * var(--gut)); margin: 0 auto; }
.ep-head .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 14px; }
.w-title { margin: 12px 0 12px; font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); text-transform: var(--dtt); font-size: clamp(28px, 2.8vw, 42px); line-height: 1.1; }
.w-desc { color: var(--text-2); font-size: 16px; margin: 14px 0 0; max-width: 700px; }
.ep-head .meta { margin-top: 14px; }
.w-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; }
.buy-note { color: var(--muted); font-size: 13px; max-width: 420px; }
.rank-note { margin: 12px 0 0; font-size: 14px; }
.rank-note a { color: var(--accent); font-weight: 600; }
.glass { background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.panel { margin-top: 24px; padding: 22px; }
.panel h2,
.aside h2 { margin: 0 0 14px; font: 700 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vcard { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.vcard .big { font-family: var(--display); font-weight: var(--dw); font-size: 64px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.vcard .big small { font: 600 18px var(--sans); color: var(--muted); letter-spacing: 0; }
.vcard q { display: block; font-size: 16px; line-height: 1.45; color: #e8e7ee; quotes: '\201C' '\201D'; }
.vcard .rows2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.vcard .rows2 a { color: var(--accent); font-weight: 600; }
.hostgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hcard { display: flex; align-items: center; gap: 12px; }
.hcard .face { width: 48px; height: 48px; font-size: 18px; }
.hcard b { display: block; font-size: 15px; }
.hcard span.role { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.chap { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.chap li { counter-increment: c; }
.chap button { width: 100%; display: grid; grid-template-columns: 28px 64px 1fr; gap: 10px; align-items: center; padding: 11px 10px; border-radius: 10px; font-size: 14.5px; text-align: left; transition: background 0.2s; }
.chap button::before { content: counter(c, decimal-leading-zero); color: var(--dim); font: 700 12px var(--sans); }
.chap button:hover { background: rgba(255, 255, 255, 0.05); }
.chap button[aria-current='true'] { background: color-mix(in oklab, var(--accent) 10%, transparent); }
.chap .ts { font: 700 13px var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); }
.srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.source-link { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); font-size: 14px; transition: border-color 0.2s; }
.source-link:hover { border-color: var(--accent); }
.src-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.src-name { font-weight: 700; white-space: nowrap; }
.src-title { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-link .icon { width: 14px; height: 14px; color: var(--muted); }
.note { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.tx { max-height: 420px; overflow: auto; padding-right: 6px; font-size: 15px; line-height: 1.65; color: var(--text-2); scrollbar-width: thin; }
.tx p { margin: 0 0 12px; }
.tx .cue { cursor: pointer; border-radius: 4px; transition: background 0.2s; }
.tx .cue:hover { background: rgba(255, 255, 255, 0.06); }
.tx .cue.on,
.tx .cue[aria-current='true'] { background: color-mix(in oklab, var(--accent) 22%, transparent); color: #fff; }
.tx-who { font-weight: 700; color: var(--accent); margin-right: 6px; }
.muted-note { color: var(--muted); font-size: 13.5px; margin: 0; }
.aside { min-width: 0; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; padding: 8px; margin: 0 -8px; border-radius: 12px; transition: background 0.2s; }
.mini:hover { background: rgba(255, 255, 255, 0.05); }
.mini .thumb { border-radius: 9px; }
.mini .dur { font-size: 10px; padding: 3px 5px; right: 6px; bottom: 6px; }
.mini b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.3; font-weight: 600; }
.mini span.m { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.notfound { min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px var(--gut); }
.notfound .moon { width: 72px; height: 72px; margin-bottom: 18px; }
.notfound .moon svg { width: 36px; height: 36px; }
.notfound h1 { margin: 0; font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); text-transform: var(--dtt); font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.notfound p { color: var(--muted); margin: 12px 0 0; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ------------------------------------------------------------------ live page */
.livegrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; padding: 28px var(--gut) 0; align-items: start; }
.livegrid .player { max-width: none; margin: 0; }
.ov { position: absolute; left: 14px; right: 14px; z-index: 4; display: flex; align-items: center; gap: 8px; }
.ov-top { top: 14px; }
.ov-bottom {
  bottom: 14px;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(10, 10, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font: 600 12.5px var(--sans);
  transition: opacity 0.3s;
}
.player[data-idle='true'] .ov-bottom { opacity: 0; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var(--sans); letter-spacing: 0.14em; padding: 6px 9px; border-radius: 5px; background: var(--live); color: #fff; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.breaking-badge { font: 800 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 9px; border-radius: 5px; background: #fff; color: #b00; }
.watching-mini { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 5px 9px; border-radius: 6px; font: 700 12px var(--sans); background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.watching-mini .icon { width: 14px; height: 14px; }
.ctl { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #eee; }
.ctl:hover { background: rgba(255, 255, 255, 0.12); }
.ctl .icon { width: 20px; height: 20px; }
.volume { width: 90px; accent-color: var(--accent); }
.ctl-time { color: #ddd; font-variant-numeric: tabular-nums; }
.ctl-spacer { flex: 1; }
.unmute {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: #000;
  background: #fff;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}
.unmute .icon { width: 20px; height: 20px; }
.live-captions { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 4; max-width: 86%; padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.72); font-size: 17px; text-align: center; }
.cap-who { font-weight: 700; color: var(--accent); margin-right: 6px; }
.embed-open { display: none; }
body[data-embed='1'] .embed-open { display: inline-flex; position: absolute; right: 14px; bottom: 64px; z-index: 5; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.6); font-size: 12px; font-weight: 600; }
.live-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: rgba(255, 255, 255, 0.15); }
.live-progress i { display: block; height: 100%; width: 0; background: var(--live); }
.player-msg { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; padding: 20px; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.85)); }
.player-msg:empty,
.player-msg[data-kind='none'] { display: none; }
.msg-inner { max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.msg-inner h2 { margin: 0; font-family: var(--display); font-weight: var(--dw); text-transform: var(--dtt); font-size: 26px; }
.msg-inner p { margin: 0; color: var(--text-2); }
.msg-inner img { width: 64px; height: 64px; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-play { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; font-size: 16px; }
.big-play .icon { width: 22px; height: 22px; }
.now-panel { padding: 22px; display: flex; flex-direction: column; min-width: 0; }
.now-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.now-panel h1 { margin: 14px 0 8px; font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); text-transform: var(--dtt); font-size: 24px; line-height: 1.15; }
.lower-third { margin: 0 0 8px; color: var(--text-2); font-size: 14.5px; }
.now-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.now-meta .icon { width: 14px; height: 14px; margin-right: 4px; }
.now-panel .prog { margin-top: 14px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.now-panel .prog i { display: block; height: 100%; width: 0; background: var(--live); }
.now-panel .div { height: 1px; background: var(--line); margin: 18px 0 4px; }
.now-panel h2 { margin: 10px 0 0; font: 700 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.watching-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.watching-line b { color: var(--text); font-size: 15px; }
.watching-line .icon { width: 15px; height: 15px; color: var(--accent); }
.now-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.now-sources { margin-top: 14px; }
.now-sources .srcs { gap: 6px; }
.now-sources .source-link { padding: 8px 12px; font-size: 13px; }
.upn { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.upn li { border-top: 1px solid var(--line); }
.upn li:first-child { border-top: 0; }
.upn a,
.upn .upn-item { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.upn a:hover .x b { color: var(--accent); }
.upn .t { font: 700 13px/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); }
.upn .t small { display: block; color: var(--dim); font-weight: 600; font-size: 11px; margin-top: 3px; letter-spacing: 0.04em; text-transform: uppercase; }
.upn .x { min-width: 0; }
.upn .x b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.upn .x span { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upn .tag-breaking { color: #ff8a8a; }
.epg-wrap { padding: 0 var(--gut); }
.epg { position: relative; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.epg-track { position: relative; height: 152px; }
.epg-hour { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--line); font: 600 11.5px var(--sans); color: var(--dim); padding: 10px 0 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.epg-b { position: absolute; top: 14px; height: 104px; padding: 11px 12px; border-radius: 11px; background: var(--bg3); border: 1px solid var(--line); overflow: hidden; transition: background 0.2s; }
a.epg-b:hover { background: color-mix(in oklab, var(--bg3) 70%, #fff 6%); }
.epg-b .k { display: block; font: 700 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg-b b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 13px; line-height: 1.3; font-weight: 600; }
.epg-b span.w { display: block; margin-top: 4px; color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.epg-b.now { background: color-mix(in oklab, var(--live) 16%, var(--bg3)); border-color: color-mix(in oklab, var(--live) 55%, transparent); }
.epg-b.now .k { color: #ff8a8a; }
.needle { position: absolute; top: 8px; bottom: 26px; width: 2px; background: var(--live); z-index: 3; border-radius: 2px; }
.needle span { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); font: 800 10.5px/1 var(--sans); background: var(--live); color: #fff; padding: 4px 6px; border-radius: 5px; white-space: nowrap; }
.sched-list { display: none; list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------------ rankings (/best) */
.podium { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; padding: 22px var(--gut) 0; list-style: none; margin: 0; }
.pod { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--bg2); box-shadow: 0 0 0 1px var(--line); transition: transform 0.3s, box-shadow 0.3s; }
.pod:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent); }
.pod .thumb { border-radius: 0; box-shadow: none; }
.pod .n { position: absolute; left: 14px; top: 10px; z-index: 3; font: 800 76px/1 var(--display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5); pointer-events: none; }
.pod:first-child .n { -webkit-text-stroke-color: var(--accent); }
.pod-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pod-b .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pod-b h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.pod-b h3 a:hover { color: var(--accent); }
.brand-line { color: var(--muted); font-size: 13px; }
.pod-b p { margin: 0; color: #cfced6; font-size: 14px; line-height: 1.45; }
.pod-b .score { font-size: 26px; }
.acts { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.board { padding: 18px var(--gut) 50px; list-style: none; margin: 0; }
.brow { display: grid; grid-template-columns: 54px 168px minmax(0, 1fr) 130px 120px auto; gap: 20px; align-items: center; padding: 12px 14px; border-radius: 14px; border-top: 1px solid var(--line); transition: background 0.2s; }
.brow:hover { background: rgba(255, 255, 255, 0.04); }
.brow .n { font: 800 28px/1 var(--display); color: var(--dim); text-align: center; letter-spacing: -0.03em; }
.brow h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.brow h3 a:hover { color: var(--accent); }
.brow p { margin: 6px 0 0; color: #c9c8d1; font-size: 13.5px; line-height: 1.4; }
.brow .score { font-size: 24px; }
.brow .cat { font-size: 12px; color: var(--muted); }
.sc-cell { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.disclaim { padding: 0 var(--gut) 30px; color: var(--muted); font-size: 12.5px; max-width: calc(760px + 2 * var(--gut)); }

/* ------------------------------------------------------------------ about, calendar and other reading pages */
.prose { padding: 10px var(--gut) 40px; max-width: calc(860px + 2 * var(--gut)); }
.prose section { margin-top: 34px; }
.prose h2 { margin: 0 0 10px; font: 700 20px/1.25 var(--sans); }
.prose p,
.prose li { color: var(--text-2); font-size: 15.5px; line-height: 1.65; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--text); }
.how { padding: 22px; margin-top: 30px; }
.how h2 { display: flex; align-items: center; gap: 10px; }
.how h2 .icon { color: var(--accent); }
.how ul { margin: 10px 0 0; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 14px; }
.host-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.host-card .face { width: 64px; height: 64px; font-size: 24px; }
.host-card h3 { margin: 2px 0 0; font-size: 16px; }
.host-card .role { margin: 2px 0 6px; color: var(--accent); font-size: 12.5px; font-weight: 600; }
.host-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------------------ footer */
.footer { position: relative; z-index: 1; margin-top: 30px; padding: 38px var(--gut) 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: color-mix(in oklab, var(--bg) 92%, #000); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a:hover { color: var(--text); }
.footer p { margin: 14px 0 0; max-width: 720px; }
.footer .ai-line { color: var(--text-2); }
.footer .fine { font-size: 12px; color: var(--dim); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .rail { --per: 4.3; }
  .rail.r-top { --per: 3.6; }
  .rail.r-rank { --per: 3.3; }
  .rail.r-cast { --per: 5.5; }
  .wlayout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .brow { grid-template-columns: 44px 140px minmax(0, 1fr) 110px auto; }
  .brow .cat { display: none; }
}
@media (max-width: 900px) {
  .hdr-row { flex-wrap: wrap; row-gap: 0; }
  .nav { order: 5; flex-basis: 100%; gap: 6px; padding: 0 0 10px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { height: 32px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600; color: #d6d5dd; background: rgba(0, 0, 0, 0.25); }
  .nav a[aria-current='page'] { background: #fff; color: #000; border-color: #fff; }
  .nav a[aria-current='page']::after { display: none; }
  .livegrid,
  .wlayout { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium .pod:not(:first-child) { display: grid; grid-template-columns: 150px 1fr; }
  .podium .pod:not(:first-child) .thumb { height: 100%; aspect-ratio: auto; }
  .podium .pod:not(:first-child) .n { font-size: 48px; top: 6px; left: 10px; }
  .podium .pod:not(:first-child) p { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hdr-row { min-height: 58px; gap: 12px; }
  .wordmark b { font-size: 20px; }
  .wordmark small { display: none; }
  .hdr-sep { display: none; }
  .topbar-end { gap: 6px; }
  .topbar-end .onair-pill { display: none; }
  /* the billboard stacks: picture, then words */
  .bb-slide { min-height: 0; padding-top: 0; display: block; }
  .bb-media { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3.1; }
  .bb-shade { bottom: auto; height: auto; aspect-ratio: 4 / 3.1; background: linear-gradient(0deg, var(--bg) 0%, color-mix(in oklab, var(--bg) 60%, transparent) 30%, transparent 55%), linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 30%); }
  .bb-body { max-width: none; padding: 0 var(--gut); margin-top: -58px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; letter-spacing: 0.16em; }
  .bb-title { font-size: 29px; margin-bottom: 12px; }
  .bb-desc { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .bb .hostline { margin-top: 14px; }
  .bb-cta { margin-top: 18px; gap: 10px; }
  .bb-cta .btn { flex: 1 1 40%; padding: 0 12px; height: 46px; }
  .bb-side { display: none; }
  .bb-skel { min-height: 420px; }
  .rows.overlap { margin-top: 30px; }
  .row { margin-top: 30px; }
  .row-head h2 { font-size: 18px; }
  .row-head .row-sub { order: 3; width: 100%; font-size: 13px; }
  .rail { gap: 12px; --per: 1.45; }
  .rail > * { flex-basis: calc((100% - (var(--per) - 0.3) * 12px) / var(--per)); }
  .rail.r-top { --per: 1.9; }
  .rail.r-rank { --per: 1.45; }
  .rail.r-cast { --per: 3.4; }
  .rail-btn { display: none; }
  .t5 .num { font-size: 120px; }
  .phead { padding-top: 28px; }
  .phead p { font-size: 14.5px; }
  .filters { padding-top: 10px; padding-bottom: 10px; }
  .f-row { gap: 10px; }
  .f-group { width: 100%; }
  .f-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .grid { grid-template-columns: 1fr; gap: 24px; }
  .li { grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; }
  .li h2,
  .li h3 { font-size: 14.5px; margin: 2px 0 4px; }
  .li p.desc,
  .li .go,
  .li .hide-m { display: none; }
  .li .meta { font-size: 12.5px; }
  .stage { padding: 0; }
  .stage .player,
  .livegrid .player { border-radius: 0; box-shadow: none; }
  .bigplay { width: 68px; height: 68px; }
  .bigplay .icon { width: 26px; height: 26px; }
  .wmark { left: 10px; top: 10px; }
  .wmark b { font-size: 12px; }
  .wlayout { padding-top: 20px; gap: 30px; }
  .panel { padding: 16px; }
  .vcard { grid-template-columns: 1fr; gap: 10px; }
  .vcard .big { font-size: 52px; }
  .chap button { grid-template-columns: 22px 48px 1fr; font-size: 14px; padding: 10px 6px; }
  .source-link { grid-template-columns: auto 1fr auto; }
  .source-link .src-title { grid-column: 2 / 4; grid-row: 2; white-space: normal; }
  .mini { grid-template-columns: 128px 1fr; }
  .livegrid { padding: 0; gap: 0; }
  .now-panel { margin: 14px var(--gut) 0; }
  .volume { display: none; }
  .epg { display: none; }
  .sched-list { display: block; }
  .sched-list li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
  .sched-list .t { font: 700 13px var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
  .sched-list li.now .t { color: #ff7b7b; }
  .sched-list .k { font: 700 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .sched-list b { display: block; margin-top: 5px; font-size: 14px; line-height: 1.3; }
  .podium { padding-top: 16px; }
  .podium .pod:not(:first-child) { grid-template-columns: 118px 1fr; }
  .pod-b { padding: 12px 14px; }
  .pod-b h3 { font-size: 16px; }
  .pod .n { font-size: 58px; }
  .board { padding-top: 10px; }
  .brow { grid-template-columns: 30px 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; row-gap: 8px; }
  .brow .n { font-size: 20px; }
  .brow h3 { font-size: 14.5px; }
  .brow p { display: none; }
  .brow .sc-cell { grid-column: 3; }
  .brow .act-cell { grid-column: 3; }
  .brow .score { font-size: 18px; }
  .search-big { flex-wrap: wrap; }
  .search-big .btn { width: 100%; }
  .footer { padding-top: 30px; }
  .host-card { grid-template-columns: 52px 1fr; }
  .host-card .face { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* @channel-theme: Wishlist After Dark's own rules (site/shows/wishlist/fragments/theme.css) */
/* Wishlist After Dark's own rules on its pages: the end of css/channel.css (the tokens before it are spec.mjs
   CHANNEL_TOKENS). The shopping channel after dark: a warm serif, gold for the ratings, and the gift calendar. */

.wordmark b { font-style: italic; }
.rankbadge .score,
.pod-b .score,
.brow .score { color: var(--accent2); }

/* the gift calendar (/calendar: files/public/calendar.html, its list from spec.mjs calendarHtml) */
.cal-months { padding: 10px var(--gut) 40px; }
.cal-month { margin-top: 30px; }
.cal-month h2 { margin: 0 0 12px; font-family: var(--display); font-weight: var(--dw); font-size: 26px; }
.cal-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cal-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 14%, var(--bg2)), var(--bg2));
}
.cal-item time { font: 700 11px/1.3 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent2); }
.cal-name { font-family: var(--display); font-weight: var(--dw); font-size: 19px; line-height: 1.2; }
.cal-kind { align-self: flex-start; font: 700 10.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.cal-sale .cal-kind { background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--accent); }
.cal-gifts { color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.cal-note { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
