/* ═══════════════════════════════════════════════════════════════════
   ZANDA RECORDS THEME - Editorial Gold (Dark Mode)
   ═══════════════════════════════════════════════════════════════════
   Color palette: Z&A Records gold aesthetic
   Refined typography, dark backgrounds, editorial sophistication
   
    Load: base.css + zandarecords.css
═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@600;700&family=Outfit:wght@300;400&display=swap');

:root {
  /* ─────────────────────────────────────────────────
     COLOR PALETTE - ZANDA RECORDS OVERRIDES
  ───────────────────────────────────────────────── */

  /* Background layers - dark mode for radio */
  --zar-bg: #0a0a0f;
  --zar-bg-secondary: #12111a;
  --zar-bg-tertiary: #1a1828;

  /* Text colors - light cream on dark backgrounds */
  --zar-text: #f0ece4;
  --zar-text-muted: #8a8070;
  --zar-text-faint: #4a4540;

  /* Primary gold from Zanda Records */
  --zar-accent: #d4a853;
  --zar-accent-dark: #b8923f;
  --zar-accent-light: #e8c876;
  --zar-accent-glow: rgba(212, 168, 83, 0.1);

  /* Secondary brown/bronze */
  --zar-secondary: #8a6f3a;
  --zar-secondary-dark: #6b5630;
  --zar-secondary-light: #a88a52;

  /* ─────────────────────────────────────────────────
     PLAYER COMPONENT COLORS
  ───────────────────────────────────────────────── */

  --zar-player-bg: #12111a;
  --zar-player-border: rgba(212, 168, 83, 0.1);
  --zar-player-shadow: rgba(0, 0, 0, 0.1);

  /* ─────────────────────────────────────────────────
     BUTTON STATES
  ───────────────────────────────────────────────── */

  --zar-button-bg: transparent;
  --zar-button-border: rgba(212, 168, 83, 0.2);
  --zar-button-text: #f0ece4;
  --zar-button-hover: rgba(212, 168, 83, 0.08);
  --zar-button-active: rgba(212, 168, 83, 0.15);

  /* ─────────────────────────────────────────────────
     VISUALIZER
  ───────────────────────────────────────────────── */

  --zar-visualizer-color: #d4a853;
  --zar-visualizer-bg: rgba(18, 17, 26, 0.8);
  --zar-visualizer-line-width: 1.5;

  /* ─────────────────────────────────────────────────
     PROGRESS BAR
  ───────────────────────────────────────────────── */

  --zar-progress-bg: rgba(212, 168, 83, 0.1);
  --zar-progress-fill: #d4a853;
  --zar-progress-handle: #d4a853;

  /* ─────────────────────────────────────────────────
     LYRICS
  ───────────────────────────────────────────────── */

  --zar-lyrics-color: #f0ece4;
  --zar-lyrics-marker-color: #d4a853;

  /* ─────────────────────────────────────────────────
     ART PLACEHOLDER
  ───────────────────────────────────────────────── */

  --zar-art-placeholder-bg: #1a1828;

  /* ─────────────────────────────────────────────────
     SCROLLBAR
  ───────────────────────────────────────────────── */

  --zar-scrollbar-thumb: rgba(212, 168, 83, 0.3);
  --zar-scrollbar-thumb-hover: rgba(212, 168, 83, 0.6);

  /* ─────────────────────────────────────────────────
     TYPOGRAPHY
  ───────────────────────────────────────────────── */

  /* Editorial sans-serif */
  --zar-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --zar-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

  /* ─────────────────────────────────────────────────
     LAYOUT CONTAINMENT
  ───────────────────────────────────────────────── */

  /* Override full-bleed to stay within .playerInner container */
  --zar-hero-overflow-width: 100%;
  --zar-hero-overflow-margin: 0;
  --zar-controls-overflow-width: 100%;
  --zar-controls-overflow-margin: 0;
}

/* ─────────────────────────────────────────────────
   LIGHT MODE OVERRIDE — Force dark palette
   radio-player.css sets light values via
   @media (prefers-color-scheme: light); this block
   reasserts the dark palette so logos/text remain
   legible regardless of OS color scheme.
───────────────────────────────────────────────── */

