/* =========================================================================
   New Orleans Block Party 504 — design system
   Mobile-first. Deep black foundation, gold as focus only.
   ========================================================================= */

:root {
  --black: #050505;
  --surface: #0d0d0d;
  --surface-raised: #151515;
  --glass: rgba(10, 10, 10, 0.76);
  --glass-strong: rgba(5, 5, 5, 0.9);
  --gold: #d9a62e;
  --gold-bright: #f4ca62;
  --gold-deep: #9b6814;
  --cream: #f7f0df;
  --white: #ffffff;
  --muted: #bdb7aa;
  --line: rgba(217, 166, 46, 0.3);
  --line-soft: rgba(217, 166, 46, 0.16);
  --live: #f0b832;
  --error: #ff8a6a;

  --font-display: 'Oswald', 'Barlow Condensed', 'Bebas Neue', 'Arial Narrow', system-ui, sans-serif;
  --font-ui: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;

  --gutter: 20px;
  --maxw: 1280px;
  --header-h: 66px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Site backdrop — the lockup sitting behind the whole page, very low
   opacity so it reads as a watermark and never competes with content.
   Delete this block to remove it. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../../public/images/nobp/logo.webp') no-repeat center 56%;
  background-size: min(150vw, 1500px) auto;
  opacity: 0.055;
}

/* height:auto is load-bearing — the width/height HTML attributes (there for
   layout stability) act as presentational hints, and without this they win
   over any `aspect-ratio` we set, stretching cropped images to their
   intrinsic height. Rules that set an explicit height still override this. */
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0;
}

/* --- focus ------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 8px; top: -80px; z-index: 200;
  background: var(--gold); color: #000; padding: 12px 18px;
  border-radius: var(--r-sm); font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: max(var(--gutter), var(--safe-l)) max(var(--gutter), var(--safe-r));
}

.section { padding-block: 64px; position: relative; }
.section--tight { padding-block: 44px; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 14px; margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(30px, 7vw, 52px); }
.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 9px; margin: 0 0 10px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--gold); opacity: 0.8;
}
.section-note { color: var(--muted); font-size: 14px; max-width: 46ch; margin: 0; }

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #0a0a0a; box-shadow: 0 8px 26px rgba(217, 166, 46, 0.22);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(217, 166, 46, 0.34); }
.btn--ghost { border-color: var(--line); color: var(--cream); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(217, 166, 46, 0.09); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 12px; }
.btn:active { transform: translateY(0) scale(0.98); }

/* --- header ------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(5, 5, 5, 0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  height: var(--header-h);
}
.header-logo img, .header-logo svg { height: 34px; width: auto; }
.header-logo { display: flex; align-items: center; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  position: relative; display: block; padding: 6px 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: var(--cream); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold); transition: right 0.28s var(--ease);
}
.main-nav a:hover::after { right: 0; }
.main-nav a[aria-current='page'] { color: var(--cream); }
.main-nav a[aria-current='page']::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid transparent; color: var(--cream);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(217, 166, 46, 0.12); border-color: var(--line-soft); }
.icon-btn svg { width: 19px; height: 19px; }
.header-signin { display: none; }
.header-listen { display: none; }

/* Header mini player. Its own class on purpose: the `bounce` class belongs to
   hero-live.css, which only index.html loads, and that rule sizes the button
   to the hero and runs the idle bounce animation. Sharing the name put a
   hero-sized bouncing disc in the header. */
.nobp-miniplayer {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  border-radius: 50%; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nobp-miniplayer img {
  grid-area: 1 / 1; width: 100%; height: 100%;
  object-fit: contain; pointer-events: none;
}
.nobp-miniplayer:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
.nobp-miniplayer[data-state="playing"] { animation: miniPulse 1.6s ease-in-out infinite; }
@keyframes miniPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* The play/stop pip. A disc of artwork alone does not read as a transport
   control; this is the part that says press me, then says press me again. */
.nobp-miniplayer-badge {
  position: absolute; right: -2px; bottom: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9px; line-height: 1; color: #0a0a0a;
  background: var(--gold-bright); border: 2px solid var(--black);
  pointer-events: none;
}
.nobp-miniplayer[data-state="loading"] .nobp-miniplayer-badge {
  animation: badgeBlink 1s steps(2) infinite;
}
@keyframes badgeBlink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .nobp-miniplayer[data-state="playing"],
  .nobp-miniplayer[data-state="loading"] .nobp-miniplayer-badge { animation: none; }
}

