#music-player-popup {
  width: 320px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(30, 30, 40, 0.22);
  box-shadow: 0 4px 32px 0 #a259ff33, 0 1.5px 8px 0 #0006;
  border-radius: 18px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  padding: 12px 18px;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin-bottom: 0;
  margin-top: 0;
  border: 1.5px solid rgba(162,89,255,0.13);
}
#music-player-popup .music-icon {
  width: 36px;
  height: 36px;
  background: rgba(162,89,255,0.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 8px #a259ff22;
}
#music-player-popup .music-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#music-player-popup .music-track-select {
  width: 100%;
  background: rgba(24,28,47,0.22);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.02rem;
  padding: 4px 8px 4px 8px;
  margin-bottom: 2px;
  outline: none;
  box-shadow: 0 0 0 1.5px #a259ff33;
  transition: box-shadow 0.2s;
  appearance: none;
}
#music-player-popup .music-track-select:focus {
  box-shadow: 0 0 0 2.5px #a259ff88;
}
#music-player-popup .music-progress {
  width: 100%;
  height: 5px;
  background: rgba(162,89,255,0.10);
  border-radius: 3px;
  margin-top: 4px;
  overflow: hidden;
  box-shadow: 0 0 6px #a259ff33;
}
#music-player-popup .music-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #a259ff 0%, #00ffc3 100%);
  width: 0%;
  border-radius: 3px;
  transition: width 0.1s;
  box-shadow: 0 0 8px #a259ff55;
}
#music-player-popup .music-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
#music-player-popup .music-btn {
  background: linear-gradient(90deg, #a259ff 0%, #00ffc3 100%);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 7px 13px;
  border-radius: 50%;
  box-shadow: 0 0 8px #a259ff33;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
}
#music-player-popup .music-btn:hover {
  background: linear-gradient(90deg, #00ffc3 0%, #a259ff 100%);
  color: #fff;
  box-shadow: 0 0 16px #00ffc388;
  transform: scale(1.08);
}
#music-player-popup .music-time {
  font-size: 0.93em;
  color: #a0ffaa;
  margin-top: 2px;
  min-width: 44px;
  text-align: center;
  letter-spacing: 0.5px;
}
#music-player-popup .music-volume {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
#music-player-popup .music-volume-icon {
  font-size: 1.1em;
  color: #a0ffaa;
}
#music-player-popup .music-volume-slider {
  width: 70px;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
  outline: none;
  accent-color: #a259ff;
}
.volume-fab {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 3000;
  background: rgba(24,28,47,0.55);
  box-shadow: 0 2px 12px #0005, 0 0 0 1.5px #a259ff33;
  border-radius: 16px;
  border: 1.5px solid rgba(162,89,255,0.10);
  display: flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  transition: box-shadow 0.18s, background 0.18s, width 0.3s, height 0.3s, transform 0.18s, opacity 0.18s;
  width: 54px;
  height: 54px;
  cursor: pointer;
  overflow: visible;
  opacity: 0.98;
  transform: scale(1);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
.volume-fab .volume-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: none;
  box-shadow: 0 0 8px 1px #a259ff33;
  transition: box-shadow 0.18s;
}
.volume-fab:hover .volume-fab-icon, .volume-fab:focus-within .volume-fab-icon {
  box-shadow: 0 0 16px 2px #a259ff77;
}
.volume-fab:hover, .volume-fab:focus-within {
  width: 220px;
  background: rgba(24,28,47,0.72);
  box-shadow: 0 4px 18px #a259ff33, 0 2px 12px #0006;
  opacity: 1;
  transform: scale(1.04);
}
.volume-fab .volume-fab-slider {
  opacity: 0;
  width: 0;
  margin-left: 0;
  overflow: hidden;
  transition: opacity 0.22s, width 0.3s, margin-left 0.3s;
  display: flex;
  align-items: center;
}
.volume-fab:hover .volume-fab-slider, .volume-fab:focus-within .volume-fab-slider {
  opacity: 1;
  width: 140px;
  margin-left: 16px;
}
#fab-volume-slider.music-volume-slider {
  width: 120px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(162,89,255,0.18) 0%, rgba(0,255,195,0.18) 100%);
  outline: none;
  box-shadow: none;
  accent-color: #a259ff;
  transition: background 0.18s;
}
#fab-volume-slider.music-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1.5px #a259ff88;
  border: 1.5px solid #a259ff44;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s;
  margin-top: -3.5px;
}
#fab-volume-slider.music-volume-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 12px 3px #a259ffcc;
}
#fab-volume-slider.music-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1.5px #a259ff88;
  border: 1.5px solid #a259ff44;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s;
  margin-top: -3.5px;
}
#fab-volume-slider.music-volume-slider:focus::-moz-range-thumb {
  box-shadow: 0 0 12px 3px #a259ffcc;
}
#fab-volume-slider.music-volume-slider::-ms-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1.5px #a259ff88;
  border: 1.5px solid #a259ff44;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s;
  margin-top: -3.5px;
}
#fab-volume-slider.music-volume-slider:focus::-ms-thumb {
  box-shadow: 0 0 12px 3px #a259ffcc;
}
#fab-volume-slider.music-volume-slider::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(162,89,255,0.18) 0%, rgba(0,255,195,0.18) 100%);
}
#fab-volume-slider.music-volume-slider::-ms-fill-lower {
  background: rgba(162,89,255,0.18);
}
#fab-volume-slider.music-volume-slider::-ms-fill-upper {
  background: rgba(0,255,195,0.18);
}
@media (max-width: 500px) {
  #music-player-popup {
    width: 98vw;
    min-width: 0;
    padding: 8px 2vw;
  }
}
@media (max-width: 600px) {
  .volume-fab {
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    padding: 0.3rem 0.3rem;
  }
  .volume-fab:hover, .volume-fab:focus-within {
    width: 160px;
  }
  .volume-fab:hover .volume-fab-slider, .volume-fab:focus-within .volume-fab-slider {
    width: 80px;
    margin-left: 8px;
  }
  #fab-volume-slider.music-volume-slider {
    width: 70px;
  }
} 