/* ============================================================
   Winamp 2.x Skin — pixel-accurate dark metallic skin
   ============================================================ */

/* --- Main container --- */
#winamp-app {
  font-family: "Pixelated MS Sans Serif", Arial, sans-serif;
  font-size: 11px;
  background: #2B2B2B;
  color: #999;
  width: 275px;
  user-select: none;
  -webkit-user-select: none;
}

/* --- Title bar --- */
.winamp-titlebar {
  background: linear-gradient(180deg, #4A4A5A 0%, #2A2A3A 40%, #1A1A2A 100%);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 0;
  border-bottom: 1px solid #0A0A14;
  text-shadow: 1px 1px 0 #000;
  position: relative;
}

.winamp-titlebar::before,
.winamp-titlebar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
}

.winamp-titlebar::before {
  left: 0;
  background: linear-gradient(90deg, #3A3A4A, transparent);
}

.winamp-titlebar::after {
  right: 0;
  background: linear-gradient(270deg, #3A3A4A, transparent);
}

/* --- LCD display area --- */
.winamp-display {
  background: #0A0A14;
  border: 2px inset #1A1A2A;
  margin: 3px 4px;
  padding: 4px 6px;
  position: relative;
  overflow: hidden;
  min-height: 28px;
}

.winamp-title-scroll {
  color: #00FF00;
  font-family: "Pixelated MS Sans Serif", monospace;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  animation: winamp-marquee 8s linear infinite;
}

@keyframes winamp-marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.winamp-time {
  color: #00FF00;
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
  text-align: right;
  letter-spacing: 2px;
  text-shadow: 0 0 4px #00AA00;
  margin-top: 2px;
}

/* --- Seekbar --- */
.winamp-seekbar {
  height: 6px;
  background: #1A1A2A;
  border: 1px inset #0A0A14;
  margin: 2px 4px;
  cursor: pointer;
  position: relative;
}

.winamp-seek-fill {
  height: 100%;
  background: linear-gradient(180deg, #00DD00, #008800);
  width: 0%;
  transition: width 0.4s linear;
  box-shadow: 0 0 3px #00AA00;
}

/* --- Transport buttons row --- */
.winamp-transport {
  display: flex;
  justify-content: center;
  gap: 2px;
  padding: 3px 4px;
  background: #2B2B2B;
}

.winamp-btn {
  width: 22px;
  height: 18px;
  font-size: 8px;
  line-height: 14px;
  text-align: center;
  background: linear-gradient(180deg, #5A5A6A 0%, #3A3A4A 50%, #2A2A3A 100%);
  border: 1px outset #6A6A7A;
  color: #DDD;
  cursor: pointer;
  padding: 0;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.15), inset -1px -1px 0 rgba(0, 0, 0, 0.3);
}

.winamp-btn:hover {
  background: linear-gradient(180deg, #6A6A7A 0%, #4A4A5A 50%, #3A3A4A 100%);
  color: #FFF;
}

.winamp-btn:active {
  border-style: inset;
  background: linear-gradient(180deg, #2A2A3A 0%, #3A3A4A 50%, #4A4A5A 100%);
  box-shadow: inset -1px -1px 0 rgba(255, 255, 255, 0.15), inset 1px 1px 0 rgba(0, 0, 0, 0.3);
}

/* --- Volume slider --- */
.winamp-volume {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 3px;
  font-size: 9px;
  color: #888;
}

.winamp-volume span {
  flex-shrink: 0;
}

.winamp-volume input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1A1A2A;
  border: 1px inset #0A0A14;
  outline: none;
  cursor: pointer;
}

.winamp-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 12px;
  background: linear-gradient(180deg, #6A6A7A, #3A3A4A);
  border: 1px outset #7A7A8A;
  cursor: pointer;
}

.winamp-volume input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 12px;
  background: linear-gradient(180deg, #6A6A7A, #3A3A4A);
  border: 1px outset #7A7A8A;
  cursor: pointer;
}

/* --- YouTube player container --- */
#winamp-yt-container {
  background: #000;
}

/* --- Playlist panel --- */
.winamp-playlist {
  background: #1E1E2E;
  border-top: 2px groove #3A3A4A;
}

.winamp-pl-header {
  background: linear-gradient(180deg, #3A3A4A 0%, #1E1E2E 100%);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 2px 0;
  border-bottom: 1px solid #0A0A14;
  text-shadow: 1px 1px 0 #000;
}

.winamp-pl-list {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #3A3A4A #1E1E2E;
}

.winamp-pl-list::-webkit-scrollbar {
  width: 10px;
}

.winamp-pl-list::-webkit-scrollbar-track {
  background: #1E1E2E;
}

.winamp-pl-list::-webkit-scrollbar-thumb {
  background: #3A3A4A;
  border: 1px solid #5A5A6A;
}

.winamp-pl-item {
  padding: 1px 6px;
  font-size: 10px;
  font-family: "Pixelated MS Sans Serif", monospace;
  color: #00CC00;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid #16162A;
}

.winamp-pl-item:hover {
  background: #2A2A4A;
}

.winamp-pl-item.active {
  background: #0000AA;
  color: #FFFFFF;
}

/* --- Beveled separator between player and playlist --- */
.winamp-separator {
  height: 2px;
  background: linear-gradient(180deg, #1A1A2A, #4A4A5A);
  margin: 0;
}

/* --- Kbps / kHz info row (classic Winamp detail) --- */
.winamp-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 8px;
  color: #00AA00;
  font-family: monospace;
  background: #0A0A14;
  margin: 0 4px;
  border-left: 2px inset #1A1A2A;
  border-right: 2px inset #1A1A2A;
}

/* --- Stereo/mono indicators --- */
.winamp-stereo {
  display: flex;
  gap: 6px;
  padding: 0 6px 2px;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: monospace;
}

.winamp-stereo span {
  color: #444;
}

.winamp-stereo span.lit {
  color: #00DD00;
  text-shadow: 0 0 3px #00AA00;
}
