/* ==========================================================================
   WAVE RADIO - Pure Native Stylesheet
   Modern, zero-dependency CSS with fluid layout & dynamic aesthetics
   Creative Story Media © 2026
   ========================================================================== */

:root {
  --app-bg: #070A10;
  --app-navy-deep: #0B132B;
  --app-navy-mid: #1C2541;
  --app-navy-light: #3A506B;
  --cyan-primary: #38BDF8;
  --cyan-bright: #00F0FF;
  --cyan-glow: rgba(56, 189, 248, 0.35);
  --cyan-subtle: rgba(56, 189, 248, 0.12);
  --amber-gold: #F59E0B;
  --rose-live: #EF4444;
  --emerald-success: #10B981;
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--app-bg);
  color: #F1F5F9;
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(11, 19, 43, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(58, 80, 107, 0.6);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(58, 80, 107, 0.9);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Background Visualizer Container */
#bg-canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#bg-galaxy-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 75% 20%, rgba(147, 51, 234, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 25% 65%, rgba(6, 182, 212, 0.35) 0%, transparent 50%),
    url("https://images.unsplash.com/photo-1506703719100-a0f3a48c0f86?w=1920&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  transition: opacity 1s ease;
}

/* Vibrant day theme keeps background crystal clear */
body.theme-day #bg-galaxy-overlay {
  opacity: 0.04;
  mix-blend-mode: overlay;
}

#ocean-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.canvas-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(7, 10, 16, 0.25) 45%,
    rgba(7, 10, 16, 0.75) 80%,
    rgba(7, 10, 16, 0.95) 100%
  );
  pointer-events: none;
  z-index: 2;
  transition: background 1s ease;
}

body.theme-day .canvas-overlay-gradient {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(3, 105, 161, 0.15) 50%,
    rgba(7, 10, 16, 0.65) 85%,
    rgba(7, 10, 16, 0.92) 100%
  );
}

/* Film Grain Overlay - Subtle 2% Opacity Max */
.film-grain-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 3;
}

/* Foreground Sky Atmosphere Canvas (Birds, Shooting Stars, Clouds in front of Celestial Orb) */
.sky-fg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 25;
}

/* App Wrapper */
#app-root {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ==========================================================================
   INTERACTIVE CELESTIAL ORB (Touch & Click Enabled Across All Devices)
   ========================================================================== */
.celestial-orb-wrapper {
  position: absolute;
  z-index: 20 !important;
  pointer-events: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  transition: left 1s linear, top 1s linear, opacity 1s linear;
  will-change: left, top, opacity;
}

