/* ==========================================================================
   skin-classic.css — WINAMP 2026
   Classic skin: Retro CRT + brushed aluminum hardware.
   Green phosphor display, metallic stereo-equipment feel.
   Activated via body.classic-active
   ========================================================================== */

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

/* Slow metallic sheen sweep across title bar */
@keyframes classic-sheen {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Very subtle green glow pulse on LCD */
@keyframes classic-lcd-pulse {
  0%, 100% {
    box-shadow:
      inset 0 2px 8px rgba(0, 0, 0, 0.7),
      inset 0 0 20px rgba(0, 0, 0, 0.4),
      inset 0 0 30px rgba(0, 255, 102, 0.04);
  }
  50% {
    box-shadow:
      inset 0 2px 8px rgba(0, 0, 0, 0.7),
      inset 0 0 20px rgba(0, 0, 0, 0.4),
      inset 0 0 40px rgba(0, 255, 102, 0.08);
  }
}

/* --------------------------------------------------------------------------
   1. Player Container — Brushed metal with green-tinted outer glow
   -------------------------------------------------------------------------- */
body.classic-active .player {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.012) 0px,
      transparent 1px,
      transparent 3px,
      rgba(255, 255, 255, 0.008) 4px
    ),
    linear-gradient(180deg, var(--bg-player) 0%, var(--bg-player) 100%);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 255, 102, 0.08),
    0 0 80px rgba(0, 255, 102, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   2. Title Bar — Brushed aluminum with metallic sheen animation
   -------------------------------------------------------------------------- */
body.classic-active .title-bar {
  background:
    linear-gradient(
      180deg,
      rgba(160, 160, 170, 0.12) 0%,
      rgba(80, 80, 90, 0.06) 40%,
      rgba(40, 40, 50, 0.08) 60%,
      rgba(60, 60, 70, 0.1) 100%
    ),
    linear-gradient(180deg, var(--bg-panel), var(--bg-deep));
  position: relative;
  overflow: hidden;
}

/* Metallic sheen sweep — very slow, subtle */
body.classic-active .title-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 60%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: classic-sheen 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Green LED dots instead of plain circles */
body.classic-active .chrome-dot {
  background: radial-gradient(
    circle at 40% 35%,
    rgba(0, 255, 102, 0.9) 0%,
    rgba(0, 200, 80, 0.7) 40%,
    rgba(0, 120, 50, 0.5) 70%,
    rgba(0, 60, 25, 0.3) 100%
  );
  border: 1px solid rgba(0, 255, 102, 0.2);
  box-shadow:
    0 0 4px rgba(0, 255, 102, 0.4),
    0 0 8px rgba(0, 255, 102, 0.15),
    inset 0 -1px 1px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   3. LCD Section — CRT scanlines, phosphor glow, deep recess
   -------------------------------------------------------------------------- */
body.classic-active .lcd-section {
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.7),
    inset 0 0 20px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(0, 255, 102, 0.05);
  animation: classic-lcd-pulse 4s ease-in-out infinite;
}

/* Stronger CRT scanlines */
body.classic-active .lcd-section::after {
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.1) 1px,
    rgba(0, 0, 0, 0.1) 2px
  );
}

/* Deeper vignette for CRT curvature feel */
body.classic-active .lcd-section::before {
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

/* --------------------------------------------------------------------------
   4. Transport Buttons — Metallic gradient, physical pressed state
   -------------------------------------------------------------------------- */
body.classic-active .transport-btn {
  background: linear-gradient(
    180deg,
    rgba(140, 140, 150, 0.15) 0%,
    rgba(100, 100, 110, 0.08) 30%,
    rgba(50, 50, 60, 0.1) 70%,
    rgba(70, 70, 80, 0.12) 100%
  );
  border-color: rgba(100, 100, 120, 0.3);
  /* Light catch on top and left edges */
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.05),
    inset -1px -1px 0 rgba(0, 0, 0, 0.15);
}

body.classic-active .transport-btn:hover {
  background: linear-gradient(
    180deg,
    rgba(160, 160, 170, 0.18) 0%,
    rgba(110, 110, 120, 0.1) 30%,
    rgba(60, 60, 70, 0.12) 70%,
    rgba(80, 80, 90, 0.14) 100%
  );
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.06),
    inset -1px -1px 0 rgba(0, 0, 0, 0.15),
    0 0 8px var(--accent-glow-wide);
}

/* Physical pressed state — deeper inset */
body.classic-active .transport-btn:active {
  background: linear-gradient(
    180deg,
    rgba(30, 30, 40, 0.2) 0%,
    rgba(50, 50, 60, 0.1) 100%
  );
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Play button retains accent behavior but gets metallic treatment */
body.classic-active .transport-btn.play-btn {
  background: linear-gradient(
    180deg,
    rgba(0, 255, 102, 0.06) 0%,
    rgba(100, 100, 110, 0.08) 30%,
    rgba(50, 50, 60, 0.1) 70%,
    rgba(0, 255, 102, 0.04) 100%
  );
}

body.classic-active .transport-btn.play-btn:active {
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 0 6px rgba(0, 255, 102, 0.1);
}

/* --------------------------------------------------------------------------
   5. EQ Sliders — Deeper grooves, green glow on interaction
   -------------------------------------------------------------------------- */
body.classic-active .eq-slider {
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.7),
    inset 0 0 3px rgba(0, 0, 0, 0.4),
    inset 1px 0 2px rgba(0, 0, 0, 0.3),
    inset -1px 0 2px rgba(0, 0, 0, 0.3);
}

/* Green glow on thumb while interacting — WebKit */
body.classic-active .eq-slider:active::-webkit-slider-thumb {
  box-shadow:
    0 0 3px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(0, 255, 102, 0.5),
    0 0 16px rgba(0, 255, 102, 0.25);
  border-color: rgba(0, 255, 102, 0.3);
}

/* Green glow on thumb while interacting — Firefox */
body.classic-active .eq-slider:active::-moz-range-thumb {
  box-shadow:
    0 0 3px rgba(0, 0, 0, 0.4),
    0 0 8px rgba(0, 255, 102, 0.5),
    0 0 16px rgba(0, 255, 102, 0.25);
  border-color: rgba(0, 255, 102, 0.3);
}

/* --------------------------------------------------------------------------
   6. Visualizer — Stronger green glow, CRT curvature inner glow
   -------------------------------------------------------------------------- */
body.classic-active .viz-container {
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(0, 255, 102, 0.06);
}

body.classic-active .viz-container::before {
  box-shadow:
    inset 0 0 16px rgba(0, 255, 102, 0.1),
    inset 0 0 4px rgba(0, 0, 0, 0.5);
  /* Subtle CRT curvature via rounded inner glow */
  border-radius: 4px;
}

body.classic-active .viz-container.is-expanded::before {
  box-shadow:
    inset 0 0 30px rgba(0, 255, 102, 0.12),
    inset 0 0 6px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   7. Playlist — Subtle ribbed/textured background
   -------------------------------------------------------------------------- */
body.classic-active .playlist-panel {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      transparent 3px,
      rgba(255, 255, 255, 0.008) 3px,
      rgba(255, 255, 255, 0.008) 4px
    ),
    var(--bg-deep);
}

body.classic-active .playlist-header {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.01) 0px,
      transparent 1px,
      transparent 3px,
      rgba(255, 255, 255, 0.006) 4px
    ),
    var(--bg-panel);
}

/* --------------------------------------------------------------------------
   8. Reduced Motion — Respect user preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.classic-active .title-bar::after {
    animation: none;
  }

  body.classic-active .lcd-section {
    animation: none;
  }
}
