    /* ══ Token System — Lilac & Blush ══
       Primary : #C5B3D3 (lilac)
       Rose    : #F5CBCB (dusty rose)
       Blush   : #FFE2E2 (soft pink)
       Deep    : #8F7699 (derived — contrast/hover tone) */
    :root {
      --accent: #C5B3D3;
      --accent-deep: #8F7699;
      --accent-light: #FFE2E2;
      --accent-rose: #F5CBCB;
      --glow: rgba(197, 179, 211, 0.28);
      --bg: #1c1621;
      --surface: #241c29;
      --surface2: #2d2333;
      --text: #f8f0f4;
      --muted: #9c8aa0;
      --border: rgba(197, 179, 211, 0.10);
      --hover: rgba(197, 179, 211, 0.08);
      --scroll: rgba(197, 179, 211, 0.24);
    }

    html[data-theme="light"] {
      --bg: #FFE2E2;
      --surface: #ffffff;
      --surface2: #FCE9E9;
      --text: #3a2b3f;
      --muted: #8d7690;
      --border: rgba(143, 118, 153, 0.14);
      --hover: rgba(197, 179, 211, 0.16);
      --scroll: rgba(143, 118, 153, 0.28);
    }

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

    html,
    body {
      height: 100%;
      overflow: hidden;
    }

    body {
      font-family: 'Caveat', cursive;
      color: var(--text);
      -webkit-font-smoothing: antialiased;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 28px;
      background:
        radial-gradient(1100px circle at 12% -8%, rgba(197, 179, 211, 0.16), transparent 55%),
        radial-gradient(900px circle at 108% 112%, rgba(245, 203, 203, 0.14), transparent 55%),
        var(--bg);
    }

    /* ════════════════════════════════════════
       SHARED KEYFRAMES
    ════════════════════════════════════════ */
    @keyframes spin {
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes fadeOut {
      to {
        opacity: 0;
        pointer-events: none;
      }
    }

    @keyframes bounce {

      0%,
      100% {
        transform: scaleY(0.38);
        opacity: 0.45;
      }

      50% {
        transform: scaleY(1);
        opacity: 1;
      }
    }

    @keyframes floatUp {
      0% {
        transform: translateY(105vh) rotate(-12deg);
        opacity: 0;
      }

      8% {
        opacity: 0.85;
      }

      88% {
        opacity: 0.5;
      }

      100% {
        transform: translateY(-8vh) rotate(12deg);
        opacity: 0;
      }
    }

    @keyframes glowPulse {

      0%,
      100% {
        text-shadow: 0 0 30px rgba(197, 179, 211, 0.45), 0 0 60px rgba(197, 179, 211, 0.18);
      }

      50% {
        text-shadow: 0 0 55px rgba(197, 179, 211, 0.75), 0 0 110px rgba(197, 179, 211, 0.32);
      }
    }

    @keyframes btnPulse {

      0%,
      100% {
        box-shadow: 0 0 0 0 rgba(197, 179, 211, 0.28);
      }

      50% {
        box-shadow: 0 0 22px 8px rgba(197, 179, 211, 0.16);
      }
    }

    @keyframes fadeSlideUp {
      from {
        opacity: 0;
        transform: translateY(16px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ════════════════════════════════════════
       SPLASH SCREEN
    ════════════════════════════════════════ */
    #splash {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #1c1621;
      overflow: hidden;
    }

    /* Floating notes */
    .fnote {
      position: absolute;
      color: rgba(197, 179, 211, 0.22);
      animation: floatUp linear infinite;
      pointer-events: none;
      user-select: none;
    }

    /* Logo */
    .sp-logo {
      font-size: 50px;
      font-weight: 700;
      color: #C5B3D3;
      animation: glowPulse 3s ease-in-out infinite, fadeSlideUp 0.9s ease forwards;
      letter-spacing: 1px;
    }

    /* Subtitle */
    .sp-sub {
      font-size: 14px;
      letter-spacing: 5px;
      color: rgba(197, 179, 211, 0.45);
      text-transform: uppercase;
      margin: 8px 0 44px;
      animation: fadeSlideUp 0.9s ease 0.3s both;
    }

    /* Quote card */
    .sp-quote {
      max-width: 400px;
      text-align: center;
      padding: 0 24px;
      margin-bottom: 52px;
      animation: fadeSlideUp 0.9s ease 0.65s both;
    }

    .sp-qmark {
      display: block;
      font-family: Georgia, serif;
      font-size: 70px;
      line-height: 0.4;
      color: rgba(197, 179, 211, 0.18);
      margin-bottom: 18px;
    }

    .sp-qtext {
      font-size: 21px;
      line-height: 1.68;
      color: rgba(240, 236, 248, 0.82);
      font-weight: 500;
    }

    .sp-qtext em {
      color: #C5B3D3;
      font-style: normal;
    }

    .sp-author {
      display: block;
      margin-top: 18px;
      font-size: 13px;
      letter-spacing: 2.5px;
      color: rgba(197, 179, 211, 0.45);
      text-transform: uppercase;
    }

    /* Enter button */
    .sp-enter {
      position: relative;
      overflow: hidden;
      background: transparent;
      border: 2px solid #C5B3D3;
      border-radius: 40px;
      padding: 13px 50px;
      font-family: 'Caveat', cursive;
      font-size: 19px;
      font-weight: 600;
      color: #C5B3D3;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      cursor: pointer;
      animation: fadeSlideUp 0.9s ease 1s both, btnPulse 2.8s ease-in-out 2s infinite;
      transition: color 0.3s, transform 0.25s;
      outline: none;
    }

    .sp-enter::before {
      content: '';
      position: absolute;
      inset: 0;
      background: #C5B3D3;
      border-radius: 38px;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s ease;
      z-index: 0;
    }

    .sp-enter span {
      position: relative;
      z-index: 1;
    }

    .sp-enter:hover {
      color: #1c1621;
      transform: scale(1.06);
    }

    .sp-enter:hover::before {
      transform: scaleX(1);
    }

    .sp-enter:focus-visible {
      outline: 2px solid #C5B3D3;
      outline-offset: 4px;
    }

    /* ════════════════════════════════════════
       LOADING SCREEN
    ════════════════════════════════════════ */
    #loading {
      position: fixed;
      inset: 0;
      z-index: 190;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 24px;
      background: #1c1621;
    }

    #loading.show {
      display: flex;
    }

    .ld-vinyl {
      width: 116px;
      height: 116px;
      animation: spin 1.4s linear infinite;
    }

    /* 7 bouncing bars */
    .ld-bars {
      display: flex;
      align-items: flex-end;
      gap: 5px;
      height: 38px;
    }

    .ldb {
      width: 5px;
      background: #C5B3D3;
      border-radius: 3px;
      animation: bounce 0.72s ease-in-out infinite;
      transform-origin: bottom;
    }

    .ldb:nth-child(1) {
      height: 12px;
      animation-delay: 0s;
    }

    .ldb:nth-child(2) {
      height: 22px;
      animation-delay: 0.10s;
    }

    .ldb:nth-child(3) {
      height: 32px;
      animation-delay: 0.20s;
    }

    .ldb:nth-child(4) {
      height: 38px;
      animation-delay: 0.30s;
    }

    .ldb:nth-child(5) {
      height: 32px;
      animation-delay: 0.40s;
    }

    .ldb:nth-child(6) {
      height: 22px;
      animation-delay: 0.50s;
    }

    .ldb:nth-child(7) {
      height: 12px;
      animation-delay: 0.60s;
    }

    .ld-msg {
      font-size: 17px;
      color: rgba(197, 179, 211, 0.65);
      letter-spacing: 0.5px;
      min-height: 1.4em;
      text-align: center;
    }

    .ld-track {
      width: 240px;
      height: 3px;
      background: rgba(197, 179, 211, 0.12);
      border-radius: 2px;
      overflow: hidden;
    }

    .ld-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #8F7699, #C5B3D3, #F5CBCB, #FFE2E2);
      border-radius: 2px;
    }

    /* Splash/Loading fade-out */
    .fade-out {
      animation: fadeOut 0.5s ease forwards;
    }

    /* ════════════════════════════════════════
       MAIN APP
    ════════════════════════════════════════ */
    #app {
      width: 100%;
      max-width: 860px;
      height: min(680px, 100%);
      display: none;
      flex-direction: column;
      opacity: 0;
      transition: opacity 0.55s ease;
      border-radius: 22px;
      overflow: hidden;
      box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
    }

    #app.show {
      display: flex;
    }

    #app.visible {
      opacity: 1;
    }

    /* ── Header ── */
    header {
      flex-shrink: 0;
      height: 54px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 26px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 21px;
      font-weight: 700;
      color: var(--accent);
      text-decoration: none;
      cursor: pointer;
      user-select: none;
      transition: opacity 0.2s;
    }

    .logo:hover {
      opacity: 0.72;
    }

    .logo-icon {
      width: 29px;
      height: 29px;
      border-radius: 7px;
      background: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 15px;
      color: #1c1621;
    }

    .theme-pill {
      display: flex;
      align-items: center;
      gap: 6px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 5px 14px;
      font-family: 'Caveat', cursive;
      font-size: 15px;
      color: var(--muted);
      cursor: pointer;
      outline: none;
      transition: color 0.2s, border-color 0.2s;
    }

    .theme-pill:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    /* ── Two-panel layout ── */
    .main {
      flex: 1;
      display: flex;
      overflow: hidden;
      min-height: 0;
    }

    /* ── LEFT: Player ── */
    .player-panel {
      width: 316px;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 22px 20px 16px;
      gap: 15px;
      background: var(--surface);
      border-right: 1px solid var(--border);
      overflow: hidden;
    }

    /* Disc (vinyl ring + static anime girl center) */
    .disc-wrap {
      position: relative;
      width: 170px;
      height: 170px;
      flex-shrink: 0;
    }

    .vinyl-ring {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: conic-gradient(#C5B3D3 0deg, #6b5470 90deg,
          #F5CBCB 180deg, #6b5470 270deg, #C5B3D3 360deg);
      background-color: #C5B3D3;
      /* fallback */
      box-shadow: 0 0 28px rgba(197, 179, 211, 0.28);
      animation: spin 9s linear infinite;
      animation-play-state: paused;
      will-change: transform;
    }

    .vinyl-ring.playing {
      animation-play-state: running;
      box-shadow: 0 0 48px rgba(197, 179, 211, 0.52), 0 0 88px rgba(197, 179, 211, 0.14);
    }

    /* Vinyl groove rings (decorative, non-spinning) */
    .disc-wrap::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: transparent;
      box-shadow:
        inset 0 0 0 14px rgba(0, 0, 0, 0.08),
        inset 0 0 0 28px rgba(0, 0, 0, 0.05),
        inset 0 0 0 42px rgba(0, 0, 0, 0.03);
      z-index: 1;
      pointer-events: none;
    }

    .disc-center {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 116px;
      height: 116px;
      border-radius: 50%;
      background: var(--surface2);
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
    }

    .anime-svg {
      width: 100%;
      height: 100%;
    }

    .center-pin {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--surface);
      border: 2px solid rgba(0, 0, 0, 0.28);
      z-index: 3;
    }

    /* Disc loading overlay */
    .disc-loading {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.54);
      display: none;
      align-items: flex-end;
      justify-content: center;
      gap: 3px;
      padding-bottom: 42px;
      z-index: 4;
    }

    .disc-loading.show {
      display: flex;
    }

    .dlb {
      width: 4px;
      background: var(--accent);
      border-radius: 3px;
      animation: bounce 0.75s ease-in-out infinite;
      transform-origin: bottom;
    }

    .dlb:nth-child(1) {
      height: 12px;
      animation-delay: 0s;
    }

    .dlb:nth-child(2) {
      height: 20px;
      animation-delay: 0.12s;
    }

    .dlb:nth-child(3) {
      height: 30px;
      animation-delay: 0.24s;
    }

    .dlb:nth-child(4) {
      height: 20px;
      animation-delay: 0.36s;
    }

    .dlb:nth-child(5) {
      height: 12px;
      animation-delay: 0.48s;
    }

    /* ════════════════════════════════════════
       MASCOT — a little gecko buddy peeking
       out from behind the disc ♥
    ════════════════════════════════════════ */
    .mascot {
      position: absolute;
      bottom: -10px;
      right: -16px;
      width: 62px;
      height: 56px;
      z-index: 5;
      cursor: pointer;
      transform-origin: bottom center;
      animation: mascotBob 3.2s ease-in-out infinite;
      transition: transform 0.2s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .mascot:hover,
    .mascot:focus-visible {
      transform: scale(1.08);
    }

    .mascot:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
      border-radius: 12px;
    }

    .mascot-svg {
      width: 100%;
      height: 100%;
      overflow: visible;
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
    }

    .mascot-arm {
      transform-box: fill-box;
      transform-origin: 82% 68%;
      animation: mascotWave 3.2s ease-in-out infinite;
    }

    .mascot-eye {
      transform-box: fill-box;
      transform-origin: center;
      animation: mascotBlink 5s ease-in-out infinite;
    }

    @keyframes mascotBob {

      0%,
      100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-4px);
      }
    }

    @keyframes mascotWave {

      0%,
      12%,
      100% {
        transform: rotate(0deg);
      }

      3% {
        transform: rotate(-18deg);
      }

      6% {
        transform: rotate(4deg);
      }

      9% {
        transform: rotate(-14deg);
      }
    }

    @keyframes mascotBlink {

      0%,
      92%,
      100% {
        transform: scaleY(1);
      }

      96% {
        transform: scaleY(0.12);
      }
    }

    /* Speech bubble on click */
    .mascot-bubble {
      position: absolute;
      bottom: 100%;
      right: -6px;
      margin-bottom: 10px;
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 14px 14px 4px 14px;
      padding: 7px 13px;
      font-size: 14px;
      white-space: nowrap;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
      opacity: 0;
      transform: translateY(6px) scale(0.9);
      pointer-events: none;
      transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .mascot-bubble.show {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* Song info */
    .song-info {
      text-align: center;
      width: 100%;
    }

    .song-title {
      font-size: 18px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .song-artist {
      font-size: 13px;
      color: var(--muted);
      margin-top: 3px;
    }

    /* Progress bar */
    .progress-wrap {
      width: 100%;
    }

    .prog-bar {
      width: 100%;
      height: 5px;
      background: var(--border);
      border-radius: 4px;
      cursor: pointer;
      transition: height 0.14s;
    }

    .prog-bar:hover {
      height: 7px;
    }

    .prog-fill {
      height: 100%;
      width: 0%;
      background: var(--accent);
      border-radius: 4px;
    }

    .time-row {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: var(--muted);
      margin-top: 5px;
    }

    /* ── ALL control buttons use the SAME .c-btn style ── */
    .controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .c-btn {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--surface2);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 15px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.18s, color 0.18s, transform 0.15s, border-color 0.18s, box-shadow 0.18s;
      outline: none;
      flex-shrink: 0;
    }

    .c-btn:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: #1c1621;
      transform: scale(1.1);
      box-shadow: 0 3px 14px rgba(197, 179, 211, 0.38);
    }

    .c-btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    /* Active state (shuffle/loop when ON) */
    .c-btn.active {
      color: var(--accent);
      border-color: var(--accent);
      background: rgba(197, 179, 211, 0.1);
    }

    .c-btn.active:hover {
      color: #1c1621;
      background: var(--accent);
    }

    /* Play button — only size difference */
    .play-btn {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      background: var(--accent);
      border: none;
      color: #1c1621;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 20px rgba(197, 179, 211, 0.38);
      transition: transform 0.18s, box-shadow 0.18s;
      outline: none;
      flex-shrink: 0;
    }

    .play-btn:hover {
      transform: scale(1.12);
      box-shadow: 0 6px 30px rgba(197, 179, 211, 0.54);
    }

    .play-btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 3px;
    }

    /* Volume */
    .vol-row {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
    }

    .mute-btn {
      background: none;
      border: none;
      color: var(--muted);
      font-size: 18px;
      cursor: pointer;
      flex-shrink: 0;
      padding: 4px;
      transition: color 0.2s;
      outline: none;
    }

    .mute-btn:hover {
      color: var(--accent);
    }

    .mute-btn.muted {
      color: var(--accent);
    }

    input[type="range"] {
      flex: 1;
      -webkit-appearance: none;
      appearance: none;
      height: 4px;
      border-radius: 2px;
      background: var(--border);
      outline: none;
      cursor: pointer;
    }

    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: var(--accent);
      cursor: pointer;
      box-shadow: 0 0 6px rgba(197, 179, 211, 0.42);
    }

    input[type="range"]::-moz-range-thumb {
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: var(--accent);
      border: none;
      cursor: pointer;
    }

    /* Shortcuts */
    .shortcuts {
      font-size: 11px;
      color: var(--muted);
      text-align: center;
      line-height: 1.85;
      padding: 0 4px;
      opacity: 0.68;
    }

    .shortcuts kbd {
      display: inline-block;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 0 4px;
      font-family: 'Caveat', cursive;
      font-size: 10px;
      margin: 0 1px;
    }

    /* ── RIGHT: Playlist ── */
    .playlist-panel {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: var(--bg);
    }

    .playlist-panel.dragover {
      background: rgba(197, 179, 211, 0.04);
      outline: 2px dashed var(--accent);
      outline-offset: -8px;
    }

    .panel-hdr {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 22px 13px;
      border-bottom: 1px solid var(--border);
    }

    .panel-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--muted);
      letter-spacing: 1.2px;
      text-transform: uppercase;
    }

    .panel-actions {
      display: flex;
      gap: 8px;
    }

    .add-btn {
      display: flex;
      align-items: center;
      gap: 6px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 6px 14px;
      font-family: 'Caveat', cursive;
      font-size: 14px;
      color: var(--muted);
      cursor: pointer;
      white-space: nowrap;
      outline: none;
      transition: color 0.18s, border-color 0.18s;
    }

    .add-btn:hover {
      color: var(--accent);
      border-color: var(--accent);
    }

    .add-btn:focus-visible {
      outline: 2px solid var(--accent);
      outline-offset: 2px;
    }

    /* Track list */
    .track-list {
      flex: 1;
      overflow-y: auto;
      padding: 10px 14px 14px;
    }

    .track-list::-webkit-scrollbar {
      width: 4px;
    }

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

    .track-list::-webkit-scrollbar-thumb {
      background: var(--scroll);
      border-radius: 2px;
    }

    /* Empty state */
    .empty-state {
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: var(--muted);
      font-size: 15px;
      text-align: center;
      padding: 40px;
    }

    .empty-icon {
      font-size: 50px;
      opacity: 0.28;
      display: block;
    }

    .empty-state small {
      font-size: 13px;
      opacity: 0.6;
    }

    /* Track item */
    .track-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 9px 12px;
      border-radius: 10px;
      cursor: pointer;
      transition: background 0.15s;
      margin-bottom: 2px;
      border-left: 3px solid transparent;
    }

    .track-item:hover {
      background: var(--hover);
    }

    .track-item.current {
      background: var(--surface);
      border-left-color: var(--accent);
    }

    .t-num {
      font-size: 12px;
      color: var(--muted);
      width: 22px;
      text-align: right;
      flex-shrink: 0;
    }

    .track-item.current .t-num {
      color: var(--accent);
    }

    .t-name {
      flex: 1;
      font-size: 15px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .track-item.current .t-name {
      color: var(--accent);
      font-weight: 600;
    }

    .t-bars {
      display: none;
      align-items: flex-end;
      gap: 2px;
      height: 13px;
      flex-shrink: 0;
    }

    .track-item.current .t-bars {
      display: flex;
    }

    .t-bars i {
      display: block;
      width: 3px;
      background: var(--accent);
      border-radius: 1px;
      animation: bounce 0.75s ease-in-out infinite;
      transform-origin: bottom;
    }

    .t-bars i:nth-child(1) {
      height: 6px;
      animation-delay: 0s;
    }

    .t-bars i:nth-child(2) {
      height: 10px;
      animation-delay: 0.16s;
    }

    .t-bars i:nth-child(3) {
      height: 7px;
      animation-delay: 0.32s;
    }

    /* ── Footer ── */
    footer {
      flex-shrink: 0;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      background: var(--surface);
      border-top: 1px solid var(--border);
      font-size: 13px;
      color: var(--muted);
    }

    footer strong {
      color: var(--accent);
    }

    /* ════════════════════════════════════════
       RESPONSIVE
    ════════════════════════════════════════ */

    /* Small laptops / large tablets — trim the shell a touch */
    @media (max-width: 920px) {
      #app {
        max-width: 680px;
      }
    }

    /* Tablets & large phones — stack player above playlist, both stay usable */
    @media (max-width: 720px) {
      body {
        padding: 0;
      }

      #app {
        max-width: 480px;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
      }

      .main {
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }

      .player-panel {
        width: 100%;
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 18px 20px 16px;
        gap: 12px;
      }

      .disc-wrap {
        width: 138px;
        height: 138px;
      }

      .disc-center {
        width: 94px;
        height: 94px;
      }

      .mascot {
        width: 50px;
        height: 46px;
        bottom: -6px;
        right: -10px;
      }

      .playlist-panel {
        flex: 1 1 auto;
        min-height: 260px;
      }

      .shortcuts {
        display: none;
        /* not much use without a keyboard on mobile */
      }
    }

    /* Small phones — tighten paddings further */
    @media (max-width: 420px) {
      header {
        padding: 0 16px;
      }

      .player-panel {
        padding: 14px 16px 12px;
      }

      .panel-hdr {
        padding: 13px 16px 11px;
      }

      .panel-actions {
        gap: 6px;
      }

      .add-btn {
        padding: 6px 10px;
        font-size: 13px;
      }
    }
