@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
  --bg-primary: #031005;
  --glass-bg: rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.07);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  
  /* Color Accents matching brand logo */
  --accent-lime: #8ee000;
  --accent-lime-glow: rgba(142, 224, 0, 0.35);
  --accent-blue: #0059b3;
  --accent-blue-glow: rgba(0, 89, 179, 0.35);
  --accent-cyan: #00d2ff;
  --accent-cyan-glow: rgba(0, 210, 255, 0.25);
  
  /* Dynamic Background Glow Colors - Overridden by JS */
  --glow-color-1: #8ee000;
  --glow-color-1-glow: rgba(142, 224, 0, 0.35);
  --glow-color-2: #0059b3;
  --glow-color-2-glow: rgba(0, 89, 179, 0.35);
  --glow-color-3: #00d2ff;
  --glow-color-3-glow: rgba(0, 210, 255, 0.25);
  --glow-color-4: #031005;
  --bg-primary-dynamic: #031005;
  
  /* Equalizer Max Heights for Bass/Mids/Highs */
  --eq-max-bass: 32px;
  --eq-max-mids: 48px;
  --eq-max-highs: 26px;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary-dynamic, var(--bg-primary));
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 20px 15px;
  transition: background-color 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Background Glow Container */
.bg-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.45;
  transition: opacity 2s ease-in-out;
}

body.playing .bg-glow-container {
  opacity: 0.8;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  transition: background-color 2.5s ease-in-out, transform 2.5s ease-in-out, width 2.5s ease, height 2.5s ease;
  pointer-events: none;
}

/* Glow Blob positions & animations */
.glow-1 {
  top: -10%;
  right: -10%;
  width: 450px;
  height: 450px;
  background-color: var(--glow-color-1);
  animation: blobFloat1 28s infinite alternate ease-in-out;
  opacity: 0.55;
}

.glow-2 {
  bottom: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background-color: var(--glow-color-2);
  animation: blobFloat2 32s infinite alternate ease-in-out;
  opacity: 0.6;
}

.glow-3 {
  top: 40%;
  left: -15%;
  width: 350px;
  height: 350px;
  background-color: var(--glow-color-3);
  animation: blobFloat3 24s infinite alternate ease-in-out;
  opacity: 0.45;
}

.glow-4 {
  bottom: 30%;
  right: -10%;
  width: 380px;
  height: 380px;
  background-color: var(--glow-color-1);
  animation: blobFloat4 30s infinite alternate ease-in-out;
  opacity: 0.4;
}

/* Playing State - Speeds up float animations and pulses shapes dynamically */
body.playing .glow-1 {
  animation-duration: 14s;
  transform: scale(1.25);
  background-color: var(--glow-color-3);
}

body.playing .glow-2 {
  animation-duration: 16s;
  transform: scale(1.3);
  background-color: var(--glow-color-1);
}

body.playing .glow-3 {
  animation-duration: 12s;
  transform: scale(1.35);
  background-color: var(--glow-color-2);
}

body.playing .glow-4 {
  animation-duration: 15s;
  transform: scale(1.2);
  background-color: var(--glow-color-3);
}

/* Glass Panels Ambient Neon Glows - Playing State */
body.playing .player-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 45px var(--glow-color-1-glow);
  border-color: var(--glow-color-1-glow);
}

body.playing .sidebar-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 45px var(--glow-color-2-glow);
  border-color: var(--glow-color-2-glow);
}

/* Morphing Floating Animations */
@keyframes blobFloat1 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  50% {
    transform: translate(80px, 50px) scale(1.15);
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
  }
  100% {
    transform: translate(-40px, 100px) scale(0.9);
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  }
}

@keyframes blobFloat2 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
  }
  50% {
    transform: translate(-100px, -60px) scale(1.2);
    border-radius: 30% 70% 70% 30% / 50% 30% 70% 50%;
  }
  100% {
    transform: translate(50px, -120px) scale(0.85);
    border-radius: 60% 40% 40% 60% / 60% 40% 60% 40%;
  }
}

@keyframes blobFloat3 {
  0% {
    transform: translate(0, 0) scale(0.9);
    border-radius: 40% 60% 50% 50% / 40% 40% 60% 60%;
  }
  100% {
    transform: translate(120px, -50px) scale(1.2);
    border-radius: 70% 30% 30% 70% / 70% 30% 70% 30%;
  }
}