.celestial-orb {
  position: relative;
  left: 0 !important;
  top: 0 !important;
  border-radius: 50%;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
  z-index: 20 !important;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.5s ease-in-out,
              box-shadow 0.8s ease,
              background 0.8s ease,
              filter 0.5s ease;
  animation: celestialHover 9s ease-in-out infinite;
  user-select: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.celestial-orb:focus-visible {
  box-shadow: 0 0 0 3px var(--cyan-primary), 0 0 45px rgba(56, 189, 248, 0.6);
}

@keyframes celestialHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.celestial-orb:hover {
  transform: scale(1.08);
}

/* Dips down behind horizon animation */
.celestial-orb.setting-down {
  transform: translateY(140px) scale(0.4) !important;
  opacity: 0 !important;
  filter: blur(6px) !important;
}

/* Rises up from horizon animation */
.celestial-orb.rising-up {
  transform: translateY(140px) scale(0.4) !important;
  opacity: 0 !important;
  filter: blur(6px) !important;
}

.celestial-orb.sun {
  width: 86px;
  height: 86px;
  background: radial-gradient(circle at 35% 35%, #FFFBEB 0%, #FDE047 50%, #EAB308 100%);
  box-shadow: 0 0 50px rgba(250, 204, 21, 0.6), 0 0 95px rgba(234, 179, 8, 0.35);
  opacity: 0.95;
}

.celestial-orb.sun:hover {
  box-shadow: 0 0 70px rgba(250, 204, 21, 0.85), 0 0 120px rgba(234, 179, 8, 0.55);
}

.celestial-orb.moon {
  width: 65px;
  height: 65px;
  background: radial-gradient(circle at 35% 35%, #FFFFFF 0%, #F8FAFC 55%, #CBD5E1 100%);
  box-shadow: 0 0 35px rgba(186, 230, 253, 0.45), 0 0 70px rgba(56, 189, 248, 0.25);
  opacity: 0.88;
}

.celestial-orb.moon:hover {
  box-shadow: 0 0 50px rgba(186, 230, 253, 0.65), 0 0 90px rgba(56, 189, 248, 0.4);
}

/* Micro-tooltip badge below celestial orb */
.celestial-hint {
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #E2E8F0;
  font-size: 0.625rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.celestial-hint.fade-out {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

/* ==========================================================================
   CENTERED HEADER (Desktop, Tablet, Mobile)
   ========================================================================== */
.app-header {
  position: relative;
  z-index: 40 !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.85rem 1rem 0.75rem;
  background: rgba(7, 10, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58, 80, 107, 0.25);
}

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.brand-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.brand-icon-box {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.65rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF !important;
  text-transform: uppercase;
  line-height: 1;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  opacity: 0.85;
  margin-top: 3px;
  color: #CBD5E1 !important;
  text-transform: uppercase;
}

/* Center Stage */
.center-stage {
  position: relative;
  z-index: 10;
  pointer-events: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem;
  max-width: 36rem;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

/* Enable pointer events on interactive controls */
.live-status-pill,
.live-listener-pill,
.vinyl-stage,
.btn-master-play,
.stream-play-prompt,
.btn-lineup-pill,
.source-badge,
#btn-ad-spot,
.source-badge a,
#track-status-dot {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Live Status & Listener Row */
.live-status-row {
  position: relative;
  z-index: 35 !important;
  pointer-events: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* Live Badge */
.live-status-pill {
  position: relative;
  z-index: 35 !important;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.8);
  border: 1px solid rgba(58, 80, 107, 0.35);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Live Listener Pill */
.live-listener-pill {
  position: relative;
  z-index: 35 !important;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F8FAFC;
  margin-bottom: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  user-select: none;
}

.live-listener-pill:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.listener-dot {
  position: relative;
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background-color: #38BDF8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
  animation: listenerPulse 2.4s ease-in-out infinite;
}

@keyframes listenerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
    box-shadow: 0 0 5px rgba(56, 189, 248, 0.6);
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
    box-shadow: 0 0 12px rgba(56, 189, 248, 1);
  }
}

.live-indicator-dot {
  position: relative;
  display: flex;
  width: 0.5rem;
  height: 0.5rem;
}

.live-indicator-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: var(--rose-live);
  opacity: 0.75;
  animation: pingRing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.live-indicator-core {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--rose-live);
}

.stream-standby .live-indicator-core {
  background-color: #64748B;
}

.stream-standby .live-indicator-ping {
  display: none;
}

@keyframes pingRing {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Tactical Vinyl Record Deck */
.vinyl-stage {
  position: relative;
  margin: 0.35rem auto 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vinyl-aura-glow {
  position: absolute;
  width: 15rem;
  height: 15rem;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--cyan-primary) 0%, transparent 68%);
  opacity: 0.18;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}

/* Smooth breathing pulse when active */
.vinyl-aura-glow.active {
  opacity: 0.45;
  animation: auraBreathingPulse 3.5s infinite ease-in-out;
}

@keyframes auraBreathingPulse {
  0% {
    transform: scale(1.02);
    opacity: 0.38;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.35));
  }
  50% {
    transform: scale(1.12);
    opacity: 0.55;
    filter: drop-shadow(0 0 32px rgba(56, 189, 248, 0.65));
  }
  100% {
    transform: scale(1.02);
    opacity: 0.38;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.35));
  }
}

.vinyl-disc {
  position: relative;
  z-index: 5 !important;
  width: 13.5rem;
  height: 13.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, #1C2541 0%, #0B132B 55%, #070A10 100%);
  border: 2px solid rgba(58, 80, 107, 0.65);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.6s ease, transform 0.25s ease;
  animation: spinVinyl 18s linear infinite;
  animation-play-state: paused;
}

.vinyl-disc:focus-visible {
  box-shadow: 0 0 0 3px var(--cyan-primary), 0 12px 35px rgba(0, 0, 0, 0.65);
}