/* mobile drawer */
.nav-toggle { display: grid; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--glass-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 22px max(var(--gutter), var(--safe-l)) calc(40px + var(--safe-b));
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-nav[data-open='true'] { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav ul { list-style: none; margin: 0 0 22px; padding: 0; }
.mobile-nav li + li { border-top: 1px solid var(--line-soft); }
/* Drawer NAV links only. Without :not(.btn) this rule also hit the "Sign in"
   anchor in the actions row — it out-specifies .btn (0,1,1 vs 0,1,0), so the
   link lost its button layout and its label sat 113px left of centre while
   the neighbouring <button> stayed centred. */
.mobile-nav a:not(.btn) {
  display: block; padding: 17px 2px;
  font-family: var(--font-display); font-size: 27px; text-transform: uppercase;
  color: var(--cream);
}
.mobile-nav a[aria-current='page']:not(.btn) { color: var(--gold-bright); }
.mobile-nav .btn { width: 100%; }
.mobile-nav .mobile-nav-actions { display: grid; gap: 12px; }

/* --- hero -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 640px;
  padding-top: calc(var(--header-h) + 34px);
  padding-bottom: 150px;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -2%; z-index: -3;
  background-color: #0a0805;
  background-size: cover;
  background-repeat: no-repeat;
  /* Phones get the tighter crop centred on the dancers; the wide 2.78:1 file
     would otherwise crop to a narrow, unreadable slice. */
  background-image: image-set(
    url('../../public/images/nobp/block-party-hero-mobile.webp') type('image/webp'),
    url('../../public/images/nobp/block-party-hero-mobile.jpg') type('image/jpeg'));
  background-position: 58% 58%;
  will-change: transform;
}
@media (min-width: 768px) {
  .hero-bg {
    background-image: image-set(
      url('../../public/images/nobp/block-party-hero.avif') type('image/avif'),
      url('../../public/images/nobp/block-party-hero.webp') type('image/webp'),
      url('../../public/images/nobp/block-party-hero.jpg') type('image/jpeg'));
    /* The artwork is the full 16:9 scene again (logo-free version), so the
       porch DJ is back in frame at upper-left and the dancers sit centre. */
    background-position: center 62%;
  }
}
@media (min-width: 1024px) { .hero-bg { background-position: center 64%; } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  /* The artwork is a bright daylight scene, so the left scrim has to be firm
     for WCAG-AA text — but it eases off fast enough that the dancers, the
     brass player and the crowd are never blacked out. */
  background:
    linear-gradient(100deg, rgba(5,5,5,0.97) 0%, rgba(5,5,5,0.9) 24%, rgba(5,5,5,0.62) 48%, rgba(5,5,5,0.24) 76%, rgba(5,5,5,0.12) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(5,5,5,0.5) 0%, rgba(5,5,5,0) 24%, rgba(5,5,5,0.18) 66%, rgba(5,5,5,0.86) 92%, var(--black) 100%);
}
.hero-inner { width: 100%; }
.hero-copy { max-width: 700px; }

.hero-logo {
  width: min(86vw, 460px); height: auto; margin-bottom: 26px;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.75));
}

/* --- bass rattle -------------------------------------------------------
   `--bass` (0–1) is driven every frame from player.js: real low-frequency
   energy off the Web Audio analyser while the stream plays, a procedural
   kick when analysis is blocked, and a slow breath when idle. The logo
   scales and lifts on the hit, like a trunk rattling.
   ---------------------------------------------------------------------- */
:root { --bass: 0; }

.hero-logo {
  transform-origin: left center;
  transform:
    scale(calc(1 + var(--bass) * 0.03))
    translateY(calc(var(--bass) * -3px))
    rotate(calc(var(--bass) * 0.14deg));
  will-change: transform;
}
.header-logo img {
  transform-origin: left center;
  transform: scale(calc(1 + var(--bass) * 0.018)) translateY(calc(var(--bass) * -1px));
}
/* The vinyl label breathes with it too. (Not .signal-ring — that already
   owns its transform via the ringOrbit/ringPulse keyframes.) */
.vinyl-label { transform: translate(-50%, -50%) scale(calc(1 + var(--bass) * 0.045)); }

