/* ==========================================================================
   SHOCK & INSPIRE — Late-Night Broadcast Design System
   Palette: Midnight Navy (#07090F), Broadcast Crimson (#C8102E),
            Electric Gold (#FFB81C), Brushed Chrome (#E5E7EB)
   ========================================================================== */

:root {
  color-scheme: dark light;
  --bg-void: #07090f;
  --bg-studio: #0d111a;
  --bg-card: #121826;
  --bg-card-hover: #182033;
  --bg-header: rgba(7, 9, 15, 0.88);
  --bg-footer: #05070c;
  --bg-sticky: rgba(13, 17, 26, 0.96);
  --border-subtle: rgba(229, 231, 235, 0.12);
  --border-strong: rgba(229, 231, 235, 0.24);

  --red: #c8102e;
  --red-bright: #e61c3d;
  --red-glow: rgba(200, 16, 46, 0.42);
  --gold: #ffb81c;
  --gold-text: #ffb81c;
  --gold-soft: rgba(255, 184, 28, 0.16);
  --heading: #ffffff;
  --chrome: #f3f4f6;
  --text-main: #e5e7eb;
  --text-muted: #a1a9b8;
  --text-dim: #7c8596;
  --hero-scrim-top: rgba(7, 9, 15, 0.74);
  --hero-scrim-mid: rgba(7, 9, 15, 0.88);
  --hero-scrim-side: rgba(7, 9, 15, 0.94);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.48);

  --font-display: "Bebas Neue", "Impact", "Arial Narrow", sans-serif;
  --font-heading: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-void: #f5f6fa;
  --bg-studio: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-footer: #eceef5;
  --bg-sticky: rgba(255, 255, 255, 0.96);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(15, 23, 42, 0.22);

  --gold-text: #b45309;
  --gold-soft: rgba(217, 119, 6, 0.14);
  --heading: #0f172a;
  --chrome: #111827;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-dim: #6b7280;
  --hero-scrim-top: rgba(245, 246, 250, 0.82);
  --hero-scrim-mid: rgba(245, 246, 250, 0.92);
  --hero-scrim-side: rgba(245, 246, 250, 0.96);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(200, 16, 46, 0.16), transparent 42%),
    radial-gradient(circle at 86% 8%, rgba(255, 184, 28, 0.08), transparent 36%),
    var(--bg-void);
  color: var(--text-main);
  overflow-x: hidden;
  padding-bottom: 64px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1220px, 100% - 2rem);
  margin-inline: auto;
}

/* ---------- Broadcast Outage Mode (Wally's Main Breaker) ---------- */
body.power-out {
  background: #040203;
}

body.power-out::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(200, 16, 46, 0.07) 0px,
      rgba(200, 16, 46, 0.07) 2px,
      transparent 2px,
      transparent 4px
    ),
    radial-gradient(circle at center, transparent 42%, rgba(200, 16, 46, 0.32) 100%);
}

.static-flash {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  background:
    repeating-radial-gradient(circle at 50% 50%, #fff 0, #111 2px, #c8102e 3px, #000 5px);
  transition: opacity 0.12s ease;
}

.static-flash.active {
  opacity: 0;
  animation: crtFlicker 0.42s steps(4) forwards;
}

@keyframes crtFlicker {
  0% { opacity: 0.85; filter: contrast(2.2); }
  35% { opacity: 0.15; }
  65% { opacity: 0.72; }
  100% { opacity: 0; }
}

/* ---------- Top Ticker Bar ---------- */
.ticker-bar {
  background: linear-gradient(90deg, #16060b 0%, #240812 50%, #16060b 100%);
  border-bottom: 1px solid rgba(200, 16, 46, 0.45);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0;
  min-height: 36px;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.58rem;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--red-glow);
}

.on-air-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.ticker-text {
  color: #f9fafb;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.28s ease;
}

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--chrome);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.48rem 0.8rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.theme-toggle-btn:hover {
  border-color: var(--gold-text);
  color: var(--gold-text);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(200, 16, 46, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--chrome);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--chrome);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 0.76rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 8px 24px var(--red-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f42849, var(--red-bright));
  box-shadow: 0 12px 30px rgba(230, 28, 61, 0.52);
}

