/* ============================================================
   LIVE IN THE X LOUNGE — Dark Studio Aesthetic
   ============================================================ */

:root {
  --bg-deep:      #0A0A0B;
  --bg-surface:   #111113;
  --bg-card:      #18181B;
  --bg-hover:     #1F1F23;

  --amber:        #D4A847;
  --amber-dim:    #8B7230;
  --amber-glow:   rgba(212, 168, 71, 0.15);

  --red-air:      #C0392B;
  --red-glow:     rgba(192, 57, 43, 0.4);
  --red-soft:     rgba(192, 57, 43, 0.08);

  --text-primary: #E8E0D0;
  --text-secondary: #9B9488;
  --text-dim:     #5A564F;
  --text-bright:  #F5F0E8;

  --border:       rgba(212, 168, 71, 0.08);
  --border-hover: rgba(212, 168, 71, 0.2);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Crimson Pro', 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --player-height: 90px;
  --sidebar-width: 160px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--amber);
  color: var(--bg-deep);
}

/* ---- Film Grain Overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---- Ambient Glow ---- */
.ambient-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  transition: opacity 1.5s ease;
}

.ambient-glow.playing {
  opacity: 0.7;
}

/* ---- ON AIR Beacon ---- */
.on-air-beacon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  transition: color 0.5s ease;
}

.on-air-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

.on-air-beacon.active {
  color: var(--red-air);
}

.on-air-beacon.active .on-air-dot {
  background: var(--red-air);
  box-shadow: 0 0 12px var(--red-glow), 0 0 30px var(--red-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 12px var(--red-glow), 0 0 30px var(--red-glow); }
  50% { box-shadow: 0 0 20px var(--red-glow), 0 0 50px var(--red-glow), 0 0 80px rgba(192,57,43,0.15); }
}

/* ---- Stagger fade-in animation ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }


/* ============================================================
   LANDING PAGE
   ============================================================ */

/* ---- Header ---- */
.site-header {
  position: relative;
  z-index: 1;
  padding: 120px 40px 80px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.station-id {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--amber-dim);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.station-id .x-mark {
  font-size: 18px;
  font-weight: 700;
  color: var(--amber);
}

.site-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text-bright);
  margin-bottom: 20px;
}

.title-live {
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

.title-in {
  font-weight: 400;
  font-size: 0.45em;
  color: var(--text-dim);
  display: block;
  letter-spacing: 6px;
  text-transform: lowercase;
  margin: 4px 0;
}

.title-x {
  color: var(--amber);
  display: inline;
  position: relative;
}

.title-x::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--amber);
  opacity: 0.3;
}

.title-lounge {
  letter-spacing: 8px;
  text-transform: uppercase;
  font-size: 0.55em;
  display: block;
  margin-top: 4px;
}

.site-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.station-id    { animation: fadeUp 0.8s ease both; animation-delay: 0.1s; }
.site-title    { animation: fadeUp 0.8s ease both; animation-delay: 0.25s; }
.site-subtitle { animation: fadeUp 0.8s ease both; animation-delay: 0.4s; }

/* ---- Listen CTA ---- */
.listen-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 16px 36px;
  background: transparent;
  border: 1.5px solid var(--amber-dim);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.35s ease;
  animation: fadeUp 0.8s ease both;
  animation-delay: 0.55s;
}

.listen-cta:hover {
  background: var(--amber);
  color: var(--bg-deep);
  border-color: var(--amber);
  box-shadow: 0 0 30px var(--amber-glow), 0 0 60px rgba(212, 168, 71, 0.1);
}

.listen-cta:hover .cta-icon {
  transform: scale(1.15);
}

.cta-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