@media (prefers-reduced-motion: reduce) {
  .hero-logo, .header-logo img { transform: none !important; }
  .vinyl-label { transform: translate(-50%, -50%) !important; }
}
.hero h1 {
  font-size: clamp(34px, 9vw, 72px);
  line-height: 0.98;
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
}
.hero h1 .gold { color: var(--gold-bright); display: block; }
.hero-sub {
  font-size: clamp(15px, 3.6vw, 19px);
  color: var(--cream); opacity: 0.92; max-width: 58ch;
  margin: 0 0 28px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}
.hero-cta { display: grid; gap: 12px; }
.hero-cta .btn { width: 100%; }

.proof-row {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 30px; padding: 0; list-style: none;
}
.proof-row li {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.proof-row li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); flex: none;
}

/* --- now playing player ------------------------------------------------ */
.player-dock {
  position: relative; z-index: 20;
  margin-top: -110px; margin-bottom: 28px;
}
.player {
  background: var(--glass);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  display: grid; gap: 16px;
  will-change: transform;
}
.player-top { display: flex; align-items: center; gap: 15px; min-width: 0; }

/* bottom-sheet affordance on mobile */
.player::before {
  content: ''; display: block; width: 42px; height: 4px; border-radius: 2px;
  background: rgba(217, 166, 46, 0.35); margin: -4px auto 2px;
}

/* vinyl */
.vinyl-stage {
  width: 92px; height: 92px; flex: none;
  perspective: 700px;
}
.vinyl {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
  background: #0a0a0a;
  box-shadow: 0 10px 26px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(217,166,46,0.28);
}
.vinyl-disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(255,255,255,0.045) 0 1px, rgba(0,0,0,0) 1px 4px),
    radial-gradient(circle at 34% 28%, rgba(244,202,98,0.16), rgba(0,0,0,0) 58%),
    #090909;
  animation: spin 3.6s linear infinite;
  animation-play-state: paused;
}
.vinyl-disc::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(217,166,46,0.45), inset 0 6px 18px rgba(0,0,0,0.9);
}
.player[data-state='playing'] .vinyl-disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

.vinyl-label {
  position: absolute; left: 50%; top: 50%; width: 40%; height: 40%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 46%, var(--gold-deep));
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}
.vinyl-label svg { width: 58%; height: 58%; fill: #0a0a0a; }
.vinyl-label::after {
  content: ''; position: absolute; width: 12%; height: 12%; border-radius: 50%;
  background: #050505;
}
.vinyl-art {
  position: absolute; inset: 0; border-radius: 50%; object-fit: cover;
  width: 100%; height: 100%; opacity: 0.34; mix-blend-mode: screen;
  pointer-events: none;
}

/* signal ring */
.signal-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid rgba(217,166,46,0.45);
  opacity: 0; pointer-events: none;
}
.player[data-state='playing'] .signal-ring { animation: ringOrbit 5.5s ease-in-out infinite; }
.signal-ring.pulse { animation: ringPulse 0.9s var(--ease) 1; }
@keyframes ringPulse {
  0% { opacity: 0.9; transform: scale(0.88); }
  100% { opacity: 0; transform: scale(1.4); }
}
@keyframes ringOrbit {
  0%, 100% { opacity: 0.16; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.045); }
}

.player-meta { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.np-eyebrow {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 10px; font-weight: 800; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid rgba(240, 184, 50, 0.5);
  background: rgba(240, 184, 50, 0.12);
  color: var(--live); font-size: 9.5px; letter-spacing: 0.18em;
}
.live-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--live);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.live-badge[hidden] { display: none; }

.np-title {
  font-family: var(--font-display); font-size: clamp(19px, 5vw, 25px);
  text-transform: uppercase; color: var(--white); line-height: 1.06;
  margin: 0 0 3px;
  /* wrap to two lines on narrow screens rather than truncating a channel name */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere;
}
.np-track { font-size: 14px; color: var(--cream); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-host { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-status {
  font-size: 12px; margin: 6px 0 0; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.np-status[data-tone='error'] { color: var(--error); }
.np-status[data-tone='live'] { color: var(--live); }

/* waveform */
.waveform {
  display: flex; align-items: flex-end; gap: 2px;
  height: 38px; width: 100%; overflow: hidden;
}
.waveform span {
  flex: 1 1 0; min-width: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--gold-deep), var(--gold-bright));
  height: 12%; opacity: 0.55;
  transform-origin: bottom;
  transition: height 0.11s linear, opacity 0.3s var(--ease);
}
.player[data-state='playing'] .waveform span { opacity: 1; }

.progress-row { display: flex; align-items: center; gap: 12px; }
.time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; min-width: 42px; }
.time--end { text-align: right; }