.btn-gold {
  background: linear-gradient(135deg, #ffc940, var(--gold));
  color: #0b0d14;
  box-shadow: 0 8px 22px rgba(255, 184, 28, 0.28);
}

.btn-gold:hover {
  box-shadow: 0 12px 28px rgba(255, 184, 28, 0.42);
}

.btn-outline {
  background: rgba(18, 24, 38, 0.75);
  color: var(--chrome);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.84rem;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  padding: 3.4rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/studio-hero.webp");
  background-size: cover;
  background-position: center 25%;
  opacity: 0.26;
  filter: saturate(1.15);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--hero-scrim-top) 0%, var(--hero-scrim-mid) 65%, var(--bg-void) 100%),
    linear-gradient(90deg, var(--hero-scrim-side) 0%, transparent 55%, var(--hero-scrim-mid) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.12fr);
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: var(--gold-soft);
  border: 1px solid rgba(255, 184, 28, 0.38);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 5.4vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  margin: 0 0 1.05rem;
  color: var(--heading);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero-subhead {
  font-size: 1.06rem;
  color: var(--text-main);
  margin: 0 0 1.65rem;
  max-width: 56ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-stats strong {
  color: var(--chrome);
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ---------- Lite YouTube Facade Player ---------- */
.player-shell {
  background: #0a0d15;
  border: 1px solid rgba(229, 231, 235, 0.18);
  border-radius: var(--radius-lg);
  padding: 0.7rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(200, 16, 46, 0.2);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.player-channel-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--chrome);
  font-weight: 700;
}

.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.yt-facade {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #000;
  display: block;
  overflow: hidden;
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.yt-facade:hover img {
  transform: scale(1.03);
  filter: brightness(1.06);
}

.yt-facade-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(7, 9, 15, 0.15) 0%, rgba(7, 9, 15, 0.65) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.play-orb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright), var(--red));
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 10px rgba(200, 16, 46, 0.22), 0 14px 36px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yt-facade:hover .play-orb {
  transform: scale(1.08);
  box-shadow: 0 0 0 14px rgba(255, 184, 28, 0.22), 0 18px 40px rgba(0, 0, 0, 0.7);
}

.play-label {
  background: rgba(7, 9, 15, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player-end-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 0.9rem;
}

.player-end-overlay[hidden] {
  display: none;
}

.player-end-overlay h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--gold);
}

.player-end-overlay p {
  margin: 0;
  max-width: 40ch;
  color: var(--text-main);
  font-size: 0.95rem;
}

.player-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.65rem 0.45rem 0.2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.player-footer-bar a {
  color: var(--gold);
  font-weight: 600;
}

.player-footer-bar a:hover {
  text-decoration: underline;
}

/* ---------- Shared Section Styling ---------- */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0.025em;
  margin: 0 0 0.75rem;
  color: var(--chrome);
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.03rem;
  margin: 0;
}

/* ---------- Filter Pills ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.65rem;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  transition: all 0.16s ease;
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--chrome);
}

.filter-pill.active {
  background: var(--red);
  border-color: var(--red-bright);
  color: #fff;
  box-shadow: 0 4px 16px var(--red-glow);
}

/* ---------- 13-Chapter Switcher Grid ---------- */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}

.chapter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.16s ease, border-color 0.2s ease, background 0.2s ease;
}

.chapter-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 184, 28, 0.45);
}

.chapter-card.is-playing {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 1px var(--red-bright), 0 10px 28px rgba(200, 16, 46, 0.22);
}

.chapter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chapter-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 184, 28, 0.12);
  padding: 0.18rem 0.52rem;
  border-radius: 6px;
}

.medium-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  border: 1px solid currentColor;
}

