/* ============================================================
   Richard Roppa — RR-TV Vintage Studio
   Shared stylesheet for all pages
   ============================================================ */

:root {
  --paper: #f1e7d0;
  --paper-warm: #ead8b3;
  --paper-deep: #ddc99b;
  --ink: #1d150d;
  --ink-soft: #4a3a26;
  --ink-mute: #6b573b;
  --rust: #b34a1f;
  --rust-deep: #8a3614;
  --mustard: #d4a017;
  --teal: #2d6a6a;
  --tube-green: #6db344;
  --crt-amber: #ffb84d;
  --wood: #3a2418;
  --wood-dark: #251509;
  --rule: #c4ad7d;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--wood-dark); scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse at top, rgba(255,200,120,0.08) 0%, transparent 60%),
    var(--wood-dark);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(180deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 80px);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; }
a { color: var(--rust); }

.frame {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* === STATION BAR === */
.station-bar {
  background: var(--wood);
  color: var(--paper);
  border-bottom: 3px solid var(--rust);
  padding: 12px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}
.station-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.station-bar .left { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.on-air {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rust);
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
}
.on-air::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--crt-amber);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--crt-amber);
  animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }
.channel { color: var(--mustard); }
.timecode { color: var(--paper-warm); opacity: 0.7; }

/* === MAIN NAV === */
nav.main-nav {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.nav-logo .badge {
  background: var(--ink);
  color: var(--mustard);
  font-family: 'VT323', monospace;
  font-size: 28px;
  padding: 6.5px 12px;
  border: 2px solid var(--mustard);
  border-radius: 10px;
  letter-spacing: 0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}
.nav-logo .badge .tv {
  color: var(--rust);
  letter-spacing: 0.04em;
}
.nav-logo .sub {
  display: flex;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}
.nav-logo .sub > span + span::before {
  content: '·';
  color: var(--rust);
  margin-right: 10px;
}
.nav-logo-text { display: flex; flex-direction: column; gap: 6px; line-height: 1.1; }
.nav-logo-text > .name {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 22px;
  line-height: 1;
}
.nav-logo .sub {
  line-height: 1;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
  line-height: 1;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--rust); color: var(--rust); }

