/* dreamrebel — одна тёмная тема: чёрный + красный.
   Каркас: меню слева (на телефоне — вкладки снизу), контент по центру, плеер внизу на всю ширину,
   разворачивается в полноэкранную панель с большой волной и очередью. */
:root {
  --bg: #09090a;
  --bg2: #0e0e10;
  --side: #000;
  --surface: #131315;
  --raise: #1c1c1f;
  --raise2: #242428;
  --line: #2a2a2e;
  --fg: #f3f1ef;
  --muted: #9a9693;
  --dim: #66625f;
  --red: #e1222c;
  --red-hi: #ff3b44;
  --red-deep: #5c0a10;
  --ok: #3ccf7a;
  --warn: #ffb547;
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --side-w: 248px;
  --player-h: 88px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--f-body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { /* лёгкое зерно поверх всего — живее, чем плоский чёрный */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--raise2); border-radius: 10px; border: 3px solid var(--bg); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- боковое меню ---------- */
.side { position: fixed; top: 0; bottom: var(--player-h); left: 0; width: var(--side-w); background: var(--side); border-right: 1px solid var(--line);
  padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 20px; z-index: 20; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--red-hi), var(--red-deep)); display: grid; place-items: center; box-shadow: 0 6px 20px -6px rgba(225,34,44,.8); }
.logo .mark svg { width: 18px; height: 18px; fill: #fff; }
.logo b { color: var(--red-hi); font-weight: 800; }
.menu { display: grid; gap: 2px; }
.menu button { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 15px; text-align: left; transition: color .15s, background .15s; }
.menu button:hover { color: var(--fg); background: rgba(255,255,255,.03); }
.menu button[aria-current="page"] { color: var(--fg); background: var(--raise); }
.menu button[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red-hi); }
.menu button[aria-current="page"] .ico { color: var(--red-hi); }
.menu .count { margin-left: auto; font-size: 11px; background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.side .label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding: 0 12px; font-weight: 700; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--red); color: #fff; border-radius: 999px; padding: 11px 20px; font-weight: 800; transition: background .15s, transform .1s, box-shadow .15s; white-space: nowrap; }
.cta:hover { background: var(--red-hi); box-shadow: 0 8px 24px -10px rgba(255,59,68,.8); }
.cta:active { transform: scale(.97); }
.cta.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--fg); }
.cta.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.cta.soft { background: var(--raise); color: var(--fg); }
.cta.soft:hover { background: var(--raise2); box-shadow: none; }
.cta.danger { background: transparent; color: var(--red-hi); box-shadow: inset 0 0 0 1.5px var(--red-deep); }
.cta.danger:hover { background: var(--red); color: #fff; }
.cta.sm { padding: 7px 14px; font-size: 13px; }
.cta:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.mecard { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; text-align: left; width: 100%; transition: background .15s; }
.mecard:hover { background: var(--raise); }
.mecard div { min-width: 0; display: grid; line-height: 1.25; }
.mecard b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mecard small { color: var(--muted); font-size: 12px; }
.side-auth { display: grid; gap: 8px; }

/* ---------- основная область ---------- */
.main { margin-left: var(--side-w); min-height: 100vh; padding: 28px 32px calc(var(--player-h) + 48px); }
.view { max-width: 1160px; margin: 0 auto; display: grid; gap: 40px; animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }
.notice { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 10px; padding: 12px 16px; color: var(--muted); }
h2.sec { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
h2.sec small { font-family: var(--f-body); font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.sec-wrap { display: grid; gap: 16px; min-width: 0; }
.page-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); margin: 0; letter-spacing: -.03em; line-height: 1.05; }

/* шапки с размытым фоном из обложки */
.backdrop { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; }
.backdrop > .bd { position: absolute; inset: -40px; z-index: -2; background: var(--surface) center / cover; filter: blur(48px) saturate(1.4) brightness(.55); transform: scale(1.1); }
.backdrop::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,9,10,.05) 0%, rgba(9,9,10,.55) 60%, var(--bg) 100%); }

