:root {
  --bg: #0d0c0f;
  --bg2: #16141a;
  --card: #1c1a21;
  --card-h: #26232c;
  --line: #2c2933;
  --text: #f3efe9;
  --dim: #a39fa8;
  --mute: #6e6a74;
  --acc: #ff5a36;
  --acc-rgb: 255, 90, 54;
  --side: 232px;
  --panel: 0px;
  --player: 92px;
  --r: 14px;
  font-family: Manrope, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body { font-size: 14px; -webkit-font-smoothing: antialiased; }
body.panel-open { --panel: 340px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.fill { fill: currentColor; stroke: none; }
::selection { background: rgba(var(--acc-rgb), .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #34303b; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 70% -10%, rgba(var(--acc-rgb), .22), transparent 70%),
    radial-gradient(700px 500px at 10% 110%, rgba(var(--acc-rgb), .08), transparent 70%);
  transition: background 1.2s;
}

/* ---------- sidebar ---------- */
.side {
  position: fixed; left: 0; top: 0; bottom: var(--player); width: var(--side); z-index: 2;
  padding: 22px 14px 12px; display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line); background: rgba(13, 12, 15, .6); backdrop-filter: blur(20px);
}
.logo { font-family: Unbounded; font-weight: 800; font-size: 22px; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; padding: 0 10px 18px; }
.logo-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--acc); position: relative; transition: background .8s; }
.logo-mark::after { content: ""; position: absolute; inset: 9px 6px; border: 3px solid #fff; border-radius: 50%; border-color: #fff transparent; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a, .side-pls a {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px;
  color: var(--dim); font-weight: 600; transition: background .15s, color .15s;
}
.side nav a:hover, .side-pls a:hover { background: var(--card); color: var(--text); }
.side nav a.on, .side-pls a.on { background: var(--card-h); color: var(--text); }
.side nav a.on svg { color: var(--acc); }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 8px 12px; color: var(--mute); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.side-pls { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.side-pls a { font-weight: 500; padding: 8px 12px; }
.side-pls a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-pls .pl-ico { width: 32px; height: 32px; border-radius: 7px; background: var(--card-h); display: grid; place-items: center; flex: none; overflow: hidden; }
.side-pls .pl-ico img { width: 100%; height: 100%; object-fit: cover; }
.side-pls .pl-ico svg { width: 16px; height: 16px; }
.side-empty { color: var(--mute); font-size: 12px; padding: 4px 12px; line-height: 1.5; }

/* ---------- main ---------- */
.main {
  position: fixed; left: var(--side); right: var(--panel); top: 0; bottom: var(--player);
  overflow-y: auto; z-index: 1; transition: right .25s;
}
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px;
  padding: 16px 32px; background: linear-gradient(var(--bg) 40%, transparent);
}
.nav-arrows { display: flex; gap: 6px; }
.search { position: relative; flex: 1; max-width: 560px; display: flex; align-items: center; }
.search > svg { position: absolute; left: 16px; color: var(--mute); width: 20px; height: 20px; }
.search input {
  width: 100%; height: 46px; border-radius: 23px; border: 1px solid var(--line); background: var(--bg2);
  color: var(--text); font: inherit; font-size: 15px; padding: 0 20px 0 48px; outline: none; transition: border .15s, background .15s;
}
.search input:focus { border-color: rgba(var(--acc-rgb), .7); background: var(--card); }
.suggest {
  position: absolute; top: 52px; left: 0; right: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 6px; display: none; box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.suggest.on { display: block; }
.suggest div { padding: 9px 14px; border-radius: 8px; cursor: pointer; display: flex; gap: 12px; align-items: center; color: var(--dim); }
.suggest div svg { width: 16px; height: 16px; color: var(--mute); }
.suggest div.on, .suggest div:hover { background: var(--card-h); color: var(--text); }

.view { padding: 8px 32px 48px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--dim);
  transition: color .15s, background .15s, transform .1s; position: relative;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.07); }
.icon-btn:active { transform: scale(.92); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.sm svg { width: 17px; height: 17px; }
.icon-btn.on, .icon-btn.toggle.on { color: var(--acc); }
.icon-btn.toggle.on::after { content: ""; position: absolute; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--acc); }

