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

body {
  font-family: 'Quicksand', sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #0d2137 20%, #0f3049 40%, #0a3a4a 60%, #0d2847 80%, #0a1628 100%);
  min-height: 100vh;
  overflow-x: hidden;
  color: white;
}

#bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(1px);
}

.bubble-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle at 35% 35%, rgba(100, 220, 255, 0.5), rgba(60, 180, 220, 0.1));
  top: 10%; right: 15%;
  animation: float1 25s ease-in-out infinite;
}
.bubble-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle at 35% 35%, rgba(120, 200, 255, 0.4), rgba(80, 160, 220, 0.1));
  top: 50%; left: 10%;
  animation: float2 30s ease-in-out infinite;
}
.bubble-3 {
  width: 150px; height: 150px;
  background: radial-gradient(circle at 35% 35%, rgba(140, 230, 255, 0.35), rgba(70, 190, 230, 0.05));
  bottom: 20%; right: 25%;
  animation: float3 20s ease-in-out infinite;
}
.bubble-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle at 40% 40%, rgba(80, 200, 240, 0.25), rgba(40, 130, 180, 0.05));
  top: -5%; left: 30%;
  animation: float4 35s ease-in-out infinite;
}
.bubble-5 {
  width: 120px; height: 120px;
  background: radial-gradient(circle at 35% 35%, rgba(160, 240, 255, 0.4), rgba(100, 200, 240, 0.1));
  top: 70%; left: 60%;
  animation: float5 22s ease-in-out infinite;
}
.bubble-6 {
  width: 250px; height: 250px;
  background: radial-gradient(circle at 30% 30%, rgba(90, 180, 220, 0.3), transparent);
  top: 30%; right: 5%;
  animation: float6 28s ease-in-out infinite;
}
.bubble-7 {
  width: 180px; height: 180px;
  background: radial-gradient(circle at 40% 40%, rgba(110, 210, 250, 0.25), transparent);
  bottom: 10%; left: 25%;
  animation: float1 32s ease-in-out infinite reverse;
}
.bubble-8 {
  width: 100px; height: 100px;
  background: radial-gradient(circle at 35% 35%, rgba(150, 230, 255, 0.35), transparent);
  top: 15%; left: 5%;
  animation: float3 18s ease-in-out infinite;
}
.bubble-9 {
  width: 350px; height: 350px;
  background: radial-gradient(circle at 45% 45%, rgba(70, 160, 200, 0.2), transparent);
  bottom: -10%; right: 10%;
  animation: float2 40s ease-in-out infinite;
}
.bubble-10 {
  width: 80px; height: 80px;
  background: radial-gradient(circle at 30% 30%, rgba(170, 240, 255, 0.4), transparent);
  top: 45%; left: 45%;
  animation: float5 15s ease-in-out infinite reverse;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.aurora-1 {
  width: 600px; height: 200px;
  background: linear-gradient(90deg, rgba(0,200,200,0.5), rgba(100,50,200,0.3), rgba(0,150,255,0.4));
  top: 20%; left: -10%;
  transform: rotate(-15deg);
  animation: aurora 20s ease-in-out infinite;
}
.aurora-2 {
  width: 500px; height: 180px;
  background: linear-gradient(90deg, rgba(0,180,255,0.4), rgba(150,50,200,0.2), rgba(0,220,180,0.3));
  bottom: 15%; right: -10%;
  transform: rotate(10deg);
  animation: aurora 25s ease-in-out infinite reverse;
}

.light-flare {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}
.flare-1 {
  width: 100px; height: 100px;
  background: rgba(200, 240, 255, 0.15);
  top: 25%; left: 60%;
  animation: flare 8s ease-in-out infinite;
}
.flare-2 {
  width: 60px; height: 60px;
  background: rgba(255, 220, 180, 0.1);
  top: 60%; left: 20%;
  animation: flare 12s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.02); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, -30px) scale(1.08); }
  66% { transform: translate(25px, 15px) scale(0.92); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -50px); }
}
@keyframes float4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-50px, 30px) scale(1.1); }
  70% { transform: translate(30px, -20px) scale(0.9); }
}
@keyframes float5 {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(20px, 30px); }
  60% { transform: translate(-30px, -10px); }
}
@keyframes float6 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 40px) scale(1.05); }
}
@keyframes aurora {
  0%, 100% { transform: rotate(-15deg) translateX(0); opacity: 0.12; }
  50% { transform: rotate(-10deg) translateX(50px); opacity: 0.18; }
}
@keyframes flare {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(1.3); }
}

/* Glass panel base */
.glass-panel {
  background: linear-gradient(145deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.3),
    0 2px 8px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15),
    inset 0 -1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
  z-index: 1;
}

/* Title bar */
.title-bar {
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px 16px 0 0;
  position: relative;
}
.title-bar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Glossy button */
.glossy-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.12) 100%);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.glossy-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.glossy-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.18) 100%);
  box-shadow:
    0 2px 12px rgba(100,200,255,0.3),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.1);
}
.glossy-btn:active {
  transform: scale(0.93);
  box-shadow:
    0 1px 4px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2),
    inset 0 2px 4px rgba(0,0,0,0.2);
}

