.audio-player-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.audio-player-container.playing {
  background-color: rgba(30, 30, 30, 0.7);
}

.audio-player-container:hover {
  transform: translateY(-5px);
}

.audio-controls {
  display: flex;
  align-items: center;
}

.play-pause-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  padding: 0;
  margin: 0 10px 0 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.play-pause-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.song-info {
  color: white;
  margin-right: 15px;
  font-family: 'InterTight-Regular', sans-serif;
  font-size: 14px;
}

.volume-container {
  display: flex;
  align-items: center;
  width: 120px;
}

.volume-slider {
  width: 80px;
  cursor: pointer;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin-left: 10px;
}

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

.volume-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .audio-player-container {
    bottom: 10px;
    right: 10px;
    padding: 8px 15px;
  }
  
  .song-info {
    display: none;
  }
  
  .volume-container {
    width: auto;
  }
  
  .volume-slider {
    width: 60px;
  }
}

/* Style for when music is muted */
.audio-muted .volume-btn,
.audio-muted .play-pause-btn {
  color: rgba(255, 255, 255, 0.5);
}

/* Animation for when music is playing */
@keyframes equalizer {
  0% { height: 5px; }
  50% { height: 15px; }
  100% { height: 5px; }
}

.equalizer {
  display: none;
  margin-left: 10px;
}

.audio-player-container.playing .equalizer {
  display: flex;
}

.equalizer-bar {
  width: 3px;
  background: white;
  margin: 0 2px;
  border-radius: 1px;
  animation: equalizer 0.8s infinite;
}

.equalizer-bar:nth-child(2) {
  animation-delay: 0.2s;
}

.equalizer-bar:nth-child(3) {
  animation-delay: 0.4s;
}

/* Close button */
.close-player {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: 10px;
  font-size: 16px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.close-player:hover {
  opacity: 1;
}
