/* Multiplier — palette borrowed from david.app */
:root {
  --bg-page: #11091e;
  --bg-void: #1a0d2e;
  --bg-surface: #2d1b4e;
  --pink: #ff6ec7;
  --cyan: #5ffbf1;
  --yellow: #f9f871;
  --purple: #8b9aff;
  --text-bright: #ffffff;
  --text-mid: #d4a5ff;
  --text-dim: #8b9aff;
  --ghost: rgba(212, 165, 255, 0.4);
  --ghost-2: rgba(212, 165, 255, 0.15);
  --bracket: #543a6e;
  --glow-pink: 0 0 12px rgba(255, 110, 199, 0.6);
  --glow-cyan: 0 0 12px rgba(95, 251, 241, 0.6);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-page);
  color: var(--text-bright);
  font-family: var(--mono);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9998; opacity: 0.1;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--yellow); text-decoration: none; }
.ghost { color: var(--ghost); }

.container {
  max-width: 1000px; margin: 0 auto; min-height: 100vh;
  background: var(--bg-void);
  border-left: 1px solid var(--ghost); border-right: 1px solid var(--ghost);
  box-shadow: 0 0 40px rgba(139,154,255,.08), 0 0 80px rgba(139,154,255,.05);
}

/* Hero */
.hero { padding: 2.5rem 2rem 2rem; border-bottom: 1px solid var(--ghost); }
.status-line { font-size: .7rem; color: var(--text-dim); display: flex; gap: .5rem; align-items: center; margin-bottom: 2rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow-cyan); animation: pulse 2s infinite; }
.wordmark {
  font-size: clamp(2.4rem, 10vw, 5.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1;
  color: var(--text-bright); text-shadow: 3px 0 0 rgba(255,110,199,.55), -3px 0 0 rgba(95,251,241,.45);
  display: flex; align-items: baseline; flex-wrap: wrap;
}
.wordmark .x { color: var(--pink); text-shadow: var(--glow-pink); margin-right: .1em; font-weight: 500; }
.wordmark .cursor { color: var(--yellow); text-shadow: none; animation: blink 1.1s steps(1) infinite; margin-left: .05em; }
.tagline { margin-top: 1.25rem; font-size: clamp(1rem, 2.6vw, 1.3rem); font-weight: 600; color: var(--cyan); }
.prompt { color: var(--yellow); }
.blurb { margin-top: 1rem; max-width: 640px; font-size: .85rem; line-height: 1.7; color: var(--text-mid); }

/* Player */
.player { border-bottom: 1px solid var(--ghost); }
.stage { position: relative; aspect-ratio: 16 / 8; background: radial-gradient(ellipse at 50% 60%, #241240 0%, var(--bg-void) 70%); overflow: hidden; border-bottom: 1px solid var(--ghost-2); }
@media (max-width: 600px) {
  .stage { aspect-ratio: 4 / 3.4; }
  .now { flex-direction: column; gap: .35rem; }
  .now-meta { width: 100%; }
  .now .ep-title { white-space: normal; overflow: visible; font-size: .95rem; line-height: 1.4; }
}
#viz { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.caption {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  width: min(92%, 760px); text-align: center;
  font-size: clamp(1rem, 3.2vw, 1.6rem); font-weight: 600; line-height: 1.35;
  color: var(--text-bright); text-shadow: 0 2px 0 #000, 0 0 18px rgba(26,13,46,.95);
  pointer-events: none; transition: opacity .2s;
}
.caption:empty { opacity: 0; }
.caption .cw { display: inline; opacity: .35; transition: opacity .12s, color .12s; }
.caption .cw.cw-on { opacity: 1; }
.caption .cw.cw-now { color: var(--yellow); }
.caption.off { display: none; }
.big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%;
  border: 1px solid var(--pink); color: var(--pink); background: rgba(17,9,30,.6);
  box-shadow: var(--glow-pink); display: grid; place-items: center; transition: transform .2s, opacity .3s;
}
.big-play svg { width: 36px; height: 36px; fill: currentColor; margin-left: 5px; }
.big-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.playing .big-play, .started .big-play { opacity: 0; pointer-events: none; }

.now { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.25rem 2rem .5rem; }
.now-meta { display: flex; gap: .75rem; align-items: baseline; min-width: 0; }
.ep-num { color: var(--yellow); font-size: .75rem; white-space: nowrap; }
.ep-title { color: var(--cyan); font-weight: 600; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-title::before { content: '> '; color: var(--yellow); }
.ep-date { color: var(--text-dim); font-size: .7rem; white-space: nowrap; }

.scrub { padding: .9rem 2rem .4rem; cursor: pointer; touch-action: none; outline: none; }
.scrub-track { position: relative; height: 4px; background: var(--ghost-2); }
.scrub-buffer { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ghost-2); }
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: var(--glow-pink); }
.scrub-head { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; background: var(--yellow); transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(249,248,113,.7); }
.scrub:focus-visible .scrub-track { outline: 1px dashed var(--yellow); outline-offset: 6px; }
.times { display: flex; justify-content: space-between; padding: 0 2rem; font-size: .7rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; gap: .5rem; padding: 1rem 2rem 1.5rem; }
.spacer { flex: 1; }
.ctl {
  min-width: 48px; height: 44px; padding: 0 .8rem; font-size: .75rem; color: var(--text-dim);
  border: 1px solid var(--ghost); transition: all .2s;
}
.ctl:hover, .ctl:focus-visible { color: var(--pink); border-color: var(--pink); box-shadow: var(--glow-pink); outline: none; }
.ctl.play { width: 60px; height: 52px; color: var(--bg-void); background: var(--pink); border-color: var(--pink); display: grid; place-items: center; }
.ctl.play:hover { color: var(--bg-void); background: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.ctl.play svg { width: 22px; height: 22px; fill: currentColor; }
.i-pause { display: none; }
.playing .i-play { display: none; }
.playing .i-pause { display: block; }
.toggle.on { color: var(--cyan); border-color: var(--cyan); }
@media (max-width: 520px) {
  .controls { flex-wrap: wrap; padding: 1rem 1.25rem 1.5rem; }
  .now, .scrub, .times { padding-left: 1.25rem; padding-right: 1.25rem; }
  .spacer { flex-basis: 100%; height: 0; }
  .toggle { flex: 1; }
}

/* Panels */
.panel { padding: 2rem; border-bottom: 1px solid var(--ghost); }
@media (max-width: 600px) { .panel, .hero { padding: 1.75rem 1.25rem; } }
.section-title { font-size: .75rem; font-weight: 500; color: var(--text-dim); margin-bottom: 1.25rem; text-transform: lowercase; }
.section-title::before { content: '['; color: var(--bracket); }
.section-title::after { content: ']'; color: var(--bracket); }

.transcript { list-style: none; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: .15rem; scrollbar-width: thin; scrollbar-color: var(--ghost-2) transparent; }
.transcript li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: .45rem .5rem; font-size: .82rem; line-height: 1.6; color: var(--text-mid); cursor: pointer; border-left: 2px solid transparent; transition: all .15s; }
.transcript li:hover { background: var(--ghost-2); color: var(--text-bright); }
.transcript li.active { border-left-color: var(--pink); color: var(--text-bright); background: rgba(255,110,199,.07); }
.transcript .ts { color: var(--yellow); font-size: .7rem; padding-top: .15rem; font-variant-numeric: tabular-nums; }