.vinyl-disc.playing {
  box-shadow: 0 0 55px -10px rgba(56, 189, 248, 0.45), 0 15px 40px rgba(0, 0, 0, 0.7);
  animation-play-state: running;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Authentic Vinyl Groove & Specular Light Reflection (Anisotropic Sheen) */
.vinyl-disc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.07) 40deg,
    transparent 80deg,
    transparent 180deg,
    rgba(255, 255, 255, 0.07) 220deg,
    transparent 260deg
  );
  pointer-events: none;
  z-index: 6;
}

/* Concentric groove rings */
.vinyl-groove {
  position: absolute;
  border-radius: 9999px;
  border: 1px solid rgba(58, 80, 107, 0.3);
  pointer-events: none;
}
.groove-1 { inset: 0.75rem; }
.groove-2 { inset: 1.5rem; border-color: rgba(58, 80, 107, 0.22); }
.groove-3 { inset: 2.25rem; border-color: rgba(58, 80, 107, 0.16); }

/* ==========================================================================
   ABSOLUTE CIRCULAR VINYL MASK
   ========================================================================== */
#vinyl-center-label, .vinyl-center-label {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50% !important;
  overflow: hidden !important;
  clip-path: circle(50% at 50% 50%) !important;
  -webkit-clip-path: circle(50% at 50% 50%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8 !important;
  pointer-events: none;
  background-color: #070A10;
}

#vinyl-thumbnail, .vinyl-thumbnail {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  filter: brightness(0.96) contrast(1.05);
  transition: opacity 0.4s ease, filter 0.4s ease;
  z-index: 9 !important;
}

/* Subtle RPM Ring Label */
.vinyl-rpm-label {
  position: absolute;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.44rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  z-index: 10 !important;
  pointer-events: none;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Circular Center Spindle Hole Cutout */
.vinyl-spindle-hole {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #070A10;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.85);
  z-index: 11 !important;
  pointer-events: none;
}

/* ==========================================================================
   TACTILE TURNTABLE TONEARM ASSEMBLY
   ========================================================================== */
.turntable-tonearm {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 44px;
  height: 155px;
  pointer-events: none !important;
  z-index: 12 !important;
  transform-origin: 22px 22px;
  transform: rotate(0deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#turntable-tonearm.playing {
  transform: rotate(15deg) !important;
}

.tonearm-base {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #94A3B8 0%, #475569 50%, #1E293B 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.tonearm-base::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 22px;
  height: 14px;
  background: #0f172a;
  border: 1px solid rgba(58, 80, 107, 0.6);
  border-radius: 4px;
  transform: translateY(-50%);
  z-index: -1;
}

.tonearm-base::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #CBD5E1;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.tonearm-rod {
  position: absolute;
  top: 22px;
  left: 20px;
  width: 4px;
  height: 102px;
  border-radius: 2px;
  background: linear-gradient(to right, #64748B, #F1F5F9 50%, #94A3B8);
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.55);
}

.tonearm-cartridge {
  position: absolute;
  top: 120px;
  left: 16px;
  width: 12px;
  height: 18px;
  border-radius: 2px;
  background: #0F172A;
  border: 1px solid #38BDF8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
  transform: rotate(12deg);
}

.tonearm-cartridge::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #F8FAFC;
  box-shadow: 0 0 4px #38BDF8;
}

/* Master Play/Pause Button Overlay (44px Translucent Glass Badge) */
.btn-master-play {
  position: absolute;
  z-index: 20 !important;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: var(--cyan-bright);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.25);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-master-play:hover {
  background: rgba(15, 23, 42, 0.75);
  color: #00F0FF;
  border-color: #00F0FF;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.45);
}

.btn-master-play:active {
  transform: scale(0.92);
}

/* When playing: translucent glass overlay */
.btn-master-play.playing {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  opacity: 0.85;
}

.vinyl-disc:hover .btn-master-play.playing,
.vinyl-disc:focus-within .btn-master-play.playing,
.btn-master-play.playing:hover {
  opacity: 1;
  background: rgba(15, 23, 42, 0.75);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.4);
}

.play-icon, .pause-icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.play-icon {
  margin-left: 0.12rem;
}

/* ==========================================================================
   STREAM PLAY PROMPT
   ========================================================================== */
.stream-play-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.95rem;
  border-radius: 9999px;
  background: rgba(2, 132, 199, 0.28);
  border: 1px solid rgba(56, 189, 248, 0.65);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35), 0 0 12px rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 0.35rem;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: promptPulse 2.4s infinite ease-in-out;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.stream-play-prompt:hover {
  background: rgba(2, 132, 199, 0.45);
  border-color: #00F0FF;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.5);
}

