/* ============================================================
   Nada — Pemutar Musik Privat
   Tema: Claymorphism (tombol puffy, inset ganda) + Glassmorphism (panel blur)
   Ringan: radial-gradient utk blob (tanpa filter blur), animasi transform saja
   ============================================================ */

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

:root {
  --bg: #0f1023;
  --text: #eef0ff;
  --text-2: rgba(238, 240, 255, 0.62);
  --text-3: rgba(238, 240, 255, 0.38);

  --glass: rgba(255, 255, 255, 0.065);
  --glass-2: rgba(255, 255, 255, 0.1);
  --glass-brd: rgba(255, 255, 255, 0.13);
  --glass-brd-2: rgba(255, 255, 255, 0.22);

  --accent: #1ed760;
  --accent-hi: #35e273;
  --accent-lo: #12b04c;
  --accent-ink: #06210f;

  --danger: #ff6b81;

  --clay-hi: rgba(255, 255, 255, 0.16);
  --clay-lo: rgba(0, 0, 0, 0.34);

  --radius: 28px;
  --radius-sm: 18px;

  --cover-accent: rgba(30, 215, 96, 0.35);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 720px at 85% -10%, rgba(124, 58, 237, 0.22), transparent 62%),
    radial-gradient(900px 640px at -12% 108%, rgba(14, 116, 216, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}

button { font-family: inherit; }
img { display: block; max-width: 100%; }

::selection { background: rgba(30, 215, 96, 0.35); }

/* ---------- Blob latar (radial-gradient: murah, tanpa filter) ---------- */
.blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.b1 {
  width: 58vmax; height: 58vmax; top: -24vmax; left: -16vmax;
  background: radial-gradient(circle at 42% 42%, rgba(139, 92, 246, 0.42), rgba(139, 92, 246, 0) 68%);
  animation: drift-a 30s ease-in-out infinite alternate;
}
.b2 {
  width: 50vmax; height: 50vmax; bottom: -20vmax; right: -14vmax;
  background: radial-gradient(circle at 45% 45%, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 0) 68%);
  animation: drift-b 34s ease-in-out infinite alternate;
}
.b3 {
  width: 44vmax; height: 44vmax; top: 30%; right: -18vmax;
  background: radial-gradient(circle at 45% 45%, rgba(56, 189, 248, 0.26), rgba(56, 189, 248, 0) 68%);
  animation: drift-c 38s ease-in-out infinite alternate;
}
.b4 {
  width: 34vmax; height: 34vmax; bottom: 6%; left: -10vmax;
  background: radial-gradient(circle at 45% 45%, rgba(30, 215, 96, 0.22), rgba(30, 215, 96, 0) 68%);
  animation: drift-a 42s ease-in-out infinite alternate-reverse;
}
.b5 {
  width: 30vmax; height: 30vmax; top: 8%; left: 34%;
  background: radial-gradient(circle at 45% 45%, var(--cover-accent), rgba(30, 215, 96, 0) 70%);
  animation: drift-b 46s ease-in-out infinite alternate;
  transition: background 1.2s ease;
}

@keyframes drift-a { to { transform: translate(9%, 13%) scale(1.14) rotate(18deg); } }
@keyframes drift-b { to { transform: translate(-11%, -9%) scale(1.1) rotate(-14deg); } }
@keyframes drift-c { to { transform: translate(-8%, 12%) scale(1.16) rotate(10deg); } }

/* ---------- Kerangka aplikasi ---------- */
.app {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(14px, 2.5vw, 28px);
  display: flex; flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
}

/* ---------- Kartu kaca (glassmorphism) ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 24px 60px rgba(3, 6, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.card { padding: clamp(18px, 2.6vw, 30px); }

/* ---------- Tombol clay (claymorphism) ---------- */
.clay-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: 0; border-radius: 16px;
  font-size: 0.88rem; font-weight: 800; letter-spacing: 0.01em;
  cursor: pointer; color: var(--accent-ink);
  background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo));
  box-shadow:
    inset 2px 2px 6px rgba(255, 255, 255, 0.5),
    inset -4px -5px 12px rgba(0, 0, 0, 0.28),
    0 10px 26px rgba(30, 215, 96, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.clay-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.clay-btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 4px 4px 10px rgba(0, 0, 0, 0.28),
    inset -2px -2px 6px rgba(255, 255, 255, 0.22),
    0 5px 14px rgba(30, 215, 96, 0.24);
}
.clay-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* ---------- Spinner ---------- */
.spin {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(6, 33, 15, 0.25); border-top-color: var(--accent-ink);
  animation: spin 0.8s linear infinite;
}
.spin.big { display: block; width: 30px; height: 30px; border-width: 3px; border-color: rgba(255,255,255,0.18); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-icon {
  width: 42px; height: 42px; border-radius: 15px;
  display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo));
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.5),
    inset -3px -4px 9px rgba(0, 0, 0, 0.26),
    0 8px 20px rgba(30, 215, 96, 0.3);
}
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }

.topbar-right { display: flex; align-items: center; gap: 8px; }

.session-chip, .key-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 99px;
  font-size: 0.75rem; font-weight: 700; color: var(--text-2);
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.key-chip { cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; font-family: inherit; }
.key-chip:hover { color: var(--text); border-color: var(--glass-brd-2); background: var(--glass-2); }
.key-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3); box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.4);
  transition: background 0.2s;
}
.key-chip .dot.on { background: var(--accent); box-shadow: 0 0 10px rgba(30, 215, 96, 0.8); }

/* ---------- Pencarian ---------- */
.searchbar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 9px 9px 18px; border-radius: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.searchbar:focus-within {
  border-color: var(--glass-brd-2);
  box-shadow: 0 24px 60px rgba(3, 6, 18, 0.45), 0 0 0 4px rgba(30, 215, 96, 0.1);
}
.search-ic { color: var(--text-3); flex: none; }
#searchInput {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 0.97rem; font-family: inherit; padding: 8px 0;
}
#searchInput::placeholder { color: var(--text-3); }
#searchInput::-webkit-search-cancel-button { -webkit-appearance: none; }
#searchBtn { flex: none; }
#searchBtn.loading .txt { display: none; }
#searchBtn.loading .spin { display: block; }
#searchBtn .spin { border-color: rgba(6, 33, 15, 0.25); border-top-color: var(--accent-ink); }

/* ---------- Chips saran ---------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -4px; padding: 0 4px; }
.chips-label { font-size: 0.76rem; color: var(--text-3); font-weight: 600; }
.chip {
  padding: 8px 15px; border-radius: 99px; cursor: pointer;
  font-size: 0.8rem; font-weight: 700; color: var(--text-2);
  background: var(--glass); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.08);
  transition: color 0.2s, background 0.2s, transform 0.15s;
}
.chip:hover { color: var(--text); background: var(--glass-2); transform: translateY(-1px); }
body.has-track .chips { display: none; }

/* ---------- Grid utama ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2vw, 22px); }
@media (min-width: 980px) {
  .grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: stretch; }
}

/* ---------- Kartu pemutar ---------- */
.player-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; text-align: center;
}

/* Cover dengan bingkai clay */
.cover-wrap { position: relative; width: min(300px, 72vw); }
.cover-inner {
  border-radius: 27px; padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 2px 2px 6px rgba(255, 255, 255, 0.22),
    inset -5px -6px 14px rgba(0, 0, 0, 0.4),
    0 22px 50px rgba(3, 6, 18, 0.55);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.cover-wrap img, .cover-empty {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 18px; position: relative;
}
.cover-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: var(--text-3);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.09), transparent 55%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.3);
}
.cover-empty p { font-size: 0.85rem; font-weight: 600; }
body.playing .cover-inner {
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    inset 2px 2px 6px rgba(255, 255, 255, 0.22),
    inset -5px -6px 14px rgba(0, 0, 0, 0.4),
    0 30px 70px rgba(3, 6, 18, 0.6),
    0 18px 60px var(--cover-accent);
}

