/* ==========================================================================
   Gbedu — app styles
   Mobile-first. Dark, warm, high-contrast. Accent/background come from
   Gbedu Settings (injected as --accent / --bg).
   ========================================================================== */

:root {
	--bg: #0C0B10;
	--accent: #FF5A1F;
	--accent-2: #FFC93C;
	--surface: #16141D;
	--surface-2: #201D29;
	--surface-3: #2A2635;
	--line: rgba(255, 255, 255, .08);
	--text: #F4F2F7;
	--muted: #A39FB0;
	--dim: #6F6A7D;
	--ok: #2FD49B;
	--warn: #FFC93C;
	--bad: #FF4D6A;
	--r: 14px;
	--r-sm: 10px;
	--r-lg: 22px;
	--tab-h: 62px;
	--mini-h: 64px;
	--safe-b: env(safe-area-inset-bottom, 0px);
	--safe-t: env(safe-area-inset-top, 0px);
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	overscroll-behavior-y: none;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
@media (hover: hover) { a:hover { color: #fff; } }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 15px; height: 15px; vertical-align: -2px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }

/* ---------- Shell ---------- */
.shell { min-height: 100vh; }
.side { display: none; }
.stage { min-width: 0; }

.topbar {
	position: sticky; top: 0; z-index: 30;
	display: flex; align-items: center; justify-content: space-between;
	padding: calc(10px + var(--safe-t)) 16px 10px;
	background: linear-gradient(var(--bg) 60%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.topbar__actions { display: flex; align-items: center; gap: 6px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; }
.brand--sm { font-size: 20px; }
.brand__mark { border-radius: 9px; }
.brand__logo { max-height: 40px; width: auto; }

.avatar-btn { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.view {
	padding: 4px 16px calc(var(--tab-h) + var(--mini-h) + var(--safe-b) + 28px);
	outline: none;
	animation: viewIn .28s var(--ease);
}
.view.is-loading { opacity: .55; transition: opacity .2s; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.net-banner { margin: 0 16px 8px; padding: 8px 12px; border-radius: var(--r-sm); background: #3a2a0a; color: var(--warn); font-size: 13px; display: flex; gap: 8px; align-items: center; }

/* Route progress bar */
.route-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 100; transition: width .3s var(--ease), opacity .3s; box-shadow: 0 0 10px var(--accent); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; border-radius: 999px;
	background: var(--accent); color: #140700; font-weight: 700;
	transition: transform .15s var(--ease), filter .15s;
	white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); color: #140700; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn--soft { background: var(--surface-2); color: var(--text); }
.btn--soft:hover { color: #fff; background: var(--surface-3); }
.btn--outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn--outline:hover { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.btn--outline.is-on { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn--danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1.5px rgba(255,77,106,.5); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); transition: color .15s, background .15s, transform .15s; flex: none; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--lg .ic { width: 24px; height: 24px; }
.icon-btn--xl { width: 52px; height: 52px; color: var(--text); }
.icon-btn--xl .ic { width: 30px; height: 30px; }
.icon-btn--ring { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); color: var(--text); width: 44px; height: 44px; }
.icon-btn.is-on { color: var(--accent); }
.is-liked .ic, .icon-btn.is-liked { color: var(--accent); }

.play-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); position: relative; flex: none; transition: transform .15s; }
.play-btn:active { transform: scale(.92); }
.play-btn .ic { width: 20px; height: 20px; }
.play-btn .i-pause { display: none; }
.is-playing .play-btn .i-play { display: none; }
.is-playing .play-btn .i-pause { display: block; }
.play-btn--xl { width: 72px; height: 72px; background: var(--accent); color: #140700; box-shadow: 0 10px 30px -8px var(--accent); }
.play-btn--xl .ic { width: 30px; height: 30px; }
.play-btn .spin { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent-2); animation: spin .8s linear infinite; display: none; }
.is-buffering .play-btn .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { color: var(--accent); font-weight: 600; padding: 6px 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.chip:hover { background: var(--surface-3); color: #fff; }
.chip.is-on { background: var(--text); color: var(--bg); }
.chip--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.chip--sm { height: 28px; padding: 0 11px; font-size: 12.5px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 16px 6px; margin: 0 -16px 14px; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips--inline { flex-wrap: wrap; margin: 10px 0 0; padding: 0; overflow: visible; }

.seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 2px; margin: 0 0 14px; max-width: 100%; overflow-x: auto; }
.seg a, .seg button { padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.seg [aria-current="true"], .seg .is-on { background: var(--surface-3); color: var(--text); }

.badge-e { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 3px; background: var(--muted); color: var(--bg); font-size: 10px; font-weight: 800; vertical-align: 1px; font-family: var(--font); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin: 0 0 10px; }
.status--pending { background: rgba(255,201,60,.14); color: var(--warn); }
.status--publish { background: rgba(47,212,155,.14); color: var(--ok); }
.status--draft, .status--trash { background: rgba(255,77,106,.14); color: var(--bad); }

/* ---------- Hero (home) ---------- */
.hero {
	position: relative; overflow: hidden;
	display: flex; align-items: center; gap: 20px;
	padding: 22px 20px; margin: 4px 0 18px;
	border-radius: var(--r-lg);
	background:
		radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 55%, transparent) 0%, transparent 55%),
		radial-gradient(90% 120% at 100% 100%, rgba(122, 31, 255, .45) 0%, transparent 60%),
		var(--surface);
}
.hero__text { position: relative; z-index: 1; min-width: 0; }
.hero__hi { margin: 0 0 6px; font-weight: 600; color: rgba(255,255,255,.85); }
.hero__title { font-size: clamp(26px, 7vw, 46px); font-weight: 800; max-width: 16ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__art { display: none; }

/* ---------- Sections & rails ---------- */
.sec { margin: 0 0 30px; }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec__head h2 { font-size: 21px; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sec__head--right { justify-content: flex-end; gap: 8px; }
.sec__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.sec__more { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.sec__more:hover { color: var(--text); }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 146px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; min-width: 0; }
.card__art { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); margin-bottom: 9px; box-shadow: 0 8px 24px -14px rgba(0,0,0,.8); }
.card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card__art img { transform: scale(1.04); }
.card__play { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #140700; box-shadow: 0 6px 18px -4px rgba(0,0,0,.6); transform: translateY(0); transition: transform .2s var(--ease), opacity .2s; }
.card__play .ic { width: 18px; height: 18px; margin-left: 2px; }
.card .badge-e { position: absolute; left: 8px; top: 8px; }
.card.is-current .card__play { background: var(--text); }
.card__title { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__sub a:hover { text-decoration: underline; }
.ft { color: var(--dim); }

/* ---------- Rows ---------- */
.list { display: flex; flex-direction: column; gap: 2px; }
.row {
	display: grid; align-items: center; gap: 12px;
	grid-template-columns: 52px minmax(0, 1fr) auto auto;
	padding: 6px; margin: 0 -6px; border-radius: var(--r-sm);
	transition: background .15s;
}
.row:hover { background: rgba(255,255,255,.04); }
.row__rank { display: none; }
.list--chart .row { grid-template-columns: 26px 52px minmax(0, 1fr) auto auto; }
.list--chart .row__rank { display: block; text-align: center; font-family: var(--display); font-weight: 800; color: var(--muted); font-size: 16px; }
.list--chart .row:nth-child(-n+3) .row__rank { color: var(--accent); }
.row__art { position: relative; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.row__art img { width: 100%; height: 100%; object-fit: cover; }
.row__eq { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 14px; background: rgba(0,0,0,.55); }
.row__eq i { width: 4px; background: var(--accent); border-radius: 2px; height: 8px; animation: eq .9s ease-in-out infinite; }
.row__eq i:nth-child(2) { animation-delay: .2s; }
.row__eq i:nth-child(3) { animation-delay: .4s; }
.is-current .row__eq { display: flex; }
.is-current:not(.is-playing-now) .row__eq i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 22px; } }
.is-current .row__title { color: var(--accent); }
.row__meta { min-width: 0; }
.row__title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__sub { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__stat, .row__dur { display: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.row [data-action="like"] { display: none; }
.row .offline-dot { color: var(--ok); }

/* ---------- Track page ---------- */
.track-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 10px 0 24px; }
.track-hero__bg { position: absolute; inset: -80px -16px 0; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4); opacity: .45; z-index: -1; mask-image: linear-gradient(#000 30%, transparent); -webkit-mask-image: linear-gradient(#000 30%, transparent); }
.track-hero__art { width: min(72vw, 300px); aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.track-hero__info { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.track-hero__title { font-size: clamp(26px, 7vw, 54px); font-weight: 800; margin-bottom: 12px; }
.track-hero__stats { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.track-hero__stats span { display: inline-flex; align-items: center; gap: 5px; }
.track-hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; }
.artist-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 600; }
.artist-pill img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.lyrics-block { background: var(--surface); border-radius: var(--r-lg); padding: 20px; margin: 0 0 30px; }
.lyrics-block h2 { font-size: 20px; margin-bottom: 12px; }
.lyrics-block__text { font-size: 17px; line-height: 1.7; font-weight: 500; }
.lyrics-block__text p { margin: 0 0 1em; }

/* ---------- Artist ---------- */
.artist-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 16px 0 26px; }
.artist-hero__bg { position: absolute; inset: -80px -16px 0; background-size: cover; background-position: center; filter: blur(50px); opacity: .4; z-index: -1; mask-image: linear-gradient(#000 20%, transparent); -webkit-mask-image: linear-gradient(#000 20%, transparent); }
.artist-hero__img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 20px 50px -15px rgba(0,0,0,.9); }
.artist-hero h1 { font-size: clamp(30px, 8vw, 60px); font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.artist-hero__actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.verified { color: #3CA9FF; display: inline-grid; }
.verified .ic { width: 26px; height: 26px; }
.about p { color: var(--muted); max-width: 70ch; }

.rail--artists { grid-auto-columns: 112px; }
.artist-card { text-align: center; scroll-snap-align: start; }
.artist-card img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; background: var(--surface-2); }
.artist-card span { font-weight: 600; font-size: 14px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Genres ---------- */
.genre-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 30px; }
.genre-tile { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 18px; transition: transform .2s var(--ease); }
.genre-tile:hover { transform: translateY(-2px); color: #fff; }
.genre-tile small { font-family: var(--font); font-weight: 500; font-size: 12px; opacity: .8; }
.genre-tile::after { content: ''; position: absolute; right: -18px; bottom: -18px; width: 80px; height: 80px; border-radius: 50%; border: 12px solid rgba(255,255,255,.18); }
.genre-tile--0 { background: linear-gradient(135deg, #FF5A1F, #B3140A); }
.genre-tile--1 { background: linear-gradient(135deg, #7A1FFF, #2B1055); }
.genre-tile--2 { background: linear-gradient(135deg, #1FD1A5, #0B6B5A); }
.genre-tile--3 { background: linear-gradient(135deg, #FFC93C, #C2650A); color: #1a1000; }
.genre-tile--4 { background: linear-gradient(135deg, #FF3D7F, #7A0F3A); }
.genre-tile--5 { background: linear-gradient(135deg, #3CA9FF, #123A8C); }
.genre-tile--6 { background: linear-gradient(135deg, #9BE15D, #2E7D32); color: #0e1a05; }
.genre-tile--7 { background: linear-gradient(135deg, #8E8AA0, #2D2A38); }

/* ---------- View head / search ---------- */
.view-head { margin: 8px 0 18px; }
.view-head h1 { font-size: clamp(28px, 7vw, 44px); font-weight: 800; }
.view-head p { color: var(--muted); margin: 6px 0 0; }

.searchbar { position: sticky; top: calc(58px + var(--safe-t)); z-index: 20; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--text); color: var(--bg); margin: 6px 0 22px; }
.searchbar .ic { color: #555; }
.searchbar input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: var(--bg); font-size: 16px; font-weight: 500; }
.searchbar input::placeholder { color: #777; }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar .icon-btn { color: #555; }
.recent-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.recent-item .ic { width: 18px; height: 18px; }

/* ---------- Empty / skeleton ---------- */
.empty { text-align: center; padding: 40px 20px; max-width: 420px; margin: 0 auto; }
.empty--page { padding-top: 15vh; }
.empty__ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); margin: 0 auto 16px; color: var(--accent); }
.empty__ic .ic { width: 32px; height: 32px; }
.empty h3 { font-size: 20px; margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

.skeleton { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; }
.skeleton span { height: 60px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton span:first-child { height: 34px; width: 50%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Forms ---------- */
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=url], .field select, .field textarea {
	width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r-sm);
	background: var(--surface-2); border: 1.5px solid transparent; outline: none; font-size: 16px;
	transition: border-color .15s;
}
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch b { display: block; font-weight: 600; }
.switch small { color: var(--muted); font-size: 13px; }
.switch input { appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--surface-2); cursor: pointer; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }

.form-error { color: var(--bad); font-size: 14px; margin: 0 0 12px; min-height: 1px; }
.card-box { background: var(--surface); border-radius: var(--r-lg); padding: 18px; margin: 0 0 16px; }
.card-box h2, .card-box h3 { font-size: 18px; margin-bottom: 12px; }

/* ---------- Upload flow ---------- */
.steps { display: flex; gap: 6px; margin: 0 0 20px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); transition: background .3s; }
.steps span.on { background: var(--accent); }
.step-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.step-sub { color: var(--muted); margin: 0 0 20px; }
.drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px;
	min-height: 220px; padding: 24px; border-radius: var(--r-lg);
	border: 2px dashed rgba(255,255,255,.18); background: var(--surface);
	cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.drop .ic { width: 42px; height: 42px; color: var(--accent); }
.drop b { font-size: 17px; }
.drop small { color: var(--muted); }
.file-pill { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); margin-top: 14px; }
.file-pill .ic { color: var(--accent); }
.file-pill div { min-width: 0; flex: 1; }
.file-pill b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-pill small { color: var(--muted); }
.file-pill audio { width: 100%; height: 34px; margin-top: 8px; }
.cover-pick { display: flex; gap: 16px; align-items: center; }
.cover-pick__img { width: 140px; height: 140px; border-radius: var(--r); object-fit: cover; background: var(--surface-2); flex: none; }
.step-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 24px; }
.step-nav .btn { flex: 1; }
.summary { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--surface); margin-bottom: 16px; }
.summary img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.summary b { display: block; font-size: 17px; }
.progress { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin: 12px 0 6px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s; }
.progress-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.success { text-align: center; padding: 30px 10px; }
.success__ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(47,212,155,.15); color: var(--ok); }
.success__ic .ic { width: 40px; height: 40px; }

/* ---------- Library ---------- */
.lib-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.lib-head h1 { font-size: 30px; font-weight: 800; }
.tile-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 8px; margin: 0 -8px; border-radius: var(--r-sm); text-align: left; width: calc(100% + 16px); }
.tile:hover { background: rgba(255,255,255,.04); }
.tile__ic { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-2); overflow: hidden; }
.tile__ic img { width: 100%; height: 100%; object-fit: cover; }
.tile__ic--liked { background: linear-gradient(135deg, var(--accent), #7A1FFF); color: #fff; }
.tile__ic--offline { background: linear-gradient(135deg, #1FD1A5, #0B6B5A); color: #fff; }
.tile__ic--recent { background: linear-gradient(135deg, #3CA9FF, #123A8C); color: #fff; }
.tile b { display: block; font-weight: 600; }
.tile small { color: var(--muted); }
.pl-head { display: flex; gap: 16px; align-items: flex-end; margin: 6px 0 20px; }
.pl-head__art { width: 120px; height: 120px; border-radius: var(--r); flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.pl-head__art img { width: 100%; height: 100%; object-fit: cover; }
.pl-head__art .ic { width: 44px; height: 44px; }
.pl-head__art.tile__ic--liked { background: linear-gradient(135deg, var(--accent), #7A1FFF); color: #fff; }
.pl-head__art.tile__ic--offline { background: linear-gradient(135deg, #1FD1A5, #0B6B5A); color: #fff; }
.pl-head__art.tile__ic--recent { background: linear-gradient(135deg, #3CA9FF, #123A8C); color: #fff; }
.pl-head h1 { font-size: clamp(24px, 6vw, 40px); font-weight: 800; }
.pl-actions { display: flex; gap: 10px; align-items: center; margin: 0 0 16px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; margin: 4px 0 8px; }
.storage-note { color: var(--muted); font-size: 13px; margin: -6px 0 14px; }

/* ---------- Account ---------- */
.profile-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); margin: 8px 0 16px; }
.profile-card__img { position: relative; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-2); }
.profile-card__img img { width: 100%; height: 100%; object-fit: cover; }
.profile-card__img label { position: absolute; inset: auto 0 0 0; height: 24px; display: grid; place-items: center; background: rgba(0,0,0,.6); cursor: pointer; }
.profile-card__img label .ic { width: 14px; height: 14px; }
.profile-card h2 { font-size: 22px; }
.menu-list { background: var(--surface); border-radius: var(--r-lg); padding: 4px 16px; margin: 0 0 16px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 600; text-align: left; }
.menu-list > :last-child { border-bottom: 0; }
.menu-list .ic { color: var(--muted); }
.menu-list .chev { margin-left: auto; color: var(--dim); }

/* ---------- Dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--surface); border-radius: var(--r); padding: 14px; }
.stat small { color: var(--muted); font-size: 12.5px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; margin-top: 4px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 10px; }
.bars span { flex: 1; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bars span:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; background: var(--text); color: var(--bg); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; white-space: nowrap; z-index: 2; }
.bars-axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 11px; margin-top: 6px; }
.sub-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sub-row:last-child { border-bottom: 0; }
.sub-row img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.sub-row b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-row small { color: var(--muted); }
.sub-row .status { margin: 4px 0 0; }

/* ---------- Mini player ---------- */
.mini {
	position: fixed; z-index: 40;
	left: 8px; right: 8px; bottom: calc(var(--tab-h) + var(--safe-b) + 6px);
	height: var(--mini-h);
	display: flex; align-items: center; gap: 8px;
	padding: 0 6px 0 8px;
	border-radius: var(--r);
	background: color-mix(in srgb, var(--surface-2) 88%, transparent);
	backdrop-filter: blur(20px) saturate(1.4);
	-webkit-backdrop-filter: blur(20px) saturate(1.4);
	box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
	animation: miniIn .35s var(--ease);
	overflow: hidden;
}
@keyframes miniIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.mini__progress { position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; }
.mini__progress span { display: block; height: 100%; width: 0; background: var(--text); border-radius: 2px; }
.mini__open { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-align: left; height: 100%; }
.mini__art { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-3); }
.mini__meta { min-width: 0; display: flex; flex-direction: column; }
.mini__title { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__artist { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__ctrl { display: flex; align-items: center; gap: 2px; }
.mini__ctrl .play-btn { width: 40px; height: 40px; }
.desk-only { display: none !important; }

/* ---------- Full player ---------- */
.player {
	position: fixed; inset: 0; z-index: 60;
	display: flex; flex-direction: column;
	padding: calc(10px + var(--safe-t)) 22px calc(18px + var(--safe-b));
	background: var(--bg);
	transform: translateY(100%);
	transition: transform .42s var(--ease);
	visibility: hidden;
	overflow: hidden;
}
.player.is-open { transform: none; visibility: visible; }
.player__bg { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(80px) saturate(1.6) brightness(.55); opacity: .9; z-index: -1; transition: background-image .6s; }
.player__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 0%, var(--bg) 85%); }
.player__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player__top .icon-btn { color: var(--text); }
.player__from { text-align: center; min-width: 0; }
.player__from small { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.player__ctx { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.player__body { flex: 1; min-height: 0; position: relative; margin: 18px 0; }
.player__panel { position: absolute; inset: 0; display: none; }
.player__panel.is-active { display: flex; }
.player__panel--art { align-items: center; justify-content: center; }
.player__art { width: min(100%, 52vh, 420px); aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); transition: transform .4s var(--ease); }
.player:not(.is-playing) .player__art { transform: scale(.94); }
.player__panel--lyrics, .player__panel--queue { overflow-y: auto; flex-direction: column; }
.lyrics { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.5; padding-bottom: 30px; }
.lyrics p { margin: 0 0 1em; }
.player__panel--queue h3 { font-size: 18px; margin-bottom: 10px; }
.queue-list .row { grid-template-columns: 44px minmax(0, 1fr) auto; }
.queue-list .row__art { width: 44px; height: 44px; }
.queue-list .row, .queue-list .row:hover { grid-template-columns: 44px minmax(0, 1fr) auto; }
.queue-list .row__stat, .queue-list .row__dur, .queue-list .row [data-action="like"] { display: none !important; }
.player__info { display: flex; align-items: center; gap: 12px; }
.player__meta { flex: 1; min-width: 0; }
.player__title { font-size: 24px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__artist { color: var(--muted); font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__like { color: var(--text); }
.player__seek { margin: 16px 0 8px; }
.player__times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.player__ctrl { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.player__ctrl [data-action="shuffle"], .player__ctrl [data-action="repeat"] { color: var(--muted); }
.player__ctrl .is-on { color: var(--accent); }
.player__ctrl .i-rep1 { display: none; }
.player__ctrl .rep-one .i-rep { display: none; }
.player__ctrl .rep-one .i-rep1 { display: block; }
.player__tools { display: flex; justify-content: space-around; gap: 4px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 2px; border-radius: 10px; min-width: 50px; white-space: nowrap; }
.tool:hover, .tool.is-on { color: var(--text); }
.tool.is-on .ic { color: var(--accent); }
.tool[disabled] { opacity: .35; }

/* Seek slider */
.seek, .vol { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --p: 0%; }
.seek::-webkit-slider-runnable-track, .vol::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--text) var(--p), rgba(255,255,255,.18) var(--p)); }
.seek::-moz-range-track, .vol::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); }
.seek::-moz-range-progress, .vol::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--text); }
.seek::-webkit-slider-thumb, .vol::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; margin-top: -5px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.seek::-moz-range-thumb, .vol::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }

/* ---------- Tab bar ---------- */
.tabbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
	height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
	display: grid; grid-template-columns: repeat(5, 1fr);
	background: linear-gradient(transparent, var(--bg) 35%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim); font-size: 10.5px; font-weight: 600; transition: color .15s; }
.tab .ic { width: 23px; height: 23px; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] .ic { color: var(--accent); }

/* ---------- Sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.sheet.is-open { visibility: visible; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
	position: absolute; left: 0; right: 0; bottom: 0;
	max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
	background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
	padding: 8px 18px calc(18px + var(--safe-b));
	transform: translateY(100%); transition: transform .35s var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { width: 40px; height: 5px; border-radius: 5px; background: var(--surface-3); margin: 4px auto 12px; }
.sheet h2 { font-size: 22px; margin: 4px 0 6px; }
.sheet .lead { color: var(--muted); margin: 0 0 18px; }
.sheet-track { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sheet-track img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.sheet-track b { display: block; }
.sheet-track small { color: var(--muted); }
.action-list { display: flex; flex-direction: column; }
.action-list button, .action-list a { display: flex; align-items: center; gap: 14px; padding: 13px 4px; font-weight: 600; text-align: left; border-radius: 8px; }
.action-list button:hover, .action-list a:hover { background: rgba(255,255,255,.04); }
.action-list .ic { color: var(--muted); }
.action-list .is-on .ic { color: var(--accent); }
.action-list .danger { color: var(--bad); }
.action-list .danger .ic { color: var(--bad); }
.auth-tabs { margin-bottom: 18px; width: 100%; }
.auth-tabs button { flex: 1; }
.install-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 18px; }
.install-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.install-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #140700; font-weight: 800; flex: none; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.share-grid a, .share-grid button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: var(--r); background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.share-grid .wa .ic { color: #25D366; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--mini-h) + var(--safe-b) + 18px); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 440px; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); animation: toastIn .3s var(--ease); }
.toast button { color: var(--accent); font-weight: 800; margin-left: 6px; filter: brightness(.85); }
.toast.is-error { background: var(--bad); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* Install banner */
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); margin: 0 0 18px; }
.install-banner img { width: 42px; height: 42px; border-radius: 10px; }
.install-banner div { flex: 1; min-width: 0; }
.install-banner b { display: block; }
.install-banner small { color: var(--muted); }

/* ---------- Artist Fund ---------- */
.fund-points { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
.fund-points li { display: flex; gap: 8px; align-items: flex-start; }
.fund-points .ic { color: var(--ok); margin-top: 3px; }
.fund-bal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 14px; }
.fund-bal div:first-child { grid-column: 1 / -1; }
.fund-bal div:first-child b { font-size: 30px; }
@media (min-width: 640px) { .fund-bal { grid-template-columns: 2fr 1fr 1fr; } .fund-bal div:first-child { grid-column: auto; } }
.fund-bal div { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; min-width: 0; }
.fund-bal small { color: var(--muted); font-size: 12px; font-weight: 600; display: block; }
.fund-bal b { font-family: var(--display); font-size: clamp(16px, 4.5vw, 24px); font-weight: 800; display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fund-bal div:first-child b { color: var(--ok); }
.fund-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.fund-meta p { margin: 0 0 8px; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fund-meta .ic { color: var(--muted); }
.card-box h4 { font-size: 15px; margin: 18px 0 4px; font-family: var(--display); }
.fund-terms { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; }
.fund-terms summary { cursor: pointer; font-weight: 600; }
.fund-terms div { white-space: pre-line; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 10px; max-height: 240px; overflow-y: auto; }

/* ---------- Ads ---------- */
.ad { margin: 6px 0 30px; text-align: center; min-height: 120px; overflow: hidden; }
.ad__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.ad ins.adsbygoogle { min-height: 100px; border-radius: var(--r); overflow: hidden; }
.ad--inlist { margin: 14px 0; min-height: 110px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.ad--preview .ad__ph { display: grid; place-items: center; min-height: 100px; padding: 14px; border: 2px dashed rgba(255,201,60,.45); border-radius: var(--r); color: var(--warn); font-size: 13px; font-weight: 600; background: rgba(255,201,60,.05); }
@media (min-width: 1024px) { .ad { min-height: 130px; } .ad--track, .ad--home, .ad--artist { max-width: 970px; margin-left: auto; margin-right: auto; } }

/* ---------- Footer / prose ---------- */
.view-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; text-align: center; }
.view-foot p { margin: 4px 0; }
.view-foot a:hover { color: var(--text); }
.view-foot__nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding: 0; margin: 0 0 10px; }
.credit a { color: var(--muted); font-weight: 600; }
.credit a:hover { color: var(--accent); }
.prose-wrap { max-width: 760px; margin: 0 auto; padding-top: 8px; }
.prose-wrap h1 { font-size: clamp(28px, 6vw, 42px); margin-bottom: 18px; }
.prose { color: #d9d6e0; font-size: 16.5px; line-height: 1.75; }
.prose a { color: var(--accent); text-decoration: underline; }
.post-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.pager .nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pager .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); font-weight: 600; }
.pager .page-numbers.current { background: var(--accent); color: #140700; }
.pager .screen-reader-text { display: none; }


/* ---------- 1.6: Lyrics ---------- */
.lyrics-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.lyrics-block__head h2 { margin: 0; }
.chip--accent { background: var(--accent); color: #140700; }
.chip--accent:hover { filter: brightness(1.08); }
.lyrics--synced { padding: 18vh 0 40vh; }
.lyrics--synced .ly { margin: 0 0 .55em; color: rgba(255,255,255,.38); cursor: pointer; transition: color .25s, transform .25s var(--ease), opacity .25s; transform-origin: left center; }
@media (hover: hover) { .lyrics--synced .ly:hover { color: rgba(255,255,255,.7); } }
.lyrics--synced .ly.is-past { color: rgba(255,255,255,.55); }
.lyrics--synced .ly.is-on { color: #fff; transform: scale(1.04); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.lyrics--synced .ly--gap { font-size: .8em; letter-spacing: .3em; }
.lyrics--synced .ly-note { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2em; }
@media (prefers-reduced-motion: reduce) { .lyrics--synced .ly { transition: none; } .lyrics--synced .ly.is-on { transform: none; } }

/* ---------- 1.6: Playlists ---------- */
.pl-art { display: grid; place-items: center; overflow: hidden; background: var(--surface-2); aspect-ratio: 1; width: 100%; height: 100%; }
.pl-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-art--mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; place-items: stretch; }
.pl-art--empty { background: linear-gradient(135deg, var(--surface-3, #2a2733), var(--surface-2)); color: var(--muted); }
.pl-art--empty .ic { width: 40%; height: 40%; }
.tile__ic.pl-art { width: 56px; height: 56px; }
.tile__ic.pl-art--empty .ic { width: 24px; height: 24px; }
.card--pl .card__art > .pl-art { position: absolute; inset: 0; }
.card--pl .card__art img { transition: transform .4s var(--ease); }

.pl-hero { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 10px 0 22px; }
.pl-hero__bg { position: absolute; inset: -80px -16px 0; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4); opacity: .45; z-index: -1; mask-image: linear-gradient(#000 30%, transparent); -webkit-mask-image: linear-gradient(#000 30%, transparent); }
.pl-hero__art { width: min(64vw, 260px); height: auto; border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.pl-hero__info { min-width: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.pl-hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.pl-hero__title { font-size: clamp(26px, 7vw, 54px); font-weight: 800; margin-bottom: 8px; overflow-wrap: anywhere; }
.pl-hero__desc { color: var(--muted); margin: 0 0 8px; max-width: 60ch; }
.pl-hero__meta { color: var(--muted); font-size: 13.5px; margin: 0; }
.pl-hero__meta b { color: var(--text); font-weight: 600; }
.pl-hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.pl-save { gap: 8px; }
.pl-save.is-on { color: var(--accent); }
.pl-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.pl-tools .chip.is-on { background: var(--accent); color: #140700; }
.notice-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border-radius: var(--r); padding: 10px 14px; margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.notice-bar span { flex: 1; min-width: 180px; }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin-bottom: 30px; }

/* Reorder mode */
.pl-list.is-reordering .row { grid-template-columns: 34px 44px minmax(0, 1fr) auto !important; }
.pl-list.is-reordering .row__art { width: 44px; height: 44px; }
.pl-list.is-reordering .row__stat, .pl-list.is-reordering .row__dur, .pl-list.is-reordering .row [data-action="like"] { display: none !important; }
.drag-h { width: 34px; height: 44px; display: grid; place-items: center; color: var(--muted); cursor: grab; touch-action: none; border-radius: 8px; }
.drag-h:focus-visible { outline: 2px solid var(--accent); }
.drag-h .ic { width: 20px; height: 20px; }
.row.is-dragging { background: var(--surface-2); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); position: relative; z-index: 2; }
.row.is-dragging .drag-h { cursor: grabbing; color: var(--accent); }


/* ---------- 1.7: Fresh Home, badges, sleep ---------- */
.badge-new { position: absolute; right: 8px; top: 8px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: #170700; font: 800 10px/1.5 var(--font); letter-spacing: .06em; box-shadow: 0 4px 12px -4px rgba(0,0,0,.6); }
.badge-new--sm { position: static; display: inline-block; padding: 0 6px; font-size: 9.5px; vertical-align: 2px; box-shadow: none; }
/* NEW only where it means something: the New releases row on Home and the New releases page. */
.badge-new { display: none; }
[data-section="new"] .badge-new, .view[data-view="songs"] .badge-new { display: block; }
[data-section="new"] .badge-new--sm, .view[data-view="songs"] .badge-new--sm { display: inline-block; }
.hero__feat { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(12,11,16,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: 360px; }
.hero__feat-art { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; }
.hero__feat-art img { width: 100%; height: 100%; object-fit: cover; }
.hero__feat-art .ic { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 2px 6px rgba(0,0,0,.7)); }
.hero__feat-meta { min-width: 0; display: flex; flex-direction: column; }
.hero__feat-meta small { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; color: var(--accent-2); }
.hero__feat-meta a { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__feat-meta span { font-size: 13px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-current.hero__feat .hero__feat-meta a { color: var(--accent); }
.hero__art button { display: block; width: 100%; border-radius: var(--r-lg); }
.sec--discover .sec__head h2::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 4px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
[data-discover-more][disabled] { opacity: .5; }
.row__lyric { font-size: 12.5px; color: var(--accent-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row__lyric .ic { width: 13px; height: 13px; vertical-align: -2px; }


/* ---------- 1.8: Audio ads ---------- */
.adbar { position: fixed; left: 12px; right: 12px; z-index: 70; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; background: #1D1A25; box-shadow: 0 14px 40px -12px rgba(0,0,0,.85), inset 0 0 0 1px rgba(255,255,255,.08); animation: miniIn .3s var(--ease); max-width: 640px; margin: 0 auto; }
.adbar[hidden] { display: none; }
.adbar img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-2); }
.adbar__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adbar__meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adbar__meta span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adbar__tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--accent-2); color: #1a1200; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
.adbar__cta { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: #170700; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; white-space: nowrap; }
.adbar__skip { height: 34px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--text); font-weight: 600; font-size: 13px; white-space: nowrap; }
.adbar__skip[disabled] { color: var(--muted); }
body.is-ad .seek { pointer-events: none; opacity: .5; }
body.is-ad [data-action="prev"], body.is-ad [data-action="like-current"], body.is-ad .player__tools [data-action="download-current"], body.is-ad .player__tools [data-action="offline-current"] { opacity: .35; pointer-events: none; }


/* ---------- 1.9: Countries ---------- */
.artist-country { color: inherit; text-decoration: none; }
.artist-country:hover { color: var(--text); }
.chips--countries { margin-bottom: 4px; }
.country-ask { background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); border-radius: var(--r); padding: 12px 14px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.country-ask > b { display: flex; align-items: center; gap: 6px; }
.country-ask > small { color: var(--muted); margin-top: -6px; }
.country-ask__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; }
.country-ask__row span { grid-column: 1 / -1; }
@media (min-width: 640px) { .country-ask__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; } .country-ask__row span { grid-column: auto; } }
.country-ask__row span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-ask__row select { height: 38px; padding: 0 8px; }
.js-country-ask { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: var(--r-sm); padding: 10px 12px; }
.js-country-ask > span { font-weight: 600; display: block; margin-bottom: 6px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (min-width: 640px) {
	.rail { grid-auto-columns: 170px; gap: 18px; }
	.row { grid-template-columns: 52px minmax(0, 1fr) auto auto auto auto; }
	.list--chart .row { grid-template-columns: 30px 52px minmax(0, 1fr) auto auto auto auto; }
	.row__dur { display: block; min-width: 38px; text-align: right; }
	.row [data-action="like"] { display: inline-grid; }
	.row__stat { display: none; }
	.genre-grid { grid-template-columns: repeat(3, 1fr); }
	.stats { grid-template-columns: repeat(5, 1fr); }
	.field-row { grid-template-columns: 1fr 1fr; }
	.hero { padding: 32px; }
	.hero__art { display: block; flex: none; margin-left: auto; width: 180px; transform: rotate(4deg); }
	.hero__art img { border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
	.track-hero { flex-direction: row; align-items: flex-end; text-align: left; gap: 28px; padding-top: 20px; }
	.track-hero__art { width: 260px; flex: none; }
	.track-hero__info { align-items: flex-start; }
	.track-hero__stats, .track-hero__actions { justify-content: flex-start; }
	.pl-hero { flex-direction: row; align-items: flex-end; text-align: left; gap: 28px; padding-top: 20px; }
	.pl-hero__art { width: 232px; flex: none; }
	.pl-hero__info { align-items: flex-start; }
	.pl-hero__actions { justify-content: flex-start; }
	.pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.artist-hero { flex-direction: row; align-items: flex-end; text-align: left; gap: 28px; }
	.artist-hero__img { width: 200px; height: 200px; }
	.artist-hero__actions { justify-content: flex-start; }
	.sheet__panel { left: 50%; right: auto; bottom: 50%; width: 460px; border-radius: var(--r-lg); transform: translate(-50%, 60%) scale(.96); opacity: 0; transition: transform .3s var(--ease), opacity .25s; padding-bottom: 22px; }
	.sheet.is-open .sheet__panel { transform: translate(-50%, 50%); opacity: 1; }
	.sheet__grip { display: none; }
}

/* ==========================================================================
   Desktop: sidebar + docked player bar
   ========================================================================== */
@media (min-width: 1024px) {
	:root { --mini-h: 84px; }
	.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
	.side {
		display: flex; flex-direction: column; gap: 24px;
		position: sticky; top: 0; height: 100vh;
		padding: 22px 16px calc(var(--mini-h) + 16px);
		border-right: 1px solid var(--line);
		background: color-mix(in srgb, var(--surface) 55%, var(--bg));
	}
	.side__nav { display: flex; flex-direction: column; gap: 2px; }
	.navlink { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
	.navlink:hover { color: var(--text); background: rgba(255,255,255,.04); }
	.navlink[aria-current="page"] { color: var(--text); background: var(--surface-2); }
	.navlink[aria-current="page"] .ic { color: var(--accent); }
	.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
	.side__foot .credit { font-size: 12px; color: var(--dim); text-align: center; margin: 0; }

	.tabbar { display: none; }
	.topbar { padding: 14px 32px; }
	.topbar .brand { display: none; }
	.topbar__actions { margin-left: auto; }
	.view { padding: 4px 32px calc(var(--mini-h) + 40px); max-width: 1320px; }
	.chips, .rail { margin: 0 -32px 14px; padding-left: 32px; padding-right: 32px; }
	.rail { margin-bottom: 0; grid-auto-columns: 184px; }
	.searchbar { top: 66px; max-width: 560px; }
	.genre-grid { grid-template-columns: repeat(4, 1fr); }
	.row__stat { display: inline-flex; align-items: center; gap: 4px; min-width: 64px; justify-content: flex-end; }
	.card__play { opacity: 0; transform: translateY(8px); }
	.card:hover .card__play, .card.is-current .card__play, .card__play:focus-visible { opacity: 1; transform: none; }
	.hero__art { width: 230px; }

	/* Docked player */
	.mini {
		left: 0; right: 0; bottom: 0; border-radius: 0; height: var(--mini-h);
		padding: 0 22px; gap: 20px;
		display: grid; grid-template-columns: minmax(200px, 1fr) minmax(320px, 2fr) minmax(200px, 1fr);
		border-top: 1px solid var(--line);
		background: color-mix(in srgb, var(--surface) 92%, transparent);
	}
	.mini[hidden] { display: none !important; }
	.mini__progress { display: none; }
	.mini__art { width: 56px; height: 56px; }
	.mini__ctrl { grid-column: 2; grid-row: 1; flex-direction: row; justify-content: center; align-self: start; padding-top: 8px; gap: 10px; }
	.mini__ctrl .mini__like { display: none; }
	.mini__time { grid-column: 2; grid-row: 1; align-self: end; padding-bottom: 6px; display: flex !important; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
	.mini__extra { grid-column: 3; display: flex !important; align-items: center; justify-content: flex-end; gap: 10px; }
	.mini__extra .vol { max-width: 120px; }
	.desk-only { display: inline-grid !important; }
	.mini .mini__time.desk-only, .mini .mini__extra.desk-only { display: flex !important; }
	.toasts { bottom: calc(var(--mini-h) + 20px); }

	.player { padding: 24px 48px; }
	.player__body { max-width: 900px; width: 100%; margin: 20px auto; }
	.player__info, .player__seek, .player__ctrl, .player__tools { max-width: 560px; width: 100%; margin-left: auto; margin-right: auto; }
}

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

/* Standalone (installed app) tweaks */
@media (display-mode: standalone) {
	.js-install { display: none !important; }
	body { user-select: none; -webkit-user-select: none; }
	input, textarea, .lyrics, .lyrics-block__text, .prose { user-select: text; -webkit-user-select: text; }
}

/* ---------- Artist credits (1.4) ---------- */
.artist-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.artist-pill .verified--sm .ic, .verified--sm .ic { width: 16px; height: 16px; }
.feat-line { margin: 10px 0 0; color: var(--muted); font-weight: 600; }
.feat-line a { color: var(--text); }
.feat-line a:hover { text-decoration: underline; }
.credits { background: var(--surface); border-radius: var(--r-lg); padding: 20px; margin: 0 0 30px; }
.credits h2 { font-size: 20px; margin-bottom: 12px; }
.credits dl { margin: 0; display: grid; gap: 0; }
.credits dl > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.credits dl > div:last-child { border-bottom: 0; }
.credits dt { color: var(--muted); font-size: 13.5px; }
.credits dd { margin: 0; font-weight: 600; }
.credits dd a:hover { text-decoration: underline; }
.play-count { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); font-weight: 700; }
.play-count b { font-family: var(--display); font-size: 18px; color: var(--text); }
.play-count span { color: var(--muted); font-size: 13px; font-weight: 600; }
.artist-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.artist-pick { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14px; }
.artist-pick img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.artist-pick button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.artist-pick button:hover { background: var(--surface-3); color: var(--text); }
.artist-pick button .ic { width: 14px; height: 14px; }
.artist-suggest { position: relative; }
.artist-suggest__list { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 4px; background: var(--surface-3); border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 12px 30px -10px rgba(0,0,0,.8); }
.artist-suggest__list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; font-weight: 600; }
.artist-suggest__list button:hover, .artist-suggest__list button.is-active { background: rgba(255,255,255,.08); }
.artist-suggest__list img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.artist-suggest__list small { color: var(--muted); font-weight: 500; margin-left: auto; }
.my-artist { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.my-artist:last-child { border-bottom: 0; }
.my-artist img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.my-artist div { flex: 1; min-width: 0; }
.my-artist b { display: block; }
.my-artist small { color: var(--muted); }
@media (min-width: 640px) { .artist-pills { justify-content: flex-start; } }

.row__plays-m { color: var(--dim); }
@media (min-width: 1024px) { .row__plays-m { display: none; } }

/* ---------- Community (1.5) ---------- */
.fans__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fan { display: grid; grid-template-columns: 28px 40px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-sm); }
.fan img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fan__rank { font-family: var(--display); font-weight: 800; text-align: center; color: var(--muted); }
.fan:nth-child(1) .fan__rank { color: #FFC93C; } .fan:nth-child(2) .fan__rank { color: #C9D1DC; } .fan:nth-child(3) .fan__rank { color: #E0915A; }
.fan__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan__plays { color: var(--muted); font-size: 13px; }
.fan--me { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.fans__note { font-size: 12.5px; margin: 8px 0 0; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; border-radius: var(--r); background: var(--surface-2); }
.badge-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--accent); }
.badge-card b { font-size: 14px; }
.badge-card small { color: var(--muted); font-size: 12px; }
.badge-card .medal { font-size: 20px; line-height: 1; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 4px 12px 4px 10px; border-radius: 999px; background: rgba(0,0,0,.35); font-weight: 700; font-size: 13px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2FD49B; box-shadow: 0 0 0 0 rgba(47,212,155,.7); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(47,212,155,0); } 100% { box-shadow: 0 0 0 0 rgba(47,212,155,0); } }
@media (min-width: 1024px) { .pl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