@media (prefers-color-scheme: light) {
  :root {
    --zar-bg: #0a0a0f;
    --zar-bg-secondary: #12111a;
    --zar-bg-tertiary: #1a1828;
    --zar-text: #f0ece4;
    --zar-text-muted: #8a8070;
    --zar-text-faint: #4a4540;
    --zar-player-bg: #12111a;
    --zar-player-border: rgba(212, 168, 83, 0.1);
    --zar-player-shadow: rgba(0, 0, 0, 0.5);
    --zar-visualizer-bg: rgba(18, 17, 26, 0.8);
    --zar-art-placeholder-bg: #1a1828;
    --zar-lyrics-color: #f0ece4;
    --zar-button-text: #f0ece4;
    --zar-button-border: rgba(212, 168, 83, 0.2);
    --zar-button-hover: rgba(212, 168, 83, 0.08);
    --zar-button-active: rgba(212, 168, 83, 0.15);
    --zar-button-bg: transparent;
    --zar-scrollbar-thumb: rgba(212, 168, 83, 0.3);
    --zar-scrollbar-thumb-hover: rgba(212, 168, 83, 0.6);
  }
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #D4A853;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: zar-stats-fade-up 0.6s ease-out 0.1s forwards;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e05555;
  box-shadow: 0 0 6px rgba(224, 85, 85, 0.8);
  animation: zar-live-ping 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes zar-live-ping {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(224, 85, 85, 0.8); }
  50%       { opacity: 0.4; box-shadow: 0 0 12px rgba(224, 85, 85, 0.3); }
}

.radio-stats-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.25rem 2rem;
  background:
    radial-gradient(ellipse 60% 100% at 50% -10%, rgba(212, 168, 83, 0.1) 0%, transparent 70%),
    rgba(10, 10, 10, 0.6);
  border-top: 1px solid rgba(212, 168, 83, 0.25);
  border-bottom: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 0.75rem;
  overflow: hidden;
}

.radio-stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  pointer-events: none;
  border-radius: inherit;
}

.radio-stats-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0 2rem;
  position: relative;
  opacity: 0;
  animation: zar-stats-fade-up 0.5s ease-out forwards;
}

.radio-stats-item:nth-child(1) { animation-delay: 0.15s; }
.radio-stats-item:nth-child(2) { animation-delay: 0.25s; }
.radio-stats-item:nth-child(3) { animation-delay: 0.35s; }
.radio-stats-item:nth-child(4) { animation-delay: 0.45s; }

.radio-stats-item + .radio-stats-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 168, 83, 0.5) 30%,
    rgba(212, 168, 83, 0.5) 70%,
    transparent 100%
  );
  box-shadow: 0 0 6px rgba(212, 168, 83, 0.3);
}

.radio-stats-value {
  font-family: 'Bebas Neue', 'Impact', sans-serif !important;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(
    160deg,
    #E5C06E 0%,
    #D4A853 50%,
    #B8923E 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(212, 168, 83, 0.5));
  animation: zar-gold-pulse 4s ease-in-out infinite;
}

@keyframes zar-gold-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.4)); }
  50%       { filter: drop-shadow(0 0 20px rgba(212, 168, 83, 0.75)); }
}

.radio-stats-label {
  font-family: 'Outfit', system-ui, sans-serif !important;
  font-weight: 300;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6B6B6B;
}

.radio-stats-time-label {
  font-family: 'Outfit', system-ui, sans-serif !important;
  font-weight: 300;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin-bottom: 0.15rem;
}

.radio-stats-duration-num {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(
    160deg,
    #E5C06E 0%,
    #D4A853 50%,
    #B8923E 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.4));
}

.radio-stats-duration-label {
  font-family: 'Outfit', system-ui, sans-serif !important;
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B6B6B;
}

@keyframes zar-stats-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
───────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --zar-visualizer-height: 200px;
    --zar-album-art-size: 150px;
  }
}

@media (max-width: 640px) {
  .radio-stats-bar {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
  }
  .radio-stats-item {
    padding: 0 1rem;
    min-width: calc(50% - 2rem);
  }
  .radio-stats-item + .radio-stats-item::before {
    display: none;
  }
  .radio-stats-value {
    font-size: 2.5rem;
  }
}