/* Overlay memuat + progres unduhan */
.cover-loading {
  position: absolute; inset: 10px; border-radius: 18px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(8, 10, 22, 0.66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.load-text { font-size: 0.8rem; color: var(--text-2); font-weight: 700; }
.load-bar {
  width: 68%; height: 7px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.load-bar-fill {
  height: 100%; width: 0%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease;
}

/* Badge ekualiser di pojok cover */
.eq {
  position: absolute; right: -8px; bottom: -8px; z-index: 4;
  display: none; align-items: flex-end; gap: 3px;
  padding: 9px 11px; border-radius: 15px;
  background: rgba(10, 14, 26, 0.72);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(3, 6, 18, 0.5);
}
.eq i {
  width: 3.5px; height: 15px; border-radius: 3px;
  background: var(--accent);
  animation: eqb 1s ease-in-out infinite;
  transform-origin: bottom;
}
.eq i:nth-child(1) { animation-delay: 0s; }
.eq i:nth-child(2) { animation-delay: 0.22s; }
.eq i:nth-child(3) { animation-delay: 0.45s; }
@keyframes eqb { 0%, 100% { transform: scaleY(0.32); } 50% { transform: scaleY(1); } }
body.playing .eq { display: flex; }
body.buffering .eq i { animation-play-state: paused; opacity: 0.45; }

/* Meta lagu */
.track-meta { max-width: 100%; }
.track-meta h1 {
  font-size: clamp(1.28rem, 2.4vw, 1.66rem); font-weight: 800; letter-spacing: -0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.track-meta p { color: var(--text-2); margin-top: 6px; font-size: 0.95rem; }
.spotify-link {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 9px;
  font-size: 0.78rem; font-weight: 700; color: var(--accent);
  text-decoration: none; opacity: 0.9; transition: opacity 0.2s;
}
.spotify-link:hover { opacity: 1; text-decoration: underline; }

/* ---------- Progress ---------- */
.progress-row { width: 100%; max-width: 470px; display: flex; align-items: center; gap: 12px; }
.time {
  font-size: 0.76rem; color: var(--text-2); font-weight: 600;
  font-variant-numeric: tabular-nums; min-width: 38px; text-align: left;
}
.time.right { text-align: right; }

.progress { flex: 1; padding: 9px 0; cursor: pointer; touch-action: none; }
.progress-track {
  height: 6px; border-radius: 99px; position: relative;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.45), inset -1px -1px 2px rgba(255, 255, 255, 0.05);
  transition: height 0.18s ease;
}
.progress-fill {
  height: 100%; width: 0%; border-radius: inherit; position: relative;
  background: linear-gradient(90deg, var(--accent-lo), var(--accent-hi));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 0 12px rgba(30, 215, 96, 0.3);
}
.progress:hover .progress-track, .progress.scrubbing .progress-track { height: 10px; }
.progress-thumb {
  position: absolute; right: -8px; top: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  transform: translateY(-50%) scale(0.4); opacity: 0;
  background: linear-gradient(145deg, #ffffff, #c9d2ea);
  box-shadow:
    inset 1px 1px 2px #ffffff, inset -2px -2px 4px rgba(0, 0, 0, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.45);
  transition: opacity 0.15s, transform 0.15s;
}
.progress:hover .progress-thumb, .progress.scrubbing .progress-thumb { opacity: 1; transform: translateY(-50%) scale(1); }

/* ---------- Kontrol ---------- */
.controls { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 18px); user-select: none; }

.ctl {
  position: relative; width: 48px; height: 48px; border-radius: 18px;
  display: grid; place-items: center; cursor: pointer;
  color: var(--text-2); border: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.14),
    inset -3px -4px 9px rgba(0, 0, 0, 0.34),
    0 9px 22px rgba(3, 6, 18, 0.4);
  transition: color 0.2s, transform 0.15s, box-shadow 0.15s;
}
.ctl:hover { color: var(--text); transform: translateY(-1px); }
.ctl:active { transform: translateY(1px); }
.ctl.on { color: var(--accent); }
.ctl.on::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 4.5px; height: 4.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px rgba(30, 215, 96, 0.9);
}
.ctl .r1 {
  display: none; position: absolute; top: 5px; right: 6px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 9.5px; font-weight: 900; line-height: 15px; text-align: center;
}
.ctl.one .r1 { display: block; }

.ctl-play {
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--accent-ink);
  background: linear-gradient(145deg, var(--accent-hi), var(--accent-lo));
  box-shadow:
    inset 3px 3px 8px rgba(255, 255, 255, 0.5),
    inset -5px -6px 14px rgba(0, 0, 0, 0.3),
    0 14px 36px rgba(30, 215, 96, 0.36);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.ctl-play:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.06); }