/* Dropdown submenu (About → Speaking) */
.nav-has-sub {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-has-sub > a::after {
  content: '▼';
  font-size: 11px;
  margin-left: 7px;
  color: var(--rust);
  opacity: 1;
  transition: transform 0.15s;
  display: inline-block;
  vertical-align: 1px;
}
.nav-has-sub:hover > a::after,
.nav-has-sub:focus-within > a::after {
  transform: translateY(2px);
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: -8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 160px;
  z-index: 100;
  padding: 4px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-has-sub:hover .nav-submenu,
.nav-has-sub:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-submenu a {
  display: block;
  padding: 9px 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: none;
  white-space: nowrap;
}
.nav-submenu a:hover, .nav-submenu a.active {
  background: var(--paper-warm);
  color: var(--rust);
  border-bottom: none;
}
.nav-tune {
  background: var(--rust);
  color: var(--paper);
  padding: 10px 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.nav-tune:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }

/* === TOP TICKER — thin scrolling strip on every page === */
.broadcast-ticker {
  background: #0d2030;
  border-bottom: 2px solid var(--mustard);
  overflow: hidden;
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
}
.broadcast-ticker::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 2;
}
.broadcast-ticker::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,32,48,0.95) 0%, transparent 4%, transparent 96%, rgba(13,32,48,0.95) 100%);
  pointer-events: none;
  z-index: 3;
}
.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 115s linear infinite;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: #ffd989;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-items: center;
  height: 100%;
  position: relative;
  z-index: 1;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-item {
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ticker-item.air::before {
  content: '●';
  color: var(--rust);
  margin-right: 6px;
  animation: blink 1.6s infinite;
}
.ticker-ch {
  color: var(--tube-green);
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.ticker-divider { color: var(--rust); opacity: 0.6; }

/* === PREVUE CHANNEL — vintage cable program guide === */
.prevue-channel {
  background: #1a2c40;
  border-top: 3px solid var(--mustard);
  border-bottom: 3px solid var(--mustard);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.prevue-channel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 4;
}
.prevue-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 280px;
  position: relative;
  z-index: 2;
}
@media (max-width: 800px) {
  .prevue-inner { grid-template-columns: 1fr; }
}
.prevue-top {
  background: var(--paper);
  color: var(--ink);
  border-right: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}
@media (max-width: 800px) {
  .prevue-top { border-right: none; border-bottom: 3px solid var(--ink); }
}

/* Option C — vintage TV-guide header */
.prevue-stamp {
  background: var(--ink);
  color: var(--mustard);
  font-family: 'VT323', monospace;
  font-size: 16px;
  letter-spacing: 0.15em;
  padding: 7px 22px;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  border-bottom: 3px solid var(--mustard);
}
.prevue-stamp .right { color: var(--paper); }
.prevue-headline-block {
  background: var(--mustard);
  padding: 20px 26px 24px;
}
.prevue-headline-block .on-air-pill {
  margin-bottom: 12px;
}
.prevue-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--rust);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.prevue-dot {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  color: var(--rust);
  animation: blink 1.4s infinite;
}
.prevue-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 700;
  -webkit-text-stroke: 0.6px currentColor;
}
.prevue-headline em {
  color: var(--rust);
  font-style: italic;
  -webkit-text-stroke: 0.6px var(--rust);
}
.prevue-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* legacy badge-row kept for any other usage */
.prevue-top .badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.prevue-top .station-mark {
  background: var(--ink);
  color: var(--mustard);
  font-family: 'VT323', monospace;
  font-size: 22px;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border: 2px solid var(--mustard);
  border-radius: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.prevue-top .station-mark .tv {
  color: var(--rust);
  letter-spacing: 0.04em;
}
.prevue-top .ch-mark {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.prevue-top h3 {
  font-family: 'Alfa Slab One', serif;
  font-size: 26px;
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.prevue-top .preview-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 6px;
}
.prevue-top .preview-now {
  font-family: 'VT323', monospace;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.prevue-top .preview-now::before {
  content: '● ';
  color: var(--rust);
  animation: blink 1.6s infinite;
}

.prevue-bottom {
  background: #1a2c40;
  position: relative;
  overflow: hidden;
  height: 280px;
  z-index: 2;
}
.prevue-bottom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,44,64,0.95) 0%, transparent 12%, transparent 88%, rgba(26,44,64,0.95) 100%);
  pointer-events: none;
  z-index: 3;
}
.prevue-listings {
  font-family: 'VT323', monospace;
  padding: 8px 28px;
  animation: prevue-scroll 50s linear infinite;
}
@keyframes prevue-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.prevue-row {
  display: grid;
  grid-template-columns: 5ch 4ch 1fr;
  column-gap: 14px;
  row-gap: 2px;
  padding: 10px 0;
  align-items: baseline;
  border-bottom: 1px dashed rgba(255, 217, 137, 0.16);
}
.prevue-row .time { display: none; }
.prevue-row .ch {
  grid-column: 1;
  grid-row: 1;
  font-family: 'VT323', monospace;
  color: var(--tube-green);
  font-size: 22px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.prevue-row .callsign {
  grid-column: 2;
  grid-row: 1;
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--mustard);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.prevue-row .title-block {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.prevue-row .title,
.prevue-row .desc {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Easter egg rows in the prevue listings — span full width */
.prevue-egg {
  padding: 10px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  border-bottom: 1px dashed rgba(255, 217, 137, 0.16);
}
.prevue-egg.breaking { color: var(--crt-amber); font-weight: 700; }
.prevue-egg.psa { color: var(--crt-amber); }
.prevue-egg.standby { color: var(--mustard); letter-spacing: 0.18em; }
.prevue-egg.coming { color: rgba(241,231,208,0.7); font-style: italic; text-transform: none; letter-spacing: 0.04em; font-family: 'DM Serif Display', serif; }
.prevue-row .title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.prevue-row .title,
.prevue-row .desc {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prevue-row .title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: #f1e7d0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.prevue-row .desc {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(241, 231, 208, 0.6);
}

/* === EMBEDDED PROGRAM GUIDE — sits inside the Browse the Channels split === */
.prevue-channel-embed {
  background: #1a2c40;
  border: 3px solid var(--mustard);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.prevue-channel-embed:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}
.prevue-channel-embed .prevue-bottom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 4;
}
.prevue-channel-embed .prevue-inner {
  max-width: none;
  display: block;
  min-height: 0;
}
.prevue-channel-embed .prevue-top {
  border-right: none;
  border-bottom: 3px solid var(--ink);
  padding: 0;
}
.prevue-channel-embed .prevue-headline { font-size: 32px; }
.prevue-channel-embed .prevue-bottom {
  height: 378px;
}
.prevue-channel-embed .prevue-listings {
  padding: 8px 22px;
}
.prevue-channel-embed .prevue-row {
  grid-template-columns: 70px 70px 1fr;
  column-gap: 14px;
}
.prevue-channel-embed .prevue-row .ch { font-size: 20px; }
.prevue-channel-embed .prevue-row .callsign { font-size: 18px; }

/* === HERO TV SCREEN === */
section.hero {
  padding: 60px 0 80px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 1;
}
.tv-screen {
  position: relative;
  background: linear-gradient(180deg, #1a0f06 0%, #0d0703 100%);
  border-radius: 32px / 28px;
  padding: 56px 56px 48px;
  box-shadow:
    inset 0 0 80px rgba(0,0,0,0.6),
    inset 0 0 200px rgba(255,180,77,0.06),
    0 0 0 12px #1d150d,
    0 0 0 14px #d4a017,
    0 0 0 16px #1d150d,
    0 30px 80px rgba(0,0,0,0.6);
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

/* Hero 2-column grid — text left, station-ID bug right */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.hero-grid .hero-text { min-width: 0; display: flex; flex-direction: column; }
.hero-grid .hero-text .cta-row { margin-top: auto; padding-top: 24px; }
.hero-grid h1 { max-width: none; }

/* Station-ID bug — credentials card sitting inside the hero on the right */
.hero-bug {
  background: var(--wood);
  border: 2px solid var(--mustard);
  box-shadow: 8px 8px 0 var(--rust);
  padding: 22px 24px 22px;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-bug-rows-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hero-bug::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0px, rgba(0,0,0,0.16) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 0;
}
.hero-bug > * { position: relative; z-index: 1; }
.hero-bug-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 2px;
}
.hero-bug-header .hb-mark {
  font-family: 'VT323', monospace;
  font-size: 22px;
  line-height: 1;
  color: var(--tube-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-bug-header .hb-studio {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mustard);
}
.hero-bug-sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 231, 208, 0.6);
  margin-bottom: 16px;
}
.hero-bug-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(241, 231, 208, 0.22);
  font-size: 12px;
}
.hero-bug-row:last-child { border-bottom: none; padding-top: 14px; padding-bottom: 0; margin-top: auto; }
.hero-bug-row .lbl {
  color: var(--mustard);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  white-space: nowrap;
  padding-top: 2px;
}
.hero-bug-row .val {
  color: var(--paper);
  text-align: right;
  font-size: 13px;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.hero-bug-row .val .val-sub {
  color: rgba(241, 231, 208, 0.55);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
/* Status row styled like a tiny CTA so the dot has a fixed left anchor */
.hero-bug-row .val-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--rust);
  border: 1px solid var(--mustard);
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
a.val-status { cursor: pointer; }
a.val-status:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.hero-bug-row .val-status::before {
  content: '●';
  color: var(--tube-green);
  font-size: 10px;
  line-height: 1;
}
.hero-bug-row .val-status { white-space: nowrap; }
.hero-bug-row.has-status .val-status { /* hook for future tweaks */ }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.tv-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
}

/* === CRT TUNE-IN — THREE-BEAT SIGN-ON =========================
   Beat 1: Static + "NO SIGNAL" (≈1.6s)
   Beat 2: Color bars test pattern (≈0.7s)
   Beat 3: Station ID card (≈0.9s)
   Beat 4: Hero reveal (≈0.1s fade)
   Total: ≈3.3s. Plays on every page load.
   To disable: remove the `tuning` class from .tv-screen.
   ============================================================ */

/* --- Beat 1: STATIC + NO SIGNAL --- */
.tv-screen .tv-static {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  border-radius: inherit;
  background-color: #1a1a1a;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch' seed='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.95 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
.tv-screen .tv-static-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'VT323', monospace;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--crt-amber);
  background: rgba(0,0,0,0.7);
  padding: 6px 14px;
  border: 2px solid var(--crt-amber);
  border-radius: 4px;
  text-shadow: 0 0 6px rgba(255,184,77,0.6);
  white-space: nowrap;
}

