 :root {
      --bg: #0a0a0f;
      --bg-elevated: #12121a;
      --card: #16161f;
      --border: #2a2a3a;
      --fg: #f0f0f5;
      --muted: #6b6b7a;
      --accent: #00ff88;
      --accent-dim: rgba(0, 255, 136, 0.15);
      --accent-glow: rgba(0, 255, 136, 0.4);
      --secondary: #ff3366;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Space Grotesk', sans-serif;
      background: var(--bg);
      color: var(--fg);
      min-height: 100vh;
      margin: 0;
      overflow-x: hidden;
    }

    .font-display {
      font-family: 'Syne', sans-serif;
    }

    /* Background atmosphere */
    .bg-atmosphere {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .bg-atmosphere::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: 
        radial-gradient(ellipse at 20% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 51, 102, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(100, 100, 200, 0.04) 0%, transparent 60%);
      animation: atmosphereMove 30s ease-in-out infinite;
    }

    @keyframes atmosphereMove {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      33% { transform: translate(2%, 1%) rotate(1deg); }
      66% { transform: translate(-1%, 2%) rotate(-1deg); }
    }

    /* Noise overlay */
    .noise-overlay {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      opacity: 0.03;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    }

    /* Grid lines */
    .grid-lines {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
      background-size: 60px 60px;
    }

    /* Visualizer bars */
    .visualizer {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      gap: 3px;
      height: 80px;
      padding: 0 20px;
    }

    .visualizer-bar {
      width: 4px;
      background: linear-gradient(to top, var(--accent), var(--secondary));
      border-radius: 2px;
      transform-origin: bottom;
      transition: height 0.1s ease;
    }

    .visualizer-bar.active {
      animation: barPulse 0.5s ease-in-out infinite;
    }

    @keyframes barPulse {
      0%, 100% { opacity: 0.7; }
      50% { opacity: 1; }
    }

    /* Album art with glow */
    .album-art-container {
      position: relative;
      width: 280px;
      height: 280px;
      margin: 0 auto;
    }

    .album-art {
      width: 100%;
      height: 100%;
      border-radius: 16px;
      object-fit: cover;
      position: relative;
      z-index: 2;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .album-art.playing {
      animation: albumPulse 4s ease-in-out infinite;
    }

    @keyframes albumPulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.02); }
    }

    .album-glow {
      position: absolute;
      inset: -20px;
      background: var(--accent);
      filter: blur(60px);
      opacity: 0;
      transition: opacity 0.5s ease;
      border-radius: 50%;
      z-index: 1;
    }

    .album-glow.active {
      opacity: 0.3;
      animation: glowPulse 3s ease-in-out infinite;
    }

    @keyframes glowPulse {
      0%, 100% { opacity: 0.3; transform: scale(1); }
      50% { opacity: 0.4; transform: scale(1.05); }
    }

    /* Progress bar */
    .progress-container {
      position: relative;
      height: 6px;
      background: var(--border);
      border-radius: 3px;
      cursor: pointer;
      overflow: hidden;
    }

    .progress-bar {
      height: 100%;
      background: linear-gradient(90deg, var(--accent), var(--secondary));
      border-radius: 3px;
      width: 0%;
      transition: width 0.1s linear;
      position: relative;
    }

    .progress-bar::after {
      content: '';
      position: absolute;
      right: 0;
      top: 50%;
      transform: translate(50%, -50%);
      width: 14px;
      height: 14px;
      background: var(--fg);
      border-radius: 50%;
      box-shadow: 0 0 10px var(--accent);
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .progress-container:hover .progress-bar::after {
      opacity: 1;
    }

    /* Control buttons */
    .control-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      transition: all 0.2s ease;
      border-radius: 50%;
    }

    .control-btn:hover {
      color: var(--fg);
      transform: scale(1.1);
    }

    .control-btn:active {
      transform: scale(0.95);
    }

    .control-btn.primary {
      width: 72px;
      height: 72px;
      background: linear-gradient(135deg, var(--accent), #00cc6a);
      color: var(--bg);
      box-shadow: 0 4px 20px var(--accent-glow);
    }

    .control-btn.primary:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 30px var(--accent-glow);
    }

    .control-btn.secondary {
      width: 48px;
      height: 48px;
      background: var(--card);
      border: 1px solid var(--border);
    }

    .control-btn.secondary:hover {
      border-color: var(--accent);
      background: var(--accent-dim);
    }

    /* Volume slider */
    .volume-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100px;
      height: 4px;
      background: var(--border);
      border-radius: 2px;
      cursor: pointer;
    }

    .volume-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 14px;
      height: 14px;
      background: var(--accent);
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 0 10px var(--accent-glow);
      transition: transform 0.2s ease;
    }

    .volume-slider::-webkit-slider-thumb:hover {
      transform: scale(1.2);
    }

    /* Playlist */
    .playlist-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.2s ease;
      border: 1px solid transparent;
    }

    .playlist-item:hover {
      background: var(--card);
      border-color: var(--border);
    }

    .playlist-item.active {
      background: var(--accent-dim);
      border-color: var(--accent);
    }

    .playlist-item.active .track-number {
      color: var(--accent);
    }

    .playlist-thumb {
      width: 48px;
      height: 48px;
      border-radius: 8px;
      object-fit: cover;
      flex-shrink: 0;
    }

    /* Scrollbar */
    ::-webkit-scrollbar {
      width: 6px;
    }

    ::-webkit-scrollbar-track {
      background: transparent;
    }

    ::-webkit-scrollbar-thumb {
      background: var(--border);
      border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--muted);
    }

    /* Animations */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .animate-in {
      animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      opacity: 0;
    }

    .delay-1 { animation-delay: 0.1s; }
    .delay-2 { animation-delay: 0.2s; }
    .delay-3 { animation-delay: 0.3s; }
    .delay-4 { animation-delay: 0.4s; }

    /* Focus states */
    button:focus-visible,
    input:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* Responsive */
    @media (max-width: 768px) {
      .album-art-container {
        width: 220px;
        height: 220px;
      }
    }