/* ---- About Section ---- */
.about-section {
  position: relative;
  z-index: 1;
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 60px;
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.about-lead {
  font-size: 18px !important;
  color: var(--text-primary) !important;
  line-height: 1.7 !important;
}

.about-text strong {
  color: var(--text-bright);
  font-weight: 400;
}

.about-text em {
  color: var(--amber-dim);
  font-style: italic;
}

.about-coda {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px !important;
  color: var(--text-primary) !important;
  margin-top: 28px !important;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 60px;
}

.stat {
  text-align: right;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--amber);
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- Volume Cards Section ---- */
.volumes-section {
  position: relative;
  z-index: 1;
  padding: 80px 40px 100px;
}

.volumes-inner {
  max-width: 900px;
  margin: 0 auto;
}

.volumes-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 36px;
  letter-spacing: 1px;
}

.volume-grid {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.volume-card {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  animation: fadeUp 0.5s ease both;
}

.volume-card:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.volume-card:hover .vc-play {
  opacity: 1;
  color: var(--amber);
}

.volume-card:hover .vc-numeral {
  color: var(--amber);
}

.vc-numeral {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.vc-details {
  min-width: 0;
}

.vc-year {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.vc-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

.vc-artists {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-play {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  opacity: 0.3;
  transition: all 0.25s ease;
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 40px 80px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.site-footer strong {
  color: var(--text-secondary);
  font-weight: 400;
}

.footer-credits {
  font-family: var(--font-mono);
  font-size: 10px !important;
  letter-spacing: 1px;
}

.footer-station {
  font-family: var(--font-mono);
  font-size: 10px !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber-dim) !important;
  margin-top: 16px !important;
}


/* ============================================================
   PLAYER PAGE
   ============================================================ */

.player-page {
  padding-bottom: var(--player-height);
}

/* ---- Top Bar ---- */
.player-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--amber);
}

/* ---- Session Status (player top bar) ---- */
.session-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.ss-name {
  color: var(--text-secondary);
}

.ss-divider {
  color: var(--text-dim);
  opacity: 0.5;
}

.ss-detail {
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 0.5px;
}

.ss-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ss-expiration {
  background: rgba(212, 168, 71, 0.1);
  color: var(--amber-dim);
  border: 1px solid rgba(212, 168, 71, 0.15);
}

.ss-uses {
  background: rgba(212, 168, 71, 0.1);
  color: var(--amber-dim);
  border: 1px solid rgba(212, 168, 71, 0.15);
}

.ss-active {
  background: rgba(46, 204, 113, 0.1);
  color: rgba(46, 204, 113, 0.7);
  border: 1px solid rgba(46, 204, 113, 0.15);
}

.ss-expired {
  background: var(--red-soft);
  color: var(--red-air);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

/* ---- Session Bar (landing page) ---- */
.session-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.session-bar + .site-header {
  padding-top: 36px;
}

/* ---- Player Layout ---- */
.player-layout {
  min-height: calc(100vh - var(--player-height));
  padding-top: 52px;
  margin-left: var(--sidebar-width);
  display: grid;
  grid-template-columns: minmax(0, 800px) 1fr;
}

/* ---- Sidebar ---- */
.volume-sidebar {
  position: fixed;
  top: 52px;
  left: 0;
  bottom: var(--player-height);
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.sidebar-brand {
  padding: 28px 20px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.sb-x {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--amber);
  line-height: 1;
}

.sb-lounge {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.sidebar-volumes {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  overflow-y: auto;
}

.sv-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.sv-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 0 2px 2px 0;
}

.sv-btn:hover {
  background: var(--bg-hover);
}

.sv-btn.active {
  background: var(--bg-hover);
}

.sv-btn.active::before {
  opacity: 1;
}

.sv-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.sv-btn.active .sv-num {
  color: var(--amber);
}

.sv-btn:hover .sv-num {
  color: var(--text-secondary);
}

.sv-year {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.sv-btn.active .sv-year {
  color: var(--text-secondary);
}

/* ---- Main / Tracklist Area ---- */
.player-main {
  padding: 36px 48px 40px;
  min-width: 0;
}

.album-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.album-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-bright);
}

.album-year {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--amber-dim);
  letter-spacing: 2px;
}

/* ---- Tracklist ---- */
.tracklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  padding: 14px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.track-row:hover {
  background: var(--bg-hover);
}

.track-row.playing {
  background: var(--bg-hover);
}

.track-row.playing::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0 12px var(--amber-glow);
}

.track-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  text-align: center;
}