/* --- Beat 2: COLOR BARS test pattern --- */
.tv-screen .tv-bars {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  display: flex;
  opacity: 0;
  border-radius: inherit;
  overflow: hidden;
}
.tv-screen .tv-bars .bar { flex: 1; }

/* --- Beat 3: STATION ID card --- */
.tv-screen .tv-station-id {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: #0d0703;
  border-radius: inherit;
  text-align: center;
  padding: 32px;
}
.tv-screen .tv-station-id .sid-call {
  font-family: 'VT323', monospace;
  font-size: 96px;
  line-height: 1;
  color: var(--mustard);
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(212,160,23,0.4);
}
.tv-screen .tv-station-id .sid-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--paper);
  margin-top: 14px;
  text-transform: uppercase;
}
.tv-screen .tv-station-id .sid-msg {
  font-family: 'VT323', monospace;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--crt-amber);
  margin-top: 32px;
  line-height: 1.5;
  text-transform: uppercase;
  opacity: 0.85;
}

/* --- The animations --- (total 5.0s) */
.tv-screen.tuning .tv-static {
  animation:
    tv-static-shift 0.08s steps(4) infinite,
    tv-static-phase 5.0s ease-out 0s forwards;
}
.tv-screen.tuning .tv-static-label {
  animation: tv-static-label-phase 5.0s ease-out 0s forwards;
}
.tv-screen.tuning .tv-bars {
  animation: tv-bars-phase 5.0s linear 0s forwards;
}
.tv-screen.tuning .tv-station-id {
  animation: tv-sid-phase 5.0s ease-out 0s forwards;
}
.tv-screen.tuning .screen-content {
  animation: tv-reveal-phase 5.0s ease-out 0s forwards;
}

