:root {
	--bg: #0d0c0a;
	--bg-2: #141210;
	--surface: #1b1814;
	--surface-2: #242019;
	--line: rgba(255, 244, 220, .08);
	--text: #f7f1e6;
	--text-2: rgba(247, 241, 230, .68);
	--muted: rgba(247, 241, 230, .45);
	--honey: #ffb627;
	--honey-2: #ffd36b;
	--honey-ink: #2b1c00;
	--danger: #ff6b5e;
	--radius: 18px;
	--player-h: 92px;
	--side-w: 280px;
	--display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--honey); color: var(--honey-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
svg { display: block; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art {
	position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
	background: radial-gradient(800px 500px at 20% 10%, rgba(255,182,39,.35), transparent 60%), radial-gradient(700px 600px at 90% 100%, rgba(232,93,117,.25), transparent 60%), #120f0a;
}
.login-art .brand { display: flex; gap: 12px; align-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; }
.login-art .brand img { width: 40px; }
.login-art h1 { font-family: var(--display); font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.04em; margin: 0; max-width: 620px; }
.login-art h1 em { font-style: normal; color: var(--honey); }
.login-art p { color: var(--text-2); max-width: 460px; font-size: 17px; }
.login-art > div:nth-child(2) { position: relative; z-index: 1; }
.login-art .foot { position: relative; z-index: 1; color: var(--muted); font-size: 13px; }
.login-art .wave { position: absolute; right: 48px; bottom: 48px; display: flex; gap: 10px; align-items: flex-end; opacity: .9; }
.login-art .wave i { width: 14px; border-radius: 7px; background: linear-gradient(180deg, var(--honey-2), var(--honey)); animation: wave 1.4s ease-in-out infinite; }
@keyframes wave { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.login-art .wave i { transform-origin: bottom; }
.login-form { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); border-left: 1px solid var(--line); }
.login-form form { width: 100%; max-width: 380px; }
.login-form h2 { font-family: var(--display); font-size: 32px; margin: 0 0 6px; letter-spacing: -.02em; }
.login-form .sub { color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.field input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 16px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: var(--honey); box-shadow: 0 0 0 4px rgba(255,182,39,.15); }
.login-form .err { color: var(--danger); font-size: 14px; min-height: 22px; margin-bottom: 6px; }
.login-form .links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; color: var(--muted); }
.login-form .links a { color: var(--text-2); text-decoration: none; }
.login-form .links a:hover { color: var(--honey); }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } .login-art { min-height: 280px; padding: 28px; gap: 28px; } .login-art .wave, .login-art .foot { display: none; } .login-form { border-left: 0; align-items: start; } }

