button svg {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  pointer-events: none;
}

.audio-player {
  background-color: #9c5bb4;
  border-radius: 20px;
  padding: 25px;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  color: white;
  width: 300px;
}

.song-info {
  text-align: center;
  margin-bottom: 25px;
}

.song-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.song-artist {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
}

.progress-container {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-bottom: 20px;
  cursor: pointer;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #5b7d9c, #9c5b66);
  border-radius: 3px;
  width: 0%;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.play-pause-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ff6b6b;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

#nextbutton {
  position: relative;
  font-size: 24px;
  color: white;
}

#nextbutton.loop-off svg {
  opacity: 0.3;
}

.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 15px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-slider {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
}

.volume-icon {
  font-size: 16px;
  opacity: 0.8;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}