@keyframes tv-static-shift {
  0%   { background-position: 0 0; }
  25%  { background-position: 120px 60px; }
  50%  { background-position: 60px 120px; }
  75%  { background-position: 180px 30px; }
  100% { background-position: 0 0; }
}

/* Static visible 0–32% (1.6s), flash at 32%, gone by 34% (1.7s) */
@keyframes tv-static-phase {
  0%   { opacity: 1; filter: brightness(1); }
  29%  { opacity: 1; filter: brightness(1); }
  32%  { opacity: 1; filter: brightness(1.5); }   /* signal lock flash */
  34%  { opacity: 0; }
  100% { opacity: 0; }
}
/* Label visible while static is visible */
@keyframes tv-static-label-phase {
  0%   { opacity: 1; }
  26%  { opacity: 1; }
  31%  { opacity: 0; }
  100% { opacity: 0; }
}
/* Color bars visible 34%–48% (1.7s → 2.4s = 0.7s window) */
@keyframes tv-bars-phase {
  0%   { opacity: 0; }
  33%  { opacity: 0; }
  35%  { opacity: 1; }
  48%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}
/* Station ID visible 50%–96% (2.5s → 4.8s = 2.3s window — held long enough to read) */
@keyframes tv-sid-phase {
  0%   { opacity: 0; }
  49%  { opacity: 0; }
  52%  { opacity: 1; }
  95%  { opacity: 1; }
  98%  { opacity: 0; }
  100% { opacity: 0; }
}
/* Hero content fades in at 97%–100% */
@keyframes tv-reveal-phase {
  0%   { opacity: 0; }
  96%  { opacity: 0; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tv-screen.tuning .tv-static,
  .tv-screen.tuning .tv-static-label,
  .tv-screen.tuning .tv-bars,
  .tv-screen.tuning .tv-station-id {
    animation: none;
    opacity: 0;
    display: none;
  }
  .tv-screen.tuning .screen-content {
    animation: none;
    opacity: 1;
  }
}

.tv-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.screen-content {
  position: relative;
  z-index: 1;
  color: var(--paper);
  text-shadow: 0 0 18px rgba(255,184,77,0.25);
}
.pre-title {
  font-family: 'VT323', monospace;
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--crt-amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pre-title::before { content: '▶'; color: var(--tube-green); }
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  max-width: 820px;
  color: var(--paper);
}
.hero h1 em { font-style: italic; color: var(--crt-amber); }
.hero-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(241,231,208,0.85);
  max-width: 660px;
  margin-bottom: 36px;
}
.hero-sub:not(:last-of-type) { margin-bottom: 8px; }
.hero-sub strong { color: var(--crt-amber); font-weight: 500; }
.lede strong, .lead strong { color: var(--rust); font-weight: 700; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--paper);
  border-radius: 10px;
  background: transparent;
  color: var(--paper);
  transition: all 0.15s;
  cursor: pointer;
}
.cta:hover { background: var(--paper); color: var(--ink); }
.cta-primary { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.cta-primary:hover { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.cta-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cta-dark:hover { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.cta-ink { border-color: var(--ink); color: var(--ink); }
.cta-ink:hover { background: var(--ink); color: var(--paper); }

/* SMPTE color bars */
.color-bars {
  height: 14px;
  display: flex;
  margin: 0;
  border-bottom: 2px solid var(--ink);
}
.color-bars div { flex: 1; }
.cb-1 { background: #c0c0c0; }
.cb-2 { background: #c0c000; }
.cb-3 { background: #00c0c0; }
.cb-4 { background: #00c000; }
.cb-5 { background: #c000c0; }
.cb-6 { background: #c00000; }
.cb-7 { background: #0000c0; }

/* === GENERIC SECTION === */
section.block {
  padding: 100px 0;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
section.block.warm { background: var(--paper-warm); }
section.block.paper { background: var(--paper); }
section.block.wood { background: var(--wood); color: rgba(241,231,208,0.85); }
section.block.wood h2, section.block.wood h3 { color: var(--paper); }
section.block.wood > .frame > p { color: rgba(241,231,208,0.85); }
section.block.rust { background: var(--rust); color: var(--paper); }
section.block.rust h2, section.block.rust h3 { color: var(--paper); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--mustard);
  font-family: 'VT323', monospace;
  font-size: 22px;
  padding: 4px 14px 2px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.section-tag-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-tag-row .section-tag { margin-bottom: 0; }
.on-air-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--rust);
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
.on-air-pill .oap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crt-amber);
  box-shadow: 0 0 6px var(--crt-amber);
  animation: blink 1.4s infinite;
}
.section-tag::before { content: '◉'; color: var(--rust); }
.section-tag.alt { background: var(--mustard); color: var(--ink); }
.section-tag.alt::before { color: var(--rust); }

h2.display {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 900px;
  margin-bottom: 28px;
}
h2.display em { font-style: italic; color: var(--rust); }
h3.display {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.lead {
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--ink-soft);
}
.pull {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 24px;
  color: var(--rust);
  border-left: 4px solid var(--rust);
  padding: 8px 0 8px 24px;
  margin-top: 32px;
  max-width: 720px;
}
.subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 56px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
h2.display + .subtitle { margin-top: -16px; }
section.block.wood .subtitle { color: var(--mustard); }

/* === PROGRAM CARDS (3-up) === */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.program-card {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
section.block.wood .program-card { background: var(--paper); color: var(--ink); }
.program-header {
  background: var(--ink);
  color: var(--paper);
  padding: 14px 20px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.program-header .ch { color: var(--tube-green); }
.program-header .live {
  background: var(--rust);
  color: #fff;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 2px 8px;
  letter-spacing: 0.1em;
}
.program-body { padding: 28px 24px 32px; }
.program-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.program-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.program-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 17px !important;
  line-height: 1.35 !important;
  color: var(--rust) !important;
  margin-bottom: 16px !important;
}
.program-header .live { white-space: nowrap; }

/* === FEATURED + SECONDARY SHOWS — Option A layout ===================== */

/* Featured (big) Quasar Cowboy card */
.featured-show {
  display: grid;
  grid-template-columns: 460px 1fr;
  background: var(--paper);
  border: 2px solid var(--mustard);
  border-radius: 14px;
  box-shadow: 12px 12px 0 var(--ink);
  overflow: hidden;
  margin-bottom: 56px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  color: inherit;
}
@media (max-width: 880px) { .featured-show { grid-template-columns: 1fr; } }
.featured-show .show-screen { min-height: 380px; }
.featured-show .show-title { font-size: 48px; }
.featured-show .show-meta { font-size: 24px; }
.featured-show .show-body { padding: 36px 36px 40px; }
.featured-show .kw {
  color: var(--rust);
  font-weight: 700;
}
.featured-show .show-body p { font-size: 16.5px; line-height: 1.7; }
.featured-show .show-tagline { font-size: 26px !important; line-height: 1.25 !important; margin-bottom: 22px !important; font-style: normal !important; }
.featured-show .qc-pullquote {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 22px !important;
  line-height: 1.35 !important;
  color: var(--rust);
  border-left: 4px solid var(--mustard);
  padding: 6px 0 6px 18px;
  margin: 24px 0 8px !important;
  max-width: 640px;
}
.featured-show .featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--rust);
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--rust);
  border-radius: 10px;
  margin-top: 32px;
  align-self: flex-start;
  transition: transform 0.15s, box-shadow 0.15s;
}
.featured-show:hover {
  transform: translate(-3px, -3px);
  box-shadow: 15px 15px 0 var(--ink);
}
.featured-show:hover .featured-cta {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.featured-show .featured-cta::after { content: '→'; }

/* "From the same studio" divider */
.studio-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 36px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-warm);
  opacity: 0.75;
}
.studio-divider::before, .studio-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--paper-warm);
  opacity: 0.4;
}

/* Secondary cards (RTL + Tax Retreat) — vertical: poster on top, body below */
.secondary-shows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 880px) { .secondary-shows { grid-template-columns: 1fr; } }
.small-show {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 2px solid var(--mustard);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.small-show:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.small-show-poster {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(180deg, #0d0703 0%, #1a0f06 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 22px;
}
.small-show-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 1;
}
.small-show-poster svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.small-show-meta {
  font-family: 'VT323', monospace;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: var(--tube-green);
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  margin-bottom: 4px;
}
.small-show-title {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  line-height: 1;
  color: var(--paper);
  position: relative;
  z-index: 2;
  text-shadow: 0 0 18px rgba(255,184,77,0.3), 0 2px 6px rgba(0,0,0,0.6);
}
.small-show-body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.small-show-body .small-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.35;
  color: var(--rust);
  margin-bottom: 14px;
}
.small-show-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.small-show-body .small-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 28px;
  align-self: flex-start;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  border-bottom: 2px solid var(--rust);
  padding-bottom: 3px;
  margin-top: 4px;
}
.small-show-body .small-link::after { content: '→'; }

/* === FEATURED SHOW CARDS — channel-guide rows (stacked, horizontal layout) === */
.shows-grid,
.show-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.show-card {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--mustard);
  border-radius: 14px;
  overflow: hidden;
  min-height: 380px;
  display: grid;
  grid-template-columns: 360px 1fr;
  box-shadow: 8px 8px 0 var(--rust);
  width: 100%;
}
@media (max-width: 720px) {
  .show-card { grid-template-columns: 1fr; }
}
.credits-names { word-break: break-word; }
.show-screen {
  background: linear-gradient(180deg, #0d0703 0%, #1a0f06 100%);
  color: var(--crt-amber);
  padding: 24px;
  border-right: 2px solid var(--mustard);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .show-screen { border-right: none; border-bottom: 2px solid var(--mustard); }
}
.show-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.2) 0px, rgba(0,0,0,0.2) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
  z-index: 2;
}
.show-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.show-meta {
  font-family: 'VT323', monospace;
  font-size: 22px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  color: var(--tube-green);
  position: relative;
  z-index: 3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.show-title {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  line-height: 1;
  color: var(--paper);
  text-shadow: 0 0 18px rgba(255,184,77,0.3), 0 2px 6px rgba(0,0,0,0.6);
  position: relative;
  z-index: 3;
  letter-spacing: -0.01em;
}
.show-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.show-body .show-link { margin-top: auto; align-self: flex-start; }

/* === SHOW STATS FOOTER (Quasar Cowboy card carries the booking grid) === */
.show-card .show-stats {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 28px 24px;
  border-top: 2px solid var(--mustard);
  font-family: 'IBM Plex Mono', monospace;
}
.show-stats-header {
  font-family: 'VT323', monospace;
  font-size: 22px;
  line-height: 1;
  color: var(--tube-green);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.show-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px;
}
.show-stats .stat-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(241, 231, 208, 0.18);
}
.show-stats .stat-cell:last-child { border-bottom: none; }
.show-stats .stat-cell .lbl {
  color: var(--mustard);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
}
.show-stats .stat-cell .val {
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.show-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.show-tagline {
  font-family: 'DM Serif Display', serif !important;
  font-style: italic !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  color: var(--rust) !important;
  margin-bottom: 14px !important;
}
.show-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  text-decoration: none;
  border-bottom: 2px solid var(--rust);
  padding-bottom: 4px;
}
.show-link::after { content: '→'; }

