/* ==========================================================
   CALM — чистка «под стекло» (2026-10-23)
   Грузится последним. Убирает лишние слои света и делает стекло
   нейтральным, как у Apple Music: свет бренда остаётся, мути нет.
   Откат: убрать <link> на calm.css в index.html.
   ========================================================== */

/* 1. СВЕТ. Кремовое ядро и светлые «кольца» (rim) в смеси screen давали серо-бежевые
   разводы и обводки вокруг героя. Остаются три мягких пятна бренда. */
body .light .orb-core,
body .light .orb-rim,
body .light .orb-rim-b,
body[data-bg] .light .orb-core,
body[data-bg] .light .orb-rim,
body[data-bg] .light .orb-rim-b { opacity: 0 !important; }

/* насыщенность и яркость больше не «дышат» на пол-экрана */
@keyframes hue-flow { 0% { filter: saturate(1) brightness(0.96); } 100% { filter: saturate(1.1) brightness(1.04); } }
@keyframes hue-flow-soft { 0% { filter: saturate(1) brightness(0.98); } 100% { filter: saturate(1.06) brightness(1.02); } }

/* ночное основание глубже и чище; нижняя лужа света тише */
.light { background: color-mix(in srgb, var(--c-deep) 22%, #10060D); }
.light-spill { opacity: 0.34; }
body[data-screen="player"] .light-spill { opacity: 0.5; }
.light-grain { opacity: 0.18; }

/* 2. СТЕКЛО. Одна нейтральная прозрачность, размытие и тонкая светлая кромка.
   Без розовой заливки и без «осветления» подложки. */
.glass, .round-glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  backdrop-filter: blur(30px) saturate(165%);
  box-shadow:
    inset 0 0.5px 0.5px rgba(255, 255, 255, 0.38),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.1),
    0 10px 30px -12px rgba(0, 0, 0, 0.5);
}
.glass::before, .round-glass::before {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.1));
}

/* нижняя панель: прозрачное стекло, активная вкладка — светлая «капсула» */
.tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.28), 0 2px 10px -4px rgba(0, 0, 0, 0.35);
}

/* 3. ПОВЕРХНОСТИ. Раньше подложки были тёплого кремового оттенка и в сумме с розовым светом
   давали «кирпичный» цвет. Теперь нейтральный белый со слабой прозрачностью, как у Apple. */
:root {
  --surface-1: rgba(255, 255, 255, 0.065);
  --surface-2: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.1);
  /* сфера без кремового пятна: цвет трека от тёплого к глубокому */
  --orb-mini: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--c-warm) 88%, #fff) 0%, var(--c-mid) 52%, var(--c-deep) 100%);
}
.cover-fav { background: radial-gradient(circle at 34% 26%, color-mix(in srgb, var(--c-warm) 88%, #fff) 0%, var(--c-mid) 54%, var(--c-deep) 100%); }

/* группы, плитки профиля и Плюса — одно стекло: без цветных градиентов поверх */
.group, .pf-stats {
  background: var(--surface-1);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12), inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
}
.plus-card {
  background: linear-gradient(120deg, color-mix(in srgb, var(--c-mid) 20%, transparent), color-mix(in srgb, var(--c-deep) 24%, transparent)), var(--surface-1);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), inset 0 0.5px 0 rgba(255, 255, 255, 0.24);
}

/* кнопки-таблетки: то же нейтральное стекло */
.pill-quiet, .lang-row button, .mix-refresh, .mood-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.3), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
}

/* страницы с более «тяжёлыми» правилами (профиль, перенос плейлиста): те же поверхности */
#screen-profile .pf-stats, #screen-profile .pf-group, #screen-profile .pf-actions .pill-btn, .import-card {
  background: var(--surface-1);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12), inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
}
#screen-profile .plus-card {
  background: linear-gradient(120deg, color-mix(in srgb, var(--c-mid) 22%, transparent), color-mix(in srgb, var(--c-deep) 26%, transparent)), var(--surface-1);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), inset 0 0.5px 0 rgba(255, 255, 255, 0.24);
}