.glossy-btn-play {
  background: linear-gradient(180deg, rgba(100,220,255,0.4) 0%, rgba(60,180,220,0.15) 50%, rgba(80,200,240,0.25) 100%);
  border-color: rgba(100,220,255,0.35);
}
.glossy-btn-play:hover {
  background: linear-gradient(180deg, rgba(100,220,255,0.55) 0%, rgba(60,180,220,0.2) 50%, rgba(80,200,240,0.35) 100%);
  box-shadow:
    0 2px 16px rgba(100,220,255,0.4),
    0 2px 8px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Progress bar */
.progress-track {
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.15));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  height: 8px;
  cursor: pointer;
  position: relative;
  overflow: visible;
}
.progress-fill {
  background: linear-gradient(180deg, rgba(100,220,255,0.9), rgba(60,180,220,0.7));
  border-radius: 10px;
  height: 100%;
  position: relative;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(100,220,255,0.4);
}
.progress-thumb {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9), rgba(100,220,255,0.6));
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(100,220,255,0.5), 0 2px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.progress-thumb:hover {
  box-shadow: 0 0 16px rgba(100,220,255,0.7), 0 2px 6px rgba(0,0,0,0.4);
}

/* Volume slider */
.volume-track {
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.15));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  height: 6px;
  cursor: pointer;
  position: relative;
}
.volume-fill {
  background: linear-gradient(180deg, rgba(100,220,255,0.8), rgba(60,180,220,0.6));
  border-radius: 6px;
  height: 100%;
  box-shadow: 0 0 6px rgba(100,220,255,0.3);
}
.volume-thumb {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.9), rgba(100,220,255,0.5));
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(100,220,255,0.4), 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* Playlist */
.playlist-row {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.playlist-row:hover {
  background: rgba(100,220,255,0.1);
  border-color: rgba(100,220,255,0.15);
  box-shadow: 0 0 12px rgba(100,220,255,0.08);
}
.playlist-row.active {
  background: linear-gradient(135deg, rgba(255,180,80,0.2), rgba(255,140,50,0.1));
  border-color: rgba(255,180,80,0.25);
  box-shadow: 0 0 12px rgba(255,180,80,0.1);
}
.playlist-row.even {
  background: rgba(255,255,255,0.02);
}

/* Drop zone */
.drop-zone {
  border: 2px dashed rgba(100,220,255,0.4);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
}
.drop-zone.active {
  border-color: rgba(100,220,255,0.8);
  background: rgba(100,220,255,0.08);
  box-shadow: 0 0 30px rgba(100,220,255,0.15);
}
.drop-zone .dash-anim {
  animation: dash-rotate 15s linear infinite;
}

@keyframes dash-rotate {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -200; }
}

@keyframes spin-disc {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spinning {
  animation: spin-disc 4s linear infinite;
}

@keyframes eq-bar {
  0%, 100% { height: 3px; }
  50% { height: 14px; }
}

/* Scrollbar */
.custom-scroll::-webkit-scrollbar {
  width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(100,220,255,0.4), rgba(60,180,220,0.2));
  border-radius: 3px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(100,220,255,0.6), rgba(60,180,220,0.3));
}

/* Toast */
.toast {
  background: linear-gradient(145deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.7s;
  padding: 12px 20px;
  color: white;
  font-size: 14px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* Toggle pill */
.toggle-pill {
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}
.toggle-pill.on {
  background: linear-gradient(180deg, rgba(100,220,255,0.3), rgba(60,180,220,0.1));
  border-color: rgba(100,220,255,0.35);
  color: rgba(255,255,255,0.9);
  box-shadow: 0 0 10px rgba(100,220,255,0.2);
}
.toggle-pill:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}

/* Visualizer bars */
.viz-bar {
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, rgba(100,220,255,0.8), rgba(60,180,220,0.4));
  box-shadow: 0 0 4px rgba(100,220,255,0.3);
  position: relative;
}
.viz-bar::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(100,220,255,0.15), transparent);
  transform: scaleY(-1);
  opacity: 0.4;
}

/* Album art frame */
.album-frame {
  border-radius: 12px;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
  position: relative;
}
.album-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.album-reflection {
  transform: scaleY(-1);
  opacity: 0.15;
  filter: blur(4px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.4), transparent);
}

/* Search input */
.search-input {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 14px 6px 32px;
  color: white;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  width: 100%;
}
.search-input:focus {
  border-color: rgba(100,220,255,0.4);
  box-shadow: 0 0 12px rgba(100,220,255,0.15);
  background: rgba(0,0,0,0.3);
}
.search-input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* Responsive */
@media (max-width: 640px) {
  .glass-panel {
    border-radius: 12px;
  }
  .title-bar {
    border-radius: 12px 12px 0 0;
  }
}