:root {
  /* The light theme (the default). */
  --bg: #ffffff; --surface: #f4f4f6; --surface2: #ebebef; --line: #00000014;
  --text: #121214; --muted: #6b6b76; --accent: #ee80e5; --accent-ink: #b02a9a; --accent2: #a35cf0; --danger: #e0394b; --ok: #13a37d;
  --plum: #f6e4f2; --plum2: #f0d6ea; --glow: 0 4px 12px #0000001f;
  --np: #3b2a6b; --safe-b: env(safe-area-inset-bottom, 0px); --tab-h: 62px; --mini-h: 64px;
  /* Text on the page's own tinted areas, and translucent tints of the text colour. */
  --ink: var(--text); --ink-2: #121214b3; --ink-3: #12121459;
  --tint-0: #00000008; --tint-1: #0000000d; --tint-2: #00000017; --tint-3: #00000024; --line-2: #00000026; --line-3: #00000040;
  --shade: #ffffff; --sheet: #ffffff; --tabbar: #ffffff; --switch-off: #d4d4dc; --sk1: #ececf0; --sk2: #f6f6f8;
  --search-bg: #ebebef; --search-fg: #121214; --toast-bg: #1f1f24; --toast-fg: #ffffff; --toast-act: #ee80e5;
  --hero-default: #f4dcf0; --on-accent: #1a0f19; --chip-tag: #ebebef;
  /* Behind a cover (and the mark of a song without one): set off from the tiles and rows. */
  --ph-bg: #d9d9e1;
  /* Shadows: light on a white page (a dark-theme shadow there is a grey smudge). */
  --sh-md: 0 4px 14px #0000001a; --sh-lg: 0 10px 28px #00000024; --sh-float: 0 6px 20px #00000033;
  /* "Моя волна": black in the light theme, white in the dark one. */
  --wave-bg: #000000; --wave-fade: 0, 0, 0; --wave-kicker: #ee80e5; --wave-name: #ffffff; --wave-desc: #ffffffbf;
  color-scheme: light;
}
/* The dark theme (chosen in the profile). */
:root[data-theme="dark"] {
  --bg: #121212; --surface: #1c1c1f; --surface2: #2a2a2e; --line: #ffffff12;
  --text: #f6f6f8; --muted: #9d9da6; --accent: #ee80e5; --accent-ink: #ee80e5; --accent2: #b06cff; --danger: #ff5c6c; --ok: #2ad3a7;
  --plum: #3a2638; --plum2: #4a2f47; --glow: 0 6px 16px #00000066;
  --ink: #ffffff; --ink-2: #ffffffb3; --ink-3: #ffffff59;
  --tint-0: #ffffff0a; --tint-1: #ffffff12; --tint-2: #ffffff1c; --tint-3: #ffffff26; --line-2: #ffffff33; --line-3: #ffffff40;
  --shade: #000000; --sheet: #1c1c1f; --tabbar: #121212; --switch-off: #3a3a46; --sk1: #1c1c24; --sk2: #26262f;
  --search-bg: #ffffff; --search-fg: #111111; --toast-bg: #f4f4f7; --toast-fg: #111111; --toast-act: #ee80e5;
  --hero-default: #3b2a6b; --chip-tag: #000000; --ph-bg: #3b3b44;
  --sh-md: 0 8px 22px #00000070; --sh-lg: 0 22px 50px #000000cc; --sh-float: 0 10px 30px #000000aa;
  --wave-bg: #ffffff; --wave-fade: 255, 255, 255; --wave-kicker: #b02a9a; --wave-name: #1d0a1a; --wave-desc: #5b3a55;
}
:root[data-theme="dark"] { color-scheme: dark; }
.np, .mini, .lyrics-sheet { color: var(--text); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
body { overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: 0; }
.muted { color: var(--muted); } .small { font-size: 12px; } .center { text-align: center; } .left { text-align: left; }
.danger { color: var(--danger); } .grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; gap: 8px; } .row.gap, .gap { gap: 10px; } .wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 10px; } .pad { padding: 16px; } .pad-x { padding: 0 16px; } .ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .wrap-any { word-break: break-all; }
.ic { display: inline-flex; line-height: 0; } .ic.flip svg { transform: rotate(180deg); }
.ibtn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); flex: none; transition: transform .1s, color .15s; }
.ibtn:active { transform: scale(.88); } .ibtn.on, .ibtn.accent { color: var(--accent-ink); }
.link-btn { color: var(--muted); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.link-like { color: var(--accent-ink); font-weight: 600; font-size: 13px; cursor: pointer; }
.kicker { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; } .kicker.light { color: var(--ink-2); }

/* login */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; gap: 8px; text-align: center; }
.login-icon { width: 76px; height: 76px; } .login form { width: 100%; max-width: 360px; margin-top: 12px; }