.stream-play-prompt.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(8px) !important;
}

.prompt-play-icon {
  width: 0.75rem;
  height: 0.75rem;
  fill: #38BDF8;
  animation: playIconPulse 1.6s infinite ease-in-out;
}

@keyframes promptPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3), 0 0 8px rgba(56, 189, 248, 0.3);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.5), 0 0 16px rgba(56, 189, 248, 0.6);
  }
}

@keyframes playIconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* Track Metadata */
.track-info-container {
  margin-top: 0.65rem;
  width: 100%;
  max-width: 28rem;
}

.track-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.track-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--cyan-primary);
  flex-shrink: 0;
}

.track-status-dot.ad {
  background-color: var(--amber-gold);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.track-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 24rem;
}

.track-artist {
  font-size: 0.875rem;
  font-weight: 500;
  color: #CBD5E1;
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Badges */
.content-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

.source-badge.badge-youtube {
  color: #F87171;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.source-badge.badge-ad {
  color: #FCD34D;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.source-badge.badge-procedural {
  color: #A5B4FC;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.28);
}

.source-badge.badge-ad-spot {
  color: #38BDF8;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.45);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.source-badge.badge-ad-spot:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #7DD3FC;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

/* Synchronous Progress Bar */
.progress-container {
  width: 100%;
  max-width: 22rem;
  margin-top: 1.15rem;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: var(--app-navy-deep);
  border: 1px solid rgba(58, 80, 107, 0.5);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284C7, var(--cyan-primary));
  border-radius: 9999px;
  transition: width 1s linear;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #64748B;
  margin-top: 0.4rem;
}

.progress-sync-label {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94A3B8;
}

/* UP NEXT & Lineup Row */
.up-next-row {
  margin-top: 0.85rem;
  margin-bottom: max(0.85rem, env(safe-area-inset-bottom, 16px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 32rem;
}

.up-next-pill {
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.65);
  border: 1px solid rgba(58, 80, 107, 0.3);
  font-size: 0.75rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 20rem;
}

.up-next-prefix {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
}

.up-next-title {
  font-weight: 500;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10rem;
}

.up-next-artist {
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7rem;
}

/* Upcoming Lineup Pill Button */
.btn-lineup-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-lineup-pill:hover {
  background: var(--app-navy-mid);
  border-color: var(--cyan-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.btn-lineup-pill:active {
  transform: scale(0.96);
}

/* ==========================================================================
   UNIFIED FOOTER BAR
   ========================================================================== */
.app-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 0.65rem 1.5rem;
  padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 16px));
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  background: rgba(7, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(58, 80, 107, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
}

/* Left: Volume Slider Controls */
.volume-control-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 11rem;
  flex-shrink: 0;
}

.btn-volume-mute {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  transition: color 0.2s;
}

.btn-volume-mute:hover {
  color: #FFFFFF;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--app-navy-mid);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--cyan-primary);
  cursor: pointer;
  box-shadow: 0 0 6px var(--cyan-primary);
  transition: transform 0.15s;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: var(--cyan-primary);
  border: none;
  cursor: pointer;
}

.volume-percent {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #94A3B8;
  width: 2.25rem;
  text-align: right;
}

/* Center: Copyright & Partner Notice */
.footer-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #94A3B8;
  font-size: 0.6875rem;
  opacity: 0.95;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

.footer-copy-text {
  color: #94A3B8;
}

.footer-copy-divider {
  color: #475569;
}

.footer-partner-link {
  color: #CBD5E1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-partner-link:hover {
  color: var(--cyan-primary) !important;
}

/* Right: Action Pills [ Games ] [ Submit Music ] [ Share ] */
.footer-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.footer-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.75);
  border: 1px solid rgba(58, 80, 107, 0.35);
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.footer-nav-pill:hover {
  background: var(--app-navy-mid);
  border-color: rgba(56, 189, 248, 0.55);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.submit-text-short {
  display: none;
}

.submit-text-full {
  display: inline;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 34rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--app-navy-deep);
  border: 1px solid rgba(58, 80, 107, 0.5);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(58, 80, 107, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.modal-subtitle {
  font-size: 0.6875rem;
  color: #94A3B8;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  background: var(--app-navy-mid);
  color: #FFFFFF;
}

/* Modal View Panel & Back Button */
.modal-view-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 78vh;
  overflow-y: auto;
}

.btn-modal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 0.6rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-back:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.5);
  color: #FFFFFF;
  transform: translateX(-1px);
}