.player-controls { display: flex; align-items: center; justify-content: center; gap: 12px; }
.ctrl {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-soft); color: var(--cream);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.ctrl:hover { background: rgba(217,166,46,0.12); border-color: var(--line); }
.ctrl:active { transform: scale(0.94); }
.ctrl svg { width: 19px; height: 19px; fill: currentColor; }
.ctrl[aria-pressed='true'] { color: var(--gold-bright); border-color: var(--line); background: rgba(217,166,46,0.14); }

.ctrl--play {
  width: 62px; height: 62px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #0a0a0a; border-color: transparent;
  box-shadow: 0 8px 26px rgba(217,166,46,0.3);
  position: relative;
}
.ctrl--play:hover { background: linear-gradient(180deg, #ffd87a, var(--gold-bright)); }
.ctrl--play svg { width: 24px; height: 24px; }
.ctrl--play .spinner { display: none; }
.player[data-state='loading'] .ctrl--play .icon-play,
.player[data-state='loading'] .ctrl--play .icon-pause { display: none; }
.player[data-state='loading'] .ctrl--play .spinner {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(10,10,10,0.28); border-top-color: #0a0a0a;
  animation: rot 0.8s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }
.player:not([data-state='playing']) .icon-pause { display: none; }
.player[data-state='playing'] .icon-play { display: none; }

.player-extras { display: flex; align-items: center; gap: 10px; }
.volume-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
input[type='range'] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px;
  background: transparent; cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--gold) var(--fill, 80%), rgba(255,255,255,0.14) var(--fill, 80%));
}
input[type='range']::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.14); }
input[type='range']::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold-bright); margin-top: -5px;
  box-shadow: 0 0 0 3px rgba(217,166,46,0.22);
}
input[type='range']::-moz-range-thumb {
  width: 14px; height: 14px; border: 0; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 0 3px rgba(217,166,46,0.22);
}