/* buttons & fields */
.pill { border-radius: 999px; padding: 11px 18px; font-weight: 600; background: var(--surface2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.pill.primary { background: var(--text); color: var(--bg); } .pill.ghost { background: transparent; border: 1px solid var(--line-2); }
.pill.outline { background: transparent; border: 1px solid var(--line-3); } .pill.outline.on { border-color: var(--accent); color: var(--accent-ink); }
.pill.danger { background: #ff5c6c22; color: var(--danger); } .pill.sm { padding: 8px 14px; font-size: 13px; } .pill:active { transform: scale(.97); }
.field { width: 100%; background: var(--surface2); border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; outline: none; }
.field:focus { border-color: var(--line-3); } .mono { font-family: ui-monospace, monospace; font-size: 12px; }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--switch-off); position: relative; flex: none; transition: background .2s; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--accent); } .switch:checked::after { transform: translateX(18px); }

/* layout */
.view { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); min-height: 100vh; }
body.has-mini .view { padding-bottom: calc(var(--tab-h) + var(--mini-h) + var(--safe-b) + 32px); }
.page { animation: fadein .18s ease-out; } @keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 52px; display: flex; align-items: center; gap: 4px; padding: 0 6px; pointer-events: none; opacity: 0; transition: opacity .2s, background .2s; }
.topbar.visible { opacity: 1; pointer-events: auto; }
.topbar.solid { background: color-mix(in srgb, var(--bar-color, #121218) 85%, var(--shade)); backdrop-filter: blur(14px); }
.topbar-back { color: var(--text); display: none; } .topbar.deep .topbar-back { display: inline-flex; }
.topbar-title { font-weight: 600; opacity: 0; transition: opacity .2s; } .topbar.solid .topbar-title { opacity: 1; }
.page-h1 { font-size: 26px; padding: 18px 16px 12px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--tabbar); }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar button.active { color: var(--text); }

/* home */
.home-head { display: flex; align-items: center; padding: 18px 12px 10px 16px; } .home-head h1 { flex: 1; font-size: 26px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; margin-left: 4px; }
.avatar.xl { width: 108px; height: 108px; font-size: 44px; margin: 0 auto 12px; } .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 16px 6px; }
.qtile { display: flex; align-items: center; gap: 10px; height: 56px; background: var(--tint-1); border-radius: 6px; overflow: hidden; text-align: left; font-weight: 600; font-size: 13px; }
.qtile:active { background: var(--tint-2); } .qtile-art { width: 56px; height: 56px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--on-accent); border-radius: 0; }
.qtile-title { font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-right: 8px; }
.wave-hero { position: relative; overflow: hidden; margin: 18px 16px 6px; height: 148px; border-radius: 16px; background: #2a1630; display: flex; align-items: flex-end; padding: 18px; cursor: pointer; }
.wave-copy { position: relative; flex: 1; } .wave-name { font-size: 26px; font-weight: 600; letter-spacing: -.01em; } .wave-desc { font-size: 13px; color: var(--ink-2); max-width: 196px; }
.wave-btn { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #1a0f19; box-shadow: var(--glow); display: flex; align-items: center; justify-content: center; }

/* shelves & cards */
.shelf { margin-top: 22px; } .shelf-head { display: flex; align-items: flex-end; padding: 0 16px 10px; } .shelf-head h2 { font-size: 22px; }
.shelf-row { display: flex; gap: 14px; overflow-x: auto; padding: 0 16px 4px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; scrollbar-width: none; } .shelf-row::-webkit-scrollbar { display: none; }
.card { flex: none; width: 140px; scroll-snap-align: start; cursor: pointer; } .card:active { opacity: .75; }
.card-cover { position: relative; } .card-art { width: 140px; height: 140px; border-radius: 6px; display: block; box-shadow: var(--sh-md); }
.card-round .card-art, .round { border-radius: 50% !important; } .card-round { text-align: center; }
.card-title { font-weight: 600; font-size: 13px; margin-top: 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-play { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px #0008; }
.card-grad { width: 140px; height: 140px; border-radius: 6px; display: flex; align-items: flex-end; padding: 10px; position: relative; overflow: hidden; }
.sec-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 16px 8px; } .sec-head h2 { font-size: 19px; }
.art { object-fit: cover; background: var(--ph-bg); display: block; }
.collage { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; } .collage img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* track rows */
.tlist { padding: 0 4px 0 16px; }
.trow { display: flex; align-items: center; gap: 12px; padding: 7px 0; min-height: 62px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.trow:active { opacity: .6; } .trow.off { opacity: .38; }
.trow-art { width: 48px; height: 48px; border-radius: 4px; flex: none; }
.trow-num { width: 24px; text-align: center; color: var(--muted); font-weight: 600; flex: none; }
.trow-meta { flex: 1; min-width: 0; }
.trow-title { font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.trow.playing .trow-title { color: var(--accent-ink); }
.trow-sub { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; } .trow-sub > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.badge-like { color: var(--accent-ink); } .badge-saved { color: var(--ok); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; flex: none; } .eq i { width: 3px; background: var(--accent); animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } @keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }
/* Paused: the bars stop where they are. */
body.audio-paused .eq i { animation-play-state: paused; }
.sentinel { height: 1px; }

/* collection hero */
.hero { --hero: var(--hero-default); background: linear-gradient(to bottom, color-mix(in srgb, var(--hero) 90%, #fff 0%) 0%, var(--bg) 100%); padding: 60px 16px 8px; }
.hero-art { width: 232px; height: 232px; margin: 0 auto; border-radius: 4px; box-shadow: var(--sh-lg); }
.grad-art { display: flex; align-items: center; justify-content: center; color: var(--on-accent); font-size: 64px; } .grad-art b { font-size: 90px; } .grad-emoji { font-size: 84px; }
.hero-text { margin-top: 18px; } .hero-title { font-size: 26px; font-weight: 600; } .hero-sub { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.hero-actions { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.big-play { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 8px 20px #0007; }
.big-play:active { transform: scale(.94); }

/* artist */
.artist-hero { position: relative; height: 300px; display: flex; align-items: flex-end; padding: 16px; overflow: hidden; background: var(--surface2); }
.artist-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.artist-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 30%, var(--bg)); }
.artist-name { position: relative; font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }

/* search */
.search-bar { position: sticky; top: 8px; z-index: 5; margin: 0 16px 6px; display: flex; align-items: center; gap: 8px; background: var(--search-bg); color: var(--search-fg); border-radius: 8px; padding: 0 6px 0 12px; height: 46px; }
.search-input { flex: 1; border: 0; outline: none; background: transparent; color: var(--search-fg); font-weight: 600; font-size: 15px; } .search-clear { color: var(--muted); }
.search-input::-webkit-search-cancel-button { display: none; }
.mood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.mood { position: relative; height: 96px; border-radius: 8px; overflow: hidden; padding: 12px; text-align: left; } .mood:active { transform: scale(.98); }
.mood-title { font-weight: 600; font-size: 17px; } .mood-emoji { position: absolute; right: -6px; bottom: -10px; font-size: 58px; transform: rotate(18deg); filter: drop-shadow(0 6px 10px #0006); }
.rq-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 16px; color: var(--muted); cursor: pointer; } .rq-row span.grow { color: var(--text); }
.top-hit { position: relative; margin: 0 16px; padding: 18px; border-radius: 10px; background: var(--surface); cursor: pointer; }
.top-art { width: 96px; height: 96px; border-radius: 4px; box-shadow: var(--sh-md); } .top-title { font-size: 26px; font-weight: 600; margin-top: 14px; }
.top-sub { display: flex; gap: 8px; align-items: center; margin-top: 6px; color: var(--muted); } .chip-tag { background: var(--chip-tag); color: var(--text); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.top-play { position: absolute; right: 16px; bottom: 16px; }

/* library */
.lib-head { display: flex; align-items: center; gap: 8px; padding: 14px 8px 8px 12px; } .lib-head h1 { font-size: 22px; }
.chips { display: flex; gap: 8px; padding: 6px 16px 10px; overflow-x: auto; scrollbar-width: none; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--surface2); font-size: 13px; font-weight: 600; white-space: nowrap; } .chip.on { background: var(--accent); color: #fff; }
.lib-tools { display: flex; align-items: center; padding: 0 8px 0 16px; }
.lib-list { padding: 0 16px; } .lib-item { display: flex; align-items: center; gap: 12px; padding: 7px 0; cursor: pointer; } .lib-item:active { opacity: .6; }
.lib-art { width: 64px; height: 64px; border-radius: 4px; flex: none; } .lib-art.grad-art { font-size: 22px; }
.lib-meta { min-width: 0; } .lib-title { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lib-sub { font-size: 13px; color: var(--muted); display: flex; gap: 4px; align-items: center; } .pin { color: var(--ok); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; padding: 0 16px; }
.lib-grid .lib-item { flex-direction: column; align-items: stretch; gap: 6px; } .lib-grid .lib-art { width: 100%; height: auto; aspect-ratio: 1; }

/* mini player */
.mini { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tab-h) + var(--safe-b) + 4px); z-index: 39; height: var(--mini-h); border-radius: 8px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 8px; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--mini, #2a2340) 75%, #000); box-shadow: 0 8px 24px #000a; transition: background .5s; }
.mini-art { width: 44px; height: 44px; border-radius: 4px; flex: none; } .mini-meta { flex: 1; min-width: 0; }
.mini-title { font-weight: 600; font-size: 15px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-sub { font-size: 12px; color: var(--ink-2); display: flex; gap: 4px; align-items: center; overflow: hidden; white-space: nowrap; }
.mini .ibtn { color: var(--text); } .mini-like.on { color: var(--accent-ink); }
.mini-progress { position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--tint-3); border-radius: 2px; } .mini-progress div { height: 100%; width: 0; background: var(--ink); border-radius: 2px; }
.mini.buffering .mini-progress div { width: 100% !important; background: linear-gradient(90deg, transparent, var(--ink), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: buf 1s linear infinite; }
@keyframes buf { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* now playing */
.np { position: fixed; inset: 0; z-index: 60; background: var(--bg); transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.np.open { transform: none; }
.np-bg { position: absolute; inset: 0; height: 120vh; background: linear-gradient(to bottom, var(--np) 0%, color-mix(in srgb, var(--np) 50%, #000) 55%, var(--bg) 100%); transition: background .6s; }
.np-inner { position: relative; padding: 6px 20px calc(30px + var(--safe-b)); max-width: 520px; margin: 0 auto; transition: transform .2s; }
.np-top { display: flex; align-items: center; height: 52px; } .np-top .ibtn { color: var(--text); }
.np-ctx { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.np-ctx-k { font-size: 11px; letter-spacing: 0; color: var(--ink-2); } .np-ctx-t { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.np-art-wrap { position: relative; margin: 26px 0 28px; } .np-art { width: 100%; aspect-ratio: 1; border-radius: 8px; box-shadow: 0 24px 60px #000b; transition: transform .25s; }
.np-art.slide-l { animation: slidel .25s; } .np-art.slide-r { animation: slider .25s; }
@keyframes slidel { from { transform: translateX(-30%); opacity: .3; } } @keyframes slider { from { transform: translateX(30%); opacity: .3; } }
.np-burst { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; opacity: 0; transform: scale(.4); pointer-events: none; }
.np-art-wrap.burst .np-burst { animation: burst .7s ease-out; } @keyframes burst { 30% { opacity: .95; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.3); } }
.np-meta { display: flex; align-items: center; gap: 8px; } .np-names { min-width: 0; }
.np-title { font-size: 22px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .np-artist { color: var(--ink-2); font-size: 15px; text-align: left; }
.np-like { color: var(--text); } .np-like.on { color: var(--accent-ink); }
.np-seekbox { margin-top: 14px; }
.np-seek { --p: 0%; width: 100%; appearance: none; height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--p), #ffffff40 var(--p)); outline: none; margin: 10px 0 6px; }
.np-seek::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.np-times { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-2); }
.np-controls { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; } .np-controls .ibtn { color: var(--text); }
.np-side.on { color: var(--accent-ink) !important; } .np-side.one::after { content: "1"; font-size: 11px; font-weight: 600; position: absolute; margin: 0 0 14px 14px; }
.np-skip { width: 56px; height: 56px; } .np-play { width: 68px; height: 68px; border-radius: 50%; background: #fff; color: #000; display: flex; align-items: center; justify-content: center; } .np-play:active { transform: scale(.94); }
.np-tools { display: flex; align-items: center; margin-top: 4px; } .np-tools .ibtn { color: var(--ink-2); } .np-tools .ibtn.on { color: var(--accent-ink); }
.np-lyrics-card { margin-top: 22px; padding: 16px; border-radius: 10px; background: color-mix(in srgb, var(--np) 70%, #000); cursor: pointer; }
.np-lyrics-preview { margin: 8px 0; font-size: 19px; font-weight: 600; line-height: 1.35; } .np-next-card { margin-top: 18px; } .np-next-card .tlist, .np-next-card .trow { padding-left: 0; }

/* lyrics sheet */
.lyrics-sheet { background: color-mix(in srgb, var(--np) 80%, #000) !important; }
:root:not([data-theme="dark"]) .lyrics-sheet { background: color-mix(in srgb, var(--np) 16%, #fff) !important; }
.lyr-head { display: flex; gap: 12px; align-items: center; padding: 4px 4px 12px; } .lyr-art { width: 44px; height: 44px; border-radius: 4px; }
.lyr-body { padding: 10px 4px 40vh; } .lyr-big { font-size: 22px; font-weight: 600; line-height: 1.3; margin: 0 0 14px; color: var(--ink-3); cursor: pointer; transition: color .25s; }
.lyr-big.past { color: var(--ink-2); } .lyr-big.now { color: var(--ink); } .lyr-big.static { color: var(--ink); cursor: default; }

/* sheets & menus */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; background: #000a; display: flex; align-items: flex-end; animation: fadein .15s; }
.sheet-wrap.closing { opacity: 0; transition: opacity .18s; }
.sheet { width: 100%; max-height: 82vh; overflow-y: auto; background: var(--sheet); border-radius: 14px 14px 0 0; padding: 8px 16px calc(16px + var(--safe-b)); outline: none; animation: up .22s cubic-bezier(.2,.8,.2,1); transition: transform .15s; }
.sheet.tall { max-height: 92vh; min-height: 60vh; } @keyframes up { from { transform: translateY(100%); } }
.sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line-3); margin: 2px auto 12px; }
.sheet-title { font-weight: 600; font-size: 17px; text-align: center; margin-bottom: 14px; }
.sheet-act { display: flex; align-items: center; gap: 16px; width: 100%; padding: 13px 4px; font-size: 15px; text-align: left; color: var(--text); } .sheet-act .ic { color: var(--muted); }
.sheet-act.active .ic { color: var(--accent-ink); } .sheet-act.danger, .sheet-act.danger .ic { color: var(--danger); } .sheet-act:active { opacity: .6; }
.menu-head { display: flex; align-items: center; gap: 12px; padding: 0 4px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu-art { width: 52px; height: 52px; border-radius: 4px; } .menu-title { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.new-pl { display: flex; margin: 0 auto 14px; } .pl-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0; } .pl-pick-art { width: 52px; height: 52px; border-radius: 4px; }

/* profile, settings, stats, downloads */
.profile-head { text-align: center; padding: 70px 16px 10px; background: linear-gradient(to bottom, var(--hero-default), var(--bg)); } .profile-head h1 { font-size: 26px; }
.stat-teaser { margin: 16px; padding: 18px; border-radius: 12px; background: linear-gradient(135deg, #2b1f55, #4a1d3f); cursor: pointer; }
.stat-big { font-size: 36px; font-weight: 600; margin: 6px 0 2px; } .stat-big span { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.menu-list { margin: 8px 16px; background: var(--surface); border-radius: 12px; overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 14px; border-bottom: 1px solid var(--line); } .menu-row:last-child { border: 0; } .menu-row .ic { color: var(--muted); }
.count-badge { background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.panel { margin: 12px 16px; padding: 16px; border-radius: 12px; background: var(--surface); } .panel > * + * { margin-top: 12px; } .panel h3 { font-size: 17px; }
.toggle-row { display: flex; align-items: center; gap: 12px; } .kv { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.bar { height: 5px; border-radius: 3px; background: var(--tint-2); overflow: hidden; } .bar div { height: 100%; background: var(--accent); transition: width .4s; } .bar.thin { height: 3px; margin-top: 6px; }
.q-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; margin: 0 6px; }
.q-downloading .q-dot { background: var(--accent); } .q-error .q-dot { background: var(--danger); } .q-paused .q-dot { background: #e0b341; } .q-done .q-dot, .q-skipped .q-dot { background: var(--ok); }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px 16px; }
.stat-card { background: var(--surface); border-radius: 12px; padding: 14px 10px; text-align: center; } .stat-num { font-size: 22px; font-weight: 600; }
.hours { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 0 16px 20px; }
.hour { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; } .hour-bar { background: linear-gradient(to top, var(--accent), var(--accent2)); border-radius: 3px 3px 0 0; }
.hour span { position: absolute; bottom: -18px; font-size: 11px; color: var(--muted); }
.pl-recs { margin-top: 10px; }

/* states */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 48px 28px; } .empty-ic { color: var(--muted); } .empty-title { font-size: 19px; font-weight: 600; }
.sk { background: linear-gradient(90deg, var(--sk1) 0%, var(--sk2) 50%, var(--sk1) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 4px; }
.sk-line { height: 12px; margin: 6px 0; width: 70%; } .sk-line.short { width: 40%; } @keyframes sk { to { background-position: -200% 0; } }

/* toast */
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--mini-h) + var(--safe-b) + 18px); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 10px; background: var(--toast-bg); color: var(--toast-fg); font-weight: 600; font-size: 15px;
  box-shadow: var(--sh-float); transform: translateY(20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { transform: none; opacity: 1; pointer-events: auto; } .toast-msg { flex: 1; } .toast-act { color: var(--toast-act); font-weight: 600; }

@media (min-width: 760px) {
  .view, .topbar { max-width: 820px; margin: 0 auto; } .mini { max-width: 804px; margin: 0 auto; }
  .card, .card-art, .card-grad { width: 168px; } .card-art, .card-grad { height: 168px; }
}

.netbar { position: fixed; top: 0; left: 0; right: 0; z-index: 95; background: #b4232f; color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 12px; }

/* ================================================================ E-music look
   Pink accent on near-black, rounded covers, round plum buttons. */
.ibtn.on, .ibtn.accent { color: var(--accent-ink); }
.pill.primary { background: var(--accent); color: #1a0f19; }
.chip { background: var(--surface2); color: var(--text); padding: 8px 16px; }
.chip.on { background: var(--accent); color: #1a0f19; }
.field { border-radius: 12px; } .field:focus { border-color: var(--accent); }
.login-icon { border-radius: 20px; box-shadow: var(--glow); }
.count-badge, .bar div { background: var(--accent); color: #1a0f19; }


/* covers get softer corners everywhere */
.trow-art, .mini-art, .menu-art, .pl-pick-art, .lyr-art, .top-art { border-radius: 8px; }
.card-art, .card-grad, .lib-art { border-radius: 12px; }
.qtile { border-radius: 10px; background: var(--surface2); } .qtile-art { border-radius: 10px 0 0 10px; }
.card-play { background: var(--accent); color: #1a0f19; box-shadow: var(--glow); }

/* round plum buttons in headers */
.topbar .ibtn, .lib-head .ibtn, .home-head .ibtn { background: var(--plum); color: var(--text); width: 38px; height: 38px; margin: 0 3px; }

/* tab bar */
.tabbar { background: var(--tabbar); border-top: 1px solid var(--line); }
.tabbar button { font-size: 11px; }
.tabbar button.active { color: var(--accent-ink); }
.tab-create:active { color: var(--accent-ink); }

/* track rows */
.trow-num { font-variant-numeric: tabular-nums; }
.trow.playing .trow-title, .trow.playing .trow-num { color: var(--accent-ink); }

/* collection / album header: centred cover, two wide buttons */
.hero { background: linear-gradient(to bottom, color-mix(in srgb, var(--hero) 45%, var(--bg)) 0%, var(--bg) 70%); padding: 64px 16px 6px; text-align: center; }
.hero-art { width: 240px; height: 240px; border-radius: 16px; box-shadow: var(--sh-lg); overflow: hidden; }
.hero-text { margin-top: 20px; }
.hero-title { font-size: 26px; font-weight: 600; }
.hero .kicker { color: var(--accent-ink); font-size: 15px; margin-bottom: 4px; letter-spacing: 0; }
.hero-sub { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; margin-top: 8px; }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.cta { height: 54px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 17px; transition: transform .1s; }
.cta:active { transform: scale(.97); }
.cta-play { background: var(--accent); color: #1a0f19; box-shadow: var(--glow); }
.cta-alt { background: var(--plum); color: var(--accent-ink); }
.hero-actions { justify-content: center; gap: 10px; margin-top: 12px; }
.hero-actions .ibtn { background: var(--plum); color: var(--text); }
.hero-actions .ibtn.on { color: var(--accent-ink); }
.hero-actions.pad-x { justify-content: flex-start; }
.big-play { background: var(--accent); color: #1a0f19; width: 58px; height: 58px; box-shadow: var(--glow); }

/* search */
.search-bar { background: var(--surface2); color: var(--text); border-radius: 12px; }
.search-input { color: var(--text); } .search-input::placeholder { color: var(--muted); } .search-clear { color: var(--muted); }
.mood { border-radius: 12px; }
.top-hit { border-radius: 16px; }

/* library */
.lib-head h1 { font-size: 28px; font-weight: 600; }

/* mini player: a floating rounded card */
.mini { left: 10px; right: 10px; bottom: calc(var(--tab-h) + var(--safe-b) + 6px); border-radius: 16px; padding: 0 8px 0 10px; gap: 12px;
  background: color-mix(in srgb, var(--mini, #2a2340) 22%, var(--surface)); border: 1px solid var(--tint-1); box-shadow: 0 8px 22px #00000059; }
.mini-art { width: 46px; height: 46px; border-radius: 10px; }
.mini-sub { color: var(--accent-ink); font-weight: 600; }
.mini-progress { left: 14px; right: 14px; bottom: 5px; height: 3px; background: var(--tint-2); }
.mini-progress div { background: var(--accent); }
.mini.buffering .mini-progress div { background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; }

/* now playing */
.np-bg { background: linear-gradient(to bottom, color-mix(in srgb, var(--np) 40%, var(--bg)) 0%, var(--bg) 60%); }
.np-top { height: 56px; gap: 8px; }
.np-top > .ibtn { background: var(--plum); width: 42px; height: 42px; }
.np-ctx { flex-direction: row; justify-content: center; gap: 8px; }
.np-logo { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.np-ctx-k { display: none; }
.np-ctx-t { font-size: 15px; font-weight: 600; }
.np-art-wrap { margin: 22px 0 26px; }
.np-art { border-radius: 16px; box-shadow: var(--sh-lg); }
.np-title { font-size: 22px; }
.np-artist { color: var(--accent-ink); font-weight: 600; font-size: 17px; }
.np-like.on { background: var(--accent); color: #1a0f19; width: 32px; height: 32px; margin: 4px; }
.np-seek { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--accent) var(--p), var(--tint-3) var(--p)); }
.np-seek::-webkit-slider-thumb { width: 16px; height: 16px; background: var(--accent); }
.np-seek::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--accent); }
.np-times { color: var(--muted); font-variant-numeric: tabular-nums; }
.np-controls { margin: 14px 0 8px; }
.np-play { width: 76px; height: 76px; background: var(--accent); color: #1a0f19; box-shadow: var(--glow); }
.np-volbox { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 10px 4px 6px; }
.np-vol { --p: 100%; flex: 1; appearance: none; height: 4px; border-radius: 2px; outline: none; background: linear-gradient(to right, var(--ink-2) var(--p), var(--tint-3) var(--p)); }
.np-vol::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.np-vol::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--ink); }
.np-tools { margin-top: 12px; padding: 6px 8px; }
.np-lyrics-card { border-radius: 16px; background: color-mix(in srgb, var(--np) 30%, var(--surface)); }

/* sheets & panels */
.sheet { background: var(--sheet); border-radius: 20px 20px 0 0; }
.menu-list, .panel, .stat-card { border-radius: 16px; }
.stat-teaser { border-radius: 16px; background: linear-gradient(135deg, var(--plum2), #2a1630); }
.profile-head { background: linear-gradient(to bottom, var(--plum2), var(--bg)); }
.page-h1 { font-size: 28px; font-weight: 600; }
body:has(.topbar.deep) .page-h1 { padding-top: 58px; }

/* ================================================================ flat colour
   No gradients anywhere: flat fills only. */
.tabbar { background: var(--tabbar); }
.avatar { background: var(--accent); color: #1a0f19; }
.wave-hero { background: var(--wave-bg); }
/* "Моя волна": magnetic sand on white (js/sand.js), dark words over a white fade. */
/* Its own layer (z-index 0): the canvas over the video inside it stays
   under the card's words and button. */
.wave-sand { position: absolute; inset: 0; pointer-events: none; z-index: 0; isolation: isolate; }
.wave-sand .wave-vid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
/* The video only feeds the canvas: full size under it (a video the browser
   thinks unseen gets few frames), covered by the opaque canvas. */
.wave-sand .wave-src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.wave-fade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--wave-fade)) 0%, rgba(var(--wave-fade), .94) 40%, rgba(var(--wave-fade), 0) 70%); pointer-events: none; }
.wave-hero .kicker.light { color: var(--wave-kicker); } .wave-hero .wave-name { color: var(--wave-name); } .wave-hero .wave-desc { color: var(--wave-desc); }
.hero { background: none; }
.artist-shade { background: #0000004d; }
/* The artist's name sits on their photo: white in both themes. */
.artist-name { color: #fff; text-shadow: 0 2px 14px #0007; }
.np-bg { background: linear-gradient(to bottom, color-mix(in srgb, var(--np) 22%, var(--bg)) 0%, color-mix(in srgb, var(--np) 22%, var(--bg)) 55%, var(--bg) 100%); }
.profile-head { background: none; }
.stat-teaser { background: var(--plum); }
.hour-bar { background: var(--accent); }
.sk { background: var(--surface2); animation: skpulse 1.2s ease-in-out infinite; }
@keyframes skpulse { 50% { opacity: .5; } }
.mini.buffering .mini-progress div { background: var(--accent); animation: skpulse .9s ease-in-out infinite; }

/* Up next: drag a song by its handle, or take it out. */
.q-edit .trow { transition: transform .15s ease; background: transparent; }
.q-edit .trow.dragging { transition: none; position: relative; z-index: 3; background: var(--surface2, #26262f); border-radius: 10px; box-shadow: var(--sh-float); }
.q-edit .trow.off { opacity: .45; }
.q-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.q-handle { touch-action: none; cursor: grab; color: var(--muted, #b3b3b3); }
.q-handle:active { cursor: grabbing; }
.q-edit .trow-more { display: none; }

/* The wave's character under its card. */
.wave-modes { display: flex; gap: 8px; margin: 10px 16px 4px; overflow-x: auto; }


/* ------------------------------------------------------------------ admin panel */
.app-banner { position: sticky; top: 0; z-index: 60; padding: 8px 16px; background: var(--surface2, #26262f); color: var(--text, #fff); font-size: 13px; text-align: center; border-bottom: 1px solid var(--tint-2); }
.adm-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 4px 0 8px; }
.adm-light { display: flex; align-items: center; gap: 10px; }
.adm-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; color: #0b0b0b; }
.adm-dot.ok { background: #0ca30c; color: #fff; } .adm-dot.warn { background: #fab219; } .adm-dot.bad { background: #d03b3b; color: #fff; } .adm-dot.off { background: #3a3a44; color: #ccc; }
.adm-light-name { font-weight: 600; }
.adm-state { font-size: 12px; color: var(--muted, #b3b3b3); white-space: nowrap; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.adm-tile { background: var(--tint-0); border-radius: 12px; padding: 10px 12px; }
.adm-tile-v { font-size: 22px; font-weight: 600; letter-spacing: 0; margin: 2px 0; }
.adm-delta.good { color: #0ca30c; } .adm-delta.bad { color: #ec835a; }
.adm-chart-box { position: relative; }
.adm-chart { width: 100%; height: 120px; display: block; }
.adm-bar { fill: var(--accent, #ee80e5); }
.adm-axis { stroke: var(--line-2); stroke-width: 1; }
.adm-chart-x { display: flex; justify-content: space-between; margin-top: 4px; }
.adm-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--sheet); border: 1px solid var(--tint-2); border-radius: 8px; padding: 4px 8px; font-size: 12px; white-space: nowrap; pointer-events: none; }
.adm-shares { display: flex; flex-direction: column; gap: 8px; }
.adm-share { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.adm-meter { height: 8px; border-radius: 4px; background: var(--tint-1); overflow: hidden; }
.adm-meter > div { height: 100%; border-radius: 4px; background: var(--accent, #ee80e5); }
.adm-share-v { color: var(--muted, #b3b3b3); white-space: nowrap; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .adm-two { grid-template-columns: 1fr; } .adm-share { grid-template-columns: 90px 1fr auto; } }
.adm-queries { margin: 6px 0 0; padding-left: 20px; font-size: 13px; }
.adm-queries li { padding: 2px 0; } .adm-queries li > span:first-child { margin-right: 8px; }
.adm-list { display: flex; flex-direction: column; }
.adm-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--tint-1); }
.adm-row:first-child { border-top: 0; }
.adm-row .grow { min-width: 0; }
.adm-kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.adm-report { white-space: pre-wrap; font-size: 12px; line-height: 1.45; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.adm-tabs { scrollbar-width: none; } .adm-tabs::-webkit-scrollbar { display: none; }

/* account page */
.acc-name { font-size: 17px; font-weight: 600; }
.acc-badge { margin-left: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--tint-1); color: var(--muted, #b3b3b3); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.acc-check { font-size: 44px; font-weight: 600; letter-spacing: .08em; text-align: center; margin: 4px 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; padding: 8px 16px 24px; } .news-grid .card { width: auto; }

/* support */
.avatar.has-dot { position: relative; } .avatar.has-dot::after { content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg, #121212); }
.sup-thread { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; }
.sup-msg { max-width: 85%; align-self: flex-start; background: var(--surface2, #262626); border-radius: 12px 12px 12px 4px; padding: 10px 12px; }
.sup-msg.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 22%, var(--surface)); border-radius: 12px 12px 4px 12px; }
.sup-body { white-space: pre-wrap; word-break: break-word; margin-top: 2px; }
.sup-shots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sup-shot { width: 92px; height: 92px; border-radius: 8px; overflow: hidden; background: #0004; display: flex; align-items: center; justify-content: center; padding: 0; }
.sup-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sup-shot-full { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; border-radius: 8px; }
.sup-composer { margin: 8px 0 14px; } .sup-text { resize: vertical; min-height: 84px; }
.sup-pending { display: flex; flex-wrap: wrap; gap: 6px; } .sup-pending:empty { display: none; }
.sup-pending-item { position: relative; width: 64px; height: 64px; } .sup-pending-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.sup-remove { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #000c; color: #fff; font-size: 15px; line-height: 20px; padding: 0; }
/* The light theme: the bar over a scrolled page is light (a cover's colour,
   darkened, would hide its dark words). */
:root:not([data-theme="dark"]) .topbar.solid { background: color-mix(in srgb, var(--bg) 90%, transparent); box-shadow: 0 1px 0 var(--line); }

/* The light theme's player: white, tinted with the cover's own colour (a
   pastel of it, so a pink cover gives a soft pink, a blue one a soft blue). */
:root:not([data-theme="dark"]) .np-bg { background: linear-gradient(to bottom, color-mix(in srgb, var(--np-v, var(--accent)) 30%, #fff) 0%, color-mix(in srgb, var(--np-v, var(--accent)) 16%, #fff) 50%, #fff 100%); }
:root:not([data-theme="dark"]) .mini { background: color-mix(in srgb, var(--np-v, var(--accent)) 20%, #fff); }
:root:not([data-theme="dark"]) .np-lyrics-card { background: color-mix(in srgb, var(--np-v, var(--accent)) 26%, #fff); }
:root:not([data-theme="dark"]) .lyrics-sheet { background: color-mix(in srgb, var(--np-v, var(--accent)) 18%, #fff) !important; }
