/* ==========================================================================
   DOPE SPOT RADIO — v2.5
   Changes from v2.4:
   - Reveal effect always replays in both scroll directions (JS-driven,
     no more unobserve — section resets to hidden when it leaves viewport)
   - Mobile reveal: same translation + fade as desktop (was always-visible)
   - Mobile panel opacity/blur now unified with desktop reveal logic
   - Tracklist on mobile participates in reveal (not just toggle-open)
   ========================================================================== */

/* --- TOKENS ---------------------------------------------------------------- */
:root {
  --accent: #2d5a3d;
  --accent-light: #4a8c62;
  --accent-glow: #6ab07a;
  --cream: #e8e0d0;
  --muted: #888;
  --dark: #080808;
  --dark2: #0e0e0e;
  --border: #1e1e1e;
  --border-soft: #131313;

  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Space Mono', 'Courier New', monospace;

  --vinyl-target-rpm: 30;

  --overlay-strength: 0.62;
  --nav-height: 64px;

  --panel-scale: 1.15;
  --bg-parallax-scale: 1.04;  /* réduit de 1.08 → 1.04 : zoom moins prononcé */

  --ease-out-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-back: cubic-bezier(0.34, 1.3, 0.64, 1);

  /* Reveal durations */
  --reveal-duration: 0.7s;
  --reveal-delay-vinyl: 0.12s;
  --reveal-delay-tracklist: 0.22s;
}

/* --- RESET / BASE ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-weight: normal; }

/* --- BACKGROUND LAYER SYSTEM ---------------------------------------------- */
.bg-layer {
  position: fixed;
  inset: -8% 0 -8% 0;   /* réduit de -15% → -8% : moins de débord haut/bas */
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity, transform;
  transform: translate3d(0, 0, 0) scale(var(--bg-parallax-scale));
}

.bg-layer.active  { opacity: 1; }
.bg-layer.leaving { opacity: 0; transition: opacity 1.4s ease; }

.bg-hero  { background-image: url('../media/bg-hero.jpg?v=2.8'); }
.bg-st1   { background-image: url('../media/bg-station-1.jpg?v=2.8'); }
.bg-st2   { background-image: url('../media/bg-station-2.jpg?v=2.8'); }
.bg-st3   { background-image: url('../media/bg-station-3.jpg?v=2.8'); }
.bg-st4   { background-image: url('../media/bg-station-4.png?v=2.8'); background-position: center 75%;}
.bg-about { background-image: url('../media/bg-about.jpg?v=2.8'); }

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,var(--overlay-strength));
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* --- SCROLL PROGRESS BAR -------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--accent), var(--accent-glow));
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(106, 176, 122, 0.55);
  pointer-events: none;
}

/* --- NAV ------------------------------------------------------------------ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 44px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  transition: padding 0.3s, background 0.3s;
  gap: 16px;
}

nav.scrolled {
  background: rgba(8,8,8,0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  padding: 14px 44px;
  border-bottom: 1px solid var(--border-soft);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 5px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: nav-pulse 1.8s infinite;
}

@keyframes nav-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.nav-stations {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 22px;
  border-left: 1px solid #1c1c1c;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-pages {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-station-link,
.nav-page-link {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
  font-weight: 700;
}

.nav-station-link::after,
.nav-page-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-station-link:hover,
.nav-page-link:hover { color: var(--cream); }

.nav-station-link:hover::after,
.nav-page-link:hover::after,
.nav-station-link.current::after,
.nav-page-link.current::after { transform: scaleX(1); }

.nav-station-link.current,
.nav-page-link.current { color: var(--cream); }

.nav-burger {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(8,8,8,0.97);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  display: none;
  flex-direction: column;
  padding: 10px 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 14px 24px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-soft);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--cream); background: rgba(45,90,61,0.08); }

/* --- SECTION INDICATOR ---------------------------------------------------- */
.section-indicator {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 8px;
  background: rgba(8, 8, 8, 0.35);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.ind-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(232, 224, 208, 0.4);
  padding: 0;
  transition: all 0.35s var(--ease-out-soft);
  cursor: pointer;
}

.ind-dot:hover {
  border-color: var(--accent-light);
  transform: scale(1.2);
}

.ind-dot.active {
  background: var(--accent);
  border-color: var(--accent-glow);
  transform: scale(1.35);
  box-shadow: 0 0 12px rgba(106, 176, 122, 0.55);
}

