*, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --ac-header-offset: 92px;
      --bg-primary: #0a0a0f;
      --bg-secondary: #12121a;
      --bg-card: rgba(20, 20, 30, 0.8);
      --text-primary: #ffffff;
      --text-secondary: rgba(255, 255, 255, 0.7);
      --text-muted: rgba(255, 255, 255, 0.4);
      --accent-pink: #ff6b9d;
      --accent-purple: #a855f7;
      --accent-blue: #3b82f6;
      --accent-cyan: #22d3ee;
      --accent-green: #84cc16;
      --accent-orange: #fb923c;
      --gradient-1: linear-gradient(135deg, #ff6b9d 0%, #c084fc 50%, #22d3ee 100%);
      --gradient-2: linear-gradient(135deg, #fb923c 0%, #f472b6 50%, #a855f7 100%);
      --gradient-3: linear-gradient(135deg, #22d3ee 0%, #84cc16 100%);
      --glow-pink: 0 0 60px rgba(255, 107, 157, 0.4);
      --glow-purple: 0 0 60px rgba(168, 85, 247, 0.4);
      --glow-cyan: 0 0 60px rgba(34, 211, 238, 0.4);
      --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
      --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    [data-theme="light"] {
      --bg-primary: #fafafa;
      --bg-secondary: #f0f0f5;
      --bg-card: rgba(255, 255, 255, 0.9);
      --text-primary: #0a0a0f;
      --text-secondary: rgba(10, 10, 15, 0.7);
      --text-muted: rgba(10, 10, 15, 0.4);
      --glow-pink: 0 0 80px rgba(255, 107, 157, 0.3);
      --glow-purple: 0 0 80px rgba(168, 85, 247, 0.3);
      --glow-cyan: 0 0 80px rgba(34, 211, 238, 0.3);
    }

    html {
      scroll-behavior: smooth;
      scroll-snap-type: y proximity;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      min-height: 100vh;
      overflow-x: hidden;
      transition: background 0.5s var(--transition-smooth), color 0.5s var(--transition-smooth);
    }

    /* Animated Gradient Background - Lava Lamp Effect */
    .gradient-bg {
      position: fixed;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      pointer-events: none;
    }

    .gradient-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(100px);
      opacity: 0.55;
      will-change: transform;
      mix-blend-mode: screen;
    }

    .orb-1 {
      width: 50vw;
      height: 50vw;
      max-width: 600px;
      max-height: 600px;
      min-width: 300px;
      min-height: 300px;
      background: radial-gradient(circle, var(--accent-pink) 0%, transparent 70%);
      top: 0;
      left: 0;
      animation: lavaFloat1 45s ease-in-out infinite;
    }

    .orb-2 {
      width: 45vw;
      height: 45vw;
      max-width: 550px;
      max-height: 550px;
      min-width: 280px;
      min-height: 280px;
      background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
      bottom: 0;
      right: 0;
      animation: lavaFloat2 50s ease-in-out infinite;
    }

    .orb-3 {
      width: 40vw;
      height: 40vw;
      max-width: 480px;
      max-height: 480px;
      min-width: 250px;
      min-height: 250px;
      background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
      top: 30%;
      left: 20%;
      animation: lavaFloat3 40s ease-in-out infinite;
      opacity: 0.4;
    }

    .orb-4 {
      width: 35vw;
      height: 35vw;
      max-width: 400px;
      max-height: 400px;
      min-width: 200px;
      min-height: 200px;
      background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
      top: 60%;
      right: 30%;
      animation: lavaFloat4 55s ease-in-out infinite;
      opacity: 0.45;
    }

    /* Lava Lamp Keyframes - Full screen floating with bounce effect */
    @keyframes lavaFloat1 {
      0% { transform: translate(0, 0) scale(1); }
      10% { transform: translate(60vw, 20vh) scale(1.1); }
      20% { transform: translate(50vw, 70vh) scale(0.9); }
      30% { transform: translate(10vw, 80vh) scale(1.15); }
      40% { transform: translate(-10vw, 50vh) scale(1); }
      50% { transform: translate(30vw, 30vh) scale(1.2); }
      60% { transform: translate(70vw, 60vh) scale(0.85); }
      70% { transform: translate(40vw, 90vh) scale(1.1); }
      80% { transform: translate(-5vw, 40vh) scale(1); }
      90% { transform: translate(20vw, 10vh) scale(1.05); }
      100% { transform: translate(0, 0) scale(1); }
    }

    @keyframes lavaFloat2 {
      0% { transform: translate(0, 0) scale(1); }
      12% { transform: translate(-50vw, -30vh) scale(1.15); }
      24% { transform: translate(-70vw, 20vh) scale(0.9); }
      36% { transform: translate(-30vw, -60vh) scale(1.1); }
      48% { transform: translate(10vw, -40vh) scale(1); }
      60% { transform: translate(-60vw, -10vh) scale(1.2); }
      72% { transform: translate(-20vw, 30vh) scale(0.85); }
      84% { transform: translate(-40vw, -50vh) scale(1.05); }
      100% { transform: translate(0, 0) scale(1); }
    }

    @keyframes lavaFloat3 {
      0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
      14% { transform: translate(40vw, -20vh) scale(1.2); opacity: 0.5; }
      28% { transform: translate(60vw, 40vh) scale(0.85); opacity: 0.35; }
      42% { transform: translate(20vw, 60vh) scale(1.1); opacity: 0.45; }
      56% { transform: translate(-30vw, 30vh) scale(1); opacity: 0.4; }
      70% { transform: translate(-50vw, -10vh) scale(1.15); opacity: 0.5; }
      84% { transform: translate(-20vw, -40vh) scale(0.9); opacity: 0.35; }
      100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    }

    @keyframes lavaFloat4 {
      0% { transform: translate(0, 0) scale(1); opacity: 0.45; }
      16% { transform: translate(-40vw, 30vh) scale(1.1); opacity: 0.5; }
      32% { transform: translate(30vw, 20vh) scale(0.9); opacity: 0.4; }
      48% { transform: translate(50vw, -30vh) scale(1.2); opacity: 0.55; }
      64% { transform: translate(-20vw, -50vh) scale(1); opacity: 0.45; }
      80% { transform: translate(-60vw, 10vh) scale(1.1); opacity: 0.5; }
      100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
    }

    /* Audio Active State - Faster lava movement */
    body.audio-playing .orb-1 { animation-duration: 25s; opacity: 0.7; }
    body.audio-playing .orb-2 { animation-duration: 28s; opacity: 0.65; }
    body.audio-playing .orb-3 { animation-duration: 22s; opacity: 0.55; }
    body.audio-playing .orb-4 { animation-duration: 30s; opacity: 0.6; }

    /* Particle Canvas */
    #particles {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
    }

    /* Learn Mode Toggle */
    .learn-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      z-index: 1000;
      padding: 12px 24px;
      border-radius: 30px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: var(--bg-card);
      backdrop-filter: blur(20px);
      color: var(--text-primary);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 14px;
      pointer-events: auto;
      cursor: pointer;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.3s var(--transition-spring);
    }

    /* Mobile: Hide open player button, center learn toggle */
    @media (max-width: 767px) {
      .hero-topbar {
        display: flex;
        justify-content: center;
      }

      .open-player-btn {
        display: none;
      }
    }

    .learn-toggle:hover {
      background: var(--gradient-1);
      color: white;
      border-color: transparent;
      transform: scale(1.05);
    }

    .learn-toggle.active {
      background: var(--gradient-1);
      color: white;
      border-color: transparent;
    }

    .open-player-btn {
      gap: 8px;
    }

    .open-player-btn svg {
      transition: transform 0.3s var(--transition-spring);
    }

    .open-player-btn:hover svg {
      transform: translate(3px, -3px);
    }

    /* Panels */
    .audio-chamber-shell {
      min-height: 100vh;
      padding-top: clamp(12px, 2vh, 24px);
    }

    .panel {
      min-height: calc(100vh - var(--ac-header-offset));
      max-height: 100vh;
      width: 100%;
      scroll-snap-align: start;
      position: relative;
      z-index: 10;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: clamp(26px, 5vw, 64px) clamp(18px, 5vw, 44px);
      overflow: auto;
      gap: 18px;
    }

    .hero-topbar {
      display: none; /* Hide on mobile - scroll indicator is enough */
    }

    /* Desktop: Fixed position buttons on far right */
    @media (min-width: 768px) {
      .hero-topbar {
        position: fixed !important;
        top: calc(90px + env(safe-area-inset-top)) !important;
        right: 12px !important;
        left: auto !important;
        width: auto !important;
        max-width: none !important;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        z-index: 1000 !important;
        align-items: flex-end !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: auto !important;
      }

      .hero-topbar .learn-toggle {
        width: auto;
        min-width: 220px;
        white-space: nowrap;
      }

      .open-player-btn {
        display: inline-flex;
      }
    }

    .hero-description {
      color: var(--text-muted);
      font-size: 14px;
    }

