/* by.music — stylesheet utama (dipisah dari index.html) */
    :root {
      --bg: #0f0f0f;
      --elev: #181818;
      --card: #222222;
      --accent: #ff6b4a;
      --muted: #aaaaaa;
      --glass: rgba(24, 24, 24, 0.95);
      --glass-border: rgba(255, 255, 255, 0.08);
      --blur: 0px;
      --radius: 12px;
      --shadow: 0 4px 20px rgba(0,0,0,0.4);
      --gradient: none;
    }
    * { box-sizing: border-box; }
    html, body {
      height: 100%; margin: 0;
      background: var(--bg);
      background-image: var(--gradient);
      background-attachment: fixed;
      color: #fff;
      font-family: Inter, system-ui, sans-serif;
    }
    body.theme-sharp .player-glass,
    body.theme-sharp .glass-top,
    body.theme-sharp .bottom-nav,
    body.theme-sharp .sheet-panel {
      backdrop-filter: none !important;
      -webkit-backdrop-filter: none !important;
    }
    body.theme-flat .player-glass {
      border-radius: 4px;
      border-width: 0;
      box-shadow: none;
    }

    /* —— Splash —— */
    #splash {
      position: fixed; inset: 0; z-index: 100;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      background: var(--bg);
      transition: opacity 0.6s ease, visibility 0.6s;
    }
    #splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
    .splash-logo {
      width: 88px; height: 88px;
      animation: splashIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .splash-text {
      margin-top: 1rem; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em;
      opacity: 0; animation: fadeUp 0.6s ease 0.35s forwards;
    }
    .splash-bar {
      width: 48px; height: 3px; margin-top: 1.25rem; border-radius: 2px;
      background: var(--accent); opacity: 0;
      animation: barGrow 0.7s ease 0.5s forwards;
    }
    @keyframes splashIn {
      0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
      60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
      100% { transform: scale(1) rotate(0); opacity: 1; }
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes barGrow {
      from { opacity: 0; width: 0; }
      to { opacity: 1; width: 48px; }
    }
    .logo-svg .wave {
      transform-origin: center;
      animation: wavePulse 2s ease-in-out infinite;
    }
    .logo-svg .wave:nth-child(2) { animation-delay: 0.15s; }
    .logo-svg .wave:nth-child(3) { animation-delay: 0.3s; }
    @keyframes wavePulse {
      0%, 100% { opacity: 0.35; transform: scaleY(0.6); }
      50% { opacity: 1; transform: scaleY(1); }
    }

    .glass-top {
      background: color-mix(in srgb, var(--bg) 70%, transparent);
      backdrop-filter: blur(var(--blur));
      -webkit-backdrop-filter: blur(var(--blur));
      border-bottom: 1px solid var(--glass-border);
    }
    .glass-side {
      background: color-mix(in srgb, var(--bg) 90%, #000);
      border-right: 1px solid var(--glass-border);
    }
    .glass-chip {
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--glass-border);
      border-radius: calc(var(--radius) * 0.5);
    }
    .glass-input {
      background: rgba(255,255,255,0.08);
      border: 1px solid var(--glass-border);
      color: #fff;
    }
    .btn-glass {
      background: rgba(255,255,255,0.07);
      border: 1px solid var(--glass-border);
      color: #fff;
      border-radius: calc(var(--radius) * 0.55);
      transition: background 0.15s;
    }
    .btn-glass:active { background: rgba(255,255,255,0.14); }

    .player-dock {
      position: fixed; left: 0; right: 0;
      bottom: calc(56px + env(safe-area-inset-bottom, 0px));
      z-index: 40; padding: 0 10px; pointer-events: none;
    }
    @media (min-width: 768px) {
      .player-dock { bottom: 12px; left: 14rem; right: 12px; padding: 0; }
    }
    .player-glass {
      pointer-events: auto;
      background: var(--glass);
      backdrop-filter: blur(var(--blur)) saturate(1.35);
      -webkit-backdrop-filter: blur(var(--blur)) saturate(1.35);
      border: 1px solid var(--glass-border);
      border-radius: var(--radius);
      padding: 8px 10px 6px;
      box-shadow: var(--shadow);
      display: flex; flex-direction: column; gap: 4px;
    }
    .player-progress { height: 6px; margin: 2px 2px 0; padding: 4px 0; }
    .player-progress input[type=range] { width: 100%; height: 5px; margin: 0; }

    .bottom-nav {
      position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
      display: flex; align-items: center; justify-content: space-around;
      padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
      background: color-mix(in srgb, var(--bg) 85%, transparent);
      backdrop-filter: blur(var(--blur));
      -webkit-backdrop-filter: blur(var(--blur));
      border-top: 1px solid var(--glass-border);
    }
    .nav-btn.active, .nav-btn-m.active { color: var(--accent); }
    .nav-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
    .nav-btn-m { color: var(--muted); }
    .nav-btn-m.active { color: var(--accent); }

    .mood-chip {
      display: inline-flex; align-items: center;
      padding: 0.4rem 0.95rem; border-radius: 999px;
      font-size: 0.8125rem; font-weight: 500; white-space: nowrap;
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--glass-border); color: #d0d7de;
    }
    .mood-chip.active {
      background: color-mix(in srgb, var(--accent) 28%, transparent);
      border-color: color-mix(in srgb, var(--accent) 50%, transparent);
      color: #fff;
    }

    .quick-grid {
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem 0.65rem;
    }
    @media (min-width: 640px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
    @media (min-width: 1024px) { .quick-grid { grid-template-columns: repeat(6, 1fr); } }
    .quick-card { cursor: pointer; text-align: center; }
    .quick-card img {
      width: 100%; aspect-ratio: 1; object-fit: cover;
      border-radius: calc(var(--radius) * 0.65);
      background: var(--card); box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }
    .quick-card .label {
      margin-top: 0.4rem; font-size: 0.72rem; font-weight: 500; line-height: 1.3;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    .sheet {
      position: fixed; inset: 0; z-index: 55;
      display: flex; flex-direction: column; justify-content: flex-end;
    }
    .sheet.hidden { display: none; }
    .sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
    .sheet-panel {
      position: relative; background: var(--elev);
      border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
      border: 1px solid var(--glass-border); border-bottom: none;
      padding-top: 8px; max-height: 88vh;
      box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
      backdrop-filter: blur(var(--blur));
      -webkit-backdrop-filter: blur(var(--blur));
    }
    .sheet-handle {
      width: 40px; height: 4px; border-radius: 2px;
      background: rgba(255,255,255,0.25); margin: 4px auto 12px;
    }
    .theme-swatch {
      border-radius: calc(var(--radius) * 0.7); padding: 12px;
      border: 2px solid transparent; text-align: left; cursor: pointer;
    }
    .theme-swatch.active { border-color: var(--accent); }
    .theme-swatch .dot {
      width: 28px; height: 28px; border-radius: 50%; margin-bottom: 8px;
      border: 2px solid rgba(255,255,255,0.2);
    }

    /* Modal form */
    .modal-input {
      width: 100%; padding: 0.75rem 1rem; border-radius: 12px;
      background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border);
      color: #fff; outline: none; font-size: 0.9375rem;
    }
    .modal-input:focus { border-color: var(--accent); }

    input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; height: 4px; }
    input[type=range]::-webkit-slider-runnable-track {
      height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px;
    }
    input[type=range]::-webkit-slider-thumb {
      -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%;
      background: var(--accent); margin-top: -3.5px; cursor: pointer;
    }
    input[type=range]::-moz-range-track { height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; }
    input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: none; }

    .song-row:hover, .song-row.active { background: rgba(255,255,255,0.07); }
    .skeleton {
      background: linear-gradient(90deg, var(--card) 25%, var(--elev) 50%, var(--card) 75%);
      background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px;
    }
    @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
    #queue-panel.open { transform: translateX(0); }
    .liked svg { fill: var(--accent); stroke: var(--accent); }
    .shuffle-on, .repeat-on { color: var(--accent) !important; }
    .lyric-line {
      padding: 0.5rem 0.75rem; font-size: 1.2rem; line-height: 1.6;
      color: color-mix(in srgb, var(--muted) 75%, #000); cursor: pointer;
      transition: color 0.2s, font-size 0.2s;
    }
    .lyric-line.active { color: #fff; font-size: 1.4rem; font-weight: 600; }
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

    /* Full now-playing */
    #full-player {
      position: fixed; inset: 0; z-index: 70;
      display: flex; flex-direction: column;
      background: var(--bg);
      background-image: var(--gradient);
      transform: translateY(100%);
      transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    }
    #full-player.open { transform: translateY(0); }
    #full-player .fp-handle {
      width: 40px; height: 4px; border-radius: 2px;
      background: rgba(255,255,255,0.3); margin: 10px auto 4px;
    }
    #full-player .fp-art {
      width: min(72vw, 320px); aspect-ratio: 1;
      border-radius: calc(var(--radius) * 0.9);
      object-fit: cover; margin: 0 auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.45);
      background: var(--card);
    }
    #full-player .seek-fat {
      -webkit-appearance: none; appearance: none;
      width: 100%; height: 6px; background: transparent;
    }
    #full-player .seek-fat::-webkit-slider-runnable-track {
      height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px;
    }
    #full-player .seek-fat::-webkit-slider-thumb {
      -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
      background: #fff; margin-top: -5.5px; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .player-glass { touch-action: pan-y; }
    .album-card {
      width: 7.5rem; flex-shrink: 0; cursor: pointer;
    }
    .album-card img {
      width: 100%; aspect-ratio: 1; object-fit: cover;
      border-radius: calc(var(--radius) * 0.6); background: var(--card);
    }
    .credit-link {
      display: block; margin-top: 1rem; padding: 0.75rem;
      text-align: center; font-size: 0.75rem; color: var(--muted);
      border-top: 1px solid var(--glass-border);
    }
    .credit-link a { color: var(--accent); text-decoration: underline; }

    /* =====================================================
       LIQUID GLASS (hanya aktif di tema Liquid Glass)
       ===================================================== */
    body.theme-glass {
      --lg-fill: linear-gradient(135deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.10) 100%);
      --lg-shadow: inset 0 1.5px 0 rgba(255,255,255,0.38), inset 0 -1px 0 rgba(255,255,255,0.10), inset 1px 0 0 rgba(255,255,255,0.12), 0 14px 34px rgba(0,0,0,0.38);
    }
    body.theme-glass .player-glass,
    body.theme-glass .bottom-nav,
    body.theme-glass .sheet-panel {
      background: var(--lg-fill), var(--glass-tint, rgba(70, 58, 40, 0.30));
      backdrop-filter: blur(16px) saturate(1.5);
      -webkit-backdrop-filter: blur(16px) saturate(1.5);
      border: 1px solid rgba(255,255,255,0.20);
      box-shadow: var(--lg-shadow);
    }
    /* kilau cahaya di pojok kiri-atas */
    body.theme-glass .player-glass::before,
    body.theme-glass .bottom-nav::before {
      content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
      background: radial-gradient(120% 140% at 8% -30%, rgba(255,255,255,0.28), transparent 52%);
    }
    body.theme-glass .player-glass { position: relative; overflow: hidden; border-radius: 30px; padding: 10px 14px 8px; }
    body.theme-glass .player-glass > * { position: relative; z-index: 1; }
    body.theme-glass .player-progress { height: 4px; padding: 0; margin: 4px 6px 2px; opacity: 0.85; }
    body.theme-glass #np-art { width: 3.1rem; height: 3.1rem; border-radius: 14px; }
    body.theme-glass #np-title { font-size: 1.05rem; font-weight: 600; }
    body.theme-glass #np-artist { font-size: 0.9rem; }
    body.theme-glass #play-btn { width: 3rem; height: 3rem; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 14px rgba(0,0,0,0.3); }
    body.theme-glass #next-btn { display: flex; }

    /* Navigasi bawah: pil mengambang */
    body.theme-glass .bottom-nav {
      left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
      padding: 7px; border-radius: 999px; gap: 4px;
    }
    body.theme-glass .nav-btn-m {
      position: relative; z-index: 1; border-radius: 999px; padding: 8px 4px; transition: background 0.25s, color 0.25s;
    }
    body.theme-glass .nav-btn-m.active {
      background: linear-gradient(135deg, rgba(255,255,255,0.26), rgba(255,255,255,0.08));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.40), 0 4px 12px rgba(0,0,0,0.25);
    }

    /* Header transparan seperti kaca */
    body.theme-glass .glass-top {
      background: var(--glass-head, linear-gradient(to bottom, rgba(45,37,22,0.55), rgba(45,37,22,0.15)));
      border-bottom: none;
      backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    }
    body.theme-glass #page-title { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.01em; }
    body.theme-glass #view-home h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.01em; }

    body.theme-glass .mood-chip {
      padding: 0.55rem 1.15rem; font-size: 0.95rem; color: #e9dfcf;
      background: var(--lg-fill); border: 1.5px solid rgba(255,255,255,0.30);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
    }
    body.theme-glass .mood-chip.active {
      background: linear-gradient(135deg, rgba(232,196,106,0.40), rgba(232,196,106,0.14));
      border-color: rgba(232,196,106,0.65); color: #fff;
    }

    body.theme-glass .quick-card { text-align: left; }
    body.theme-glass .quick-card img { border-radius: 22px; box-shadow: 0 8px 20px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.12); }
    body.theme-glass .quick-card .label {
      font-size: 0.92rem; font-weight: 500; margin-top: 0.45rem;
      -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis;
    }

    body.theme-glass .glass-chip, body.theme-glass .btn-glass {
      background: var(--lg-fill); border: 1px solid rgba(255,255,255,0.20);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    }
    body.theme-glass .glass-input {
      background: var(--lg-fill); border: 1px solid rgba(255,255,255,0.24);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    }
    body.theme-glass .sheet-backdrop { background: rgba(0,0,0,0.40); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    body.theme-glass .sheet-panel { border-radius: 32px 32px 0 0; }
    body.theme-glass #lyrics-panel { backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); }
    body.theme-glass .modal-input { background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); }

    @media (max-width: 767px) {
      body.theme-glass .player-dock { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); padding: 0 14px; }
      body.theme-glass .view { padding-bottom: 12.5rem; }
    }
    @media (min-width: 768px) {
      body.theme-glass .player-glass { border-radius: 26px; }
    }


    /* ---- Perbaikan layout: cegah halaman melebar / space kosong ---- */
    html, body { max-width: 100%; overflow-x: hidden; }
    #app, #main-scroll, .view, #home-sections, #home-sections > section { min-width: 0; max-width: 100%; }
    #main-scroll { overflow-x: hidden; }
    .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quick-card { min-width: 0; }
    .quick-card img { display: block; height: auto; }
    .quick-card .label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .player-progress { height: 12px; padding: 0; display: flex; align-items: center; }
    .player-progress input[type=range] { height: 4px; }
    .player-glass { min-width: 0; }
    .player-glass #now-playing { min-height: 0; }
    body.theme-glass .player-progress { height: 12px; margin: 2px 6px 0; }
    body.theme-glass .quick-card .label { -webkit-line-clamp: unset; }


    /* ---- Pemutar penuh: isi layar, tidak ada ruang kosong di bawah ---- */
    #full-player { padding-top: env(safe-area-inset-top, 0px); height: 100%; }
    #full-player > .flex-1 {
      padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
      min-height: 0;
    }
    #full-player .fp-art {
      width: min(80vw, 42vh, 380px); height: auto;
      margin-top: auto; margin-bottom: auto; flex-shrink: 0;
    }
    #full-player .fp-art + div { margin-top: 0.5rem; }
    #full-player #fp-more { min-width: 2.5rem; text-align: right; }
    #full-player #fp-close { min-width: 2.5rem; text-align: left; }
    body.theme-glass #full-player .btn-glass { padding-top: 0.85rem; padding-bottom: 0.85rem; }
    body.theme-glass #full-player #fp-play {
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 10px 30px rgba(0,0,0,0.4);
    }


    /* ---- Pop-up selalu di depan pemutar penuh / lirik / antrian ---- */
    .sheet { z-index: 90; }
    #toast { z-index: 100; }
    /* ---- Tombol play pemutar penuh: bulat penuh, tidak gepeng ---- */
    #full-player #fp-play {
      flex: 0 0 auto; width: 4.75rem; height: 4.75rem; aspect-ratio: 1 / 1;
      border-radius: 50%; padding: 0;
    }
    #full-player #fp-play svg { width: 2.25rem; height: 2.25rem; }
    #play-btn { flex: 0 0 auto; aspect-ratio: 1 / 1; }


    /* ---- Recap ---- */
    .recap-view {
      position: fixed; inset: 0; z-index: 65; overflow-y: auto; overflow-x: hidden;
      background-color: var(--bg); background-image: var(--gradient);
      padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(40px + env(safe-area-inset-bottom, 0px));
    }
    .recap-view.hidden { display: none; }
    @media (min-width: 768px) { .recap-view { left: 14rem; } }
    .rc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
    .rc-back, .rc-share {
      width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); color: #fff; font-size: 18px;
    }
    .rc-title { flex: 1; font-size: 1.5rem; font-weight: 600; }
    .rc-card { border-radius: 28px; padding: 22px; margin-bottom: 14px; background: rgba(255,255,255,0.07); border: 1px solid var(--glass-border); }
    .rc-card h3 { font-size: 1.2rem; font-weight: 700; }
    .rc-big { font-size: 3rem; font-weight: 800; color: var(--accent); line-height: 1.1; margin-top: 10px; word-break: break-all; }
    .rc-sub { color: var(--muted); font-weight: 600; }
    .rc-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
    .rc-pill { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); font-weight: 600; font-size: 0.9rem; }
    .rc-periods { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
    .rc-period { flex: 0 0 auto; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--glass-border); font-weight: 600; font-size: 0.95rem; color: #fff; }
    .rc-period.active { background: var(--accent); color: var(--bg); border-color: transparent; }
    .rc-btn { width: 100%; padding: 16px; border-radius: 999px; font-weight: 700; font-size: 1rem; margin-bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 8px; }
    .rc-btn.primary { background: var(--accent); color: var(--bg); }
    .rc-btn.ghost { border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: #fff; }
    .rc-section { font-size: 1.25rem; font-weight: 700; margin: 22px 4px 10px; }
    .rc-list { border-radius: 24px; padding: 8px; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); }
    .rc-row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; min-width: 0; }
    .rc-row.tap { cursor: pointer; }
    .rc-row.tap:active { background: rgba(255,255,255,0.08); }
    .rc-rank { width: 22px; text-align: center; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
    .rc-art { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,0.1); flex: 0 0 auto; }
    .rc-row .t { min-width: 0; flex: 1; }
    .rc-row .n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rc-row .s { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rc-empty { text-align: center; color: var(--muted); padding: 36px 10px; line-height: 1.5; }


    /* ---- Tekan lama lagu + menu lagu ---- */
    [data-track-id], [data-rid], .song-row {
      -webkit-touch-callout: none; -webkit-user-select: none; user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    [data-track-id] img, [data-rid] img { pointer-events: none; -webkit-user-drag: none; }
    .sm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-border); }
    .sm-art { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--card); flex: 0 0 auto; }
    .sm-meta { min-width: 0; flex: 1; }
    .sm-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sm-artist { color: var(--muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sm-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 8px; border-radius: 14px; font-size: 0.95rem; text-align: left; color: #fff; }
    .sm-btn:active { background: rgba(255,255,255,0.08); }
    .sm-btn .ic { width: 28px; text-align: center; font-size: 1.15rem; color: var(--accent); flex: 0 0 auto; }

    /* ---- Pemutar penuh: garis & header bisa digeser ke bawah ---- */
    #full-player .fp-handle {
      width: 100%; height: 30px; margin: 0; background: none; position: relative; touch-action: none; cursor: grab;
    }
    #full-player .fp-handle::before {
      content: ''; position: absolute; left: 50%; top: 12px; width: 44px; height: 5px; margin-left: -22px;
      border-radius: 3px; background: rgba(255,255,255,0.35);
    }
    #fp-top, #full-player #fp-art { touch-action: none; }
    #full-player { will-change: transform; }

    .bk-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin: 18px 4px 6px; }

    /* ---- Header playlist: nama di atas, tombol kecil & rapi di bawah ---- */
    .pl-head { margin-bottom: 14px; }
    .pl-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .pl-act {
      flex: 0 0 auto; padding: 0 16px; height: 36px; border-radius: 999px; white-space: nowrap;
      font-size: 0.85rem; font-weight: 600; color: #fff; line-height: 1;
      background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border);
    }
    .pl-act:active { background: rgba(255,255,255,0.16); }
    .pl-act.primary { background: var(--accent); color: var(--bg); border-color: transparent; }

    .code-box {
      width: 100%; min-height: 5.5rem; padding: 0.75rem 1rem; border-radius: 14px; resize: none;
      background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); color: #fff;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; line-height: 1.4;
      word-break: break-all; outline: none;
    }
    .code-box:focus { border-color: var(--accent); }

    /* =====================================================
       LENSA NAVBAR (Liquid Glass, mobile): geser / tahan
       ===================================================== */
    .nav-lens { display: none; }
    body.theme-glass .nav-lens {
      display: block; position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none;
      border-radius: 999px; transform-origin: 50% 55%; will-change: transform;
      background:
        radial-gradient(110% 80% at 28% 8%, rgba(255,255,255,0.42), rgba(255,255,255,0.05) 52%, transparent 68%),
        linear-gradient(165deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(255,255,255,0.06) 70%);
      box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, rgba(255,255,255,0.5)),
        inset 0 2px 5px rgba(255,255,255,0.55),
        inset 0 -7px 12px color-mix(in srgb, var(--accent) 32%, transparent),
        0 8px 22px rgba(0,0,0,0.36),
        0 0 16px color-mix(in srgb, var(--accent) 30%, transparent);
      transition: box-shadow .25s ease, filter .25s ease;
    }
    body.theme-glass .nav-lens::after {
      content: ''; position: absolute; left: 16%; top: 9%; width: 30%; height: 20%; border-radius: 50%;
      background: rgba(255,255,255,0.7); filter: blur(2px); opacity: .75;
    }
    body.theme-glass .bottom-nav.lens-held .nav-lens {
      filter: saturate(1.4) brightness(1.12);
      box-shadow:
        inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, #fff),
        inset 0 3px 8px rgba(255,255,255,0.65),
        inset 0 -9px 16px color-mix(in srgb, var(--accent) 42%, transparent),
        0 14px 30px rgba(0,0,0,0.42),
        0 0 28px color-mix(in srgb, var(--accent) 50%, transparent);
    }
    body.theme-glass .bottom-nav { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
    body.theme-glass .nav-btn-m, body.theme-glass .nav-btn-m.active { background: none; box-shadow: none; -webkit-tap-highlight-color: transparent; }
    body.theme-glass .nav-btn-m > svg {
      transform: translateY(calc((var(--mag, 1) - 1) * -16px)) scale(var(--mag, 1));
      transition: transform .12s linear;
    }
    body.theme-glass .nav-btn-m > span { transition: opacity .15s, transform .15s; }
    body.theme-glass .bottom-nav.lens-held .nav-btn-m > span { opacity: .0; transform: translateY(4px); }
    body.theme-glass .bottom-nav.lens-held .nav-btn-m.lens-near > span { opacity: 1; transform: translateY(2px); }
    body.theme-glass .bottom-nav.lens-held .nav-btn-m.active:not(.lens-near) { color: var(--muted); }
    body.theme-glass .bottom-nav.lens-held .nav-btn-m.lens-near { color: var(--accent); }

    /* =====================================================
       DENGAR BARENG (sesi / ruangan)
       ===================================================== */
    .tg-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #5be37d; box-shadow: 0 0 0 2px rgba(0,0,0,0.35), 0 0 8px #5be37d; display: none; }
    .tg-on .tg-dot { display: block; }
    .tg-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: rgba(255,255,255,0.08); border: 1px solid var(--glass-border); }
    .tg-status i { width: 8px; height: 8px; border-radius: 50%; background: #f5b942; }
    .tg-status.ok i { background: #5be37d; box-shadow: 0 0 8px #5be37d; }
    .tg-status.bad i { background: #ff6b6b; }
    .tg-code {
      margin: 14px 0 10px; padding: 14px 10px 12px; border-radius: 22px; text-align: center;
      background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, transparent), rgba(255,255,255,0.04));
      border: 1px solid var(--glass-border);
    }
    .tg-code small { display: block; font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
    .tg-code b { display: block; font-size: 2rem; letter-spacing: 0.22em; font-weight: 800; color: var(--accent); padding-left: 0.22em; font-variant-numeric: tabular-nums; }
    .tg-row { display: flex; gap: 8px; }
    .tg-row > button { flex: 1; }
    .tg-users { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 2px 14px; }
    .tg-user { width: 54px; text-align: center; font-size: 0.68rem; color: var(--muted); }
    .tg-user .av { position: relative; width: 44px; height: 44px; margin: 0 auto 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; color: #fff; background: rgba(255,255,255,0.10); border: 1px solid var(--glass-border); }
    .tg-user.host .av { background: var(--accent); color: var(--bg); border-color: transparent; }
    .tg-user.host .av::after { content: '♛'; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); color: var(--accent); font-size: 10px; line-height: 18px; border: 1px solid var(--glass-border); }
    .tg-pl { max-height: 38vh; overflow-y: auto; margin: 2px 0 10px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); }
    .tg-pl:empty::after { content: 'Belum ada lagu. Putar atau tambahkan lagu untuk mengisi playlist sesi.'; display: block; padding: 18px 14px; font-size: 0.78rem; color: var(--muted); text-align: center; }
    .tg-pl-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
    .tg-pl-row + .tg-pl-row { border-top: 1px solid var(--glass-border); }
    .tg-pl-row img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; background: var(--card); flex: 0 0 auto; }
    .tg-pl-row .meta { min-width: 0; flex: 1; }
    .tg-pl-row .t { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tg-pl-row .a { font-size: 0.72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tg-pl-row.now .t { color: var(--accent); }
    .tg-pl-row .x { width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 0.9rem; flex: 0 0 auto; }
    .tg-pl-row .x:active { background: rgba(255,255,255,0.12); }
    .tg-badge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ff5d5d; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
    .tg-badge.hidden { display: none !important; }
    .tg-tabs { display: flex; gap: 6px; padding: 4px; margin: 4px 0 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); }
    .tg-tabs button { flex: 1; padding: 9px 8px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
    .tg-tabs button.on { background: var(--accent); color: var(--bg); }
    .tg-chat { height: 34vh; min-height: 180px; overflow-y: auto; padding: 10px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 6px; }
    .tg-chat:empty::after { content: 'Belum ada pesan. Sapa temanmu!'; margin: auto; font-size: 0.78rem; color: var(--muted); }
    .tg-msg { max-width: 82%; padding: 7px 11px; border-radius: 16px 16px 16px 5px; background: rgba(255,255,255,0.10); font-size: 0.86rem; line-height: 1.35; word-break: break-word; align-self: flex-start; }
    .tg-msg .who { display: block; font-size: 0.68rem; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
    .tg-msg.mine { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: var(--accent); color: var(--bg); }
    .tg-msg.sys { align-self: center; max-width: 100%; background: none; padding: 2px 6px; font-size: 0.7rem; color: var(--muted); }
    .tg-chat-form { display: flex; gap: 8px; margin: 8px 0 0; }
    .tg-chat-form .modal-input { flex: 1; min-width: 0; }
    .tg-chat-form .tg-btn { padding: 0 18px; }
    .tg-hint { font-size: 0.72rem; color: var(--muted); line-height: 1.5; margin: 8px 4px 0; }
    .tg-btn { padding: 0.8rem 1rem; border-radius: 14px; font-weight: 600; font-size: 0.9rem; background: rgba(255,255,255,0.09); border: 1px solid var(--glass-border); color: #fff; }
    .tg-btn:active { background: rgba(255,255,255,0.16); }
    .tg-btn.primary { background: var(--accent); color: var(--bg); border-color: transparent; }
    .tg-btn.danger { color: #ff8a8a; }
    .tg-btn:disabled { opacity: .5; }
    .tg-sep { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; }
    .tg-sep::before, .tg-sep::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }
    #tg-code-input { text-transform: uppercase; letter-spacing: 0.25em; text-align: center; font-weight: 700; font-family: ui-monospace, Menlo, monospace; }


    /* =====================================================
       POLISH v3: animasi sheet, gestur, tampilan, performa
       ===================================================== */
    button, a, [data-track-id], .quick-card { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

    /* --- sheet: slide + fade (GPU: transform & opacity saja) --- */
    .sheet .sheet-backdrop { opacity: 0; transition: opacity .28s ease; }
    .sheet.show .sheet-backdrop { opacity: 1; }
    .sheet .sheet-panel {
      transform: translate3d(0, 100%, 0);
      transition: transform .38s cubic-bezier(.32, .72, 0, 1);
      will-change: transform; overscroll-behavior: contain;
      backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    }
    .sheet:not(.show) .sheet-panel { transition-duration: .3s; }
    .sheet.show .sheet-panel { transform: translate3d(0, 0, 0); }
    .sheet-backdrop, body.theme-glass .sheet-backdrop { background: rgba(0,0,0,0.52); backdrop-filter: none; -webkit-backdrop-filter: none; }

    /* --- panel sheet: lebih berdimensi, tidak flat --- */
    .sheet-panel, body.theme-glass .sheet-panel {
      background:
        radial-gradient(120% 70% at 12% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
        linear-gradient(180deg, color-mix(in srgb, var(--elev) 86%, #fff 14%) 0%, var(--elev) 42%, color-mix(in srgb, var(--elev) 90%, #000 10%) 100%);
      border: 1px solid rgba(255,255,255,0.14); border-bottom: none;
      border-radius: 30px 30px 0 0;
      box-shadow: 0 -18px 50px rgba(0,0,0,0.5), inset 0 1.5px 0 rgba(255,255,255,0.22);
      padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .sheet-handle { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.32); margin: 6px auto 14px; }
    .sheet-panel.dragging { transition: none !important; }

    /* --- menu lagu --- */
    #song-sheet .sheet-panel { overflow: hidden; }
    #song-sheet .sheet-panel::before {
      content: ''; position: absolute; left: -10%; right: -10%; top: -30px; height: 250px; pointer-events: none;
      background: var(--sm-art, none) center / cover no-repeat;
      opacity: .3; filter: blur(18px);
      -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent);
    }
    #song-sheet .sheet-panel > * { position: relative; }
    .sm-wrap { padding: 0 18px 22px; }
    .sm-head { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 0; border: none; }
    .sm-art { width: 68px; height: 68px; border-radius: 18px; box-shadow: 0 10px 26px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.16); }
    .sm-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
    .sm-artist { font-size: 0.86rem; margin-top: 2px; }
    .sm-primary {
      width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
      padding: 15px; border: 0; border-radius: 20px; font-weight: 700; font-size: 1rem;
      background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff 12%), var(--accent));
      color: var(--bg); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 0 rgba(255,255,255,0.45);
      transition: transform .15s ease;
    }
    .sm-primary svg { width: 20px; height: 20px; }
    .sm-primary:active, .sm-tile:active, .sm-row:active { transform: scale(.96); }
    .sm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
    .sm-tile {
      display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
      padding: 14px 2px 11px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; color: #fff; min-width: 0;
      background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
      border: 1px solid rgba(255,255,255,0.13); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
      transition: transform .15s ease, background .2s;
    }
    .sm-tile svg { width: 22px; height: 22px; color: var(--accent); transition: transform .2s; }
    .sm-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .sm-tile.on { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 34%, transparent), rgba(255,255,255,0.06)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
    .sm-tile.on svg { fill: var(--accent); transform: scale(1.1); }
    .sm-row {
      display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 18px;
      font-size: 0.93rem; font-weight: 500; text-align: left; color: #fff; margin-top: 8px;
      background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09);
      transition: transform .15s ease, background .2s;
    }
    .sm-row svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
    .sm-row.danger { color: #ff8f8f; }
    .sm-row.danger svg { color: #ff8f8f; }

    /* --- tombol & input umum --- */
    .btn-glass { background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)); border-color: rgba(255,255,255,0.14); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16); transition: transform .15s ease, background .2s; }
    .btn-glass:active { transform: scale(.96); }
    .modal-input { border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
    .modal-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
    .quick-card, [data-track-id] { transition: transform .15s ease; }
    .quick-card:active, [data-track-id]:active { transform: scale(.965); }
    .quick-card img { transition: box-shadow .2s; }
    #toast { box-shadow: 0 10px 28px rgba(0,0,0,0.45); border-radius: 999px; padding-left: 1.2rem; padding-right: 1.2rem; }

    /* --- pindah halaman: lembut --- */
    .view-in { animation: viewIn .28s cubic-bezier(.2, .75, .25, 1); }
    @keyframes viewIn { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }

    /* --- skeleton: pulse (tidak menggambar ulang tiap frame) --- */
    .skeleton { background: var(--card); animation: skPulse 1.3s ease-in-out infinite; }
    @keyframes skPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

    /* --- performa tema glass: kurangi lapisan blur --- */
    body.theme-glass .glass-chip, body.theme-glass .btn-glass, body.theme-glass .glass-input, body.theme-glass .mood-chip {
      backdrop-filter: none; -webkit-backdrop-filter: none;
    }
    body.theme-glass .player-glass, body.theme-glass .bottom-nav {
      backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    }
    body.theme-glass #lyrics-panel { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
    .glass-top { backdrop-filter: blur(min(var(--blur), 10px)); -webkit-backdrop-filter: blur(min(var(--blur), 10px)); }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    }


    /* Micro-interactions: tactile buttons, lifted cards, and shimmer loading */
    button, .btn-glass, .glass-chip { transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .18s ease, box-shadow .2s ease, background-color .2s ease; }
    button:active, .btn-glass:active, .glass-chip:active { transform: scale(.965); filter: brightness(1.12); }
    @media (hover:hover) {
      button:hover, .btn-glass:hover, .glass-chip:hover { opacity: .94; }
      .quick-card, [data-track-id] { transition: transform .24s cubic-bezier(.2,.8,.2,1), box-shadow .24s ease; }
      .quick-card:hover, [data-track-id]:hover { transform: translateY(-4px); }
      .quick-card:hover img { box-shadow: 0 14px 28px rgba(0,0,0,.32); }
    }
    .skeleton { position:relative; overflow:hidden; background:rgba(255,255,255,.075); animation:none !important; }
    .skeleton::after { content:''; position:absolute; inset:0; transform:translateX(-100%); background:linear-gradient(90deg,transparent,rgba(255,255,255,.13),transparent); animation:skeletonShimmer 1.35s ease-in-out infinite; }
    @keyframes skeletonShimmer { to { transform:translateX(100%); } }
    .home-welcome { position:relative; isolation:isolate; overflow:hidden; min-height:166px; padding:25px 23px; border-radius:23px; background:linear-gradient(118deg,#343c38 0%,#202824 48%,#171d1b 100%); border:1px solid rgba(197,211,198,.14); box-shadow:0 18px 42px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.07); animation:homeReveal .55s cubic-bezier(.2,.75,.25,1) both; }
    .home-welcome::after { content:''; position:absolute; z-index:-1; width:260px; height:160px; right:-80px; bottom:-110px; border:1px solid rgba(201,218,203,.18); border-radius:50%; box-shadow:0 0 0 22px rgba(201,218,203,.025),0 0 0 48px rgba(201,218,203,.02); transform:rotate(-18deg); }
    .home-welcome h1 { position:relative; font-size:clamp(1.85rem,6vw,2.55rem); line-height:1.1; font-weight:760; letter-spacing:-.065em; margin:17px 0 8px; }
    .home-welcome p,.welcome-kicker { position:relative; color:rgba(231,238,230,.72); }
    .welcome-kicker { font-size:.62rem; font-weight:700; letter-spacing:.19em; }
    .welcome-orb { position:absolute; z-index:-1; width:150px; height:150px; right:8px; top:-88px; border-radius:50%; border:1px solid rgba(211,225,210,.16); background:radial-gradient(circle at 35% 70%,rgba(172,197,174,.13),rgba(172,197,174,0) 68%); }
    .welcome-violet { background:linear-gradient(118deg,#373a3a,#282b30 50%,#1a1d21); }
    .welcome-amber { background:linear-gradient(118deg,#464038,#2b2924 52%,#1b1b18); }
    .welcome-blue { background:linear-gradient(118deg,#344348,#242d31 52%,#191f21); }
    .welcome-rose { background:linear-gradient(118deg,#44383a,#2d2529 52%,#1e191c); }
    .streak-card { --flame-hi:#ffd0a0; --flame-mid:#f15a36; --flame-low:#8c1d1a; --flame-core-hi:#fff4d5; --flame-core:#ffb34f; --flame-glow:rgba(240,76,43,.2); display:flex; align-items:center; gap:18px; padding:19px 20px; border-radius:23px; background:linear-gradient(120deg,rgba(43,48,45,.96),rgba(26,30,28,.96)); border:1px solid rgba(210,222,210,.12); box-shadow:0 14px 32px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.055); }
    .streak-flame { width:78px; min-width:78px; height:86px; display:grid; place-items:center; position:relative; border-radius:19px; background:radial-gradient(ellipse at 50% 75%,var(--flame-glow),transparent 68%); }
    .flame-art { display:block; width:100%; height:100%; overflow:visible; transform-origin:50% 88%; filter:drop-shadow(0 5px 8px var(--flame-glow)); }
    .flame-outline { fill:rgba(255,255,255,.045); stroke:rgba(220,230,220,.2); stroke-width:2; stroke-dasharray:3 4; }
    .flame-lit { opacity:0; transform-origin:50% 100%; }
    .flame-main { fill:url(#flameOuter); }
    .flame-facet { fill:url(#flameSide); opacity:.5; }
    .flame-core { fill:url(#flameInner); filter:drop-shadow(0 0 5px var(--flame-core)); }
    .flame-glint { fill:#fff; opacity:.28; }
    .flame-base { fill:var(--flame-mid); opacity:.32; filter:blur(3px); }
    .streak-tier-0 .flame-outline { fill:rgba(255,255,255,.025); stroke:rgba(205,216,207,.22); stroke-width:2.2; stroke-dasharray:none; }
    .streak-tier-0 .flame-base { fill:rgba(255,255,255,.12); }
    .streak-tier-1 .flame-lit { opacity:1; animation:flameFlicker 2.4s ease-in-out infinite; }
    .streak-tier-50 { --flame-hi:#d9f7ff; --flame-mid:#42b9ed; --flame-low:#174caa; --flame-core-hi:#f4ffff; --flame-core:#83e5ff; --flame-glow:rgba(46,164,255,.28); }
    .streak-tier-100 { --flame-hi:#eaffc4; --flame-mid:#8ed34b; --flame-low:#286c38; --flame-core-hi:#fbffe8; --flame-core:#c4ff79; --flame-glow:rgba(120,211,67,.27); }
    .streak-tier-300 { --flame-hi:#ffd3b5; --flame-mid:#ff3d24; --flame-low:#720e19; --flame-core-hi:#fff3d6; --flame-core:#ff9a37; --flame-glow:rgba(255,45,30,.38); }
    .streak-tier-500 { --flame-hi:#f5d7ff; --flame-mid:#a95bfa; --flame-low:#4b168d; --flame-core-hi:#fff0ff; --flame-core:#e1a5ff; --flame-glow:rgba(164,82,255,.4); }
    .streak-tier-50 .flame-lit,.streak-tier-100 .flame-lit,.streak-tier-300 .flame-lit,.streak-tier-500 .flame-lit { opacity:1; animation:flameFlicker 2.1s ease-in-out infinite; }
    .streak-tier-50 .streak-flame,.streak-tier-100 .streak-flame { transform:scale(1.07); }
    .streak-tier-300 .streak-flame { transform:scale(1.13); }
    .streak-tier-500 .streak-flame { transform:scale(1.19); }
    .streak-tier-300 .flame-art,.streak-tier-500 .flame-art { filter:drop-shadow(0 0 8px var(--flame-glow)) drop-shadow(0 7px 8px rgba(0,0,0,.38)); }
    .streak-tier-500 .flame-lit { animation:flameFlicker 1.7s ease-in-out infinite; }
    @keyframes flameFlicker { 0%,100% { transform:rotate(-1.4deg) scaleY(.98); } 50% { transform:rotate(1.2deg) scaleY(1.035); } }
    .streak-number { font-size:1.85rem; line-height:1; letter-spacing:-.055em; font-variant-numeric:tabular-nums; }
    .streak-caption { color:var(--muted); font-size:1rem; }
    .streak-copy { margin:8px 0 10px; color:var(--muted); font-size:.85rem; line-height:1.45; }
    .streak-track { height:6px; border-radius:99px; overflow:hidden; background:rgba(255,255,255,.10); }
    .streak-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#a7b9a8,#e0e9dc); transition:width .45s cubic-bezier(.2,.75,.25,1); }
    .streak-foot { display:flex; justify-content:space-between; gap:8px; margin-top:8px; color:var(--muted); font-size:.68rem; font-variant-numeric:tabular-nums; }
    @keyframes homeReveal { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
    @media (max-width:420px) { .home-welcome { min-height:145px; padding:20px 18px; } .streak-card { gap:12px; padding:16px 14px; } .streak-flame { width:66px; min-width:66px; height:76px; } .streak-number { font-size:1.6rem; } }
    @media (prefers-reduced-motion:reduce) { .flame-lit { animation:none !important; } }
    @media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }

    /* =====================================================
       PREMIUM UI LAYER (visual only — tanpa ubah logika)
       ===================================================== */
    :root {
      --ease-pro: cubic-bezier(.22, 1, .36, 1);
      --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
      --accent-glow: color-mix(in srgb, var(--accent) 45%, transparent);
      --accent-hi: color-mix(in srgb, var(--accent) 78%, #fff 22%);
      --accent-lo: color-mix(in srgb, var(--accent) 82%, #000 18%);
      --premium-card: linear-gradient(155deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.04) 48%, rgba(255,255,255,.07) 100%);
      --premium-edge: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(0,0,0,.25);
    }
    html, body { font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif; letter-spacing: -.005em; }
    ::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }
    :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 12px; }

    /* aurora ambient: cahaya lembut mengikuti warna tema */
    #app::before {
      content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
      background:
        radial-gradient(60% 45% at 0% 0%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 70%),
        radial-gradient(55% 40% at 100% 8%, rgba(120,140,255,.10), transparent 72%),
        radial-gradient(70% 45% at 50% 108%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
    }
    @keyframes auroraDrift { from { opacity: .75; } to { opacity: 1; } }

    /* scrollbar tipis & elegan */
    ::-webkit-scrollbar { width: 6px; height: 6px; }
    ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent-glow), rgba(255,255,255,.14)); border-radius: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }

    /* splash */
    
    .splash-text { background: linear-gradient(90deg, #fff, var(--accent-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; letter-spacing: -.03em; }
    .splash-bar { background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 16px var(--accent-glow); }
    #splash::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 68%); }
    #splash > * { position: relative; }

    /* logo + judul */
    
    #page-title { background: linear-gradient(95deg, #fff 30%, var(--accent-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; letter-spacing: -.035em; }
    #view-home h2, .rc-section { letter-spacing: -.025em; }
    #view-home h2 { position: relative; }

    /* sidebar */
    .glass-side { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, var(--accent) 8%), color-mix(in srgb, var(--bg) 96%, #000)); box-shadow: 1px 0 0 rgba(255,255,255,.04), 12px 0 40px rgba(0,0,0,.25); }
    .nav-btn { position: relative; transition: background .25s var(--ease-pro), color .25s, transform .25s var(--ease-pro); }
    .nav-btn:hover { background: rgba(255,255,255,.07); transform: translateX(3px); }
    .nav-btn.active { color: #fff; background: linear-gradient(90deg, var(--accent-soft), rgba(255,255,255,.03)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent), 0 6px 18px rgba(0,0,0,.18); }
    .nav-btn.active::before { content: ''; position: absolute; left: -6px; top: 22%; bottom: 22%; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo)); box-shadow: 0 0 12px var(--accent-glow); }
    #sidebar .glass-chip { transition: background .25s, box-shadow .25s, color .25s; }
    #sidebar button:hover .glass-chip { background: var(--accent-soft); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 4px 14px var(--accent-soft); color: var(--accent-hi); }

    /* chip & tombol kaca */
    .glass-chip { background: var(--premium-card); box-shadow: var(--premium-edge); border-color: rgba(255,255,255,.12); }
    .btn-glass { background: var(--premium-card); box-shadow: var(--premium-edge), 0 6px 16px rgba(0,0,0,.18); border-color: rgba(255,255,255,.14); font-weight: 600; }
    .glass-top { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 86%, transparent), color-mix(in srgb, var(--bg) 40%, transparent)); border-bottom-color: transparent; }
    #tg-btn-m, #theme-btn-m { transition: box-shadow .25s, background .25s; }
    #tg-btn-m:active, #theme-btn-m:active { box-shadow: 0 0 0 4px var(--accent-soft); }

    /* tombol utama (bg-accent) */
    .bg-accent, .tg-btn.primary, .rc-btn.primary, .pl-act.primary, .tg-tabs button.on, .rc-period.active {
      background-image: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 52%, var(--accent-lo) 100%);
      box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.14);
      font-weight: 700; letter-spacing: -.005em; position: relative; overflow: hidden;
    }
    .bg-accent:hover, .tg-btn.primary:hover, .rc-btn.primary:hover { filter: brightness(1.07) saturate(1.1); }
    button.bg-accent::after, .tg-btn.primary::after, .rc-btn.primary::after {
      content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
      background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
      transform: skewX(-20deg); display: none;
    }
    @keyframes btnSheen { 0%, 62% { left: -60%; } 100% { left: 140%; } }
    #play-btn::after, #fp-play::after { display: none; }

    /* tombol kapsul lain */
    .tg-btn, .pl-act, .rc-btn.ghost, .sm-btn { background-image: var(--premium-card); box-shadow: var(--premium-edge); }
    .tg-btn.danger { background-image: linear-gradient(160deg, rgba(255,90,90,.16), rgba(255,90,90,.04)); border-color: rgba(255,120,120,.3); }
    .tg-btn:hover, .pl-act:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
    .tg-tabs { background: rgba(0,0,0,.28); box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }
    .rc-period { background: var(--premium-card); }

    /* mood chip */
    .mood-chip { background: var(--premium-card); box-shadow: var(--premium-edge); transition: all .28s var(--ease-pro); font-weight: 600; }
    .mood-chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
    .mood-chip.active { background-image: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 18%, transparent)); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 1px 0 rgba(255,255,255,.35); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }

    /* kartu cover */
    .quick-card img { box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08); transition: transform .45s var(--ease-pro), box-shadow .35s; }
    .quick-card:hover img { transform: scale(1.035); box-shadow: 0 18px 38px rgba(0,0,0,.5), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 28px var(--accent-soft); }
    .quick-card .label { font-weight: 600; letter-spacing: -.01em; }
    .album-card img { box-shadow: 0 10px 22px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.08); transition: transform .45s var(--ease-pro), box-shadow .3s; }
    .album-card:hover img { transform: scale(1.04); box-shadow: 0 16px 32px rgba(0,0,0,.5), 0 0 24px var(--accent-soft); }

    /* baris lagu */
    .song-row, [data-track-id] { border-radius: 16px; transition: background .25s, box-shadow .25s, transform .25s var(--ease-pro); }
    .song-row:hover, .song-row.active { background: linear-gradient(90deg, var(--accent-soft), rgba(255,255,255,.04)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
    .song-row.active { box-shadow: inset 3px 0 0 var(--accent), inset 0 0 0 1px rgba(255,255,255,.06); }
    .song-row img, [data-track-id] img { box-shadow: 0 6px 14px rgba(0,0,0,.35); }

    /* search */
    .glass-input { background: var(--premium-card); box-shadow: var(--premium-edge), 0 8px 22px rgba(0,0,0,.2); transition: border-color .25s, box-shadow .3s; }
    .glass-input:focus { border-color: color-mix(in srgb, var(--accent) 65%, transparent); box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 28px rgba(0,0,0,.3); }
    .modal-input, .code-box { background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); box-shadow: inset 0 2px 6px rgba(0,0,0,.25); }

    /* mini player */
    .player-glass { background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 50%, rgba(255,255,255,.07) 100%), color-mix(in srgb, var(--elev) 94%, transparent); border-color: rgba(255,255,255,.14); box-shadow: 0 18px 44px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px -12px var(--accent-glow); }
    #np-art { box-shadow: 0 8px 20px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.14); }
    #np-title { letter-spacing: -.015em; font-weight: 700; }
    #play-btn { background-image: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-lo)); box-shadow: 0 8px 22px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.55); transition: transform .2s var(--ease-pro), box-shadow .3s; }
    #play-btn:hover { box-shadow: 0 10px 30px var(--accent-glow), 0 0 0 5px var(--accent-soft), inset 0 1px 0 rgba(255,255,255,.55); }

    /* slider */
    input[type=range]::-webkit-slider-runnable-track { background: rgba(255,255,255,.16); border-radius: 4px; }
    input[type=range]::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -5px; background: radial-gradient(circle at 35% 30%, #fff, var(--accent-hi) 70%); box-shadow: 0 0 0 3px var(--accent-soft), 0 2px 10px var(--accent-glow); transition: box-shadow .2s; }
    input[type=range]:active::-webkit-slider-thumb { box-shadow: 0 0 0 6px var(--accent-soft), 0 2px 14px var(--accent-glow); }
    input[type=range]::-moz-range-thumb { width: 13px; height: 13px; background: var(--accent-hi); box-shadow: 0 0 0 3px var(--accent-soft); }
    #full-player .seek-fat::-webkit-slider-runnable-track { background: linear-gradient(90deg, rgba(255,255,255,.28), rgba(255,255,255,.14)); height: 6px; }
    #full-player .seek-fat::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6px; background: radial-gradient(circle at 35% 30%, #fff, var(--accent-hi)); box-shadow: 0 0 0 4px var(--accent-soft), 0 3px 12px var(--accent-glow); }
    .shuffle-on, .repeat-on { filter: drop-shadow(0 0 6px var(--accent-glow)); }

    /* navbar bawah */
    body:not(.theme-glass) .bottom-nav { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 78%, transparent), color-mix(in srgb, var(--bg) 96%, #000)); border-top-color: rgba(255,255,255,.07); box-shadow: 0 -14px 34px rgba(0,0,0,.4); }
    body:not(.theme-glass) .nav-btn-m { position: relative; transition: color .25s; }
    body:not(.theme-glass) .nav-btn-m.active::after { content: ''; position: absolute; top: -6px; left: 32%; right: 32%; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, transparent, var(--accent-hi), transparent); box-shadow: 0 4px 14px var(--accent-glow); }
    
    body.theme-glass .bottom-nav { box-shadow: var(--lg-shadow), 0 0 40px -10px var(--accent-glow); }

    /* sheet */
    .sheet-panel, body.theme-glass .sheet-panel { box-shadow: 0 -20px 60px rgba(0,0,0,.55), 0 -1px 0 color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1.5px 0 rgba(255,255,255,.26); }
    .sheet-handle { background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.5), rgba(255,255,255,.18)); }
    .sheet-panel h3 { letter-spacing: -.02em; font-weight: 800; }
    .sm-tile { box-shadow: var(--premium-edge), 0 6px 14px rgba(0,0,0,.18); }
    .sm-tile:hover, .sm-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
    .sm-row, .sm-btn { box-shadow: var(--premium-edge); }
    .sm-btn { border: 1px solid rgba(255,255,255,.07); margin-bottom: 6px; }
    

    /* beranda */
    .home-welcome { box-shadow: 0 22px 50px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); }
    .home-welcome::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: -40%; width: 35%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.08), transparent); transform: skewX(-18deg); display: none; }
    .home-welcome h1 { background: linear-gradient(95deg, #fff 35%, var(--accent-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
    .welcome-kicker { color: var(--accent-hi); text-shadow: 0 0 14px var(--accent-soft); }
    .welcome-orb { border-color: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 0 60px var(--accent-soft); }
    .streak-card { transition: transform .3s var(--ease-pro), box-shadow .3s; box-shadow: 0 16px 36px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 1px rgba(255,255,255,.03); }
    .streak-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.12), 0 0 30px var(--flame-glow); }
    .streak-track { box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
    .streak-track span { background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi)); box-shadow: 0 0 12px var(--accent-glow); }

    /* recap */
    .rc-card, .rc-list { background: var(--premium-card); box-shadow: var(--premium-edge), 0 14px 34px rgba(0,0,0,.25); }
    .rc-big { background: linear-gradient(95deg, var(--accent-hi), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .rc-back, .rc-share { background: var(--premium-card); box-shadow: var(--premium-edge); }
    .rc-art { box-shadow: 0 6px 16px rgba(0,0,0,.4); }

    /* dengar bareng */
    .tg-code { box-shadow: var(--premium-edge), 0 0 40px -10px var(--accent-glow); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
    .tg-code b { text-shadow: 0 0 24px var(--accent-glow); }
    .tg-status { box-shadow: var(--premium-edge); }
    .tg-user .av { box-shadow: 0 6px 14px rgba(0,0,0,.3); }
    .tg-user.host .av { box-shadow: 0 0 0 3px var(--accent-soft), 0 6px 16px var(--accent-glow); }
    .tg-msg.mine { background-image: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: 0 6px 14px var(--accent-soft); }
    .tg-chat, .tg-pl { box-shadow: inset 0 2px 8px rgba(0,0,0,.28); }

    /* pemutar penuh */
    #full-player { background-image: radial-gradient(90% 55% at 50% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%), var(--gradient); }
    #full-player .fp-art { box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.12), 0 0 80px -10px var(--accent-glow); }
    #full-player #fp-play { background-image: linear-gradient(180deg, var(--accent-hi), var(--accent) 55%, var(--accent-lo)); box-shadow: 0 14px 36px var(--accent-glow), 0 0 0 6px var(--accent-soft), inset 0 1px 0 rgba(255,255,255,.6); }
    #full-player .fp-handle::before { background: linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,.55), rgba(255,255,255,.2)); }

    /* lirik */
    .lyric-line { transition: color .3s, font-size .3s, text-shadow .3s, opacity .3s; border-radius: 14px; }
    .lyric-line:hover { color: #fff; }
    .lyric-line.active { text-shadow: 0 0 26px var(--accent-glow), 0 0 2px rgba(255,255,255,.4); }

    /* toast & skeleton */
    #toast { background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06)), color-mix(in srgb, var(--elev) 90%, transparent); border: 1px solid rgba(255,255,255,.18); font-weight: 600; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
    .skeleton { border-radius: 14px; }
    .tg-badge { box-shadow: 0 0 0 2px var(--bg), 0 0 10px rgba(255,93,93,.6); background-image: linear-gradient(180deg, #ff7a7a, #ff4d4d); }
    .credit-link a { text-decoration-color: var(--accent-glow); text-underline-offset: 3px; }

    @media (prefers-reduced-motion: reduce) {
      #app::before, .home-welcome::before, button.bg-accent::after, .tg-btn.primary::after, .rc-btn.primary::after, #splash::before { animation: none !important; }
    }

    /* =====================================================
       TOMBOL HEADER RECAP (kembali & bagikan)
       ===================================================== */
    .rc-head { position: relative; }
    .rc-back, .rc-share {
      position: relative; width: 48px; height: 48px; font-size: 0; line-height: 0; color: transparent;
      border: 1px solid rgba(255,255,255,.2);
      background:
        radial-gradient(120% 90% at 30% 0%, rgba(255,255,255,.30), rgba(255,255,255,0) 55%),
        linear-gradient(160deg, color-mix(in srgb, var(--accent) 26%, rgba(255,255,255,.08)), rgba(255,255,255,.04));
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 8px rgba(0,0,0,.22),
        0 8px 20px rgba(0,0,0,.35), 0 0 22px -4px var(--accent-glow);
      transition: transform .25s var(--ease-pro), box-shadow .3s, border-color .3s, background .3s;
      overflow: hidden;
    }
    .rc-back::before, .rc-share::before {
      content: ''; width: 22px; height: 22px; display: block;
      background: linear-gradient(180deg, #fff 10%, var(--accent-hi));
      filter: drop-shadow(0 1px 6px var(--accent-glow));
      -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
      -webkit-mask-position: center; mask-position: center;
      -webkit-mask-size: contain; mask-size: contain;
      transition: transform .3s var(--ease-pro);
    }
    .rc-back::before {
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
    }
    .rc-share::before {
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3'/%3E%3Cpath d='M7.5 7.5L12 3l4.5 4.5'/%3E%3Cpath d='M5 13v5a3 3 0 003 3h8a3 3 0 003-3v-5'/%3E%3C/svg%3E");
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3'/%3E%3Cpath d='M7.5 7.5L12 3l4.5 4.5'/%3E%3Cpath d='M5 13v5a3 3 0 003 3h8a3 3 0 003-3v-5'/%3E%3C/svg%3E");
    }
    .rc-back:hover, .rc-share:hover {
      border-color: color-mix(in srgb, var(--accent) 65%, transparent);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 8px rgba(0,0,0,.2), 0 12px 26px rgba(0,0,0,.4), 0 0 0 4px var(--accent-soft), 0 0 30px -2px var(--accent-glow);
    }
    .rc-back:hover::before { transform: translateX(-2px); }
    .rc-share:hover::before { transform: translateY(-2px); }
    .rc-back:active, .rc-share:active { transform: scale(.9); }
    .rc-title { font-weight: 800; letter-spacing: -.03em; background: linear-gradient(95deg, #fff 35%, var(--accent-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* =====================================================================
   TEMA PINK SWEET (soft) + CUSTOM  — ringan, tanpa blur berat
   ===================================================================== */
body.theme-soft .player-glass, body.theme-soft .bottom-nav, body.theme-soft .sheet-panel {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
body.theme-soft .player-glass {
  position: relative; border-radius: 24px; padding: 10px 14px 8px; border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--elev)), var(--elev));
  box-shadow: 0 10px 28px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.14);
}
body.theme-soft .bottom-nav {
  background: linear-gradient(180deg, color-mix(in srgb, var(--elev) 92%, transparent), var(--elev));
  border-top: 1px solid var(--glass-border);
}
body.theme-soft .sheet-panel { border-radius: 30px 30px 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--elev)), var(--elev)); }
body.theme-soft .quick-card img, body.theme-soft .view img.rounded-lg, body.theme-soft .view img.rounded-xl { border-radius: 20px; }
body.theme-soft .quick-card img { box-shadow: 0 6px 16px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.1); }
body.theme-soft .mood-chip { border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
body.theme-soft .mood-chip.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
body.theme-soft .glass-chip, body.theme-soft .btn-glass { border-radius: 18px; background: color-mix(in srgb, var(--accent) 10%, rgba(255,255,255,.04)); }
body.theme-soft #play-btn, body.theme-soft #fp-play { box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 38%, transparent); }
body.theme-soft .glass-top { background: var(--glass-head, transparent); }

/* kartu sambutan mengikuti warna tema (pink & custom) */
body[data-skin] .home-welcome {
  background: linear-gradient(118deg, color-mix(in srgb, var(--accent) 36%, var(--elev)) 0%, color-mix(in srgb, var(--accent) 16%, var(--bg)) 55%, var(--bg) 100%);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: 0 14px 30px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.1);
}
body[data-skin] .home-welcome::after { border-color: color-mix(in srgb, var(--accent) 28%, transparent); box-shadow: none; }
body[data-skin] .welcome-orb { border-color: color-mix(in srgb, var(--accent) 26%, transparent); background: radial-gradient(circle at 35% 70%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%); }
body[data-skin] .home-welcome p, body[data-skin] .welcome-kicker { color: color-mix(in srgb, var(--accent) 35%, #fff); }
/* sentuhan imut: hati di kartu sambutan */
body[data-skin="pink"] .home-welcome::after {
  content: '\2661'; border: none; width: auto; height: auto; right: 18px; bottom: -34px; transform: rotate(-14deg);
  font-size: 128px; line-height: 1; color: color-mix(in srgb, var(--accent) 26%, transparent);
}
body[data-skin="pink"] #page-title { background: linear-gradient(95deg, #fff 20%, #ffb3da); -webkit-background-clip: text; background-clip: text; color: transparent; }
body[data-skin="pink"] ::selection { background: rgba(255,143,199,.45); }

/* panel custom */
.c-preset { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); padding: 0; }
.c-preset.active { border-color: #fff; transform: scale(1.12); }
.c-style { padding: 8px 4px; border-radius: 12px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.07); border: 1px solid var(--glass-border); color: #fff; }
.c-style.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.c-ghost { background: rgba(255,255,255,.07); border: 1px solid var(--glass-border); }
#custom-theme-box input[type=color] { cursor: pointer; padding: 0; }

/* hormati pengaturan hemat gerak */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   IKON 3D  (js/icons.js)
   ===================================================================== */
.ico3d {
  --s: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * .32);
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--ic) 68%, #fff) 0%, var(--ic) 46%, color-mix(in srgb, var(--ic) 58%, #000) 100%);
  box-shadow:
    inset 0 1.5px 0 rgba(255,255,255,.6),
    inset 0 -3px 0 rgba(0,0,0,.2),
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 3px 0 color-mix(in srgb, var(--ic) 45%, #000),
    0 8px 14px color-mix(in srgb, var(--ic) 34%, rgba(0,0,0,.5));
  transition: transform .15s ease;
}
.ico3d.round { border-radius: 50%; }
/* kilap kaca di separuh atas */
.ico3d::before {
  content: ''; position: absolute; left: 7%; right: 7%; top: 5%; height: 46%;
  border-radius: calc(var(--s) * .3) calc(var(--s) * .3) 60% 60% / calc(var(--s) * .3) calc(var(--s) * .3) 40% 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.46), rgba(255,255,255,0));
  pointer-events: none;
}
.ico3d.round::before { border-radius: 50% 50% 60% 60% / 55% 55% 45% 45%; left: 12%; right: 12%; }
.ico3d svg { position: relative; z-index: 1; width: 56%; height: 56%; overflow: visible; }
.ico3d .mn { color: #fff; }
.ico3d .sh { color: rgba(0,0,0,.3); }
button:active .ico3d, .glass-chip:active .ico3d { transform: translateY(2px) scale(.96); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.5), inset 0 -2px 0 rgba(0,0,0,.2), 0 1px 0 color-mix(in srgb, var(--ic) 45%, #000), 0 3px 6px rgba(0,0,0,.3); }
/* kotak ikon di baris Pustaka ikut menonjol */
#view-library .glass-chip { align-items: center; }
.hbtn { position: relative; width: 40px; height: 40px; padding: 0; border: 0; background: none; display: inline-flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.hbtn .tg-dot { top: 3px; right: 3px; }
.hbtn .tg-badge { top: -2px; right: -2px; }
#sidebar .ico3d { --s: 30px; }

/* =====================================================================
   PEMILIH WARNA CUSTOM
   ===================================================================== */
.cp-box { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 26px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.18); }
.cp-box.hidden { display: none; }
.cp-prev { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 22px; background: var(--gradient, none), var(--bg); background-color: var(--bg); border: 1px solid var(--glass-border); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.cp-prev-art { width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto; background: linear-gradient(140deg, var(--accent-hi, var(--accent)), var(--accent-lo, var(--accent))); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.cp-prev-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cp-prev-txt b { font-size: 14px; font-weight: 700; }
.cp-prev-txt i { font-style: normal; font-size: 12px; color: var(--muted); }
.cp-prev-play { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--bg); box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1.5px 0 rgba(255,255,255,.5); }
.cp-prev-play svg { width: 20px; height: 20px; }

.cp-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px; border-radius: 20px; background: rgba(0,0,0,.28); }
.cp-target { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; text-align: left; border: 1px solid transparent; color: #fff; font-size: 13px; font-weight: 700; }
.cp-target small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.cp-target.active { background: linear-gradient(160deg, rgba(255,255,255,.18), rgba(255,255,255,.07)); border-color: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.cp-dot { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 2px 6px rgba(0,0,0,.4); }

.cp-sv { position: relative; height: 150px; border-radius: 18px; touch-action: none; cursor: crosshair; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.cp-hue { position: relative; height: 18px; border-radius: 999px; touch-action: none; background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.cp-knob { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.55); pointer-events: none; }
.cp-hue .cp-knob { top: 50%; }

.cp-hexrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.cp-hexfield { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.14); }
.cp-hexfield b { color: var(--muted); }
.cp-hexfield input { width: 84px; background: transparent; border: 0; outline: 0; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .08em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.cp-hexfield:focus-within { border-color: var(--accent); }

.cp-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; justify-items: center; }
.cp-chip { width: 34px; height: 34px; border-radius: 50%; padding: 0; border: 2px solid rgba(255,255,255,.2); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 3px 6px rgba(0,0,0,.35); }
.cp-chip.active { border-color: #fff; transform: scale(1.12); }
.cp-note { font-size: 10.5px; color: var(--muted); margin: -2px 0 0; }
.cp-label { font-size: 12px; font-weight: 700; color: var(--muted); margin: 2px 0 -4px; letter-spacing: .04em; }

.cp-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cp-style { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--muted); }
.cp-style svg { width: 48px; height: 32px; color: var(--muted); margin-bottom: 4px; }
.cp-style b { font-size: 12px; color: #fff; }
.cp-style small { font-size: 10px; }
.cp-style.active { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--accent) 10%, transparent)); border-color: var(--accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 25%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
.cp-style.active svg { color: var(--accent); }

.cp-btn { padding: 12px; border-radius: 16px; font-size: 14px; font-weight: 700; }
.cp-btn.ghost { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.cp-btn.primary { background: linear-gradient(160deg, var(--accent-hi, var(--accent)), var(--accent)); color: var(--bg); box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1.5px 0 rgba(255,255,255,.5); }

/* Sheet Tema: isi lebih tinggi dari layar (pemilih warna), jadi panel harus bisa di-scroll */
#theme-sheet .sheet-panel {
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  max-height: 90dvh; touch-action: pan-y;
}
#theme-sheet .sheet-handle { flex: 0 0 auto; }


/* =====================================================================
   AKSESORIS TEMA PINK SWEET (hanya aktif di tema pink, semuanya statis / ringan)
   ===================================================================== */
/* pola hati, bintang & kilau halus di latar */
body[data-skin="pink"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='%23ff8fc7' fill-opacity='.11'%3E%3Cpath transform='translate%2826 30%29' d='M0 -3c-1.5-3.5-7-2.5-7 1.5 0 4 7 8 7 8s7-4 7-8c0-4-5.5-5-7-1.5z'/%3E%3Cpath transform='translate%28112 96%29 scale%28.8%29 rotate%2812%29' d='M0 -3c-1.5-3.5-7-2.5-7 1.5 0 4 7 8 7 8s7-4 7-8c0-4-5.5-5-7-1.5z'/%3E%3Cpath transform='translate%2874 128%29 scale%28.55%29' d='M0 -3c-1.5-3.5-7-2.5-7 1.5 0 4 7 8 7 8s7-4 7-8c0-4-5.5-5-7-1.5z'/%3E%3Cpath transform='translate%28100 22%29' d='M0 -6l1.9 4.2 4.6.5-3.4 3.1 1 4.6L0 3.9-4.1 6.4l1-4.6-3.4-3.1 4.6-.5z'/%3E%3Cpath transform='translate%2846 84%29' d='M0 -5l1.3 3.7L5 0 1.3 1.3 0 5-1.3 1.3-5 0l3.7-1.3z'/%3E%3Ccircle cx='132' cy='56' r='2'/%3E%3Ccircle cx='12' cy='118' r='1.8'/%3E%3C/g%3E%3C/svg%3E"), var(--gradient);
  background-size: 150px 150px, auto;
  background-attachment: fixed, fixed;
}
/* pita di kartu sambutan */
body[data-skin="pink"] .home-welcome::before {
  display: block; content: ''; z-index: 0; left: auto; right: 22px; top: 16px; bottom: auto; width: 58px; height: 42px;
  transform: rotate(12deg); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 46'%3E%3Cpath d='M30 26 22 42M34 26l8 16' stroke='%23ff9fd0' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M32 23C23 8 7 4 4.5 14.5 2.5 24 17 29 32 23z' fill='%23ff8fc7'/%3E%3Cpath d='M32 23c9-15 25-19 27.500-8.500C61.500 24 47 29 32 23z' fill='%23ff8fc7'/%3E%3Cpath d='M12 13c4-2 9-.5 13 4' stroke='%23fff' stroke-opacity='.55' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='32' cy='23' r='6.2' fill='%23ffb3da'/%3E%3Ccircle cx='30.200' cy='21' r='1.8' fill='%23fff' fill-opacity='.7'/%3E%3C/svg%3E") center / contain no-repeat; animation: none;
  filter: none; box-shadow: none; border: 0;
}
body[data-skin="pink"] .welcome-kicker::before { content: '\2661  '; color: #ffb3da; }
body[data-skin="pink"] .welcome-kicker::after { content: '  \2726'; color: #ffb3da; }
/* judul halaman & section dengan hiasan */
body[data-skin="pink"] #page-title::after { content: ' \2661'; font-size: .7em; }
body[data-skin="pink"] #view-home h2::after, body[data-skin="pink"] #view-search h2::after { content: ' \2726'; color: var(--accent); font-size: .6em; vertical-align: middle; }
/* sampul lagu: bingkai pink manis */
body[data-skin="pink"] .quick-card img {
  box-shadow: 0 0 0 2px rgba(255,160,210,.55), 0 8px 18px rgba(255,105,180,.22);
}
body[data-skin="pink"] #np-art { box-shadow: 0 0 0 2px rgba(255,160,210,.6), 0 4px 10px rgba(255,105,180,.25); border-radius: 16px; }
/* tab aktif: hati kecil, bukan garis */
body[data-skin="pink"] .nav-btn-m.active::after {
  content: '\2665'; top: -11px; left: 50%; right: auto; width: auto; height: auto; transform: translateX(-50%);
  background: none; border-radius: 0; box-shadow: none; font-size: 11px; line-height: 1; color: var(--accent);
}
/* tombol putar & kapsul chip lebih imut */
body[data-skin="pink"] #play-btn, body[data-skin="pink"] #fp-play {
  background: linear-gradient(160deg, #ffc2e2, #ff7fbd); box-shadow: 0 6px 16px rgba(255,105,180,.45), inset 0 1.5px 0 rgba(255,255,255,.6);
}
body[data-skin="pink"] .mood-chip::before { content: '\2661 '; opacity: .8; }
body[data-skin="pink"] .sheet-handle { background: linear-gradient(90deg, #ffc2e2, #ff8fc7, #ffc2e2); box-shadow: 0 1px 6px rgba(255,105,180,.4); }
body[data-skin="pink"] .sheet-panel h3::after { content: ' \2661'; color: var(--accent); font-size: .8em; }
body[data-skin="pink"] #toast::before { content: '\2661  '; color: #ffb3da; }
body[data-skin="pink"] .home-welcome h1::after { content: ' \2728'; font-size: .6em; }

/* =====================================================================
   LIRIK GAYA APPLE MUSIC  (js/lyrics.js)
   ===================================================================== */
#lyrics-body {
  position: relative; padding: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
}
.lyr-wrap { max-width: 680px; margin: 0 auto; padding: 34vh 22px 52vh; }
.lyric-line {
  --blur: 0px;
  padding: .5rem .4rem; font-size: 1.5rem; line-height: 1.35; font-weight: 700; letter-spacing: -.012em;
  text-align: center; cursor: pointer;
  color: rgba(255,255,255,.5); text-shadow: none;
  filter: blur(var(--blur));
  transform: scale(.94); transform-origin: 50% 50%;
  transition: transform .6s cubic-bezier(.22,1,.36,1), filter .5s ease, opacity .5s ease, color .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.lyric-line:hover { color: rgba(255,255,255,.5); }
.lyric-line.active { transform: scale(1); color: #fff; font-size: 1.5rem; font-weight: 700; text-shadow: none; }
.lyr-simple .lyric-line { filter: none; transform: none; }
.lyr-simple .lyric-line.active { color: #fff; text-shadow: 0 0 22px var(--accent-glow, rgba(255,255,255,.25)); }
.lyr-wrap.browsing .lyric-line { filter: none !important; opacity: 1 !important; }

/* kata: isian horizontal lembut + sedikit melayang */
.lw { display: inline-block; transition: transform .5s cubic-bezier(.22,1,.36,1), filter .4s ease; }
.lyr-apple .lyric-line.active .lw {
  --p: -14;
  color: transparent;
  background-image: linear-gradient(90deg, #fff calc(var(--p) * 1%), rgba(255,255,255,.4) calc(var(--p) * 1% + 14%));
  -webkit-background-clip: text; background-clip: text;
}
.lyr-apple .lyric-line.active .lw.cur {
  transform: translateY(-.07em);
  filter: drop-shadow(0 0 .38em rgba(255,255,255,.45));
}

/* jeda instrumental */
.lyric-line.gap { display: flex; justify-content: center; align-items: center; gap: .55rem; padding: .55rem 0; transform: scale(.8); }
.lyric-line.gap i { width: .7rem; height: .7rem; border-radius: 50%; background: rgba(255,255,255,.32); transition: background .3s, transform .4s cubic-bezier(.34,1.5,.5,1); }
.lyric-line.gap i.on { background: #fff; transform: scale(1.18); }
.lyric-line.gap.active { transform: scale(1); }

/* kontrol bawah panel lirik */
.lyr-bar { display: flex; align-items: center; gap: 12px; padding: 8px 18px calc(14px + env(safe-area-inset-bottom, 0px)); }
.lyr-bar input[type=range] { flex: 1; min-width: 0; }
.lyr-time { font-size: 11px; color: var(--muted); width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.lyr-bar button { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: var(--bg); border: 0; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.lyr-bar button:active { transform: scale(.94); }

/* =====================================================================
   DYNAMIC ISLAND  (js/island.js)
   ===================================================================== */
.island {
  position: fixed; z-index: 120; left: 50%;
  top: calc(env(safe-area-inset-top, 0px) * .3 + 10px);
  width: 96px; height: 30px; border-radius: 999px;
  background: #000; color: #fff; overflow: hidden;
  transform: translateX(-50%) scale(.5); opacity: 0; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 16px 36px rgba(0,0,0,.55);
  transition:
    width .55s cubic-bezier(.34,1.42,.52,1), height .55s cubic-bezier(.34,1.42,.52,1),
    border-radius .45s ease, transform .42s cubic-bezier(.34,1.42,.52,1), opacity .22s ease;
  -webkit-tap-highlight-color: transparent; touch-action: none;
}
.island.show { opacity: 1; transform: translateX(-50%) scale(1); pointer-events: auto; }
.isl-in {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max-content; display: flex; align-items: center; gap: 11px;
  padding: 10px 18px 10px 11px;
  opacity: 0; filter: blur(8px);
  transition: opacity .26s ease .1s, filter .3s ease .1s;
}
.island.open .isl-in { opacity: 1; filter: blur(0); }
.island.swap .isl-in { opacity: 0; filter: blur(6px); transition-duration: .1s; transition-delay: 0s; }
.isl-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.isl-ico svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.isl-art { flex: none; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #222; }
.isl-txt { display: flex; flex-direction: column; min-width: 0; max-width: min(62vw, 250px); }
.isl-txt b { font-size: 13.5px; line-height: 1.25; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isl-txt b.isl-msg { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.isl-txt small { font-size: 12px; line-height: 1.25; color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isl-txt small.isl-kick { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.isl-eq { flex: none; display: flex; align-items: flex-end; gap: 3px; height: 20px; margin-left: 4px; }
.isl-eq i { width: 3.5px; border-radius: 2px; background: #30d158; height: 30%; animation: islEq 1s ease-in-out infinite; }
.isl-eq i:nth-child(2) { animation-delay: -.3s; background: #5ef08a; }
.isl-eq i:nth-child(3) { animation-delay: -.6s; }
.isl-eq i:nth-child(4) { animation-delay: -.15s; background: #5ef08a; }
@keyframes islEq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .island, .isl-in { transition-duration: .01s !important; } .isl-eq i { animation: none; height: 60%; } }

/* =====================================================================
   PENGATURAN
   ===================================================================== */
.bottom-nav.no-active .nav-lens { visibility: hidden !important; }
.set-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 20px 6px 8px; }
.set-group { border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.14); }
.set-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; text-align: left; color: inherit; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
.set-row + .set-row { border-top: 1px solid rgba(255,255,255,.07); }
button.set-row:active { background: rgba(255,255,255,.06); }
.set-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.set-txt b { font-size: 15px; font-weight: 700; }
.set-txt small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.set-chev { color: var(--muted); font-size: 24px; line-height: 1; }
.set-back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 700; font-size: 15px; padding: 4px 2px 10px; background: none; border: 0; }
.switch { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; border: 0; background: rgba(255,255,255,.18); transition: background .25s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .32s cubic-bezier(.34,1.5,.5,1); }
.switch[aria-checked="true"] { background: #30d158; }
.switch[aria-checked="true"] i { transform: translateX(20px); }
.seg { display: flex; flex: none; gap: 2px; padding: 3px; border-radius: 13px; background: rgba(255,255,255,.08); }
.seg button { padding: 6px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: none; border: 0; transition: background .2s, color .2s; }
.seg button.on { background: var(--accent); color: var(--bg); }
.stepper { display: flex; flex: none; align-items: center; gap: 6px; }
.stepper button { width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 19px; font-weight: 700; line-height: 1; }
.stepper button:active { background: rgba(255,255,255,.2); }
.stepper span { min-width: 60px; text-align: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- Island: mini-player menetap + kontrol ---- */
.isl-in.mini { padding: 6px 14px 6px 7px; gap: 9px; }
.isl-art.sm, .isl-ico.sm { width: 24px; height: 24px; border-radius: 8px; }
.isl-ico.sm svg { width: 14px; height: 14px; }
.isl-ico.sm { border-radius: 50%; }
.isl-eq.sm { height: 14px; margin-left: 0; gap: 2.5px; }
.isl-eq.sm i { width: 3px; }
.isl-in:not(.playing) .isl-eq i { animation-play-state: paused; height: 28%; }
.isl-in.ctrl { padding: 14px 16px 12px; gap: 0; }
.isl-card { width: min(calc(100vw - 48px), 340px); display: flex; flex-direction: column; gap: 10px; }
.isl-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.isl-top .isl-art { width: 52px; height: 52px; border-radius: 13px; }
.isl-txt.ctl { max-width: none; flex: 1; min-width: 0; }
.isl-txt.ctl b { font-size: 15px; }
.isl-ctl { display: flex; align-items: center; justify-content: space-between; flex: none; }
.isl-ctl button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; color: #fff; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.isl-ctl button svg { width: 24px; height: 24px; }
.isl-ctl button:active { background: rgba(255,255,255,.16); }
.isl-ctl .rp { color: rgba(255,255,255,.55); }
.isl-ctl .rp svg { width: 22px; height: 22px; }
.isl-ctl .rp.on { color: #30d158; background: rgba(48,209,88,.16); }
.isl-ctl .pp { width: 50px; height: 50px; background: #fff; color: #000; }
.isl-ctl .pp:active { background: rgba(255,255,255,.75); }
.isl-ctl .pp svg { width: 24px; height: 24px; }
.isl-in.playing .i-play, .isl-in:not(.playing) .i-pause { display: none; }
.isl-seek { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.isl-bar { position: relative; flex: 1; height: 22px; display: flex; align-items: center; touch-action: none; cursor: pointer; }
.isl-bar::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255,255,255,.24); }
.isl-bar i { position: absolute; left: 0; width: 100%; height: 4px; border-radius: 2px; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.isl-bar u { position: absolute; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.isl-prog { position: absolute; left: 16px; right: 16px; bottom: 7px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.isl-prog i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s linear; }

#page-title.pt-small { font-size: inherit; }

/* ---- Sinkron lirik: chip + panel penyesuaian ---- */
.lyric-line { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lyr-chip { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.1); color: #fff; border: 0; white-space: nowrap; }
.lyr-chip.warn { background: rgba(255,159,10,.24); color: #ffb340; }
.lyr-sync { margin: 0 14px 4px; padding: 12px; border-radius: 20px; background: rgba(30,30,34,.94); border: 1px solid rgba(255,255,255,.12); }
.lyr-sync-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.lyr-sync-row button { min-width: 52px; height: 36px; padding: 0 10px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 13px; }
.lyr-sync-row button:active { background: rgba(255,255,255,.22); }
.lyr-sync-row span { min-width: 78px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.lyr-sync p { font-size: 11.5px; color: var(--muted); text-align: center; margin: 9px 4px 0; line-height: 1.4; }

/* ======================================================================
   Beranda gaya baru, pencarian, dialog, dan tombol (semua mengikuti tema)
   ====================================================================== */
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: .5rem .95rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: #fff; white-space: nowrap; background: rgba(255,255,255,.09); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); transition: transform .12s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.pill-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.pill-btn:active { transform: scale(.96); background: rgba(255,255,255,.17); }
.pill-btn.primary { background: var(--accent); color: var(--bg); border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.pill-btn.primary:active { background: color-mix(in srgb, var(--accent) 85%, #000); }
.pill-btn.lg { padding: .72rem 1.3rem; font-size: .9rem; }
.pill-btn.sm { padding: .38rem .8rem; font-size: .75rem; }
.pill-btn:disabled { opacity: .5; }
.row-act { padding: .3rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.08); border: 1px solid var(--glass-border); -webkit-tap-highlight-color: transparent; }
.row-act:active { background: rgba(255,255,255,.16); }
.row-act.danger { color: #ff8a8a; background: rgba(255,90,90,.1); border-color: rgba(255,90,90,.2); }

/* tombol kembali di subhalaman pengaturan, tombol grup sesi */
.set-back { display: inline-flex; align-items: center; gap: 6px; padding: .5rem .95rem .5rem .6rem; margin-bottom: 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: #fff; background: rgba(255,255,255,.09); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); -webkit-tap-highlight-color: transparent; }
.set-back svg { width: 18px; height: 18px; color: var(--accent); }
.set-back:active { background: rgba(255,255,255,.17); }
.tg-btn { border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.tg-btn.danger { background: rgba(255,90,90,.12); border-color: rgba(255,90,90,.25); color: #ff8a8a; }
.tg-btn.danger:active { background: rgba(255,90,90,.22); }

/* ---- judul bagian ---- */
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hm-h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.hm-kicker { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.72); }
.hm-kicker2 { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 2px; }
.hm-chips { scrollbar-width: none; }
.hm-chips::-webkit-scrollbar { display: none; }
.hm-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.hm-scroll::-webkit-scrollbar { display: none; }
.hm-glist { display: flex; flex-direction: column; gap: 2px; }

/* ---- kartu utama (lanjutkan / mulai) ---- */
.hm-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; min-height: 214px; border-radius: calc(var(--radius) * 2); border: 1px solid var(--glass-border); background: var(--card); }
.hm-hero-bg { position: absolute; inset: -24px; z-index: -2; background-image: var(--cover); background-size: cover; background-position: center; filter: blur(30px) saturate(1.35); transform: scale(1.12); opacity: .8; }
.hm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 100%); }
.hm-hero-art { position: absolute; top: 16px; right: 16px; width: 92px; height: 92px; border-radius: calc(var(--radius) * 1.4); object-fit: cover; box-shadow: 0 10px 26px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); }
.hm-hero-body { width: 100%; padding: 20px 18px 18px; }
.hm-hero-title { margin-top: 6px; padding-right: 100px; font-size: 1.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-hero-artist { margin-top: 3px; color: rgba(255,255,255,.78); font-size: .95rem; }
.hm-hero-actions { display: flex; gap: 10px; margin-top: 16px; }

/* ---- Pilihan Teratas: kartu artis berwarna ---- */
.top-card { position: relative; flex: 0 0 76%; max-width: 330px; min-height: 306px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; color: #fff; overflow: hidden; scroll-snap-align: start; border-radius: calc(var(--radius) * 2.2); background: linear-gradient(160deg, hsl(var(--h) 52% 40%), hsl(var(--h) 58% 21%)); box-shadow: 0 10px 28px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.16); -webkit-tap-highlight-color: transparent; }
.top-card:active { transform: scale(.985); }
.top-brand { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; opacity: .92; }
.top-brand svg { width: 16px; height: 16px; }
.top-art img { position: absolute; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.28); background: rgba(0,0,0,.25); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.top-art .a1 { left: 16px; top: 26px; width: 148px; height: 148px; }
.top-art .a2 { right: 22px; top: 62px; width: 98px; height: 98px; }
.top-art .a3 { left: 92px; top: 150px; width: 64px; height: 64px; }
.top-sub { position: relative; font-size: .88rem; opacity: .82; }
.top-title { position: relative; margin-top: 2px; font-size: 1.3rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }

/* ---- Speed Dial ---- */
.speed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .speed-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.speed-tile { position: relative; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; border-radius: calc(var(--radius) * 1.6); background: var(--card); box-shadow: 0 6px 16px rgba(0,0,0,.28); -webkit-tap-highlight-color: transparent; }
.speed-tile:active { transform: scale(.98); }
.speed-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.speed-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78) 100%); }
.speed-label { position: absolute; left: 10px; right: 10px; bottom: 8px; min-width: 0; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.speed-label b { display: block; font-size: .84rem; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.speed-label i { display: block; font-style: normal; font-size: .7rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Album & Essentials ---- */
.ess-card { flex: 0 0 47%; max-width: 212px; text-align: left; color: #fff; overflow: hidden; scroll-snap-align: start; border-radius: calc(var(--radius) * 1.7); background: color-mix(in srgb, var(--accent) 24%, var(--card)); border: 1px solid var(--glass-border); -webkit-tap-highlight-color: transparent; }
.ess-card:active { transform: scale(.985); }
.ess-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; font-weight: 800; font-size: .95rem; }
.ess-top span { font-size: .7rem; font-weight: 700; opacity: .75; }
.ess-card img { display: block; width: calc(100% - 16px); margin: 0 8px; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) * 1.3); background: rgba(0,0,0,.2); }
.ess-meta { padding: 10px 12px 12px; }
.ess-meta b { display: block; font-size: .9rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ess-meta i { display: block; font-style: normal; font-size: .75rem; color: var(--muted); margin-top: 1px; }

/* ---- Pilihan Cepat (4 lagu per kartu) ---- */
.qp-card { flex: 0 0 88%; max-width: 430px; padding: 6px; scroll-snap-align: start; border-radius: calc(var(--radius) * 2); background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--glass-border); }

/* ---- Pencarian ---- */
.sc-card { margin-bottom: 16px; padding: 16px; border-radius: calc(var(--radius) * 2); background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid var(--glass-border); }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sc-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.02rem; }
.sc-title svg { width: 20px; height: 20px; color: var(--accent); }
.mood-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .mood-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mood-dot { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 4px 4px 14px; height: 48px; border-radius: 999px; text-align: left; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); -webkit-tap-highlight-color: transparent; }
.mood-dot:active { background: rgba(255,255,255,.14); }
.mood-dot .dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.mood-dot .lbl { flex: 1; min-width: 0; font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mood-dot .pl { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.mood-dot .pl svg { width: 18px; height: 18px; }
.mood-dot .pl:active { background: color-mix(in srgb, var(--accent) 30%, transparent); color: #fff; }
.rs-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rs-chip { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; padding: .5rem .45rem .5rem .8rem; border-radius: 999px; font-size: .9rem; background: rgba(255,255,255,.07); border: 1px solid var(--glass-border); -webkit-tap-highlight-color: transparent; }
.rs-chip svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--muted); }
.rs-chip span.t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-chip .x { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.rs-chip .x:active { background: rgba(255,255,255,.16); color: #fff; }
.sg-list { margin-bottom: 14px; overflow: hidden; border-radius: calc(var(--radius) * 1.6); background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid var(--glass-border); }
.sg-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 6px 12px 14px; text-align: left; color: inherit; font-size: .95rem; -webkit-tap-highlight-color: transparent; }
.sg-row + .sg-row { border-top: 1px solid rgba(255,255,255,.07); }
.sg-row:active { background: rgba(255,255,255,.08); }
.sg-row > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.sg-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-row .t b { font-weight: 700; }
.sg-row .a { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sg-row .a svg { width: 16px; height: 16px; }
.sg-row .a:active { background: rgba(255,255,255,.14); color: #fff; }

/* ---- Dialog konfirmasi bertema ---- */
.dlg { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dlg.hidden { display: none; }
.dlg-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .22s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.dlg.show .dlg-backdrop { opacity: 1; }
.dlg-card { position: relative; width: min(100%, 340px); padding: 22px 20px 18px; text-align: center; border-radius: calc(var(--radius) * 2.2); background: color-mix(in srgb, var(--elev) 94%, #000); border: 1px solid var(--glass-border); box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12); opacity: 0; transform: translateY(14px) scale(.96); transition: transform .26s cubic-bezier(.2,.9,.3,1.15), opacity .2s ease; }
.dlg.show .dlg-card { opacity: 1; transform: none; }
.dlg-ico { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.dlg.is-danger .dlg-ico { color: #ff6b6b; background: rgba(255,90,90,.16); }
.dlg-title { font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; }
.dlg-msg { margin-top: 6px; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.dlg-btn { padding: .8rem 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff; background: rgba(255,255,255,.1); border: 1px solid var(--glass-border); -webkit-tap-highlight-color: transparent; }
.dlg-btn:active { transform: scale(.97); }
.dlg-btn.primary { background: var(--accent); color: var(--bg); border-color: transparent; }
.dlg.is-danger .dlg-btn.primary { background: #ff5a5a; color: #fff; }

/* ===== Tombol kembali, profil artis, kartu album ===== */
.back-pill { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: .5rem .95rem .5rem .6rem; border-radius: 999px; font-weight: 700; font-size: .85rem; color: #fff; background: rgba(255,255,255,.09); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.1); -webkit-tap-highlight-color: transparent; transition: transform .12s ease, background .15s ease; }
.back-pill svg { width: 18px; height: 18px; color: var(--accent); }
.back-pill:active { transform: scale(.96); background: rgba(255,255,255,.17); }

.ic-danger { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #ff6b6b; background: rgba(255,90,90,.16); }

.ar-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 16px; padding: 20px 16px; border-radius: calc(var(--radius) * 2); border: 1px solid var(--glass-border); background: var(--card); }
.ar-hero .hm-hero-bg { z-index: -2; }
.ar-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1), color-mix(in srgb, var(--bg) 78%, transparent)); }
.ar-ava { flex: 0 0 auto; width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.3); box-shadow: 0 10px 26px rgba(0,0,0,.45); background: rgba(0,0,0,.25); }
.ar-info { min-width: 0; }
.ar-name { margin-top: 4px; font-size: 1.55rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ar-sub { margin-top: 3px; font-size: .82rem; color: rgba(255,255,255,.75); }
.ar-info .hm-hero-actions { margin-top: 12px; flex-wrap: wrap; }

.ar-row { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
.ar-row::-webkit-scrollbar { display: none; }
.ar-chip { flex: 0 0 auto; width: 86px; text-align: center; color: #fff; font-size: .78rem; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.ar-chip img, .ar-chip .ar-ph { display: block; width: 78px; height: 78px; margin: 0 auto 6px; border-radius: 50%; object-fit: cover; background: var(--card); border: 2px solid rgba(255,255,255,.14); box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.ar-chip span:last-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-chip:active { transform: scale(.96); }

.alb-card { flex: 0 0 auto; width: 132px; text-align: left; color: #fff; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.alb-card img, .alb-card .alb-ph { display: block; width: 132px; height: 132px; margin-bottom: 7px; border-radius: calc(var(--radius) * 1.2); object-fit: cover; background: var(--card); box-shadow: 0 8px 18px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.08); }
.alb-card b { display: block; font-size: .8rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alb-card i { display: block; font-style: normal; font-size: .7rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alb-card:active { transform: scale(.97); }

/* ---- Foto artis di recap ---- */
.rc-avatar { display: grid; place-items: center; overflow: hidden; border-radius: 50% !important; }
.rc-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-avatar b { font-size: 1.3rem; font-weight: 800; color: var(--accent); }

/* ---- Halaman Tentang ---- */
.about-hero { position: relative; height: 340px; border-radius: 28px; overflow: hidden; background: #0b0d12; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.about-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-video.off { display: none; }
.about-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.78) 100%); }
.about-info { position: absolute; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.about-txt { display: flex; flex-direction: column; min-width: 0; }
.about-txt b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.about-txt span { font-size: .95rem; font-weight: 600; color: rgba(255,255,255,.78); margin-top: 2px; }
.about-avatar { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 0; box-shadow: none; background: transparent; }
a.set-row { text-decoration: none; }
a.set-row:active { background: rgba(255,255,255,.06); }


/* =====================================================
   MOTION v4: transisi lebih halus (hanya transform & opacity, kurva seragam)
   ===================================================== */
:root {
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}
html { -webkit-text-size-adjust: 100%; }
img { image-rendering: auto; }

/* Lensa liquid glass: gerak diatur JS (pegas). CSS cukup menyiapkan lapisan GPU sendiri */
body.theme-glass .nav-lens {
  transition: none; backface-visibility: hidden; contain: layout style;
}
/* efek "ditahan" lewat lapisan opacity (tidak menggambar ulang bayangan besar tiap perubahan) */
body.theme-glass .nav-lens::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease-out);
  background: radial-gradient(120% 90% at 30% 6%, rgba(255,255,255,.38), transparent 60%),
              linear-gradient(165deg, color-mix(in srgb, var(--accent) 38%, transparent), transparent 75%);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, #fff), 0 14px 30px rgba(0,0,0,.34), 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent);
}
body.theme-glass .bottom-nav.lens-held .nav-lens { filter: none; box-shadow: inherit; }
body.theme-glass .bottom-nav.lens-held .nav-lens::before { opacity: 1; }
body.theme-glass .nav-btn-m > svg { transition: none; will-change: transform; transform-origin: 50% 60%; }
body.theme-glass .nav-btn-m > span { transition: opacity .22s var(--ease-out), transform .22s var(--ease-out), color .22s; }
body.theme-glass .nav-btn-m { transition: color .22s var(--ease-out); }

/* Nav & pemutar mini: lapisan GPU sendiri supaya tidak ikut menggambar ulang saat konten di belakang bergulir */
body.theme-glass .bottom-nav, body.theme-glass .player-glass { transform: translateZ(0); backface-visibility: hidden; }

/* Pindah halaman: masuk dari bawah dengan fade, tanpa loncat */
.view-in { animation: viewIn .34s var(--ease-out) both; will-change: opacity, transform; }
@keyframes viewIn { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.995); } to { opacity: 1; transform: none; } }

/* Sheet & pemutar penuh: kurva iOS-like */
.sheet .sheet-panel { transition: transform .42s var(--ease-sheet); }
.sheet:not(.show) .sheet-panel { transition-duration: .32s; }
.sheet .sheet-backdrop { transition: opacity .32s ease; }
#full-player { transition: transform .45s var(--ease-sheet); }
#full-player.open { will-change: transform; }

/* Tombol / kartu: respons sentuh yang lembut (kembali dengan pegas kecil) */
.quick-card, [data-track-id] { transition: transform .32s var(--ease-spring); will-change: auto; }
.quick-card:active, [data-track-id]:active { transform: scale(.97); transition-duration: .1s; }
.btn-glass, .tg-btn, .pl-act, .glass-chip { transition: transform .25s var(--ease-spring), background-color .2s ease, opacity .2s ease, color .2s ease; }
.btn-glass:active, .tg-btn:active, .pl-act:active, .glass-chip:active { transform: scale(.96); transition-duration: .08s; }
.mood-chip { transition: transform .28s var(--ease-out), background-color .28s var(--ease-out), box-shadow .28s var(--ease-out), color .28s; }

@media (prefers-reduced-motion: reduce) {
  .view-in { animation: none; }
  #full-player, .sheet .sheet-panel { transition-duration: .01ms; }
}

/* =====================================================
   API LEGENDARIS (streak 1000)
   ===================================================== */
.streak-tier-1000 { --flame-hi:#fff3c4; --flame-mid:#ffb21e; --flame-low:#c2410c; --flame-core-hi:#ffffff; --flame-core:#ffe27a; --flame-glow:rgba(255,190,40,.5); }
.streak-card.streak-tier-1000 {
  position: relative; overflow: hidden; padding: 22px 20px;
  background:
    radial-gradient(120% 150% at 0% 55%, color-mix(in srgb, var(--flame-mid) 26%, transparent), transparent 62%),
    linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid color-mix(in srgb, var(--flame-mid) 55%, rgba(255,255,255,.2));
  box-shadow: 0 18px 44px rgba(0,0,0,.42), 0 0 40px var(--flame-glow), inset 0 1px 0 rgba(255,255,255,.2);
}
.streak-card.streak-tier-1000::after {
  content: ''; position: absolute; top: -10%; bottom: -10%; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  transform: translateX(-160%) skewX(-18deg); animation: legendSweep 5.5s ease-in-out infinite;
}
@keyframes legendSweep { 0%, 55% { transform: translateX(-160%) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }
.streak-card.streak-tier-1000 .streak-flame { width: 128px; min-width: 128px; height: 144px; transform: none; background: none; }
.streak-tier-1000 .flame-1000 { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 12px var(--flame-glow)); }
.streak-card.streak-tier-1000 .streak-number {
  background: linear-gradient(90deg, var(--flame-hi), var(--flame-mid), var(--flame-hi)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: legendText 4s linear infinite;
}
@keyframes legendText { to { background-position: -200% 0; } }
.legend-badge {
  display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .6rem; font-weight: 800; letter-spacing: .12em;
  color: #2a1700; background: linear-gradient(135deg, var(--flame-hi, #fff3c4), var(--flame-mid, #ffb21e)); vertical-align: middle;
  box-shadow: 0 0 12px var(--flame-glow, rgba(255,190,40,.5));
}

/* gerak api (hanya transform & opacity) */
.f1k-flame { transform-box: fill-box; transform-origin: 50% 100%; animation: f1kBreath 2.2s ease-in-out infinite; }
@keyframes f1kBreath { 0%, 100% { transform: scale(1, .985) rotate(-1deg); } 50% { transform: scale(1.03, 1.045) rotate(1deg); } }
.f1k-side { transform-box: fill-box; transform-origin: 50% 100%; animation: f1kSide 1.7s ease-in-out infinite; }
.f1k-side.r { animation-delay: -.8s; }
@keyframes f1kSide { 0%, 100% { transform: scaleY(.94) rotate(-2deg); } 50% { transform: scaleY(1.08) rotate(2deg); } }
.f1k-hot { transform-box: view-box; transform-origin: 0 0; animation: f1kHot 1.3s ease-in-out infinite; }
@keyframes f1kHot { 0%, 100% { opacity: .8; transform: translate(50px,104px) scale(.5) translate(-50px,-104px); } 50% { opacity: 1; transform: translate(50px,104px) scale(.58) translate(-50px,-104px); } }
.f1k-aura { transform-box: fill-box; transform-origin: 50% 50%; animation: f1kAura 3s ease-in-out infinite; }
@keyframes f1kAura { 0%, 100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.05); } }
.f1k-ring { transform-origin: 50px 72px; }
.f1k-ring.r1 { animation: f1kSpin 16s linear infinite; }
.f1k-ring.r2 { animation: f1kSpin 26s linear infinite reverse; }
@keyframes f1kSpin { to { transform: rotate(360deg); } }
.f1k-ember { fill: var(--flame-core-hi); opacity: 0; transform-box: fill-box; animation: f1kRise var(--t, 3s) ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes f1kRise { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 15% { opacity: .95; } 100% { opacity: 0; transform: translate(var(--dx, 0), -62px) scale(.3); } }
.f1k-star { fill: var(--flame-core-hi); transform-box: fill-box; transform-origin: 50% 50%; animation: f1kTwinkle 2.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes f1kTwinkle { 0%, 100% { opacity: .15; transform: scale(.5); } 50% { opacity: 1; transform: scale(1); } }
.f1k-star { opacity: .2; }

/* mode pelangi */
.flame-rainbow .flame-1000 { animation: f1kHue 6s linear infinite; }
@keyframes f1kHue { from { filter: drop-shadow(0 0 12px var(--flame-glow)) hue-rotate(0deg); } to { filter: drop-shadow(0 0 12px var(--flame-glow)) hue-rotate(360deg); } }

@media (max-width: 420px) {
  .streak-card.streak-tier-1000 { padding: 18px 14px; }
  .streak-card.streak-tier-1000 .streak-flame { width: 106px; min-width: 106px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .f1k-flame, .f1k-side, .f1k-hot, .f1k-aura, .f1k-ring, .f1k-ember, .f1k-star, .flame-rainbow .flame-1000,
  .streak-card.streak-tier-1000::after, .streak-card.streak-tier-1000 .streak-number { animation: none !important; }
  .f1k-star { opacity: .8; }
}

/* ---- Pengaturan warna api ---- */
.flame-prev-row { align-items: center; gap: 12px; }
.flame-prev { flex: 0 0 auto; width: 96px; height: 108px; }
.flame-swatches { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; justify-content: center; padding: 4px 0; }
.flame-sw {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: var(--c);
  box-shadow: 0 4px 12px rgba(0,0,0,.35), 0 0 14px color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform .25s var(--ease-spring, ease);
}
.flame-sw.on { border-color: #fff; transform: scale(1.18); }
.flame-sw.rb { background: conic-gradient(#ff3b6b, #ffb21e, #4dff7c, #4fc3ff, #b46bff, #ff3b6b); }
.flame-input { width: 46px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }

/* ---- Obrolan: tombol & gelembung api ---- */
#tg-chat-flame { padding: 0 12px; font-size: 1.25rem; line-height: 1; flex: 0 0 auto; }
.tg-msg.flame, .tg-msg.flame.mine { background: none; background-image: none; box-shadow: none; padding: 2px 6px; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.tg-msg.flame .chat-flame { width: 96px; height: 108px; }
.tg-msg.flame .flame-1000 { filter: drop-shadow(0 0 10px var(--flame-glow)); }

/* api non-legendaris di gelembung obrolan */
.chat-flame.streak-tier-1 { --flame-hi:#ffd0a0; --flame-mid:#f15a36; --flame-low:#8c1d1a; --flame-core-hi:#fff4d5; --flame-core:#ffb34f; --flame-glow:rgba(240,76,43,.3); }
.chat-flame .flame-art:not(.flame-1000) { display: block; width: 100%; height: 100%; }

/* =====================================================
   LIQUID GLASS v5: lensa kaca dengan pembiasan (mengikuti referensi video)
   - Diam   : pil kaca tipis di tab aktif
   - Ditahan: lensa membesar keluar dari navbar, tepi membiaskan cahaya + dispersi warna, pil terang di dalam
   ===================================================== */
body.theme-glass .bottom-nav { overflow: visible; }
body.theme-glass .nav-lens {
  z-index: 2;                     /* di atas ikon, supaya ikon ikut terbiaskan oleh lensa */
  filter: none; transition: none; backface-visibility: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, rgba(255,255,255,.13)), rgba(255,255,255,.05));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.30),
    inset 0 1px 6px rgba(255,255,255,.28),
    0 8px 20px rgba(0,0,0,.34);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* dispersi warna di tepi atas/bawah (oranye ↔ biru), muncul saat ditahan */
body.theme-glass .nav-lens::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0;
  transition: opacity .25s var(--ease-out);
  background: linear-gradient(180deg, rgba(255,176,90,.85), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(96,140,255,.9)),
              linear-gradient(90deg, rgba(190,110,255,.55), rgba(255,255,255,0) 22%, rgba(255,255,255,0) 78%, rgba(255,150,90,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  box-shadow: none; background-blend-mode: screen;
}
/* pil terang di dalam lensa */
body.theme-glass .nav-lens::after {
  content: ''; position: absolute; inset: 7px 8px; left: 8px; top: 7px; width: auto; height: auto; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.36); box-shadow: inset 0 1px 0 rgba(255,255,255,.34);
  filter: none; opacity: 0; transition: opacity .25s var(--ease-out);
}
body.theme-glass .bottom-nav.lens-held .nav-lens {
  background: rgba(255,255,255,.035);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.32),
    inset 0 2px 8px rgba(255,255,255,.22),
    inset 0 -3px 10px rgba(255,255,255,.12),
    0 16px 34px rgba(0,0,0,.48);
  -webkit-backdrop-filter: blur(.6px) saturate(1.35) brightness(1.08);
  backdrop-filter: blur(.6px) saturate(1.35) brightness(1.08);
  -webkit-backdrop-filter: url(#bm-lens) saturate(1.35) brightness(1.08);
  backdrop-filter: url(#bm-lens) saturate(1.35) brightness(1.08);
}
body.theme-glass .bottom-nav.lens-held .nav-lens::before,
body.theme-glass .bottom-nav.lens-held .nav-lens::after { opacity: 1; }
/* label tetap terlihat saat lensa ditahan (seperti di referensi) */
body.theme-glass .bottom-nav.lens-held .nav-btn-m > span,
body.theme-glass .bottom-nav.lens-held .nav-btn-m.lens-near > span { opacity: 1; transform: none; }

/* =====================================================
   TIPOGRAFI v6: judul halaman, kartu sapaan, pengaturan seragam
   ===================================================== */
#page-title, body.theme-glass #page-title {
  font-size: 1.8rem; font-weight: 750; line-height: 1.1; letter-spacing: -.03em;
  background: linear-gradient(95deg, #fff 42%, var(--accent-hi) 115%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px color-mix(in srgb, var(--accent) 32%, transparent));
}
#page-title.pt-small { font-size: 1.8rem !important; }   /* judul Pengaturan/Tentang sama besar dengan halaman lain */

.home-welcome { min-height: 182px; padding: 20px 22px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.welcome-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.home-welcome .welcome-kicker {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 99px;
  font-size: .6rem; font-weight: 700; letter-spacing: .13em; color: var(--accent-hi); text-shadow: none;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.welcome-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: wkPulse 2s ease-in-out infinite; }
@keyframes wkPulse { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.welcome-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; }
.welcome-eq b { width: 3.5px; height: 100%; border-radius: 2px; background: linear-gradient(180deg, var(--accent-hi), var(--accent)); transform-origin: 50% 100%; animation: wkEq 1.15s ease-in-out infinite; }
.welcome-eq b:nth-child(2) { animation-duration: .9s; animation-delay: -.3s; }
.welcome-eq b:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
.welcome-eq b:nth-child(4) { animation-duration: 1s; animation-delay: -.15s; }
.welcome-eq b:nth-child(5) { animation-duration: 1.2s; animation-delay: -.45s; }
@keyframes wkEq { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }
.home-welcome h1 {
  margin: 20px 0 8px; font-size: clamp(2.1rem, 9.5vw, 2.9rem); line-height: 1.04; font-weight: 800;
  letter-spacing: -.035em; word-spacing: .05em;
  background: none; background-clip: border-box; -webkit-background-clip: border-box; color: #fff; -webkit-text-fill-color: #fff;
}
.wg-a { font-weight: 600; color: rgba(255,255,255,.93); -webkit-text-fill-color: rgba(255,255,255,.93); }
.wg-b {
  background: linear-gradient(100deg, var(--accent-hi) 10%, var(--accent) 65%, #fff 135%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px var(--accent-soft)); padding-right: .05em;
}
.home-welcome p { font-size: 1rem; font-weight: 500; line-height: 1.5; color: rgba(236,243,238,.82); max-width: 30ch; margin: 0; }
.welcome-date {
  margin-top: 14px; font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: capitalize;
  color: rgba(255,255,255,.74); padding: 5px 11px; border-radius: 99px; background: rgba(0,0,0,.24); border: 1px solid rgba(255,255,255,.1);
}

/* =====================================================
   PROFIL SESI + DENGAR BARENG v6
   ===================================================== */
.pg0 { background: linear-gradient(135deg, #2dd4bf, #0ea5e9); }
.pg1 { background: linear-gradient(135deg, #f472b6, #a855f7); }
.pg2 { background: linear-gradient(135deg, #fb923c, #ef4444); }
.pg3 { background: linear-gradient(135deg, #facc15, #f97316); }
.pg4 { background: linear-gradient(135deg, #4ade80, #14b8a6); }
.pg5 { background: linear-gradient(135deg, #60a5fa, #6366f1); }
.pg6 { background: linear-gradient(135deg, #fb7185, #be123c); }
.pg7 { background: linear-gradient(135deg, #a78bfa, #22d3ee); }
.pf-av {
  width: var(--s, 48px); height: var(--s, 48px); flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  color: #fff; font-size: calc(var(--s, 48px) * .42); font-weight: 800; line-height: 1;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3), 0 6px 16px rgba(0,0,0,.35); text-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.pf-av b { font-weight: 800; }

.chip {
  display: inline-block; font-style: normal; font-size: .58rem; font-weight: 800; letter-spacing: .1em; line-height: 1;
  padding: 4px 8px; border-radius: 99px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
}
.chip.host { color: #3a2300; background: linear-gradient(135deg, #ffe08a, #f5a623); border-color: transparent; box-shadow: 0 0 14px rgba(245,166,35,.45); }
.chip.me { color: var(--accent-hi); background: color-mix(in srgb, var(--accent) 24%, transparent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

/* ringkasan profil di bagian atas sheet */
.tg-me {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin: 0 0 14px; text-align: left; color: inherit;
  border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.13); box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.tg-me:active { background: rgba(255,255,255,.12); }
.tg-me-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tg-me-txt b { font-size: .98rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-me-txt small { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-me-edit { font-size: .74rem; font-weight: 700; color: var(--accent); padding: 6px 12px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

/* kartu kode sesi */
#tg-sheet .tg-code {
  border-radius: 26px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%), linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, rgba(255,255,255,.12));
  box-shadow: 0 14px 34px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16);
}
#tg-sheet .tg-code b { text-shadow: 0 0 26px var(--accent-soft); }
#tg-sheet .tg-code::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.10), transparent);
  transform: translateX(-160%) skewX(-18deg); animation: legendSweep 6s ease-in-out infinite;
}
#tg-role { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); }
#tg-role b { color: #fff; font-weight: 700; }

/* daftar pengguna: kartu yang bisa ditekan/ditahan */
.tg-users { display: flex; flex-wrap: nowrap; gap: 10px; margin: 8px -4px 16px; padding: 4px 4px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.tg-users::-webkit-scrollbar { display: none; }
.tg-user {
  flex: 0 0 auto; width: 92px; padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; scroll-snap-align: start;
  color: inherit; text-align: center; border-radius: 22px; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-touch-callout: none;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.11);
  transition: transform .28s var(--ease-spring, ease), background-color .2s;
}
.tg-user:active { transform: scale(.95); }
.tg-user.host { border-color: rgba(245,166,35,.5); background: linear-gradient(160deg, rgba(245,166,35,.16), rgba(255,255,255,.03)); box-shadow: 0 8px 22px rgba(245,166,35,.12); }
.tg-user.me:not(.host) { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.tg-user span { display: block; }
.tg-user.me span::after { content: none; }
.tg-user .av-wrap { position: relative; display: block; width: 56px; height: 56px; }
.tg-user .crown, .pc-av .crown {
  position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 12px; color: #3a2300; background: linear-gradient(135deg, #ffe08a, #f5a623); border: 2px solid var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.tg-user .stk { position: absolute; left: -4px; top: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; background: rgba(20,20,22,.9); border: 1px solid rgba(255,255,255,.18); }
.tg-user .nm { max-width: 100%; font-size: .78rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-user .chips { display: flex; gap: 4px; justify-content: center; min-height: 16px; }

/* editor profil */
.pf-edit-top { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pf-preview .pf-av { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent), 0 14px 30px rgba(0,0,0,.4); }
.pf-edit-btns { display: flex; gap: 10px; }
.pf-edit-btns .tg-btn { padding-left: 18px; padding-right: 18px; }
.pf-grads { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 2px; }
.pf-gsw { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.22); box-shadow: 0 4px 12px rgba(0,0,0,.35); transition: transform .25s var(--ease-spring, ease); }
.pf-gsw.on { border-color: #fff; transform: scale(1.16); }
.pf-toggle { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 12px 14px; text-align: left; color: inherit; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.pf-sw { flex: none; position: relative; width: 48px; height: 28px; border-radius: 99px; background: rgba(255,255,255,.18); transition: background-color .25s; }
.pf-sw u { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .28s var(--ease-spring, ease); }
.pf-toggle.on .pf-sw { background: var(--accent); }
.pf-toggle.on .pf-sw u { transform: translateX(20px); }

/* kartu profil (tekan / tahan avatar) */
.pc-body { display: flex; flex-direction: column; gap: 16px; }
.pc-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 0 2px; }
.pc-av { position: relative; width: 112px; height: 112px; }
.pc-av .pf-av { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent), 0 18px 38px rgba(0,0,0,.5); }
.pc-hero.host .pc-av .pf-av { box-shadow: 0 0 0 5px rgba(245,166,35,.45), 0 0 34px rgba(245,166,35,.3), 0 18px 38px rgba(0,0,0,.5); }
.pc-av .crown { width: 30px; height: 30px; font-size: 16px; right: -2px; bottom: -2px; }
.pc-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; word-break: break-word; max-width: 100%; }
.pc-chips { display: flex; gap: 6px; justify-content: center; }
.pc-bio { font-size: .92rem; line-height: 1.45; color: rgba(255,255,255,.82); max-width: 32ch; }
.pc-bio.empty { color: var(--muted); font-style: italic; }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px; text-align: center; border-radius: 22px; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.11); }
.pc-stat b { font-size: .92rem; font-weight: 800; }
.pc-stat small { font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pc-flame { width: 64px; height: 72px; display: grid; place-items: center; }
.pc-flame .flame-art { display: block; width: 100%; height: 100%; }
.pc-flame.streak-tier-1 { --flame-hi:#ffd0a0; --flame-mid:#f15a36; --flame-low:#8c1d1a; --flame-core-hi:#fff4d5; --flame-core:#ffb34f; --flame-glow:rgba(240,76,43,.3); }
.pc-noflame, .pc-time { font-size: 1.7rem; color: var(--muted); }
.pc-time { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .welcome-eq b, .welcome-kicker i, #tg-sheet .tg-code::after { animation: none !important; }
}

/* nilai status di baris pengaturan (mis. "Mati"/"Aktif"): pil kecil, seragam dengan teks lain */
.set-val {
  flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  padding: 6px 11px; border-radius: 99px; color: var(--muted); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
}
.set-val.on { color: var(--accent-hi); background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }


/* =====================================================
   PROFIL v7: avatar tidak terpotong, foto tajam, cincin halus
   ===================================================== */
.pf-av { position: relative; overflow: visible; display: grid !important; place-items: center; }
.pf-av img { border-radius: 50%; }
.pf-av b { display: block; line-height: 1; transform: translateY(.02em); }
.tg-user .pf-av, .tg-me .pf-av, .pc-av .pf-av, .pf-preview .pf-av { display: grid !important; overflow: visible; white-space: normal; }
/* cincin gradasi tipis dengan jarak halus dari foto */
.pf-av::before {
  content: ''; position: absolute; inset: calc(var(--s, 48px) * -.085); border-radius: 50%; padding: max(1.5px, calc(var(--s, 48px) * .03)); pointer-events: none;
  background: conic-gradient(from 210deg, var(--accent-hi), rgba(255,255,255,.14) 30%, var(--accent) 62%, rgba(255,255,255,.6) 88%, var(--accent-hi));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .9;
}
.tg-user.host .pf-av::before, .pc-hero.host .pf-av::before { background: conic-gradient(from 210deg, #ffe08a, rgba(255,255,255,.2) 30%, #f5a623 62%, #fff3c4 88%, #ffe08a); }
.pf-av { box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.pc-av .pf-av, .pf-preview .pf-av, .pc-hero.host .pc-av .pf-av { box-shadow: 0 16px 34px rgba(0,0,0,.5); }

/* kartu pengguna: lebih lebar supaya HOST + KAMU muat, badge tidak terpotong */
.tg-users { padding: 10px 8px 12px; margin: 4px -8px 14px; }
.tg-user { width: 112px; padding: 16px 8px 12px; gap: 9px; overflow: visible; }
.tg-user span { overflow: visible; text-overflow: clip; white-space: normal; }
.tg-user .av-wrap { width: 56px; height: 56px; margin: 4px 0 2px; overflow: visible; }
.tg-user .nm { display: block; width: 100%; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-user .chips { flex-wrap: wrap; gap: 4px; row-gap: 4px; }
.tg-user .chip { font-size: .52rem; padding: 3px 7px; letter-spacing: .08em; }
.tg-user .crown, .pc-av .crown { z-index: 2; right: -6px; bottom: -6px; width: 24px; height: 24px; font-size: 13px; line-height: 1; }
.pc-av .crown { width: 32px; height: 32px; font-size: 17px; right: -4px; bottom: -4px; }
.tg-user .stk { z-index: 2; left: -6px; top: -5px; width: 24px; height: 24px; font-size: 13px; line-height: 1; }
.tg-me .pf-av { margin: 3px; }
.pc-av { width: 112px; height: 112px; margin: 8px 0 4px; }
.pf-preview { padding: 10px; }

/* =====================================================
   ACAK & ULANG v7: sekali ketuk aktif (berwarna), ketuk lagi kembali normal
   ===================================================== */
#shuffle-btn, #repeat-btn, #fp-shuffle, #fp-repeat { position: relative; transition: color .2s, transform .25s var(--ease-spring, ease), filter .25s; }
#shuffle-btn:active, #repeat-btn:active, #fp-shuffle:active, #fp-repeat:active { transform: scale(.88); }
/* penanda "1" saat mode ulangi lagu aktif */
#repeat-btn.repeat-on::after, #fp-repeat.repeat-on::after {
  content: '1'; position: absolute; right: 0; top: 0; min-width: 12px; height: 12px; padding: 0 3px; border-radius: 99px;
  display: grid; place-items: center; font-size: 8px; font-weight: 800; line-height: 1; color: var(--bg); background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
#fp-repeat.repeat-on::after { right: 4px; top: 4px; }
.isl-ctl .rp.on { transform: none; }
