/* After Dark network home (afterdark.fm) in the "Streamer" design (afterdark-concepts/channels/concept-3-streamer.html,
   #home). Dark only. One calm system; each channel's colours and display face come from src/shows.js `theme` and are set
   as CSS variables on its own billboard slide, tile, row and card (js/home.js themeStyle), never per-channel rules here.
   The network's other pages (Studio, sign-in, legal) keep css/network.css. */
:root {
  color-scheme: dark;
  --gut: clamp(16px, 4vw, 56px);
  --bg: #07070a; --bg2: #101016; --bg3: #17171f;
  --text: #f4f3f8; --muted: #a3a2ae; --dim: #6d6c78;
  --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .16);
  --glass: rgba(24, 24, 32, .55);
  --accent: #ece6d6; --accent2: #9db3ff; --on-accent: #0b0b0d;
  --live: #ff4343;
  --display: 'Inter Tight', Inter, system-ui, sans-serif; --dw: 800; --dls: -.03em; --dtt: none; --ds: 1; --dlh: 1.02;
  --radius: 12px;
  --hh: 68px;
}
* { 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 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -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; }
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; }
[hidden] { display: none !important; }
.sr { position: absolute; 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; }
main:focus { outline: none; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 500; padding: 8px 14px; border-radius: 8px; background: #fff; color: #000; font-weight: 600; }
.skip-link:focus { left: 8px; }

/* ================= Top bar: stays readable over the billboard (a dark scrim; solid once the page scrolls) ===== */
.hdr {
  position: sticky; top: 0; z-index: 200; border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .55) 70%, rgba(0, 0, 0, 0));
  transition: background .35s ease, border-color .35s ease;
}
body.has-bb .hdr { margin-bottom: calc(-1 * var(--hh)); }
.hdr.solid {
  background: color-mix(in oklab, var(--bg) 78%, transparent); border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.hdr-row { display: flex; align-items: center; gap: 28px; height: 68px; padding-inline: var(--gut); }
.logo { display: flex; align-items: center; gap: 10px; font: 800 19px/1 'Inter Tight', Inter, sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.moon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, #2a2a35, #0c0c11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.moon svg { width: 16px; height: 16px; }
.navl { display: flex; gap: 22px; font-weight: 500; font-size: 14px; color: var(--muted); }
.navl a { position: relative; padding: 6px 0; transition: color .2s; }
.navl a:hover { color: var(--text); }
.navl a.on { color: var(--text); font-weight: 600; }
.navl a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn svg { width: 19px; height: 19px; }
.avatar { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 3px 6px 3px 3px; }
.avatar:hover { background: rgba(255, 255, 255, .08); }
.av { width: 34px; height: 34px; border-radius: 9px; overflow: hidden; position: relative; box-shadow: 0 0 0 2px var(--accent); }
.av .moon { width: 100%; height: 100%; border-radius: 0; }
.avatar svg.caret { width: 14px; height: 14px; color: var(--muted); }
.subnav { display: none; }

/* ================= Buttons, pills ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 10px;
  font: 600 15px/1 Inter, sans-serif; white-space: nowrap; transition: transform .15s, background .2s, box-shadow .2s; }
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn-play { background: #fff; color: #000; }
.btn-play:hover { background: #e6e6ea; }
.btn-glass { background: rgba(255, 255, 255, .13); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 800 10.5px/1 Inter, sans-serif; letter-spacing: .14em; padding: 5px 8px 5px 7px;
  border-radius: 5px; background: var(--live); color: #fff; text-transform: uppercase; }
.live i, .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
.dot { background: var(--live); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.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); }
.meta .hl { color: var(--accent); font-weight: 600; }

/* Faces: the hosts' 3D portraits (each channel's /media/cast/<id>.png) or a monogram badge in the channel's accent */
.face { display: inline-block; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none;
  background: color-mix(in oklab, var(--accent) 34%, #14141b);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px color-mix(in oklab, var(--accent) 55%, transparent); }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transform: scale(1.18); transform-origin: 50% 18%; }
.face.mono { display: inline-grid; place-items: center; font: var(--dw) 14px/1 var(--display); color: var(--accent); text-transform: uppercase;
  background: radial-gradient(circle at 30% 25%, color-mix(in oklab, var(--accent) 30%, var(--bg3)), var(--bg3)); }
.faces { display: 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 { position: relative; isolation: isolate; }
.bb-slides { display: grid; }
.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);
  opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.bb-slide.on { opacity: 1; visibility: visible; transition: opacity 1s ease, visibility 0s; }
.bb-media { position: absolute; top: 0; right: 0; bottom: 0; width: 80%; overflow: hidden;
  background: radial-gradient(70% 70% at 70% 35%, color-mix(in oklab, var(--accent) 22%, var(--bg3)), var(--bg) 75%); }
.bb-media img { width: 100%; height: 113%; object-fit: cover; object-position: var(--fp, center); } /* trims the frame's burned-in captions */
.bb-slide.on .bb-media img { 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, .86) 0%, rgba(0, 0, 0, .62) 11%, transparent 30%); }
/* framed posters (big burned-in headlines, src/shows.js framedPoster): the frame as a lit card over its own blurred glow */
.bb-frame { display: none; }
.bb-slide.framed .bb-media img { filter: blur(30px) brightness(.5) saturate(1.15); transform: scale(1.25); animation: none !important; }
.bb-slide.framed .bb-frame { display: block; position: absolute; right: var(--gut); top: 50%; width: min(46%, 640px); aspect-ratio: 16 / 9; transform: translateY(-62%);
  border-radius: 18px; overflow: hidden; z-index: 1;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .12), 0 0 80px -20px color-mix(in oklab, var(--accent) 40%, transparent); }
.bb-slide.framed .bb-frame img { width: 100%; height: 100%; object-fit: cover; }
.bb-body { position: relative; z-index: 2; padding: 0 var(--gut) 150px; max-width: min(720px, 58%); }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; font: 700 12px/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.eyebrow .chtag { font-family: var(--display); font-weight: var(--dw); letter-spacing: .08em; color: var(--text); font-size: 13px; }
.eyebrow .bar { width: 18px; height: 1px; background: var(--line2); }
.bb-title { margin: 0 0 16px; font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); text-transform: var(--dtt);
  font-size: calc(clamp(34px, 3.9vw, 60px) * var(--ds)); line-height: var(--dlh); text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bb-desc { margin: 14px 0 0; color: #d7d6de; 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-ctrl { position: absolute; right: var(--gut); bottom: 150px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.bb-dots { display: flex; gap: 8px; }
.bb-dots button { width: 34px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; position: relative; }
.bb-dots button::before { content: ""; position: absolute; inset: -12px -2px; } /* a bigger target than the 4 px bar */
.bb-dots button i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.bb-dots button.on i { animation: fill var(--bb-ms, 9s) linear forwards; }
.bb.paused .bb-dots button.on i { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }
.bb-pause { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid var(--line2); }
.bb-pause:hover { background: rgba(255, 255, 255, .18); }
.bb-pause svg { width: 13px; height: 13px; }

/* ================= Rows / rails ================= */
.rows { position: relative; z-index: 3; padding-bottom: 40px; }
.rows.overlap { margin-top: -112px; }
.row { margin-top: 34px; }
.row-head { display: flex; align-items: baseline; gap: 14px; padding: 0 var(--gut); margin-bottom: 12px; }
.row-head h2 { margin: 0; font: 700 20px/1.2 Inter, sans-serif; letter-spacing: -.01em; }
.row-head h2 .from { font: 600 13px Inter, sans-serif; color: var(--muted); letter-spacing: 0; margin-left: 8px; white-space: nowrap; }
.row-head h2 .from b { font-family: var(--display); font-weight: var(--dw); color: var(--accent); letter-spacing: .02em; text-transform: var(--dtt); }
.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 svg { width: 14px; height: 14px; }
.rows-msg { padding: 34px var(--gut) 0; margin: 0; color: var(--muted); }
.rows-msg a { color: var(--accent); }
.rail-wrap { position: relative; }
.rail { 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; scrollbar-width: none; --per: 5.3; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 calc((100% - (var(--per) - .3) * 14px) / var(--per)); scroll-snap-align: start; min-width: 0; }
.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 .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 svg { 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); outline-offset: 4px; }
.thumb { position: relative; 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, .06), 0 10px 30px -14px rgba(0, 0, 0, .8); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .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, .55), transparent 42%); pointer-events: none; }
.dur, .fmt, .chip-ch { position: absolute; z-index: 2; font: 700 11px/1 Inter, sans-serif; padding: 5px 7px; border-radius: 6px; background: rgba(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: .06em; text-transform: uppercase; color: #fff; }
.fmt.acc { color: var(--accent); }
.chip-ch { left: 8px; top: 8px; font-family: var(--display); font-weight: var(--dw); letter-spacing: .06em; color: var(--accent); font-size: 11.5px; text-transform: uppercase; }
.card-t { margin-top: 10px; 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-top: 3px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* an episode without a poster: a quiet typographic tile in the channel's colours */
.noart { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 8% 7%; container-type: inline-size;
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--accent) 34%, transparent), transparent 60%),
              radial-gradient(90% 80% at 0% 100%, color-mix(in oklab, var(--accent2) 18%, transparent), transparent 70%), linear-gradient(150deg, var(--bg3), var(--bg2)); }
