/* Floating Music Player */
.music-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 17, 40, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 50px;
  padding: 8px 16px 8px 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
  cursor: pointer;
  user-select: none;
}

.music-player:hover {
  border-color: rgba(245, 197, 24, 0.4);
  box-shadow: 0 4px 30px rgba(245, 197, 24, 0.15);
}

.music-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c518, #e8a500);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.music-toggle:hover {
  transform: scale(1.1);
}

.music-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  color: #8888aa;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.music-label .song-name {
  display: block;
  color: #f5c518;
  font-size: 0.6rem;
  margin-top: 1px;
}

/* Equalizer bars animation */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-left: 4px;
}

.eq-bars .bar {
  width: 3px;
  background: #f5c518;
  border-radius: 1px;
  animation: eqBounce 0.8s ease-in-out infinite;
}

.eq-bars .bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq-bars .bar:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.eq-bars .bar:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.eq-bars .bar:nth-child(4) { height: 14px; animation-delay: 0.1s; }
.eq-bars .bar:nth-child(5) { height: 5px; animation-delay: 0.25s; }

.music-player.paused .eq-bars .bar {
  animation: none;
  height: 4px;
  opacity: 0.4;
}

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Volume slider */
.vol-slider {
  width: 50px;
  height: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: #f5c518;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 600px) {
  .music-label { display: none; }
  .music-player { padding: 6px 12px 6px 6px; }
}
