/* Prisma Music — основа: шрифты, цвета, стекло, кнопки.
   Всё чёрное и белое, как знак Prisma. Цвет появляется только там, где свет проходит
   через призму: в «Моей волне», в лайках и в отсветах обложки играющего трека. */

@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/unbounded-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/unbounded-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/unbounded-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/unbounded-cyrillic-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/onest-cyrillic-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }

:root {
  /* небо и свет */
  --void: #000;
  --ink: rgba(255, 255, 255, .96);
  --ink-2: rgba(255, 255, 255, .66);
  --ink-3: rgba(255, 255, 255, .44);
  --ink-4: rgba(255, 255, 255, .24);
  --line: rgba(255, 255, 255, .09);
  --fill-1: rgba(255, 255, 255, .045);
  --fill-2: rgba(255, 255, 255, .08);
  --fill-3: rgba(255, 255, 255, .14);
  /* цвет обложки играющего трека (r, g, b) — ставит скрипт */
  --tint: 158, 170, 255;
  /* свет, разложенный призмой */
  --spectrum: linear-gradient(90deg, #7df9ff 0%, #8e9bff 26%, #c689ff 50%, #ff8ac4 74%, #ffc978 100%);
  --danger: #ff7a8a;

  --font-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --gap: 12px;
  --side-w: 248px;
  --top-h: 48px;
  --dock-h: 84px;
  --queue-w: 336px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.45, .5, 1);

  --glass-blur: 22px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 14px/1.45 var(--font-text);
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
input, textarea { font: inherit; color: inherit; }
img { display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 255, 255, .28); }

:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }

/* полосы прокрутки — тонкие, как штрих */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .13); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-corner { background: transparent; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; } }

/* ---------- слои неба ---------- */
#sky { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
#grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .5; background-size: 180px 180px; }

/* ---------- стекло ----------
   Слой 1 — сама толща: размытие и чуть больше света и цвета у того, что за стеклом.
   Слой 2 (::before) — кромка: свет ложится на верхний левый край и чуть на нижний правый.
   Слой 3 (::after) — блик, который ходит за курсором. */
.glass {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-xl);
  /* белёсый отлив сверху и снизу + тёмная подложка: поверх ярких обложек надписи остаются читаемыми */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .035) 34%, rgba(255, 255, 255, .03) 70%, rgba(255, 255, 255, .06) 100%),
    rgba(9, 9, 13, .40);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .30),
    inset 0 18px 28px -22px rgba(255, 255, 255, .20),
    inset 0 -20px 30px -26px rgba(255, 255, 255, .10),
    0 30px 70px -28px rgba(0, 0, 0, .95),
    0 2px 8px rgba(0, 0, 0, .35);
}
.glass::before {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(142deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .10) 22%, rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .22) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.glass::after {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, -40%), rgba(255, 255, 255, .11), transparent 62%);
  opacity: var(--sheen, 0);
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.glass > * { position: relative; z-index: 4; }

.glass.thin { --glass-blur: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)), rgba(9, 9, 13, .40); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), inset 0 12px 18px -16px rgba(255, 255, 255, .16), 0 12px 30px -16px rgba(0, 0, 0, .8); }
.glass.deep { --glass-blur: 34px; background: linear-gradient(180deg, rgba(22, 22, 30, .62), rgba(8, 8, 12, .7)); }
/* стекло без размытия — для мелких плашек, что лежат прямо на небе: размывать под ними нечего */
.glass.flat { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* экономный режим: размытие — самое дорогое, без него стекло просто плотнее */
body.eco .glass, body.eco #toast { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.eco .glass:not(.flat), body.eco #dock, body.eco #queue { background: linear-gradient(180deg, rgba(31, 31, 39, .975), rgba(13, 13, 18, .985)); }
body.eco #toast { background: rgba(30, 30, 38, .97); }
body.eco .scrim { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, .72); }

