/* Minecraft-style Music Player */
.mc-music-player {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Minecraft', monospace;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

.mc-player-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.mc-player-btn {
  width: 48px;
  height: 48px;
  border: none;
  cursor: pointer;
  position: relative;
  image-rendering: pixelated;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
  padding: 0;
  
  /* Nine-slice scaling like Minecraft */
  border-image-source: url('/assets/minecraft/textures/gui/sprites/widget/button.png');
  border-image-slice: 3 3 3 3 fill;
  border-image-width: 3px;
  border-image-outset: 0;
  border-image-repeat: stretch;
  border-style: solid;
  border-width: 3px;
  box-sizing: border-box;
}

.mc-player-btn:hover {
  border-image-source: url('/assets/minecraft/textures/gui/sprites/widget/button_highlighted.png');
}

.mc-player-btn:active {
  border-image-source: url('/assets/minecraft/textures/gui/sprites/widget/button.png');
  padding-top: 1px;
}

.mc-player-btn:disabled {
  border-image-source: url('/assets/minecraft/textures/gui/sprites/widget/button_disabled.png');
  cursor: not-allowed;
}

.mc-player-btn img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
  pointer-events: none;
  display: block;
}

/* Volume Slider */
.mc-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.mc-volume-icon {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
}

.mc-volume-slider {
  width: 140px;
  height: 14px;
  background: url('/assets/minecraft/textures/gui/sprites/widget/slider.png');
  background-size: 100% 100%;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
}

.mc-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 8px;
  height: 20px;
  background: url('/assets/minecraft/textures/gui/sprites/widget/slider_handle.png');
  background-size: cover;
  cursor: pointer;
  image-rendering: pixelated;
}

.mc-volume-slider::-webkit-slider-thumb:hover {
  background-image: url('/assets/minecraft/textures/gui/sprites/widget/slider_handle_highlighted.png');
}

.mc-volume-slider::-moz-range-thumb {
  width: 8px;
  height: 20px;
  background: url('/assets/minecraft/textures/gui/sprites/widget/slider_handle.png');
  background-size: cover;
  border: none;
  cursor: pointer;
  image-rendering: pixelated;
}

.mc-volume-slider::-moz-range-thumb:hover {
  background-image: url('/assets/minecraft/textures/gui/sprites/widget/slider_handle_highlighted.png');
}

.mc-volume-text {
  color: #fff;
  font-size: 13px;
  text-shadow: 2px 2px 0 #3f3f3f;
  min-width: 35px;
  text-align: right;
}

/* Now Playing Info */
.mc-now-playing {
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  text-shadow: 2px 2px 0 #3f3f3f;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-now-playing.hidden {
  display: none;
}

/* Removed pulse animation - conflicts with sprite animation */

/* Responsive */
@media (max-width: 768px) {
  .mc-music-player {
    top: 10px;
    left: 10px;
  }
  
  .mc-volume-slider {
    width: 60px;
  }
  
  .mc-now-playing {
    max-width: 150px;
    font-size: 10px;
  }
}
