/* Volume Controls */
.volume-container {
  position: relative;
  display: inline-block;
}

/* Volume Slider Container - Taller */
.volume-slider-container {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 20px 15px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  min-width: 70px;
  min-height: 150px;
  backdrop-filter: blur(10px);
}

.volume-slider-container::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

/* Volume Slider - Vertical and Taller */
.volume-slider {
  -webkit-appearance: slider-vertical;
  appearance: none;
  width: 6px;
  height: 120px;
  background: rgba(255, 255, 255, 0.3);
  outline: none;
  border-radius: 3px;
  cursor: pointer;
  writing-mode: bt-lr; /* IE */
  -webkit-appearance: slider-vertical; /* WebKit */
  transform: rotate(0deg); /* Ensure no rotation */
}

/* Fallback for browsers that don't support slider-vertical */
@supports not (-webkit-appearance: slider-vertical) {
  .volume-slider {
    width: 120px;
    height: 6px;
    transform: rotate(-90deg);
    transform-origin: center;
  }
  
  .volume-slider::-webkit-slider-track,
  .volume-slider::-moz-range-track {
    width: 120px;
    height: 6px;
  }
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: none;
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-track {
  width: 6px;
  height: 120px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.volume-slider::-moz-range-track {
  width: 6px;
  height: 120px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  border: none;
}

/* Volume Percentage */
.volume-percentage {
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  min-width: 35px;
}

/* Show volume slider on hover and focus */
.volume-container:hover .volume-slider-container,
.volume-container:focus-within .volume-slider-container,
.volume-slider-container:hover {
  display: flex;
}

/* Mute Button Styles */
#muteButton {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

#muteButton:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#muteButton:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}