/* --- station cards ----------------------------------------------------- */
.station-list { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.station-card {
  position: relative; display: grid;
  grid-template-columns: 96px 1fr; align-items: center; gap: 14px;
  padding: 12px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line-soft);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  /* No preserve-3d / will-change here: the tilt is one transform on the card
     itself, and promoting six cards to 3D layers cost paints (thumbnails
     intermittently rendered blank) for no benefit. */
}
.station-card:hover, .station-card:focus-within {
  border-color: var(--line);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(217,166,46,0.18);
}
.station-card.is-active { border-color: var(--gold); }
.station-art {
  width: 96px; height: 96px; border-radius: var(--r-md); object-fit: cover;
  background: var(--surface); flex: none;
}
.station-body { min-width: 0; }
.station-body h3 { font-size: clamp(18px, 4.6vw, 23px); color: var(--white); margin-bottom: 4px; }
.station-body p { font-size: 13px; color: var(--muted); margin: 0; }
.station-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 8px;
}
.station-play {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(217,166,46,0.12); border: 1px solid var(--line); color: var(--gold-bright);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.station-play:hover { background: var(--gold); color: #0a0a0a; }
.station-play:active { transform: scale(0.93); }
.station-play svg { width: 15px; height: 15px; fill: currentColor; }

/* --- live on the block ------------------------------------------------- */
.featured-show {
  display: grid; gap: 0;
  border: 1px solid var(--line-soft); border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(150deg, var(--surface-raised), var(--surface));
}
.featured-show img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.featured-body { padding: 22px 20px 24px; }
.featured-body h3 { font-size: clamp(26px, 6.5vw, 40px); color: var(--white); margin: 10px 0 8px; }
.featured-body p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.show-time {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.schedule-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.schedule-list li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 15px 4px; border-top: 1px solid var(--line-soft);
}
.schedule-title { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; color: var(--cream); }
.schedule-meta { font-size: 12px; color: var(--muted); }
.status-pill {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-soft); color: var(--muted);
}
.status-pill[data-status='live'] {
  color: var(--live); border-color: rgba(240,184,50,0.5); background: rgba(240,184,50,0.1);
}

/* --- culture grid ------------------------------------------------------ */
.culture-grid { display: grid; gap: 18px; list-style: none; padding: 0; margin: 0; }
.article-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.article-card:hover { border-color: var(--line); transform: translateY(-3px); }
.article-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-body { padding: 16px 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-cat {
  font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.article-card h3 { font-size: 20px; color: var(--white); line-height: 1.1; }
.article-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.article-meta {
  margin-top: auto; padding-top: 8px;
  font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.article-meta .sep { opacity: 0.4; }

/* --- events ------------------------------------------------------------ */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.event-list li {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 4px; border-top: 1px solid var(--line-soft);
}
.event-date {
  text-align: center; border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 6px 4px;
}
.event-date .m { display: block; font-size: 10px; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; }
.event-date .d { display: block; font-family: var(--font-display); font-size: 22px; color: var(--cream); line-height: 1; }

/* =========================================================================
   LISTEN LIVE — the on-air destination.
   One object: the player lives inside the on-air card, so arriving here and
   starting the radio is a single obvious move. The backdrop is the current
   record's artwork, blurred — the page takes its colour from the music.
   ========================================================================= */
.onair {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + 22px); padding-bottom: 48px;
  min-height: min(700px, 92vh);
  display: flex; align-items: center;
}
/* two layers so artwork changes crossfade instead of snapping */
.onair-bg {
  position: absolute; inset: -12%; z-index: -3;
  background-size: cover; background-position: center;
  filter: blur(64px) saturate(1.45);
  transform: scale(1.08);
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.onair-bg.is-on { opacity: 0.6; }
/* keeps the page on-brand no matter what colour the artwork is */
.onair-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 22% 30%, rgba(217,166,46,0.1), rgba(5,5,5,0) 60%),
    linear-gradient(105deg, rgba(5,5,5,0.93) 0%, rgba(5,5,5,0.82) 42%, rgba(5,5,5,0.72) 100%),
    linear-gradient(to bottom, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.4) 26%, rgba(5,5,5,0.86) 86%, var(--black) 100%);
}

.onair-inner { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.onair-head h1 { font-size: clamp(30px, 8vw, 54px); color: var(--white); }
.onair-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.audience { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.audience strong { color: var(--cream); font-variant-numeric: tabular-nums; font-size: 15px; }
.source-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted);
}
.source-tag[data-tone='live'] { color: var(--live); border-color: rgba(240,184,50,0.45); }
.source-tag[data-tone='error'] { color: var(--error); border-color: rgba(255,138,106,0.45); }

/* the single player object */
.player.onair-player {
  display: grid; gap: 22px; align-items: center;
  background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 20px; box-shadow: 0 26px 80px rgba(0,0,0,0.72);
}
.player.onair-player::before { display: none; }

/* artwork in a sleeve, with the record sliding out behind it */
.sleeve { position: relative; width: min(58vw, 200px); aspect-ratio: 1 / 1; justify-self: center; }
.sleeve-art {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover;
  border-radius: 4px; border: 1px solid var(--line-soft);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}
.sleeve-disc {
  position: absolute; z-index: 1; top: 7%; left: 19%; width: 86%; height: 86%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0 1px, rgba(0,0,0,0) 1px 4px),
    radial-gradient(circle at 34% 30%, rgba(244,202,98,0.18), rgba(0,0,0,0) 56%),
    #0a0a0a;
  box-shadow: inset 0 0 0 1.5px rgba(217,166,46,0.55), inset 0 0 30px rgba(0,0,0,0.8),
              0 14px 30px rgba(0,0,0,0.6);
  transition: transform 0.6s var(--ease);
  animation: spin 3.4s linear infinite; animation-play-state: paused;
}
.player[data-state='playing'] .sleeve-disc { animation-play-state: running; }
.sleeve-disc-label {
  position: absolute; left: 50%; top: 50%; width: 34%; height: 34%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 48%, var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
}
.sleeve-disc-label::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12%; height: 12%;
  transform: translate(-50%, -50%); border-radius: 50%; background: #050505;
}
.sleeve .signal-ring { inset: -10px; border-radius: 4px; }

.onair-body {
  min-width: 0; display: flex; flex-direction: column; gap: 5px;
  /* the record peeks out of the sleeve into the gap — the copy must always
     paint above it, or long titles collide with the disc */
  position: relative; z-index: 3;
}
.onair-label {
  font-size: 10px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin: 0;
}
.onair-title {
  font-family: var(--font-display); font-size: clamp(26px, 6.4vw, 44px); text-transform: uppercase;
  color: var(--white); line-height: 1.03; margin: 2px 0 0; overflow-wrap: anywhere;
}
.onair-artist { font-size: clamp(15px, 3.4vw, 20px); color: var(--cream); margin: 0; }
.onair-meta { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.onair-channel {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 8px 0 0;
}

.onair-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.track-bar {
  flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.14);
  position: relative; overflow: hidden; min-width: 0;
}
.track-bar::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  border-radius: 3px; transition: width 0.9s linear;
}

