:root {
  --bg: #0b0b0f; --surface: rgba(255,255,255,.055); --surface2: rgba(255,255,255,.1);
  --line: rgba(255,255,255,.08); --text: #f4f4f7; --muted: rgba(244,244,247,.5);
  --accent: #8b7bff; --accent-ink: #0b0b0f; --r: 18px;
  --ease: cubic-bezier(.22,.9,.28,1); --dur: 1;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
:root[data-theme="amoled"] { --bg: #000; --surface: rgba(255,255,255,.07); }
:root[data-theme="light"] {
  --bg: #f4f4f6; --surface: rgba(0,0,0,.05); --surface2: rgba(0,0,0,.09); --line: rgba(0,0,0,.08);
  --text: #15151a; --muted: rgba(21,21,26,.5); --accent-ink: #fff; color-scheme: light;
}
:root[data-anim="off"] { --dur: 0; }
:root[data-anim="off"] * { animation: none !important; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; margin: 0; }
html, body { height: 100%; background: var(--bg); color: var(--text); overflow: hidden; overscroll-behavior: none; }
body { font: 15px/1.35 -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* aura */
#aura { position: fixed; inset: -20%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity calc(.9s * var(--dur)) var(--ease); }
#aura img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.5); opacity: .5; }
#aura.on { opacity: 1; }
:root[data-theme="light"] #aura img { opacity: .35; }
:root[data-aura="off"] #aura { display: none; }

/* layout */
#app { position: fixed; inset: 0; z-index: 1; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: calc(var(--safe-t) + 18px) 16px calc(170px + var(--safe-b));
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity calc(.35s * var(--dur)) var(--ease), transform calc(.45s * var(--dur)) var(--ease); scrollbar-width: none; }
.view::-webkit-scrollbar { display: none; }
.view.on { opacity: 1; transform: none; pointer-events: auto; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 4px 10px; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty svg { width: 40px; height: 40px; opacity: .5; margin-bottom: 10px; }

/* search */
.searchbox { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) - 2px); padding: 0 14px; height: 48px; transition: border-color .2s, background .2s; backdrop-filter: blur(20px); }
.searchbox:focus-within { border-color: var(--accent); background: var(--surface2); }
.searchbox input { flex: 1; background: none; border: 0; outline: 0; height: 100%; min-width: 0; }
.searchbox input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; transition: all calc(.25s * var(--dur)) var(--ease); }
.chip:active { transform: scale(.94); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip.off { opacity: .4; }

/* track rows */
.row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: calc(var(--r) - 4px); cursor: pointer; transition: background .2s, transform calc(.2s * var(--dur)); animation: up calc(.5s * var(--dur)) var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
.row:active { background: var(--surface2); transform: scale(.985); }
.row.cur .ttl { color: var(--accent); }
.row.dim { opacity: .38; }
.cv { position: relative; flex: none; width: 50px; height: 50px; border-radius: calc(var(--r) / 2); overflow: hidden; background: linear-gradient(135deg, var(--accent), #2a2a3a); display: grid; place-items: center; font-weight: 700; color: rgba(255,255,255,.7); }
.cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eq { position: absolute; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 14px; }
.row.cur .eq { display: flex; }
.eq b { width: 3px; background: #fff; border-radius: 2px; height: 6px; animation: bar 0.9s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: -.3s; } .eq b:nth-child(3) { animation-delay: -.6s; }
body.paused .eq b { animation-play-state: paused; }
.meta { flex: 1; min-width: 0; }
.ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sub .src { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 5px; border-radius: 5px; background: var(--surface2); margin-right: 6px; vertical-align: 1px; }
.sub .ok { color: var(--accent); }
.icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .2s, transform calc(.2s * var(--dur)); }
.icon:active { background: var(--surface2); transform: scale(.88); }
.skel { height: 66px; border-radius: 14px; margin-bottom: 4px; background: linear-gradient(90deg, var(--surface) 25%, var(--surface2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

/* избранное, очередь, текст, пресеты */
.icon.heart { width: 34px; }
.icon.heart.on, #npHeart.on { color: #ff5d7d; }
.icon.heart.on svg.f, #npHeart.on svg.f { animation: beat calc(.4s * var(--dur)) var(--ease); }
@keyframes beat { 40% { transform: scale(1.35); } }
.np .icon { width: 44px; height: 44px; flex: none; }
.cv.sm { width: 42px; height: 42px; }
.qrow { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 12px; background: transparent; touch-action: pan-y; transition: transform .18s var(--ease), background .2s; position: relative; }
.qrow.cur { background: var(--surface); }
.qrow.cur .ttl { color: var(--accent); }
.qrow.drag { z-index: 5; transition: none; background: var(--surface2); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.qrow .meta { cursor: pointer; }
.qgrip { flex: none; width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); touch-action: none; cursor: grab; }
.lyr-box { position: relative; max-height: 240px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 6px 0; }
.lyr-open { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.icon.sm { width: 32px; height: 32px; color: var(--muted); }
.icon.sm svg { width: 18px; height: 18px; }
.lyr-box::-webkit-scrollbar { display: none; }
.lyr-box p { margin: 0; padding: 7px 4px; font-size: 18px; font-weight: 650; line-height: 1.3; color: var(--muted); transition: color .3s, transform .3s var(--ease); transform-origin: left center; }
.lyr-box.sync p { cursor: pointer; }
.lyr-box p.cur { color: var(--text); transform: scale(1.04); }
.lyr-box p.dim { font-size: 14px; font-weight: 500; text-align: center; padding: 28px 0; }
.lyr-box p.plain { font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--text); }
.lyr-box { max-height: 300px; }
#lyrSrc { font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- текст на весь экран + мини-плеер ---------- */
#lyrFull { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; overflow: hidden; color: #fff; background: #0b0b0f;
  transform: translateY(100%); visibility: hidden; transition: transform calc(.65s * var(--dur)) var(--ease), visibility 0s calc(.65s * var(--dur)); }
body.lyrics-open #lyrFull { transform: none; visibility: visible; transition-delay: 0s; }
.lf-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.lf-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); filter: blur(60px) saturate(1.7) brightness(.62); transition: opacity .8s; }
.lf-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.55)); }
.lf-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 14px 8px; }
.lf-top .icon { color: #fff; }
.lf-meta { flex: 1; min-width: 0; }
.lf-meta b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-meta span { font-size: 12px; opacity: .7; }
.lf-top em { font-style: normal; font-size: 12px; opacity: .6; padding-right: 6px; }
.lf-scroll { position: relative; z-index: 1; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 28vh 22px 30vh; }
.lf-scroll::-webkit-scrollbar { display: none; }
.lf-scroll p { margin: 0; padding: 11px 0; font-size: clamp(24px, 7vw, 34px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: rgba(255,255,255,.3); transform-origin: left center; filter: blur(.5px);
  transition: color .4s, transform .5s var(--ease), filter .4s; animation: up calc(.6s * var(--dur)) var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.lf-scroll.sync p { cursor: pointer; }
.lf-scroll p.near { color: rgba(255,255,255,.52); }
.lf-scroll p.cur { color: #fff; transform: scale(1.04); filter: none; text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 60%, transparent); }
.lf-scroll p.dim { font-size: 16px; font-weight: 600; text-align: center; color: rgba(255,255,255,.65); filter: none; padding: 40px 0; }
.lf-scroll p.plain { font-size: 20px; font-weight: 600; line-height: 1.55; color: rgba(255,255,255,.92); filter: none; }
.lf-sync { position: absolute; z-index: 3; left: 50%; bottom: calc(118px + var(--safe-b)); display: flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 99px; background: rgba(255,255,255,.18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: #fff; font-size: 13px; font-weight: 600;
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .35s, transform .45s var(--ease); }
.lf-sync.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.lf-sync svg { width: 16px; height: 16px; }
.lf-mini { position: relative; z-index: 2; margin: 0 12px calc(12px + var(--safe-b)); overflow: hidden; border-radius: calc(var(--r) + 6px); background: rgba(22,22,30,.58); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 14px 40px rgba(0,0,0,.45);
  backdrop-filter: blur(30px) saturate(1.6); -webkit-backdrop-filter: blur(30px) saturate(1.6); transform: translateY(40px); opacity: 0; transition: transform calc(.65s * var(--dur)) var(--ease) .12s, opacity .5s .12s; }
body.lyrics-open .lf-mini { transform: none; opacity: 1; }
.lf-seek { position: relative; height: 5px; background: rgba(255,255,255,.14); cursor: pointer; }
.lf-seek::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
.lf-seek i { display: block; height: 100%; width: 0; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, var(--accent), #fff); transition: width .25s linear; }
.lf-row { display: flex; align-items: center; gap: 4px; padding: 10px 10px 10px 12px; touch-action: pan-y; }
.lf-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.lf-info .cv { width: 48px; height: 48px; }
.lf-info .meta { min-width: 0; }
.lf-info .ttl { color: #fff; }
.lf-info .sub { color: rgba(255,255,255,.65); }
.lf-info.in-next { animation: lfNext calc(.45s * var(--dur)) var(--ease); }
.lf-info.in-prev { animation: lfPrev calc(.45s * var(--dur)) var(--ease); }
@keyframes lfNext { from { opacity: 0; transform: translateX(30px); } }
@keyframes lfPrev { from { opacity: 0; transform: translateX(-30px); } }
.lf-mini .icon { color: #fff; width: 44px; height: 44px; }
.lf-mini .icon svg.f { fill: currentColor; stroke: none; }
.lf-pp { flex: none; width: 50px; height: 50px; margin: 0 2px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; transition: transform calc(.25s * var(--dur)) var(--ease); }
.lf-pp:active { transform: scale(.88); }
.lf-pp svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.chip .x { font-style: normal; margin-left: 8px; opacity: .6; font-size: 15px; line-height: 1; }
body.in-room #pTitle { color: var(--accent); }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #8b7bff; }
:root { transition: --accent .9s ease; }

.more { height: 56px; display: grid; place-items: center; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--surface2); border-top-color: var(--accent); animation: spin .8s linear infinite; }

/* artists */
.who { cursor: pointer; transition: color .2s; }
.who:active { color: var(--accent); }
.who-link { cursor: pointer; display: inline-block; max-width: 100%; transition: color .2s; }
.who-link:active { color: var(--accent); }
.who-link::after { content: " ›"; opacity: .6; }
.artists { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.artists::-webkit-scrollbar { display: none; }
.acard { flex: none; width: 96px; text-align: center; cursor: pointer; animation: up calc(.5s * var(--dur)) var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); transition: transform calc(.25s * var(--dur)) var(--ease); }
.acard:active { transform: scale(.94); }
.acard b { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard span { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { position: relative; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--accent), #2a2a3a); display: grid; place-items: center; font-size: 30px; font-weight: 700; color: rgba(255,255,255,.7); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.sq { border-radius: calc(var(--r) + 4px); }
i.src { font-style: normal; display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 5px; border-radius: 5px; background: var(--surface2); vertical-align: 1px; }
#artist { position: fixed; inset: 0; z-index: 15; overflow-y: auto; overflow-x: hidden; background: var(--bg); padding: calc(var(--safe-t) + 8px) 16px calc(170px + var(--safe-b)); transform: translateX(100%); transition: transform calc(.5s * var(--dur)) var(--ease); scrollbar-width: none; }
#artist::-webkit-scrollbar { display: none; }
#artist.on { transform: none; }
.a-top { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.a-top > span:not([style]) { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.a-head { text-align: center; padding: 6px 0 14px; }
.a-head .avatar { width: 120px; height: 120px; font-size: 44px; box-shadow: 0 20px 50px -20px color-mix(in srgb, var(--accent) 60%, #000); }
.a-head h1 { font-size: 26px; margin: 14px 0 4px; }
.a-head .btns { justify-content: center; margin: 16px 0 0; }

/* ---------- профиль ---------- */
.ava { --s: 44px; position: relative; width: var(--s); height: var(--s); flex: none; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--accent), #2a2a3a); display: grid; place-items: center; font-weight: 700; color: rgba(255,255,255,.75); font-size: calc(var(--s) * .4); }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ava svg { width: 46%; height: 46%; }
.ava.ring { box-shadow: 0 0 0 4px var(--bg), 0 12px 32px rgba(0,0,0,.4); }
.pf-top { position: relative; margin-bottom: 58px; }
.pf-banner { position: relative; height: 158px; border-radius: calc(var(--r) + 8px); overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, #000), color-mix(in srgb, var(--accent) 18%, var(--bg))); animation: up calc(.5s * var(--dur)) var(--ease) both; }
.pf-banner img, .pf-banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ban-empty { position: absolute; inset: 0; background: radial-gradient(circle at 18% 25%, color-mix(in srgb, var(--accent) 80%, transparent), transparent 58%), radial-gradient(circle at 88% 85%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%); }
.pf-fade { position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.38)); pointer-events: none; }
.pf-ava { position: absolute; left: 50%; bottom: -50px; transform: translateX(-50%); animation: pop calc(.6s * var(--dur)) var(--ease) both; }
.pf-id { text-align: center; }
.pf-id h1 { margin: 0 0 2px; font-size: 26px; }
.bio { margin: 8px auto 0; max-width: 340px; font-size: 14px; line-height: 1.4; opacity: .85; }
.pf-actions { display: flex; gap: 10px; justify-content: center; margin: 16px 0 4px; }
.pf-nums { display: flex; margin: 16px 0 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pf-nums .num { flex: 1; text-align: center; padding: 12px 6px; cursor: pointer; transition: background .2s; }
.pf-nums .num:active { background: var(--surface2); }
.pf-nums .num + .num { border-left: 1px solid var(--line); }
.pf-nums b { display: block; font-size: 20px; font-weight: 700; }
.pf-nums span { font-size: 12px; color: var(--muted); }
.pf-nums u { text-decoration: none; color: var(--accent); font-weight: 700; }
h3 .lnk { float: right; text-transform: none; letter-spacing: 0; font-size: 13px; }
.lnk { color: var(--accent); font-weight: 600; font-size: 13px; }
.empty.small { padding: 26px 10px; }
.empty.small svg { width: 30px; height: 30px; }

.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; backdrop-filter: blur(20px); animation: up calc(.5s * var(--dur)) var(--ease) both; }
.scard .seg { margin-bottom: 14px; }
.bigtime { margin: 2px 0 14px; }
.bigtime b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; background: linear-gradient(90deg, var(--text) 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigtime span { color: var(--muted); font-size: 13px; }
.mini3 { display: flex; gap: 8px; margin-bottom: 18px; }
.mini3 > div { flex: 1; background: var(--surface); border-radius: 12px; padding: 10px 6px; text-align: center; }
.mini3 b { display: block; font-size: 18px; }
.mini3 span { font-size: 11px; color: var(--muted); }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 112px; margin-bottom: 24px; }
.chart.month { gap: 2px; }
.bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.bar i { display: block; width: 100%; max-width: 28px; height: var(--h); border-radius: 7px 7px 3px 3px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); transform-origin: bottom; animation: grow calc(.7s * var(--dur)) var(--ease) both; animation-delay: calc(var(--i) * 22ms); transition: filter .2s; }
.chart.month .bar i { border-radius: 3px 3px 2px 2px; }
.bar.z i { height: 3px; opacity: .25; }
.bar.now i { background: linear-gradient(#fff, var(--accent)); }
.bar.sel i { filter: brightness(1.35); }
.bar span { position: absolute; bottom: -19px; font-size: 10.5px; color: var(--muted); white-space: nowrap; text-transform: lowercase; }
.chart-tip { text-align: center; font-size: 12px; color: var(--muted); min-height: 16px; margin-top: -4px; }
.peak { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.35; }
.peak span svg { width: 16px; height: 16px; color: var(--accent); }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes growx { from { transform: scaleX(0); } }

.hero { position: relative; overflow: hidden; border-radius: var(--r); min-height: 112px; cursor: pointer; margin-bottom: 8px; border: 1px solid var(--line); background: var(--surface); animation: up calc(.5s * var(--dur)) var(--ease) both; transition: transform calc(.25s * var(--dur)) var(--ease); }
.hero:active { transform: scale(.985); }
.hero-bg { position: absolute; left: -20%; top: -20%; width: 140%; height: 140%; object-fit: cover; filter: blur(28px) saturate(1.5); opacity: .75; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12)); }
.hero-in { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; color: #fff; }
.hero-in em { font-style: normal; display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.hero-in b { display: block; font-size: 22px; line-height: 1.15; }
.hero-in span { font-size: 13px; opacity: .88; }
.arow, .trow { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 14px; cursor: pointer; animation: up calc(.5s * var(--dur)) var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); transition: background .2s; }
.arow:active, .trow:active, .frow:active { background: var(--surface2); }
.rk { font-style: normal; width: 18px; text-align: center; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.am { flex: 1; min-width: 0; }
.am b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abar { height: 4px; border-radius: 4px; background: var(--surface2); margin-top: 7px; overflow: hidden; }
.abar u { display: block; height: 100%; border-radius: 4px; transform-origin: left; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #fff)); animation: growx calc(.9s * var(--dur)) var(--ease) both; }
.at { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.more-btn { display: block; margin: 6px auto 0; color: var(--muted); font-size: 13px; padding: 8px 14px; }

.fstrip { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.fstrip::-webkit-scrollbar { display: none; }
.fb { position: relative; flex: none; width: 62px; text-align: center; cursor: pointer; }
.fb .ava { margin: 0 auto; }
.fb span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb.add .ava { background: var(--surface); border: 1px dashed var(--muted); color: var(--muted); }
.fb.add .ava svg { width: 24px; height: 24px; }
.live { position: absolute; right: 3px; top: 40px; width: 13px; height: 13px; border-radius: 50%; background: #3ddc97; border: 2.5px solid var(--bg); animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61,220,151,0); } }
.frow { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-radius: 14px; cursor: pointer; transition: background .2s; }
.fav { position: relative; flex: none; }
.fav .live { right: 0; bottom: 0; top: auto; }
.fm { flex: 1; min-width: 0; }
.fm b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm .muted { font-size: 13px; }
.live-line { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa { display: flex; gap: 6px; align-items: center; flex: none; }
.eqm { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; flex: none; }
.eqm b { width: 3px; height: 3px; background: currentColor; border-radius: 2px; animation: eqb .9s ease-in-out infinite; }
.eqm b:nth-child(2) { animation-delay: -.3s; } .eqm b:nth-child(3) { animation-delay: -.6s; }
.eqm.big { height: 28px; gap: 3px; color: var(--accent); }
.eqm.big b { width: 5px; }
@keyframes eqb { 0%, 100% { height: 3px; } 50% { height: 100%; } }
.scard.now { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, transparent), var(--surface)); }
.nowrow { display: flex; align-items: center; gap: 14px; }
.nowrow .nm { flex: 1; min-width: 0; }
.nowrow em { font-style: normal; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.nowrow b { display: block; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nowrow span { font-size: 13px; color: var(--muted); }
.nowrow .btn { height: 44px; width: 44px; padding: 0; justify-content: center; }
.cmpr { display: flex; align-items: center; gap: 16px; }
.cmpr em { font-style: normal; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cmpr b { display: block; font-size: 17px; margin: 2px 0; }
.cmpr span { font-size: 12px; color: var(--muted); }
.ring { width: 84px; height: 84px; flex: none; }
.ring .tr { fill: none; stroke: var(--surface2); stroke-width: 7; }
.ring .fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 40px 40px; animation: ringin calc(1.1s * var(--dur)) var(--ease) both; }
.ring text { fill: var(--text); stroke: none; font-weight: 800; font-size: 19px; }
@keyframes ringin { from { stroke-dasharray: 0 999; } }
.shared { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.shared em { font-style: normal; width: 100%; color: var(--muted); font-size: 12px; }
.chipx { padding: 5px 11px; border-radius: 99px; background: var(--surface2); font-size: 13px; }

/* редактор профиля */
.ed-media { position: relative; margin-bottom: 54px; }
.ed-banner { position: relative; height: 124px; border-radius: 18px; overflow: hidden; cursor: pointer; background: var(--surface); }
.ed-banner > div { position: absolute; inset: 0; }
.ed-banner img, .ed-banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-cam { position: absolute; display: flex; align-items: center; gap: 8px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 99px; background: rgba(0,0,0,.58); backdrop-filter: blur(10px); color: #fff; font-size: 12px; z-index: 2; }
.ed-cam svg { width: 15px; height: 15px; }
.ed-cam em { font-style: normal; }
.ed-cam.sm { right: -6px; bottom: -6px; padding: 7px; }
.ed-ava { position: absolute; left: 16px; bottom: -46px; cursor: pointer; }
.busy { opacity: .45; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .8; } }
.ed-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -44px 0 20px 118px; min-height: 36px; align-items: center; }
.fl { display: block; margin: 12px 4px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hwrap { position: relative; }
.hwrap > span { position: absolute; left: 16px; top: 14px; color: var(--muted); }
.hwrap input { padding-left: 32px; }
.hstat { display: block; min-height: 18px; margin: -6px 6px 6px; font-size: 12px; color: var(--muted); }
.hstat.good { color: #3ddc97; } .hstat.bad { color: #ff6b7a; }
.sh-input.ta { height: 86px; padding: 12px 16px; resize: none; line-height: 1.4; font-family: inherit; }
#tabs button.dot::after { content: ""; position: absolute; top: 5px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: #ff5d7d; border: 2px solid var(--bg); }
.tabava { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
#social { position: fixed; inset: 0; z-index: 14; overflow-y: auto; overflow-x: hidden; background: var(--bg); padding: calc(var(--safe-t) + 8px) 16px calc(170px + var(--safe-b)); transform: translateX(100%); transition: transform calc(.5s * var(--dur)) var(--ease); scrollbar-width: none; }
#social::-webkit-scrollbar { display: none; }
#social.on { transform: none; }

/* library */
.seg { display: inline-flex; background: var(--surface); border-radius: 99px; padding: 3px; margin-bottom: 16px; position: relative; border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; padding: 7px 13px; border-radius: 99px; font-size: 14px; color: var(--muted); transition: color .25s, background .25s; }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card { animation: up calc(.5s * var(--dur)) var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); cursor: pointer; transition: transform calc(.25s * var(--dur)) var(--ease); }
.card:active { transform: scale(.96); }
.mosaic { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.mosaic .m { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 60%, transparent), var(--surface)); position: relative; }
.mosaic .m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic.one { grid-template-columns: 1fr; }
.card b { display: block; margin-top: 8px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card span { font-size: 13px; color: var(--muted); }
.card.new .mosaic { display: grid; place-items: center; border-style: dashed; color: var(--muted); }
.card.new svg { width: 34px; height: 34px; }
.pl-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.pl-head h1 { margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn { height: 46px; padding: 0 22px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 650; display: inline-flex; align-items: center; gap: 8px; transition: transform calc(.2s * var(--dur)) var(--ease); }
.btn:active { transform: scale(.95); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn svg { width: 18px; height: 18px; }
svg.f { fill: currentColor; stroke: none; }
.btns { display: flex; gap: 10px; margin-bottom: 14px; }

/* settings */
.set { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 16px; backdrop-filter: blur(20px); }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.srow:last-child { border: 0; }
.srow.col { flex-direction: column; align-items: stretch; padding: 12px 0; gap: 12px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 32px; height: 32px; border-radius: 50%; outline: 2px solid transparent; outline-offset: 2px; transition: transform calc(.25s * var(--dur)) var(--ease), outline-color .2s; }
.sw.on { outline-color: var(--text); transform: scale(1.1); }
.sw.custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); position: relative; overflow: hidden; }
.sw.custom input { position: absolute; inset: -10px; opacity: 0; width: 60px; height: 60px; }
.tog { width: 48px; height: 28px; border-radius: 99px; background: var(--surface2); position: relative; transition: background .25s; flex: none; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform calc(.3s * var(--dur)) var(--ease); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.tog.on { background: var(--accent); } .tog.on::after { transform: translateX(20px); }
.miniseg { display: flex; background: var(--surface2); border-radius: 10px; padding: 2px; }
.miniseg button { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); transition: all .2s; }
.miniseg button.on { background: var(--bg); color: var(--text); }

/* range */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; outline: 0; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p), var(--surface2) var(--p)); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 99px; background: var(--surface2); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 99px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; margin-top: -6.5px; box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: transform .15s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }

/* tabs */
#tabs { position: fixed; z-index: 20; left: 50%; bottom: calc(10px + var(--safe-b)); transform: translateX(-50%); display: flex; padding: 5px; border-radius: 99px; background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
#tabs button { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 99px; color: var(--muted); transition: color .25s; }
#tabs button i { font-style: normal; font-size: 13px; font-weight: 550; max-width: 0; overflow: hidden; opacity: 0; transition: max-width calc(.45s * var(--dur)) var(--ease), opacity .3s; white-space: nowrap; }
#tabs button.on { color: var(--accent-ink); }
#tabs button.on i { max-width: 90px; opacity: 1; }
#tabPill { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 99px; background: var(--accent); transition: transform calc(.5s * var(--dur)) var(--ease), width calc(.5s * var(--dur)) var(--ease); }

/* mini player */
#mini { position: fixed; z-index: 19; left: 10px; right: 10px; bottom: calc(66px + var(--safe-b)); height: 62px; border-radius: calc(var(--r) + 2px); display: flex; align-items: center; gap: 12px; padding: 0 8px; cursor: pointer; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(28px) saturate(1.6); -webkit-backdrop-filter: blur(28px) saturate(1.6); border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0,0,0,.3); animation: pop calc(.5s * var(--dur)) var(--ease); }
#mini .cv { width: 46px; height: 46px; }
#mini .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); width: 0; }
#mini .icon { color: var(--text); }
#mini .icon svg.f { fill: currentColor; stroke: none; }

/* full player */
#player { position: fixed; inset: 0; z-index: 40; background: var(--bg); transform: translateY(100%); transition: transform calc(.6s * var(--dur)) var(--ease); overflow-y: auto; scrollbar-width: none; padding: calc(var(--safe-t) + 10px) 24px calc(40px + var(--safe-b)); }
#player::-webkit-scrollbar { display: none; }
#player.on { transform: none; }
#player .bg { position: fixed; inset: -20%; pointer-events: none; }
#player .bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(80px) saturate(1.6); opacity: .45; }
#player .in { position: relative; max-width: 520px; margin: 0 auto; }
.p-top { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.p-top span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
/* вокруг обложки оставлена «рамка» --vm: в ней живёт визуализатор, она не залезает ни на край экрана, ни на соседние элементы */
.artwrap { --vm: 30px; position: relative; width: min(calc(100% - 2 * (var(--vm) - 12px)), 340px, 44vh); aspect-ratio: 1; margin: calc(var(--vm) + 6px) auto calc(var(--vm) + 8px); }
#viz { position: absolute; z-index: 0; left: calc(-1 * var(--vm)); top: calc(-1 * var(--vm)); width: calc(100% + 2 * var(--vm)); height: calc(100% + 2 * var(--vm)); pointer-events: none; }
.p-top, .np, .seekrow, .ctrls { position: relative; z-index: 2; }
.art { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; margin: 0; border-radius: calc(var(--r) + 8px); overflow: hidden; background: linear-gradient(135deg, var(--accent), #20202c); box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--accent) 60%, #000); transform: scale(.88); transition: transform calc(.7s * var(--dur)) var(--ease); position: relative; display: grid; place-items: center; font-size: 80px; font-weight: 700; color: rgba(255,255,255,.4); }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.playing .art { transform: scale(1); }
.np { display: flex; align-items: center; gap: 10px; }
.np > div:first-child { flex: 1; min-width: 0; }
.np h2 { font-size: 23px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.np p { color: var(--muted); margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.seekrow { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seekrow span { width: 38px; } .seekrow span:last-child { text-align: right; }
.ctrls { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 26px; }
.ctrls .icon { width: 48px; height: 48px; }
.ctrls .icon.on { color: var(--accent); }
.ctrls svg { width: 26px; height: 26px; }
.volrow { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin: -12px 0 22px; color: var(--muted); }
.volrow .icon { width: 36px; height: 36px; flex: none; transition: color .2s, transform .2s var(--ease); }
.volrow .icon:active { transform: scale(.88); }
.volrow .icon svg { width: 20px; height: 20px; }
.volrow em { width: 40px; flex: none; text-align: right; font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; }
.ctrls svg.f { fill: currentColor; stroke: none; }
.play { width: 74px; height: 74px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; transition: transform calc(.3s * var(--dur)) var(--ease); box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.play:active { transform: scale(.9); }
.play svg { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.play.load svg { display: none; } .play.load::after { content: ""; width: 28px; height: 28px; border: 3px solid color-mix(in srgb, var(--bg) 25%, transparent); border-top-color: var(--bg); border-radius: 50%; animation: spin .8s linear infinite; }
.fx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; backdrop-filter: blur(20px); }
.fx-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.fx-h b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fx-h em { font-style: normal; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.presets { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 8px; scrollbar-width: none; }
.presets::-webkit-scrollbar { display: none; }
.bands { display: flex; justify-content: space-between; margin: 8px 0 6px; }
.band { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); width: 18%; }
.band .v { height: 130px; width: 28px; position: relative; }
.band input { position: absolute; width: 130px; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.band em { font-style: normal; font-variant-numeric: tabular-nums; color: var(--text); }
.fxrow { margin-top: 10px; }
.fxrow label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.fxrow label em { font-style: normal; color: var(--text); font-variant-numeric: tabular-nums; }
.tgl { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }

/* sheet menu */
#sheetBack { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; }
#sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow-y: auto; background: color-mix(in srgb, var(--bg) 88%, var(--text) 4%); border-radius: 26px 26px 0 0; padding: 8px 14px calc(18px + var(--safe-b)); transform: translateY(105%); transition: transform calc(.5s * var(--dur)) var(--ease); border-top: 1px solid var(--line); }
#sheet::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--surface2); margin: 4px auto 12px; }
body.sheet #sheetBack { opacity: 1; pointer-events: auto; } body.sheet #sheet { transform: none; }
.sh-title { font-weight: 650; font-size: 17px; padding: 4px 8px 10px; }
.sh-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 8px; border-radius: 12px; text-align: left; transition: background .2s; }
.sh-item:active { background: var(--surface); }
.sh-item svg { color: var(--muted); }
.sh-item.danger { color: #ff6b7a; } .sh-item.danger svg { color: #ff6b7a; }
.sh-input { width: 100%; height: 50px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 0 16px; outline: 0; margin-bottom: 12px; }
.sh-input:focus { border-color: var(--accent); }

#toast { position: fixed; z-index: 90; left: 50%; top: calc(var(--safe-t) + 14px); transform: translate(-50%, -250%); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 550; max-width: 90vw; transition: transform calc(.5s * var(--dur)) var(--ease); }
#toast.on { transform: translate(-50%, 0); opacity: 1; }
#gate { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; text-align: center; padding: 30px; }
#gate svg { width: 56px; height: 56px; color: var(--accent); margin-bottom: 16px; }

@keyframes up { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bar { 0%,100% { height: 5px; } 50% { height: 18px; } }
