/* Azeroth After Dark — public site (live channel, archive, episode, about).
   Same visual language as the studio app: night-purple backdrop, gold Cinzel wordmark, broadcast red for LIVE,
   per-game (retail gold / classic bronze / forever arcane) and per-source colours. */

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: dark;

  --bg: #0a0910;
  --panel: #14121d;
  --panel-2: #1b1827;
  --panel-3: #252136;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);

  --text: #eeebf6;
  --text-2: #c9c4db;
  --muted: #9a94b1;
  --faint: #6f6a87;

  --brand: #9d7dff;
  --gold: #f1c86a;
  --gold-2: #ffe3a0;
  --live: #ff3b47;
  --live-text-bg: #d91f2b; /* behind small white text: 5.0:1 */
  --ok: #3ddc97;

  --wowhead: #e2462d;
  --wowhead-ink: #ff937c;
  --blizzard: #148eff;
  --blizzard-ink: #82c3ff;
  --icyveins: #3fd0e0;
  --icyveins-ink: #93ebf4;
  --reddit: #ff4500;
  --reddit-ink: #ffb199;
  --research: #8b93a8; /* pages the writer's web research cited */
  --research-ink: #c9cfdd;

  --retail: #f1c86a;
  --retail-ink: #ffe2a3;
  --classic: #c98b4e;
  --classic-ink: #ecd0a4;
  --forever: #df6cf0;
  --forever-ink: #f4b8fa;
  --allgames: #b9a8ff;
  --allgames-ink: #ece6ff;

  --host-grukk: #ff7a66; /* lighter than the studio accent so it reads as text on dark */
  --host-lyra: #c7a2ff;
  --host-tinkra: #f5c451;
  --host-durgan: #6db8f0;
  --host-morwen: #8fe0b0;

  --radius: 14px;
  --radius-sm: 10px;
  --topbar-h: 64px;
  --gutter: 24px;
  --side-w: 360px;

  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Cinzel', 'Trajan Pro', 'Palatino Linotype', Georgia, serif;
  --font-cond: 'Oswald', 'Arial Narrow', 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
}

[data-source='wowhead'] { --src: var(--wowhead); --src-ink: var(--wowhead-ink); }
[data-source='blizzard'] { --src: var(--blizzard); --src-ink: var(--blizzard-ink); }
[data-source='icyveins'] { --src: var(--icyveins); --src-ink: var(--icyveins-ink); }
[data-source='reddit'] { --src: var(--reddit); --src-ink: var(--reddit-ink); }
[data-source='research'] { --src: var(--research); --src-ink: var(--research-ink); }
[data-game='all'] { --g: var(--allgames); --g-ink: var(--allgames-ink); }
[data-game='retail'] { --g: var(--retail); --g-ink: var(--retail-ink); }
[data-game='classic'] { --g: var(--classic); --g-ink: var(--classic-ink); }
[data-game='forever'] { --g: var(--forever); --g-ink: var(--forever-ink); }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 15px/1.55 var(--font-ui);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 28% -8%, rgba(123, 92, 240, 0.16), transparent 62%),
    radial-gradient(900px 520px at 100% -4%, rgba(20, 142, 255, 0.07), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(226, 70, 45, 0.05), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

main { flex: 1 0 auto; width: 100%; }
img, video { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; display: block; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; border-radius: 8px; background: var(--gold); color: #1a1405;
  font-weight: 700; text-decoration: none; transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

.link {
  color: var(--gold-2); text-decoration: underline; text-decoration-color: rgba(241, 200, 106, 0.4);
  text-underline-offset: 3px;
}
.link:hover { text-decoration-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06);
  color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--line-3); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: #fff; color: #120f1c; border-color: #fff; }
.btn-primary:hover { background: #e9e4ff; border-color: #e9e4ff; }

/* Badges */
.game-badge, .tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 6px; border-radius: 6px; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
.game-badge {
  color: var(--g-ink);
  background: color-mix(in srgb, var(--g) 13%, rgba(8, 7, 14, 0.7));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g) 36%, transparent);
}
.game-badge .icon { width: 13px; height: 13px; color: var(--g); }
.tag { padding: 3px 8px; color: var(--text-2); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag-new { color: #fff; background: var(--live-text-bg); box-shadow: none; }
.over-media { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(8, 7, 14, 0.78); }

.src-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--src, var(--muted)); box-shadow: 0 0 8px var(--src, transparent);
}

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--topbar-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 var(--gutter);
  background: rgba(10, 9, 16, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: inherit; border-radius: 10px; }
.brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 14px rgba(241, 200, 106, 0.28)); }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1;
  letter-spacing: 0.035em; white-space: nowrap;
  background: linear-gradient(180deg, #fff6da 0%, var(--gold) 55%, #c08d34 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark em { font-style: normal; font-weight: 700; font-size: 0.84em; letter-spacing: 0.08em; }
.tagline { font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px;
  color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.nav[data-onair='true'] .live-dot { background: var(--live); box-shadow: 0 0 8px var(--live); }

.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hsearch ~ .topbar-end { margin-left: 0; }

.onair-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px 0 11px;
  border-radius: 999px; white-space: nowrap; text-decoration: none;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2);
  color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.1em;
}
.onair-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #6f6a84; }
.onair-pill .sub { font-weight: 600; letter-spacing: 0.01em; color: inherit; }
.onair-pill[data-state='live'] {
  color: #fff; background: var(--live-text-bg); border-color: var(--live-text-bg);
  box-shadow: 0 0 24px -4px rgba(255, 59, 71, 0.7);
}
.onair-pill[data-state='live'] .dot { background: #fff; animation: pulse-dot 1.2s ease-in-out infinite; }
a.onair-pill:hover { filter: brightness(1.1); }

@keyframes pulse-dot { 50% { opacity: 0.35; transform: scale(0.8); } }

/* ------------------------------------------------------------------ page chrome */
.page { max-width: 1480px; margin: 0 auto; padding: 24px var(--gutter) 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.page-head h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: 0.03em; line-height: 1.15;
}
.page-head p { color: var(--text-2); max-width: 64ch; margin-top: 6px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12.5px/1 var(--font-cond); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.eyebrow .icon { width: 16px; height: 16px; }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
}
.card-title {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  font: 600 13px/1.2 var(--font-cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.card-title .icon { width: 17px; height: 17px; color: var(--muted); }

.footer {
  border-top: 1px solid var(--line);
  padding: 22px var(--gutter) 28px;
  color: var(--muted); font-size: 13px;
}
.footer-inner { max-width: 1480px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; }
.footer p { max-width: 80ch; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: var(--text-2); }

/* ------------------------------------------------------------------ player (shared) */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(80% 70% at 50% 40%, #1d1830 0%, #0c0a14 70%), #07060c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 28px 80px -24px rgba(0, 0, 0, 0.9),
    0 0 120px -30px rgba(140, 100, 255, 0.45);
  container-type: inline-size;
}
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player:fullscreen { border-radius: 0; box-shadow: none; }

video::cue {
  background: rgba(6, 5, 12, 0.8);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.35;
}
video::cue(v[voice='Grukk']) { color: #ffd2ca; }
video::cue(v[voice='Lyra']) { color: #e6d6ff; }
video::cue(v[voice='Tinkra']) { color: #ffe7ad; }
video::cue(v[voice='Durgan']) { color: #cfe8fb; }
video::cue(v[voice='Morwen']) { color: #d4f5e1; }

/* ------------------------------------------------------------------ live page */
.live-layout {
  display: grid; gap: 22px 24px;
  max-width: 1720px; margin: 0 auto; padding: 20px var(--gutter) 40px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1100px) {
  .live-layout { grid-template-columns: minmax(0, 1fr) var(--side-w); align-items: start; }
}
.live-main { min-width: 0; display: grid; gap: 18px; }
.live-main .player { max-width: max(560px, calc((100svh - var(--topbar-h) - 190px) * 16 / 9)); margin-inline: auto; }
body[data-live='on'] .live-main .player {
  box-shadow: 0 0 0 1px rgba(255, 90, 100, 0.26), 0 28px 80px -24px rgba(0, 0, 0, 0.9), 0 0 130px -34px rgba(255, 59, 71, 0.42);
}

.ov { position: absolute; z-index: 3; pointer-events: none; }
.ov > * { pointer-events: auto; }
/* Sits just below the video's own burned-in show bug (top-left) and sources pill (top-right), which end at ~10.4% of
   the frame height; the game is already in the video's bug, so the overlay game chip stays hidden. */
.ov-top { top: 9%; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 14px 16px; }
.ov-top .game-badge { display: none; }
.live-badge {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px;
  border-radius: 6px; background: var(--live-text-bg); color: #fff;
  font: 600 13px/1 var(--font-cond); letter-spacing: 0.14em;
  box-shadow: 0 0 22px -4px rgba(255, 59, 71, 0.8);
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse-dot 1.2s ease-in-out infinite; }
.ov-top .watching-mini {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700; color: #fff;
}
.ov-top .watching-mini .icon { width: 16px; height: 16px; color: var(--live); }

.ov-bottom {
  left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 6px; padding: 28px 12px 12px;
  background: linear-gradient(0deg, rgba(5, 4, 10, 0.85), rgba(5, 4, 10, 0.4) 60%, transparent);
  transition: opacity 0.3s;
}
.player[data-idle='true'] .ov-bottom:not(:focus-within),
.player[data-idle='true'] .watching-mini { opacity: 0; }
.ov-top .watching-mini { transition: opacity 0.3s; }
.player[data-idle='true'] { cursor: none; }
.ctl {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 0; background: transparent; color: #fff;
}
.ctl:hover { background: rgba(255, 255, 255, 0.14); }
.ctl .icon { width: 22px; height: 22px; }
.ctl[aria-pressed='true'] { color: var(--gold); }
.ctl-time { color: var(--text-2); font-size: 13px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.ctl-spacer { flex: 1; }
.volume { width: 92px; accent-color: #fff; }

.unmute {
  position: absolute; z-index: 4; left: 50%; top: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px;
  border-radius: 999px; border: 0; background: #fff; color: #120f1c;
  font-size: 15px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(255, 255, 255, 0.14);
  animation: unmute-in 0.5s var(--ease-out) both;
}
.unmute .icon { width: 22px; height: 22px; }
.unmute:hover { background: #efeaff; }
@keyframes unmute-in { from { opacity: 0; transform: translate(-50%, -10px); } }

/* Live captions (drawn from the VTT track): studio caption look, kept above the control bar. */
.live-captions {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 70px; margin-inline: auto;
  width: fit-content; max-width: min(80%, 900px);
  padding: 0.4em 0.85em 0.48em; border-radius: 0.55em;
  background: rgba(6, 5, 12, 0.8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #fff; font-size: clamp(13px, 2cqw, 28px); font-weight: 600; line-height: 1.38; text-align: center;
  text-wrap: balance; pointer-events: none; transition: bottom 0.3s var(--ease-out);
}
.player[data-idle='true'] .live-captions { bottom: 22px; }
.live-captions .cap-who {
  display: block; margin-bottom: 0.15em; font-size: max(0.62em, 10px); font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
}
.live-captions .cap-who[data-host='grukk'] { color: var(--host-grukk); }
.live-captions .cap-who[data-host='lyra'] { color: var(--host-lyra); }
.live-captions .cap-who[data-host='tinkra'] { color: var(--host-tinkra); }
.live-captions .cap-who[data-host='durgan'] { color: var(--host-durgan); }
.live-captions .cap-who[data-host='morwen'] { color: var(--host-morwen); }

.live-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 5; background: rgba(255, 255, 255, 0.1); }
.live-progress i { display: block; height: 100%; width: 0; background: var(--live); box-shadow: 0 0 10px var(--live); }

.player-msg {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center; padding: 24px; text-align: center;
  background: radial-gradient(70% 70% at 50% 45%, rgba(29, 24, 48, 0.9), rgba(7, 6, 12, 0.96));
}
.player-msg .msg-inner { display: grid; justify-items: center; gap: 14px; max-width: 520px; }
.player-msg img { width: 72px; height: 72px; filter: drop-shadow(0 0 24px rgba(241, 200, 106, 0.35)); }
.player-msg h2 { font-family: var(--font-display); font-size: clamp(20px, 3cqw, 30px); letter-spacing: 0.04em; }
.player-msg p { color: var(--text-2); }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.big-play {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px 0 20px; border-radius: 999px;
  border: 0; background: #fff; color: #120f1c; font-size: 16px; font-weight: 800;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12);
}
.big-play .icon { width: 24px; height: 24px; }

@container (max-width: 560px) {
  .ov-top { padding: 10px; }
  .ov-bottom { padding: 22px 6px 6px; gap: 2px; }
  .ctl { width: 36px; height: 36px; }
  .volume { display: none; }
  .unmute { top: 10px; min-height: 34px; font-size: 13px; padding: 0 14px 0 11px; gap: 7px; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.14); }
  .unmute .icon { width: 18px; height: 18px; }
  .ov-top #ovGame, .ov-top .watching-mini { display: none; }
  .live-badge { height: 24px; font-size: 12px; }
  .live-captions { bottom: 50px; max-width: 92%; font-size: 12.5px; }
  .player[data-idle='true'] .live-captions { bottom: 12px; }
}

/* Now playing */
.now { display: grid; gap: 10px; }
.now-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.now-kicker .eyebrow { margin-right: 4px; }
.now h1 {
  font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.22; letter-spacing: -0.01em;
  text-wrap: balance;
}
.now .lower-third { color: var(--text-2); font-size: 16px; }
.now-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13.5px; }
.now-meta span { display: inline-flex; align-items: center; gap: 6px; }
.now-meta .icon { width: 16px; height: 16px; }
.now-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
@media (min-width: 900px) { .now-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.now-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.sources { display: grid; gap: 8px; }
.source-link {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  text-decoration: none; transition: background 0.15s, border-color 0.15s;
}
.source-link:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-2); }
.source-link .src-name {
  flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--src-ink, var(--text-2));
  min-width: 70px;
}
/* "r/wow · u/name" is a lowercase handle: never shout it */
.source-link[data-source='reddit'] .src-name { text-transform: none; letter-spacing: 0.02em; font-size: 12px; }
.source-link .src-title { min-width: 0; color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.source-link .icon { width: 16px; height: 16px; color: var(--muted); margin-left: auto; flex: none; }

/* Side column */
.live-side { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 1100px) { .live-side { position: sticky; top: calc(var(--topbar-h) + 20px); } }
.watching-card { display: flex; align-items: center; gap: 14px; }
.watching-card .big {
  font: 600 38px/1 var(--font-cond); color: #fff; font-variant-numeric: tabular-nums; min-width: 1.2ch;
}
.watching-card .label { color: var(--text-2); font-size: 14px; line-height: 1.35; }
.watching-card .label small { display: block; color: var(--muted); font-size: 12.5px; }
.watching-card .eye {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: rgba(255, 59, 71, 0.12); color: var(--live); box-shadow: inset 0 0 0 1px rgba(255, 59, 71, 0.3);
}

.upnext { display: grid; gap: 4px; }
.upnext li { min-width: 0; }
.upnext a {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 8px; margin: 0 -8px; border-radius: var(--radius-sm); text-decoration: none;
  transition: background 0.15s;
}
.upnext a:hover { background: rgba(255, 255, 255, 0.05); }
.thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: linear-gradient(135deg, #1d1830, #0c0a14); box-shadow: inset 0 0 0 1px var(--line);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.upnext .when { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.upnext .when b { color: var(--gold-2); font-weight: 700; }
.upnext .t { font-weight: 650; font-size: 14px; line-height: 1.3; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 2px; }
.upnext .m { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.upnext .m .game-badge { font-size: 10px; padding: 2px 6px 2px 5px; }
.upnext .m { flex-wrap: wrap; }
.upnext .m .hosts-line { font-size: 12px; }

/* the episode's two hosts: names with their colour dots */
.hosts-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; min-width: 0; color: var(--muted); }
.hosts-line .with { margin-right: 1px; }
.hosts-line .host-name { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; color: var(--text-2); white-space: nowrap; }
.hosts-line .host-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--hc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hc) 22%, transparent); }
.hosts-line .amp { color: var(--muted); font-weight: 500; }
.muted-note { color: var(--muted); font-size: 13.5px; }


/* ------------------------------------------------------------------ archive */
.filters { display: grid; gap: 14px; margin-bottom: 18px; }
.game-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px;
}
.game-tabs::-webkit-scrollbar { display: none; }
.game-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 13px; flex: none;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  color: var(--text-2); font-size: 14px; font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.game-tab .icon { width: 18px; height: 18px; color: var(--g); }
.game-tab .count { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.game-tab:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.game-tab[aria-selected='true'], .game-tab[aria-pressed='true'] {
  color: var(--g-ink);
  background: color-mix(in srgb, var(--g) 13%, transparent);
  border-color: color-mix(in srgb, var(--g) 45%, transparent);
  box-shadow: 0 0 24px -10px var(--g);
}
.game-tab[aria-selected='true'] .count, .game-tab[aria-pressed='true'] .count { color: var(--g-ink); }

.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600;
}
.chip:hover { color: #fff; border-color: var(--line-3); }
.chip[aria-pressed='true'] { background: #fff; color: #120f1c; border-color: #fff; }
.chip[aria-pressed='true'] .src-dot { box-shadow: none; }

.search {
  position: relative; display: flex; align-items: center; min-width: 0; flex: 0 1 340px;
}
.search .icon { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 40px; padding: 0 38px 0 38px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: var(--text);
}
.search input::placeholder { color: var(--faint); }
.search input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.search input::-webkit-search-cancel-button { display: none; }
.search .clear {
  position: absolute; right: 4px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted);
}
.search .clear:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.search .clear .icon { position: static; width: 16px; height: 16px; }

.result-count { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

.grid { display: grid; gap: 22px 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.meta .sep { color: var(--faint); }

.empty {
  display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 20px;
  border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2);
}
.empty h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.03em; color: var(--text); }
.more-wrap { display: flex; justify-content: center; margin-top: 28px; }

.skeleton .thumb, .skeleton .sk-line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.skeleton .sk-line { height: 14px; border-radius: 6px; margin-top: 10px; }
.skeleton .sk-line.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ episode page */
.crumbs { margin-bottom: 14px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 14px; font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs .icon { width: 18px; height: 18px; }

.ep-layout { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .ep-layout { grid-template-columns: minmax(0, 1fr) var(--side-w); align-items: start; } }
.ep-main { display: grid; gap: 20px; min-width: 0; }
.ep-head { display: grid; gap: 10px; }
.ep-head .badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ep-head h1 { font-weight: 800; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.ep-head .lower-third { color: var(--text-2); font-size: 17px; }

.ep-side { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 1100px) { .ep-side { position: sticky; top: calc(var(--topbar-h) + 20px); } }
.chapters { display: grid; gap: 2px; }
.chapters button {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--text-2);
}
.chapters button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.chapters .ts { color: var(--gold-2); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chapters [aria-current='true'] { background: rgba(241, 200, 106, 0.1); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }

.transcript { display: grid; gap: 14px; }
.transcript-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tx { display: grid; gap: 14px; max-height: 560px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; }
.tx-para { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.tx-who { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; color: var(--muted); }
.tx-who[data-host='grukk'] { color: var(--host-grukk); }
.tx-who[data-host='lyra'] { color: var(--host-lyra); }
.tx-who[data-host='tinkra'] { color: var(--host-tinkra); }
.tx-who[data-host='durgan'] { color: var(--host-durgan); }
.tx-who[data-host='morwen'] { color: var(--host-morwen); }
.tx-text { color: var(--text-2); line-height: 1.7; }
.tx-cue { cursor: pointer; border-radius: 4px; padding: 1px 0; transition: background 0.15s, color 0.15s; }
.tx-cue:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.tx-cue.on { color: #fff; background: rgba(241, 200, 106, 0.16); box-shadow: 0 0 0 2px rgba(241, 200, 106, 0.16); }
.tx-cue:focus-visible { outline-offset: 1px; }

.more-list { display: grid; gap: 4px; }

/* ------------------------------------------------------------------ about */
.about { max-width: 860px; margin: 0 auto; padding: 32px var(--gutter) 56px; display: grid; gap: 30px; }
.about-hero { display: grid; gap: 14px; }
.about-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; letter-spacing: 0.03em; }
.about-hero p { font-size: 17px; color: var(--text-2); max-width: 62ch; }
.about h2 { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.03em; margin-bottom: 10px; }
.about section > p + p { margin-top: 10px; }
.about p { color: var(--text-2); max-width: 70ch; }
.callout {
  display: grid; gap: 8px; padding: 20px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(241, 200, 106, 0.09), rgba(241, 200, 106, 0.03));
  border: 1px solid rgba(241, 200, 106, 0.3);
}
.callout h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--gold-2); }
.callout h2 .icon { width: 22px; height: 22px; color: var(--gold); }
.callout p { color: var(--text); }
.callout .credit-list li { color: var(--text); }
.steps { display: grid; gap: 10px; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start;
  color: var(--text-2);
}
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--panel-3); color: var(--gold-2); font-weight: 800; font-size: 13px;
}
.steps strong { color: var(--text); }
.hosts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.host { border-left: 3px solid var(--host); }
.host h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.04em; color: var(--host); }
.host .role { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 2px 0 8px; }
.host-grukk { --host: var(--host-grukk); }
.host-lyra { --host: var(--host-lyra); }
.host-tinkra { --host: var(--host-tinkra); }
.host-durgan { --host: var(--host-durgan); }
.host-morwen { --host: var(--host-morwen); }
.hosts-sub { margin: 18px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.credit-list { display: grid; gap: 10px; }
.credit-list li { color: var(--text-2); }
.credit-list strong { color: var(--text); }

/* ------------------------------------------------------------------ 404 */
.notfound { max-width: 640px; margin: 0 auto; padding: 80px var(--gutter); text-align: center; display: grid; gap: 16px; justify-items: center; }
.notfound img { width: 84px; height: 84px; }
.notfound h1 { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.04em; }
.notfound p { color: var(--text-2); }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 860px) {
  :root { --gutter: 16px; --topbar-h: 58px; }
  .topbar { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .wordmark { font-size: 18px; }
  .tagline { display: none; }
  .topbar-end { order: 2; }
  .nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 8px calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter);
    border-top: 1px solid var(--line); justify-content: space-between; }
  .nav a { flex: 1 1 auto; justify-content: center; height: 36px; padding: 0 8px; white-space: nowrap; }
  .page { padding-top: 18px; }
  .live-layout { padding-top: 14px; }
  .search { flex-basis: 100%; }
  .tx-para { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .upnext a { grid-template-columns: 96px minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .wordmark { font-size: 16.5px; letter-spacing: 0.02em; }
  .nav { gap: 2px; }
  .nav a { padding: 0 6px; font-size: 13px; gap: 5px; }
  .onair-pill { padding: 0 10px 0 9px; }
  .onair-pill .sub-long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* transcript speaker buttons */
button.tx-who { border: 0; background: none; text-align: left; font-family: inherit; cursor: pointer; align-self: start; padding: 3px 0 0; border-radius: 4px; }
button.tx-who:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Episode page, single column: chapters right under the header, then sources, transcript, more. */
@media (max-width: 1099px) {
  .ep-layout { display: flex; flex-direction: column; gap: 20px; }
  .ep-main, .ep-side { display: contents; }
  .ep-main > .player { order: 1; }
  .ep-head { order: 2; }
  #chaptersCard { order: 4; }
  .ep-main > section:not(.transcript) { order: 5; }
  .ep-main > .transcript { order: 6; }
  #moreCard { order: 7; }
}

/* Archive game tabs: all four visible on phones (2 × 2). */
@media (max-width: 520px) {
  .game-tabs { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .game-tab { justify-content: flex-start; }
  .game-tab .count { margin-left: auto; }
}

/* ================================================================== site structure (home, search, categories) */

/* Category accents (text-on-dark tints). */
[data-category='all'] { --cat: #b9a8ff; }
[data-category='patch-notes'] { --cat: #72bdf5; }
[data-category='class-tuning'] { --cat: #ff8f78; }
[data-category='raids-mplus'] { --cat: #ffad5c; }
[data-category='events'] { --cat: #8fe0b0; }
[data-category='shop-mounts'] { --cat: #f79ac0; }
[data-category='lore'] { --cat: #c7a2ff; }
[data-category='esports'] { --cat: #62dcea; }
[data-category='roundups'] { --cat: #f1c86a; }
[data-category='other'] { --cat: #aaa4c4; }

.cat-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--cat, var(--muted)); box-shadow: 0 0 10px color-mix(in srgb, var(--cat, transparent) 70%, transparent);
}
.cat-tag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  color: var(--cat); font-size: 12px; font-weight: 750; letter-spacing: 0.02em; text-decoration: none;
}
a.cat-tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.ep-head .badges .cat-tag, .hero-kicker .cat-tag {
  padding: 3px 9px 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
  background: color-mix(in srgb, var(--cat) 12%, rgba(8, 7, 14, 0.7)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 34%, transparent);
}

mark {
  background: rgba(241, 200, 106, 0.24); color: #fff; border-radius: 3px; padding: 0 1px;
  box-shadow: 0 0 0 1px rgba(241, 200, 106, 0.18);
}

.btn-lg { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn-lg .icon { width: 20px; height: 20px; }
.btn-live { background: var(--live-text-bg); border-color: var(--live-text-bg); color: #fff; }
.btn-live:hover { background: #ea2733; border-color: #ea2733; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text-2);
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.icon-btn .icon { width: 18px; height: 18px; }

.sk-line {
  display: block; height: 14px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
.sk-title { height: 44px; width: min(620px, 80%); border-radius: 10px; }
.sk-head { height: 24px; width: 220px; }

/* ------------------------------------------------------------------ header search */
.hsearch { position: relative; flex: 0 1 340px; min-width: 200px; margin-left: auto; display: flex; align-items: center; }
.hsearch > .icon { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.hsearch input {
  width: 100%; height: 38px; padding: 0 36px 0 39px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.045); color: var(--text); font-size: 14px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.hsearch input::placeholder { color: var(--faint); }
.hsearch input::-webkit-search-cancel-button { display: none; }
.hsearch input:focus-visible { outline: none; }
.hsearch input:focus { background: rgba(255, 255, 255, 0.08); border-color: rgba(241, 200, 106, 0.55); box-shadow: 0 0 0 3px rgba(241, 200, 106, 0.16); }
.hsearch-key {
  position: absolute; right: 10px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 5px; border: 1px solid var(--line-3); color: var(--muted); font: 600 11.5px/1 var(--font-ui); pointer-events: none;
}
.hsearch:focus-within .hsearch-key, .hsearch input:not(:placeholder-shown) ~ .hsearch-key { display: none; }
.hsearch[aria-busy='true'] > .icon { color: var(--gold); animation: pulse-dot 0.9s ease-in-out infinite; }

.hsearch-pop {
  position: absolute; z-index: 70; top: calc(100% + 8px); right: 0; width: min(540px, calc(100vw - 32px));
  max-height: min(72vh, 620px); overflow-y: auto; padding: 6px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 120px), #15131f;
  border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
  scrollbar-width: thin;
}
.hsearch-list { display: grid; gap: 2px; }
.hs-opt {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: start;
  padding: 8px; border-radius: 11px; cursor: pointer;
}
.hs-opt:hover, .hs-opt[aria-selected='true'] { background: rgba(255, 255, 255, 0.075); }
.hs-opt[aria-selected='true'] { box-shadow: inset 3px 0 0 var(--gold); }
.hs-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 7px; overflow: hidden; background: linear-gradient(135deg, #1d1830, #0c0a14); box-shadow: inset 0 0 0 1px var(--line); }
.hs-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hs-main { display: grid; gap: 3px; min-width: 0; }
.hs-title { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hs-snip { font-size: 12.5px; line-height: 1.45; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hs-where { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-right: 6px; }
.hs-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 7px; font-size: 12px; color: var(--muted); }
.hs-meta .game-badge { font-size: 9.5px; padding: 1px 5px 1px 4px; }
.hs-meta .game-badge .icon { width: 11px; height: 11px; }
.hs-all { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 4px; padding: 11px 12px; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; color: var(--gold-2); font-size: 13.5px; font-weight: 600; }
.hs-all .icon { width: 17px; height: 17px; }
.hs-all b { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.hsearch-msg { padding: 12px 12px 4px; color: var(--muted); font-size: 13.5px; }
.search-toggle { display: none; }

@media (max-width: 1240px) {
  .tagline { display: none; }
  .nav a { padding: 0 11px; }
  .hsearch { flex-basis: 260px; min-width: 160px; }
  .hsearch-key { display: none; }
}
@media (max-width: 1020px) and (min-width: 861px) {
  .brand-text { display: none; }
}

/* ------------------------------------------------------------------ episode cards */
.ep-card { min-width: 0; position: relative; }
.ep-card .ep-link { display: grid; gap: 11px; text-decoration: none; border-radius: var(--radius); }
.ep-card .thumb { border-radius: 12px; transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
.ep-card .ep-link:hover .thumb, .ep-card .ep-link:focus-visible .thumb {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 44px -18px rgba(0, 0, 0, 0.95), 0 0 0 2px color-mix(in srgb, var(--g) 55%, transparent);
}
.thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(6, 5, 12, 0.55), transparent 38%);
}
.thumb-empty { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 40%, rgba(241, 200, 106, 0.08), transparent 70%); }
.thumb .game-badge { position: absolute; z-index: 1; left: 8px; top: 8px; }
.thumb .dur {
  position: absolute; z-index: 1; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px;
  background: rgba(6, 5, 12, 0.84); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.play-glyph {
  position: absolute; z-index: 1; inset: 0; margin: auto; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); color: #120f1c;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.7);
  opacity: 0; transform: scale(0.8); transition: opacity 0.2s, transform 0.25s var(--ease-out);
}
.play-glyph .icon { width: 24px; height: 24px; margin-left: 3px; }
.ep-link:hover .play-glyph, .ep-link:focus-visible .play-glyph { opacity: 1; transform: scale(1); }
.thumb .rank {
  position: absolute; z-index: 1; left: 10px; bottom: -6px;
  font: 800 68px/1 var(--font-display); color: rgba(10, 9, 16, 0.35);
  -webkit-text-stroke: 2px rgba(255, 246, 218, 0.92); paint-order: stroke fill;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.8);
}
.ep-card .body { display: grid; gap: 4px; min-width: 0; }
.ep-card .kicker { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ep-card .kicker .cat-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.ep-card h2, .ep-card h3 {
  font-size: 15.5px; font-weight: 700; line-height: 1.32; color: var(--text); text-wrap: pretty;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ep-card .ep-link:hover h2, .ep-card .ep-link:hover h3 { color: #fff; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.ep-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.ep-card .meta .hosts-line { font-size: 12.5px; }
.ep-card .meta .hosts-line .host-name { font-weight: 600; }

/* ------------------------------------------------------------------ homepage */
.home { max-width: 1520px; margin: 0 auto; padding: 22px var(--gutter) 64px; display: grid; gap: 44px; }
.home-top { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .home-top { grid-template-columns: minmax(0, 1fr) 360px; align-items: stretch; } }

.hero {
  position: relative; isolation: isolate; overflow: hidden; min-height: 440px;
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); align-items: center; gap: 8px 36px;
  padding: 36px 36px 36px 8px; border-radius: 22px;
  background:
    radial-gradient(70% 90% at 85% 30%, color-mix(in srgb, var(--g, var(--gold)) 14%, transparent), transparent 70%),
    radial-gradient(90% 80% at 0% 100%, rgba(123, 92, 240, 0.18), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 120px -50px rgba(140, 100, 255, 0.5);
}
/* The poster, blurred, as ambient colour behind everything. */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover; filter: blur(48px) saturate(1.4); opacity: 0; transition: opacity 0.8s; }
.hero.has-img .hero-bg img { opacity: 0.42; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 12, 22, 0.9) 0%, rgba(14, 12, 22, 0.55) 55%, rgba(14, 12, 22, 0.35) 100%); }
.hero-media { grid-column: 2; grid-row: 1; display: block; border-radius: 16px; text-decoration: none; }
.hero-thumb {
  display: block; border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 30px 70px -24px rgba(0, 0, 0, 0.95), 0 0 90px -40px color-mix(in srgb, var(--g, var(--gold)) 70%, transparent);
  transform: perspective(1400px) rotateY(-4deg); transition: transform 0.5s var(--ease-out), box-shadow 0.3s;
}
.hero-thumb img { opacity: 0; transition: opacity 0.5s; }
.hero.has-img .hero-thumb img { opacity: 1; }
.hero-media:hover .hero-thumb { transform: none; }
.hero-play { width: 72px; height: 72px; opacity: 0.92; transform: none; }
.hero-play .icon { width: 34px; height: 34px; }
.hero-media:hover .hero-play { opacity: 1; transform: scale(1.06); }
.hero-thumb .dur { font-size: 13px; }
.hero-body { position: relative; grid-column: 1; grid-row: 1; display: grid; gap: 12px; padding: 8px 0 8px 36px; min-width: 0; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.hero-kicker .eyebrow { margin-right: 4px; }
.hero h1 { font-size: clamp(26px, 2.6vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -0.018em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.hero h1 a { text-decoration: none; }
.hero h1 a:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hero-lt { font-size: 17px; color: var(--text-2); max-width: 60ch; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--text-2); font-size: 14px; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { width: 16px; height: 16px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Live now teaser */
.live-teaser {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; min-width: 0;
  background: linear-gradient(180deg, rgba(255, 59, 71, 0.11), rgba(255, 59, 71, 0.015) 45%), var(--panel);
  border: 1px solid rgba(255, 90, 100, 0.26);
  box-shadow: 0 0 90px -46px rgba(255, 59, 71, 0.75);
}
.live-teaser[data-state='off'], .live-teaser[data-state='unknown'] { background: var(--panel); border-color: var(--line); box-shadow: none; }
.live-teaser[data-state='off'] .live-badge { background: var(--panel-3); box-shadow: none; }
.live-teaser[data-state='off'] .live-badge i, .live-teaser[data-state='loading'] .live-badge i { animation: none; opacity: 0.6; }
.lt-head { display: flex; align-items: center; gap: 10px; }
.lt-title { font: 600 13px/1.2 var(--font-cond); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.lt-watch { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff; }
.lt-watch .icon { width: 17px; height: 17px; color: var(--live); }
.lt-now { display: grid; gap: 7px; text-decoration: none; border-radius: 12px; }
.lt-thumb { border-radius: 12px; }
.lt-thumb img { transition: transform 0.4s var(--ease-out); }
.lt-now:hover .lt-thumb img { transform: scale(1.03); }
.lt-play {
  position: absolute; z-index: 1; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(217, 31, 43, 0.92); color: #fff;
  box-shadow: 0 0 0 6px rgba(255, 59, 71, 0.22), 0 10px 30px -6px rgba(0, 0, 0, 0.8);
}
.lt-play .icon { width: 26px; height: 26px; margin-left: 3px; }
.lt-onair { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #ff9aa1; margin-top: 4px; }
.live-teaser[data-state='off'] .lt-onair, .live-teaser[data-state='unknown'] .lt-onair { color: var(--muted); }
.lt-ep { font-size: 17.5px; font-weight: 800; line-height: 1.28; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.lt-now:hover .lt-ep { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.lt-progress { display: block; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.1); margin-top: 4px; }
.lt-progress i { display: block; height: 100%; width: 0; background: var(--live); box-shadow: 0 0 10px var(--live); transition: width 1s linear; }
.live-teaser[data-state='off'] .lt-progress, .live-teaser[data-state='unknown'] .lt-progress, .live-teaser[data-state='off'] .lt-play { display: none; }
.lt-times { font-size: 12.5px; color: var(--muted); }
.lt-next { display: grid; gap: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
.lt-next-k { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lt-next-t { font-size: 14px; font-weight: 650; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.live-teaser .btn-live { margin-top: auto; }

/* Shelves */
.shelves { display: grid; gap: 40px; }
.shelf { min-width: 0; }
.shelf-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; }
.shelf-head h2 {
  display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(19px, 1.7vw, 23px); letter-spacing: 0.03em; line-height: 1.2;
}
.shelf-head h2 .icon { width: 21px; height: 21px; color: var(--gold); }
.shelf[data-kind='game'] h2 .icon { color: var(--g); }
.shelf[data-kind='popular'] h2 .icon { color: #ff8a5c; }
.shelf-head h2 .cat-dot { width: 11px; height: 11px; }
.shelf-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.see-all { display: inline-flex; align-items: center; gap: 3px; color: var(--gold-2); font-size: 13.5px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.see-all .icon { width: 16px; height: 16px; }
.see-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.shelf-arrows { display: flex; gap: 6px; }
.shelf-arrow {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text);
}
.shelf-arrow:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.shelf-arrow:disabled { opacity: 0.3; cursor: default; }
.shelf-arrow .icon { width: 18px; height: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.seg-btn { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 700; }
.seg-btn:hover { color: #fff; }
.seg-btn[aria-pressed='true'] { background: #fff; color: #120f1c; }

.shelf-track {
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px; }
.shelf-row > li { scroll-snap-align: start; min-width: 0; }
.shelf[data-kind='popular'] .shelf-row { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
@media (max-width: 1280px) { .shelf-row { grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; } .shelf[data-kind='popular'] .shelf-row { grid-auto-columns: calc((100% - 2 * 18px) / 3.4); } }
@media (max-width: 1000px) { .shelf-row { grid-auto-columns: calc((100% - 2 * 16px) / 2.6); gap: 16px; } .shelf[data-kind='popular'] .shelf-row { grid-auto-columns: calc((100% - 16px) / 2.2); } }
@media (max-width: 620px) {
  .shelf-row, .shelf[data-kind='popular'] .shelf-row { grid-auto-columns: 74%; gap: 14px; }
  .shelf-arrows { display: none; }
}
@media (hover: none) { .shelf-arrows { display: none; } }

/* Browse by category */
.browse .shelf-head h2 .icon { color: var(--allgames); }
.cat-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.cat-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; align-items: center;
  padding: 16px 16px 16px 18px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cat) 15%, transparent), transparent 72%), var(--panel);
  border: 1px solid color-mix(in srgb, var(--cat) 26%, var(--line));
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.cat-tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cat) 55%, transparent); box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--cat) 60%, transparent); }
.cat-tile .cat-dot { grid-row: 1 / 3; width: 12px; height: 12px; }
.cat-tile .cat-name { font-weight: 750; font-size: 15px; color: #fff; }
.cat-tile .cat-n { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.cat-tile .icon { grid-row: 1 / 3; grid-column: 3; width: 18px; height: 18px; color: var(--cat); }
.home-empty img { width: 72px; height: 72px; }

@media (max-width: 760px) {
  .home { padding-top: 14px; gap: 34px; }
  .hero { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 16px; min-height: 0; padding: 14px 14px 20px; border-radius: 18px; }
  .hero-body { padding: 0 4px; gap: 10px; }
  .hero-thumb { transform: none; border-radius: 12px; }
  .hero-play { width: 58px; height: 58px; }
  .hero h1 { font-size: 25px; }
  .hero-lt { font-size: 15px; }
  .hero-meta { font-size: 13px; gap: 4px 14px; }
  .hero-actions .btn-lg { flex: 1 1 auto; }
  .live-teaser { border-radius: 18px; }
  .shelf-head { margin-bottom: 10px; }
}

/* ------------------------------------------------------------------ archive: categories, sort, pages */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips .chip { height: 36px; }
.chip .count { font-size: 11.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip .count:empty { display: none; }
.cat-chips .chip[aria-pressed='true'] {
  background: color-mix(in srgb, var(--cat) 18%, rgba(255, 255, 255, 0.03)); color: #fff;
  border-color: color-mix(in srgb, var(--cat) 62%, transparent); box-shadow: 0 0 22px -10px var(--cat);
}
.cat-chips .chip[aria-pressed='true'] .count { color: color-mix(in srgb, var(--cat) 70%, #fff); }
.chip.is-empty { opacity: 0.42; }
.chip-x .icon { width: 14px; height: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.toolbar .result-count { margin: 0; }
.toolbar-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sort { position: relative; display: inline-flex; align-items: center; }
.sort .icon { position: absolute; left: 12px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.sort select {
  appearance: none; -webkit-appearance: none; height: 38px; padding: 0 36px 0 37px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text); font-size: 13.5px; font-weight: 650; cursor: pointer;
  background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%239a94b1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M6.5 9.5L12 15l5.5-5.5'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
.sort select:hover { border-color: var(--line-3); }
.sort select option { background: #1b1827; color: var(--text); }

.pager-wrap { display: flex; justify-content: center; margin-top: 36px; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pg {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 700;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
a.pg:hover { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: var(--line-3); }
.pg[aria-current='page'] { background: var(--gold); border-color: var(--gold); color: #1a1405; box-shadow: 0 0 22px -8px rgba(241, 200, 106, 0.7); }
.pg[aria-disabled='true'] { opacity: 0.35; }
.pg .icon { width: 16px; height: 16px; }
.pg-gap { color: var(--faint); padding: 0 2px; }

@media (max-width: 860px) {
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); scroll-padding-inline: var(--gutter); }
  .cat-chips::-webkit-scrollbar { display: none; }
  .cat-chips .chip { flex: none; }
  .toolbar .result-count { flex: 1 1 100%; order: 2; }
  .toolbar-end { margin-left: 0; }
}
@media (max-width: 520px) {
  .pg { min-width: 36px; height: 38px; padding: 0 10px; }
  .pg-step span { display: none; }
}

/* ------------------------------------------------------------------ search results page */
.search-page .page-head h1 .q { color: var(--gold-2); }
.search-big { flex: none; max-width: 780px; margin-bottom: 18px; }
.search-big > .icon { left: 16px; width: 20px; height: 20px; }
.search-big input { height: 54px; padding: 0 118px 0 46px; font-size: 16px; }
.search-big .btn { position: absolute; right: 6px; min-height: 42px; }
.search-page .game-tabs { margin-bottom: 16px; }
.results { display: grid; gap: 6px; max-width: 1040px; }
.result-link {
  display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 12px; margin: 0 -12px; border-radius: 16px; text-decoration: none; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.result-link:hover { background: rgba(255, 255, 255, 0.035); border-color: var(--line); }
.result .thumb { border-radius: 11px; }
.result-body { display: grid; gap: 6px; min-width: 0; align-content: start; }
.result-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.result-title { font-size: 18.5px; font-weight: 750; line-height: 1.28; color: #fff; text-wrap: pretty; }
.result-link:hover .result-title { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 4px; }
.result-lt { color: var(--text-2); font-size: 14.5px; }
.result-snip {
  color: var(--text-2); font-size: 14px; line-height: 1.55; padding-left: 11px; border-left: 2px solid rgba(241, 200, 106, 0.4);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.snip-where { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-right: 7px; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; color: var(--muted); font-size: 13px; }
.result.skeleton .thumb { display: block; aspect-ratio: 16 / 9; }
.result.skeleton { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 20px; padding: 12px 0; }
@media (max-width: 700px) {
  .search-big input { height: 50px; padding-right: 100px; }
  .result-link, .result.skeleton { grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 10px 0; margin: 0; border-radius: 0; }
  .result-link:hover { background: none; border-color: transparent; }
  .result-title { font-size: 15.5px; }
  .result-lt { display: none; }
  .result-snip { font-size: 13px; -webkit-line-clamp: 3; }
  .result-kicker .cat-tag { font-size: 11px; }
  .results { gap: 0; }
  .results > li + li { border-top: 1px solid var(--line); }
}

.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ------------------------------------------------------------------ top bar on phones: search behind a button */
@media (max-width: 860px) {
  .hsearch { display: none; order: 3; flex: 1 1 100%; margin: 8px 0 0; min-width: 0; }
  .topbar[data-search='open'] .hsearch { display: flex; }
  .hsearch input { height: 42px; font-size: 16px; }
  .hsearch-pop { left: 0; right: 0; width: auto; top: calc(100% + 6px); max-height: 66vh; }
  .hsearch ~ .topbar-end { margin-left: auto; }
  .search-toggle { display: inline-grid; }
  .topbar[data-search='open'] .search-toggle { color: var(--gold); border-color: rgba(241, 200, 106, 0.5); }
  .nav { order: 4; }
  .hs-opt { grid-template-columns: 88px minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .topbar-end { gap: 8px; }
  .icon-btn { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
  /* Brand + search button fit one row; the nav's "Live" link (with its on-air dot) stands in for the pill. */
  .topbar .onair-pill { display: none; }
  .brand-mark { width: 32px; height: 32px; }
}

/* ------------------------------------------------------------------ embed mode (/embed/live, framed by afterdark.fm) */
.embed-open { display: none; }
body[data-embed] { background: #000; }
body[data-embed] .skip-link, body[data-embed] .topbar, body[data-embed] .footer, body[data-embed] .live-side, body[data-embed] .now { display: none !important; }
body[data-embed] .live-layout { display: block; max-width: none; padding: 0; margin: 0; }
body[data-embed] .live-main { display: block; }
body[data-embed] .live-main .player { max-width: none; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
body[data-embed] .embed-open {
  display: inline-flex; position: absolute; right: 10px; bottom: 10px; z-index: 5; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; background: rgba(6, 5, 12, 0.72); border: 1px solid rgba(255, 255, 255, 0.2);
}
body[data-embed] .embed-open:hover { background: rgba(6, 5, 12, 0.9); }
