:root {
  --bg: #0d0b0a;
  --bg-2: #161312;
  --bg-3: #211c1a;
  --bg-hover: #2a2321;
  --line: #2f2826;
  --text: #f6efe9;
  --muted: #a89a91;
  --dim: #6f625b;
  --accent: #ff7a2f;
  --accent-2: #ffb347;
  --danger: #ff5a5a;
  --grad: linear-gradient(135deg, #ffb347, #ff4d2e);
  --radius: 10px;
  --player-h: 84px;
  --nav-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif; font-size: 15px;
  -webkit-font-smoothing: antialiased; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { display: block; }
.hidden { display: none !important; }

.boot { height: 100vh; display: grid; place-items: center; }
.logo-mark { font-weight: 800; font-size: 28px; letter-spacing: -1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Auth ---------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: auto; height: 100vh;
  background: radial-gradient(ellipse at top, #3a1c0e 0%, var(--bg) 60%);
}
.auth-card { width: 100%; max-width: 380px; text-align: center; }
.auth-card .logo-mark { font-size: 48px; margin-bottom: 6px; }
.auth-card p.sub { color: var(--muted); margin-bottom: 28px; }
.auth-card form { display: grid; gap: 12px; text-align: left; }
.auth-switch { margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth-switch button { color: var(--text); font-weight: 600; text-decoration: underline; }
.msg { padding: 10px 12px; border-radius: 8px; font-size: 14px; background: var(--bg-3); color: var(--muted); }
.msg.err { background: #3a1515; color: #ffb4b4; }
.msg.ok { background: #1d2e1a; color: #b9f0aa; }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, .field input, .field textarea, .field select {
  width: 100%; background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px;
  padding: 11px 12px; outline: none; transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 600; transition: transform .1s, opacity .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--grad); color: #1a0d05; }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { color: var(--danger); border: 1px solid #5a2a2a; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: 1fr var(--player-h); height: 100vh; height: 100dvh; }
.sidebar { grid-row: 1; background: #000; padding: 22px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar .logo-mark { padding: 0 12px 18px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; }
.nav-item:hover { color: var(--text); }
.nav-item.active { color: var(--text); background: var(--bg-3); }
.nav-item svg { width: 22px; height: 22px; flex: none; }
.sidebar .sep { height: 1px; background: var(--line); margin: 12px; }
.sidebar .side-list { display: flex; flex-direction: column; gap: 2px; }
.sidebar .side-list a { padding: 7px 12px; color: var(--muted); font-size: 14px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .side-list a:hover { color: var(--text); background: var(--bg-2); }
.sidebar .me { margin-top: auto; padding: 12px; font-size: 13px; color: var(--dim); }
.sidebar .me b { color: var(--muted); display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { grid-row: 1; overflow-y: auto; background: var(--bg); position: relative; }
.page { padding: 24px 28px 48px; max-width: 1400px; }
.page h1 { font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }
.page h2 { font-size: 22px; font-weight: 700; margin: 30px 0 14px; letter-spacing: -.3px; }
.topbar { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.card { background: var(--bg-2); padding: 14px; border-radius: var(--radius); transition: background .2s; position: relative; cursor: pointer; }
.card:hover { background: var(--bg-3); }
.card img, .card .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 12px; background: var(--bg-3); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.card.round img { border-radius: 50%; background: #fff; }
.card .t { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .s { color: var(--muted); font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .fab { position: absolute; right: 22px; top: calc(100% - 118px); opacity: 0; transform: translateY(8px); transition: .2s; }
.card:hover .fab { opacity: 1; transform: none; }
.ph { display: grid; place-items: center; color: var(--dim); }

.fab { width: 48px; height: 48px; border-radius: 50%; background: var(--grad); color: #1a0d05; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.fab svg { width: 22px; height: 22px; }
.fab:hover { transform: scale(1.05); }

.hello { font-size: 30px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; font-weight: 700; transition: background .2s; }
.quick a:hover { background: rgba(255,255,255,.12); }
.quick img { width: 64px; height: 64px; object-fit: cover; }

/* ---------- Hero (artist / album) ---------- */
.hero { position: relative; padding: 70px 28px 24px; display: flex; align-items: flex-end; gap: 24px; min-height: 300px; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,11,10,.2), rgba(13,11,10,.95)); }
.hero > *:not(.hero-bg) { position: relative; }
.hero .cover { width: 220px; height: 220px; object-fit: cover; border-radius: 6px; box-shadow: 0 16px 50px rgba(0,0,0,.6); flex: none; background: var(--bg-3); }
.hero .cover.round { border-radius: 50%; background: #fff; }
.hero .kind { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { font-size: clamp(36px, 7vw, 84px); font-weight: 800; letter-spacing: -2px; line-height: 1; margin: 8px 0 14px; }
.hero .meta { color: var(--muted); font-size: 14px; }
.hero .meta b { color: var(--text); }
.actions { display: flex; align-items: center; gap: 18px; padding: 22px 28px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .15s, transform .1s; }
.icon-btn:hover { color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.on { color: var(--accent); }
.icon-btn.big svg { width: 30px; height: 30px; }

/* ---------- Track list ---------- */
.tracks { padding: 0 28px; }
.tr { display: grid; grid-template-columns: 36px 1fr auto auto 40px; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.tr:hover { background: var(--bg-2); }
.tr .n { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.tr .ti { min-width: 0; display: flex; align-items: center; gap: 12px; }
.tr .ti img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex: none; }
.tr .ti .tt { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .ti .ts { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .pc, .tr .d { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.tr.playing .tt, .tr.playing .n { color: var(--accent); }
.tr .more { opacity: 0; }
.tr:hover .more { opacity: 1; }
.tr .heart { width: 32px; height: 32px; }
.tr .heart svg { width: 18px; height: 18px; }
.tr-head { display: grid; grid-template-columns: 36px 1fr auto auto 40px; gap: 14px; padding: 8px 10px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.eq { display: inline-flex; gap: 2px; height: 14px; align-items: flex-end; }
.eq i { width: 3px; background: var(--accent); animation: eq 0.9s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }
.paused .eq i { animation-play-state: paused; }

.about { margin: 30px 28px; background: var(--bg-2); border-radius: var(--radius); padding: 22px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; }
.about b { color: var(--text); }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; padding: 0 28px; }
.member { text-align: center; }
.member .av { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--bg-3); display: grid; place-items: center; font-size: 40px; font-weight: 800; color: var(--dim); margin-bottom: 10px; }
.member .t { font-weight: 700; }
.member .s { color: var(--muted); font-size: 13px; }
.member.former { opacity: .6; }
.section-pad { padding: 0 28px; }

/* ---------- Player bar ---------- */
.player { grid-column: 1 / -1; grid-row: 2; background: #000; border-top: 1px solid #1a1615; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; padding: 0 16px; gap: 16px; }
.p-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.p-now img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; cursor: pointer; }
.p-now .tt { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.p-now .ts { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-now .txt { min-width: 0; }
.p-center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.p-ctrls { display: flex; align-items: center; gap: 14px; }
.p-ctrls .play { width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #000; display: grid; place-items: center; }
.p-ctrls .play svg { width: 18px; height: 18px; }
.p-ctrls .icon-btn { width: 32px; height: 32px; }
.p-ctrls .icon-btn svg { width: 18px; height: 18px; }
.p-prog { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 600px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.p-right .icon-btn { width: 32px; height: 32px; }
.p-right .icon-btn svg { width: 18px; height: 18px; }
.p-vol { width: 100px; }
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--bg-hover); cursor: pointer; --p: 0%; background-image: linear-gradient(var(--text), var(--text)); background-size: var(--p) 100%; background-repeat: no-repeat; }
.rng:hover { background-image: var(--grad); }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); opacity: 0; transition: opacity .15s; }
.rng:hover::-webkit-slider-thumb { opacity: 1; }
.rng::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); }
.p-empty { color: var(--dim); font-size: 13px; }
.mini-prog { display: none; }

/* ---------- Now playing ---------- */
.np { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.np.open { transform: none; }
.np-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4) brightness(.45); transform: scale(1.2); }
.np > *:not(.np-bg) { position: relative; }
.np-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); }
.np-top .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); text-align: center; }
.np-top .lbl b { display: block; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 14px; }
.np-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; padding: 10px 40px 30px; min-height: 0; max-width: 1300px; margin: 0 auto; width: 100%; }
.np-left { display: flex; flex-direction: column; justify-content: center; gap: 22px; min-height: 0; }
.np-cover { width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: 0 24px 80px rgba(0,0,0,.6); margin: 0 auto; }
.np-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 440px; width: 100%; margin: 0 auto; }
.np-info .tt { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.np-info .ts { color: var(--muted); }
.np-prog { max-width: 440px; width: 100%; margin: 0 auto; }
.np-prog .times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.np-ctrls { display: flex; align-items: center; justify-content: space-between; max-width: 440px; width: 100%; margin: 0 auto; }
.np-ctrls .play { width: 66px; height: 66px; border-radius: 50%; background: var(--text); color: #000; display: grid; place-items: center; }
.np-ctrls .play svg { width: 28px; height: 28px; }
.np-right { display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 600; font-size: 14px; }
.tab.on { background: var(--text); color: #000; }
.np-panel { flex: 1; overflow-y: auto; min-height: 0; padding-right: 6px; scroll-behavior: smooth; }
.lyrics { padding: 30px 0 45vh; }
.lyrics .ln { font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; line-height: 1.35; margin-bottom: 10px; color: rgba(255,255,255,.35); transition: color .3s, transform .3s; cursor: pointer; transform-origin: left; }
.lyrics .ln.past { color: rgba(255,255,255,.6); }
.lyrics .ln.cur { color: #fff; transform: scale(1.02); }
.lyrics .ln.gap { height: 18px; }
.lyrics.static .ln { color: rgba(255,255,255,.85); cursor: default; font-size: clamp(17px, 2vw, 22px); font-weight: 700; }
.lyrics-note { font-size: 13px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.credit-block { background: rgba(0,0,0,.25); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; line-height: 1.6; white-space: pre-wrap; }
.credit-block h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.q-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; cursor: pointer; }
.q-item:hover { background: rgba(255,255,255,.06); }
.q-item img { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; }
.q-item .tt { font-weight: 600; } .q-item .ts { color: var(--muted); font-size: 13px; }
.q-item.cur .tt { color: var(--accent); }
.q-item .grow { flex: 1; min-width: 0; }

/* sync mode */
.sync { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.sync-list { flex: 1; overflow-y: auto; }
.sync-list .ln { padding: 6px 10px; border-radius: 6px; font-weight: 600; color: var(--muted); display: flex; gap: 12px; }
.sync-list .ln .tm { width: 52px; flex: none; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 13px; padding-top: 2px; }
.sync-list .ln.done { color: var(--text); }
.sync-list .ln.next { background: rgba(255,122,47,.18); color: #fff; }
.sync-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sync-tap { flex: 1; min-width: 200px; padding: 22px; font-size: 18px; }

/* ---------- Menus / modals ---------- */
.menu { position: fixed; z-index: 80; background: var(--bg-3); border-radius: 8px; padding: 4px; min-width: 220px; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
.menu button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 4px; font-size: 14px; }
.menu button:hover { background: var(--bg-hover); }
.menu .sub-h { padding: 8px 12px 4px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--bg-2); border-radius: 14px; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 24px; }
.modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.modal form { display: grid; gap: 14px; }
.modal .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.modal .foot .left { margin-right: auto; }
.img-pick { display: flex; align-items: center; gap: 12px; }
.img-pick img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; background: var(--bg-3); }
.toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + var(--nav-h) + 20px + var(--safe-b)); transform: translateX(-50%); background: var(--text); color: #000; padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.5); max-width: calc(100vw - 32px); text-align: center; }

/* admin */
.admin-sec { background: var(--bg-2); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.admin-sec h2 { margin: 0 0 14px; font-size: 18px; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border: 0; }
.admin-row img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--bg-3); }
.admin-row .grow { flex: 1; min-width: 0; }
.admin-row .ts { color: var(--muted); font-size: 13px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 200px; }
.pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bg-hover); color: var(--muted); font-weight: 600; margin-left: 6px; }
.pill.acc { background: rgba(255,122,47,.2); color: var(--accent-2); }

/* wrapped */
.wrap-hero { border-radius: 16px; padding: 32px; background: var(--grad); color: #1a0d05; margin-bottom: 20px; }
.wrap-hero .big { font-size: clamp(48px, 9vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -3px; }
.wrap-hero .lbl { font-weight: 700; font-size: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--bg-2); border-radius: var(--radius); padding: 18px; }
.stat .v { font-size: 30px; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 13px; }
.rank { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 8px; }
.rank .pos { font-size: 28px; font-weight: 800; width: 36px; color: var(--accent); }
.rank img { width: 52px; height: 52px; border-radius: 4px; object-fit: cover; }
.rank .grow { flex: 1; min-width: 0; }
.rank .ts { color: var(--muted); font-size: 13px; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.search-box { position: relative; max-width: 420px; margin-bottom: 20px; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search-box input { width: 100%; padding: 13px 14px 13px 44px; border-radius: 999px; background: var(--bg-3); border: 1px solid transparent; outline: none; }
.search-box input:focus { border-color: var(--accent); }
.bottom-nav { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  :root { --player-h: 64px; --nav-h: 60px; }
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; }
  .sidebar { display: none; }
  .main { grid-column: 1; }
  .page { padding: 18px 16px 30px; }
  .hero { padding: 60px 16px 18px; flex-direction: column; align-items: flex-start; min-height: 0; }
  .hero .cover { width: 180px; height: 180px; align-self: center; }
  .actions { padding: 16px; }
  .tracks { padding: 0 8px; }
  .tr, .tr-head { grid-template-columns: 26px 1fr auto 36px; gap: 10px; }
  .tr .pc, .tr-head .pc { display: none; }
  .tr .more { opacity: 1; }
  .about, .members, .section-pad { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; }
  .about { padding: 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card .fab { display: none; }
  .player { grid-column: 1; grid-row: 2; margin: 0 8px; border-radius: 8px; background: var(--bg-3); border: 0; grid-template-columns: 1fr auto; padding: 0 8px; position: relative; overflow: hidden; height: var(--player-h); }
  .p-now img { width: 46px; height: 46px; }
  .p-center .p-prog, .p-right, .p-ctrls .hide-m { display: none; }
  .p-center { flex-direction: row; }
  .mini-prog { display: block; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: rgba(255,255,255,.15); }
  .mini-prog i { display: block; height: 100%; background: var(--text); width: 0; }
  .bottom-nav { display: flex; grid-row: 3; justify-content: space-around; background: linear-gradient(transparent, #000 40%); padding: 6px 0 calc(6px + var(--safe-b)); height: calc(var(--nav-h) + var(--safe-b)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); flex: 1; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav svg { width: 24px; height: 24px; }
  .np-body { grid-template-columns: 1fr; padding: 0 22px 20px; gap: 18px; overflow-y: auto; }
  .np-left { gap: 16px; justify-content: flex-start; }
  .np-cover { max-width: min(78vw, 360px); }
  .np-right { min-height: 70vh; }
  .np-panel { overflow: visible; }
  .lyrics { padding-bottom: 30px; }
  .modal .row { grid-template-columns: 1fr; }
}
.page .tracks { padding: 0; }
.sync-list, .np-panel { position: relative; }

/* ---------- Tocando agora (estilo Spotify) ---------- */
.np-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.np-top { max-width: 560px; margin: 0 auto; }
.np-main { max-width: 480px; margin: 0 auto; padding: 4px 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.np-main .np-cover { width: min(100%, 50vh); max-width: none; }
.np-main .np-info, .np-main .np-prog, .np-main .np-ctrls { max-width: none; }
.np-cards { max-width: 480px; margin: 0 auto; padding: 0 16px calc(40px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; }
.np-card { background: rgba(0,0,0,.38); border-radius: 12px; padding: 16px 18px; overflow: hidden; }
.card-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 12px; }
.pill-btn { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; }
.lyr-card { background: linear-gradient(160deg, #a8441a, #6b2610); cursor: pointer; }
.lc-lines .ln { font-size: 20px; font-weight: 800; line-height: 1.35; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.lc-lines .ln.cur { color: #fff; }
.art-card { padding: 0; cursor: pointer; }
.art-img { height: 180px; background-size: cover; background-position: center 30%; position: relative; }
.art-img span { position: absolute; left: 16px; top: 14px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.art-txt { padding: 14px 18px 18px; }
.art-txt b { font-size: 17px; }
.art-txt p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cred { white-space: pre-wrap; line-height: 1.6; color: var(--text); font-size: 14px; }

/* tela cheia da letra */
.lv { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background: linear-gradient(170deg, #a8441a 0%, #5a200d 100%); transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.lv.open { transform: none; }
.lv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); max-width: 760px; width: 100%; margin: 0 auto; }
.lv-title { text-align: center; min-width: 0; flex: 1; }
.lv-title b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-title span { font-size: 13px; color: rgba(255,255,255,.75); }
.lv-note { max-width: 760px; width: 100%; margin: 0 auto; padding: 0 24px 6px; font-size: 13px; color: rgba(255,255,255,.75); }
.lv-body { flex: 1; min-height: 0; overflow-y: auto; position: relative; max-width: 760px; width: 100%; margin: 0 auto; padding: 18px 24px 40vh; }
.lv-body .ln { font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.3; margin-bottom: 14px; color: rgba(0,0,0,.45); cursor: pointer; transition: color .25s; }
.lv-body .ln.past { color: rgba(255,255,255,.7); }
.lv-body .ln.cur { color: #fff; }
.lv-body.static { padding-bottom: 30px; }
.lv-body.static .ln { color: #fff; cursor: default; font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 6px; }
.lv-body .gap { height: 22px; }
.lv-body.sync-on { padding-bottom: 30vh; }
.lv-body.sync-on .ln { display: flex; gap: 12px; font-size: 20px; color: rgba(255,255,255,.55); cursor: default; padding: 4px 8px; border-radius: 6px; margin-bottom: 4px; }
.lv-body.sync-on .ln .tm { width: 44px; flex: none; font-size: 12px; padding-top: 6px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.lv-body.sync-on .ln.done { color: #fff; }
.lv-body.sync-on .ln.next { background: rgba(0,0,0,.3); color: #fff; }
.lv-foot { max-width: 760px; width: 100%; margin: 0 auto; padding: 10px 24px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
.lv-foot .times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.8); margin-top: 6px; font-variant-numeric: tabular-nums; }
.lv-foot .rng { background-color: rgba(255,255,255,.3); }
.lv-ctrls { display: flex; justify-content: center; align-items: center; gap: 28px; }
.lv-ctrls .icon-btn { color: #fff; }
.lv-ctrls .play { width: 60px; height: 60px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; }
.lv-ctrls .play svg { width: 26px; height: 26px; }
.btn-light { background: #fff; color: #000; }
.sync-tap { padding: 18px; font-size: 17px; width: 100%; }
.sync-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lv .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
@media (max-width: 820px) {
  .np-main { padding: 0 22px 24px; gap: 16px; }
  .np-main .np-cover { width: 100%; }
}
.np > .np-scroll, .np > .lv { position: absolute; }