.medium-live { color: #93c5fd; background: rgba(147, 197, 253, 0.1); }
.medium-anime { color: #f472b6; background: rgba(244, 114, 182, 0.1); }
.medium-clay { color: #fb923c; background: rgba(251, 146, 60, 0.1); }
.medium-stop { color: #22d3ee; background: rgba(34, 211, 238, 0.1); }
.medium-vhs { color: #c084fc; background: rgba(192, 132, 252, 0.1); }
.medium-puppet { color: #34d399; background: rgba(52, 211, 153, 0.1); }
.medium-studio { color: #ffb81c; background: rgba(255, 184, 28, 0.1); }

.chapter-card h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  margin: 0;
  color: var(--chrome);
}

.chapter-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.chapter-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.45rem;
}

.chapter-jump-btn {
  flex: 1;
  background: rgba(200, 16, 46, 0.18);
  border: 1px solid rgba(200, 16, 46, 0.45);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.44rem 0.75rem;
  border-radius: 7px;
  transition: background 0.16s ease;
}

.chapter-jump-btn:hover {
  background: var(--red);
}

.chapter-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.44rem 0.65rem;
  border-radius: 7px;
}

.chapter-copy-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- About & 6 Visual Mediums ---------- */
.about-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  color: var(--text-main);
  font-size: 1.02rem;
}

.about-copy p {
  margin: 0;
}

.mediums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.medium-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.medium-card h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  margin: 0.65rem 0 0.4rem;
  color: var(--chrome);
}

.medium-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Host Spotlight: Sebastian Graves ---------- */
.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.spotlight-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
  background: #0a0d15;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-quote {
  margin: 1.25rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--gold-text);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--heading);
  font-size: 1.02rem;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.rules-list li {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.rules-list strong {
  color: var(--gold-text);
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
}

/* ---------- Wally Chaos Zone & Main Breaker ---------- */
.wally-section {
  background: linear-gradient(180deg, rgba(200, 16, 46, 0.08) 0%, rgba(7, 9, 15, 0) 100%);
}

.breaker-panel {
  margin-top: 1.4rem;
  background: linear-gradient(145deg, #1b0b12 0%, #110912 100%);
  border: 1px solid rgba(230, 28, 61, 0.5);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 0 32px rgba(200, 16, 46, 0.18);
}

.breaker-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.breaker-btn {
  background: linear-gradient(180deg, #ff2a4b 0%, #a50a24 100%);
  color: #fff;
  border: 2px solid #ff8fa0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(230, 28, 61, 0.55);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.breaker-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 34px rgba(255, 42, 75, 0.78);
}

.breaker-btn:active {
  transform: scale(0.97);
}

.breaker-output {
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  border-left: 3px solid var(--red-bright);
  font-size: 0.94rem;
  color: #fde68a;
  min-height: 60px;
}

.breaker-meta {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Cast Grid ---------- */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.25rem;
}

.cast-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.2s ease;
}

.cast-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 28, 0.45);
}

.cast-portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0d15;
}

.cast-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.cast-card:hover .cast-portrait-wrap img {
  transform: scale(1.04);
}

.cast-tier-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.22rem 0.58rem;
  border-radius: 6px;
  background: rgba(7, 9, 15, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold);
}

.medium-toggle-btn {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  background: rgba(7, 9, 15, 0.88);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.medium-toggle-btn:hover {
  background: var(--gold);
  color: #07090f;
}

.cast-body {
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.cast-body h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  margin: 0;
  color: var(--chrome);
}

.cast-role {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold-text);
  margin: 0;
}

.cast-bio-short {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.35rem;
}

.vibe-tag {
  font-size: 0.72rem;
  color: var(--text-main);
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
}

.cast-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-dim);
}

.cast-detail-btn {
  background: transparent;
  border: 0;
  color: var(--chrome);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.2rem 0.3rem;
}

.cast-detail-btn:hover {
  color: var(--gold);
}

/* ---------- Episode 2 Funnel Banner ---------- */
.ep2-banner {
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 184, 28, 0.18), transparent 45%),
    linear-gradient(135deg, #1b0a12 0%, #101626 100%);
  border: 1px solid rgba(255, 184, 28, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 1.8rem;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.ep2-banner h2 {
  margin-bottom: 0.5rem;
}

.ep2-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 860px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.03rem;
  color: var(--chrome);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq-answer p {
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0 2.5rem;
  background: var(--bg-footer);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--gold-text);
}

/* ---------- Sticky Bottom Subscribe Bar ---------- */
.sticky-sub-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--bg-sticky);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200, 16, 46, 0.55);
  min-height: 52px;
  display: flex;
  align-items: center;
}