/* бледно-розовое пятно давало серо-розовую муть слева сверху: оставляем лишь намёк */
body .light .orb-orange { opacity: 0.3; }

/* 4. ИТЕРАЦИЯ 2 */
/* превью «Узор света» в Оформлении: те же правила, что и у основного фона, без колец и кремового ядра */
.pattern-thumb .orb-core, .pattern-thumb .orb-rim, .pattern-thumb .orb-rim-b,
.pattern-thumb[data-bg] .orb-core, .pattern-thumb[data-bg] .orb-rim, .pattern-thumb[data-bg] .orb-rim-b { opacity: 0 !important; }
.pattern-thumb .orb-orange { opacity: 0.3; }

/* карточки звука: то же стекло, без цветной подсветки сверху и свечения снизу */
.xf, .snd-eq-card {
  background: var(--surface-1);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  backdrop-filter: blur(24px) saturate(130%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12), inset 0 0.5px 0 rgba(255, 255, 255, 0.2);
}

/* стекло не усиливает розовый свет под собой: меньше насыщенности подложки */
.group, .pf-stats, .plus-card, .import-card { -webkit-backdrop-filter: blur(24px) saturate(120%); backdrop-filter: blur(24px) saturate(120%); }

/* 5. МЕНЮ ТРЕКА («три точки»): четыре главных действия плитками, остальное — две группы без «линз» у иконок */
.tm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 6px 4px 8px; }
.tm-quick .sheet-row {
  flex-direction: column; justify-content: flex-start; gap: 8px; min-height: 0; padding: 14px 4px 12px;
  border-radius: 18px; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--text-2);
  background: var(--surface-1); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1), inset 0 0.5px 0 rgba(255, 255, 255, 0.16);
}
.tm-quick .sheet-row > svg { width: 26px; height: 26px; padding: 0; background: none; box-shadow: none; }
.tm-quick .sheet-row > span { width: 100%; overflow-wrap: anywhere; }
.tm-list { margin: 0 4px 8px; border-radius: 20px; overflow: hidden; background: var(--surface-1); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1); }
.tm-list .sheet-row { min-height: 52px; border-radius: 0; padding: 0 14px; gap: 14px; font-size: 16px; }
.tm-list .sheet-row > svg { width: 22px; height: 22px; padding: 0; background: none; box-shadow: none; color: var(--text-2); }
.tm-list .sheet-row + .sheet-row { box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.1); }
.tm-list .sheet-row:active:not(:disabled) { transform: none; background: rgba(255, 255, 255, 0.08); }
.tm-list .sheet-row .tag { margin-left: auto; }
.sheet-anim.open .sheet > .tm-quick, .sheet-anim.open .sheet > .tm-list { animation: row-in 0.42s var(--ease-out) both; }

/* 6. ПЛЕЕР: только иконки. Раскладку (особенно на ПК в режиме текста) не трогаем */
/* сердце стоит по правому краю полоски времени, а не отступает на 10px */
body:not(.lyrics-open) .player-meta .fav-btn { margin-right: -9px; }
/* значки одного ряда одного размера */
body .player-foot .foot-btn.round-glass svg { width: 22px; height: 22px; }
body .player-bar .round-btn svg { width: 22px; height: 22px; }
.tm-list .sheet-row { height: 52px; min-height: 52px; max-height: 52px; align-items: center; }
.tm-list .sheet-row > span:not(.tag) { line-height: 1.2; }
.tm-list .sheet-row, .tm-list .sheet-row + .sheet-row { margin: 0; }
.tm-list { display: flex; flex-direction: column; gap: 0; }

/* ПК, «Обложка и текст»: ряд иконок стоит точно под обложкой, на её оси (раньше был прижат вправо) */
body.is-desktop.lyrics-open.lyrics-cover .player-foot { justify-self: center; margin-left: auto; margin-right: auto; }