.track-row.playing .track-number {
  color: var(--amber);
}

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

.track-row.playing .track-number-text { display: none; }
.track-row.playing .track-eq { display: flex; }

.track-eq span {
  display: block;
  width: 3px;
  background: var(--amber);
  border-radius: 1px;
  animation: eq-bar 0.8s ease-in-out infinite alternate;
}

.track-eq span:nth-child(1) { height: 6px; animation-delay: 0s; }
.track-eq span:nth-child(2) { height: 10px; animation-delay: 0.15s; }
.track-eq span:nth-child(3) { height: 4px; animation-delay: 0.3s; }

@keyframes eq-bar {
  0%   { height: 4px; }
  100% { height: 14px; }
}

.track-info {
  min-width: 0;
}

.track-artist {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-row.playing .track-artist {
  color: var(--text-bright);
}

.track-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.track-row.playing .track-name {
  color: var(--amber-dim);
}

.track-duration {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 300;
  color: var(--text-dim);
  padding-left: 16px;
}

/* ---- Now Playing Info Panel ---- */
.now-playing-panel {
  display: none;
  position: sticky;
  top: 52px;
  height: calc(100vh - var(--player-height) - 52px);
  width: 100%;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid var(--border);
}

@media (min-width: 1200px) {
  .now-playing-panel {
    display: block;
  }
}

.npp-inner {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  padding-top: 24px;
}

.npp-inner.npp-visible {
  opacity: 1;
  transform: translateY(0);
}

.npp-image-wrap {
  width: 100%;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--bg-deep);
  margin-bottom: 12px;
  position: relative;
}

/* Visualizer bars */
.npp-visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  display: none;
  z-index: 1;
  background: #0A0A0B;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
}

.npp-visualizer.active {
  display: flex;
}

.npp-viz-bar {
  flex: 1;
  min-width: 0;
  max-width: 12px;
  border-radius: 2px 2px 0 0;
  height: 2px;
  transition: height 0.09s ease-out, background 0.15s ease;
  will-change: height;
}

.npp-viz-bar.reflection {
  border-radius: 0 0 2px 2px;
  align-self: flex-start;
  opacity: 0.15;
  transition: height 0.09s ease-out, background 0.15s ease;
}

/* Theme picker */
.npp-viz-themes {
  display: none;
  gap: 6px;
  justify-content: center;
  margin-bottom: 10px;
}

.npp-viz-themes.active {
  display: flex;
}

.viz-theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.viz-theme-btn:hover {
  border-color: var(--text-dim);
  transform: scale(1.1);
}

.viz-theme-btn.active {
  border-color: var(--amber);
}

.viz-theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
}

.npp-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(40%) sepia(10%) contrast(1.05);
  transition: filter 0.6s ease, box-shadow 0.6s ease;
  display: none;
}

.npp-image.loaded {
  display: block;
}

.npp-image-wrap:hover .npp-image {
  filter: grayscale(0%) sepia(0%) contrast(1);
}

.npp-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.npp-initials {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--amber-dim);
  opacity: 0.5;
}

.npp-details {
  margin-bottom: 10px;
  padding: 0 20px;
}

.npp-artist {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 8px;
  line-height: 1.2;
}

.npp-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.npp-origin,
.npp-years {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.npp-genre {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber-dim);
  border: 1px solid var(--amber-dim);
  border-radius: 2px;
  padding: 2px 8px;
  align-self: flex-start;
}

.npp-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

.npp-track-context {
  padding: 10px 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.npp-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.npp-track-name {
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--text-primary);
}

.npp-volume-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
}

/* Idle state */
.npp-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60%;
  text-align: center;
  gap: 4px;
}

.npp-idle-x {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  color: var(--amber-dim);
  opacity: 0.3;
  line-height: 1;
}

.npp-idle-lounge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.4;
  margin-bottom: 20px;
}

.npp-idle-prompt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.3;
}