/* Show credits — TV-style "in association with" line */
.show-credits {
  border-top: 1px dashed var(--rule);
  padding-top: 14px;
  margin-top: 16px;
  margin-bottom: 12px;
  font-family: 'IBM Plex Mono', monospace;
}
.credits-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rust);
  margin-bottom: 8px;
}
.credits-names {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.credit-name {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.credit-name[href]:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
  cursor: pointer;
}

/* === COMMUNITY SPLIT === */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.community-stage {
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--rust);
  padding: 36px;
  color: var(--paper);
  font-family: 'IBM Plex Mono', monospace;
}
.stage-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(241,231,208,0.3);
  padding: 14px 0;
  font-size: 14px;
  gap: 16px;
}
.stage-row:last-child { border-bottom: none; }
.stage-row .lbl { color: var(--mustard); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; }
.stage-row .val { text-align: right; }
.stage-header {
  font-family: 'VT323', monospace;
  font-size: 26px;
  color: var(--tube-green);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.stage-sub {
  font-size: 12px;
  color: rgba(241,231,208,0.6);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

/* === PRESS / AS SEEN IN === */
.press-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.press-tile {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--mustard);
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 4px 4px 0 var(--mustard);
}
.press-tile:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--mustard); }
.press-tile .tile-meta {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--tube-green);
  letter-spacing: 0.05em;
}
.press-tile .tile-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.2;
  color: var(--paper);
}
.press-tile .tile-source {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--mustard);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: auto;
}