/* ---------- текст ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.02; }
.h1 { font: 800 clamp(30px, 3.6vw, 52px)/1.02 var(--font-display); letter-spacing: -.025em; }
.h2 { font: 700 19px/1.2 var(--font-display); letter-spacing: -.015em; }
.h3 { font: 600 14px/1.3 var(--font-text); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.small { font-size: 12.5px; }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- кнопки ---------- */
.ico { display: inline-flex; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 22px;
  border-radius: 999px;
  font: 600 14px/1 var(--font-text);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 10px 24px -14px rgba(0, 0, 0, .9);
  transition: transform .18s var(--spring), background .2s, box-shadow .2s, color .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .09)); }
.btn:active { transform: scale(.965); }
.btn:disabled { opacity: .45; transform: none; }
.btn .ico { width: 18px; height: 18px; }
.btn.solid { color: #000; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 10px 34px -8px rgba(255, 255, 255, .34); }
.btn.solid:hover { background: #fff; box-shadow: 0 0 0 1px #fff, 0 12px 44px -6px rgba(255, 255, 255, .5); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn.round { width: 44px; padding: 0; }
.btn.sm.round { width: 36px; }
.btn.on { color: #000; background: #fff; }

.ibtn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  color: var(--ink-2);
  transition: color .16s, background .16s, transform .18s var(--spring), opacity .16s;
}
.ibtn:hover { color: var(--ink); background: var(--fill-2); }
.ibtn:active { transform: scale(.9); }
.ibtn:disabled { opacity: .3; background: none; transform: none; }
.ibtn.on { color: var(--ink); }
.ibtn .ico { width: 19px; height: 19px; }
.ibtn.sm { width: 30px; height: 30px; }
.ibtn.sm .ico { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 15px;
  border-radius: 999px;
  font: 500 13px/1 var(--font-text);
  color: var(--ink-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: color .16s, background .2s, transform .18s var(--spring), box-shadow .2s;
  white-space: nowrap;
}
.chip:hover { color: var(--ink); background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); }
.chip:active { transform: scale(.95); }
.chip.on { color: #000; background: #fff; box-shadow: 0 6px 24px -8px rgba(255, 255, 255, .5); }
.chip .ico { width: 15px; height: 15px; }

.field {
  width: 100%; height: 44px; padding: 0 16px;
  border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 2px 6px rgba(0, 0, 0, .35);
  color: var(--ink);
  transition: box-shadow .2s, background .2s;
  user-select: text; -webkit-user-select: text;
}
.field::placeholder { color: var(--ink-3); }
.field:focus { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 2px 6px rgba(0, 0, 0, .35); outline: none; }
textarea.field { height: auto; padding: 12px 16px; resize: vertical; min-height: 112px; line-height: 1.5; }
input[type='search']::-webkit-search-cancel-button, input[type='search']::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

/* ---------- картинки: проявляются, когда загрузились ---------- */
img.lazy { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
img.lazy.ok { opacity: 1; }

/* ---------- каркасы загрузки ---------- */
.sk { background: linear-gradient(100deg, rgba(255, 255, 255, .05) 30%, rgba(255, 255, 255, .11) 50%, rgba(255, 255, 255, .05) 70%); background-size: 240% 100%; animation: sk 1.5s linear infinite; border-radius: 10px; }
@keyframes sk { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- всплывающая строка ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + var(--gap) * 2 + 8px); z-index: 90;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 22px; max-width: min(560px, 80vw);
  font-weight: 500; font-size: 13.5px; text-align: center;
  background: rgba(30, 30, 38, .72);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px -14px #000;
  transition: opacity .25s, transform .35s var(--ease);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- заставка: знак рисуется линиями, слово собирается по буквам ---------- */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 30px; transition: opacity .7s var(--ease), visibility 0s .7s; }
#splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-mark { width: 132px; height: 138px; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .55)); }
.splash-mark svg { width: 100%; height: 100%; overflow: visible; }
.splash-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.splash-word { font: 900 30px/1.08 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; text-align: center; }
.splash-word span { display: inline-block; opacity: 0; transform: translateY(8px) scale(.9); animation: letter .34s var(--ease) forwards; }
@keyframes letter { to { opacity: 1; transform: none; } }
.splash-note { min-height: 20px; max-width: 440px; text-align: center; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.splash-note .btn { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