/* --- SECTIONS ------------------------------------------------------------- */
.page-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

/* --- HERO ----------------------------------------------------------------- */
.hero-section {
  align-items: center;
  justify-content: center;
  padding: 0 44px;
  text-align: center;
}

.hero-content {
  margin-top: -38px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 10vw, 168px);
  line-height: 1;
  letter-spacing: clamp(4px, 1.2vw, 16px);
  color: var(--cream);
  text-shadow: 0 4px 60px rgba(0,0,0,0.95), 0 0 120px rgba(0,0,0,0.85);
  opacity: 0;
  animation: fadeUp 1.1s 0.5s forwards;
  white-space: nowrap;
}

.hero-title .accent { color: var(--accent-light); }

.hero-subtitle {
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: 4px;
  color: #bbb;
  margin-top: 28px;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
  max-width: 1100px;
  line-height: 1.6;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--accent-light);
  margin: 24px auto 0;
  opacity: 0;
  animation: fadeIn 0.9s 1s forwards;
}

.scroll-cta {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
  transition: transform 0.3s;
  z-index: 12;
}

.scroll-cta:hover { transform: translateX(-50%) translateY(4px); }

.scroll-cta-text {
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--accent-light);
  text-transform: uppercase;
  font-weight: 700;
}

.scroll-arrow {
  width: 22px;
  height: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: arrow-bounce 2.4s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 18px; height: 18px;
  stroke: var(--accent-light);
  stroke-width: 1.5;
  fill: none;
}

/* --- STATION SECTION ------------------------------------------------------ */
.station-section {
  padding: calc(var(--nav-height) + 24px) 44px 60px;
}

.station-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  align-items: center;
}

.station-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(0, 1.05fr);
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

/* ==========================================================================
   REVEAL SYSTEM — bidirectional, desktop + mobile
   All three columns start hidden (opacity:0 + translated).
   JS adds .in-view to reveal them, removes it when section leaves
   the viewport so the effect replays next time the section enters.
   ========================================================================== */

/* --- Hidden state (default) — desktop horizontal slide --- */
.station-section .player-col,
.station-section .vinyl-col,
.station-section .tracklist-col {
  opacity: 0;
  will-change: opacity, transform;
  transition:
    opacity var(--reveal-duration) var(--ease-out-soft),
    transform var(--reveal-duration) var(--ease-out-soft);
}

.station-section .player-col    { transform: translateX(-56px); }
.station-section .vinyl-col     { transform: translateY(44px); transition-delay: var(--reveal-delay-vinyl); }
.station-section .tracklist-col { transform: translateX(56px);  transition-delay: var(--reveal-delay-tracklist); }

/* --- Revealed state --- */
.station-section.in-view .player-col,
.station-section.in-view .vinyl-col,
.station-section.in-view .tracklist-col {
  opacity: 1;
  transform: none;
}

/* Panel scale: keep scale() in sync with translateX().
   When not in-view: translate + scale. When in-view: only scale. */
.station-section .player-col.panel    { transform: translateX(-56px) scale(var(--panel-scale)); }
.station-section .tracklist-col.panel { transform: translateX(56px)  scale(var(--panel-scale)); }

.station-section.in-view .player-col.panel,
.station-section.in-view .tracklist-col.panel {
  transform: scale(var(--panel-scale));
}

/* About section reveal */
.about-section .about-content {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease-out-soft), transform 0.85s var(--ease-out-soft);
}

.about-section.in-view .about-content {
  opacity: 1;
  transform: none;
}

/* --- INTERACTIVE SURFACE ------------------------------------------------- */
.interactive-surface { cursor: pointer; }

/* --- PANEL BASE ---------------------------------------------------------- */
.panel {
  background: rgba(8, 8, 8, 0.0);
  border: 1px solid rgba(30, 30, 30, 0);
  -webkit-backdrop-filter: blur(0px);
          backdrop-filter: blur(0px);
  padding: 28px 28px;
  border-radius: 2px;
  transition:
    background 0.4s ease,
    border-color 0.4s ease,
    -webkit-backdrop-filter 0.4s ease,
    backdrop-filter 0.4s ease;
  transform: scale(var(--panel-scale));
  transform-origin: center;
  position: relative;
}

