/* Tokens are vidq's (2026-10/vidq/DESIGN.md); this is meant to become a view inside it. */
:root {
  --bg:#fff; --card:#fff; --chip:#f2f3f5; --line:#e2e4e8; --fg:#15171a; --dim:#5b616a;
  --faint:#8a9099; --accent:#0a6b4e; --accent-ink:#fff; --danger:#b42318;
  --player-h: 0px; color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root {
  --bg:#111214; --card:#18191c; --chip:#1f2124; --line:#2b2e33; --fg:#ebecef; --dim:#9ea4ad;
  --faint:#6d737c; --accent:#4cc391; --accent-ink:#0b1a14; --danger:#f97066;
} }
@font-face { font-family: 'Hanken Grotesk'; src: url('/s/fonts/hanken-grotesk.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/s/fonts/fraunces.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--player-h) + 12px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.5 'Hanken Grotesk', Helvetica, Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; touch-action: manipulation; }
a { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top { max-width: 720px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
.mark { font: 600 22px/1 'Fraunces', Georgia, serif; color: var(--fg); text-decoration: none; }
.back { display: inline-flex; align-items: center; min-height: 40px; color: var(--dim); text-decoration: none; font-size: 13px; }
.note { padding: 24px 16px; color: var(--dim); }

/* Episode list */
.list { list-style: none; margin: 0 auto; padding: 0 0 32px; max-width: 720px; }
.row { position: relative; display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.thumb { position: relative; width: 136px; height: 76px; border-radius: 4px; overflow: hidden; background: var(--chip); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb span { position: absolute; right: 4px; bottom: 4px; padding: 0 4px; border-radius: 4px; background: var(--bg); color: var(--fg); font-size: 12px; font-variant-numeric: tabular-nums; }
.row h2 { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row h2 a { color: inherit; text-decoration: none; }
.row h2 a::after { content: ''; position: absolute; inset: 0; }
.row .show { margin-top: 4px; }
.row .more { grid-column: 1 / -1; position: relative; z-index: 1; }
.row .verdict { grid-column: 1 / -1; color: var(--dim); font-size: 13px; }

/* Episode */
.ep { max-width: 720px; margin: 0 auto; }
.stage { display: none; position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.stage.on { display: block; }
.frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.frame iframe, .frame > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding-inline: 16px; font-size: 13px; color: var(--dim); }
.bar span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar button { flex: none; min-height: 40px; padding-inline: 8px; margin-right: -8px; }
.body { padding: 8px 16px 48px; display: grid; gap: 32px; min-width: 0; }
.head { display: grid; gap: 8px; }
.head h1 { font-size: 22px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.show { color: var(--dim); font-size: 13px; }
.show .chan { position: relative; z-index: 1; color: var(--fg); font-weight: 600; text-decoration: none; }
.cards { max-width: 720px; margin: 0 auto; padding: 0 16px 24px; display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.chead { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; color: var(--fg); text-decoration: none; }
.chead img, .chan-top img { display: block; border-radius: 50%; background: var(--chip); }
.chead strong { display: block; font-size: 17px; line-height: 1.35; }
.blurb { display: block; color: var(--dim); font-size: 13px; }
.label { padding: 0 12px 4px; color: var(--dim); font-size: 13px; }
.minis { list-style: none; margin: 0; padding: 0; }
.mini { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 12px; }
.mini .thumb { width: 96px; height: 54px; }
.mini h3 { font-size: 15px; font-weight: 500; line-height: 1.35; }
.mini h3 a { color: inherit; text-decoration: none; }
.mini h3 a::after { content: ''; position: absolute; inset: 0; }
.mini .show { margin-top: 4px; }
.all { display: flex; align-items: center; min-height: 44px; padding: 0 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 500; text-decoration: none; }
.ptitle { max-width: 720px; margin: 0 auto; padding: 8px 16px 16px; }
.ptitle h1 { font-size: 22px; font-weight: 600; line-height: 1.35; }
.chan-top { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding-bottom: 8px; }
.cfacts { max-width: 720px; margin: 0 auto; padding: 0 16px 16px; color: var(--dim); font-size: 13px; }
.more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--dim); font-size: 13px; cursor: pointer; list-style: none; touch-action: manipulation; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); }
.more[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.more .about { margin-bottom: 12px; }
.about.small { font-size: 15px; }
.facts { margin: 0 0 8px; font-size: 13px; }
.facts div { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 4px 0; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.intro { max-width: 720px; margin: 0 auto; padding: 0 16px 16px; color: var(--dim); }
@media (hover: hover) { .chead:hover strong, .mini:hover h3, .row:hover h2 { color: var(--accent); } }
.ext { margin-left: 4px; vertical-align: -1px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fine { color: var(--dim); font-size: 13px; }
.foot { max-width: 720px; margin: 0 auto; display: flex; gap: 16px; padding: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.foot a { display: inline-flex; align-items: center; min-height: 40px; color: var(--dim); }
.prose { max-width: 720px; margin: 0 auto; padding: 8px 16px 32px; display: grid; gap: 12px; }
.prose h1 { font-size: 22px; font-weight: 600; line-height: 1.35; }
.prose h2 { font-size: 17px; font-weight: 600; margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.fb { display: grid; gap: 8px; }
.fb fieldset { border: 0; margin: 0 0 8px; padding: 0; display: grid; }
.fb legend { padding: 0; margin-bottom: 4px; }
.fb .radio { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.fb textarea, .fb input[type=email] { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--fg); font: inherit; font-size: 16px; }
.hp { position: absolute; left: -9999px; }
.err { color: var(--danger); }
.lede { font-size: 17px; line-height: 1.5; }
.sum { color: var(--dim); }
.yt { font-size: 13px; }
.m .lines .line { padding: 8px 0; }

h2.sec { font-size: 17px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.map { position: relative; height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map rect { fill: var(--accent); }
.map b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--fg); display: none; }
.best { display: grid; gap: 12px; }
.bestlist { display: grid; }
.playall { min-height: 44px; padding: 8px 12px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-align: center; }
.playall[aria-pressed=true] { background: var(--chip); color: var(--fg); }

.about { display: grid; gap: 8px; margin: 0; padding: 0 0 0 20px; font-size: 16px; list-style: disc; }
.about li::marker { color: var(--faint); }
strong { font-weight: 600; }
.ideas { display: grid; gap: 4px; }
.hint { color: var(--dim); font-size: 13px; margin-bottom: 8px; }
.idea { border-top: 1px solid var(--line); }
.idea:last-child { border-bottom: 1px solid var(--line); }
.idea summary { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 12px; align-items: start; min-height: 44px; padding: 12px 0; font-weight: 500; font-size: 17px; line-height: 1.35; cursor: pointer; list-style: none; touch-action: manipulation; }
.idea summary::-webkit-details-marker { display: none; }
.idea summary::after { content: ''; width: 8px; height: 8px; margin: 7px 4px 0; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); }
.idea[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.deep { padding-bottom: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; padding: 12px 0; border-top: 1px solid var(--line); min-height: 44px; transition: background-color 120ms; }
.lines .line:first-child { border-top: 0; }
.line .x { display: grid; gap: 4px; min-width: 0; }
.line .t { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 56px; padding-top: 2px; color: var(--accent); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.line .t i { width: 0; height: 0; border-block: 4px solid transparent; border-left: 7px solid currentColor; }
.line.pt .x { position: relative; padding-left: 16px; }
.line.pt .x::before { content: ''; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }
.line .q { color: var(--dim); }
.line .who { color: var(--faint); font-size: 12px; }
.line .why { color: var(--dim); font-size: 13px; }
.line.now { background: var(--chip); box-shadow: -16px 0 0 var(--chip), 16px 0 0 var(--chip); }
.lines { display: grid; }
.m h3 { font-size: 15px; font-weight: 600; margin-top: 8px; }
.m .line { padding: 8px 0; }

@media (hover: hover) { .line:hover { background: var(--chip); box-shadow: -16px 0 0 var(--chip), 16px 0 0 var(--chip); } }
@media (min-width: 960px) {
  .ep { max-width: 1280px; display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 32px; padding-inline: 24px; align-items: start; }
  .stage { display: block; order: 1; top: 16px; border: 0; }
  .stage:not(.on) { display: none; }
  .ep:not(.watching) { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .body { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