/* ---- Player Bar ---- */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: rgba(17, 17, 19, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 200;
  display: flex;
  align-items: center;
}

.player-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 280px auto 1fr 120px;
  align-items: center;
  gap: 24px;
}

.player-now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.player-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.player-vu-meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.player-vu-meter.active {
  opacity: 1;
}

.player-vu-meter span {
  display: block;
  width: 2px;
  height: 2px;
  background: var(--amber-dim);
  border-radius: 1px;
  transition: height 0.15s ease;
}

.player-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.player-artist {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-separator {
  color: var(--text-dim);
  font-size: 10px;
  flex-shrink: 0;
}

.player-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,0.05);
}

.ctrl-play {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--amber-dim);
  color: var(--amber);
}

.ctrl-play:hover {
  border-color: var(--amber);
  background: rgba(212, 168, 71, 0.1);
  color: var(--amber);
}

/* Progress */
.player-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  color: var(--text-dim);
  min-width: 36px;
  text-align: center;
}

.player-progress {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.player-progress:hover {
  height: 6px;
}

.player-progress-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 2px;
  width: 0%;
  position: relative;
  transition: none;
}

.player-progress-knob {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  background: var(--amber);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 0 8px var(--amber-glow);
}

.player-progress:hover .player-progress-knob {
  opacity: 1;
}

/* Volume */
.player-volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.player-volume {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.player-volume-fill {
  height: 100%;
  width: 80%;
  background: var(--text-dim);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.player-volume:hover .player-volume-fill {
  background: var(--text-secondary);
}


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

@media (max-width: 900px) {
  /* Landing */
  .site-header { padding: 80px 24px 60px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { flex-direction: row; flex-wrap: wrap; gap: 24px; padding-top: 0; }
  .stat { text-align: center; flex: 1; min-width: 100px; }
  .volume-card { grid-template-columns: 60px 1fr 32px; padding: 16px 20px; }
  .vc-numeral { font-size: 22px; }

  /* Player */
  .volume-sidebar { width: 120px; }
  .player-layout { margin-left: 120px; grid-template-columns: 1fr; }
  .player-main { padding: 28px 24px 40px; }
}

@media (max-width: 640px) {
  /* Session status: hide name, keep badge compact */
  .ss-name { display: none; }
  .session-bar { height: 30px; }
  .session-bar + .site-header { padding-top: 30px; }

  /* Landing */
  .about-section { padding: 48px 20px; }
  .about-text h2 { font-size: 22px; }
  .about-text p { font-size: 14px; }
  .about-lead { font-size: 15px !important; }
  .volumes-section { padding: 48px 20px 80px; }
  .volume-card { grid-template-columns: 50px 1fr 28px; padding: 14px 16px; }
  .vc-numeral { font-size: 18px; }
  .vc-artists { display: none; }

  /* Player: sidebar becomes horizontal top strip */
  .player-layout {
    margin-left: 0;
    padding-top: 52px;
    grid-template-columns: 1fr;
  }

  .volume-sidebar {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
    z-index: 50;
  }

  .sidebar-brand { display: none; }

  .sidebar-volumes {
    flex-direction: row;
    padding: 0;
    overflow-x: auto;
  }

  .sv-btn {
    flex-direction: column;
    padding: 12px 16px;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  .sv-btn::before {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 3px;
    border-radius: 2px 2px 0 0;
  }

  .sv-num { font-size: 16px; }
  .sv-year { font-size: 9px; }

  .player-main {
    padding: 24px 16px 40px;
    margin-top: 58px;
  }

  .track-row { grid-template-columns: 36px 1fr auto; padding: 12px 10px; }

  /* Player bar */
  .player-inner {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    padding: 0 16px;
  }

  .player-track-info { grid-column: 1; grid-row: 1; }
  .player-controls { grid-column: 2; grid-row: 1; }
  .player-progress-wrap { grid-column: 1 / -1; grid-row: 2; }
  .player-volume-wrap { display: none; }
  .player-bar { height: auto; padding: 10px 0; }
  .player-page { padding-bottom: 100px; }
  .player-now-playing { display: none; }
}

/* ============================================================
   ACCESS GATE PAGE
   ============================================================ */

.access-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.access-gate {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  text-align: center;
}

/* Brand header - reuses existing station-id and title styles */
.access-brand {
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease both;
}

.access-brand .site-title,
.access-brand .access-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.1;
  margin-top: 12px;
}

.access-brand .station-id {
  justify-content: center;
  margin-bottom: 8px;
}

/* Card container */
.access-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px 36px;
  animation: fadeUp 0.6s ease 0.1s both;
}

/* Private Session beacon */
.access-beacon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.access-beacon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
  animation: beaconPulse 2s ease-in-out infinite;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(212, 168, 71, 0.4); }
  50% { opacity: 0.5; box-shadow: 0 0 4px rgba(212, 168, 71, 0.2); }
}