.panel:hover {
  background: rgba(8, 8, 8, 0.95);
  border-color: var(--border-soft);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

/* --- PLAYER COLUMN -------------------------------------------------------- */
.player-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 5.5vw, 80px);
  line-height: 0.85;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 8px;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.player-num.active {
  color: var(--accent-light);
  text-shadow: 0 0 18px rgba(106, 176, 122, 0.4);
}

/* --- ACTIVE BAR ---------------------------------------------------------- */
.player-active-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.4s ease;
  border-radius: 0 0 2px 2px;
}

.player-active-bar.on {
  background: linear-gradient(to right, var(--accent), var(--accent-glow));
}

/* --- LIVE BADGE + EQ BARS ------------------------------------------------- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #666;
  font-size: 8px;
  letter-spacing: 3px;
  padding: 4px 10px;
  text-transform: uppercase;
  font-weight: 700;
  width: fit-content;
  transition: all 0.3s;
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
}

.live-badge.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--cream);
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #555;
  transition: background 0.3s;
}

.live-badge.on .live-dot {
  background: var(--accent-glow);
  animation: live-pulse 1.5s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.live-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.live-badge.on .live-eq { opacity: 1; }

.live-eq span {
  display: block;
  width: 2px;
  height: 3px;
  background: var(--cream);
  border-radius: 1px;
  transform-origin: bottom;
  animation: eq-jump 0.85s ease-in-out infinite;
  animation-play-state: paused;
}

.live-badge.on .live-eq span { animation-play-state: running; }

.live-eq span:nth-child(1) { animation-delay: 0s;    animation-duration: 0.7s; }
.live-eq span:nth-child(2) { animation-delay: 0.15s; animation-duration: 0.95s; }
.live-eq span:nth-child(3) { animation-delay: 0.3s;  animation-duration: 0.8s; }
.live-eq span:nth-child(4) { animation-delay: 0.45s; animation-duration: 1.05s; }

@keyframes eq-jump {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(2.7); }
}

/* --- PLAYER TEXT ---------------------------------------------------------- */
.player-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: 2.5px;
  color: var(--cream);
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85);
  margin-bottom: 4px;
}

.player-genres {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #ccc;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.5;
}

.np-block { margin-bottom: 8px; }

.np-label {
  font-size: 7px;
  letter-spacing: 3px;
  color: var(--accent-light);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
}

.np-track, .np-artist { transition: opacity 0.35s ease; }