/* hero */
.hero { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 32px; align-items: end; }
.hero .art { width: 260px; aspect-ratio: 1; max-width: 100%; border-radius: 14px; background: var(--raise) center / cover; box-shadow: 0 30px 70px -24px rgba(0,0,0,.9); }
.hero .txt { display: grid; gap: 12px; min-width: 0; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: var(--red-hi); display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 4px rgba(225,34,44,.25); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(225,34,44,.08); } }
.hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 60px); line-height: 1; letter-spacing: -.03em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.hero .by { color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.bigplay { width: 58px; height: 58px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; box-shadow: 0 10px 28px -8px rgba(225,34,44,.75); transition: transform .15s var(--ease), background .15s; flex: none; }
.bigplay:hover { background: var(--red-hi); transform: scale(1.07); }
.bigplay svg { width: 22px; height: 22px; fill: currentColor; }
.empty-hero { border-radius: 20px; padding: 56px 32px; background: radial-gradient(100% 140% at 100% 0%, var(--red-deep), var(--surface) 70%); display: grid; gap: 14px; justify-items: start; }
.empty-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 4vw, 48px); margin: 0; line-height: 1.05; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
.empty-hero p { color: var(--muted); margin: 0; max-width: 54ch; font-size: 15px; }

/* волна (canvas) */
canvas.wave { width: 100%; height: 64px; display: block; cursor: pointer; }
.wavebox { position: relative; }
.wavebox .tip { position: absolute; top: -4px; transform: translate(-50%, -100%); background: var(--fg); color: var(--bg); font: 700 11px var(--f-mono); padding: 2px 6px; border-radius: 4px; pointer-events: none; white-space: nowrap; }
.wavebox .t0, .wavebox .t1 { position: absolute; bottom: 4px; font: 600 11px var(--f-mono); background: rgba(0,0,0,.7); padding: 1px 5px; border-radius: 3px; pointer-events: none; }
.wavebox .t0 { left: 0; color: var(--red-hi); }
.wavebox .t1 { right: 0; color: var(--muted); }

/* карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; text-align: left; transition: background .2s, transform .2s var(--ease); min-width: 0; }
.card:hover { background: var(--raise); transform: translateY(-3px); }
.card .art { position: relative; aspect-ratio: 1; max-width: 100%; border-radius: 10px; background: var(--raise) center / cover; box-shadow: 0 14px 30px -18px rgba(0,0,0,.9); overflow: hidden; }
.card .art .fab { position: absolute; right: 8px; bottom: 8px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease); box-shadow: 0 8px 18px -6px rgba(0,0,0,.7); }
.card:hover .fab, .card .fab.on, .card:focus-within .fab { opacity: 1; transform: none; }
.card .fab svg { width: 18px; height: 18px; fill: currentColor; }
.card b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.card small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .meta { display: grid; gap: 2px; min-width: 0; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(172px, 196px); gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* аватар и рамки */
.av { border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-deep)) center / cover; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: #fff; flex: none; overflow: hidden; }
.av.s { width: 36px; height: 36px; font-size: 14px; }
.av.m { width: 112px; height: 112px; font-size: 38px; }
.av.l { width: 196px; height: 196px; font-size: 64px; }
.avw { position: relative; isolation: isolate; display: inline-grid; border-radius: 50%; flex: none; --fc: #e1222c; --fc2: #ff9a3c; --fw: 4px; transition: transform .2s var(--ease); }
.avw.s { --fw: 2px; } .avw.l { --fw: 6px; }
.fr-solid { box-shadow: 0 0 0 var(--fw) var(--fc); }
.fr-double { box-shadow: 0 0 0 calc(var(--fw) * .6) var(--fc), 0 0 0 calc(var(--fw) * 1.3) var(--bg), 0 0 0 calc(var(--fw) * 1.9) var(--fc); }
.fr-gradient { padding: var(--fw); background: linear-gradient(135deg, var(--fc), var(--fc2)); }
.fr-glow { box-shadow: 0 0 0 calc(var(--fw) * .6) var(--fc), 0 0 calc(var(--fw) * 6) calc(var(--fw) * 1.2) color-mix(in srgb, var(--fc) 55%, transparent); }
.fr-neon { box-shadow: 0 0 0 calc(var(--fw) * .6) var(--fc), 0 0 calc(var(--fw) * 5) var(--fc); animation: neon 2.2s ease-in-out infinite; }
@keyframes neon { 50% { box-shadow: 0 0 0 calc(var(--fw) * .6) var(--fc2), 0 0 calc(var(--fw) * 9) calc(var(--fw) * 1.5) var(--fc2); } }
.fr-dashed { outline: calc(var(--fw) * .7) dashed var(--fc); outline-offset: calc(var(--fw) * .6); }
.fr-vinyl::before { content: ""; position: absolute; inset: calc(var(--fw) * -1.1); z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, var(--fc), var(--fc2), var(--fc), var(--fc2), var(--fc)); animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* артисты */
.artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.artist { display: grid; justify-items: center; gap: 12px; padding: 18px 10px 14px; border-radius: var(--radius); text-align: center; transition: background .2s; min-width: 0; }
.artist:hover { background: var(--surface); }
.artist:hover .avw { transform: scale(1.04); }
.artist b { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist small { color: var(--muted); }

/* таблица треков */
.table { display: grid; min-width: 0; }
.thead, .tr { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 170px) 64px 40px 56px 36px; gap: 12px; align-items: center; padding: 8px 12px; }
.thead { color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tr { border-radius: 10px; transition: background .12s; }
.tr:hover { background: var(--surface); }
.tr.cur { background: linear-gradient(90deg, rgba(225,34,44,.14), var(--raise) 60%); }
.tr .idx { position: relative; text-align: center; color: var(--muted); font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.tr .idx button { position: absolute; inset: -6px; display: none; place-items: center; color: var(--fg); }
.tr .idx button svg { width: 16px; height: 16px; fill: currentColor; }
.tr:hover .idx .n, .tr:focus-within .idx .n { visibility: hidden; }
.tr:hover .idx button, .tr:focus-within .idx button { display: grid; }
.tr.cur .idx .n { color: var(--red-hi); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--red-hi); animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.eq.stop i { animation: none; height: 40%; }
.tt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tt .cv { width: 44px; height: 44px; border-radius: 6px; background: var(--raise) center / cover; flex: none; }
.tt .nm { min-width: 0; display: grid; line-height: 1.3; }
.tt .nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 700; }
.tr.cur .tt .nm b { color: var(--red-hi); }
.tt .nm .sub { display: flex; gap: 6px; align-items: center; min-width: 0; color: var(--muted); }
.tt .nm .sub button, .linkish { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-weight: 600; text-align: left; }
.tt .nm .sub button:hover, .linkish:hover { color: var(--fg); text-decoration: underline; }
.badge-e { flex: none; font-size: 10px; font-weight: 800; background: var(--muted); color: var(--bg); border-radius: 3px; padding: 0 4px; line-height: 16px; }
.tg { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.likebtn { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; transition: color .15s, transform .15s; }
.likebtn:hover { color: var(--fg); }
.likebtn[aria-pressed="true"] { color: var(--red-hi); }
.likebtn[aria-pressed="true"] .ico { fill: currentColor; animation: pop .3s var(--ease); }
@keyframes pop { 50% { transform: scale(1.3); } }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty strong { color: var(--fg); font-size: 17px; }

/* лента с волнами, как в SoundCloud */
.stream { display: grid; gap: 14px; }
.sitem { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 14px; border-radius: var(--radius); background: var(--surface); transition: background .2s; }
.sitem:hover { background: var(--raise); }
.sitem.cur { box-shadow: inset 0 0 0 1px rgba(225,34,44,.4); }
.sitem .art { width: 132px; aspect-ratio: 1; border-radius: 10px; background: var(--raise) center / cover; }
.sitem .body { display: grid; gap: 8px; min-width: 0; align-content: start; }
.sitem .top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sitem .pbtn { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; transition: transform .15s, background .15s; }
.sitem .pbtn:hover { background: var(--red-hi); transform: scale(1.06); }
.sitem .pbtn svg { width: 18px; height: 18px; fill: currentColor; }
.sitem .ttl { min-width: 0; display: grid; line-height: 1.3; }
.sitem .ttl small { color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sitem .ttl b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sitem .side-meta { margin-left: auto; display: grid; justify-items: end; gap: 4px; color: var(--muted); font-size: 12px; flex: none; }
.sitem .chipline { display: flex; gap: 6px; flex-wrap: wrap; }
.sitem .chipline span { background: var(--raise2); border-radius: 999px; padding: 1px 9px; font-size: 11px; font-weight: 700; color: var(--muted); }
.sitem .acts { display: flex; gap: 4px; align-items: center; }
.sitem canvas.wave { height: 58px; }

/* поиск */
.searchbar { position: relative; max-width: 600px; }
.searchbar .ico { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--muted); }
.searchbar input { width: 100%; background: var(--raise); border: 1.5px solid transparent; border-radius: 999px; padding: 15px 18px 15px 52px; font-size: 16px; font-weight: 600; transition: border-color .15s, background .15s; }
.searchbar input:focus { outline: none; border-color: var(--fg); background: var(--surface); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--raise); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 13px; color: var(--fg); transition: background .15s, color .15s; }
.chip:hover { background: var(--line); }
.chip[aria-pressed="true"] { background: var(--red); color: #fff; }

/* страница артиста */
.ahead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 30px; align-items: end; padding: 120px 32px 32px; }
.ahead.short { padding-top: 40px; }
.ahead .txt { display: grid; gap: 10px; min-width: 0; }
.ahead h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 6vw, 78px); line-height: .95; letter-spacing: -.04em; margin: 0; overflow-wrap: anywhere; text-shadow: 0 4px 30px rgba(0,0,0,.5); }
.ahead .stats { color: var(--muted); font-weight: 600; display: flex; gap: 14px; flex-wrap: wrap; }
.ahead .stats b { color: var(--fg); }
.banner { position: absolute; inset: 0; z-index: -2; background: center / cover; }
.banner + .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,9,10,.1) 0%, rgba(9,9,10,.6) 55%, var(--bg) 100%); }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--fg); }
.verified svg { width: 18px; height: 18px; fill: var(--red-hi); }
.abody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.about { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; min-width: 0; position: sticky; top: 20px; }
.about h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.about p { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.about .links { display: grid; gap: 6px; }
.about .links a { color: var(--fg); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.about .links a:hover { color: var(--red-hi); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { background: var(--raise); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.actions .grow { flex: 1; }
.seg { display: inline-flex; background: var(--raise); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* плейлисты и альбомы */
.mos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; overflow: hidden; background: linear-gradient(135deg, var(--red), var(--red-deep)); flex: none; }
.mos.single { display: block; background-size: cover; background-position: center; }
.mos i { background: center / cover; }
.mos.none { display: grid; place-items: center; grid-template-columns: 1fr; color: #fff; }
.mos.none svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 2; }
.plcard { background: var(--surface); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; text-align: left; transition: background .2s, transform .2s var(--ease); min-width: 0; }
.plcard:hover { background: var(--raise); transform: translateY(-3px); }
.plcard .mos { width: 100%; aspect-ratio: 1; max-width: 100%; border-radius: 10px; }
.plcard b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.plcard small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plcard .meta { display: grid; gap: 2px; min-width: 0; }
.ahead .mos { width: 220px; height: 220px; border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); }
.side-pl { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 2px; scrollbar-width: thin; }
.side-pl .plrow { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; text-align: left; color: var(--muted); font-weight: 600; min-width: 0; }
.side-pl .plrow:hover { background: var(--raise); color: var(--fg); }
.side-pl .plrow[aria-current="page"] { background: var(--raise); color: var(--fg); }
.side-pl .plrow .mos { width: 36px; height: 36px; border-radius: 5px; }
.side-pl .plrow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-pl .newpl { color: var(--fg); }
.side-pl .newpl .plus { width: 36px; height: 36px; border-radius: 5px; background: var(--raise); display: grid; place-items: center; font-size: 20px; }

/* приветствие и быстрые плитки */
.greet { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.03em; margin: 0; line-height: 1.05; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.qtile { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 12px; background: rgba(255,255,255,.04); border-radius: 10px; overflow: hidden; text-align: left; font-weight: 800; transition: background .15s; min-width: 0; cursor: pointer; }
.qtile:hover { background: rgba(255,255,255,.08); }
.qtile .art { width: 58px; height: 58px; background: var(--raise) center / cover; border-radius: 0; }
.qtile > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }

/* моя волна */
.wave-banner { position: relative; overflow: hidden; border-radius: 20px; padding: 30px 32px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center;
  background: radial-gradient(90% 160% at 0% 50%, #3a060b 0%, #12080a 60%, var(--surface) 100%); border: 1px solid #2c0d10; }
.wave-banner .bars { position: absolute; inset: auto 0 0 0; height: 70%; display: flex; align-items: flex-end; gap: 3px; opacity: .12; pointer-events: none; padding: 0 12px; }
.wave-banner .bars i { flex: 1; background: var(--red-hi); border-radius: 2px 2px 0 0; height: var(--h); transform-origin: bottom; }
.wave-banner.on .bars i { animation: bar 1.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes bar { 50% { transform: scaleY(.35); } }
.wave-orb { position: relative; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--red-hi), var(--red) 40%, var(--red-deep) 75%); box-shadow: 0 0 60px -6px rgba(225,34,44,.7); display: grid; place-items: center; color: #fff; }
.wave-orb svg { width: 34px; height: 34px; }
.wave-banner.on .wave-orb { animation: orb 2.4s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.06); box-shadow: 0 0 90px 0 rgba(225,34,44,.8); } }
.wave-banner h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.03em; }
.wave-banner p { margin: 4px 0 0; color: var(--muted); max-width: 54ch; }
.wave-banner .tags { margin-top: 10px; }
.wave-banner .tags span { background: rgba(255,255,255,.07); }
.wave-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--red-hi); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- формы ---------- */
.form { max-width: 760px; display: grid; gap: 24px; }
.form .lead { color: var(--muted); margin: 0; font-size: 15px; max-width: 62ch; }
.group { background: var(--surface); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; }
.group h3 { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.group.dangerzone { box-shadow: inset 0 0 0 1px var(--red-deep); }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld > span { font-weight: 700; font-size: 13px; }
.fld input[type=text], .fld input[type=url], .fld input[type=password], .fld input[type=number], .fld input:not([type]), .fld textarea, .fld select {
  width: 100%; background: var(--bg); border: 1.5px solid var(--line); border-radius: 9px; padding: 11px 14px; color: var(--fg); transition: border-color .15s; }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--red); }
