/* ========================================
   AUDIO PLAYER - Windows XP Style
   ======================================== */

.audio-player-window {
  position: fixed;
  bottom: 40px;
  right: 10px;
  width: 280px;
  z-index: 9998;
  background: #ece9d8;
  border: 2px outset #fff;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  font-family: "Tahoma", sans-serif;
}

.audio-player-titlebar {
  background: linear-gradient(180deg, #0054e3 0%, #0047d0 50%, #0054e3 100%);
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
}

.audio-player-titlebar-left {
  display: flex;
  align-items: center;
  gap: 5px;
}

.audio-player-titlebar img {
  width: 16px;
  height: 16px;
}

.audio-player-titlebar span {
  color: white;
  font-size: 11px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.audio-player-minimize {
  width: 16px;
  height: 14px;
  background: #c0c0c0;
  border: 1px outset #dfdfdf;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-player-minimize:hover {
  background: #d4d0c8;
}

.audio-player-minimize:active {
  border: 1px inset #808080;
}

.audio-player-content {
  padding: 10px;
  background: linear-gradient(180deg, #3a3a5c 0%, #2a2a4c 100%);
}

.audio-visualizer {
  height: 40px;
  background: #000;
  border: 2px inset #808080;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 5px;
  overflow: hidden;
}

.visualizer-bar {
  width: 6px;
  background: linear-gradient(180deg, #00ff00 0%, #00cc00 50%, #009900 100%);
  animation: visualizerPulse 0.3s ease-in-out infinite alternate;
}

.visualizer-bar:nth-child(1) { animation-delay: 0s; }
.visualizer-bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer-bar:nth-child(3) { animation-delay: 0.05s; }
.visualizer-bar:nth-child(4) { animation-delay: 0.15s; }
.visualizer-bar:nth-child(5) { animation-delay: 0.08s; }
.visualizer-bar:nth-child(6) { animation-delay: 0.12s; }
.visualizer-bar:nth-child(7) { animation-delay: 0.03s; }
.visualizer-bar:nth-child(8) { animation-delay: 0.18s; }
.visualizer-bar:nth-child(9) { animation-delay: 0.07s; }
.visualizer-bar:nth-child(10) { animation-delay: 0.14s; }

@keyframes visualizerPulse {
  0% { height: 5px; }
  100% { height: 30px; }
}

.audio-player-content.paused .visualizer-bar {
  animation: none;
  height: 5px;
}

.audio-track-info {
  color: #00ff00;
  font-size: 11px;
  font-family: 'Courier New', monospace;
  text-align: center;
  margin-bottom: 8px;
  background: #000;
  padding: 5px;
  border: 1px inset #808080;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-progress-container {
  background: #000;
  border: 1px inset #808080;
  height: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.audio-progress-bar {
  height: 100%;
  background: linear-gradient(180deg, #00ff00 0%, #009900 100%);
  width: 0%;
  transition: width 0.1s linear;
}

.audio-controls {
  display: flex;
  justify-content: center;
  gap: 5px;
}

.audio-btn {
  width: 32px;
  height: 24px;
  background: #c0c0c0;
  border: 2px outset #dfdfdf;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.audio-btn:hover {
  background: #d4d0c8;
}

.audio-btn:active {
  border: 2px inset #808080;
}

.audio-btn.playing {
  background: #a0c0a0;
}

.audio-time {
  color: #00ff00;
  font-size: 10px;
  font-family: 'Courier New', monospace;
  text-align: center;
  margin-top: 8px;
}

/* Minimized state */
.audio-player-window.minimized {
  width: 180px;
}

.audio-player-window.minimized .audio-player-content {
  display: none;
}
