/* ==========================================================================
   NEON SKIN — Cyberpunk Nightclub
   Activated via body.neon-active
   Hot pink / magenta neon signs, dark alley vibes, heavy glow, scanlines.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    text-shadow:
      0 0 4px #ff2d95,
      0 0 11px #ff2d95,
      0 0 19px #ff2d95,
      0 0 40px #ff007b,
      0 0 80px #ff007b;
  }
  20%, 24%, 55% {
    opacity: 0.85;
    text-shadow:
      0 0 2px #ff2d9580,
      0 0 6px #ff2d9540;
  }
}

@keyframes neon-pulse {
  0%, 100% {
    box-shadow:
      0 0 5px #ff2d95,
      0 0 15px #ff2d9580,
      0 0 30px #ff2d9540;
  }
  50% {
    box-shadow:
      0 0 8px #ff2d95,
      0 0 25px #ff2d95a0,
      0 0 50px #ff2d9560,
      0 0 80px #ff007b30;
  }
}

@keyframes neon-scanline {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes neon-flash {
  0% {
    background-color: #ff2d9500;
  }
  15% {
    background-color: #ff2d9560;
  }
  100% {
    background-color: #ff2d9500;
  }
}

@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.97; }
  75% { opacity: 0.99; }
}

/* --------------------------------------------------------------------------
   1. Player Container
   -------------------------------------------------------------------------- */

body.neon-active .player {
  background:
    /* noise / grain texture */
    repeating-conic-gradient(
      #ffffff06 0% 25%, transparent 0% 50%
    ) 0 0 / 4px 4px,
    linear-gradient(180deg, #1a0a1f 0%, #0d0512 40%, #10061a 100%);
  border: 1px solid #ff2d9540;
  box-shadow:
    /* inner thin line */
    inset 0 0 1px 1px #ff2d9530,
    /* outer glow spread */
    0 0 8px #ff2d95,
    0 0 20px #ff2d9580,
    0 0 40px #ff2d9540,
    0 0 80px #ff007b20;
  animation: neon-pulse 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   2. Title Bar
   -------------------------------------------------------------------------- */

body.neon-active .title-bar {
  position: relative;
  background:
    /* scanlines */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      #00000030 2px,
      #00000030 4px
    ),
    linear-gradient(180deg, #1a0a20, #0f0618);
  border-bottom: 1px solid #ff2d9560;
  box-shadow: 0 2px 12px #ff2d9550;
}

body.neon-active .title-bar .title-text,
body.neon-active .title-bar .app-title {
  animation: neon-flicker 3s steps(1) infinite;
  color: #ff2d95;
  text-shadow:
    0 0 4px #ff2d95,
    0 0 11px #ff2d95,
    0 0 19px #ff2d95,
    0 0 40px #ff007b,
    0 0 80px #ff007b;
}

/* --------------------------------------------------------------------------
   3. LCD Section
   -------------------------------------------------------------------------- */

body.neon-active .lcd-section {
  position: relative;
  overflow: hidden;
  animation: crt-flicker 0.1s steps(2) infinite;
}

body.neon-active .lcd-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    #ff2d9508 1px,
    #ff2d9508 3px
  );
  pointer-events: none;
  z-index: 5;
}

/* sweeping scanline */
body.neon-active .lcd-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    180deg,
    transparent,
    #ff2d9518,
    #ff2d9530,
    #ff2d9518,
    transparent
  );
  pointer-events: none;
  z-index: 6;
  animation: neon-scanline 4s linear infinite;
}

body.neon-active .lcd-section .lcd-display,
body.neon-active .lcd-section .track-title,
body.neon-active .lcd-section .lcd-time {
  color: #ff2d95;
  text-shadow:
    0 0 6px #ff2d95,
    0 0 14px #ff2d9590,
    0 0 28px #ff007b50;
}

body.neon-active .lcd-section .lcd-kbps,
body.neon-active .lcd-section .lcd-khz,
body.neon-active .lcd-section .lcd-info {
  color: #ff6db8;
  text-shadow:
    0 0 4px #ff2d9580,
    0 0 10px #ff2d9540;
}

/* --------------------------------------------------------------------------
   4. Transport Buttons
   -------------------------------------------------------------------------- */

body.neon-active .transport-btn {
  background: transparent;
  border: 1px solid #ff2d95;
  color: #ff2d95;
  box-shadow:
    0 0 4px #ff2d9560,
    inset 0 0 4px #ff2d9520;
  transition: all 0.15s ease;
}

body.neon-active .transport-btn:hover {
  background: #ff2d9520;
  box-shadow:
    0 0 8px #ff2d95,
    0 0 20px #ff2d9560,
    inset 0 0 8px #ff2d9530;
  color: #fff;
  text-shadow: 0 0 6px #ff2d95;
}

body.neon-active .transport-btn:active {
  animation: neon-flash 0.3s ease-out;
  box-shadow:
    0 0 15px #ff2d95,
    0 0 40px #ff2d9580,
    inset 0 0 15px #ff2d9540;
}

body.neon-active .transport-btn.is-playing {
  border-color: #ff2d95;
  color: #fff;
  background: #ff2d9520;
  animation: neon-pulse 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   5. Visualizer
   -------------------------------------------------------------------------- */

body.neon-active .viz-container {
  position: relative;
  box-shadow:
    inset 0 0 15px #ff2d9560,
    inset 0 0 30px #ff007b30;
  border: 1px solid #ff2d9540;
}

body.neon-active .viz-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    #ff2d950a 1px,
    #ff2d950a 3px
  );
  pointer-events: none;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   6. EQ Sliders
   -------------------------------------------------------------------------- */