.noart b { font: var(--dw) clamp(17px, 11cqw, 48px)/1 var(--display); letter-spacing: -.02em; color: #fff; text-transform: var(--dtt); }
/* a picture that can't load: the tinted frame behind it shows instead */
img.broken { visibility: hidden; }

/* ================= Channels (the browse shelf: one template tile per channel, any number of channels) ========= */
.pick { padding: 0 var(--gut); margin-top: 46px; scroll-margin-top: 80px; }
.pick-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: 20px; }
.pick-head h2 { margin: 0; font: 800 clamp(26px, 2.6vw, 38px)/1.05 'Inter Tight', Inter, sans-serif; letter-spacing: -.03em; max-width: 640px; text-wrap: balance; }
.pick-head p { margin: 0; color: var(--muted); max-width: 520px; font-size: 15px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { 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: all .2s; }
.chip:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.chip small { margin-left: 6px; color: inherit; opacity: .6; font-size: 12px; }
/* at most four across on a wide screen; more channels simply wrap into more rows */
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 48px) / 4)), 1fr)); gap: 16px; }
.ptile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; isolation: isolate; background: var(--bg2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.ptile:hover, .ptile:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 2px var(--accent), 0 24px 60px -20px color-mix(in oklab, var(--accent) 45%, transparent); }
.pt-art { position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(90% 70% at 70% 20%, color-mix(in oklab, var(--accent) 30%, var(--bg3)), var(--bg2) 80%); }
.pt-art img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fp, center); transition: transform .8s; }
.ptile:hover .pt-art img { transform: scale(1.05); }
.pt-art.soft img { filter: blur(10px) brightness(.6) saturate(1.1); transform: scale(1.3); }
.ptile::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--bg) 6%, color-mix(in oklab, var(--bg) 70%, transparent) 38%, transparent 66%); }
.pt-top { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pt-cat { margin-left: auto; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .12em;
  text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pt-body { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.pt-name { font-family: var(--display); font-weight: var(--dw); letter-spacing: var(--dls); text-transform: var(--dtt); font-size: clamp(28px, 2.4vw, 38px); line-height: 1; overflow-wrap: anywhere; }
.pt-name small { display: block; margin-top: 6px; font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.pt-body p { margin: 10px 0 0; color: #cfced6; font-size: 13.5px; line-height: 1.4; }
.pt-onair { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-onair b { color: var(--text); font-weight: 600; }
.netline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.netline span { display: inline-flex; align-items: center; gap: 8px; }
.netline svg { width: 15px; height: 15px; color: var(--accent); }

/* ================= Footer ================= */
.foot { margin-top: 30px; padding: 38px var(--gut) 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; z-index: 1;
  background: color-mix(in oklab, var(--bg) 92%, #000); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot .logo { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a:hover, .foot-small a:hover { color: var(--text); }
.foot p { margin: 16px 0 0; max-width: 680px; }
.foot p + p { margin-top: 8px; }
.foot .aff { color: #d8d7de; }
.foot-small { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-small a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }

/* ================= Channel switcher (a native <dialog>: focus stays inside, Esc closes) ================= */
dialog.sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 24px 16px; color: var(--text);
  background: rgba(3, 3, 6, .72); backdrop-filter: blur(26px) saturate(120%); -webkit-backdrop-filter: blur(26px) saturate(120%); overflow-y: auto; }
dialog.sheet[open] { display: grid; place-items: center; animation: sheetIn .3s ease; }
dialog.sheet::backdrop { background: transparent; }
@keyframes sheetIn { from { opacity: 0; } to { opacity: 1; } }
.sheet-in { width: min(1000px, 100%); text-align: center; }
.sheet h2 { margin: 0 0 8px; font: 800 clamp(28px, 4vw, 44px)/1.05 'Inter Tight', Inter, sans-serif; letter-spacing: -.03em; }
.sheet p.s { margin: 0 0 30px; color: var(--muted); }
.sheet .ptiles { text-align: left; }
.sheet .ptile { aspect-ratio: 1; }
.sheet .x { position: absolute; top: 18px; right: 18px; }
.sheet .home { display: inline-flex; margin-top: 26px; }
.sheet .home .moon { width: 24px; height: 24px; }

/* ================= Hover preview (desktop pointers) ================= */
.preview { position: absolute; z-index: 250; border-radius: 16px; overflow: hidden; background: var(--bg2);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .1);
  opacity: 0; transform: scale(.9); transform-origin: center 30%; pointer-events: none; transition: opacity .22s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.preview.on { opacity: 1; transform: none; pointer-events: auto; }
.pv-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: block; background: var(--bg3); }
.pv-media img { width: 100%; height: 100%; object-fit: cover; }
.preview.on .pv-media img { animation: kb 9s ease-out forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.14) translate(-2%, -1%); } }
.pv-tag { position: absolute; left: 12px; top: 12px; font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 5px;
  background: rgba(0, 0, 0, .6); color: var(--accent); font-family: var(--display); }
.pv-body { padding: 14px 16px 16px; }
.pv-acts { display: flex; gap: 8px; align-items: center; }
.cbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; }
.cbtn.w { background: #fff; color: #000; border-color: #fff; }
.cbtn svg { width: 17px; height: 17px; }
.cbtn.more { margin-left: auto; }
.pv-body h4 { margin: 12px 0 6px; font-size: 15.5px; line-height: 1.3; }
.pv-body .meta { font-size: 12.5px; }
.pv-body .hostline { margin-top: 10px; font-size: 12.5px; }
.pv-body .face { width: 26px; height: 26px; }
.pv-body q { display: block; margin-top: 10px; color: #cfced6; font-size: 13px; line-height: 1.4; }

/* ================= Analytics question (js/analytics.js; EEA, UK and Swiss visitors only) ================= */
.consent { position: fixed; z-index: 450; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 620px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg2); border: 1px solid var(--line2); box-shadow: 0 12px 36px rgba(0, 0, 0, .5); color: #d7d6de; font-size: 14px; }
.consent p { flex: 1 1 260px; margin: 0; line-height: 1.45; }
.consent a { color: #fff; text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid var(--line2); }
.consent .btn-primary { background: #fff; color: #000; border-color: #fff; }

/* ================= 404 ================= */
.lost { min-height: 70vh; display: grid; align-content: center; padding: 120px var(--gut) 60px; }
.lost h1 { margin: 0; font: 800 clamp(40px, 6vw, 76px)/1 'Inter Tight', Inter, sans-serif; letter-spacing: -.03em; }
.lost p { margin: 16px 0 0; color: var(--muted); font-size: 17px; max-width: 560px; }
.lost .bb-cta { margin-top: 28px; }

/* ================= Responsive ================= */
@media (max-width: 1180px) {
  .rail { --per: 4.3; }
}
@media (max-width: 900px) {
  .navl { display: none; }
  .subnav { display: flex; gap: 6px; padding: 0 var(--gut) 10px; overflow-x: auto; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav 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; white-space: nowrap; background: rgba(0, 0, 0, .25); }
  .subnav a.on { background: #fff; color: #000; border-color: #fff; }
  .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hdr-row { height: 58px; gap: 12px; }
  .logo { font-size: 17px; }
  .hdr-right { gap: 6px; }
  .avatar svg.caret { 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, .85), rgba(0, 0, 0, .5) 30%, transparent 50%); }
  .bb-body { max-width: none; padding: 0 var(--gut); margin-top: -58px; }
  .bb-intro .bb-body { margin-top: -120px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; letter-spacing: .16em; }
  .bb-title { font-size: calc(29px * (.5 + var(--ds) / 2)); 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 0; padding: 0 12px; height: 46px; }
  .bb-ctrl { position: relative; right: auto; bottom: auto; justify-content: center; margin-top: 20px; }
  .bb-slide.framed .bb-frame { display: none; }
  .bb-slide.framed .bb-media img { filter: none; transform: none; }
  .rows.overlap { margin-top: 30px; }
  .row { margin-top: 30px; }
  .row-head { flex-wrap: wrap; row-gap: 4px; }
  .row-head h2 { font-size: 18px; }
  .row-head h2 .from { display: block; margin: 4px 0 0; }
  .rail { gap: 12px; --per: 1.45; }
  .rail > * { flex-basis: calc((100% - (var(--per) - .3) * 12px) / var(--per)); }
  .rail-btn { display: none; }
  .pick { margin-top: 34px; }
  .ptiles { gap: 12px; }
  .ptile { border-radius: 14px; }
  .pt-body { left: 12px; right: 12px; bottom: 12px; }
  .pt-name { font-size: 25px; }
  .pt-body p { display: none; }
  .pt-onair { font-size: 11.5px; margin-top: 8px; padding-top: 8px; }
  .pt-top { left: 10px; top: 10px; right: 10px; }
  .pt-cat { height: 20px; padding: 0 7px; font-size: 9.5px; letter-spacing: .1em; }
  .foot { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