/* === SPEAKING GRID === */
.speaking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.topic-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 24px;
  box-shadow: 4px 4px 0 var(--ink);
}
.topic-card .topic-num {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--rust);
  margin-bottom: 8px;
}
.topic-card h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.topic-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* === BULLET LIST (TV-style) === */
.tv-list {
  list-style: none;
  margin: 24px 0;
  max-width: 680px;
}
.tv-list li {
  padding: 12px 0 12px 32px;
  font-size: 17px;
  line-height: 1.6;
  border-bottom: 1px dashed var(--rule);
  position: relative;
  color: var(--ink-soft);
}
.tv-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--rust);
  font-size: 14px;
}
section.block.wood .tv-list li { border-color: rgba(241,231,208,0.2); color: rgba(241,231,208,0.85); }
section.block.wood .tv-list li::before { color: var(--mustard); }

/* === FORM === */
form.studio-form {
  display: grid;
  gap: 20px;
  max-width: 640px;
}
form.studio-form label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
form.studio-form input, form.studio-form textarea, form.studio-form select {
  width: 100%;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 14px 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  color: var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
}
form.studio-form input:focus, form.studio-form textarea:focus, form.studio-form select:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 4px 4px 0 var(--rust);
}
form.studio-form textarea { min-height: 140px; resize: vertical; }
form.studio-form button { align-self: flex-start; }