@keyframes blobFloat4 {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 50%;
  }
  100% {
    transform: translate(-90px, 80px) scale(1.25);
    border-radius: 35% 65% 55% 45% / 45% 55% 55% 45%;
  }
}

/* Main Container */
.app-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
}

/* Glassmorphism Common Class */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  margin-bottom: 4px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon-svg {
  width: 38px;
  height: 38px;
  transition: var(--transition-smooth);
}

.logo-container:hover .logo-icon-svg {
  transform: rotate(15deg) scale(1.05);
}

.logo-details {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--glow-color-1);
  text-shadow: 0 0 8px var(--glow-color-1-glow);
  transition: color 1.5s ease, text-shadow 1.5s ease;
}

.logo-subtitle {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--glow-color-3);
  text-shadow: 0 0 8px var(--glow-color-3-glow);
  transition: color 1.5s ease, text-shadow 1.5s ease;
}

/* SVG wave transmitter animations */
.wave-arc {
  transition: stroke 1.5s ease, opacity 0.5s ease;
}

body.playing .wave-arc {
  animation: transmitSignal 2.4s infinite linear;
}

body.playing .wave-inner {
  animation-delay: 0s;
}

body.playing .wave-middle {
  animation-delay: 0.8s;
}

body.playing .wave-outer {
  animation-delay: 1.6s;
}

@keyframes transmitSignal {
  0% {
    opacity: 0.2;
    stroke: var(--glow-color-2);
  }
  30% {
    opacity: 1;
    stroke: var(--glow-color-1);
    filter: drop-shadow(0 0 4px var(--glow-color-1-glow));
  }
  60% {
    opacity: 0.2;
    stroke: var(--glow-color-2);
  }
  100% {
    opacity: 0.2;
    stroke: var(--glow-color-2);
  }
}

/* Nav Menu (Hidden on mobile) */
.header-nav {
  display: none;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: var(--accent-lime);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
    align-items: center;
  }
}

/* Badges */
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-badge.live {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
}

.status-badge.live .status-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseLive 1.5s infinite;
}

.status-badge.auto-dj {
  background: rgba(142, 224, 0, 0.08);
  border-color: rgba(142, 224, 0, 0.2);
  color: var(--accent-lime);
}

.status-badge.auto-dj .status-dot {
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* Core Player Section */
.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.album-art-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 24px;
}

/* Pulsing waves reflecting the logo's outer circles */
.album-art-wrapper::before, .album-art-wrapper::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--glow-color-1-glow);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-smooth);
}

.album-art-wrapper.playing::before {
  animation: pulseWave 3s infinite linear;
}

.album-art-wrapper.playing::after {
  animation: pulseWave 3s infinite linear 1.5s;
}

@keyframes pulseWave {
  0% { transform: scale(1); opacity: 0.8; border-color: var(--glow-color-1-glow); }
  50% { border-color: var(--glow-color-3-glow); }
  100% { transform: scale(1.3); opacity: 0; border-color: transparent; }
}

.album-art-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

/* Conic vinyl glare sheen reflection */
.album-art-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0.08) 45deg,
    rgba(255, 255, 255, 0) 90deg,
    rgba(255, 255, 255, 0) 180deg,
    rgba(255, 255, 255, 0.08) 225deg,
    rgba(255, 255, 255, 0) 270deg,
    rgba(255, 255, 255, 0) 360deg
  );
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.85;
  transition: var(--transition-smooth);
}

body.playing .album-art-container::after {
  animation: rotateDisc 25s linear infinite;
}

.album-art {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  animation: rotateDisc 25s linear infinite;
  animation-play-state: paused;
}

.album-art-wrapper.playing .album-art {
  animation-play-state: running;
}

.album-art-center {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
}

.album-art-center::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glow-color-3);
  box-shadow: 0 0 10px var(--glow-color-3);
  transition: background-color 1.5s ease, box-shadow 1.5s ease;
}

@keyframes rotateDisc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Vinyl Stylus/Arm (Aesthetic Touch) */
.vinyl-stylus {
  position: absolute;
  top: -10px;
  right: -5px;
  width: 60px;
  height: 80px;
  transform-origin: 20px 10px;
  transform: rotate(-30deg);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 3;
  pointer-events: none;
  display: block;
}