.ctl-play:active {
  transform: translateY(1px) scale(0.97);
  box-shadow:
    inset 4px 4px 11px rgba(0, 0, 0, 0.26),
    inset -3px -3px 8px rgba(255, 255, 255, 0.24),
    0 6px 16px rgba(30, 215, 96, 0.28);
}
.ctl-play .ic-pause, .ctl-play .spin { display: none; }
.ctl-play .spin { width: 26px; height: 26px; border-width: 3px; border-color: rgba(6, 33, 15, 0.25); border-top-color: var(--accent-ink); }
body.playing .ctl-play .ic-play { display: none; }
body.playing .ctl-play .ic-pause { display: block; }
.ctl-play.is-loading .ic-play, .ctl-play.is-loading .ic-pause { display: none; }
.ctl-play.is-loading .spin { display: block; }

/* ---------- Volume ---------- */
.volume-row { width: 100%; max-width: 470px; display: flex; align-items: center; gap: 12px; }
.ctl-mini {
  width: 38px; height: 38px; border-radius: 14px; border: 0; cursor: pointer; flex: none;
  display: grid; place-items: center; color: var(--text-2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.12), inset -2px -3px 7px rgba(0, 0, 0, 0.3);
  transition: color 0.2s;
}
.ctl-mini:hover { color: var(--text); }
.ctl-mini .mx { display: none; }
#volBtn.muted .wv1, #volBtn.muted .wv2 { display: none; }
#volBtn.muted .mx { display: block; }
#volBtn.low .wv2 { display: none; }

#volume {
  -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, #ffffff var(--p, 90%), rgba(255, 255, 255, 0.15) var(--p, 90%));
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer; outline: none;
}
#volume::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #c9d2ea);
  box-shadow: inset 1px 1px 2px #fff, inset -2px -2px 4px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.4);
  border: 0;
}
#volume::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; border: 0;
  background: linear-gradient(145deg, #ffffff, #c9d2ea);
  box-shadow: inset 1px 1px 2px #fff, inset -2px -2px 4px rgba(0, 0, 0, 0.2), 0 3px 8px rgba(0, 0, 0, 0.4);
}
@media (max-width: 620px) { .volume-row { display: none; } }

/* ---------- Kartu lirik ---------- */
.lyrics-card { display: flex; flex-direction: column; min-height: 420px; }
.lyrics-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.lyrics-head h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.lyrics-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px; font-size: 0.72rem; font-weight: 700;
  color: var(--text-2); background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.lyrics-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.lyrics-badge.ok { color: #9ff0bb; border-color: rgba(30, 215, 96, 0.3); }
.lyrics-badge.ok .dot { background: var(--accent); box-shadow: 0 0 8px rgba(30, 215, 96, 0.9); }

.lyrics-scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  max-height: min(600px, 62vh);
  padding: 6px 4px;
  margin-top: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 5%, #000 93%, transparent 100%);
}
.lyrics-scroll::-webkit-scrollbar { width: 7px; }
.lyrics-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }
.lyrics-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.28); }

.lyrics-list { padding: 14vh 0 20vh; display: flex; flex-direction: column; gap: 2px; }

.lyric-line {
  display: block; width: 100%; text-align: left;
  padding: 9px 14px; border: 0; border-radius: 15px;
  background: none; color: var(--text-3); cursor: pointer;
  font-family: inherit; font-size: 1.03rem; font-weight: 600; line-height: 1.5;
  transition: color 0.25s, background-color 0.25s, transform 0.25s;
}
.lyric-line:hover { color: var(--text-2); background: rgba(255, 255, 255, 0.045); }
.lyric-line.active {
  color: #ffffff; background: rgba(255, 255, 255, 0.075);
  font-size: 1.19rem; font-weight: 800; transform: translateX(4px);
  text-shadow: 0 0 26px var(--cover-accent);
}
.lyrics-list.plain-mode { align-items: center; }
.lyrics-list.plain-mode .lyric-line {
  text-align: center; color: var(--text-2); cursor: default;
  font-size: 0.98rem; font-weight: 600;
}
.lyrics-list.plain-mode .lyric-line:hover { background: none; color: var(--text-2); }

.lyrics-empty {
  min-height: 300px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  text-align: center; color: var(--text-3); padding: 30px 20px;
}
.lyrics-empty svg { opacity: 0.4; margin-bottom: 8px; }
.lyrics-empty .lt { font-size: 0.98rem; color: var(--text-2); }
.lyrics-empty .ls { font-size: 0.82rem; max-width: 340px; line-height: 1.65; }