/* Dual-Intent Selector Screen (Choice Cards) */
.choice-cards-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.choice-card {
  display: flex !important;
  align-items: center !important;
  gap: 1.1rem !important;
  padding: 1.25rem 1.4rem !important;
  border-radius: 1rem !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(58, 80, 107, 0.45) !important;
  color: #F1F5F9 !important;
  cursor: pointer !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  appearance: none;
  -webkit-appearance: none;
}

.choice-card:hover {
  transform: translateY(-2px) !important;
}

.choice-card-ad:hover {
  background: rgba(14, 165, 233, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.75) !important;
  box-shadow: 0 10px 28px -6px rgba(56, 189, 248, 0.3) !important;
}

.choice-card-music:hover {
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: rgba(244, 63, 94, 0.75) !important;
  box-shadow: 0 10px 28px -6px rgba(244, 63, 94, 0.3) !important;
}

.choice-card-icon-box {
  width: 3.25rem !important;
  height: 3.25rem !important;
  border-radius: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.choice-icon-ad {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.choice-icon-music {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.choice-card-text {
  flex: 1;
  min-width: 0;
}

.choice-card-title {
  font-family: var(--font-sans) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin: 0 !important;
}

.choice-card-desc {
  font-size: 0.78rem !important;
  color: #94A3B8 !important;
  margin: 0.25rem 0 0 0 !important;
  line-height: 1.45 !important;
}

.choice-card-arrow {
  flex-shrink: 0 !important;
  color: #64748B !important;
}

.choice-card:hover .choice-card-arrow {
  color: #FFFFFF !important;
  transform: translateX(4px) !important;
}

/* Upcoming Lineup Modal & Song Items */
.lineup-modal-card {
  max-width: 30rem;
}

.lineup-content-scroll {
  padding: 1rem 1.25rem;
  max-height: 24rem;
  overflow-y: auto;
}

.lineup-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lineup-song-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(7, 10, 16, 0.6);
  border: 1px solid rgba(58, 80, 107, 0.25);
  transition: all 0.15s ease;
  text-align: left;
}

.lineup-song-item:hover {
  background: rgba(28, 37, 65, 0.35);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateX(2px);
}

.lineup-song-item.next-in-line {
  background: rgba(11, 19, 43, 0.9);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: inset 0 0 16px rgba(56, 189, 248, 0.08);
}

.lineup-song-order {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
}

.order-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #64748B;
  font-weight: 600;
}

.tag-next {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan-primary);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.lineup-song-main {
  flex: 1;
  min-width: 0;
}

.lineup-song-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lineup-song-item.next-in-line .lineup-song-title {
  color: #00F0FF;
}

.lineup-song-artist {
  font-size: 0.6875rem;
  color: #94A3B8;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lineup-song-duration {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: #64748B;
  flex-shrink: 0;
}

/* Modal Form View */
.modal-form {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #CBD5E1;
}

.form-field input, .form-field select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  background: var(--app-bg);
  border: 1px solid rgba(58, 80, 107, 0.45);
  border-radius: 0.75rem;
  font-size: 0.75rem;
  color: #FFFFFF;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-field input:focus, .form-field select:focus {
  border-color: var(--cyan-primary);
}

.form-field input::placeholder {
  color: #64748B;
}

.form-field .field-hint {
  font-size: 0.6875rem;
  color: #64748B;
}

.legal-card {
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: var(--app-bg);
  border: 1px solid rgba(58, 80, 107, 0.4);
}

.legal-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #CBD5E1;
  text-align: left;
}

.legal-checkbox-label input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  accent-color: #0284C7;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(58, 80, 107, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.modal-status-text {
  font-size: 0.6875rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-group {
  display: flex;
  gap: 0.65rem;
}

.btn-modal-cancel {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: var(--app-navy-mid);
  border: 1px solid rgba(58, 80, 107, 0.3);
  color: #CBD5E1;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  background: #0284C7;
  border: none;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: all 0.2s;
}

.btn-modal-submit:hover:not(:disabled) {
  background: var(--cyan-primary);
}