/* Hero Panel */
.hero-panel {
  text-align: center;
  justify-content: flex-start;
  gap: 8px;
  padding-top: calc(var(--ac-header-offset) + 8px);
  padding-bottom: 12px;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height for mobile */
}

@media (min-width: 768px) {
  .hero-panel {
    gap: 12px;
    padding-top: calc(var(--ac-header-offset) + 16px);
    padding-bottom: clamp(18px, 3vh, 28px);
  }
}

.album-cover-container {
  position: relative;
  margin-top: 4px;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .album-cover-container {
    margin-top: clamp(8px, 1.5vh, 16px);
    margin-bottom: clamp(12px, 2vh, 20px);
  }
}

    .album-cover {
      width: clamp(140px, 35vw, 180px);
      height: clamp(140px, 35vw, 180px);
      border-radius: 32px;
      background: var(--gradient-1);
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--glow-purple), 0 25px 50px rgba(0, 0, 0, 0.3);
      transition: all 0.5s var(--transition-spring);
      overflow: hidden;
      position: relative;
    }

    .album-cover::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 32px;
      border: 3px solid rgba(255, 255, 255, 0.1);
      z-index: 1;
      pointer-events: none;
    }

    .album-cover::after {
      content: '';
      display: none;
    }

    body.audio-playing .album-cover {
      animation: albumPulse 2s ease-in-out infinite;
    }

    @keyframes albumPulse {
      0%, 100% { transform: scale(1); box-shadow: var(--glow-purple), 0 25px 50px rgba(0, 0, 0, 0.3); }
      50% { transform: scale(1.02); box-shadow: var(--glow-pink), 0 30px 60px rgba(0, 0, 0, 0.4); }
    }

    .album-title {
      display: none;
    }

    .album-subtitle {
      display: none;
    }

    /* Main Player */
    .main-player {
      width: clamp(300px, 90vw, 560px);
      max-width: 560px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      align-items: stretch;
      background: var(--bg-card);
      backdrop-filter: blur(30px);
      border-radius: 16px;
      padding: 14px 18px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
      position: relative;
    }

    @media (min-width: 768px) {
      .main-player {
        gap: 12px;
        border-radius: 20px;
        padding: 20px 24px;
      }
    }

    /* Desktop: even smaller player */
    @media (min-width: 768px) {
      .main-player {
        width: clamp(400px, 40vw, 520px);
        padding: 18px 22px;
      }
      
      .album-cover {
        width: clamp(160px, 18vw, 220px);
        height: clamp(160px, 18vw, 220px);
      }
    }

    .now-playing-indicator {
      position: absolute;
      top: 16px;
      right: 20px;
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text-muted);
    }

    .now-playing-indicator span {
      color: var(--text-primary);
      font-weight: 600;
    }

    .now-playing-info {
      text-align: left;
      margin-bottom: 8px;
    }

    .album-title-inline {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 20px;
      font-weight: 600;
      letter-spacing: 0.03em;
      margin-bottom: 4px;
      background: linear-gradient(135deg, #ff6b6b 0%, #ff8a8a 40%, #ffffff 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .album-title-inline .brand-name {
      font-weight: 700;
      letter-spacing: 0.08em;
    }

    .now-playing-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 17px;
      font-weight: 500;
      margin-bottom: 2px;
      color: var(--text-primary);
    }

    .now-playing-vol {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.45);
      letter-spacing: 0.1em;
    }

    .now-playing-label {
      display: none;
    }

    .now-playing-duration {
      display: none;
    }

    /* Waveform */
    .waveform-container {
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0;
      margin: 6px 0 4px;
      width: 100%;
    }

    @media (min-width: 768px) {
      .waveform-container {
        height: 60px;
        margin: 12px 0 6px;
      }
    }

    .wave-bar {
      flex: 1;
      min-width: 2px;
      max-width: 6px;
      height: 20px;
      background: var(--gradient-1);
      border-radius: 2px;
      transition: height 0.1s ease;
      margin: 0 1px;
    }

    body.audio-playing .wave-bar {
      animation: waveAnimation 0.8s ease-in-out infinite;
    }

    .wave-bar:nth-child(1) { animation-delay: 0s; }
    .wave-bar:nth-child(2) { animation-delay: 0.1s; }
    .wave-bar:nth-child(3) { animation-delay: 0.2s; }
    .wave-bar:nth-child(4) { animation-delay: 0.3s; }
    .wave-bar:nth-child(5) { animation-delay: 0.4s; }
    .wave-bar:nth-child(6) { animation-delay: 0.5s; }
    .wave-bar:nth-child(7) { animation-delay: 0.4s; }
    .wave-bar:nth-child(8) { animation-delay: 0.3s; }
    .wave-bar:nth-child(9) { animation-delay: 0.2s; }
    .wave-bar:nth-child(10) { animation-delay: 0.1s; }
    .wave-bar:nth-child(11) { animation-delay: 0s; }
    .wave-bar:nth-child(12) { animation-delay: 0.1s; }
    .wave-bar:nth-child(13) { animation-delay: 0.2s; }
    .wave-bar:nth-child(14) { animation-delay: 0.3s; }
    .wave-bar:nth-child(15) { animation-delay: 0.4s; }
    .wave-bar:nth-child(16) { animation-delay: 0.5s; }
    .wave-bar:nth-child(17) { animation-delay: 0.4s; }
    .wave-bar:nth-child(18) { animation-delay: 0.3s; }
    .wave-bar:nth-child(19) { animation-delay: 0.2s; }
    .wave-bar:nth-child(20) { animation-delay: 0.1s; }

    @keyframes waveAnimation {
      0%, 100% { height: 20px; }
      50% { height: 50px; }
    }

    /* Progress Bar */
    .progress-container {
      width: 100%;
      height: 6px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 3px;
      cursor: pointer;
      margin-bottom: 8px;
      overflow: hidden;
    }

    .progress-bar {
      height: 100%;
      background: var(--gradient-1);
      border-radius: 3px;
      width: 0%;
      transition: width 0.1s linear;
    }

    .time-display {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    @media (min-width: 768px) {
      .time-display {
        font-size: 12px;
        margin-bottom: 20px;
      }
    }

    /* Player Controls */
    .player-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin-top: 4px;
    }

    /* Hide popout button on mobile to save space */
    .main-player .popout-btn {
      display: none;
    }

    @media (min-width: 768px) {
      .player-controls {
        justify-content: center;
        gap: 16px;
        margin-top: 6px;
      }
      
      .main-player .popout-btn {
        display: inline-flex;
      }
    }

    .control-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-primary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s var(--transition-spring);
    }

    .control-btn:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: scale(1.1);
    }

    .control-btn.play-btn {
      width: 56px;
      height: 56px;
      background: var(--gradient-1);
      box-shadow: var(--glow-pink);
    }

    .control-btn.play-btn:hover {
      transform: scale(1.15);
      box-shadow: var(--glow-purple);
    }

    .control-btn svg {
      width: 24px;
      height: 24px;
      fill: currentColor;
    }

    .play-btn svg {
      width: 28px;
      height: 28px;
    }

    /* Pop Out Button */
    .popout-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: auto;
      padding: 12px 14px;
      margin-top: 10px;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      background: transparent;
      color: var(--text-primary);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.08em;
      cursor: pointer;
      transition: all 0.3s var(--transition-spring);
    }

    .popout-btn:hover {
      background: var(--gradient-2);
      border-color: transparent;
      transform: translateY(-2px);
      box-shadow: var(--glow-purple);
    }

    /* Scroll Indicator */
    .scroll-indicator {
      position: absolute;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      color: var(--text-muted);
      font-size: 10px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      animation: bounce 2s ease-in-out infinite;
    }

    @media (min-width: 768px) {
      .scroll-indicator {
        bottom: 40px;
        gap: 8px;
        font-size: 12px;
        letter-spacing: 0.2em;
      }
    }

    .scroll-indicator svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }

    @media (min-width: 768px) {
      .scroll-indicator svg {
        width: 24px;
        height: 24px;
      }
    }

    @keyframes bounce {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50% { transform: translateX(-50%) translateY(10px); }
    }

    /* Tracklist Panel */
    .tracklist-panel {
      padding-top: calc(var(--ac-header-offset) + 24px);
      justify-content: flex-start;
    }

    .tracklist-header {
      text-align: center;
      margin-bottom: 32px;
      flex-shrink: 0;
    }

    .tracklist-header h2 {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 32px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .tracklist-header p {
      color: var(--text-muted);
      font-size: 14px;
    }

    /* Track Grid */
    .track-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      width: 100%;
      max-width: 800px;
    }

    @media (min-width: 768px) {
      .track-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    /* Track Card */
    .track-card {
      background: var(--bg-card);
      backdrop-filter: blur(20px);
      border-radius: 20px;
      padding: 20px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      cursor: pointer;
      transition: all 0.4s var(--transition-spring);
      position: relative;
      overflow: hidden;
    }

    .track-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--gradient-1);
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .track-card:hover {
      transform: translateY(-4px) scale(1.02);
      box-shadow: var(--glow-purple);
      border-color: rgba(255, 255, 255, 0.3);
    }

    .track-card:hover::before {
      opacity: 0.1;
    }

    .track-card.active {
      border-color: var(--accent-pink);
      box-shadow: var(--glow-pink);
    }

    .track-card-content {
      position: relative;
      z-index: 1;
    }

    .track-number {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12px;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .track-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .track-duration {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    .track-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 12px;
    }

    .track-tag {
      padding: 4px 10px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.1);
      font-size: 11px;
      color: var(--text-secondary);
      text-transform: lowercase;
    }

    .track-story {
      display: none;
      font-size: 14px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.learn-mode .track-story {
      display: block;
    }

    .track-actions {
      display: flex;
      gap: 8px;
      margin-top: 16px;
    }

    .track-action-btn {
      flex: 1;
      min-width: 130px;
      padding: 10px 20px;
      border-radius: 10px;
      border: none;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 12px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s var(--transition-spring);
      white-space: nowrap;
    }

    .track-action-btn.play {
      background: var(--gradient-1);
      color: white;
    }

    .track-action-btn.lyrics {
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-primary);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .track-action-btn:hover {
      transform: scale(1.05);
    }

    /* Song Panels */
    .song-panel {
      display: flex;
      text-align: center;
      padding: clamp(120px, 18vh, 160px) 24px clamp(100px, 15vh, 140px);
      padding-top: calc(var(--ac-header-offset) + clamp(40px, 6vh, 60px));
    }

    .song-panel-content {
      max-width: 600px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .song-panel-art {
      width: clamp(120px, 20vw, 180px);
      height: clamp(120px, 20vw, 180px);
      border-radius: 18px;
      background-size: cover;
      background-position: center;
      box-shadow: var(--glow-purple), 0 18px 40px rgba(0,0,0,0.3);
      margin-top: clamp(20px, 4vh, 40px);
    }

    .song-panel-number {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 13px;
      color: var(--text-muted);
      letter-spacing: 0.3em;
      margin-bottom: 8px;
      margin-top: 12px;
    }

    .song-panel-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: clamp(28px, 8vw, 52px);
      font-weight: 700;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 12px;
    }

    .song-panel-story {
      font-size: clamp(15px, 2.5vw, 18px);
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 16px;
    }

    .song-panel-tags {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 24px;
    }

    .song-panel-tag {
      padding: 6px 16px;
      border-radius: 30px;
      background: rgba(255, 255, 255, 0.1);
      font-size: 12px;
      color: var(--text-secondary);
      backdrop-filter: blur(10px);
    }

    .song-panel .track-actions {
      margin-bottom: clamp(40px, 8vh, 80px);
    }

    /* Last song panel - allow scrolling without snap-back */
    .song-panel:last-child {
      scroll-snap-align: none;
      margin-bottom: 100px;
    }

    /* Lyrics Modal */
    .lyrics-modal {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .lyrics-modal.active {
      display: flex;
    }

    .lyrics-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(10px);
    }

    .lyrics-content {
      position: relative;
      width: 100%;
      max-width: 600px;
      max-height: 80vh;
      background: var(--bg-card);
      backdrop-filter: blur(30px);
      border-radius: 24px;
      padding: 32px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      overflow-y: auto;
    }

    .lyrics-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-primary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .lyrics-close:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: rotate(90deg);
    }

    .lyrics-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 24px;
      background: var(--gradient-1);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .lyrics-text {
      font-size: 16px;
      line-height: 2;
      color: var(--text-secondary);
      white-space: pre-line;
    }

    /* Now Playing Widget */
    .now-playing-widget {
      position: fixed;
      bottom: 24px;
      left: 24px;
      right: 24px;
      z-index: 100;
      background: var(--bg-card);
      backdrop-filter: blur(30px);
      border-radius: 20px;
      padding: 16px 20px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      display: none;
      align-items: center;
      gap: 16px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.4s var(--transition-spring);
    }

    .now-playing-widget.visible {
      display: flex;
      transform: translateY(0);
      opacity: 1;
    }

    @media (min-width: 768px) {
      .now-playing-widget {
        left: auto;
        width: 400px;
      }
    }

    .widget-art {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: var(--gradient-1);
      flex-shrink: 0;
    }

    .widget-info {
      flex: 1;
      min-width: 0;
    }

    .widget-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 16px;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .widget-time {
      font-size: 12px;
      color: var(--text-muted);
    }

    .widget-controls {
      display: flex;
      gap: 8px;
    }

    .widget-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.1);
      color: var(--text-primary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }

    .widget-btn:hover {
      background: var(--gradient-1);
      transform: scale(1.1);
    }

    .widget-btn svg {
      width: 18px;
      height: 18px;
      fill: currentColor;
    }

    /* Haptic Feedback Animation */
    .haptic {
      animation: haptic 0.3s var(--transition-spring);
    }

    @keyframes haptic {
      0% { transform: scale(1); }
      25% { transform: scale(0.97); }
      50% { transform: scale(1.02); }
      100% { transform: scale(1); }
    }

    /* Mobile Optimizations */
    @media (max-width: 767px) {
      .track-grid {
        gap: 12px;
      }
      
      .track-card {
        padding: 16px;
      }

      .album-cover {
        width: clamp(200px, 55vw, 260px);
        height: clamp(200px, 55vw, 260px);
      }

      .main-player {
        padding: 20px;
        width: 100%;
        max-width: 460px;
      }

      .now-playing-indicator {
        position: relative;
        top: auto;
        right: auto;
        text-align: center;
        margin-bottom: 8px;
      }

      .waveform-container {
        height: 50px;
      }

      .wave-bar {
        width: 3px;
      }
    }

    /* Desktop Two-Column Layout */
    @media (min-width: 1024px) {
      .tracklist-panel {
      flex-direction: row;
      gap: 60px;
      padding: 60px;
    }

      .track-grid {
        max-width: none;
      }

      .song-panel {
        min-height: auto;
        scroll-snap-align: none;
      }
    }

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

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

    ::-webkit-scrollbar-thumb {
      background: var(--gradient-1);
      border-radius: 4px;
    }

    /* Keyboard Hint */
    .keyboard-hint {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 50;
      padding: 8px 16px;
      background: var(--bg-card);
      backdrop-filter: blur(10px);
      border-radius: 8px;
      font-size: 12px;
      color: var(--text-muted);
      border: 1px solid rgba(255, 255, 255, 0.1);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    body:hover .keyboard-hint {
      opacity: 1;
    }

    @media (max-width: 767px) {
      .keyboard-hint {
        display: none;
      }
    }

    @media (max-height: 760px) {
      .panel {
        min-height: calc(100vh - 64px);
        padding-top: 26px;
        padding-bottom: 26px;
      }
      .album-cover {
        width: clamp(160px, 28vh, 210px);
        height: clamp(160px, 28vh, 210px);
      }
    }

    @media (max-width: 768px) {
      .learn-toggle {
        position: relative;
        top: auto;
        right: auto;
        align-self: center;
        margin-bottom: 6px;
      }
      .audio-chamber-shell {
        padding-top: 0;
      }
    }