body.neon-active .eq-slider {
  -webkit-appearance: none;
  appearance: none;
}

body.neon-active .eq-slider::-webkit-slider-runnable-track {
  background: #1a0a1f;
  box-shadow:
    0 0 4px #ff2d9540,
    inset 0 0 3px #ff2d9530;
  border: 1px solid #ff2d9530;
}

body.neon-active .eq-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  box-shadow:
    0 0 6px #ff2d95,
    0 0 14px #ff2d9580,
    0 0 28px #ff007b40;
  border: 1px solid #ff2d95;
  background: #ff2d95;
}

body.neon-active .eq-slider::-moz-range-track {
  background: #1a0a1f;
  box-shadow:
    0 0 4px #ff2d9540,
    inset 0 0 3px #ff2d9530;
  border: 1px solid #ff2d9530;
}

body.neon-active .eq-slider::-moz-range-thumb {
  box-shadow:
    0 0 6px #ff2d95,
    0 0 14px #ff2d9580,
    0 0 28px #ff007b40;
  border: 1px solid #ff2d95;
  background: #ff2d95;
}

/* --------------------------------------------------------------------------
   7. Feature Bar
   -------------------------------------------------------------------------- */

body.neon-active .feature-bar {
  position: relative;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      #00000020 2px,
      #00000020 4px
    ),
    linear-gradient(180deg, #150a1c, #0d0612);
  border-top: 1px solid #ff2d9530;
  border-bottom: 1px solid #ff2d9530;
}

body.neon-active .feature-bar button,
body.neon-active .feature-bar .feature-btn {
  color: #ff6db8;
  transition: all 0.2s ease;
}

body.neon-active .feature-bar button:hover,
body.neon-active .feature-bar .feature-btn:hover {
  color: #ff2d95;
  text-shadow: 0 0 8px #ff2d95;
}

body.neon-active .feature-bar button.is-active,
body.neon-active .feature-bar .feature-btn.is-active {
  color: #fff;
  text-shadow:
    0 0 6px #ff2d95,
    0 0 14px #ff2d9580;
  border-bottom: 2px solid #ff2d95;
  box-shadow: 0 4px 12px #ff2d9560, 0 2px 20px #ff2d9540;
}

/* --------------------------------------------------------------------------
   8. Seek Bar
   -------------------------------------------------------------------------- */

body.neon-active .seek-fill {
  background: #ff2d95;
  box-shadow:
    0 0 6px #ff2d95,
    0 0 14px #ff2d9580,
    0 0 28px #ff007b40;
}

body.neon-active .seek-thumb,
body.neon-active .seek-bar::-webkit-slider-thumb {
  background: #ff2d95;
  border: 1px solid #ff60b0;
  box-shadow:
    0 0 4px #ff2d95,
    0 0 10px #ff2d9580;
  transition: box-shadow 0.2s ease;
}

body.neon-active .seek-thumb:hover,
body.neon-active .seek-bar::-webkit-slider-thumb:hover {
  box-shadow:
    0 0 8px #ff2d95,
    0 0 20px #ff2d95a0,
    0 0 40px #ff007b50;
}

body.neon-active .seek-bar::-moz-range-thumb {
  background: #ff2d95;
  border: 1px solid #ff60b0;
  box-shadow:
    0 0 4px #ff2d95,
    0 0 10px #ff2d9580;
}

body.neon-active .seek-bar::-moz-range-thumb:hover {
  box-shadow:
    0 0 8px #ff2d95,
    0 0 20px #ff2d95a0,
    0 0 40px #ff007b50;
}

/* --------------------------------------------------------------------------
   9. Playlist
   -------------------------------------------------------------------------- */

body.neon-active .playlist-panel {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      #ff2d9506 2px,
      #ff2d9506 4px
    ),
    linear-gradient(180deg, #0d0512, #10061a);
  border: 1px solid #ff2d9530;
}

body.neon-active .playlist-panel .playlist-track:hover {
  background: #ff2d950d;
}

body.neon-active .playlist-panel .playlist-track.is-playing {
  background: #ff2d9512;
  border-left: 3px solid #ff2d95;
  box-shadow:
    inset 4px 0 12px #ff2d9540,
    inset 0 0 20px #ff007b15;
}

body.neon-active .playlist-panel .playlist-track.is-playing .track-title {
  color: #ff2d95;
  text-shadow:
    0 0 6px #ff2d9580,
    0 0 12px #ff2d9540;
}

/* --------------------------------------------------------------------------
   10. Scrollbar Theming
   -------------------------------------------------------------------------- */

body.neon-active ::-webkit-scrollbar {
  width: 8px;
}

body.neon-active ::-webkit-scrollbar-track {
  background: #0d0512;
}

body.neon-active ::-webkit-scrollbar-thumb {
  background: #ff2d9550;
  border-radius: 4px;
  box-shadow: 0 0 4px #ff2d9530;
}

body.neon-active ::-webkit-scrollbar-thumb:hover {
  background: #ff2d9580;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body.neon-active .player,
  body.neon-active .transport-btn.is-playing {
    animation: none;
  }

  body.neon-active .title-bar .title-text,
  body.neon-active .title-bar .app-title {
    animation: none;
    text-shadow:
      0 0 4px #ff2d95,
      0 0 11px #ff2d95;
  }

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

  body.neon-active .lcd-section::after {
    animation: none;
    display: none;
  }
}