.episodes { list-style: none; display: flex; flex-direction: column; max-height: 34rem; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ghost-2) transparent; }
.episodes li { border-top: 1px solid var(--ghost-2); }
.episodes li:first-child { border-top: 0; }
.episodes button { width: 100%; text-align: left; display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; padding: 1rem .5rem; align-items: baseline; transition: background .15s; }
.episodes button:hover { background: var(--ghost-2); }
.episodes .n { color: var(--yellow); font-size: .75rem; }
.episodes .t { color: var(--cyan); font-weight: 600; font-size: .95rem; }
.episodes .d { display: block; color: var(--text-mid); font-weight: 400; font-size: .78rem; margin-top: .35rem; line-height: 1.55; }
.episodes .len { color: var(--text-dim); font-size: .7rem; }
.episodes li.current .t::before { content: '▶ '; color: var(--pink); }

.subs { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.tag { font-size: .8rem; color: var(--text-dim); transition: all .2s; }
.tag::before { content: '['; color: var(--bracket); }
.tag::after { content: ']'; color: var(--bracket); }
a.tag:hover { color: var(--pink); text-shadow: var(--glow-pink); }
.tag.soon { opacity: .5; }
.tag.soon::after { content: '] soon'; color: var(--bracket); font-size: .65rem; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding: 1.5rem 2rem 2.5rem; font-size: .7rem; color: var(--text-dim); }

::selection { background: var(--pink); color: var(--bg-void); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--text-dim); }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .cursor, .dot { animation: none; } }