.onair-controls { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.onair-controls-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ctrl--hero {
  width: 74px; height: 74px;
  box-shadow: 0 10px 34px rgba(217,166,46,0.4), inset 0 0 0 2px rgba(5,5,5,0.12);
}
.ctrl--hero svg { width: 28px; height: 28px; }
.ctrl--hero .spinner { width: 26px; height: 26px; }

.onair-wave {
  height: 34px; margin-top: 16px;
  justify-content: space-between; gap: 0;
}
.onair-wave span { flex: 0 0 5px; min-width: 5px; border-radius: 2px; }
.onair-body .np-status { margin-top: 8px; }

.onair-next {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}
.onair-next img { width: 44px; height: 44px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.up-label { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.up-title { font-size: 15px; color: var(--cream); margin: 2px 0 0; font-weight: 600; }
.up-artist { font-size: 13px; color: var(--muted); margin: 0; }

/* recently played */
.listen-columns { display: grid; gap: 40px; }
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.recent-list li {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 4px; border-top: 1px solid var(--line-soft);
}
.recent-list img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.rp-text { min-width: 0; }
.rp-title { font-size: 15px; color: var(--cream); margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.rp-artist { font-size: 13px; color: var(--muted); margin: 0; }
.rp-time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* request line */
.request-panel {
  border: 1px solid var(--line-soft); border-radius: var(--r-xl); padding: 24px;
  background: linear-gradient(150deg, var(--surface-raised), var(--surface));
  display: flex; flex-direction: column; gap: 10px; align-self: start;
}
.request-panel h2 { font-size: clamp(24px, 5vw, 32px); color: var(--white); }
.request-panel > p { font-size: 14px; color: var(--muted); margin: 0; }
.request-panel form { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.request-panel input {
  width: 100%; padding: 13px 15px; background: var(--black); color: var(--cream);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
}
.request-panel input::placeholder { color: #6f6a60; }
.request-panel input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(217,166,46,0.2); }
.request-panel .btn { align-self: flex-start; }

@media (min-width: 768px) {
  .player.onair-player {
    grid-template-columns: 260px 1fr;
    grid-template-areas: 'art body' 'next next';
    gap: 22px 30px; padding: 26px; align-items: start;
  }
  .sleeve { width: 240px; justify-self: start; grid-area: art; }
  .onair-body { grid-area: body; }
  .onair-player .onair-next { grid-area: next; margin-top: 0; }
  .ctrl--hero { width: 84px; height: 84px; }
  .ctrl--hero svg { width: 32px; height: 32px; }
}
@media (min-width: 1024px) {
  .listen-columns { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .player.onair-player { grid-template-columns: 300px 1fr; }
  .sleeve { width: 300px; }
  .onair { min-height: min(760px, 94vh); }
}
@media (prefers-reduced-motion: reduce) {
  .onair-bg { transition: none; }
  .sleeve-disc { animation: none !important; }
}

/* --- event cards (merged from the existing block-party site) ------------ */
.event-grid { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.event-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.event-card:hover { border-color: var(--line); transform: translateY(-3px); }
.event-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.event-body { padding: 18px 18px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.event-body h3 { font-size: 22px; color: var(--white); }
.event-body p { font-size: 14px; color: var(--muted); margin: 0; }
.event-when { color: var(--gold) !important; font-size: 13px !important; font-weight: 600; letter-spacing: 0.02em; }
.event-body .btn { margin-top: auto; }

.add-event {
  margin-top: 22px; border: 1px dashed var(--line); border-radius: var(--r-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.add-event-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.add-event-head p { font-size: 14px; color: var(--muted); }
.field-row { display: grid; gap: 12px; }
.field-row input, .field-row textarea {
  width: 100%; padding: 13px 15px; background: var(--surface-raised); color: var(--cream);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm); font-family: inherit;
}
.field-row input::placeholder, .field-row textarea::placeholder { color: #6f6a60; }
.field-row input:focus, .field-row textarea:focus {
  border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(217,166,46,0.2);
}

/* --- gallery (merged from the existing block-party site) ---------------- */
.gallery-grid { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-soft); }
.shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.5s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 22px 14px 11px;
  font-size: 12px; letter-spacing: 0.04em; color: var(--cream);
  background: linear-gradient(to top, rgba(5,5,5,0.92), rgba(5,5,5,0));
}

/* --- newsletter perks --------------------------------------------------- */
.perks { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0 0 4px; padding: 0; }
.perks li { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.perks li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex: none; }

/* --- prose (about / contact) -------------------------------------------- */
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 68ch; }
.prose p { color: var(--muted); }
.prose h3 { color: var(--white); margin-top: 10px; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 8px; }
.contact-card {
  border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 18px 20px;
  background: var(--surface); display: flex; flex-direction: column; gap: 6px;
}
.contact-card h4 { font-size: 12px; letter-spacing: 0.16em; color: var(--gold); }
.contact-card a, .contact-card span { color: var(--cream); font-size: 15px; }

/* --- footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(13,13,13,0.6), var(--black));
  padding-block: 52px calc(28px + var(--safe-b));
  margin-top: 20px;
}
.footer-grid { display: grid; gap: 34px; }
.footer-brand img, .footer-brand svg { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 42ch; margin: 0 0 18px; }
.social-list { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.social-list a {
  display: inline-flex; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-soft); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); transition: all 0.2s var(--ease);
}
.social-list a:hover { border-color: var(--gold); color: var(--cream); }

.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.footer-cols h4 { font-size: 13px; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-cols a { font-size: 13.5px; color: var(--muted); }
.footer-cols a:hover { color: var(--cream); }

.newsletter { display: grid; gap: 10px; }
.newsletter label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.newsletter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input[type='email'], .newsletter input[type='text'] {
  flex: 1 1 190px; min-width: 0; width: 100%; padding: 13px 15px;
  background: var(--surface-raised); color: var(--cream);
  border: 1px solid var(--line-soft); border-radius: var(--r-sm);
}
.newsletter input::placeholder { color: #6f6a60; }
.newsletter input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(217,166,46,0.2); }
.form-note { font-size: 12.5px; color: var(--gold-bright); margin: 0; min-height: 18px; }

.footer-legal {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.footer-legal ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

/* player on inner pages sits in normal flow, not overlapping a hero */
.player-dock.page-player { margin-top: 34px; margin-bottom: 0; }

/* --- page templates (non-home routes) ---------------------------------- */
.page-head {
  padding-top: calc(var(--header-h) + 54px); padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(120% 100% at 12% 0%, rgba(217,166,46,0.12), rgba(5,5,5,0) 62%);
}
.page-head h1 { font-size: clamp(36px, 10vw, 74px); color: var(--white); }
.page-head p { color: var(--muted); max-width: 60ch; margin: 12px 0 0; }
.placeholder-note {
  border: 1px dashed var(--line); border-radius: var(--r-lg);
  padding: 22px; color: var(--muted); font-size: 14px; background: rgba(217,166,46,0.04);
}
.placeholder-note strong { color: var(--cream); }

/* --- reveal animation -------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================================
   BREAKPOINTS
   ========================================================================= */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero-cta { display: flex; flex-wrap: wrap; }
  .hero-cta .btn { width: auto; }
  .station-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .culture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player { padding: 20px 22px; }
}

@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .hero { min-height: 700px; padding-bottom: 170px; }
  .hero-logo { width: min(60vw, 470px); }
  .header-signin {
    display: inline-flex; font-size: 12px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
    padding: 8px 10px; transition: color 0.2s var(--ease);
  }
  .header-signin:hover { color: var(--cream); }
  .header-listen { display: inline-flex; }
  .header-logo img, .header-logo svg { height: 40px; }

  /* Tablet: two columns with the extras on their own row. A three-column
     layout at this width starves the middle track and the rows collide. */
  .player {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'top meta' 'extras extras';
    align-items: center; gap: 18px 22px; padding: 20px 24px;
  }
  .player-top { grid-area: top; min-width: 0; max-width: 330px; }
  .player-center { grid-area: meta; display: grid; gap: 12px; min-width: 0; }
  .player-extras {
    grid-area: extras; min-width: 0; width: 100%;
    flex-direction: row; align-items: center; justify-content: space-between;
    gap: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft);
  }
  .player-controls { justify-content: flex-start; }
  .progress-row, .player-controls { min-width: 0; }
  .vinyl-stage { width: 104px; height: 104px; }
  .volume-wrap { width: 170px; flex: none; }
  .player-side-actions { display: flex; gap: 8px; }

  .featured-show { grid-template-columns: 1fr 1.15fr; align-items: center; }
  .featured-show img { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .featured-body { padding: 34px; }
  .player::before { display: none; }
  .station-card { grid-template-columns: 120px 1fr; padding: 14px; }
  .station-art { width: 120px; height: 120px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 36px; }
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
  .hero { min-height: min(790px, 88vh); padding-bottom: 190px; }
  .section { padding-block: 84px; }
  .station-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .culture-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .footer-grid { grid-template-columns: 1.25fr 1.6fr 1.15fr; gap: 46px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player-dock { margin-top: -128px; }
  .schedule-list li { padding: 18px 6px; }

  /* Desktop: true three-column player. minmax(0,…) on every track so the
     middle column can shrink instead of the rows overflowing it. */
  .player {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    grid-template-areas: 'top meta extras';
    gap: 26px;
  }
  .player-top { max-width: 380px; }
  .player-extras {
    flex-direction: column; align-items: flex-end; justify-content: center;
    width: auto; padding-top: 0; border-top: 0; gap: 12px;
  }
  .volume-wrap { width: 150px; }
}

@media (min-width: 1280px) {
  .main-nav ul { gap: 26px; }
  .station-card { grid-template-columns: 140px 1fr; }
  .station-art { width: 140px; height: 140px; }
  .vinyl-stage { width: 118px; height: 118px; }
}

/* fine pointer only: tilt + parallax opt-in */
@media (hover: hover) and (pointer: fine) {
  .station-card { transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
}
@media (hover: none) {
  .station-card:active { transform: scale(0.985); }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-bg { transform: none !important; }
}

/* Studio credit. Deliberately quiet: present for anyone who looks for it,
   invisible to everyone who doesn't, and never competing with the station's
   own name directly above it. */
.footer-credit {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.72;
}
.footer-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.footer-credit a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.footer-credit a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 3px; }

/* --- install to home screen -------------------------------------------- *
   Sits above the mini player, below the mobile drawer (z-index 99) and the
   header (100), so it can never cover the station's own controls.          */
.nobp-install {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 98;
  display: flex; align-items: center; gap: 13px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(217, 166, 46, 0.42);
  background: rgba(14, 12, 9, 0.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.42s var(--ease, cubic-bezier(.2,.7,.2,1)), opacity 0.3s ease;
  max-width: 520px; margin-inline: auto;
}
.nobp-install.is-in { transform: translateY(0); opacity: 1; }
.nobp-install-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 13px; }
.nobp-install-body { flex: 1 1 auto; min-width: 0; }
.nobp-install-title {
  margin: 0 0 3px; font-weight: 700; font-size: 15px; line-height: 1.25;
  color: var(--cream, #f7f0df);
}
.nobp-install-sub {
  margin: 0; font-size: 13px; line-height: 1.4; color: rgba(247, 240, 223, 0.74);
}
.nobp-install-sub b { color: var(--cream, #f7f0df); font-weight: 600; }
.nobp-install-go {
  margin-top: 9px; padding: 9px 20px;
  border: 0; border-radius: 999px;
  background: var(--gold, #d9a62e); color: #120d02;
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.nobp-install-go:hover { filter: brightness(1.08); }
.nobp-install-x {
  flex: 0 0 auto; align-self: flex-start;
  width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: transparent;
  color: rgba(247, 240, 223, 0.5); font-size: 21px; line-height: 1; cursor: pointer;
}
.nobp-install-x:hover { color: var(--cream, #f7f0df); }
/* iOS share glyph, drawn rather than typed - the emoji renders as a grey
   box on anything that is not an Apple device. */
.nobp-share {
  display: inline-block; width: 11px; height: 14px;
  vertical-align: -2px; margin: 0 1px;
  background: currentColor;
  -webkit-mask: var(--share-svg) center / contain no-repeat;
          mask: var(--share-svg) center / contain no-repeat;
}
:root {
  --share-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 1 6.5 6.5l1.4 1.4L11 4.8V21h2V4.8l3.1 3.1 1.4-1.4z'/%3E%3Cpath d='M3 12h5v2H5v15h14V14h-3v-2h5v19H3z'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .nobp-install { transition: opacity 0.2s ease; transform: none; }
}