/* === AFFILIATE / FEATURED AT — logo wall === */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.affiliate-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 40px;
}
.affiliate-section { display: flex; flex-direction: column; gap: 14px; }
.affiliate-section-label { display: none; }
.affiliate-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

/* OPTION B — color per row, all from the existing palette */
/* Row 1 (Speaker) keeps the default mustard */
.affiliate-section:nth-of-type(2) .affiliate-tile:not(.more) { border-color: var(--rust); }
.affiliate-section:nth-of-type(2) .affiliate-tile:not(.more):hover { box-shadow: 5px 5px 0 var(--rust); }
.affiliate-section:nth-of-type(2) .affiliate-tile .affiliate-type { color: var(--rust); }

.affiliate-section:nth-of-type(3) .affiliate-tile:not(.more) { border-color: var(--tube-green); }
.affiliate-section:nth-of-type(3) .affiliate-tile:not(.more):hover { box-shadow: 5px 5px 0 var(--tube-green); }
.affiliate-section:nth-of-type(3) .affiliate-tile .affiliate-type { color: var(--tube-green); }

.affiliate-section:nth-of-type(4) .affiliate-tile:not(.more) { border-color: #3aa39f; }
.affiliate-section:nth-of-type(4) .affiliate-tile:not(.more):hover { box-shadow: 5px 5px 0 #3aa39f; }
.affiliate-section:nth-of-type(4) .affiliate-tile:not(.more) .affiliate-type { color: #3aa39f; }
.affiliate-tile {
  background: var(--ink);
  border: 2px solid var(--mustard);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  align-items: center;
  justify-content: flex-start;
  min-height: 110px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 3px 3px 0 var(--mustard);
}
.affiliate-tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--mustard);
}
.affiliate-tile.more {
  background: var(--paper-warm);
  border-color: var(--ink);
  border-style: dashed;
  box-shadow: 3px 3px 0 var(--ink);
}
.affiliate-tile.more:hover { box-shadow: 5px 5px 0 var(--ink); }
.affiliate-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mustard);
  line-height: 1.2;
  min-height: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}
.affiliate-tile.more .affiliate-type { color: var(--rust); }
.affiliate-name {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  line-height: 1.15;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.affiliate-tile.more .affiliate-name { color: var(--ink); font-style: italic; }

/* === TALLY STRIP — writing / hosting volume === */
.tally-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 28px 0 8px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.tally-cell {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 2px solid var(--ink);
  background: var(--paper-warm);
}
.tally-cell:last-child { border-right: none; }
.tally-num {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  line-height: 1;
  color: var(--rust);
  letter-spacing: -0.01em;
}
.tally-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}
@media (max-width: 720px) {
  .tally-strip { grid-template-columns: 1fr; }
  .tally-cell { border-right: none; border-bottom: 2px solid var(--ink); }
  .tally-cell:last-child { border-bottom: none; }
}