/* ---------- buttons ---------- */
.btn { height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .1s, background .15s, filter .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #2d2820; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: linear-gradient(180deg, var(--honey-2), var(--honey)); color: var(--honey-ink); border: 0; box-shadow: 0 10px 30px -12px rgba(255,182,39,.7); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.block { width: 100%; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.ghost { background: transparent; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--text-2); transition: color .15s, background .15s, transform .1s; position: relative; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.on { color: var(--honey); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--honey); color: var(--honey-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; height: 100vh; height: 100dvh; padding-bottom: var(--player-h); }
.side { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 22px 22px 18px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.side .brand img { width: 34px; }
.side .brand span { color: var(--honey); }
.side nav { padding: 0 12px; display: grid; gap: 2px; }
.side nav button { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; cursor: pointer; text-align: left; position: relative; }
.side nav button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.side nav button.active { color: var(--text); background: rgba(255,255,255,.07); }
.side nav button svg { width: 20px; height: 20px; }
.side nav .count { margin-left: auto; background: var(--honey); color: var(--honey-ink); font-size: 11px; font-weight: 800; border-radius: 9px; padding: 1px 7px; }
.side h4 { margin: 22px 24px 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.side .pls { overflow: auto; padding: 0 12px 16px; flex: 1; min-height: 0; }
.side .pl { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 12px; cursor: pointer; }
.side .pl:hover { background: rgba(255,255,255,.04); }
.side .pl.active { background: rgba(255,255,255,.07); }
.side .pl .mini { width: 42px; height: 42px; border-radius: 9px; flex: none; }
.side .pl .t { min-width: 0; flex: 1; }
.side .pl .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 14px; }
.side .pl .t span { color: var(--muted); font-size: 12.5px; }
.side .pl.playing .t div { color: var(--honey); }
.side .foot { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.side .foot .who { flex: 1; min-width: 0; }
.side .foot .who div { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .foot .who a { color: var(--muted); text-decoration: none; }
.side .foot .who a:hover { color: var(--honey); }
.side .apps { padding: 0 16px 12px; display: flex; gap: 8px; }
.side .apps a { flex: 1; font-size: 12px; text-align: center; padding: 8px; border-radius: 10px; background: var(--surface); color: var(--text-2); text-decoration: none; }
.side .apps a:hover { color: var(--text); }

.main { overflow: auto; position: relative; min-height: 0; }
.main-inner { padding: 28px 36px 48px; max-width: 1400px; position: relative; isolation: isolate; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 14px 36px; background: linear-gradient(var(--bg) 60%, transparent); }
.topbar .spacer { flex: 1; }
.mobile-brand { display: none; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 19px; }
.mobile-brand img { width: 28px; }
.mobile-brand span { color: var(--honey); }

.paywall-banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius); margin-bottom: 26px; background: linear-gradient(110deg, #3a2806, #1c150b 70%); border: 1px solid rgba(255,182,39,.25); }
.paywall-banner .t { flex: 1; }
.paywall-banner strong { display: block; font-size: 16px; }
.paywall-banner span { color: var(--text-2); font-size: 14px; }

/* home */
.hello { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; line-height: 1.05; margin: 6px 0 4px; }
.hello-sub { color: var(--muted); margin-bottom: 30px; }
.section-title { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin: 0 0 16px; display: flex; align-items: baseline; gap: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.card { cursor: pointer; border-radius: var(--radius); padding: 12px; margin: -12px; transition: background .2s; position: relative; }
.card:hover { background: rgba(255,255,255,.04); }
.card .cv { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); }
.card .play-fab { position: absolute; right: 12px; bottom: 12px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--honey); color: var(--honey-ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); z-index: 3; }
.card:hover .play-fab, .card.playing .play-fab { opacity: 1; transform: none; }
.card .play-fab svg { width: 20px; height: 20px; }
.card h3 { margin: 12px 0 2px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .new { position: absolute; top: 22px; left: 22px; z-index: 3; background: var(--honey); color: var(--honey-ink); font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }

.cover { aspect-ratio: 1; width: 100%; position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 8%; overflow: hidden; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.4)); pointer-events: none; }
.cover .gen { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(14px, 2.4vw, 30px); line-height: .95; letter-spacing: -.04em; text-shadow: 0 2px 20px rgba(0,0,0,.25); word-break: break-word; }
.cover .rings { position: absolute; right: -30%; top: -30%; width: 110%; aspect-ratio: 1; border-radius: 50%; border: 16px solid rgba(255,255,255,.13); box-shadow: 0 0 0 26px rgba(255,255,255,.06), 0 0 0 58px rgba(255,255,255,.035); }
.cover.img .gen, .cover.img .rings { display: none; }
.mini.cover { padding: 0; }
.mini.cover .gen { display: none; }
.mini.cover .rings { border-width: 4px; box-shadow: 0 0 0 6px rgba(255,255,255,.06); }

/* playlist page */
.pl-hero { display: flex; gap: 32px; align-items: flex-end; padding: 18px 0 30px; position: relative; }
.pl-hero .cv { width: min(260px, 36vw); flex: none; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.85); }
.pl-hero .info { min-width: 0; }
.pl-hero .kicker { text-transform: uppercase; font-size: 12px; letter-spacing: .12em; color: var(--text-2); font-weight: 700; }
.pl-hero h1 { font-family: var(--display); font-size: clamp(38px, 6vw, 84px); line-height: .95; letter-spacing: -.045em; margin: 8px 0 12px; }
.pl-hero p { color: var(--text-2); max-width: 640px; margin: 0 0 10px; }
.pl-hero .meta { color: var(--muted); font-size: 14px; }
.pl-glow { position: absolute; inset: -200px -36px auto; height: 520px; z-index: -1; opacity: .5; filter: blur(30px); pointer-events: none; }
.actions { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.big-play { width: 62px; height: 62px; border-radius: 50%; border: 0; background: linear-gradient(180deg, var(--honey-2), var(--honey)); color: var(--honey-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(255,182,39,.7); transition: transform .12s; }
.big-play:hover { transform: scale(1.05); }
.big-play svg { width: 26px; height: 26px; }

.tracks { width: 100%; border-collapse: collapse; }
.tracks th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tracks td { padding: 9px 12px; }
.tracks tr.row { cursor: pointer; }
.tracks tr.row td:first-child { border-radius: 10px 0 0 10px; }
.tracks tr.row td:last-child { border-radius: 0 10px 10px 0; }
.tracks tr.row:hover td { background: rgba(255,255,255,.05); }
.tracks .n { width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.tracks .n .pi { display: none; }
.tracks tr.row:hover .n .num { display: none; }
.tracks tr.row:hover .n .pi { display: inline-block; }
.tracks .ti { font-weight: 600; }
.tracks .ar { color: var(--muted); font-size: 13.5px; }
.tracks .du { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; width: 80px; }
.tracks tr.cur .ti { color: var(--honey); }
.tracks .pi svg { width: 14px; height: 14px; margin: 0 auto; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--honey); border-radius: 1px; animation: eq .9s ease-in-out infinite; transform-origin: bottom; height: 100%; }
.eq i:nth-child(2) { animation-delay: -.3s; }
.eq i:nth-child(3) { animation-delay: -.6s; }
.eq.paused i { animation-play-state: paused; }
@keyframes eq { 0%,100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.tracks tr.cur .num { display: none; }
.tracks tr.cur:hover .eq { display: none; }

/* ---------- player bar ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); background: rgba(16,14,11,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(200px, 1fr) minmax(320px, 1.3fr) minmax(200px, 1fr); align-items: center; padding: 0 20px; gap: 20px; z-index: 20; }
.np { display: flex; align-items: center; gap: 14px; min-width: 0; }
.np .art { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface); box-shadow: 0 8px 20px -8px rgba(0,0,0,.7); }
.np .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np .t { min-width: 0; }
.np .t div { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np .t span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ctrl { display: grid; gap: 6px; justify-items: center; }
.ctrl .btns { display: flex; align-items: center; gap: 12px; }
.ctrl .pp { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); display: grid; place-items: center; cursor: pointer; transition: transform .1s; }
.ctrl .pp:hover { transform: scale(1.06); }
.ctrl .pp svg { width: 20px; height: 20px; }
.seek { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seek span { width: 40px; text-align: center; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--text) var(--p, 0%), rgba(255,255,255,.15) var(--p, 0%)); cursor: pointer; outline: none; }
.range:hover { background: linear-gradient(90deg, var(--honey) var(--p, 0%), rgba(255,255,255,.15) var(--p, 0%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
.range:hover::-webkit-slider-thumb { opacity: 1; }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.right .vol { width: 110px; }
.output-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--text-2); max-width: 220px; }
.output-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.output-btn:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.output-btn.sonos { background: rgba(255,182,39,.12); border-color: rgba(255,182,39,.4); color: var(--honey); }
.output-btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dialog { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; animation: pop .2s ease-out; box-shadow: 0 40px 100px -30px rgba(0,0,0,.9); max-height: 88vh; overflow: auto; }
.dialog h2 { font-family: var(--display); font-size: 26px; letter-spacing: -.02em; margin: 0 0 8px; }
.dialog p { color: var(--text-2); margin: 0 0 18px; }
.dialog .row { display: flex; gap: 10px; margin-top: 20px; }
.dialog .row .btn { flex: 1; }
.dialog .close { float: right; margin: -8px -8px 0 0; }
.spk-list { display: grid; gap: 8px; margin: 14px 0; }
.spk { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; cursor: pointer; transition: border-color .15s, background .15s; }
.spk:hover { background: #2d2820; }
.spk.on { border-color: var(--honey); background: rgba(255,182,39,.08); }
.spk .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); display: grid; place-items: center; flex: none; }
.spk.on .ic { background: var(--honey); color: var(--honey-ink); }
.spk .ic svg { width: 18px; height: 18px; }
.spk .nm { flex: 1; font-weight: 600; }
.spk .ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; }
.spk.on .ck { border-color: var(--honey); background: var(--honey); color: var(--honey-ink); }
.spk .ck svg { width: 12px; height: 12px; }
.hh-name { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 14px; }
.textlink { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; font-size: 13.5px; padding: 0; margin-top: 14px; }
.textlink:hover { color: var(--text); }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); border-left: 1px solid var(--line); z-index: 60; display: flex; flex-direction: column; animation: slide .22s ease-out; box-shadow: -30px 0 60px -20px rgba(0,0,0,.7); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer header { display: flex; align-items: center; padding: 20px 20px 12px; }
.drawer header h2 { font-family: var(--display); margin: 0; font-size: 24px; flex: 1; }
.drawer .list { overflow: auto; padding: 0 12px 20px; flex: 1; }
.msg { padding: 14px 12px; border-radius: 14px; display: flex; gap: 12px; cursor: default; }
.msg + .msg { border-top: 1px solid var(--line); border-radius: 0; }
.msg .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.msg .ic.music { background: var(--honey); color: var(--honey-ink); }
.msg .ic svg { width: 18px; height: 18px; }
.msg strong { display: block; }
.msg p { margin: 3px 0 4px; color: var(--text-2); font-size: 14px; white-space: pre-wrap; }
.msg time { color: var(--muted); font-size: 12px; }
.msg.unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--honey); margin-left: 8px; vertical-align: middle; }
.msg .go { margin-top: 8px; }
.notif-ask { margin: 0 20px 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13.5px; display: flex; gap: 10px; align-items: center; }
.notif-ask span { flex: 1; color: var(--text-2); }

.toasts { position: fixed; left: 50%; bottom: calc(var(--player-h) + 16px); transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; }
.toast { background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; animation: pop .2s; box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); max-width: 90vw; }
.toast.err { background: var(--danger); color: #fff; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--honey); animation: spin .8s linear infinite; margin: 80px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
	:root { --side-w: 0px; --player-h: 132px; }
	.side { display: none; }
	.shell { grid-template-columns: 1fr; }
	.mobile-brand { display: flex; }
	.topbar, .main-inner { padding-left: 16px; padding-right: 16px; }
	.player { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 8px 12px; height: auto; min-height: var(--player-h); }
	.ctrl { grid-column: 1 / -1; grid-row: 2; }
	.right .vol, .right .vol-ic { display: none; }
	.np .art { width: 48px; height: 48px; }
	.pl-hero { flex-direction: column; align-items: flex-start; gap: 20px; }
	.pl-hero .cv { width: 200px; }
	.tracks .hide-sm { display: none; }
	.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
	.output-btn span { display: none; }
}

.card .src { position: absolute; z-index: 3; top: 22px; right: 22px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(13,12,10,.62); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); display: inline-flex; align-items: center; gap: 6px; }
.card .src::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--honey); }
.card .src-ai::before { background: #9b8cff; }
.card .src-artist::before { background: #3ddc97; }

/* ---------- schedule + crossfade (1.3) ---------- */
.sched-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,182,39,.4); background: rgba(255,182,39,.12); color: var(--honey); font-weight: 600; font-size: 13px; cursor: pointer; max-width: 320px; }
.sched-chip[hidden] { display: none; }
.sched-chip svg { width: 16px; height: 16px; flex: none; }
.sched-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-chip b { background: var(--honey); color: var(--honey-ink); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.sched-chip.idle { border-color: var(--line); background: transparent; color: var(--muted); }
.side nav button svg { flex: none; }
.page-head { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin: 6px 0 26px; flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 18px; transition: opacity .2s; }
.panel.off { opacity: .55; }
.panel h3 { margin: 0 0 4px; font-size: 18px; }
.muted { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.muted.small { font-size: 13px; margin: 16px 0 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg button { border: 0; background: transparent; color: var(--text-2); height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button.on { background: linear-gradient(180deg, var(--honey-2), var(--honey)); color: var(--honey-ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.switch input { display: none; }
.switch i { width: 52px; height: 30px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text-2); transition: transform .2s, background .2s; }
.switch input:checked + i { background: var(--honey); border-color: var(--honey); }
.switch input:checked + i::after { transform: translateX(22px); background: var(--honey-ink); }
.slots { display: grid; gap: 10px; margin: 18px 0 14px; }
.slot { display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.days { display: flex; gap: 4px; }
.day { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.day.on { background: var(--honey); border-color: var(--honey); color: var(--honey-ink); }
.times { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.slot input[type=time], .slot select { height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); padding: 0 10px; font: inherit; color-scheme: dark; }
.slot select { width: 100%; min-width: 0; }
.row-btns { display: flex; gap: 8px; }
.opts { display: grid; gap: 10px; margin-top: 18px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--honey); }
.tl { margin-top: 16px; display: grid; gap: 6px; position: relative; }
.tl-row, .tl-axis { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; }
.tl-row b { font-size: 12px; color: var(--muted); }
.tl-bar { position: relative; height: 26px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 calc(100% / 24 - 1px), rgba(255,255,255,.07) calc(100% / 24 - 1px) calc(100% / 24)); overflow: hidden; }
.tl-bar i { font-style: normal; position: absolute; top: 2px; bottom: 2px; border-radius: 6px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); display: flex; align-items: center; padding: 0 8px; min-width: 4px; }
.tl-bar i span { font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row.today b { color: var(--honey); }
.tl-axis > div { position: relative; height: 16px; }
.tl-axis span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.tl-axis span:first-child { transform: none; }
.tl-axis span:last-child { transform: translateX(-100%); }
.tl::after { content: ""; position: absolute; top: 0; bottom: 18px; left: calc(50px + (100% - 50px) * var(--now) / 100); width: 2px; background: var(--honey); box-shadow: 0 0 10px var(--honey); border-radius: 2px; }
.save-bar { position: sticky; bottom: 16px; display: none; align-items: center; gap: 10px; padding: 12px 14px 12px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid rgba(255,182,39,.4); box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); }
.save-bar.show { display: flex; }
.save-bar span { flex: 1; color: var(--text-2); font-size: 14px; }
@media (max-width: 980px) {
	.slot { grid-template-columns: 1fr auto; }
	.slot .days { grid-column: 1 / -1; }
	.slot select { grid-column: 1 / -1; grid-row: 3; }
	.sched-chip { max-width: 190px; }
}

/* ---------- guest + licenses (1.4) ---------- */
.paywall-banner.guest { gap: 10px; flex-wrap: wrap; }
.tracks tr.locked { opacity: .45; }
.tracks tr.locked .n svg, .tracks tr.locked .pi svg { width: 14px; height: 14px; margin: 0 auto; }
.tracks tr.locked:hover .n .num { display: inline-block; }
.tracks tr.locked:hover .n .pi { display: none; }
.teaser { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255,182,39,.14); color: var(--honey); font-size: 11.5px; font-weight: 700; vertical-align: middle; }
.teaser svg { width: 11px; height: 11px; }
.locs { display: grid; gap: 12px; margin: 16px 0 4px; }
.grid-locs { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.loc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: grid; gap: 14px; }
.dialog .loc { background: var(--surface-2); }
.loc.playing { border-color: rgba(255,182,39,.35); background: radial-gradient(300px 140px at 0 0, rgba(255,182,39,.1), transparent 70%), var(--surface); }
.loc.mine { border-color: rgba(255,182,39,.6); }
.loc-head { display: flex; align-items: center; gap: 12px; }
.loc-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.06); display: grid; place-items: center; flex: none; }
.loc.playing .loc-ic { background: var(--honey); color: var(--honey-ink); }
.loc-ic svg { width: 18px; height: 18px; }
.loc-t { flex: 1; min-width: 0; display: grid; }
.loc-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.loc-t span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc em { font-style: normal; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.loc em.st { background: rgba(255,255,255,.06); color: var(--text-2); }
.loc.playing em.st { background: rgba(255,182,39,.14); color: var(--honey); }
.loc em.me { background: var(--honey); color: var(--honey-ink); }
.loc-now { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: rgba(0,0,0,.25); }
.loc-now .cover.mini { width: 44px; height: 44px; border-radius: 9px; flex: none; background-color: var(--surface-2); }
.loc-now > div:last-child { min-width: 0; display: grid; }
.loc-now b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-now span { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12.5px; min-height: 30px; }
.loc.free { border-style: dashed; place-items: center; text-align: center; color: var(--muted); min-height: 190px; align-content: center; gap: 6px; background: transparent; }
.loc.free svg { width: 26px; height: 26px; color: var(--honey); opacity: .7; }
.loc.free b { color: var(--text-2); }
.this-loc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.this-loc > div:first-child svg { width: 22px; height: 22px; color: var(--honey); }
.this-loc b { display: block; font-size: 17px; }
.dialog .field input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); padding: 0 16px; font-size: 15px; outline: none; }
.dialog .field input:focus { border-color: var(--honey); }
.dialog .row { flex-wrap: wrap; }

/* ---------- Afspiller (1.5) ---------- */
.sp-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
.sgroups { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.sgroup { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 10px; align-content: start; }
.sgroup.playing { border-color: rgba(255,182,39,.35); }
.sgroup.bm { border-color: var(--honey); background: radial-gradient(300px 140px at 0 0, rgba(255,182,39,.12), transparent 70%), var(--surface-2); }
.sg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.sg-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); flex: none; }
.sgroup.playing .sg-ic { background: var(--honey); color: var(--honey-ink); }
.sg-ic svg { width: 18px; height: 18px; }
.sg-t { flex: 1; min-width: 0; display: grid; }
.sg-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-t span { color: var(--muted); font-size: 12.5px; }
.tag { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-2); white-space: nowrap; }
.tag.bm { background: var(--honey); color: var(--honey-ink); }
.sgroup.playing .tag:not(.bm) { background: rgba(255,182,39,.14); color: var(--honey); }
.vol-row { display: grid; grid-template-columns: 34px minmax(70px, 120px) 1fr 30px; align-items: center; gap: 8px; }
.vol-row .icon-btn { width: 32px; height: 32px; }
.vol-row .icon-btn svg { width: 17px; height: 17px; }
.vol-row .mute.on { color: var(--danger); }
.vol-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vol-val { font-size: 13px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; }
.member { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.member .vol-row { flex: 1; }
.sync-box { margin-top: 18px; padding: 18px; border-radius: 18px; border: 1px dashed var(--line); }
.sync-box h4 { margin: 0 0 4px; font-size: 16px; }
.sync-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 16px; }
@media (max-width: 980px) {
	.sgroups { grid-template-columns: 1fr; }
	.vol-row { grid-template-columns: 30px 80px 1fr 28px; }
	.member { flex-wrap: wrap; }
	.member .vol-row { flex-basis: 100%; }
	.member .btn { margin-left: auto; height: 30px; }
	.sg-head { flex-wrap: wrap; }
	.sg-t { flex-basis: calc(100% - 52px); }
}

