/* Тёмная тема в духе Apple Music. */
:root {
  --accent: #fa2d48;
  --bg: #000;
  --cell: #1c1c1e;
  --cell-2: #2c2c2e;
  --fill: rgba(118, 118, 128, 0.24);
  --fill-2: rgba(118, 118, 128, 0.16);
  --label: #fff;
  --label-2: rgba(235, 235, 245, 0.6);
  --label-3: rgba(235, 235, 245, 0.3);
  --sep: rgba(84, 84, 88, 0.65);
  --material: rgba(28, 28, 30, 0.78);
  --ya: #ffcc00;
  --sc: #ff5500;
  --vk: #2787f5;
  --pad: 20px;
  --tab-h: 50px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--label);
  font: 17px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
svg { width: 24px; height: 24px; display: block; flex: none; }
img { -webkit-user-drag: none; }
[hidden] { display: none !important; }

/* ---------- каркас ---------- */

#view {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--safe-t) + 8px) var(--pad) calc(var(--tab-h) + var(--safe-b) + 28px);
}
body.has-mini #view { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 104px); }
body.sub #view { padding-top: calc(var(--safe-t) + 52px); }

.large-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 52px; margin: 4px 0 10px; }
.large-title h1 { margin: 0; font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.01em; }
.avatar {
  width: 34px; height: 34px; margin-bottom: 4px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--fill); color: var(--accent);
}
.avatar svg { width: 22px; height: 22px; }

#navbar {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  height: calc(var(--safe-t) + 44px); padding-top: var(--safe-t);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: background 0.2s, border-color 0.2s;
  border-bottom: 0.5px solid transparent;
}
#navbar.solid {
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--sep);
}
.nav-title { font-size: 17px; font-weight: 600; opacity: 0; transition: opacity 0.2s; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#navbar.solid .nav-title { opacity: 1; }
.nav-back {
  position: absolute; left: 8px; bottom: 0; height: 44px; padding: 0 8px;
  display: flex; align-items: center; gap: 2px;
  color: var(--accent); font-size: 17px; pointer-events: auto;
}
.nav-back svg { width: 22px; height: 22px; }

#tabbar {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around;
  height: calc(var(--tab-h) + var(--safe-b)); padding: 0 12px var(--safe-b);
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--sep);
}
#tabbar button {
  flex: 1; max-width: 140px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #8e8e93; font-size: 10px; font-weight: 500; letter-spacing: 0.01em;
}
#tabbar button svg { width: 27px; height: 27px; }
#tabbar button.on { color: var(--accent); }

/* ---------- элементы ---------- */

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 10px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 0.01em; display: flex; align-items: center; gap: 4px; }
.section-head button { display: flex; align-items: center; color: var(--label-2); }
.section-head button svg { width: 18px; height: 18px; }
.section-head .dot { margin-right: 6px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 12px 0 8px; }
.pill {
  height: 50px; border-radius: 12px; background: var(--cell-2); color: var(--accent);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; font-weight: 600;
}
.pill svg { width: 20px; height: 20px; }
.pill:disabled { opacity: 0.4; }
.pill:active, .card:active, .row:active, .cell.tap:active { opacity: 0.55; }

.btn-accent {
  width: 100%; height: 50px; border-radius: 12px; background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 600;
}
.btn-accent:disabled { opacity: 0.5; }
.btn-plain { color: var(--accent); font-size: 17px; padding: 6px 0; }

.field {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 0; outline: none;
  background: var(--cell-2); color: var(--label); font-size: 17px;
}
.field::placeholder { color: var(--label-3); }