.fld textarea { resize: vertical; min-height: 96px; }
.fld small { color: var(--dim); font-size: 12px; }
.fld.bad input, .fld.bad textarea { border-color: var(--red-hi); }
.msg, .formerr { color: var(--red-hi); font-size: 12px; font-weight: 700; }
.formerr { font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.three { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.avpick { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 2px; flex: none; }
.switch { display: flex; gap: 14px; align-items: center; cursor: pointer; justify-content: space-between; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--red); }
.switch input:checked::after { transform: translateX(18px); }
.switch span { display: grid; gap: 2px; }
.switch small { color: var(--muted); }
.coverpick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.coverpick .art { width: 96px; height: 96px; border-radius: 10px; background: var(--raise) center / cover; border: 1.5px solid var(--line); flex: none; }
.bannerpick { position: relative; height: 140px; border-radius: 12px; background: linear-gradient(135deg, var(--red-deep), var(--surface)) center / cover; border: 1.5px dashed var(--line); display: grid; place-items: center; overflow: hidden; }
.bannerpick .acts { display: flex; gap: 8px; }
.framepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.framepick button { display: grid; justify-items: center; gap: 10px; padding: 14px 6px 10px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.framepick button[aria-pressed="true"] { border-color: var(--red); color: var(--fg); background: rgba(225,34,44,.06); }
.framepick .avw { --fw: 3px; }
.framepick .av { width: 46px; height: 46px; font-size: 16px; }
.colors { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.colors label { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 13px; }
.colors input[type=color] { width: 40px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; background: var(--bg); }
.choice label:has(input:checked) { border-color: var(--red); background: rgba(225,34,44,.06); }
.choice input { accent-color: var(--red); margin: 0; }
.choice b { display: flex; gap: 8px; align-items: center; }
.choice small { color: var(--muted); }
.progress { display: grid; gap: 6px; }
.bar { height: 6px; background: var(--raise); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.bar.ok i { background: var(--ok); }

/* ---------- студия ---------- */
.drop { border: 2px dashed var(--line); border-radius: 18px; padding: 42px 20px; text-align: center; display: grid; gap: 10px; place-items: center; cursor: pointer; transition: border-color .15s, background .15s;
  background: radial-gradient(70% 120% at 50% 0%, rgba(225,34,44,.08), transparent 70%); }
.drop:hover, .drop.over { border-color: var(--red); background: rgba(225,34,44,.07); }
.drop .ico { width: 46px; height: 46px; color: var(--red-hi); stroke-width: 1.6; }
.drop strong { font-size: 18px; font-family: var(--f-display); font-weight: 600; }
.drop small { color: var(--muted); max-width: 56ch; }
.usage { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.queue { display: grid; gap: 6px; }
.qrow { display: grid; grid-template-columns: minmax(0, 1fr) 160px 90px; gap: 14px; align-items: center; background: var(--surface); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.qrow .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.qrow .st { text-align: right; color: var(--muted); font-size: 12px; }
.qrow.err .st { color: var(--red-hi); }
.qrow.done .st { color: var(--ok); }
.bulkbar { position: sticky; top: 10px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: rgba(28,28,31,.92); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.bulkbar b { margin-right: 6px; }
.drafts { display: grid; gap: 8px; }
.drow { background: var(--surface); border-radius: 12px; overflow: hidden; transition: background .15s; }
.drow.open { background: var(--raise); }
.drow .line { display: grid; grid-template-columns: 22px 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; }
.drow .line input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
.drow .cv { width: 52px; height: 52px; border-radius: 8px; background: var(--raise2) center / cover; position: relative; }
.drow .cv button { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; background: rgba(0,0,0,.5); border-radius: 8px; transition: opacity .15s; }
.drow .cv:hover button { opacity: 1; }
.drow .cv svg { width: 18px; height: 18px; fill: currentColor; }
.drow .info { min-width: 0; display: grid; gap: 2px; }
.drow .info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .info small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.flag { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 8px; background: var(--raise2); color: var(--muted); }
.flag.warn { background: rgba(255,181,71,.12); color: var(--warn); }
.flag.ok { background: rgba(60,207,122,.12); color: var(--ok); }
.drow .btns { display: flex; gap: 6px; align-items: center; }
.drow .editor { padding: 6px 14px 18px 50px; display: grid; gap: 16px; }

/* ---------- плеер ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--player-h); background: rgba(0,0,0,.92); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.player .topbar { position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: transparent; cursor: pointer; }
.player .topbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-deep), var(--red-hi)); box-shadow: 0 0 10px rgba(255,59,68,.6); }
.pl-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-cover { width: 58px; height: 58px; border-radius: 8px; background: var(--raise) center / cover; flex: none; position: relative; overflow: hidden; }
.pl-cover::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E") center / 22px no-repeat; opacity: 0; transition: opacity .15s; }
.pl-cover:hover::after { opacity: 1; }
.pl-meta { min-width: 0; display: grid; line-height: 1.3; }
.pl-meta b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; cursor: pointer; }
.pl-meta button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
.pl-meta button:hover { color: var(--fg); text-decoration: underline; }
.pl-center { display: grid; gap: 2px; justify-items: center; min-width: 0; }
.ctl { display: flex; align-items: center; gap: 14px; }
.ctl button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; position: relative; transition: color .15s, transform .15s; }
.ctl button:hover { color: var(--fg); }
.ctl button svg { width: 18px; height: 18px; fill: currentColor; }
.ctl button.on { color: var(--red-hi); }
.ctl button.on::after { content: ""; position: absolute; bottom: 1px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.ctl button .one { position: absolute; top: 3px; right: 3px; font-size: 8px; font-weight: 800; }
.ctl .pp { width: 42px; height: 42px; background: var(--fg); color: var(--bg); }
.ctl .pp:hover { color: var(--bg); transform: scale(1.07); }
.seek { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seek span:first-child { text-align: right; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: transparent; cursor: pointer; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--fg) var(--p), var(--line) var(--p)); }
input[type=range]:hover::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--red-hi) var(--p), var(--line) var(--p)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--fg); margin-top: -4px; opacity: 0; transition: opacity .1s; }
input[type=range]:hover::-webkit-slider-thumb, input[type=range]:focus-visible::-webkit-slider-thumb { opacity: 1; }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--fg); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--fg); }
.pl-right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.pl-right .vol { width: 104px; }
.pl-right button { width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.pl-right button:hover { color: var(--fg); background: var(--raise); }
.pl-right button.on { color: var(--red-hi); }
.player.idle .pl-meta b { color: var(--muted); }

/* полноэкранная панель «Сейчас играет» */
.np { position: fixed; inset: 0; z-index: 70; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr);
  transform: translateY(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.np.open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.np .bd { position: absolute; inset: -80px; z-index: -2; background: var(--bg) center / cover; filter: blur(70px) saturate(1.5) brightness(.45); transform: scale(1.15); transition: background-image .6s; }
.np::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 30% 0%, rgba(92,10,16,.35), rgba(9,9,10,.85) 70%); }
.np .bar2 { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.np .bar2 button { width: 42px; height: 42px; display: grid; place-items: center; color: var(--fg); border-radius: 50%; background: rgba(255,255,255,.06); }
.np .bar2 button:hover { background: rgba(255,255,255,.12); }
.np .stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 8px 40px 32px; min-height: 0; }
.np .mainc { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 26px; min-height: 0; align-items: center; }
.np .art { justify-self: center; width: min(46vh, 520px, 100%); aspect-ratio: 1; border-radius: 16px; background: var(--raise) center / cover; box-shadow: 0 40px 100px -30px rgba(0,0,0,.95); transition: transform .4s var(--ease); }
.np.playing .art { transform: scale(1.015); }
.np .foot { width: 100%; max-width: 860px; justify-self: center; display: grid; gap: 14px; }
.np .t { display: flex; align-items: center; gap: 14px; }
.np .t > div { min-width: 0; flex: 1; display: grid; }
.np .t b { font-family: var(--f-display); font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.02em; }
.np .t .art-link { color: var(--muted); font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.np .t .art-link:hover { color: var(--fg); }
.np canvas.wave { height: 92px; }
.np .ctl { justify-content: center; gap: 22px; }
.np .ctl button { width: 50px; height: 50px; }
.np .ctl button svg { width: 24px; height: 24px; }
.np .ctl .pp { width: 72px; height: 72px; background: var(--red); color: #fff; box-shadow: 0 12px 34px -10px rgba(225,34,44,.9); }
.np .ctl .pp:hover { color: #fff; background: var(--red-hi); }
.np .ctl .pp svg { width: 30px; height: 30px; }
.np .qpanel { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 16px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; min-height: 0; backdrop-filter: blur(10px); }
.np .qpanel h3 { margin: 0; font-family: var(--f-display); font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.np .qpanel h3 small { font-family: var(--f-body); color: var(--muted); font-size: 12px; }
.np .qlist { overflow-y: auto; display: grid; align-content: start; gap: 2px; scrollbar-width: thin; }
.qitem { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: 8px; text-align: left; }
.qitem:hover { background: rgba(255,255,255,.06); }
.qitem.cur { background: rgba(225,34,44,.16); }
.qitem.cur b { color: var(--red-hi); }
.qitem .cv { width: 42px; height: 42px; border-radius: 5px; background: var(--raise) center / cover; }
.qitem div { min-width: 0; display: grid; line-height: 1.25; }
.qitem b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qitem .d { font: 500 11px var(--f-mono); color: var(--dim); }
.qlabel { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 800; padding: 10px 6px 4px; }

/* ---------- вкладки на телефоне, всплывашки, диалоги ---------- */
.tabs { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + 20px); translate: -50% 0; background: var(--fg); color: var(--bg); font-weight: 700; padding: 10px 18px; border-radius: 999px; z-index: 120; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8); max-width: calc(100vw - 32px); animation: toastIn .25s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.morebtn { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); border-radius: 50%; }
.morebtn:hover, .morebtn[aria-expanded="true"] { color: var(--fg); background: var(--raise); }
.morebtn svg { width: 18px; height: 18px; fill: currentColor; }
.pop { position: fixed; z-index: 90; width: 270px; max-height: min(440px, calc(100vh - 32px)); overflow-y: auto; background: #1f1f23; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.95); display: grid; animation: toastIn .15s var(--ease); }
.pop .ph { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; line-height: 1.3; }
.pop .ph b, .pop .ph small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop .ph small { color: var(--muted); }
.pop button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; text-align: left; font-weight: 600; width: 100%; }
.pop button:hover { background: var(--raise); }
.pop button:disabled { color: var(--dim); cursor: default; background: none; }
.pop button.danger { color: var(--red-hi); }
.pop .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 800; padding: 10px 10px 4px; }
.pop .sep { height: 1px; background: var(--line); margin: 4px 0; }
.pop .note { color: var(--muted); font-size: 12px; padding: 6px 10px; }
.dlg { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.dlg form { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--raise); border-radius: 18px; padding: 26px; display: grid; gap: 16px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: toastIn .2s var(--ease); }
.dlg h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.dlg .tabsw { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; }
.dlg .tabsw button { padding: 9px; border-radius: 999px; font-weight: 800; color: var(--muted); }
.dlg .tabsw button[aria-pressed="true"] { background: var(--red); color: #fff; }
.uploader { color: var(--dim); font-size: 12px; white-space: nowrap; }
.uploader button { color: var(--dim) !important; font-weight: 600; }

@media (max-width: 1100px) {
  .abody { grid-template-columns: 1fr; }
  .about { position: static; }
  .np .stage { grid-template-columns: 1fr; }
  .np .qpanel { display: none; }
  .np.showq .qpanel { display: grid; }
  .np.showq .mainc { display: none; }
}
@media (max-width: 900px) {
  :root { --player-h: 64px; --side-w: 0px; }
  .side { display: none; }
  .main { padding: 20px 16px calc(var(--player-h) + 84px); }
  .view { gap: 30px; }
  .player { bottom: 62px; height: var(--player-h); grid-template-columns: minmax(0, 1fr) auto; margin: 0 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(28,28,31,.95); padding: 0 8px; overflow: hidden; }
  .player .topbar { top: auto; bottom: 0; height: 2px; }
  .pl-cover { width: 46px; height: 46px; }
  .pl-center .seek, .pl-right, .ctl .shuf, .ctl .rep, .ctl .prev { display: none; }
  .pl-center { justify-items: end; }
  .ctl { gap: 6px; }
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; background: #000; border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 8px; }
  .tabs button { display: grid; justify-items: center; gap: 2px; font-size: 10px; font-weight: 700; color: var(--muted); padding: 4px 6px; min-width: 56px; }
  .tabs button[aria-current="page"] { color: var(--fg); }
  .tabs button[aria-current="page"] .ico { color: var(--red-hi); }
  .hero { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .hero .art { width: 100%; max-width: 320px; }
  .ahead { grid-template-columns: 1fr; padding: 90px 20px 22px; justify-items: start; }
  .ahead.short { padding-top: 28px; }
  .ahead .mos { width: 160px; height: 160px; }
  .av.l { width: 140px; height: 140px; font-size: 48px; }
  .thead { display: none; }
  .tr { grid-template-columns: minmax(0, 1fr) 36px 36px; padding: 8px 4px; }
  .tr .idx, .tr .tg, .tr .lk, .tr .dur { display: none; }
  .sitem { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .sitem .art { width: 76px; }
  .sitem .side-meta { display: none; }
  .sitem canvas.wave { height: 44px; }
  .wave-banner { grid-template-columns: 1fr; padding: 22px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .two, .three, .choice { grid-template-columns: 1fr; }
  .group { padding: 16px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .artists { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .av.m { width: 88px; height: 88px; font-size: 30px; }
  .qrow { grid-template-columns: minmax(0, 1fr) 80px; }
  .qrow .bar { display: none; }
  .drow .line { grid-template-columns: 22px 44px minmax(0, 1fr); }
  .drow .btns { grid-column: 1 / -1; justify-content: flex-end; }
  .drow .cv { width: 44px; height: 44px; }
  .drow .editor { padding-left: 14px; }
  .np .stage { padding: 0 18px 24px; }
  .np .art { width: min(78vw, 42vh); }
  .np canvas.wave { height: 64px; }
  .np .ctl { gap: 10px; }
  .toast { bottom: calc(var(--player-h) + 84px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