/* === FOOTER === */
footer.studio-footer {
  background: var(--wood-dark);
  color: var(--paper-warm);
  padding: 60px 0 30px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  position: relative;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 50px;
}
.footer-grid h4 {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: var(--mustard);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.footer-grid p {
  color: rgba(241,231,208,0.7);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-grid a {
  display: block;
  color: var(--paper-warm);
  text-decoration: none;
  padding: 4px 0;
  font-size: 13px;
}
.footer-grid a:hover { color: var(--crt-amber); }
.station-id {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 22px 24px 0;
  border-top: 1px solid rgba(241,231,208,0.15);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-style: italic;
  line-height: 1.7;
  color: rgba(241,231,208,0.55);
  letter-spacing: 0.02em;
}
.station-id strong {
  color: var(--mustard);
  font-weight: 500;
  font-style: normal;
}
.station-id::before {
  content: '◉ STATION ID · ';
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-size: 10px;
  margin-right: 4px;
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(241,231,208,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(241,231,208,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}
.sign-off {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: var(--crt-amber);
  letter-spacing: 0.1em;
}

/* === PAGE HEADER (for inner pages) === */
.page-header {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 80px 0 60px;
}
.page-header .frame { display: grid; grid-template-columns: 1fr; gap: 16px; }
.page-header .section-tag { justify-self: start; }
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 920px;
}
.page-header h1 em { font-style: italic; color: var(--rust); }
.page-header .lede {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 660px;
  line-height: 1.7;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .programs-grid { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .tv-screen { padding: 32px 24px; }
  .station-bar-inner { flex-wrap: wrap; gap: 12px; font-size: 11px; }
  section.block { padding: 60px 0; }
  .page-header { padding: 50px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* === WORLD CLOCK — 4 US time zones in the station bar === */
.station-bar-clocks {
  display: flex;
  gap: 18px;
  align-items: baseline;
}
.station-bar-clocks .zclock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 2px;
}
.station-bar-clocks .zone {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tube-green);
  opacity: 0.85;
}
.station-bar-clocks .time {
  font-family: 'VT323', monospace;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--mustard);
}
.station-bar-clocks .zclock + .zclock {
  border-left: 1px dashed rgba(212, 160, 23, 0.35);
  padding-left: 18px;
}
@media (max-width: 1024px) {
  .station-bar-clocks { gap: 12px; }
  .station-bar-clocks .time { font-size: 17px; }
  .station-bar-clocks .zclock + .zclock { padding-left: 12px; }
}
/* === STUDIO VISITOR PASS — vintage admit-one ticket on contact page === */
.studio-pass {
  display: flex;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--rust);
  position: relative;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.studio-pass:hover {
  transform: translate(-3px, -3px);
  box-shadow: 13px 13px 0 var(--rust);
}
.studio-pass:hover .pass-cta {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.pass-stub {
  background: var(--ink);
  color: var(--mustard);
  width: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px dashed var(--mustard);
  position: relative;
}
/* perforation circles removed per design feedback */
.pass-stub-text {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.pass-body {
  padding: 32px 40px 32px 36px;
  flex: 1;
}
.pass-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--ink-mute);
}
.studio-pass .pass-title {
  margin-bottom: 22px;
  line-height: 1.05;
}
.studio-pass .pass-sub {
  margin-bottom: 32px;
  line-height: 1.5;
}
.studio-pass .pass-cta {
  align-self: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pass-fineprint {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--ink-mute);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 600px) {
  .pass-stub { width: 44px; }
  .pass-stub-text { font-size: 18px; }
  .pass-body { padding: 24px 22px 22px 24px; }
}

@media (max-width: 720px) {
  .station-bar-clocks { display: none; }
}

/* ==========================================================
   ACCESSIBILITY — focus, skip link, reduced motion, sr-only
   ========================================================== */

/* Visually hidden but available to screen readers */
.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;
}

/* Skip-to-content link — only visible on keyboard focus */
.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  z-index: 10000;
  background: var(--ink);
  color: var(--mustard);
  padding: 12px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--mustard);
  transition: top 0.15s;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 8px;
  left: 8px;
  outline: none;
}

/* Visible focus ring for keyboard users on every focusable element */
:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Suppress focus outline for mouse clicks (most browsers handle this with :focus-visible already) */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* Honor user reduced-motion preference — kill marquees, blinks, hovers */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track,
  .prevue-listings,
  .marquee-track {
    animation: none !important;
    transform: none !important;
  }
}


/* === Launch tweaks (Quasar Cowboy) === */
.pull { margin-bottom: 28px; }
.pre-title { opacity: 0.55; }
.affiliate-row { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px){ .affiliate-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px){ .affiliate-row { grid-template-columns: repeat(2, 1fr); } }
.press-strip { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .press-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .press-strip { grid-template-columns: 1fr; } }

.station-bar-clocks .time { white-space: nowrap; }