.access-prompt {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Form */
.access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-input-wrap {
  position: relative;
}

.access-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-bright);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 2px;
  text-align: center;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.access-input::placeholder {
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.access-input:focus {
  border-color: var(--amber-dim);
  box-shadow: 0 0 0 3px rgba(212, 168, 71, 0.08);
}

.access-input.access-input-error {
  border-color: var(--red-air);
  box-shadow: 0 0 0 3px var(--red-soft);
}

/* Submit button */
.access-btn {
  padding: 14px 24px;
  background: var(--amber);
  border: none;
  border-radius: 8px;
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.access-btn:hover:not(:disabled) {
  background: #e0b44f;
  transform: translateY(-1px);
}

.access-btn:active:not(:disabled) {
  transform: translateY(0);
}

.access-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.access-btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.access-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 10, 11, 0.3);
  border-top-color: var(--bg-deep);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* Error message */
.access-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--red-soft);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 8px;
  color: #e74c3c;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.access-error-shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

/* Tab navigation */
.access-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.access-tab {
  flex: 1;
  padding: 10px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.access-tab:hover {
  color: var(--text-secondary);
}

.access-tab.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* Mode switching */
.access-mode { display: none; }
.access-card[data-mode="token"] #modeToken { display: block; }
.access-card[data-mode="request"] #modeRequest { display: block; }
.access-card[data-mode="email"] #modeEmail { display: block; }

/* Two-column form row for first/last name */
.access-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Text-style inputs (request + email forms): left-aligned, body font */
.access-input-text {
  font-family: var(--font-body);
  text-align: left;
  letter-spacing: normal;
  font-size: 0.95rem;
}

.access-input-text::placeholder {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
}

/* Success modal overlay */
.access-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 10, 11, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.3s ease both;
}

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

.access-modal {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  padding: 36px 32px;
  text-align: center;
  animation: modalSlideUp 0.4s ease 0.1s both;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.access-modal-beacon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.access-modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 20px;
}

.access-modal-token {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  margin-bottom: 20px;
  background: rgba(212, 168, 71, 0.06);
  border: 1px solid rgba(212, 168, 71, 0.15);
  border-radius: 8px;
}

.access-modal-token-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.access-modal-token-code {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 4px;
}

.access-modal-body {
  margin-bottom: 24px;
}

.access-modal-body p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

.access-modal-body p:last-child {
  margin-bottom: 0;
}

.access-modal-body strong {
  color: var(--text-primary);
}

.access-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Footer text */
.access-footer {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  animation: fadeUp 0.6s ease 0.2s both;
}

/* Responsive */
@media (max-width: 480px) {
  .access-card {
    padding: 32px 20px 28px;
  }

  .access-brand .access-title {
    font-size: 1.6rem;
  }

  .access-input {
    font-size: 14px;
    padding: 12px 14px;
  }

  .access-form-row {
    grid-template-columns: 1fr;
  }

  .access-tab {
    font-size: 9px;
    letter-spacing: 0.5px;
    padding: 8px 4px;
  }

  .access-modal {
    padding: 28px 20px;
  }

  .access-modal-token-code {
    font-size: 1.3rem;
  }
}