/* ---------- Riwayat sesi ---------- */
.history-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 13px; border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.history-head h2 {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.05rem; font-weight: 800;
}
.link-btn {
  background: none; border: 0; cursor: pointer;
  color: var(--text-2); font-size: 0.8rem; font-weight: 700; font-family: inherit;
  padding: 6px 10px; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.link-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.link-btn.danger:hover { color: var(--danger); }

.history-list { display: flex; flex-direction: column; gap: 8px; margin-top: 13px; }
.hrow {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 13px; align-items: center;
  width: 100%; padding: 8px 10px; border-radius: 17px; cursor: pointer;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit; text-align: left; font-family: inherit;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.hrow:hover { background: rgba(255, 255, 255, 0.085); transform: translateY(-1px); }
.hrow.current {
  background: rgba(30, 215, 96, 0.1);
  border-color: rgba(30, 215, 96, 0.28);
  box-shadow: inset 2px 2px 6px rgba(30, 215, 96, 0.06);
}
.hthumb {
  width: 48px; height: 48px; border-radius: 13px; object-fit: cover;
  box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(3, 6, 18, 0.4);
  background: rgba(255, 255, 255, 0.06);
}
.hmeta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.htitle {
  font-size: 0.93rem; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hrow.current .htitle { color: var(--accent); }
.hartist {
  font-size: 0.78rem; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hright { display: flex; align-items: center; gap: 10px; }
.hdur { font-size: 0.74rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.heq { display: none; align-items: flex-end; gap: 2.5px; height: 14px; }
.hrow.current .heq { display: flex; }
.heq i { width: 3px; height: 14px; border-radius: 2px; background: var(--accent); animation: eqb 1s ease-in-out infinite; transform-origin: bottom; }
.heq i:nth-child(2) { animation-delay: 0.22s; }
.heq i:nth-child(3) { animation-delay: 0.45s; }
body:not(.playing) .heq i { animation-play-state: paused; transform: scaleY(0.4); }

/* ---------- Footer ---------- */
.foot { text-align: center; padding: 4px 0 16px; }
.foot p { font-size: 0.74rem; color: var(--text-3); max-width: 640px; margin: 0 auto; line-height: 1.7; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60;
  transform: translate(-50%, 16px);
  max-width: min(90vw, 500px); padding: 12px 20px; border-radius: 99px;
  background: rgba(13, 17, 32, 0.82); border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 46px rgba(3, 6, 18, 0.6);
  color: var(--text); font-size: 0.85rem; font-weight: 600; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modal API key ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 7, 16, 0.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  position: relative; width: min(460px, 100%); padding: 26px;
  border-radius: 26px;
  animation: pop-in 0.3s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop-in { from { transform: scale(0.92) translateY(12px); opacity: 0; } }
.modal-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.modal-desc { font-size: 0.86rem; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; }
.modal-desc a { color: var(--accent); font-weight: 700; text-decoration: none; }
.modal-desc a:hover { text-decoration: underline; }

.clay-input {
  width: 100%; padding: 13px 16px; border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1); outline: none;
  background: rgba(0, 0, 0, 0.28); color: var(--text);
  font-size: 0.9rem; font-family: inherit;
  box-shadow:
    inset 3px 3px 8px rgba(0, 0, 0, 0.38),
    inset -2px -2px 6px rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.clay-input:focus { border-color: rgba(30, 215, 96, 0.5); box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.38), 0 0 0 4px rgba(30, 215, 96, 0.12); }
.clay-input::placeholder { color: var(--text-3); }

.modal-err { margin-top: 10px; font-size: 0.8rem; color: var(--danger); font-weight: 600; }
.modal-actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.modal-privacy { margin-top: 16px; font-size: 0.72rem; color: var(--text-3); line-height: 1.65; }
.modal-privacy code { background: rgba(255, 255, 255, 0.08); padding: 1px 6px; border-radius: 6px; font-size: 0.68rem; }

/* ---------- Responsif ---------- */
@media (max-width: 640px) {
  .session-chip span { display: none; }
  .session-chip { padding: 9px 11px; }
  .ctl { width: 44px; height: 44px; border-radius: 16px; }
  .ctl-play { width: 66px; height: 66px; }
  .controls { gap: 9px; }
  .lyrics-scroll { max-height: 52vh; }
  .lyrics-list { padding: 9vh 0 14vh; }
  .card { padding: 20px 16px; }
}

/* ---------- Kurangi gerakan ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob, .eq i, .heq i { animation: none !important; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