.searchbar { position: relative; display: block; margin: 4px 0 12px; }
.searchbar svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--label-2); pointer-events: none; }
.searchbar input {
  width: 100%; height: 38px; padding: 0 10px 0 34px; border: 0; border-radius: 10px; outline: none;
  background: var(--fill-2); color: var(--label); font-size: 17px;
}
.searchbar input::placeholder { color: var(--label-2); }
.searchbar input::-webkit-search-cancel-button { filter: invert(1) opacity(0.5); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 2px; margin: 2px 0 14px; border-radius: 9px; background: var(--fill-2); }
.segmented button { height: 30px; border-radius: 7px; font-size: 14px; font-weight: 500; color: var(--label); }
.segmented button.on { background: #636366; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)) 4px; padding: 0 var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 16px;
  background: var(--fill-2); color: var(--label); font-size: 15px; white-space: nowrap;
}
.chip.on { background: var(--label); color: #000; font-weight: 600; }
.chip small { opacity: 0.55; font-size: 13px; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.ya { background: var(--ya); }
.dot.sc { background: var(--sc); }
.dot.vk { background: var(--vk); }

.note { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: rgba(250, 45, 72, 0.13); color: #ff9aa8; font-size: 15px; }
.note b { color: var(--label); font-weight: 600; }
.hint { color: var(--label-2); font-size: 15px; margin: 14px 0; }

/* ---------- «Моя волна» ---------- */

.wave-card { position: relative; overflow: hidden; isolation: isolate; margin: 6px 0 4px; border-radius: 18px; background: #0b0b10; }
.wave-anim { position: absolute; inset: 0; z-index: -1; }
.wave-anim i {
  position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(36px); opacity: 0.8; mix-blend-mode: screen; will-change: transform;
  animation: wave-drift 10s ease-in-out infinite alternate;
}
.wave-anim i:nth-child(1) { left: -12%; top: -30%; }
.wave-anim i:nth-child(2) { right: -18%; top: 0; animation-duration: 12s; animation-delay: -4s; }
.wave-anim i:nth-child(3) { left: 22%; bottom: -55%; animation-duration: 14s; animation-delay: -8s; }
.wave-card.playing .wave-anim i { animation-duration: 3.2s; }
.wave-card.playing .wave-anim i:nth-child(2) { animation-duration: 3.8s; }
.wave-card.playing .wave-anim i:nth-child(3) { animation-duration: 4.4s; }
@keyframes wave-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14%, 12%) scale(1.18); }
  100% { transform: translate(-10%, 18%) scale(0.88); }
}
.wave-content {
  min-height: 220px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 75%);
}
.wave-title { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; }
.wave-sub { margin-top: 2px; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.wave-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.wave-play {
  width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #000;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--spring);
}
.wave-play svg { width: 26px; height: 26px; }
.wave-play:active { transform: scale(0.9); }
.wave-tune {
  height: 36px; padding: 0 16px; border-radius: 18px; font-size: 15px; font-weight: 600;
  background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.wave-tune.on { background: #fff; color: #000; }
.wave-tune-panel { padding: 4px 0 6px; }
.tune-label { margin: 14px 0 8px; font-size: 13px; color: var(--label-2); text-transform: uppercase; letter-spacing: 0.02em; }
.wave-tune-panel .hint { font-size: 13px; margin: 12px 0 0; }

/* ---------- карусели ---------- */

.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 158px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad);
}
.carousel::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; min-width: 0; cursor: pointer; }
.cover, .card .ph {
  width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; display: block;
  background: var(--cell-2);
}
.card .t { margin-top: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .a { font-size: 13px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.card .a span { overflow: hidden; text-overflow: ellipsis; }
.card.skeleton .cover { animation: pulse 1.4s ease-in-out infinite; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; margin-top: 6px; }
.grid .card .t { font-size: 15px; font-weight: 400; margin-top: 8px; }
.grid .card .a { font-size: 15px; }

/* ---------- списки треков ---------- */

.list { margin-top: 4px; }
.row {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 8px 0; cursor: pointer;
  content-visibility: auto; contain-intrinsic-size: auto 64px;
}
.row::after { content: ""; position: absolute; left: 60px; right: 0; bottom: 0; height: 0.5px; background: var(--sep); }
.row:last-child::after { display: none; }
.art { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--cell-2); }
.ph { display: flex; align-items: center; justify-content: center; color: #5b5b62; background: var(--cell-2); }
.ph svg { width: 42%; height: 42%; }
img.broken { opacity: 0; }
.meta { min-width: 0; }
.meta .t, .meta .a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .t { font-size: 16px; }
.meta .a { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 14px; color: var(--label-2); }
.meta .a span { overflow: hidden; text-overflow: ellipsis; }
.tag { flex: none; font-size: 10px; font-weight: 700; padding: 1px 4px; border-radius: 3px; background: var(--fill); color: var(--label-2); letter-spacing: 0.02em; }
.trail { color: var(--label-2); font-size: 14px; font-variant-numeric: tabular-nums; min-width: 20px; display: flex; justify-content: flex-end; }
.row.playing .t { color: var(--accent); }
.row.off { opacity: 0.35; }
.count { color: var(--label-2); font-size: 15px; margin: 14px 0 0; }

.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 13px; }
.eq i { width: 3px; border-radius: 1px; background: var(--accent); animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
body.paused .eq i { animation-play-state: paused; height: 4px; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 13px; } }

.skeleton-row { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 8px 0; animation: pulse 1.4s ease-in-out infinite; }
.skeleton-row .art { background: var(--cell); }
.skeleton-row .bar { height: 12px; border-radius: 6px; margin: 5px 0; background: var(--cell); }
@keyframes pulse { 50% { opacity: 0.45; } }

/* ---------- плейлист ---------- */

.pl-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 6px; }
.pl-head .cover, .pl-head .ph { width: min(66vw, 250px); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.pl-head h1 { margin: 18px 0 2px; font-size: 22px; font-weight: 700; }
.pl-head .src { color: var(--accent); font-size: 20px; }
.pl-head .sub { color: var(--label-2); font-size: 13px; margin-top: 4px; }

/* ---------- пусто и загрузка ---------- */

.empty { text-align: center; padding: 56px 10px 20px; }
.empty .dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.empty .dots .dot { width: 14px; height: 14px; }
.empty h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.empty p { margin: 0 auto 22px; max-width: 300px; color: var(--label-2); font-size: 15px; }
.empty .btn-accent { max-width: 260px; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.15); border-top-color: var(--label-2); animation: spin 0.8s linear infinite; }
.center { display: flex; justify-content: center; padding: 34px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- настройки (сгруппированные списки как в iOS) ---------- */

.group-title { margin: 26px 16px 7px; color: var(--label-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; }
.group { background: var(--cell); border-radius: 10px; overflow: hidden; }
.group-foot { margin: 7px 16px 0; color: var(--label-2); font-size: 13px; line-height: 1.4; }
.cell { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 16px; }
.cell + .cell::before, .panel + .cell::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 0.5px; background: var(--sep); }
.cell.plain + .cell::before { left: 16px; }
.cell.tap { cursor: pointer; }
.cell .name { flex: 1; min-width: 0; }
.cell .value { color: var(--label-2); font-size: 17px; white-space: nowrap; }
.cell .value.ok { color: #32d74b; }
.cell .chev { width: 16px; height: 16px; color: var(--label-3); transition: transform 0.25s; }
.cell.open .chev { transform: rotate(90deg); }
.cell.danger { color: #ff453a; }
.cell.accent { color: var(--accent); }
.logo { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex: none; }
.logo.ya { background: var(--ya); color: #000; }
.logo.sc { background: var(--sc); color: #fff; }
.logo.vk { background: var(--vk); color: #fff; }
.panel { display: grid; gap: 10px; padding: 4px 16px 16px; }
.panel p { margin: 0; color: var(--label-2); font-size: 15px; line-height: 1.4; }
.panel form { display: grid; gap: 10px; }
.panel details summary { color: var(--accent); font-size: 15px; cursor: pointer; padding: 4px 0; list-style: none; }
.panel details summary::-webkit-details-marker { display: none; }
.panel details[open] summary { margin-bottom: 8px; }
.warn { color: #ffb340 !important; font-size: 13px !important; }
.code-box { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--cell-2); text-align: center; }
.code { font: 700 32px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; -webkit-user-select: all; user-select: all; }
.wait { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--label-2); font-size: 15px; }
.wait .spinner { width: 16px; height: 16px; border-width: 2px; }
.captcha { width: 160px; border-radius: 8px; background: #fff; }
.err { margin: 0; color: #ff453a; font-size: 15px; }
.err:empty { display: none; }
.url { font-size: 15px; word-break: break-all; color: var(--label); -webkit-user-select: all; user-select: all; }

/* ---------- мини-плеер ---------- */

#mini {
  position: fixed; z-index: 19; left: 8px; right: 8px; bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  max-width: 804px; margin: 0 auto; height: 60px; padding: 0 8px;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px 44px; align-items: center; gap: 2px;
  border-radius: 14px; cursor: pointer;
  background: rgba(40, 40, 42, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--spring), opacity 0.3s;
}
#mini.hidden { transform: translateY(24px); opacity: 0; pointer-events: none; }
.mini-art img, .mini-art .ph { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.mini-meta { min-width: 0; padding-left: 10px; }
.mini-meta .t, .mini-meta .a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta .t { font-size: 15px; font-weight: 500; }
.mini-meta .a { font-size: 13px; color: var(--label-2); }
.mini-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.mini-btn svg { width: 26px; height: 26px; }
.mini-btn:active { background: var(--fill); }

/* ---------- полноэкранный плеер ---------- */

#np {
  position: fixed; inset: 0; z-index: 50; overflow: hidden; background: #1a1a1a; color: #fff;
  transform: translateY(105%); visibility: hidden;
  transition: transform 0.5s var(--spring), visibility 0s linear 0.5s;
  --c1: #3a3a3c; --c2: #2c2c2e; --c3: #48484a;
}
#np.open { transform: none; visibility: visible; transition: transform 0.5s var(--spring); }
#np.dragging { transition: none; }

.np-bg { position: absolute; inset: 0; background: var(--c1); transition: background 0.8s; }
.np-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.9; will-change: transform; transition: background 0.8s; }
.np-bg .b1 { width: 110vmax; height: 110vmax; left: -45vmax; top: -50vmax; background: var(--c1); animation: drift1 24s ease-in-out infinite alternate; }
.np-bg .b2 { width: 100vmax; height: 100vmax; right: -50vmax; bottom: -45vmax; background: var(--c2); animation: drift2 28s ease-in-out infinite alternate; }
.np-bg .b3 { width: 70vmax; height: 70vmax; left: 10vmax; top: 25vmax; background: var(--c3); animation: drift3 32s ease-in-out infinite alternate; }
.np-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.22); }
@keyframes drift1 { to { transform: translate(18vmax, 22vmax) rotate(40deg); } }
@keyframes drift2 { to { transform: translate(-20vmax, -16vmax) rotate(-30deg); } }
@keyframes drift3 { to { transform: translate(-14vmax, -20vmax) scale(1.2); } }

.np-body {
  position: relative; height: 100%; max-width: 520px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 6px) 28px calc(var(--safe-b) + 18px);
}
.np-grabber { display: flex; justify-content: center; padding: 6px 0 2px; }
.np-grabber i { width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); }
.np-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 18px 0; }
.np-art {
  height: 100%; max-height: min(calc(100vw - 56px), 420px); aspect-ratio: 1; max-width: 100%;
  transition: transform 0.55s var(--spring), opacity 0.3s;
}
.np-art img, .np-art .ph {
  width: 100%; height: 100%; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45); transition: box-shadow 0.5s;
}
.np-art .ph { color: rgba(255, 255, 255, 0.3); }
body.paused .np-art { transform: scale(0.8); }
body.paused .np-art img { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }

.np-queue { position: absolute; inset: 14px 0 6px; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
#np.queue .np-queue { opacity: 1; pointer-events: auto; }
#np.queue .np-art { opacity: 0; pointer-events: none; }
.q-now { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.q-now img, .q-now .ph { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; }
.q-now .t { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-now .a { font-size: 15px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-head { margin: 22px 0 4px; font-size: 17px; font-weight: 700; }
#queueList { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; mask-image: linear-gradient(to bottom, transparent, #000 12px, #000 calc(100% - 24px), transparent); }
#queueList .row::after { background: rgba(255, 255, 255, 0.12); }
#queueList .meta .a { color: rgba(255, 255, 255, 0.55); }
#queueList .art { background: rgba(255, 255, 255, 0.1); }

.np-meta { margin-top: 2px; min-width: 0; }
.np-meta .t, .np-meta .a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 20px; }
.np-meta .t { font-weight: 600; }
.np-meta .a { color: rgba(255, 255, 255, 0.6); }

.np-progress { margin-top: 22px; }
.scrub { padding: 10px 0; touch-action: none; cursor: pointer; }
.scrub-track { height: 7px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.2); transition: height 0.2s var(--spring); }
.scrub-track i { display: block; height: 100%; width: 100%; background: rgba(255, 255, 255, 0.62); transform-origin: left; transform: scaleX(0); }
.scrub.active .scrub-track { height: 12px; }
.scrub.active .scrub-track i { background: #fff; }
.np-times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 2px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.np-times span:last-child { text-align: right; }
.np-src { padding: 2px 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }

.np-ctrls { display: flex; align-items: center; justify-content: space-evenly; margin: 22px 0 18px; }
.ctrl { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform 0.25s var(--spring), background 0.25s; }
.ctrl svg { width: 42px; height: 42px; }
.ctrl.play svg { width: 54px; height: 54px; }
.ctrl:active { transform: scale(0.86); background: rgba(255, 255, 255, 0.14); }
body.buffering .ctrl.play svg { animation: pulse 1s ease-in-out infinite; }

.np-tools { display: flex; justify-content: space-between; padding: 0 6px; }
.tool { position: relative; width: 44px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.62); transition: background 0.2s, color 0.2s; }
.tool svg { width: 22px; height: 22px; }
.tool.on { background: rgba(255, 255, 255, 0.85); color: rgba(0, 0, 0, 0.75); }
.tool.off { visibility: hidden; }
.tool.liked { color: var(--accent); }
.tool[data-act="like"]:active, .tool[data-act="dislike"]:active { transform: scale(0.85); }
.tool .one { position: absolute; top: 3px; right: 5px; font-size: 9px; font-weight: 800; }

/* ---------- вход и уведомления ---------- */

#login { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; background: #000; }
.login-card { width: 100%; max-width: 340px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.login-card img { border-radius: 20px; box-shadow: 0 10px 40px rgba(250, 45, 72, 0.25); }
.login-card h1 { margin: 6px 0 0; font-size: 28px; font-weight: 700; }
.login-card p { margin: 0 0 6px; color: var(--label-2); font-size: 15px; }

#toast {
  position: fixed; z-index: 80; left: 50%; top: calc(var(--safe-t) + 10px);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 16px;
  background: rgba(50, 50, 52, 0.94); color: #fff; font-size: 15px; font-weight: 500; text-align: center;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -24px); opacity: 0; pointer-events: none;
  transition: transform 0.35s var(--spring), opacity 0.25s;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
