/* ==========================================================
   AppleMusic — Liquid Glass (latar putih)
   ========================================================== */
:root {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #5b5b66;
  --ink-3: #8e8e99;
  --accent: #fa2d48;
  --accent-2: #ff6a3d;
  --line: rgba(20, 20, 40, 0.08);
  --glass-a: rgba(255, 255, 255, 0.68);
  --glass-b: rgba(255, 255, 255, 0.30);
  --radius: 26px;
  --sidebar-w: 264px;
  --player-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.fill { fill: currentColor; stroke: none; }
::selection { background: rgba(250, 45, 72, 0.18); }

/* ---------- latar: putih + blob pastel yang "dibiaskan" kaca ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #fff; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.b1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: radial-gradient(circle at 30% 30%, #ffb3c1, #ffd9e0 60%, transparent 70%); animation: float1 22s ease-in-out infinite; }
.b2 { width: 40vmax; height: 40vmax; right: -12vmax; top: 8vmax; background: radial-gradient(circle at 40% 40%, #b9d7ff, #dbe9ff 60%, transparent 70%); animation: float2 26s ease-in-out infinite; }
.b3 { width: 36vmax; height: 36vmax; left: 20vmax; bottom: -16vmax; background: radial-gradient(circle at 50% 50%, #ffd8b5, #ffeedd 60%, transparent 70%); animation: float3 30s ease-in-out infinite; }
.b4 { width: 28vmax; height: 28vmax; right: 10vmax; bottom: -6vmax; background: radial-gradient(circle at 50% 50%, #d9c7ff, #ece4ff 60%, transparent 70%); animation: float1 28s ease-in-out infinite reverse; }
@keyframes float1 { 50% { transform: translate(6vmax, 5vmax) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-6vmax, 6vmax) scale(0.92); } }
@keyframes float3 { 50% { transform: translate(5vmax, -5vmax) scale(1.12); } }

/* ---------- Liquid Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(145deg, var(--glass-a), var(--glass-b));
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 10px 34px rgba(30, 30, 70, 0.10),
    0 2px 6px rgba(30, 30, 70, 0.05),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1.5px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 22px rgba(255, 255, 255, 0.35);
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.45) 100%);
  opacity: 0.55; mix-blend-mode: soft-light;
}
.glass > * { position: relative; }
.glass-soft {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 16px rgba(30, 30, 70, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-soft { background: rgba(255, 255, 255, 0.92); }
}

/* ---------- layout ---------- */
#app { min-height: 100vh; }
.sidebar {
  position: fixed; left: 14px; top: 14px; bottom: calc(var(--player-h) + 28px);
  width: var(--sidebar-w); border-radius: 32px; padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, #ff5f7a, var(--accent)); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(250, 45, 72, 0.35), inset 0 1px 0 rgba(255,255,255,.5); }
.brand-logo svg { width: 19px; height: 19px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  color: var(--ink-2); font-weight: 600; transition: background .25s var(--ease), color .25s, transform .25s var(--ease);
}
.nav-item:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); transform: translateX(3px); }
.nav-item.active { background: rgba(255, 255, 255, 0.92); color: var(--accent); box-shadow: 0 4px 14px rgba(250, 45, 72, 0.14), inset 0 1px 0 #fff; }
.nav-sep { height: 1px; background: var(--line); margin: 12px 8px; }
.nav-label { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; }
.side-pls { overflow-y: auto; flex: 1; margin: 0 -6px; padding: 0 6px; }
.side-pls::-webkit-scrollbar { width: 0; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; margin-top: 6px; cursor: pointer; transition: background .25s; }
.user-chip:hover { background: rgba(255, 255, 255, 0.75); }
.user-chip .nm { font-weight: 700; font-size: 14px; line-height: 1.15; }
.user-chip .em { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }

.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ff8aa0, #ff5a3c 55%, #ffb36b); color: #fff; font-weight: 800; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

main { margin-left: calc(var(--sidebar-w) + 40px); padding: 26px 34px calc(var(--player-h) + 60px) 6px; max-width: 1280px; min-height: 100vh; }
.view { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(18px) scale(.995); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* topbar mobile */
.topbar { display: none; }

/* ---------- tipografi ---------- */
.h-title { font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -0.035em; margin: 6px 0 4px; line-height: 1.05; }
.h-sub { color: var(--ink-2); font-size: 16px; margin: 0 0 22px; }
.h-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.h-sec h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.grad-text { background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, #ff9f43); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- hero ---------- */
.hero { border-radius: 36px; padding: 34px 34px 30px; overflow: hidden; margin-bottom: 8px; transform: translateY(calc(var(--sy, 0) * -0.06px)); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(250,45,72,.28), transparent 65%); filter: blur(10px); pointer-events: none; transform: translateY(calc(var(--sy, 0) * 0.12px)); }
.hero p { max-width: 520px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; transition: transform .3s var(--spring), box-shadow .3s, background .25s; user-select: none;
}
.btn:active { transform: scale(.95); }
.btn-primary { background: linear-gradient(145deg, #ff5a73, var(--accent)); color: #fff; box-shadow: 0 8px 22px rgba(250, 45, 72, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(250, 45, 72, 0.42), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-glass { background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 4px 14px rgba(30, 30, 70, 0.07), inset 0 1px 0 #fff; }
.btn-glass:hover { background: #fff; transform: translateY(-2px); }
.btn-danger { color: #d1102a; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--ink-2); transition: background .25s, color .25s, transform .3s var(--spring); }
.icon-btn:hover { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.icon-btn:active { transform: scale(.85); }
.icon-btn.on { color: var(--accent); }
.icon-btn svg.i { width: 20px; height: 20px; }

/* ---------- shelf & kartu ---------- */
.shelf { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 4px 22px; margin: 0 -4px; scroll-behavior: smooth; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.card { flex: none; width: 176px; scroll-snap-align: start; cursor: pointer; transition: transform .45s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card:active { transform: scale(.97); }
.cover { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, #eee, #f6f6f8); box-shadow: 0 12px 28px rgba(30, 30, 70, 0.16), 0 2px 6px rgba(30,30,70,.08); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .cover img { transform: scale(1.07); }
.cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 1.5px 0 rgba(255,255,255,.6); pointer-events: none; }
.cover .play-fab { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--accent); opacity: 0; transform: translateY(10px) scale(.8); transition: all .4s var(--spring); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.card:hover .play-fab { opacity: 1; transform: none; }
.card .t { font-weight: 700; margin-top: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .a { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.now .t { color: var(--accent); }
.fallback-cover { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff9aa8, #fa2d48); }
.fallback-cover svg { width: 40%; height: 40%; }

/* grid kartu */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px; }
.grid .card { width: auto; }

/* ---------- baris lagu ---------- */
.tracks { border-radius: 28px; padding: 8px; }
.row { display: flex; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 18px; cursor: pointer; transition: background .25s, transform .35s var(--ease); }
.row:hover { background: rgba(255, 255, 255, 0.75); }
.row:active { transform: scale(.99); }
.row .thumb { position: relative; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; background: #eee; box-shadow: 0 4px 12px rgba(30,30,70,.14); }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row .thumb .ov { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.38); color: #fff; opacity: 0; transition: opacity .25s; }
.row:hover .thumb .ov, .row.now .thumb .ov { opacity: 1; }
.row .thumb .ov svg { width: 22px; height: 22px; }
.row .meta { flex: 1; min-width: 0; }
.row .t { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .a { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.now .t { color: var(--accent); }
.row .alb { flex: 0 0 24%; color: var(--ink-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .du { color: var(--ink-3); font-size: 13px; width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.row .idx { width: 22px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 0.9s ease-in-out infinite; height: 40%; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
.paused .eq i { animation-play-state: paused; }
@keyframes eq { 50% { height: 100%; } }

/* chip kategori */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat { border-radius: 22px; padding: 18px; height: 92px; font-weight: 800; font-size: 18px; color: #fff; position: relative; overflow: hidden; cursor: pointer; transition: transform .4s var(--spring), box-shadow .3s; box-shadow: 0 10px 24px rgba(30,30,70,.16), inset 0 1.5px 0 rgba(255,255,255,.5); }
.cat::after { content: ""; position: absolute; right: -18px; bottom: -22px; width: 80px; height: 80px; border-radius: 22px; background: rgba(255,255,255,.28); transform: rotate(24deg); }
.cat:hover { transform: translateY(-4px) scale(1.02); }
.cat:active { transform: scale(.96); }

/* ---------- search ---------- */
.searchbar { position: sticky; top: 14px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 58px; border-radius: 999px; margin-bottom: 18px; }
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; height: 100%; min-width: 0; }
.searchbar input::placeholder { color: var(--ink-3); }
.sugg { position: absolute; left: 12px; right: 12px; top: 64px; border-radius: 22px; padding: 8px; display: none; z-index: 25; }
.sugg.show { display: block; animation: viewIn .3s var(--ease); }
.sugg button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; text-align: left; color: var(--ink-2); }
.sugg button:hover { background: rgba(255,255,255,.9); color: var(--ink); }

/* ---------- playlist detail ---------- */
.pl-head { display: flex; gap: 28px; align-items: flex-end; margin-bottom: 22px; flex-wrap: wrap; }
.mosaic { width: 220px; height: 220px; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; flex: none; box-shadow: 0 20px 44px rgba(30, 30, 70, 0.22); background: linear-gradient(135deg, #ff9aa8, #fa2d48); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic.one { grid-template-columns: 1fr; }
.mosaic .ph { grid-column: 1 / -1; display: grid; place-items: center; color: #fff; }
.mosaic .ph svg { width: 70px; height: 70px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; margin-bottom: 10px; }

/* ---------- empty / skeleton ---------- */
.empty { text-align: center; padding: 54px 20px; color: var(--ink-2); border-radius: 28px; }
.empty .big { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(145deg, #ffe0e5, #fff); color: var(--accent); box-shadow: 0 8px 22px rgba(250,45,72,.16); }
.empty .big svg { width: 34px; height: 34px; }
.empty h3 { margin: 0 0 6px; color: var(--ink); font-size: 20px; }
.sk { background: linear-gradient(100deg, #f1f1f4 30%, #fafafc 50%, #f1f1f4 70%); background-size: 200% 100%; animation: sk 1.3s linear infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-card { flex: none; width: 176px; } .sk-card .sk:first-child { aspect-ratio: 1; border-radius: 22px; } .sk-card .sk:nth-child(2) { height: 14px; margin-top: 12px; width: 80%; } .sk-card .sk:nth-child(3) { height: 12px; margin-top: 8px; width: 55%; }
.sk-row { height: 68px; margin: 6px; }

/* ---------- reveal saat gulir ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(5px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- player ---------- */
.player {
  position: fixed; left: 14px; right: 14px; bottom: 14px; height: var(--player-h); border-radius: 30px; z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 14px; padding: 0 18px;
  transition: transform .6s var(--ease), opacity .4s;
}
.player.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.p-info { display: flex; align-items: center; gap: 13px; min-width: 0; cursor: pointer; }
.p-art { width: 56px; height: 56px; border-radius: 14px; overflow: hidden; flex: none; box-shadow: 0 6px 16px rgba(30,30,70,.22); background: #eee; transition: transform .5s var(--spring); }
.player:not(.paused) .p-art { transform: scale(1.04); }
.p-art img { width: 100%; height: 100%; object-fit: cover; }
.p-t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-a { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ctrls { display: flex; align-items: center; gap: 6px; }
.play-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #ff5a73, var(--accent)); box-shadow: 0 8px 20px rgba(250,45,72,.4), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .3s var(--spring); }
.play-btn:hover { transform: scale(1.08); } .play-btn:active { transform: scale(.92); }
.play-btn svg.i { width: 22px; height: 22px; }
.seek { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seek span { width: 38px; } .seek span:first-child { text-align: right; }
.p-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.vol { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.vol input { width: 96px; }

/* range slider */
input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; flex: 1; margin: 0; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--accent) var(--p), rgba(30,30,70,.12) var(--p)); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 5px; background: rgba(30,30,70,.12); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 5px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; margin-top: -5px; box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: transform .2s var(--spring); }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.25); }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.3); }

/* Now playing sheet */
.sheet { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: 22px; transform: translateY(105%); transition: transform .7s var(--ease); background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(40px) saturate(200%); backdrop-filter: blur(40px) saturate(200%); overflow: hidden; }
.sheet.open { transform: none; }
.sheet-bg { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(90px) saturate(180%); opacity: .55; transform: scale(1.2); transition: background-image .6s; pointer-events: none; }
.sheet-body { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 40px; align-items: center; max-width: 1100px; width: 100%; margin: 0 auto; min-height: 0; }
.sheet-top { position: relative; display: flex; justify-content: space-between; align-items: center; max-width: 1100px; width: 100%; margin: 0 auto 6px; }
.sheet-art { width: min(100%, 440px, 52vh); aspect-ratio: 1; margin: 0 auto; border-radius: 34px; overflow: hidden; box-shadow: 0 34px 70px rgba(30,30,70,.35); transition: transform .8s var(--spring); background: #eee; }
.sheet-art img { width: 100%; height: 100%; object-fit: cover; }
.sheet.paused .sheet-art { transform: scale(.88); }
.sheet-info h2 { font-size: 30px; margin: 0 0 4px; letter-spacing: -0.03em; line-height: 1.1; }
.sheet-info p { margin: 0 0 18px; color: var(--ink-2); font-size: 17px; }
.sheet-ctrls { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 14px 0; }
.sheet-ctrls .play-btn { width: 70px; height: 70px; } .sheet-ctrls .play-btn svg.i { width: 30px; height: 30px; }
.queue { max-height: 32vh; overflow-y: auto; border-radius: 22px; padding: 6px; margin-top: 12px; }
.queue .row { padding: 6px 8px; } .queue .thumb { width: 42px; height: 42px; }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(240, 240, 248, 0.45); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.modal-wrap.show { display: grid; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(440px, 100%); border-radius: 32px; padding: 26px; max-height: 86vh; overflow: auto; animation: pop .55s var(--spring); }
@keyframes pop { from { opacity: 0; transform: scale(.88) translateY(20px); } }
.modal h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.modal .sub { color: var(--ink-2); margin: 0 0 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 16px; text-align: left; transition: background .2s; }
.pick:hover { background: rgba(255,255,255,.9); }
.pick .mini { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, #ff9aa8, #fa2d48); color: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.pick .mini img { width: 100%; height: 100%; object-fit: cover; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 4px; }
.input { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(30, 30, 70, 0.1); background: rgba(255, 255, 255, 0.75); outline: 0; transition: border-color .25s, box-shadow .25s, background .25s; font-size: 16px; }
.input:focus { border-color: rgba(250, 45, 72, 0.55); box-shadow: 0 0 0 4px rgba(250, 45, 72, 0.12); background: #fff; }
textarea.input { resize: none; min-height: 84px; }

/* ---------- auth ---------- */
.auth { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 20px; overflow-y: auto; background: #fff; }
.auth.show { display: grid; }
.auth-card { width: min(430px, 100%); border-radius: 38px; padding: 34px 30px 28px; animation: pop .8s var(--spring); }
.auth-logo { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; background: linear-gradient(145deg, #ff5f7a, var(--accent)); display: grid; place-items: center; color: #fff; box-shadow: 0 14px 30px rgba(250,45,72,.38), inset 0 1.5px 0 rgba(255,255,255,.55); animation: bob 4s ease-in-out infinite; }
.auth-logo svg { width: 32px; height: 32px; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.auth-card h1 { text-align: center; font-size: 30px; letter-spacing: -0.035em; margin: 0 0 4px; }
.auth-card .sub { text-align: center; color: var(--ink-2); margin: 0 0 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; margin-bottom: 20px; background: rgba(30,30,70,.06); position: relative; }
.seg button { position: relative; z-index: 1; padding: 10px; border-radius: 999px; font-weight: 700; color: var(--ink-2); transition: color .3s; }
.seg button.on { color: var(--ink); }
.seg .thumbbar { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: 0 3px 10px rgba(30,30,70,.12); transition: transform .5s var(--spring); }
.seg.reg .thumbbar { transform: translateX(100%); }
.err { color: #d1102a; font-size: 14px; background: rgba(209, 16, 42, 0.08); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; display: none; }
.err.show { display: block; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.note { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 14px; }

/* ---------- profil ---------- */
.profile-card { border-radius: 36px; padding: 30px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.avatar.xl { width: 112px; height: 112px; font-size: 44px; position: relative; }
.avatar-edit { position: relative; cursor: pointer; }
.avatar-edit .cam { position: absolute; right: -2px; bottom: -2px; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: transform .3s var(--spring); }
.avatar-edit:hover .cam { transform: scale(1.12) rotate(-8deg); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 20px 0; }
.stat { border-radius: 24px; padding: 18px; }
.stat b { display: block; font-size: 32px; letter-spacing: -0.03em; }
.stat span { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.form-card { border-radius: 32px; padding: 26px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; top: 18px; transform: translate(-50%, -140%); z-index: 200; padding: 12px 22px; border-radius: 999px; font-weight: 650; transition: transform .6s var(--spring); max-width: 90vw; }
#toast.show { transform: translate(-50%, 0); }

/* ---------- tab bar mobile ---------- */
.tabbar { display: none; }
#yt-holder { position: fixed; width: 200px; height: 200px; right: 0; bottom: 0; opacity: 0.01; pointer-events: none; z-index: -2; overflow: hidden; }

/* ---------- responsif ---------- */
@media (max-width: 1100px) { .vol { display: none; } .player { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; } }
@media (max-width: 860px) {
  :root { --player-h: 70px; }
  .sidebar { display: none; }
  main { margin-left: 0; padding: 14px 16px calc(var(--player-h) + 110px + var(--safe-b)); }
  .topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .topbar .brand { padding: 0; font-size: 19px; }
  .tabbar { display: flex; position: fixed; left: 14px; right: 14px; bottom: calc(10px + var(--safe-b)); height: 64px; border-radius: 999px; z-index: 55; justify-content: space-around; align-items: center; padding: 0 8px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--ink-3); padding: 6px 14px; border-radius: 999px; transition: all .3s var(--ease); }
  .tabbar a.active { color: var(--accent); background: rgba(255,255,255,.9); box-shadow: 0 3px 12px rgba(250,45,72,.14); }
  .player { left: 10px; right: 10px; bottom: calc(84px + var(--safe-b)); grid-template-columns: minmax(0, 1fr) auto; padding: 0 12px; border-radius: 26px; gap: 8px; }
  .p-info { gap: 10px; } .p-art { width: 46px; height: 46px; }
  .p-mid { display: contents; } .p-mid .seek { display: none; } .p-right { display: none; }
  .p-art { width: 48px; height: 48px; } .play-btn { width: 44px; height: 44px; }
  .ctrls .hide-m { display: none; }
  .hero { padding: 24px 20px; border-radius: 30px; }
  .card { width: 150px; } .sk-card { width: 150px; }
  .row .alb { display: none; }
  .pl-head { flex-direction: column; align-items: flex-start; gap: 18px; } .mosaic { width: 180px; height: 180px; }
  .sheet { padding: 16px; overflow-y: auto; } .sheet-body { grid-template-columns: 1fr; gap: 18px; align-content: start; }
  .sheet-art { width: min(78vw, 340px); } .sheet-info h2 { font-size: 24px; text-align: center; } .sheet-info p { text-align: center; }
  .two { grid-template-columns: 1fr; }
  .profile-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