.np-track {
  font-size: 15px;
  color: var(--cream);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 3px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.np-track.changing, .np-artist.changing { opacity: 0; }

.np-artist {
  font-size: 12px;
  color: #ccc;
  font-style: italic;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.prog-wrap {
  height: 2px;
  background: rgba(255,255,255,0.10);
  margin-top: 14px;
  position: relative;
  border-radius: 1px;
  overflow: hidden;
}

.prog-bar {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-light);
  transition: width 1s linear;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #aaa;
  margin-top: 5px;
}

/* CONTROLS */
.controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.btn-play {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.btn-play:hover { background: var(--accent-light); transform: scale(1.05); }
.btn-play:active { transform: scale(0.95); }

.btn-play svg { fill: var(--cream); width: 12px; height: 12px; }

.btn-play .ic-play  { margin-left: 2px; display: block; }
.btn-play .ic-pause { display: none; }
.btn-play .ic-loading {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(232,224,208,0.3);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-play.playing .ic-play  { display: none; }
.btn-play.playing .ic-pause { display: block; }
.btn-play.playing .ic-loading { display: none; }
.btn-play.loading .ic-play  { display: none; }
.btn-play.loading .ic-pause { display: none; }
.btn-play.loading .ic-loading { display: block; }
.btn-play.loading { pointer-events: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.vol-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vol-icon { width: 14px; height: 14px; color: #bbb; flex-shrink: 0; }

.vol-slider {
  flex: 1;
  height: 20px;
  position: relative;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.vol-slider:focus-visible .vol-thumb {
  box-shadow: 0 0 0 3px rgba(74,140,98,0.4);
}

.vol-track-bg {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
}

.vol-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: var(--accent-light);
  border-radius: 1px;
  width: 70%;
}

.vol-thumb {
  position: absolute;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--cream);
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s;
}

.vol-slider:hover .vol-thumb,
.vol-slider:active .vol-thumb { transform: translate(-50%, -50%) scale(1.25); }

/* --- SWITCH BAR with PILL ------------------------------------------------- */
.switch-label {
  font-size: 8px;
  letter-spacing: 3px;
  color: #888;
  text-transform: uppercase;
  margin-top: 22px;
  margin-bottom: 6px;
  font-weight: 700;
}

.switch-bar {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 2px;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  overflow: hidden;
}

.switch-bar .switch-pill {
  position: absolute;
  top: 4px; left: 0;
  height: calc(100% - 8px);
  background: var(--accent);
  border-radius: 2px;
  z-index: 1;
  pointer-events: none;
  transition:
    transform 0.45s var(--ease-out-back),
    width 0.45s var(--ease-out-back),
    opacity 0.25s ease;
  opacity: 0;
}

.switch-bar .switch-pill.ready { opacity: 1; }

.switch-btn {
  flex: 1;
  padding: 8px 4px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  text-align: center;
  background: transparent;
  color: #aaa;
  border: none;
  transition: color 0.25s ease;
  position: relative;
  z-index: 2;
}

.switch-btn:hover  { color: var(--cream); }
.switch-btn.current { background: transparent; color: var(--cream); }

/* --- VINYL COLUMN --------------------------------------------------------- */
.vinyl-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-wrap {
  width: 100%;
  max-width: 374px;
  aspect-ratio: 1 / 1;
  position: relative;
  cursor: pointer;
}

/* Rotation driven by JS rAF — no CSS animation */
.vinyl-svg {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transform: rotate(0deg);
  will-change: transform;
}

.vinyl-body {
  fill: rgba(0, 0, 0, 0.52);
  stroke: rgba(0,0,0,0.25);
  stroke-width: 0.5;
}

.vinyl-grooves circle { fill: none; stroke: rgba(255,255,255,0.05); stroke-width: 0.3; }
.vinyl-groove-strong  { fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 0.5; }
.vinyl-label  { fill: var(--accent); }
.vinyl-art    { pointer-events: none; }
.vinyl-hole   { fill: var(--dark); }

.vinyl-wrap:hover .vinyl-svg {
  filter: drop-shadow(0 0 18px rgba(106, 176, 122, 0.18));
  transition: filter 0.3s ease;
}

/* --- TRACKLIST COLUMN ----------------------------------------------------- */
.tracklist-col {
  align-self: stretch;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--accent);
}

.tl-header {
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--accent-light);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-shrink: 0;
}

.tl-header-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cream);
  letter-spacing: 2px;
  line-height: 1;
}

.tl-table {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.tl-table::-webkit-scrollbar { width: 4px; }
.tl-table::-webkit-scrollbar-track { background: transparent; }
.tl-table::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.tl-empty {
  font-size: 10px;
  color: #999;
  letter-spacing: 1.5px;
  padding: 30px 0;
  text-align: center;
}

.track-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #111;
  align-items: center;
  animation: track-row-in 0.45s var(--ease-out-soft) backwards;
}

.track-row:nth-child(1) { animation-delay: 0.00s; }
.track-row:nth-child(2) { animation-delay: 0.04s; }
.track-row:nth-child(3) { animation-delay: 0.08s; }
.track-row:nth-child(4) { animation-delay: 0.12s; }
.track-row:nth-child(5) { animation-delay: 0.16s; }
.track-row:nth-child(6) { animation-delay: 0.20s; }
.track-row:nth-child(7) { animation-delay: 0.24s; }
.track-row:nth-child(8) { animation-delay: 0.28s; }
.track-row:nth-child(9) { animation-delay: 0.32s; }
.track-row:nth-child(10){ animation-delay: 0.36s; }

@keyframes track-row-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.track-row:last-child { border-bottom: none; }

.track-idx { font-size: 9px; color: #777; text-align: right; font-weight: 700; }

.track-eq  { display: none; align-items: flex-end; gap: 2px; height: 14px; justify-content: center; }

.track-row.current .track-idx { display: none; }
.track-row.current .track-eq  { display: flex; }

.eq-bar {
  width: 3px;
  background: var(--accent-light);
  border-radius: 1px 1px 0 0;
  animation: eq-bounce 0.6s infinite alternate;
}

.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.1s; }

