/* =========================================================
   THE CHUCKLE CRUSADE — MEDIA PLAYER THEME
========================================================= */

/* Overriding the global background to be a bit darker for the player to pop */
body {
  background-color: #000000;
}

/* Container for the whole player stack */
.media-player {
  max-width: 400px;
  margin: 40px auto;
  font-family: var(--mono);
}

/* General window styling (The 90s 3D bevel effect) */
.player-window, .playlist-window {
  background-color: #2b2d30;
  border: 3px outset #4a4d52;
  margin-bottom: 10px;
  padding: 4px;
}

/* Title bars */
.title-bar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: white;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.window-controls {
  letter-spacing: 2px;
  cursor: pointer;
}

/* The neon digital screen */
.player-screen {
  background-color: #000000;
  border: 3px inset #333;
  padding: 8px;
  color: #00ff00; /* Classic Winamp Green */
  margin-bottom: 8px;
}

.screen-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #003300;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.track-time {
  font-size: 24px;
  font-weight: bold;
}

.kbps {
  font-size: 10px;
  color: #00cc00;
}

.track-scroller {
  font-size: 12px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

/* Playback Buttons */
.player-controls {
  display: flex;
  gap: 4px;
}

.btn {
  background-color: #ced0d4;
  border: 2px outset #ffffff;
  color: #000;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  flex-grow: 1;
}

.btn:active {
  border-style: inset;
  background-color: #b0b2b6;
}

.btn-eject {
  flex-grow: 0;
}

/* Playlist Area */
.playlist-content {
  background-color: #000000;
  border: 3px inset #333;
  color: #00ff00;
  padding: 4px;
  height: 150px;
  overflow-y: auto;
}

.track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}

.track-list li {
  padding: 2px 4px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.track-list li:hover {
  background-color: #003300;
}

.active-track {
  background-color: #000080;
  color: #ffffff;
}
.active-track:hover {
  background-color: #0000aa !important;
}

/* --- THE FAKE EQUALIZER ANIMATION --- */
.visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.bar {
  width: 12px;
  background-color: #00ff00;
  border-top: 1px solid #ffffff;
  animation: eq-bounce 0.5s infinite alternate;
}

/* Staggering the animation times so they look random */
.b1 { animation-duration: 0.4s; }
.b2 { animation-duration: 0.6s; }
.b3 { animation-duration: 0.3s; }
.b4 { animation-duration: 0.7s; }
.b5 { animation-duration: 0.5s; }
.b6 { animation-duration: 0.45s; }
.b7 { animation-duration: 0.55s; }
.b8 { animation-duration: 0.35s; }

@keyframes eq-bounce {
  0% { height: 2px; }
  100% { height: 18px; }
}

/* =========================================================
   VOLUME SLIDER STYLING
========================================================= */
#volume-slider {
  margin-left: 8px;
  background: #000;
  border: 1px solid #444;
  accent-color: #00ff00; /* Makes the slider match your green screen text */
  cursor: ew-resize;
  vertical-align: middle;
}