.btn-modal-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.submission-success-view {
  padding: 3rem 1.5rem;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.success-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   DAYLIGHT THEME HIGH-CONTRAST STYLING
   ========================================================================== */
body.theme-day .track-artist,
[data-theme="day"] .track-artist,
body.theme-day .progress-sync-label,
[data-theme="day"] .progress-sync-label,
body.theme-day #time-current,
[data-theme="day"] #time-current,
body.theme-day #time-total,
[data-theme="day"] #time-total {
  color: #0F172A !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

body.theme-day .progress-track,
[data-theme="day"] .progress-track {
  background: rgba(15, 23, 42, 0.25) !important;
  border: 1px solid rgba(15, 23, 42, 0.4) !important;
}

body.theme-day .progress-fill,
[data-theme="day"] .progress-fill {
  background: linear-gradient(90deg, #0284C7, #0369A1) !important;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.5) !important;
}

body.theme-day .up-next-pill,
[data-theme="day"] .up-next-pill {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(15, 23, 42, 0.9) !important;
  color: #F8FAFC !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

body.theme-day .up-next-prefix,
[data-theme="day"] .up-next-prefix {
  color: #94A3B8 !important;
}

body.theme-day .up-next-title,
[data-theme="day"] .up-next-title {
  color: #FFFFFF !important;
}

body.theme-day .up-next-artist,
[data-theme="day"] .up-next-artist {
  color: #CBD5E1 !important;
}

body.theme-day .btn-lineup-pill,
[data-theme="day"] .btn-lineup-pill {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(15, 23, 42, 0.9) !important;
  color: #F8FAFC !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

body.theme-day .btn-lineup-pill:hover,
[data-theme="day"] .btn-lineup-pill:hover {
  background: rgba(15, 23, 42, 0.92) !important;
  border-color: #38BDF8 !important;
  color: #38BDF8 !important;
}

body.theme-day .live-status-pill,
[data-theme="day"] .live-status-pill,
body.theme-day .live-listener-pill,
[data-theme="day"] .live-listener-pill {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #F8FAFC !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

body.theme-day .stream-play-prompt,
[data-theme="day"] .stream-play-prompt {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(15, 23, 42, 0.95) !important;
  color: #F8FAFC !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

body.theme-day .celestial-hint,
[data-theme="day"] .celestial-hint {
  background: rgba(15, 23, 42, 0.82) !important;
  border: 1px solid rgba(15, 23, 42, 0.95) !important;
  color: #F8FAFC !important;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 768px) {
  .app-header {
    padding: 0.65rem 1rem 0.55rem;
  }
  .app-footer {
    padding: 0.55rem 1rem;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 16px));
    gap: 0.5rem;
  }
  .volume-control-group {
    width: 9.5rem;
  }
}

@media (max-width: 480px) {
  html, body {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }
  #app-root {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .app-header {
    padding: 0.5rem 0.75rem 0.4rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .brand-title-row {
    gap: 0.4rem;
  }
  .brand-icon-box {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.45rem;
  }
  .brand-title {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }
  .brand-subtitle {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    margin-top: 2px;
  }
  .center-stage {
    padding: 0.2rem 0.75rem 0.35rem;
    justify-content: center;
    flex: 1;
    min-height: 0;
  }
  .live-status-row {
    margin-bottom: 0.35rem;
    gap: 0.4rem;
  }
  .live-status-pill,
  .live-listener-pill {
    margin-bottom: 0;
    padding: 0.2rem 0.6rem;
    font-size: 0.625rem;
  }
  .vinyl-stage {
    margin: 0.1rem auto 0.3rem;
  }
  .vinyl-disc {
    width: 185px !important;
    height: 185px !important;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  }
  .vinyl-aura-glow {
    width: 210px;
    height: 210px;
  }
  .btn-master-play {
    width: 38px;
    height: 38px;
  }
  .turntable-tonearm {
    top: 6px;
    right: 8px;
    height: 135px;
  }
  .tonearm-rod {
    height: 86px;
  }
  .tonearm-cartridge {
    top: 104px;
  }
  .play-icon, .pause-icon {
    width: 1rem;
    height: 1rem;
  }
  .stream-play-prompt {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    margin-top: 0.25rem;
  }
  .celestial-orb-wrapper {
    z-index: 20 !important;
    pointer-events: auto !important;
  }
  .celestial-orb.sun {
    width: 48px !important;
    height: 48px !important;
  }
  .celestial-orb.moon {
    width: 36px !important;
    height: 36px !important;
  }
  .track-info-container {
    margin-top: 0.25rem;
  }
  .track-title {
    font-size: 1.1rem;
    max-width: 17rem;
  }
  .track-artist {
    font-size: 0.75rem;
    margin-top: 0.1rem;
  }
  .content-badges-row {
    margin-top: 0.25rem;
    font-size: 0.625rem;
  }
  .progress-container {
    margin-top: 0.4rem;
    max-width: 17.5rem;
  }
  .progress-labels {
    font-size: 0.625rem;
    margin-top: 0.2rem;
  }
  .up-next-row {
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
    gap: 0.35rem;
  }
  .up-next-pill {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    max-width: 12.5rem;
  }
  .up-next-title {
    max-width: 6.5rem;
  }
  .up-next-artist {
    max-width: 4rem;
  }
  .btn-lineup-pill {
    padding: 0.2rem 0.55rem;
    font-size: 0.625rem;
  }
  .app-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.55rem;
    padding-bottom: max(0.55rem, env(safe-area-inset-bottom, 16px));
    gap: 0.35rem;
    box-sizing: border-box;
    width: 100%;
  }
  .volume-control-group {
    width: 4.5rem;
    max-width: 4.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .volume-slider {
    width: 100%;
    min-width: 0;
    height: 4px;
    flex: 1;
  }
  .volume-percent {
    display: none;
  }
  .footer-copy {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }
  .footer-copy-text,
  .footer-copy-divider {
    display: none !important;
  }
  .footer-partner-link {
    font-size: 0.7rem;
    font-weight: 600;
    color: #CBD5E1 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
  }
  .footer-partner-link:hover {
    color: var(--cyan-primary) !important;
  }
  .footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
  }
  .footer-nav-pill {
    padding: 0.22rem 0.42rem;
    font-size: 0.65rem;
    gap: 0.2rem;
    border-radius: 9999px;
    white-space: nowrap;
  }
  .footer-nav-pill svg {
    width: 10px;
    height: 10px;
  }
  .submit-text-full {
    display: none;
  }
  .submit-text-short {
    display: inline;
  }
  .choice-cards-container {
    padding: 1rem 0.85rem !important;
    gap: 0.75rem !important;
  }
  .choice-card {
    padding: 1rem !important;
    gap: 0.85rem !important;
  }
  .choice-card-icon-box {
    width: 2.75rem !important;
    height: 2.75rem !important;
  }
  .choice-card-title {
    font-size: 0.875rem !important;
  }
  .choice-card-desc {
    font-size: 0.6875rem !important;
  }
  .modal-view-panel {
    max-height: 82vh;
  }
  .modal-form {
    padding: 1rem;
    gap: 0.85rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

/* Force Dark Theme on Choice Cards */
#modal-choice-view .choice-card,
button.choice-card {
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #334155 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 1.25rem !important;
  border-radius: 1rem !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

#modal-choice-view .choice-card:hover {
  background: #1e293b !important;
  background-color: #1e293b !important;
  border-color: #38bdf8 !important;
}

#modal-choice-view .choice-card-title {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: left !important;
}

#modal-choice-view .choice-card-desc {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  text-align: left !important;
}

#modal-choice-view .choice-card-arrow svg {
  stroke: #38bdf8 !important;
}

.choice-cards-container {
  padding: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

div.choice-card {
  display: flex !important;
  align-items: center !important;
  gap: 1.25rem !important;
  padding: 1.25rem 1.5rem !important;
  border-radius: 1.25rem !important;
  background: #0f172a !important;
  border: 1px solid rgba(58, 80, 107, 0.6) !important;
  color: #f8fafc !important;
  cursor: pointer !important;
  user-select: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.2s ease !important;
}

div.choice-card:hover {
  transform: translateY(-2px) !important;
  background: #1e293b !important;
}

div.choice-card-ad:hover {
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25) !important;
}

div.choice-card-music:hover {
  border-color: #f43f5e !important;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.25) !important;
}

div.choice-card .choice-card-title {
  color: #ffffff !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}

div.choice-card .choice-card-desc {
  color: #94a3b8 !important;
  font-size: 0.78rem !important;
  margin-top: 0.25rem !important;
}


