/* ==========================================================================
   Winamp Classic Player Skin
   ========================================================================== */

/* ---------- Player Container ---------- */

.winamp-player {
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ---------- Main Section (above playlist) ---------- */

.winamp-main {
  background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 40%, #1a1a1a 100%);
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* ---------- Winamp Header ---------- */

.winamp-header {
  background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid #444;
}

.winamp-logo {
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: bold;
  text-shadow: 0 0 6px #00ff00;
  letter-spacing: 1px;
}

.winamp-header-close {
  width: 18px;
  height: 18px;
  background: linear-gradient(180deg, #555 0%, #333 100%);
  border: 1px solid #666;
  border-radius: 2px;
  color: #00ff00;
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.winamp-header-close:hover {
  background: linear-gradient(180deg, #e05a5a 0%, #a93226 100%);
  color: #fff;
}

/* ---------- Display Area ---------- */

.winamp-display {
  background: #000;
  border: 1px solid #333;
  border-radius: 2px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 52px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255,255,255,0.03);
}

.winamp-time {
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  text-shadow: 0 0 8px #00ff00, 0 0 3px #00cc00;
  line-height: 1.2;
}

.winamp-track-name {
  color: #00cc00;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  height: 14px;
  line-height: 14px;
}

.winamp-track-name.scrolling {
  animation: winamp-scroll-text 8s linear infinite;
  text-overflow: clip;
}

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

.winamp-info {
  color: #008800;
  font-family: 'Courier New', monospace;
  font-size: 9px;
  text-align: right;
  text-shadow: 0 0 4px #006600;
}

/* ---------- Video Area ---------- */

.winamp-video-area {
  background: #000;
  border: 2px solid #333;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.winamp-video-area.playing {
  border-color: #00cc00;
  box-shadow: 0 0 12px rgba(0, 204, 0, 0.2), inset 0 0 8px rgba(0, 204, 0, 0.05);
}

.winamp-video-area iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.winamp-video-placeholder {
  color: #333;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  text-align: center;
  user-select: none;
}

/* ---------- Seek Slider ---------- */

.winamp-seek {
  padding: 2px 4px;
}

.winamp-seek input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #00cc00 var(--seek-pct, 0%), #222 var(--seek-pct, 0%));
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  border: 1px solid #333;
}

.winamp-seek input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #44ff44 0%, #00cc00 100%);
  cursor: pointer;
  box-shadow: 0 0 6px #00ff00, 0 1px 2px rgba(0,0,0,0.5);
  border: 1px solid #009900;
}

.winamp-seek input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, #44ff44 0%, #00cc00 100%);
  cursor: pointer;
  border: 1px solid #009900;
  box-shadow: 0 0 6px #00ff00, 0 1px 2px rgba(0,0,0,0.5);
}

.winamp-seek input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
}

.winamp-seek input[type="range"]::-moz-range-progress {
  background: #00cc00;
  border-radius: 3px;
  height: 6px;
}

/* ---------- Transport Controls ---------- */

.winamp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.winamp-btn {
  width: 28px;
  height: 22px;
  background: linear-gradient(180deg, #444 0%, #2a2a2a 100%);
  border: 1px solid #555;
  border-radius: 2px;
  color: #00ff00;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', monospace;
  line-height: 1;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.winamp-btn:hover {
  background: linear-gradient(180deg, #555 0%, #3a3a3a 100%);
  border-color: #00cc00;
  text-shadow: 0 0 6px #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.winamp-btn:active {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  transform: translateY(0);
  box-shadow: none;
}

.winamp-btn.active {
  border-color: #00ff00;
  background: linear-gradient(180deg, #1a3a1a 0%, #0a2a0a 100%);
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.4), inset 0 0 6px rgba(0, 255, 0, 0.1);
  animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 0, 0.4), inset 0 0 6px rgba(0, 255, 0, 0.1); }
  50% { box-shadow: 0 0 14px rgba(0, 255, 0, 0.6), inset 0 0 10px rgba(0, 255, 0, 0.15); }
}

.winamp-btn-play {
  width: 32px;
  height: 22px;
}

.winamp-btn-play.playing {
  border-color: #00ff00;
  background: linear-gradient(180deg, #1a3a1a 0%, #0a2a0a 100%);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5), inset 0 0 6px rgba(0, 255, 0, 0.1);
  animation: btn-pulse 2s ease-in-out infinite;
}

/* ---------- Volume Slider ---------- */

.winamp-volume {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}

.winamp-volume-icon {
  color: #00cc00;
  font-size: 14px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  transition: color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}

.winamp-volume-icon:hover {
  transform: scale(1.15);
}

.winamp-volume-icon.muted {
  color: #664444;
}

.winamp-volume input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #00cc00 var(--vol-pct, 80%), #222 var(--vol-pct, 80%));
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  border: 1px solid #333;
}

.winamp-volume input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #44ff44 0%, #00cc00 100%);
  cursor: pointer;
  box-shadow: 0 0 4px #00ff00, 0 1px 2px rgba(0,0,0,0.5);
  border: 1px solid #009900;
}

.winamp-volume input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #44ff44 0%, #00cc00 100%);
  cursor: pointer;
  border: 1px solid #009900;
  box-shadow: 0 0 4px #00ff00, 0 1px 2px rgba(0,0,0,0.5);
}

.winamp-volume input[type="range"]::-moz-range-track {
  background: transparent;
  border: none;
}

.winamp-volume input[type="range"]::-moz-range-progress {
  background: #00cc00;
  border-radius: 3px;
  height: 6px;
}

/* ---------- Spectrum Analyzer ---------- */

.winamp-spectrum {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 24px;
  padding: 0 4px;
}

.winamp-spectrum-bar {
  flex: 1;
  border-radius: 1px 1px 0 0;
  min-height: 2px;
  transition: height 0.12s ease-out;
  background: linear-gradient(to top, #00cc00 0%, #88cc00 40%, #cccc00 65%, #ff8800 85%, #ff2200 100%);
  box-shadow: 0 0 3px rgba(0, 204, 0, 0.3);
}

.winamp-spectrum.paused .winamp-spectrum-bar {
  height: 2px !important;
  box-shadow: none;
  background: #1a3a1a;
}