/* message popup */
.msg-pops { position: fixed; top: 18px; right: 18px; z-index: 90; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.msg-pop { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--honey); box-shadow: 0 24px 50px -16px rgba(0,0,0,.85); cursor: pointer; animation: popin .25s cubic-bezier(.2,.8,.2,1); transition: opacity .25s, transform .25s; }
.msg-pop.out { opacity: 0; transform: translateX(20px); }
.msg-pop .ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255,182,39,.14); color: var(--honey); }
.msg-pop .ic.music { background: rgba(155,140,255,.16); color: #b3a8ff; }
.msg-pop .ic svg { width: 19px; height: 19px; }
.msg-pop .tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.msg-pop .tx span { color: var(--text-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.msg-pop .icon-btn { width: 30px; height: 30px; flex: none; }
@keyframes popin { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 860px) { .msg-pops { top: 12px; right: 16px; } }

/* blocklist */
.np { position: relative; }
.np-ban { flex: none; width: 34px; height: 34px; color: var(--muted); }
.np-ban:hover { color: var(--danger); }
.np-ban svg { width: 18px; height: 18px; }
.tracks th.bl, .tracks td.bl { width: 56px; text-align: right; }
.tracks td.bl .icon-btn { width: 34px; height: 34px; opacity: 0; color: var(--muted); }
.tracks td.bl .icon-btn svg { width: 17px; height: 17px; }
.tracks tr.row:hover td.bl .icon-btn, .tracks tr.blocked td.bl .icon-btn { opacity: 1; }
.tracks td.bl [data-block]:hover { color: var(--danger); }
.tracks td.bl [data-unblock] { color: var(--honey); }
.tracks tr.blocked .ti, .tracks tr.blocked .ar, .tracks tr.blocked .du, .tracks tr.blocked .num { opacity: .45; }
.tracks tr.blocked .ti { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.tracks tr.blocked .num svg, .tracks tr.blocked .pi svg { width: 15px; height: 15px; }
.hid-pill { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,107,94,.14); color: var(--danger); text-decoration: none; vertical-align: 2px; }
.hidden-note { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.hidden-note svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.hidden-note a { color: var(--honey); margin-left: auto; white-space: nowrap; }
.hidden-actions { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.hidden-actions .btn svg, td.bl .btn svg { width: 15px; height: 15px; }
.toast.undo { display: flex; align-items: center; gap: 14px; }
.toast.undo button { border: 0; background: transparent; color: #b06f00; font-weight: 800; cursor: pointer; padding: 0; }
@media (hover: none) { .tracks td.bl .icon-btn { opacity: 1; } }
.np-ban[hidden] { display: none; }