h1.h { font-family: Unbounded; font-weight: 800; font-size: 34px; letter-spacing: -1px; margin: 18px 0 22px; }
h2.h { font-family: Unbounded; font-weight: 700; font-size: 19px; letter-spacing: -.3px; margin: 34px 0 14px; display: flex; align-items: center; justify-content: space-between; }
h2.h small { font-family: Manrope; font-size: 13px; color: var(--dim); font-weight: 700; cursor: pointer; }
h2.h small:hover { color: var(--text); }

.tabs { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.tabs button { padding: 8px 16px; border-radius: 20px; background: var(--card); color: var(--dim); font-weight: 700; font-size: 13px; transition: .15s; }
.tabs button:hover { color: var(--text); background: var(--card-h); }
.tabs button.on { background: var(--text); color: var(--bg); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 18px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.row > * { scroll-snap-align: start; }
.card { padding: 12px; border-radius: var(--r); background: transparent; cursor: pointer; transition: background .2s; position: relative; min-width: 0; }
.card:hover { background: var(--card); }
.card .art { aspect-ratio: 1; border-radius: 10px; background: var(--card-h) center/cover; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,.35); overflow: hidden; }
.card.round .art { border-radius: 50%; }
.card .art .pbtn {
  position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; background: var(--acc); color: #fff;
  display: grid; place-items: center; opacity: 0; transform: translateY(8px); transition: .2s; box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.card:hover .art .pbtn { opacity: 1; transform: none; }
.card .t { font-weight: 700; margin-top: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .s { color: var(--dim); font-size: 13px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.round .t, .card.round .s { text-align: center; }

/* ---------- track list ---------- */
.tracks { display: flex; flex-direction: column; }
.tr {
  display: grid; grid-template-columns: 34px 48px minmax(0, 1fr) minmax(0, .7fr) 44px 56px 38px; align-items: center; gap: 14px;
  padding: 6px 10px; border-radius: 10px; cursor: default; user-select: none;
}
.tr:hover { background: rgba(255,255,255,.05); }
.tr.playing .tt { color: var(--acc); }
.tr .n { color: var(--mute); text-align: center; font-variant-numeric: tabular-nums; position: relative; }
.tr .n .pl { display: none; color: var(--text); }
.tr:hover .n .num { display: none; }
.tr:hover .n .pl { display: grid; place-items: center; }
.tr.playing .n .num { display: none; }
.tr.playing:not(:hover) .n .eq { display: flex; }
.eq { display: none; gap: 2px; height: 14px; align-items: flex-end; justify-content: center; }
.eq i { width: 3px; background: var(--acc); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
body.paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.tr .th { width: 48px; height: 48px; border-radius: 7px; background: var(--card-h) center/cover; }
.tr .tm { min-width: 0; }
.tr .tt { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr .ta, .tr .tal { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.tr .tal { margin: 0; }
.tr .ta a:hover, .tr .tal a:hover, .np-artist a:hover, .full-artist a:hover, .hero .sub a:hover { color: var(--text); text-decoration: underline; }
.tr .lk { opacity: 0; }
.tr:hover .lk, .tr .lk.on { opacity: 1; }
.tr .d { color: var(--mute); font-variant-numeric: tabular-nums; text-align: right; }
.tr .more { opacity: 0; }
.tr:hover .more { opacity: 1; }
.tracks.compact .tr { grid-template-columns: 48px minmax(0, 1fr) 38px; }
.tracks.compact .tr .n, .tracks.compact .tr .tal, .tracks.compact .tr .d, .tracks.compact .tr .lk { display: none; }

/* ---------- hero ---------- */
.hero { display: flex; gap: 30px; align-items: flex-end; margin: 18px 0 26px; }
.hero .cover { width: 232px; height: 232px; border-radius: 16px; background: var(--card-h) center/cover; flex: none; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.hero.artist .cover { border-radius: 50%; }
.hero .kind { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--dim); }
.hero .title { font-family: Unbounded; font-weight: 800; font-size: clamp(28px, 4vw, 54px); letter-spacing: -1.5px; line-height: 1.05; margin: 10px 0 14px; }
.hero .sub { color: var(--dim); font-weight: 600; }
.hero .sub b { color: var(--text); }
.actions { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.big-play {
  width: 58px; height: 58px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(var(--acc-rgb), .4); transition: transform .12s;
}
.big-play:hover { transform: scale(1.06); }
.big-play svg { width: 26px; height: 26px; }
.pill { padding: 10px 18px; border-radius: 22px; border: 1px solid var(--line); color: var(--text); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; transition: .15s; }
.pill:hover { border-color: var(--dim); background: rgba(255,255,255,.04); }
.pill svg { width: 18px; height: 18px; }
.desc { color: var(--dim); line-height: 1.6; max-width: 820px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.desc.open { -webkit-line-clamp: unset; }

.empty { color: var(--dim); text-align: center; padding: 80px 20px; line-height: 1.7; }
.empty svg { width: 52px; height: 52px; color: var(--mute); margin-bottom: 10px; }
.empty b { color: var(--text); font-size: 17px; display: block; }
.loading { display: flex; justify-content: center; padding: 80px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--acc); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--card) 0%, var(--card-h) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

.top-result { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 24px; }
.top-card { background: var(--card); border-radius: var(--r); padding: 22px; cursor: pointer; transition: background .2s; position: relative; }
.top-card:hover { background: var(--card-h); }
.top-card .art { width: 104px; height: 104px; border-radius: 10px; background: var(--card-h) center/cover; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.top-card.round .art { border-radius: 50%; }
.top-card .t { font-family: Unbounded; font-weight: 700; font-size: 26px; margin: 18px 0 6px; letter-spacing: -.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-card .s { color: var(--dim); font-weight: 600; }
.top-card .s .tag { background: var(--bg); color: var(--text); padding: 3px 10px; border-radius: 12px; font-size: 12px; margin-left: 6px; }
.top-card .big-play { position: absolute; right: 20px; bottom: 20px; opacity: 0; transform: translateY(8px); transition: .2s; }
.top-card:hover .big-play { opacity: 1; transform: none; }

/* ---------- player ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--player); z-index: 10;
  display: grid; grid-template-columns: minmax(200px, 1fr) minmax(360px, 640px) minmax(200px, 1fr); align-items: center; gap: 20px;
  padding: 0 20px; background: rgba(13, 12, 15, .88); backdrop-filter: blur(24px); border-top: 1px solid var(--line);
}
.np { display: flex; align-items: center; gap: 14px; min-width: 0; }
.np-art { width: 58px; height: 58px; border-radius: 9px; background: var(--card-h) center/cover; flex: none; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.4); transition: transform .15s; }
.np-art:hover { transform: scale(1.05); }
.np-meta { min-width: 0; }
.np-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-artist { color: var(--dim); font-size: 13px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.like.on svg { fill: var(--acc); stroke: var(--acc); }
.lk.on svg { fill: var(--acc); stroke: var(--acc); color: var(--acc); }
.ctl { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ctl-btns { display: flex; align-items: center; justify-content: center; gap: 14px; }
.play { width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; transition: transform .1s; }
.play:hover { transform: scale(1.07); }
.play svg { width: 22px; height: 22px; }
.play.busy svg { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
#repeatBtn .one { display: none; position: absolute; font-style: normal; font-size: 9px; font-weight: 800; top: 13px; left: 0; right: 0; text-align: center; }
#repeatBtn.one .one { display: block; }
.seek { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.seek span { width: 40px; text-align: center; }
.bar { flex: 1; height: 16px; position: relative; cursor: pointer; display: flex; align-items: center; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: #3a3641; }
.bar .buf, .bar .fillbar { position: absolute; left: 0; height: 4px; border-radius: 4px; }
.bar .buf { background: #55505d; }
.bar .fillbar { background: var(--text); }
.bar:hover .fillbar, .bar.drag .fillbar { background: var(--acc); }
.bar .knob { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; transform: translateX(-50%); opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.bar:hover .knob, .bar.drag .knob { opacity: 1; }
.extra { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.extra .vol { flex: 0 0 110px; margin-left: 4px; }

/* ---------- side panel ---------- */
.panel {
  position: fixed; right: 0; top: 0; bottom: var(--player); width: 340px; z-index: 3;
  background: rgba(22, 20, 26, .92); backdrop-filter: blur(20px); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column;
}
body.panel-open .panel { transform: none; }
.panel-tabs { display: flex; align-items: center; gap: 6px; padding: 16px 14px 10px; }
.panel-tabs button[data-tab] { padding: 8px 14px; border-radius: 18px; font-weight: 700; color: var(--dim); }
.panel-tabs button[data-tab].on { background: var(--card-h); color: var(--text); }
.panel-tabs .close { margin-left: auto; }
.panel-body { flex: 1; overflow-y: auto; padding: 4px 10px 20px; }
.q-label { color: var(--mute); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; padding: 16px 10px 8px; display: flex; justify-content: space-between; }
.q-label button { color: var(--mute); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 12px; }
.q-label button:hover { color: var(--text); }
.q-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 9px; cursor: pointer; }
.q-item:hover { background: rgba(255,255,255,.05); }
.q-item.cur { background: rgba(var(--acc-rgb), .14); }
.q-item.cur .qt { color: var(--acc); }
.q-item.past { opacity: .45; }
.q-item.dragging { opacity: .3; }
.q-item.over { box-shadow: inset 0 2px 0 var(--acc); }
.q-item .qth { width: 42px; height: 42px; border-radius: 6px; background: var(--card-h) center/cover; }
.q-item .qt { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-item .qa { color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.q-item .icon-btn { opacity: 0; }
.q-item:hover .icon-btn { opacity: 1; }

.lyrics { padding: 10px 12px 40vh; font-size: 21px; font-weight: 800; line-height: 1.45; }
.lyrics p { margin: 0 0 14px; color: var(--mute); transition: color .3s, transform .3s; cursor: pointer; transform-origin: left; }
.lyrics p.past { color: var(--dim); }
.lyrics p.now { color: var(--text); transform: scale(1.03); }
.lyrics.plain p { color: var(--text); cursor: default; font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.lyrics .src { font-size: 12px; color: var(--mute); font-weight: 600; margin-top: 24px; }

/* ---------- fullscreen ---------- */
.full {
  position: fixed; inset: 0 0 var(--player) 0; z-index: 8; background: var(--bg); display: none; overflow: hidden;
}
.full::before {
  content: ""; position: absolute; inset: -20%; background: var(--full-img) center/cover; filter: blur(80px) saturate(1.6) brightness(.45); transform: scale(1.1);
}
.full.on { display: block; animation: rise .3s ease-out; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
.full-close { position: absolute; top: 18px; left: 18px; z-index: 2; }
.full-inner { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center; padding: 6vh 7vw; }
.full-art { aspect-ratio: 1; width: 100%; max-width: 560px; max-height: 75vh; justify-self: end; border-radius: 18px; background: var(--card-h) center/cover; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.full-side { height: 100%; display: flex; flex-direction: column; min-height: 0; padding-top: 4vh; }
.full-title { font-family: Unbounded; font-weight: 800; font-size: clamp(26px, 3vw, 44px); letter-spacing: -1px; line-height: 1.1; }
.full-artist { color: rgba(255,255,255,.7); font-size: 18px; font-weight: 600; margin: 10px 0 20px; }
.full-lyrics { flex: 1; overflow-y: auto; mask-image: linear-gradient(transparent, #000 8%, #000 80%, transparent); }
.full-lyrics .lyrics { padding-top: 30px; font-size: 28px; }
.full-lyrics .lyrics p { color: rgba(255,255,255,.35); }
.full-lyrics .lyrics p.past { color: rgba(255,255,255,.55); }
.full-lyrics .lyrics p.now { color: #fff; }
.full-lyrics .lyrics.plain p { color: rgba(255,255,255,.85); font-size: 19px; }

/* ---------- menu / toast ---------- */
.menu {
  position: fixed; z-index: 50; min-width: 220px; background: #252229; border: 1px solid #36323d; border-radius: 12px; padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.55); display: none;
}
.menu.on { display: block; animation: pop .12s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.menu button, .menu .sub-t { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-weight: 600; }
.menu button:hover { background: rgba(255,255,255,.08); }
.menu button svg { width: 18px; height: 18px; color: var(--dim); }
.menu hr { border: 0; border-top: 1px solid #36323d; margin: 5px 4px; }
.menu .sub-t { color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; padding-bottom: 4px; }
.toasts { position: fixed; bottom: calc(var(--player) + 18px); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 22px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: pop .2s ease-out; }
.toast.err { background: #ff4d5e; color: #fff; }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 70; display: grid; place-items: center; animation: pop .15s; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; width: min(420px, 92vw); }
.modal h3 { font-family: Unbounded; margin: 0 0 18px; font-size: 18px; }
.modal input { width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; font-size: 15px; padding: 0 14px; outline: none; }
.modal input:focus { border-color: var(--acc); }
.modal .btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.btn { padding: 10px 20px; border-radius: 22px; font-weight: 800; }
.btn.pri { background: var(--acc); color: #fff; }
.btn.sec { color: var(--dim); }
.btn.sec:hover { color: var(--text); }

.kbd-help { color: var(--mute); font-size: 12px; margin-top: 40px; line-height: 2; }
.kbd-help kbd { background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-family: inherit; color: var(--dim); }

@media (max-width: 1000px) {
  :root { --side: 76px; }
  .side .logo { font-size: 0; justify-content: center; padding: 0 0 18px; }
  .side nav a { font-size: 0; justify-content: center; }
  .side-head, .side-pls { display: none; }
  .extra .vol { display: none; }
}
@media (max-width: 700px) {
  :root { --side: 0px; --player: 132px; }
  .side { display: none; }
  .player { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 10px 16px; gap: 6px 12px; }
  .ctl { grid-column: 1 / -1; grid-row: 2; }
  .top, .view { padding-left: 16px; padding-right: 16px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero .cover { width: 160px; height: 160px; }
  .full-inner { grid-template-columns: 1fr; }
  body.panel-open { --panel: 0px; }
  .panel { width: 100%; }
}

/* адаптив по ширине самой области контента (учитывает открытую панель) */
.view { container-type: inline-size; }
@container (max-width: 760px) {
  .top-result { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 34px 48px minmax(0, 1fr) 38px 50px 34px; gap: 10px; }
  .tr .tal { display: none; }
  .tracks.compact .tr { grid-template-columns: 48px minmax(0, 1fr) 38px; }
  .hero .cover { width: 170px; height: 170px; }
}
@container (max-width: 520px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .tr { grid-template-columns: 48px minmax(0, 1fr) 34px; }
  .tr .n, .tr .lk, .tr .d { display: none; }
  .actions { flex-wrap: wrap; }
}

/* ---------- офлайн ---------- */
.offslot:empty { display: none; }
.offb { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
.offb svg { width: 15px; height: 15px; stroke-width: 2.2; }
.offb.saved { color: #2fbf71; }
.offb.wait { color: var(--mute); }
.offb.load i { width: 13px; height: 13px; border-radius: 50%; background: conic-gradient(#2fbf71 calc(var(--p) * 1%), #3a3641 0); }
.off-panel { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: -6px 0 20px; }
.off-panel .pill svg, .actions .pill svg.off-ic { color: #2fbf71; }
.off-status { color: var(--dim); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.spin-sm { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); border-top-color: #2fbf71; animation: spin .8s linear infinite; }
.switch { display: inline-flex; align-items: center; gap: 10px; color: var(--dim); font-weight: 600; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch span { width: 36px; height: 20px; border-radius: 10px; background: #3a3641; position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: #2fbf71; }
.switch input:checked + span::after { transform: translateX(16px); }
.switch:hover { color: var(--text); }
.net-badge { display: none; margin-left: auto; padding: 8px 14px; border-radius: 18px; background: rgba(255, 77, 94, .15); color: #ff7a86; font-weight: 800; font-size: 13px; white-space: nowrap; }
body.offline .net-badge { display: inline-block; }
body.offline .tr:not(:has(.offb.saved)) { opacity: .4; }
.menu button svg.off-ic { color: #2fbf71; }

/* ---------- Моя волна ---------- */
.wave-hero {
  position: relative; height: min(58vh, 520px); min-height: 340px; margin: 6px 0 22px; border-radius: 24px;
  background: #100e13; overflow: visible; isolation: isolate;
}
.wave-hero .blobs { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; z-index: -1; filter: blur(60px) saturate(1.3); }
.wave-hero .blobs i {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; left: 27%; top: 10%;
  background: radial-gradient(circle, rgba(var(--acc-rgb), .95), rgba(var(--acc-rgb), 0) 68%);
  animation: blob 18s ease-in-out infinite; opacity: .75; transition: background 1.2s;
}
.wave-hero .blobs i:nth-child(2) { background: radial-gradient(circle, #ff2bd6, transparent 68%); left: 38%; top: 28%; animation-duration: 22s; animation-delay: -6s; opacity: .55; }
.wave-hero .blobs i:nth-child(3) { background: radial-gradient(circle, #ffb02e, transparent 68%); left: 18%; top: -8%; width: 38%; animation-duration: 26s; animation-delay: -12s; opacity: .45; }
.wave-hero .blobs i:nth-child(4) { background: radial-gradient(circle, #6a3bff, transparent 68%); left: 46%; top: 38%; width: 34%; animation-duration: 20s; animation-delay: -3s; opacity: .45; }
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(14%, -10%) scale(1.15); }
  50% { transform: translate(-10%, 12%) scale(.9); }
  75% { transform: translate(-14%, -6%) scale(1.1); }
}
.wave-hero.playing .blobs i { animation-duration: 7s; }
.wave-hero.playing .blobs i:nth-child(2) { animation-duration: 9s; }
.wave-hero.playing .blobs i:nth-child(3) { animation-duration: 11s; }
.wave-hero.playing .blobs i:nth-child(4) { animation-duration: 8s; }
.wave-hero.playing .blobs { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { filter: blur(54px) saturate(1.6); } }
.wave-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 20px; }
.wave-play { display: flex; align-items: center; gap: 14px; font-family: Unbounded; font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -1.5px; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); transition: transform .15s; }
.wave-play:hover { transform: scale(1.04); }
.wave-play #waveIcon { display: grid; place-items: center; }
.wave-play #waveIcon svg { width: 1em; height: 1em; }
.wave-play #waveIcon .spinner { width: .7em; height: .7em; border-color: rgba(255,255,255,.3); border-top-color: #fff; }
.wave-now { color: rgba(255,255,255,.82); font-weight: 600; max-width: 560px; min-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wave-now b { color: #fff; }
.wave-tune-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 24px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); color: #fff; font-weight: 800; transition: background .15s; }
.wave-tune-btn:hover { background: rgba(255,255,255,.24); }
.wave-tune-btn svg { width: 18px; height: 18px; }
.wave-tune {
  position: absolute; left: 0; right: 0; margin: 0 auto; top: calc(50% + 100px); z-index: 6; width: min(520px, 94%);
  background: rgba(30, 27, 35, .96); border: 1px solid #3a3541; border-radius: 20px; padding: 20px 22px 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); display: none;
}
.wave-tune.on { display: block; animation: pop .15s ease-out; }
.tune-g + .tune-g { margin-top: 16px; }
.tune-t { color: var(--mute); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 9px; }
.tune-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tune-chips button { padding: 9px 16px; border-radius: 20px; background: #2c2832; color: var(--dim); font-weight: 700; transition: .15s; }
.tune-chips button:hover { color: var(--text); background: #36313d; }
.tune-chips button.on { background: var(--acc); color: #fff; }
.tune-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--card); transition: background .15s, transform .15s; min-width: 0; }
.tile:hover { background: var(--card-h); transform: translateY(-2px); }
.tile-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.tile b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile small { color: var(--dim); font-size: 12px; font-weight: 600; }
.tile > span:last-child { min-width: 0; }
.t-like .tile-ic { background: linear-gradient(135deg, #ff4d6d, #b5179e); }
.t-like .tile-ic svg { fill: #fff; }
.t-off .tile-ic { background: linear-gradient(135deg, #2fbf71, #13654a); }
.t-off .tile-ic svg { color: #fff; }
.t-hist .tile-ic { background: linear-gradient(135deg, #4d7cff, #3a2bb5); }
.t-imp .tile-ic { background: linear-gradient(135deg, #ffcc00, #ff7a00); color: #1a1200; }

.imp-form { max-width: 680px; }
.imp-help { color: var(--dim); line-height: 1.6; margin: 0 0 16px; }
.imp-form input { width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; font-size: 15px; padding: 0 16px; outline: none; }
.imp-form input:focus { border-color: var(--acc); }
.imp-opts { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 20px; }
.imp-card { margin-top: 26px; max-width: 680px; background: var(--card); border-radius: 18px; padding: 20px 22px; }
.imp-title { font-weight: 800; font-size: 16px; }
.imp-sub { color: var(--dim); margin-top: 10px; font-weight: 600; }
.imp-bar { height: 8px; border-radius: 6px; background: #3a3641; margin-top: 14px; overflow: hidden; }
.imp-bar i { display: block; height: 100%; background: var(--acc); border-radius: 6px; transition: width .4s; }
.imp-miss { margin-top: 16px; color: var(--dim); font-size: 13px; }
.imp-miss summary { cursor: pointer; font-weight: 700; }
.imp-miss div { padding: 3px 0; }
#dislikeBtn svg { width: 19px; height: 19px; }
#dlBtn.saved { color: #2fbf71; }
#dlBtn.loading svg { animation: pulse 1s ease-in-out infinite; color: #2fbf71; }
.imp-limit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; color: var(--dim); font-weight: 600; }
.imp-limit small { color: var(--mute); font-weight: 500; }
.imp-form .imp-limit input { width: 96px; height: 40px; text-align: center; font-weight: 800; font-size: 15px; padding: 0 8px; }
.pill.danger:hover { border-color: #ff4d5e; color: #ff7a86; }
.btn.pri.danger { background: #ff4d5e; }
.tr .rmoff { opacity: 0; }
.tr:hover .rmoff { opacity: 1; }
.tr .rmoff:hover { color: #ff7a86; }

/* ---------- вход / пользователь / движок ---------- */
.login-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(800px 500px at 50% 20%, rgba(var(--acc-rgb), .25), transparent 70%), var(--bg); padding: 16px; }
.login { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.login .logo.big { font-size: 30px; padding: 0 0 4px; justify-content: center; }
.login-sub { color: var(--dim); text-align: center; margin: 0 0 8px; line-height: 1.5; }
.login input { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; font-size: 16px; padding: 0 16px; outline: none; }
.login input:focus { border-color: var(--acc); }
.login .btn { height: 50px; font-size: 16px; margin-top: 4px; }
.login .btn:disabled { opacity: .6; }
.login-err { color: #ff7a86; font-weight: 700; min-height: 18px; text-align: center; font-size: 13px; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.me:empty { display: none; }
.me-av { width: 32px; height: 32px; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.me-name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eng-banner { display: none; align-items: center; gap: 16px; margin: 4px 32px 10px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(90deg, rgba(var(--acc-rgb), .22), rgba(var(--acc-rgb), .08)); border: 1px solid rgba(var(--acc-rgb), .4); }
.eng-banner.on { display: flex; }
.eng-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--acc); color: #fff; display: grid; place-items: center; flex: none; }
.eng-txt { flex: 1; min-width: 0; }
.eng-txt b { display: block; font-size: 15px; }
.eng-txt small { color: var(--dim); font-weight: 600; line-height: 1.4; }
.eng-banner .btn { white-space: nowrap; }
@media (max-width: 700px) { .eng-banner { margin: 4px 16px 10px; flex-wrap: wrap; } }