.sticky-sub-bar[hidden] {
  display: none;
}

.sticky-sub-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.48rem 0;
}

.sticky-sub-copy {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--chrome);
}

.sticky-sub-copy span {
  color: var(--gold);
}

.sticky-sub-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sticky-dismiss {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.15rem;
  padding: 0.2rem 0.45rem;
}

.sticky-dismiss:hover {
  color: #fff;
}

/* ---------- Cast Bio Modal ---------- */
dialog.cast-modal {
  background: var(--bg-studio);
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(760px, 94vw);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

dialog.cast-modal::backdrop {
  background: rgba(4, 6, 11, 0.82);
  backdrop-filter: blur(6px);
}

.modal-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.modal-img-wrap {
  background: #07090f;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.modal-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 70px;
  right: 1.25rem;
  z-index: 95;
  background: #111827;
  border: 1px solid var(--gold);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .spotlight-grid,
  .ep2-banner,
  .about-copy {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 9, 15, 0.98);
    padding: 1rem 1.5rem 1.35rem;
    border-bottom: 1px solid var(--border-strong);
    align-items: flex-start;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-img-wrap {
    max-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Mobile viewing and release status */
.release-note { color: var(--text-muted); font-size: .9rem; }
@media (max-width: 600px) {
  .header-actions > a.btn { display: none; }
  .header-actions { gap: .5rem; }
  .brand-link { flex: 0 0 auto; }
  .hero-grid { gap: 1.5rem; }
  .hero-subhead { font-size: 1rem; }
  .hero-ctas { gap: .65rem; }
  .chapters-grid { grid-template-columns: 1fr; }
  .sticky-sub-bar { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .static-flash, body.power-out::before { display: none !important; }
}

/* Streaming-inspired browsing, using existing approved artwork */
.hero { isolation: isolate; padding: clamp(3rem, 8vw, 7rem) 0 4rem; }
.hero-bg { opacity: .58; background-position: center 28%; }
.hero-scrim { background: linear-gradient(90deg, var(--bg-void) 0%, var(--hero-scrim-side) 36%, var(--hero-scrim-top) 100%), linear-gradient(0deg, var(--bg-void), transparent 65%); }
.hero-grid { position: relative; }
.player-shell { box-shadow: 0 24px 70px rgba(0,0,0,.48); }
.chapters-section { padding-block: 3rem; }
.chapters-grid, .cast-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 300px);
  grid-template-columns: none;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding: .4rem .1rem 1.25rem;
  scrollbar-color: var(--red) var(--bg-card);
}
.chapter-card, .cast-card { scroll-snap-align: start; }
.chapter-card { overflow: hidden; padding: 0 0 1rem; gap: .6rem; }
.chapter-card > :not(.chapter-art) { margin-inline: 1rem; }
.chapter-art { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #12131c; }
.chapter-art::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.8)); pointer-events:none; }
.chapter-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.chapter-art-label { position: absolute; z-index: 1; bottom: .65rem; left: .85rem; color: #fff; font: 700 .7rem var(--font-heading); letter-spacing: .12em; }
.chapter-card p { flex: 1; }
.cast-grid { grid-auto-columns: minmax(220px, 260px); }
@media (max-width: 600px) {
  .hero { padding-top: 2.5rem; }
  .hero-bg { opacity: .36; }
  .hero-grid { gap: 1.5rem; }
  .chapters-grid { grid-template-columns: none; grid-auto-columns: minmax(245px, 78vw); }
  .cast-grid { grid-template-columns: none; grid-auto-columns: minmax(210px, 68vw); }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .6rem; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-pill { flex: 0 0 auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .chapters-grid, .cast-grid { scroll-snap-type: none; }
}

[data-theme="light"] .player-topbar { color: #d7dbe5; }
[data-theme="light"] .player-channel-tag { color: #f5f6fa; }
