/* =========================================================================
   ВОЛНА — интерфейс клиента
   ========================================================================= */

@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos_medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("/fonts/golos_extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --card: #121212;
  --card-hi: #1a1a1a;
  --text: #f6f6f8;
  --muted: #9b9baa;
  --dim: #6a6a7a;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);
  --accent: #ff8a00;
  --accent-soft: rgba(255, 138, 0, 0.16);
  --mint: #45d9a4;
  --mint-soft: rgba(69, 217, 164, 0.14);
  --danger: #ff5c74;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --tabbar: 58px;
  --mini: 62px;
  --font: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 82% -12%, rgba(255, 138, 0, 0.20), transparent 62%),
    radial-gradient(90% 55% at -10% 104%, rgba(255, 179, 92, 0.09), transparent 62%);
  z-index: 0;
}

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: rgba(255, 138, 0, 0.4); }

/* ------------------------------- каркас --------------------------------- */

#app { position: fixed; inset: 0; z-index: 1; display: flex; overflow: hidden; }

/*
 * iOS standalone: 100dvh/inset:0 иногда считаются без нижней safe-area,
 * из-за чего под таббаром остаётся чёрная полоса. 100vh + фон таббара
 * растягивают оболочку до физического низа экрана.
 */
@media (display-mode: standalone) {
  html, body { min-height: 100vh; background: #0a0a0a; }
  #app { height: 100vh; min-height: 100vh; }
  .tabbar { height: calc(var(--tabbar) + var(--safe-b)); background: #0a0a0a; }
}

.splash {
  position: fixed; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 18px; background: var(--bg); z-index: 100; transition: opacity 0.45s ease, visibility 0.45s;
}
.splash.hide { opacity: 0; visibility: hidden; }
.splash__logo { width: 84px; height: 84px; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.splash__logo img { width: 100%; height: 100%; }
.splash__name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.splash__sub { color: var(--dim); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.splash__bar { width: 132px; height: 3px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; }
.splash__bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #ffd29a); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

.main {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.main::-webkit-scrollbar { display: none; }

.content {
  padding: calc(var(--safe-t) + 26px) calc(16px + var(--safe-r)) calc(var(--safe-b) + 168px) calc(16px + var(--safe-l));
  max-width: 1280px;
  margin: 0 auto;
}
.content--flush { padding-left: 0; padding-right: 0; }

/* ------------------------------ типографика ------------------------------ */

.eyebrow {
  font-size: 11px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 6px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; }
h1 { font-size: 32px; font-weight: 720; line-height: 1.12; }
h2 { font-size: 20px; font-weight: 680; }
.sub { color: var(--muted); font-size: 13.5px; margin-top: 7px; }
.sub b { color: var(--text); font-weight: 600; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.page-head__actions { display: flex; gap: 8px; padding-top: 22px; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06);
  color: var(--text);
  transition: background .15s, transform .12s;
}
.icon-btn:active { transform: scale(.92); }
@media (hover: hover) { .icon-btn:hover { background: rgba(255,255,255,.12); } }

/* ------------------------------- сегменты -------------------------------- */

.segmented {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  margin: 0 0 22px;
}
.segmented button {
  flex: 1;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.segmented button.on { color: var(--text); background: rgba(255,255,255,.1); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }

/* -------------------------------- обложки -------------------------------- */

.art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #17171f;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.art::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  pointer-events: none;
}
.art--ph { display: grid; place-items: center; }
.art--ph span {
  font-size: 28px; font-weight: 700; color: rgba(255,255,255,.7);
  letter-spacing: -0.04em;
}
.art__chip {
  position: absolute; right: 7px; top: 7px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 5px; border-radius: 5px;
  background: rgba(6, 8, 12, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 9px; font-weight: 650; letter-spacing: .02em; color: rgba(255,255,255,.9);
}
.art__chip i { width: 4px; height: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 6px var(--mint); }

/* -------------------------------- альбомы -------------------------------- */

.grid-albums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 14px;
}
.album-card { text-align: left; display: block; width: 100%; }
.album-card .art { transition: transform .18s ease; }
.album-card:active .art { transform: scale(.965); }
.album-card__title {
  margin-top: 9px; font-size: 14px; font-weight: 620; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.album-card__artist {
  margin-top: 2px; color: var(--muted); font-size: 12.5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --------------------------------- строки -------------------------------- */

.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; width: 100%; text-align: left;
  border-radius: 12px;
  transition: background .15s;
}
.row:active { background: rgba(255,255,255,.05); }
@media (hover: hover) { .row:hover { background: rgba(255,255,255,.045); } }
.row__art { width: 46px; height: 46px; border-radius: 9px; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.row__main { min-width: 0; flex: 1; }
.row__title { font-size: 14.5px; font-weight: 570; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__side { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; flex: none; display: flex; align-items: center; gap: 8px; }
.row--now .row__title { color: #ffb35c; }
.row__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.row__eq i { width: 2.5px; background: var(--accent); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.row__eq i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.row__eq i:nth-child(2) { height: 100%; animation-delay: -.5s; }
.row__eq i:nth-child(3) { height: 60%; }
@keyframes eq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

.track-num { width: 22px; flex: none; text-align: center; color: var(--dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* -------------------------------- чипы ----------------------------------- */

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px; border-radius: 7px;
  background: rgba(255,255,255,.055);
  color: var(--muted);
  font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
}
.chip--lossless { background: var(--mint-soft); color: #9ff0d3; }
.chip--lossless i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }

/* ------------------------------- мини-плеер ------------------------------ */

.mini {
  position: fixed;
  left: calc(8px + var(--safe-l));
  right: calc(8px + var(--safe-r));
  bottom: calc(var(--safe-b) + var(--tabbar) + 8px);
  height: var(--mini);
  display: flex; align-items: center; gap: 11px;
  padding: 0 10px 0 8px;
  border-radius: 16px;
  background: rgba(24, 24, 32, 0.72);
  border: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  z-index: 30;
  transition: transform .3s cubic-bezier(.2,.9,.2,1), opacity .2s;
}
.mini[hidden] { display: none; }
.mini__art { width: 46px; height: 46px; border-radius: 10px; flex: none; overflow: hidden; background: #1d1d27; }
.mini__art img { width: 100%; height: 100%; object-fit: cover; }
.mini__main { flex: 1; min-width: 0; }
.mini__title { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.mini__btn { width: 40px; height: 40px; display: grid; place-items: center; color: var(--text); flex: none; }
.mini__btn:active { transform: scale(.9); }
.mini__bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.mini__bar i { display: block; height: 100%; width: 0; background: rgba(255,255,255,.75); }

/* -------------------------------- таббар --------------------------------- */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar) + var(--safe-b));
  padding: 0 calc(6px + var(--safe-r)) var(--safe-b) calc(6px + var(--safe-l));
  display: flex;
  background: rgba(8, 8, 12, 0.82);
  border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  z-index: 40;
}
.tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--dim); font-size: 10px; font-weight: 600; letter-spacing: .01em;
  transition: color .15s;
}
.tabbar button.on { color: var(--text); }
.tabbar button svg { width: 23px; height: 23px; }

/* --------------------------------- листы --------------------------------- */

.sheet {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: sheet-in .34s cubic-bezier(.22,.9,.24,1);
  will-change: transform;
}
@keyframes sheet-in { from { transform: translateY(28px); opacity: .3; } to { transform: none; opacity: 1; } }
.sheet--drag { animation: none; transition: transform .28s cubic-bezier(.3,.9,.3,1); }

.sheet__head {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 8px) 14px 8px;
  background: linear-gradient(rgba(7,7,10,.94), rgba(7,7,10,.6) 70%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.sheet__title { font-size: 13px; font-weight: 600; color: var(--muted); flex: 1; text-align: center; }
.sheet__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--safe-b) + 40px); scrollbar-width: none; }
.sheet__body::-webkit-scrollbar { display: none; }
.grabber { width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin: 6px auto 0; }

/* ----------------------------- страница альбома --------------------------- */

.album-hero { padding: 10px 20px 8px; text-align: center; }
.album-hero .art { width: min(62vw, 250px); margin: 4px auto 20px; border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.album-hero h2 { font-size: 23px; font-weight: 720; }
.album-hero__artist { color: var(--muted); font-size: 15px; margin-top: 5px; }
.album-hero__meta { color: var(--dim); font-size: 12px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; align-items: center; }
.album-hero__actions { display: flex; gap: 10px; justify-content: center; margin: 18px 0 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 650;
  transition: transform .12s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.96); }
.btn--primary { background: #f4f4f6; color: #0a0a0e; }
.btn--ghost { background: rgba(255,255,255,.07); color: var(--text); border: 1px solid var(--line); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; }

.tracks { padding: 6px 12px 0; }
.tracks .row { padding: 10px 8px; }
.tracks__foot { padding: 18px 20px 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; }

/* ------------------------------ сейчас играет ---------------------------- */

.np { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; overflow: hidden; background: #08080c; }
.np__bg {
  position: absolute; inset: -18%;
  background-size: cover; background-position: center;
  filter: blur(64px) saturate(160%) brightness(.62);
  transform: scale(1.12);
  opacity: .9;
}
.np__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(6,6,9,.35), rgba(6,6,9,.72) 55%, rgba(6,6,9,.96) 100%),
    radial-gradient(90% 50% at 50% 0%, rgba(255,255,255,.06), transparent 70%);
}
.np__inner { position: relative; z-index: 2; display: flex; flex-direction: column; flex: 1; padding: calc(var(--safe-t) + 6px) 24px calc(var(--safe-b) + 14px); }
.np__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 2px; }
.np__source { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 650; }
.np__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; min-height: 0; padding: 4px 0; }
.np__art { width: min(90vw, 400px); aspect-ratio: 1; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: 0 32px 70px rgba(0,0,0,.62), 0 2px 0 rgba(255,255,255,.08) inset; background: #15151d; }
.np__art img { width: 100%; height: 100%; object-fit: cover; }
.np__meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.np__text { min-width: 0; }
.np__title { font-size: 23px; font-weight: 700; letter-spacing: -.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np__artist { color: rgba(255,255,255,.62); font-size: 15.5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np__quality { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #9ff0d3; letter-spacing: .02em; }
.np__quality i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.np__fav { flex: none; width: 42px; height: 42px; display: grid; place-items: center; color: rgba(255,255,255,.55); }
.np__fav.on { color: #ff6b8a; }
.np__seek { display: flex; flex-direction: column; gap: 6px; }
.np__times { display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.np__controls { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.np__ctrl { width: 52px; height: 52px; display: grid; place-items: center; color: rgba(255,255,255,.9); transition: transform .12s, color .15s; }.np__ctrl:active { transform: scale(.9); }
.np__ctrl.on { color: var(--accent); }
.np__ctrl--side { color: rgba(255,255,255,.55); }
.np__play {
  width: 68px; height: 68px; border-radius: 50%; background: #f6f6f8; color: #0a0a0e;
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .12s;
}
.np__play:active { transform: scale(.94); }
.np__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 0 4px; }
.np__bottom button { width: 46px; height: 46px; display: grid; place-items: center; color: rgba(255,255,255,.5); }
.np__bottom button.on { color: #ffb35c; }

/* -------------------------------- очередь -------------------------------- */

.queue { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: rgba(8,8,12,.97); animation: sheet-in .3s cubic-bezier(.22,.9,.24,1); backdrop-filter: blur(20px); }
.queue__head { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--safe-t) + 10px) 16px 10px; }
.queue__body { flex: 1; overflow-y: auto; padding: 0 12px calc(var(--safe-b) + 24px); }
.queue__item { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; width: 100%; text-align: left; }
.queue__item.now { background: rgba(255,138,0,.14); }
.queue__item.now .queue__title { color: #ffb35c; }
.queue__title { font-size: 14px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue__sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.queue__handle { color: var(--dim); flex: none; }

/* ------------------------------- поиск ----------------------------------- */

.search-box {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  border-radius: 13px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-soft);
  margin-bottom: 22px;
}
.search-box svg { color: var(--dim); flex: none; }
.search-box input {
  flex: 1; background: none; border: 0; outline: none;
  font-size: 15.5px; color: var(--text); min-width: 0;
}
.search-box input::placeholder { color: var(--dim); }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 10px; }
.section-title h2 { font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.section-title span { color: var(--dim); font-size: 12px; }

/* ------------------------------- карточки -------------------------------- */

.card {
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card + .card { margin-top: 14px; }
.card__row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; width: 100%; text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.card__row:last-child { border-bottom: 0; }
.card__row:active { background: rgba(255,255,255,.04); }
.card__label { font-size: 14.5px; font-weight: 540; }
.card__value { color: var(--muted); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.card__grow { flex: 1; min-width: 0; }
.card__chev { color: var(--dim); flex: none; }
.card__section-title { padding: 16px 16px 4px; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); font-weight: 650; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 20px; }
.stat {
  padding: 14px 12px; border-radius: 16px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-soft);
}
.stat b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.stat span { display: block; color: var(--dim); font-size: 11px; margin-top: 2px; letter-spacing: .02em; }

/* ------------------------------- пустые ---------------------------------- */

.empty { text-align: center; padding: 54px 22px; color: var(--muted); }
.empty__icon { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--dim); }
.empty h3 { font-size: 17px; font-weight: 650; color: var(--text); margin-bottom: 6px; }
.empty p { font-size: 13.5px; margin: 0 auto; max-width: 300px; line-height: 1.5; }
.empty code { display: inline-block; margin-top: 12px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.06); font-size: 11.5px; color: var(--muted); word-break: break-all; }

/* ------------------------------ сопряжение ------------------------------- */

.gate {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 32px) 24px calc(var(--safe-b) + 24px);
  overflow-y: auto;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255,138,0,.24), transparent 60%),
    var(--bg);
}
.gate__inner { margin: auto; width: 100%; max-width: 380px; }
.gate__logo { width: 68px; height: 68px; border-radius: 18px; overflow: hidden; margin-bottom: 22px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.gate__logo img { width: 100%; height: 100%; display: block; }
.gate h1 { font-size: 30px; }
.gate__sub { color: var(--muted); margin: 10px 0 26px; font-size: 14px; line-height: 1.5; }
.code-input {
  width: 100%; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  text-align: center; font-size: 30px; font-weight: 700; letter-spacing: .38em;
  color: var(--text); outline: none; padding-left: .38em;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s, background .2s;
}
.code-input:focus { border-color: rgba(255,138,0,.7); background: rgba(255,138,0,.08); }
.code-input::placeholder { color: rgba(255,255,255,.18); letter-spacing: .3em; }
.gate .btn { margin-top: 14px; height: 50px; }
.gate__err { color: #ff8fa3; font-size: 13px; margin-top: 12px; min-height: 18px; }
.gate__hint { color: var(--dim); font-size: 12.5px; margin-top: 22px; line-height: 1.55; }
.gate__urls { margin: 18px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.gate__url {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 13px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
}
.gate__url b { font-family: var(--font); color: var(--dim); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; }
.gate__code { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 6px; }
.gate__code span { font-size: 42px; font-weight: 750; letter-spacing: .22em; font-variant-numeric: tabular-nums; }
.gate__code button { color: var(--dim); }
.gate__toggle { margin-top: 22px; color: var(--muted); font-size: 13px; text-align: center; }
.gate__toggle button { color: #ffb35c; font-weight: 600; }
.pw-input { width: 100%; height: 52px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 0 16px; outline: none; font-size: 15px; }

/* -------------------------------- тосты ---------------------------------- */

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 148px); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 90vw; }
.toast {
  padding: 10px 16px; border-radius: 12px;
  background: rgba(28,28,38,.95); border: 1px solid rgba(255,255,255,.12);
  font-size: 13px; color: var(--text); box-shadow: 0 12px 30px rgba(0,0,0,.5);
  animation: toast-in .25s ease;
  backdrop-filter: blur(20px);
}
.toast--err { border-color: rgba(255,92,116,.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ------------------------------- скелетоны ------------------------------- */

.sk { position: relative; overflow: hidden; background: rgba(255,255,255,.05); }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent); animation: sk 1.3s infinite; }
@keyframes sk { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* -------------------------------- полоса скана ---------------------------- */

.scanbar {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 10px 14px; border-radius: 12px;
  background: var(--accent-soft); border: 1px solid rgba(255,138,0,.25);
  color: #d9cdff; font-size: 12.5px;
}
.scanbar .spinner { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: #ffb35c; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------- десктоп -------------------------------- */

.sidebar { display: none; }

@media (min-width: 900px) {
  #app { display: grid; grid-template-columns: 244px 1fr; }
  .sidebar {
    display: flex; flex-direction: column; gap: 8px;
    padding: 26px 16px 100px;
    background: rgba(10,10,14,.7);
    border-right: 1px solid var(--line-soft);
    backdrop-filter: blur(20px);
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 20px; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
  .brand b { font-size: 16px; letter-spacing: -.02em; }
  .brand span { display: block; color: var(--dim); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
  .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 11px;
    color: var(--muted); font-size: 14px; font-weight: 550;
    transition: background .15s, color .15s;
  }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-item.on { background: rgba(255,255,255,.07); color: var(--text); }
  .nav-item:hover { background: rgba(255,255,255,.05); }
  .sidebar__foot { margin-top: auto; padding: 0 12px; color: var(--dim); font-size: 11px; line-height: 1.6; }
  .sidebar__foot b { color: var(--muted); font-weight: 600; }
  .content { padding: 44px 40px 140px; }
  .segmented { max-width: 560px; }
  .grid-albums { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 26px 20px; }
  .tabbar { display: none; }
  .mini {
    left: 244px; right: 0; bottom: 0;
    border-radius: 0; height: 78px;
    padding: 0 26px 0 22px;
    border: 0; border-top: 1px solid var(--line);
    background: rgba(12,12,17,.9);
  }
  .mini__art { width: 52px; height: 52px; }
  .mini__title { font-size: 14.5px; }
  .mini__sub { font-size: 12.5px; }
  .mini__bar { left: 0; right: 0; bottom: 0; height: 2px; }
  .mini__btn--wide { width: auto; padding: 0 14px; }
  .toasts { bottom: 96px; }
  .sheet { left: 244px; }
  .np__inner { padding-left: 40px; padding-right: 40px; }
  .np__body { flex-direction: row; align-items: center; gap: 5vw; }
  .np__art { width: min(38vw, 420px); }
  .np__meta { flex-direction: column; align-items: stretch; }
  .np__info { flex: 1; max-width: 520px; }
  .np__controls { justify-content: flex-start; gap: 8px; }
  .np__play { width: 62px; height: 62px; }
  .content--narrow { max-width: 760px; }
}

@media (max-width: 899px) {
  .sidebar { display: none; }
}

/* ------------------------------- мелочи ---------------------------------- */

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* iOS: убираем «линзу» и подсветку у кнопок */
button, a { touch-action: manipulation; -webkit-touch-callout: none; }
button, .row, .album-card { -webkit-user-select: none; user-select: none; }
input { -webkit-user-select: text; user-select: text; }
body { -webkit-text-size-adjust: 100%; }
.main, .sheet__body, .queue__body, .gate { overscroll-behavior: contain; }

/* iOS не должен масштабировать страницу при фокусе на поле ввода */
.search-box input, .pw-input { font-size: 16px; }

/* ---------------------------- дополнения -------------------------------- */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 25;
  padding: calc(var(--safe-t) + 9px) 18px 11px;
  background: linear-gradient(rgba(7,7,10,.94), rgba(7,7,10,.72) 65%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  text-align: center;
}
.topbar b { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
body.scrolled .topbar { opacity: 1; transform: none; }
@media (min-width: 900px) { .topbar { left: 244px; } }

.art__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.55);
}
.art__ph span { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }

.resume {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px; margin: 0 0 22px; text-align: left;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255,138,0,.2), rgba(255,255,255,.035));
  border: 1px solid rgba(255,138,0,.24);
  transition: transform .14s;
}
.resume:active { transform: scale(.985); }
.resume__art { width: 52px; height: 52px; border-radius: 11px; overflow: hidden; flex: none; position: relative; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.resume__art img { width: 100%; height: 100%; object-fit: cover; }
.resume__main { flex: 1; min-width: 0; }
.resume__label { font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: #ffb35c; font-weight: 700; }
.resume__title { font-size: 14.5px; font-weight: 620; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume__sub { font-size: 12px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume__play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; flex: none; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 20px; margin: 0; padding: 0;
  background: transparent; outline: none; display: block;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 99px;
  background: linear-gradient(to right, rgba(255,255,255,.95) var(--p, 0%), rgba(255,255,255,.18) var(--p, 0%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; margin-top: -4px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.55);
  opacity: 0; transition: opacity .15s;
}
input[type="range"]:active::-webkit-slider-thumb,
input[type="range"]:focus::-webkit-slider-thumb { opacity: 1; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: rgba(255,255,255,.18); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 99px; background: #fff; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }

.np__info { min-width: 0; }
.np__fav.on svg { fill: currentColor; }
.np__art .art__ph span { font-size: 46px; }
.np__art.art { aspect-ratio: 1 / 1; }

.queue__item .row__eq { height: 10px; }

@media (min-width: 900px) {
  .np { left: 244px; }
  .np__inner { max-width: 1080px; margin: 0 auto; width: 100%; }
  .np__body { justify-content: center; }
  .queue { left: 244px; }
}

@media (max-width: 380px) {
  h1 { font-size: 27px; }
  .album-hero h2 { font-size: 20px; }
  .np__title { font-size: 20px; }
  .np__controls { gap: 0; }
  .np__ctrl { width: 46px; }
}

/* =========================================================================
   APK-parity: Golos Text, orange accent, cards, quality, Cover Flow
   ========================================================================= */

body {
  background: #000;
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: -0.012em;
}
body::before {
  background:
    radial-gradient(110% 58% at 84% -8%, rgba(255, 138, 0, 0.12), transparent 60%),
    radial-gradient(70% 42% at 0% 100%, rgba(255, 179, 92, 0.05), transparent 65%);
}
h1 { font-weight: 800; letter-spacing: -0.04em; }
h2 { font-weight: 700; }
:root { --r-lg: 18px; --r-md: 14px; --r-sm: 10px; }

.content { padding-bottom: calc(var(--safe-b) + 172px); }
.page-head { margin-bottom: 18px; }
.eyebrow { font-size: 10px; letter-spacing: .16em; color: #8d8d92; }
.sub { color: var(--muted); }

/* ------------- главная ------------- */
.home { padding-top: calc(var(--safe-t) + 20px); }
.home__hello {
  font-size: 30px; line-height: 1.1; font-weight: 800;
  letter-spacing: -.05em; margin: 0 0 22px;
}
.home__section { margin: 0 0 12px; align-items: center; }
.home__section h2 { font-size: 18px; font-weight: 800; }
.section-link {
  color: #ffb35c; font-size: 12px; font-weight: 600;
  padding: 6px 0 6px 12px;
}
.hrow {
  display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px 26px; padding: 0 16px 2px;
}
.hrow::-webkit-scrollbar { display: none; }
.hrow__item { flex: 0 0 142px; width: 142px; scroll-snap-align: start; }
.hrow .album-card__title { font-size: 13.5px; }
.hrow .album-card__artist { font-size: 12px; }

.home-downloads {
  display: flex; align-items: center; gap: 12px; width: 100%;
  margin: 0 0 24px; padding: 13px 14px; text-align: left;
  border-radius: 15px; background: #141414;
  border: 1px solid rgba(255,255,255,.06);
}
.home-downloads__icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: var(--mint);
  background: var(--mint-soft);
}
.home-downloads__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-downloads__main b { font-size: 14.5px; font-weight: 650; }
.home-downloads__main span { color: var(--muted); font-size: 12px; }
.home-downloads > svg { color: var(--muted); flex: none; }

/* ------------- сегменты и сетка ------------- */
.segmented {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px; padding: 3px; border-radius: 13px;
  background: rgba(255,255,255,.05); border: 0;
}
.segmented button {
  min-width: 0; padding: 9px 2px; font-size: 11px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis;
}
.segmented button.on { background: rgba(255,255,255,.10); color: #fff; }
.grid-albums { gap: 17px 12px; }
.album-card__title { font-weight: 650; letter-spacing: -.02em; }
.art { border-radius: 12px; background: #151515; }
.art__chip {
  right: 6px; top: 6px; padding: 2px 6px; border-radius: 5px;
  background: rgba(0,0,0,.58); font-weight: 650;
}
.art__chip i { background: var(--mint); }

/* ------------- строки и бейджи ------------- */
.row { padding: 8px 0; }
.row__title { font-weight: 600; }
.row__side { gap: 7px; }
.quality-badge {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 100%; padding: 4px 8px; border-radius: 8px;
  background: rgba(69, 217, 164, .12);
  border: 1px solid rgba(69, 217, 164, .22);
  color: #9ff0d3; font-size: 10.5px; font-weight: 650;
  line-height: 1; white-space: nowrap; flex: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.quality-badge svg { flex: none; opacity: .9; }
.quality-badge--sm { padding: 3px 6px; font-size: 9.5px; gap: 3px; border-radius: 6px; }
.row__side .quality-badge--sm { margin-right: 1px; }

.mini {
  left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b));
  height: 64px; border-radius: 0; padding: 0 12px;
  background: #141414; border: 0; border-top: 1px solid rgba(255,255,255,.06);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  gap: 10px; z-index: 31;
}
.mini.dragging { transition: none; }
.mini__art { width: 48px; height: 48px; border-radius: 9px; }
.mini__title { font-size: 14px; font-weight: 650; }
.mini__sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mini__sub > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__bar { left: 0; right: 0; bottom: 0; height: 2px; }
.mini__btn { width: 38px; height: 38px; }
.tabbar { background: #0a0a0a; }
.tabbar button { font-size: 10px; font-weight: 600; }

/* ------------- настройки ------------- */
.settings .card { background: #121212; border-color: rgba(255,255,255,.05); }
.settings .page-head h1 { font-size: 32px; }
.card { background: #121212; border-color: rgba(255,255,255,.055); }
.card__section-title { color: #8d8d92; }
.card--link { width: 100%; text-align: left; display: block; }
.card__row .settings-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
}
.settings-icon--mint { background: var(--mint-soft); color: var(--mint); }
.status-pill {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 5px 9px; border-radius: 20px;
  background: rgba(69,217,164,.12); color: var(--mint);
  font-size: 10px; font-weight: 650;
}
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pill.is-offline { background: rgba(255,138,0,.13); color: var(--accent); }
.danger-text { color: var(--danger) !important; }

/* ------------- качество: модалка и настройки ------------- */
.quality-modal {
  position: fixed; inset: 0; z-index: 115;
  display: grid; place-items: center; padding: 24px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  animation: fade-in .18s ease;
}
.quality-modal__card {
  width: min(86vw, 350px); overflow: hidden;
  border-radius: 16px; background: #2c2c2e;
  color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  text-align: center;
}
.quality-modal__wave { padding: 24px 0 8px; color: #fff; display: grid; place-items: center; }
.quality-modal__title { font-size: 18px; font-weight: 700; }
.quality-modal__detail { color: rgba(255,255,255,.7); font-size: 14px; margin-top: 6px; padding: 0 20px 18px; }
.quality-modal__link, .quality-modal__ok {
  display: block; width: 100%; height: 50px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #fff; font-size: 15px; font-weight: 500;
}
.quality-modal__link { color: #fff; }
.quality-modal__ok { font-weight: 700; }
.quality-modal__card--settings { text-align: left; }
.quality-modal__heading { font-size: 17px; font-weight: 700; padding: 18px 20px 0; }
.quality-modal__hint { color: rgba(255,255,255,.55); font-size: 12px; padding: 6px 20px 10px; }
.quality-options { display: flex; flex-direction: column; }
.quality-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 13px 20px; text-align: left;
  border-top: 1px solid rgba(255,255,255,.08);
}
.quality-option b { display: block; font-size: 16px; font-weight: 600; }
.quality-option span { display: block; color: rgba(255,255,255,.6); font-size: 12.5px; margin-top: 2px; }
.quality-option .radio {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255,255,255,.3); display: grid; place-items: center;
}
.quality-option.on .radio { border-color: var(--accent); }
.quality-option.on .radio::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
}
.quality-modal__note {
  color: rgba(255,255,255,.55); font-size: 11.5px; line-height: 1.5;
  margin: 0; padding: 12px 20px 8px; border-top: 1px solid rgba(255,255,255,.08);
}
.quality-options--settings { border-top: 1px solid rgba(255,255,255,.05); }
.quality-options--settings .quality-option { padding: 13px 16px; }
.quality-options--settings .quality-option b { font-size: 15px; }
.quality-options--settings .quality-option span { font-size: 12px; }
@keyframes fade-in { from { opacity: 0; } }

/* ------------- now playing / cover flow ------------- */
.np { background: #050505; }
.np__head-actions { display: flex; gap: 2px; align-items: center; }
.np__head-actions .icon-btn.on { color: var(--accent); background: var(--accent-soft); }
.np__quality { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.np__quality-detail { color: rgba(255,255,255,.55); font-size: 11px; }
.np__art { transition: transform .22s cubic-bezier(.2,.9,.2,1); touch-action: none; }
.np__art.dragging { transition: none; }
.np__bottom .quality-badge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }

.np__stage { position: relative; width: min(88vw, 400px); aspect-ratio: 1; margin: 0 auto; }
.np__stage > .np__art { width: 100%; height: 100%; }
.flow__cover { display: none; }

.np--flow .np__body { perspective: 1200px; }
.np--flow .np__stage { width: min(72vw, 460px); margin: 0 auto; }
.np--flow .flow__cover {
  display: block; position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%; padding: 0;
  transform-origin: center center;
  transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .3s;
  opacity: .72; border-radius: 18px; overflow: hidden;
  box-shadow: 0 28px 60px rgba(0,0,0,.55);
}
.np--flow .flow__cover .art { width: 100%; height: 100%; border-radius: 18px; }
.np--flow .flow__cover--prev1 { transform: translate(-50%, -50%) translateX(-78%) rotateY(42deg) scale(.76); opacity: .55; }
.np--flow .flow__cover--prev2 { transform: translate(-50%, -50%) translateX(-138%) rotateY(54deg) scale(.58); opacity: .25; }
.np--flow .flow__cover--next1 { transform: translate(-50%, -50%) translateX(78%) rotateY(-42deg) scale(.76); opacity: .55; }
.np--flow .flow__cover--next2 { transform: translate(-50%, -50%) translateX(138%) rotateY(-54deg) scale(.58); opacity: .25; }
.np--flow .np__art { position: relative; z-index: 2; box-shadow: 0 35px 80px rgba(0,0,0,.6); }
.np--flow .np__source { letter-spacing: .16em; font-size: 10px; }

@media (min-width: 900px) {
  .content { padding: 40px 38px 130px; max-width: 1180px; }
  .home__hello { font-size: 36px; }
  .hrow { margin: 0 0 30px; padding: 0; }
  .hrow__item { flex-basis: 168px; width: 168px; }
  .grid-albums { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 26px 18px; }
  .segmented { max-width: none; }
  .mini { left: 244px; right: 0; bottom: 0; height: 74px; border-radius: 0; border-top: 1px solid rgba(255,255,255,.07); }
  .np--flow .np__body { flex-direction: row; align-items: center; gap: 5vw; }
  .np--flow .np__stage { width: min(39vw, 480px); flex: none; margin: 0; }
  .np--flow .np__info { flex: 1; max-width: 430px; }
  .np--flow .np__controls { justify-content: flex-start; gap: 8px; }
}

@media (max-width: 899px) {
  .topbar { background: linear-gradient(rgba(0,0,0,.95), rgba(0,0,0,.75) 65%, transparent); }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
  .np--flow .np__inner { padding-top: calc(var(--safe-t) + 2px); padding-bottom: calc(var(--safe-b) + 4px); }
  .np--flow .np__body { flex-direction: row; gap: 16px; align-items: center; }
  .np--flow .np__stage { width: min(38vw, 300px); }
  .np--flow .np__info { flex: 1; max-width: 360px; }
  .np--flow .np__controls { gap: 2px; }
  .np--flow .np__ctrl { width: 42px; height: 42px; }
  .np--flow .np__play { width: 50px; height: 50px; }
  .np--flow .np__title { font-size: 19px; }
}

/* небольшие доводки */
.flow__cover .art { display: block; width: 100%; height: 100%; }
.np__stage { touch-action: none; }
.np__quality .quality-badge { background: rgba(69,217,164,.1); }
.np__bottom .quality-badge { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: #9ff0d3; }
.quality-badge svg { width: 14px; height: 14px; }
.quality-badge--sm svg { width: 12px; height: 12px; }
.np__head-actions .icon-btn { width: 36px; height: 36px; }
.np__head-actions .icon-btn.on { color: var(--accent); background: var(--accent-soft); }
.np--flow .flow__cover { border: 0; background: transparent; }
.np--flow .flow__cover:active { opacity: .85; }
.card--link { background: #121212; border: 1px solid rgba(255,255,255,.055); }
.card--link:hover { background: #171717; }
.settings .quality-option { border-color: rgba(255,255,255,.06); }
.settings .quality-option b { font-weight: 600; }
.settings .quality-option.on { background: rgba(255,138,0,.05); }

@media (min-width: 900px), (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
  .np--flow .np__body { overflow: hidden; }
  .np--flow .np__info {
    position: relative; z-index: 5;
    background: linear-gradient(90deg, rgba(5,5,5,0) 0%, rgba(5,5,5,.82) 12%, #050505 26%);
    padding-left: 26px;
  }
  .np--flow .np__bottom { z-index: 6; }
}

@media (min-width: 900px), (orientation: landscape) and (max-height: 520px) and (max-width: 950px) {
  .np--flow .np__bottom { display: none; }
}

/* не даём браузеру начинать нативный drag картинки при свайпе */
.art img, .mini__art img, .row__art img { -webkit-user-drag: none; user-select: none; }
.np__art, .mini, .np__stage { user-select: none; -webkit-user-select: none; }