.album-art-wrapper.playing .vinyl-stylus {
  transform: rotate(-2deg);
}

/* Metadata Text */
.meta-section {
  width: 100%;
  margin-bottom: 24px;
}

.song-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-artist {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-lime);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.dj-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

/* Audio Visualizer (Equalizer Lines) */
.eq-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
  margin-bottom: 24px;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}

.eq-bar {
  flex-grow: 1;
  max-width: 6px;
  background: linear-gradient(to top, var(--glow-color-2), var(--glow-color-1));
  border-radius: 3px;
  height: 6px;
  transition: height 0.15s ease, background-color 1.5s ease;
  box-shadow: 0 0 8px var(--glow-color-1-glow);
}

.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(1) { animation: bounceEqBass 1.4s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(2) { animation: bounceEqBass 1.1s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(3) { animation: bounceEqBass 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.0s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(4) { animation: bounceEqMids 1.2s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(5) { animation: bounceEqMids 0.9s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(6) { animation: bounceEqMids 1.3s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(7) { animation: bounceEqMids 1.0s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.15s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(8) { animation: bounceEqMids 1.4s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.25s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(9) { animation: bounceEqMids 1.15s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.05s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(10) { animation: bounceEqMids 0.85s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.35s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(11) { animation: bounceEqMids 1.35s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.12s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(12) { animation: bounceEqHighs 1.25s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.45s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(13) { animation: bounceEqHighs 0.95s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.22s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(14) { animation: bounceEqHighs 1.35s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.55s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(15) { animation: bounceEqHighs 1.05s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.32s; }
.album-art-wrapper.playing ~ .eq-container .eq-bar:nth-child(16) { animation: bounceEqHighs 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1) 0.02s; }

@keyframes bounceEqBass {
  0%, 100% { height: 6px; }
  50% { height: var(--eq-max-bass); }
}

@keyframes bounceEqMids {
  0%, 100% { height: 6px; }
  50% { height: var(--eq-max-mids); }
}

@keyframes bounceEqHighs {
  0%, 100% { height: 6px; }
  50% { height: var(--eq-max-highs); }
}

@keyframes bounceEq {
  0%, 100% { height: 4px; }
  50% { height: 26px; }
}

/* Player Controls */
.controls-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  width: 100%;
}

.play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-lime), #77cc00);
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px var(--accent-lime-glow);
  transition: var(--transition-smooth);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(142, 224, 0, 0.55);
}

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

.play-btn svg {
  width: 30px;
  height: 30px;
  fill: #031005;
  transition: var(--transition-smooth);
}

/* Play state changes */
.play-btn .pause-icon { display: none; }
.play-btn.playing .play-icon { display: none; }
.play-btn.playing .pause-icon { display: block; }

/* Loading/Buffering State in Play Button */
.play-btn.buffering {
  background: linear-gradient(135deg, #4b5563, #374151);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  pointer-events: none;
}
.play-btn.buffering .play-icon, 
.play-btn.buffering .pause-icon { 
  display: none; 
}
.play-btn.buffering::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Volume Slider */
.volume-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 85%;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.volume-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.volume-btn:hover {
  color: #ffffff;
}

.volume-btn svg {
  width: 20px;
  height: 20px;
}

.volume-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 5px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-runnable-track {
  width: 100%;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 50%;
  background: var(--accent-lime);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-lime-glow);
  margin-top: -4.5px;
  transition: var(--transition-smooth);
}

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

/* PWA Installer Prompt Banner */
.install-banner {
  display: none; /* Controlled by JS */
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 89, 179, 0.1), rgba(142, 224, 0, 0.05));
  border: 1px solid rgba(0, 89, 179, 0.25);
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.install-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
}

.install-text strong {
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.install-btn {
  background: var(--accent-lime);
  border: none;
  padding: 8px 16px;
  border-radius: 14px;
  color: #031005;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--accent-lime-glow);
  transition: var(--transition-smooth);
}

.install-btn:hover {
  transform: translateY(-2px);
  background: #ffffff;
  color: #031005;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Sidebar Card Layout */
.sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  width: 100%;
  margin: 4px 0;
}

.history-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card-title-sm {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.upcoming-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upcoming-art {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.upcoming-info {
  flex-grow: 1;
  min-width: 0;
}

.upcoming-song {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* History List inside Sidebar */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 230px;
  padding-right: 5px;
}

.history-list::-webkit-scrollbar {
  width: 5px;
}
.history-list::-webkit-scrollbar-track {
  background: transparent;
}
.history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.history-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.history-item:hover {
  opacity: 1;
}

.history-art {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.history-info {
  flex-grow: 1;
  min-width: 0;
}

.history-song {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-artist {
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Footer Section */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.listeners-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.listeners-container svg {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
}

.listeners-count {
  font-weight: 600;
  color: var(--text-secondary);
}

.share-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Animations */
@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsiveness adjustments */
@media (max-height: 700px) {
  :root {
    --eq-max-bass: 20px;
    --eq-max-mids: 28px;
    --eq-max-highs: 16px;
  }
  body {
    padding: 10px;
  }
  .app-container {
    gap: 10px;
  }
  .glass-panel {
    padding: 18px;
  }
  .album-art-wrapper {
    width: 160px;
    height: 160px;
    margin-bottom: 16px;
  }
  .eq-container {
    height: 28px;
    margin-bottom: 12px;
  }
  .controls-container {
    margin-bottom: 16px;
  }
}

/* Desktop Multiplatform Dashboard Support */
@media (min-width: 768px) {
  body {
    padding: 40px 20px;
    overflow: hidden;
    height: 100vh;
  }
  
  .app-container {
    max-width: 960px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    grid-gap: 20px;
    align-items: stretch;
  }

  header {
    grid-column: 1 / span 2;
    margin-bottom: 8px;
  }

  .install-banner {
    grid-column: 1 / span 2;
  }

  .player-card {
    grid-column: 1;
    margin-bottom: 0;
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .album-art-wrapper {
    width: 240px;
    height: 240px;
  }

  .sidebar-card {
    grid-column: 2;
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .history-section {
    flex-grow: 1;
    min-height: 0;
  }

  .history-list {
    max-height: 310px;
  }

  footer {
    grid-column: 1 / span 2;
    margin-top: 8px;
  }
}

/* Responsive adjustments for shorter viewports to eliminate vertical scrollbars on desktop */
@media (min-width: 768px) and (max-height: 820px) {
  body {
    padding: 10px 15px;
    overflow: hidden;
    height: 100vh;
  }
  
  .app-container {
    grid-gap: 10px;
  }
  
  header {
    padding: 8px 16px;
    margin-bottom: 0px;
  }
  
  .logo-icon-svg {
    width: 32px;
    height: 32px;
  }
  
  .logo-text {
    font-size: 1rem;
  }

  .player-card, .sidebar-card {
    min-height: 390px !important;
    padding: 15px 18px;
    border-radius: 20px;
  }

  .album-art-wrapper {
    width: 155px;
    height: 155px;
    margin-bottom: 8px;
  }
  
  .song-title {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 4px;
  }
  
  .song-artist {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .meta-section {
    margin-bottom: 8px;
  }

  .eq-container {
    margin-bottom: 8px;
    height: 30px;
  }
  
  :root {
    --eq-max-bass: 22px;
    --eq-max-mids: 30px;
    --eq-max-highs: 18px;
  }
  
  .controls-container {
    margin-bottom: 8px;
  }
  
  .play-btn {
    width: 60px;
    height: 60px;
  }
  
  .play-btn svg {
    width: 24px;
    height: 24px;
  }
  
  .volume-container {
    padding: 6px 14px;
    width: 90%;
  }

  .upcoming-art {
    width: 38px;
    height: 38px;
  }
  
  .upcoming-song {
    font-size: 0.85rem;
  }
  
  .upcoming-artist {
    font-size: 0.74rem;
  }
  
  .card-title-sm {
    font-size: 0.72rem;
    margin-bottom: 8px;
  }
  
  .sidebar-divider {
    margin: 2px 0;
  }

  .history-list {
    max-height: 165px;
    gap: 8px;
  }
  
  .history-art {
    width: 32px;
    height: 32px;
  }
  
  .history-song {
    font-size: 0.78rem;
  }
  
  .history-artist {
    font-size: 0.68rem;
  }
  
  .footer {
    margin-top: 2px;
    font-size: 0.72rem;
  }
}