@keyframes eq-bounce {
  from { height: 4px; }
  to   { height: 14px; }
}

.track-info { overflow: hidden; }

.track-title {
  font-size: 11px;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.track-row.current .track-title { color: var(--cream); font-weight: 700; }

.track-artist {
  font-size: 9px;
  color: #888;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.track-row.current .track-artist { color: var(--accent-light); }
.track-dur { font-size: 9px; color: #888; }

/* --- ABOUT ---------------------------------------------------------------- */
.about-section { padding: 100px 44px; justify-content: center; }

.about-inner { max-width: 900px; margin: 0 auto; width: 100%; }

.about-content {
  background: rgba(8, 8, 8, 0.7);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  padding: 40px 36px;
}

.about-eyebrow {
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--accent-light);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 5px;
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(0,0,0,0.85);
  line-height: 1;
  margin-bottom: 18px;
}

.about-text { font-size: 13px; color: #aaa; line-height: 1.8; }

/* --- ANIMATIONS ----------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* --- MOBILE COLLAPSIBLE TRACKLIST ---------------------------------------- */
.mobile-tl-toggle {
  display: none;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: var(--accent-light);
  padding: 14px 16px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  width: 100%;
  margin-top: 18px;
  justify-content: space-between;
  align-items: center;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

.mobile-tl-toggle .toggle-icon { font-size: 18px; transition: transform 0.3s; }
.mobile-tl-toggle.open .toggle-icon { transform: rotate(45deg); }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1280px) {
  :root { --panel-scale: 1.08; }
  .station-grid { gap: 18px; }
  .vinyl-wrap { max-width: 320px; }
}

@media (max-width: 1024px) {
  :root { --panel-scale: 1.0; }

  .station-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    row-gap: 32px;
  }

  .vinyl-col { grid-column: 1 / -1; order: -1; }
  .vinyl-wrap { max-width: 280px; margin: 0 auto; }

  /* On tablet panels are always semi-visible (backdrop applied via .panel base) */
  .panel {
    background: rgba(8, 8, 8, 0.7);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
  }

  .tracklist-col { max-height: 420px; }
  .nav-stations  { display: none; }

  /* Tablet reveal: all from below */
  .station-section .player-col,
  .station-section .tracklist-col      { transform: translateY(32px); }
  .station-section .player-col.panel   { transform: translateY(32px) scale(var(--panel-scale)); }
  .station-section .tracklist-col.panel{ transform: translateY(32px) scale(var(--panel-scale)); }

  .station-section.in-view .player-col.panel,
  .station-section.in-view .tracklist-col.panel { transform: scale(var(--panel-scale)); }
}

/* ==========================================================================
   MOBILE — ≤ 720px
   ========================================================================== */

/* Mini-player + fade hidden on desktop */
.mini-player { display: none; }
.mini-fade   { display: none; }

@media (max-width: 720px) {
  html { scroll-snap-type: none; }

  nav { padding: 14px 18px; }
  nav.scrolled { padding: 12px 18px; }

  .nav-left { gap: 0; }
  .nav-stations, .nav-pages { display: none; }
  .nav-burger { display: flex; }
  .section-indicator { display: none; }

  .hero-section { padding: 0 18px; }
  .hero-content { margin-top: -24px; }
  .hero-title   { font-size: clamp(34px, 13vw, 80px); letter-spacing: clamp(2px, 0.6vw, 6px); }
  .hero-subtitle { font-size: 9px; letter-spacing: 2.5px; margin-top: 18px; line-height: 1.7; }

  .station-section { padding: calc(var(--nav-height) + 16px) 18px 64px; }
  .station-inner { align-items: flex-start; padding-top: 14px; }

  .station-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .player-col    { order: 1; }
  .vinyl-col     { order: 2; }
  .tracklist-col { order: 4; }

  .player-num    { font-size: 48px; }
  .player-title  { font-size: 22px; }
  .player-genres { font-size: 9px; line-height: 1.6; }
  .vinyl-wrap    { max-width: 200px; }

  /* Hide volume, progress, switch on mobile */
  .vol-wrap       { display: none !important; }
  .prog-wrap      { display: none !important; }
  .time-row       { display: none !important; }
  .switch-label   { display: none !important; }
  .switch-bar     { display: none !important; }

  /* Live badge position for mobile padding */
  .live-badge { top: 20px; right: 18px; font-size: 7px; padding: 3px 8px; }

  /* Disable parallax on mobile */
  .bg-layer {
    transform: none !important;
    will-change: auto;
  }

  /* Panels glassmorphism */
  .panel {
    background: rgba(6, 6, 6, 0.72);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 20px 18px;
    transform: none;
  }

  .panel:hover {
    background: rgba(6, 6, 6, 0.72);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
  }

  /* Mobile reveal */
  .station-section .player-col,
  .station-section .player-col.panel {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity var(--reveal-duration) var(--ease-out-soft), transform var(--reveal-duration) var(--ease-out-soft);
    transition-delay: 0s;
  }

  .station-section .vinyl-col {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity var(--reveal-duration) var(--ease-out-soft), transform var(--reveal-duration) var(--ease-out-soft);
    transition-delay: var(--reveal-delay-vinyl);
  }

  .station-section .tracklist-col {
    opacity: 0;
    transform: none;
    transition: opacity var(--reveal-duration) var(--ease-out-soft), max-height 0.4s ease, padding 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    transition-delay: var(--reveal-delay-tracklist);
  }

  .station-section.in-view .player-col,
  .station-section.in-view .player-col.panel,
  .station-section.in-view .vinyl-col,
  .station-section.in-view .tracklist-col {
    opacity: 1;
    transform: none;
  }

  .tracklist-col {
    max-height: 0; overflow: hidden;
    border: 1px solid transparent; border-left: 2px solid transparent;
    background: rgba(8,8,8,0);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    padding: 0 18px;
  }

  .tracklist-col.open {
    max-height: 380px; padding: 18px;
    border-color: var(--border-soft); border-left-color: var(--accent);
    background: rgba(8,8,8,0.85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }

  .mobile-tl-toggle { display: flex; order: 3; }

  /* Gradient fade above mini-player */
  .mini-fade {
    display: block;
    position: fixed; bottom: 44px; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(6,6,6,0.85) 0%, transparent 100%);
    z-index: 89; pointer-events: none;
  }

  /* Mini-player */
  .mini-player {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 44px;
    background: rgba(5,5,5,0.97);
    border-top: 1px solid rgba(45,90,61,0.5);
    z-index: 90;
    align-items: center;
    padding: 0 10px; gap: 4px;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }

  .mini-prog {
    position: absolute; top: 0; left: 0;
    height: 1.5px; width: 0%;
    background: linear-gradient(to right, var(--accent), var(--accent-glow));
    border-radius: 0 1px 1px 0;
    transition: width 1s linear; z-index: 1;
  }

  .mini-switches { display: flex; flex: 1; gap: 3px; }

  .mini-sw {
    flex: 1; text-align: center;
    font-family: var(--font-display);
    font-size: 14px; letter-spacing: 1.5px;
    padding: 6px 0; color: #444;
    cursor: pointer; border: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.25s ease;
  }

  .mini-sw.current {
    background: var(--accent); color: var(--cream); border-color: var(--accent);
  }

  .mini-sw:active:not(.current) { color: #aaa; background: rgba(255,255,255,0.07); }

  .mini-play {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); border: none;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }

  .mini-play:active { transform: scale(0.9); }
  .mini-play.playing { background: var(--accent-light); }
  .mini-play svg { fill: var(--cream); width: 10px; height: 10px; }
  .mini-play .mini-ic-play  { display: block; margin-left: 1px; }
  .mini-play .mini-ic-pause { display: none; }
  .mini-play.playing .mini-ic-play  { display: none; }
  .mini-play.playing .mini-ic-pause { display: block; }

  .about-section { padding: 80px 18px 100px; }
  .about-content { padding: 28px 22px; }
}

@media (max-width: 380px) {
  .player-num   { font-size: 42px; }
  .player-title { font-size: 19px; }
  .switch-btn   { font-size: 12px; }
  .hero-title   { letter-spacing: 2px; }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .station-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vinyl-col    { grid-column: 1 / -1; order: -1; }
  .tracklist-col{ grid-column: 1 / -1; }
}

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

  html { scroll-snap-type: none; }

  .bg-layer { transform: scale(1.04) !important; }

  /* Instant reveal — no motion */
  .station-section .player-col,
  .station-section .vinyl-col,
  .station-section .tracklist-col,
  .about-section .about-content {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
