/* ЕДИНАЯ СИСТЕМА. Загружается последней и приводит все экраны к одним правилам:
   одна шкала заголовков, одни скругления, одни отступы между разделами.
   Новые экраны берут значения отсюда, а не придумывают свои. */
:root {
  --t-title: 40px;   /* большой заголовок экрана */
  --t-hero: 28px;    /* имя в центре (профиль, плейлист, альбом, о Нотке) */
  --t-h2: 22px;      /* заголовок раздела внутри экрана */
  --gap-sec: 32px;   /* между разделами */
  --gap-head: 14px;  /* от заголовка раздела до его содержимого */
  /* скругления: --radius-s 10 (мелкие обложки), --radius-m 16 (полки, сетка), --radius-l 24 (карточки, большие обложки) */
}

/* большие заголовки экранов */
.display, .look-title, .mood-title, .plus-title, .event-title {
  font-size: var(--t-title); line-height: 1; font-weight: 800; letter-spacing: -0.04em;
}
.display.page-title { margin: 12px 0 18px; }

/* имя в центре */
.hero-title, .about-hero .hero-title { font-size: var(--t-hero); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; }
.pw-name { font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.03em; }

/* заголовки разделов */
.h2, .look-h, .mood-h, .event-h, .group-caption, .results-section .h2, .block-title {
  font-size: var(--t-h2); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; color: var(--text);
}
.block-head { margin-bottom: var(--gap-head); }
.block-title, .look-h, .event-h, .mood-h { margin-bottom: var(--gap-head); }
.mood-h { margin-top: var(--gap-sec); }
.event-h { margin-top: var(--gap-sec); }
.group-caption { margin: var(--gap-sec) 2px var(--gap-head); display: flex; align-items: center; gap: 8px; }
.results-section .h2 { margin: 22px 0 8px; }

/* разделы друг под другом */
.block { margin-bottom: var(--gap-sec); }
.look-sec, .snd-sec { margin-top: var(--gap-sec); }

/* карточки и группы: одно скругление */
.group, .plus-card, .import-card, .xf, .event-banner { border-radius: var(--radius-l); }
.cover-sm, .cover-md { border-radius: var(--radius-s); }
.playlist-card .cover { border-radius: var(--radius-m); }
.cover-lg { border-radius: var(--radius-l); }

/* подпись под большим заголовком */
.look-note, .mood-lede { font-size: 16px; line-height: 1.4; color: var(--text-2); margin: 10px 2px 0; max-width: 30em; text-wrap: pretty; }

/* заголовок экрана сразу под кнопкой «назад»; заголовок «Статистика», «Добавить треки», «Редактировать» — такие же, как у «Оформления» */
.screen > .look-title + .chips, .screen > .look-title + .field, .screen > .look-title + p { margin-top: 18px; }
.atmo-opt-row .chip { height: 38px; font-size: 15px; padding: 0 16px; }

/* круглое остаётся круглым (исполнители, аватары), даже если размер задаёт скругление */
.cover-round, .cover-lg.cover-round, .cover-sm.cover-round, .cover-md.cover-round { border-radius: 50%; }

/* Аккаунт: фото и имя в одну строку слева, под большим заголовком (а не по центру поверх него) */
#screen-account .hero-profile { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: center; justify-items: start; text-align: left; padding: 6px 0 0; margin: 18px 0 var(--gap-sec); }
#screen-account .hero-profile .cover-edit-wrap { grid-row: 1 / span 2; }
#screen-account .hero-profile .avatar-lg { width: 84px; height: 84px; font-size: 34px; margin: 0; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16), 0 18px 36px -12px color-mix(in srgb, var(--c-mid) 80%, transparent); }
#screen-account .hero-profile .cover-edit { width: 34px; height: 34px; bottom: -2px; right: -6px; }
#screen-account .hero-profile .hero-name-btn { grid-column: 2; align-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.03em; min-height: 0; padding: 0; }
#screen-account .hero-profile .hero-sub { grid-column: 2; align-self: start; margin-top: 2px; }
#screen-account .hero-profile:has(.hero-sub:empty) .hero-name-btn { grid-row: 1 / span 2; align-self: center; }

/* Плюс: над плашкой с ценой контент плавно гаснет, а не упирается в её край */
.plus-bar::before { content: ""; position: absolute; left: -4px; right: -4px; top: -40px; height: 40px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(12, 10, 18, 0.85)); }

/* Страница Плюса: подборка обложек сверху, метка, «Твой план» (по мотивам страницы подписки в музыкальных сервисах) */
.plus-brand { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.plus-brand-orb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--c-core), var(--c-warm) 45%, var(--c-mid) 80%); box-shadow: 0 0 14px color-mix(in srgb, var(--c-warm) 60%, transparent); }
.plus-plan-sec { margin: var(--gap-sec) 0 22px; }
.plus-plan-h { margin-bottom: var(--gap-head); }
.plan-buy[hidden] { display: none; }
.plus-bar.is-covered { display: none; }

/* шапка Плюса: полотно из горизонтальных мини-плееров с настоящими обложками, ровная сетка в перспективе, будто лежат на столе */
#screen-plus { isolation: isolate; }
.plus-hero { padding-top: 188px; }
.plus-showcase {
  position: absolute; left: 0; right: 0; top: 0; height: 330px; overflow: hidden; pointer-events: none; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 46%, transparent 80%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 46%, transparent 80%);
}
.ps-deck {
  position: absolute; left: 50%; top: 4px; width: 780px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  transform: translateX(-50%) perspective(640px) rotateX(58deg) rotateZ(-9deg);
  transform-origin: 50% 0;
  opacity: 0.7;
}
.ps-tile {
  position: relative; display: flex; align-items: center; gap: 12px; height: 72px; padding: 9px 12px 14px 9px; border-radius: 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.26) 0, rgba(255, 255, 255, 0.06) 38%, rgba(255, 255, 255, 0.02) 62%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(160deg, color-mix(in srgb, var(--c-mid) 30%, rgba(60, 40, 80, 0.72)), color-mix(in srgb, var(--c-deep) 40%, rgba(24, 16, 34, 0.78)));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -10px 18px -10px rgba(255, 255, 255, 0.12), 0 18px 28px -14px rgba(0, 0, 0, 0.75);
}
.ps-tile:nth-child(n+19) { display: none; }
.ps-cover { display: block; width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: var(--surface-2) center / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ps-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ps-meta b { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-meta em { font-style: normal; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-play { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--btn-light); color: var(--bg); }
.ps-play svg { width: 16px; height: 16px; }
.ps-bar { position: absolute; left: 73px; right: 12px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.ps-bar u { display: block; height: 100%; border-radius: 3px; background: var(--c-warm); }

/* план: выбор срока и сама карточка */
.plan-card { position: relative; padding: 22px 16px 18px; border-radius: var(--radius-l); background: radial-gradient(120% 70% at 12% 0%, color-mix(in srgb, var(--c-mid) 34%, transparent), transparent 70%), linear-gradient(180deg, #221a2f, #151019); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 30px 60px -28px color-mix(in srgb, var(--c-mid) 80%, #000); }
.plan-name { display: flex; align-items: center; gap: 10px; padding: 0 4px 16px; font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: var(--c-warm); }
.plan-opts { display: flex; flex-direction: column; gap: 10px; }
.plan-opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 14px 14px 16px; border-radius: var(--radius-m); text-align: left; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); transition: box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-out), transform 0.25s var(--ease-out); }
.plan-opt:active { transform: scale(0.985); }
.plan-opt.is-on { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 2px var(--c-warm); }
.po-radio { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); transition: box-shadow 0.3s var(--ease-out), background-color 0.3s; }
.plan-opt.is-on .po-radio { background: radial-gradient(circle, #fff 0 30%, var(--c-warm) 34%); box-shadow: 0 0 14px color-mix(in srgb, var(--c-warm) 55%, transparent); }
.po-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.po-main b { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.po-main i { font-style: normal; font-size: 14px; color: var(--text-2); }
.po-price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.po-price b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.po-price s { font-size: 13px; color: var(--text-3); }
.po-badge { position: absolute; top: -9px; right: 14px; padding: 2px 9px; border-radius: 999px; font-style: normal; font-size: 12.5px; font-weight: 800; color: #1a1020; background: var(--c-warm); }
.plan-list { margin: 18px 0 0; padding: 18px 4px 0 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 15.5px; line-height: 1.4; color: var(--text-2); }
.plan-list li { margin-bottom: 8px; padding-left: 2px; }
.plan-state { margin-top: 6px; padding: 0 4px; font-size: 16px; font-weight: 600; }
.plan-buy { margin-top: 16px; height: 54px; font-size: 17px; }
.plus-bar.is-skipped { display: none; }

/* метка Плюса: тот же круг с плюсом, что на карточке «Нотка Плюс» в профиле */
.plus-brand-mark { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--btn-light); color: var(--bg); }
.plan-name .plus-brand-mark { width: 30px; height: 30px; }

/* Оформление, выбор плеера: ровно по левому краю, как ряд атмосфер */
#screen-look .look-stage { gap: 12px; padding: 6px 20px 10px; scroll-padding-inline: 20px; scroll-snap-type: x mandatory; }
#screen-look .look-slide { width: 196px; align-items: flex-start; text-align: left; scroll-snap-align: start; gap: 9px; padding: 0; }
#screen-look .look-obj { width: 196px; height: 196px; justify-content: flex-start; }
#screen-look .look-std { width: 196px; height: 196px; border-radius: var(--radius-l); }
#screen-look .look-slide .show-disc { width: 196px; }
#screen-look .look-slide .cassette { max-width: 196px; }
#screen-look .look-slide-name { padding: 0 2px; font-size: 15px; }

/* О Нотке: коротко, кто мы и что делаем */
.about-text { margin: 18px 2px 0; font-size: 16px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.about-lead + .about-text { margin-top: 18px; }
.about-lead { margin-bottom: 0; }
.about-text + .about-note, .about-text ~ .about-note { margin-top: 28px; }
#about-news-btn { margin-top: 10px; } /* под «Написать в поддержку» */

/* Итоги: плоские карточки, крупный шрифт, цвета темы */
.stats-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.stats-head .look-title { margin-bottom: 0; }
.stats-head + .chips { margin-top: 18px; }
.stats-recap-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px 0 16px; margin-bottom: 4px; border-radius: 999px; font-size: 15px; font-weight: 700; color: var(--text); background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transition: transform 0.25s var(--ease-out); }
.stats-recap-btn:active { transform: scale(0.95); }
.stats-recap-btn svg { opacity: 0.8; }
.rcp-deck { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 18px -20px 0; padding: 4px 20px 6px; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; }
.rcp-deck::-webkit-scrollbar { display: none; }
.rcp-card { --soft: rgba(255, 255, 255, 0.74); position: relative; flex: 0 0 min(78vw, 320px); aspect-ratio: 4 / 5; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px 20px 20px; border-radius: var(--radius-l); overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(110% 62% at 4% 0%, color-mix(in srgb, var(--c-warm) 78%, transparent), transparent 64%), radial-gradient(90% 60% at 100% 58%, color-mix(in srgb, var(--c-mid) 66%, transparent), transparent 64%), color-mix(in srgb, var(--c-deep) 40%, #0c0a12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.rcp-card[data-v="1"] { background: radial-gradient(100% 60% at 100% 0%, color-mix(in srgb, var(--c-warm) 78%, transparent), transparent 62%), radial-gradient(90% 60% at 0% 66%, color-mix(in srgb, var(--c-mid) 66%, transparent), transparent 64%), color-mix(in srgb, var(--c-deep) 40%, #0c0a12); }
.rcp-card[data-v="2"] { background: radial-gradient(120% 64% at 50% 100%, color-mix(in srgb, var(--c-warm) 72%, transparent), transparent 64%), radial-gradient(80% 56% at 0% 8%, color-mix(in srgb, var(--c-mid) 66%, transparent), transparent 62%), color-mix(in srgb, var(--c-deep) 40%, #0c0a12); }
.rcp-card[data-v="3"] { background: radial-gradient(100% 60% at 0% 100%, color-mix(in srgb, var(--c-warm) 74%, transparent), transparent 62%), radial-gradient(90% 60% at 100% 10%, color-mix(in srgb, var(--c-mid) 66%, transparent), transparent 62%), color-mix(in srgb, var(--c-deep) 40%, #0c0a12); }
.rcp-card > * { position: relative; z-index: 1; }
.rcp-top { position: absolute; top: 18px; left: 20px; right: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rcp-brand { display: flex; align-items: center; gap: 8px; font-family: "Unbounded", "Onest", system-ui, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -0.04em; }
.rcp-brand svg { width: 20px; height: 20px; }
.rcp-pill { max-width: 62%; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); }
.rcp-num { font-size: clamp(76px, 25vw, 108px); line-height: 0.9; font-weight: 800; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; text-shadow: 0 4px 28px rgba(0, 0, 0, 0.3); }
.rcp-num.is-long { font-size: clamp(60px, 19vw, 84px); }
.rcp-word { font-size: 24px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.rcp-note { margin-top: 6px; font-size: 14.5px; line-height: 1.35; color: var(--soft); text-wrap: pretty; }
.rcp-plate { display: flex; align-items: center; margin-top: 14px; padding: 12px 6px; border-radius: 22px; background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.rcp-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.rcp-stat + .rcp-stat { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.2); }
.rcp-stat b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.rcp-stat span { font-size: 12.5px; color: var(--soft); }
.rcp-name { font-size: clamp(38px, 12.5vw, 52px); line-height: 0.98; font-weight: 800; letter-spacing: -0.045em; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3); }
.rcp-artist-head { position: absolute; top: 62px; left: 20px; right: 20px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.rcp-disc { position: absolute; z-index: 1; width: 118%; aspect-ratio: 1; left: 22%; bottom: -54%; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--c-mid) 70%, #000); box-shadow: 0 -6px 0 3px #0c0a12, 0 24px 50px rgba(0, 0, 0, 0.5); }
.rcp-disc img, .rcp-disc > span { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: rotate(-12deg) scale(1.1); }
/* a 4:3 video thumbnail: its black bars go outside the disc (1.1 × 1.334, as .cover img.is-letterbox) */
.rcp-disc img.is-letterbox { transform: rotate(-12deg) scale(1.467); }
.rcp-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 6px, rgba(0, 0, 0, 0.16) 6px 7px), linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%); }
.rcp-card.is-artist { justify-content: flex-start; }
.rcp-list { display: flex; flex-direction: column; gap: 7px; margin-top: 46px; width: 100%; }
.rcp-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 10px 7px 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.rcp-row:first-child { background: rgba(255, 255, 255, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.rcp-row i { width: 16px; flex-shrink: 0; text-align: center; font-style: normal; font-size: 15px; font-weight: 800; color: var(--soft); font-variant-numeric: tabular-nums; }
.rcp-row .cover { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.rcp-row.is-round .cover { border-radius: 50%; }
.rcp-row .cover img { width: 100%; height: 100%; object-fit: cover; }
.rcp-row span.t { display: flex; flex-direction: column; min-width: 0; }
.rcp-row b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcp-row em { font-style: normal; font-size: 12.5px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcp-dots { display: flex; justify-content: center; gap: 7px; margin: 14px 0 18px; }
.rcp-dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.24); transition: width 0.4s var(--ease-out), background-color 0.3s; }
.rcp-dots i.is-on { width: 24px; background: #F4EFFF; }
.rcp-preview { display: block; width: 100%; max-height: 52vh; object-fit: contain; border-radius: var(--radius-m); margin: 8px 0 14px; }

/* цитата из песни: выбор строк в тексте и окно с карточкой */
#player-quote-btn { display: none; }
body.lyrics-open.has-lyrics #player-quote-btn { display: inline-flex; }
#lyrics-tr-btn { display: none; }
body.lyrics-open.can-translate #lyrics-tr-btn { display: inline-flex; }
/* контейнер текста шире на 14px с каждой стороны, а сами строки сдвинуты обратно: текст стоит там же, где стоял, а плашка выбора не обрезается */
.lyrics { left: -14px; right: -14px; padding-left: 16px; padding-right: 16px; }
.lyrics-line { margin: 0 -14px; padding-left: 14px; padding-right: 14px; border-radius: 16px; transition: opacity 0.35s var(--ease-out), background-color 0.2s var(--ease-out); }
.lyrics-lines.is-picking .lyrics-line { cursor: pointer; opacity: 0.5; }
.lyrics-lines.is-picking .lyrics-line.is-picked { opacity: 1; background: rgba(255, 255, 255, 0.16); }
body.quote-picking .player-foot { opacity: 0; pointer-events: none; }
.quote-bar { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(var(--sab) + 14px); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; }
.quote-bar[hidden] { display: none; }
.quote-bar-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.quote-bar-make { height: 44px; padding: 0 20px; flex-shrink: 0; }
.quote-bar-x { width: 44px; height: 44px; flex-shrink: 0; }
.quote-styles { flex: none; margin: 2px 10px 14px; padding: 0; overflow: visible; }
#quote-sheet .sheet { height: 88%; display: flex; flex-direction: column; }
.quote-stage { flex: 1 1 0; min-height: 0; display: flex; justify-content: center; align-items: center; margin: 0 10px 16px; }
.quote-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: var(--radius-m); transition: opacity 0.25s var(--ease-out); }
#quote-share-btn { flex: none; width: auto; margin: 0 10px; }
body.quote-sheet-open .quote-bar { display: none; }

/* свайп по плееру: обложка и название едут за пальцем и возвращаются, новый трек въезжает сбоку */
.screen-player { touch-action: pan-y; }
.player-art-wrap .player-art, .player-art-wrap .cassette { touch-action: none; }
.player-art-wrap, .player-meta { transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out); }
@keyframes swipe-in-right { from { transform: translateX(24px); opacity: 0.65; } to { transform: none; opacity: 1; } }
@keyframes swipe-in-left { from { transform: translateX(-24px); opacity: 0.65; } to { transform: none; opacity: 1; } }
.swipe-in-right { animation: swipe-in-right 0.4s var(--ease-out) both; }
.swipe-in-left { animation: swipe-in-left 0.4s var(--ease-out) both; }
.screen-player { -webkit-user-select: none; user-select: none; }
.screen-player img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }

/* ==========================================================
   COMPUTER LAYOUT — a window from 900px wide (Telegram Desktop, a browser).
   The tabs become a side panel, the mini player a bar at the bottom,
   the content a wide column. A phone is not touched by any of this.
   ========================================================== */
body.is-desktop { --side: var(--side-user, 268px); }
body.is-desktop:is([data-screen="splash"], [data-screen="onboarding"]) { --side: 0px; }
body.is-desktop .app { max-width: none; margin: 0; }
body.is-desktop .screen {
  left: var(--side);
  --pad-x: max(40px, calc((100vw - var(--side) - 1120px) / 2));
  padding: calc(var(--sat) + 28px) var(--pad-x) calc(var(--dock) + var(--sab) + 32px);
}
body.is-desktop .tabbar {
  left: 16px;
  right: auto;
  width: calc(var(--side) - 32px);
  top: calc(var(--sat) + 16px);
  bottom: calc(var(--sab) + 16px);
  height: auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 14px 10px;
  border-radius: 28px;
}
body.is-desktop .tab { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 14px; height: 48px; padding: 0 16px; font-size: 15px; border-radius: 16px; cursor: pointer; }
body.is-desktop .tab:hover:not(.active) { background: rgba(255, 255, 255, 0.07); color: var(--text); }

/* the side panel can be pulled narrower (icons only) or wider by its right edge */
.side-grip { display: none; }
body.is-desktop .side-grip { display: block; position: absolute; top: 0; bottom: 0; right: -9px; width: 18px; cursor: col-resize; z-index: 5; touch-action: none; }
body.is-desktop .side-grip::after { content: ""; position: absolute; top: 50%; left: 7px; width: 4px; height: 48px; margin-top: -24px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); opacity: 0; transition: opacity 0.2s; }
body.is-desktop .side-grip:hover::after, body.side-resizing .side-grip::after { opacity: 1; }
body.side-resizing { cursor: col-resize; -webkit-user-select: none; user-select: none; }
body.side-resizing .tabbar, body.side-resizing .screen, body.side-resizing .mini-player { transition: none !important; }
body.is-desktop.side-mini .side-brand { justify-content: center; padding: 6px 0 16px; }
body.is-desktop.side-mini .side-brand span, body.is-desktop.side-mini .tab > span, body.is-desktop.side-mini .side-name, body.is-desktop.side-mini .side-count, body.is-desktop.side-mini .side-label { display: none; }
body.is-desktop.side-mini .tab { justify-content: center; padding: 0; }
body.is-desktop.side-mini .side-item { justify-content: center; padding: 0; }
body.is-desktop.side-mini .tabbar { padding: 14px 6px; }

/* the full player on a computer: one centred column, a larger cover */
body.is-desktop .screen-player > :not(.player-prism):not(.player-art-wrap) { width: min(100%, 600px); margin-left: auto; margin-right: auto; }
body.is-desktop .player-art { max-height: min(54vh, 480px); }

/* the side panel: brand, sections, then what is yours, then the profile */
.side-brand, .side-extra, .side-foot { display: none; }
body.is-desktop .side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 16px; flex: 0 0 auto; }
body.is-desktop .side-extra { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; gap: 2px; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); overflow-y: auto; scrollbar-width: none; }
body.is-desktop .side-extra::-webkit-scrollbar { display: none; }
body.is-desktop .side-foot { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.side-scroll { display: flex; flex-direction: column; gap: 2px; }
.side-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); padding: 14px 12px 6px; }
.side-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 10px 0 8px; border-radius: 14px; color: var(--text-2); font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.side-item:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.side-item:active { transform: scale(0.98); }
.side-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-count { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.side-ic { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.08); }
.side-ic-heart { color: #fff; background: linear-gradient(135deg, var(--c-warm), var(--c-mid)); }
.side-cover { width: 32px; height: 32px; border-radius: 10px; }
.side-cover.cover-round { border-radius: 50%; }
.side-profile .avatar { width: 32px; height: 32px; font-size: 14px; flex: 0 0 auto; }
.side-profile .side-name { color: var(--text); }

body.is-desktop .home-top .brand { display: none; } /* the side panel carries the brand */
body.is-desktop .home-top { justify-content: flex-end; }

/* the search header's blurred dark backing is cut for a phone's width; on a
   wide window it stuck out as a hazy rectangle with hard edges, so there it
   is just part of the page */
body.is-desktop .search-head { position: static; margin: 0; padding: 0 0 12px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask: none; mask: none; }

/* ----- arrows over a shelf under the mouse ----- */
.shelf-arrow { position: fixed; z-index: 6; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text); background: rgba(20, 12, 24, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 20px -6px rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transform: scale(0.85); transition: opacity 0.18s, transform 0.18s var(--ease-out); cursor: pointer; }
.shelf-arrow.is-on { opacity: 1; pointer-events: auto; transform: none; }
.shelf-arrow:hover { background: rgba(60, 30, 56, 0.9); }
body:not(.is-desktop) .shelf-arrow { display: none; }

/* ----- a mouse: a visible scrollbar, hover, and a wider artist / album page ----- */
body.is-desktop .screen { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.22) transparent; }
body.is-desktop .screen::-webkit-scrollbar { display: block; width: 10px; }
body.is-desktop .screen::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
body.is-desktop .screen::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.34); background-clip: padding-box; }
body.is-desktop .screen::-webkit-scrollbar-track { background: transparent; }
@media (hover: hover) {
  body.is-desktop .track-row { border-radius: 14px; transition: background-color 0.15s; }
  body.is-desktop .track-row:hover { background: rgba(255, 255, 255, 0.07); }
  body.is-desktop .shelf-card, body.is-desktop .playlist-card { cursor: pointer; }
  body.is-desktop .shelf-card:hover .cover, body.is-desktop .playlist-card:hover .cover { transform: translateY(-3px); }
  body.is-desktop .shelf-card .cover, body.is-desktop .playlist-card .cover { transition: transform 0.25s var(--ease-out), box-shadow 0.25s; }
}
body.is-desktop :is(#screen-artist, #screen-album, #screen-favorites, #screen-playlist) .hero {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  column-gap: 32px;
  align-content: end;
  justify-items: start;
  align-items: end;
  text-align: left;
  padding: 8px 0 28px;
}
body.is-desktop :is(#screen-artist, #screen-album, #screen-favorites) .hero > .cover-lg,
body.is-desktop #screen-playlist .hero > .cover-edit-wrap { grid-column: 1; grid-row: 1 / span 6; width: 232px; height: 232px; margin: 0; align-self: end; }
body.is-desktop #screen-playlist .hero .cover-lg { width: 232px; height: 232px; margin: 0; }
body.is-desktop :is(#screen-artist, #screen-album, #screen-favorites, #screen-playlist) .hero > :not(.cover-lg):not(.cover-edit-wrap) { grid-column: 2; }
body.is-desktop .hero-title { font-size: 44px; line-height: 1.05; letter-spacing: -0.035em; text-align: left; text-wrap: balance; }
body.is-desktop .hero-actions { justify-content: flex-start; width: auto; max-width: none; margin-top: 18px; }
body.is-desktop .hero-actions .pill-btn { flex: 0 0 auto; min-width: 168px; }

body.is-desktop .hero-link { padding-left: 0; margin-top: 6px; }

/* ----- the player, its text, the statistics, on a wide window ----- */
/* the player takes the whole window (so its dimming layer has no edge at the panel); its column stays right of the panel */
body.is-desktop .screen-player { left: 0; padding-left: calc(var(--side) + var(--pad-x)); }
body.is-desktop .player-art-wrap { width: min(100%, 760px); margin-left: auto; margin-right: auto; }
/* the text: the empty tail below the last line was a percentage of the width, which on a wide window ran over the title and the buttons */
body.is-desktop .lyrics { padding-bottom: 30vh; }
body.is-desktop .lyrics-lines .lyrics-line { font-size: 34px; }
/* statistics: the figures on the left, the poster of the artist at the side instead of a picture the width of the window */
body.is-desktop #stats-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 48px; row-gap: 0; align-items: start; grid-template-rows: auto auto 1fr; }
body.is-desktop #stats-body > .stats-big { grid-column: 1; grid-row: 1; }
body.is-desktop #stats-body > .stats-facts { grid-column: 1; grid-row: 2; }
body.is-desktop #stats-body > .stats-poster-wrap { grid-column: 2; grid-row: 1 / span 3; margin: 22px 0 34px; }
body.is-desktop #stats-body > .block { grid-column: 1 / -1; }

/* settings-like pages read better in a narrower column */
body.is-desktop #screen-profile, body.is-desktop #screen-account, body.is-desktop #screen-sound, body.is-desktop #screen-about { --pad-x: max(40px, calc((100vw - var(--side) - 760px) / 2)); }
body.is-desktop.is-fullscreen #screen-sound { --pad-x: max(40px, calc((100vw - var(--side) - 960px) / 2)); }

/* ==========================================================
   THE PLAYER BAR (computer): the phone's glass pill, unchanged in look
   (cover, title, play, the thin line at the bottom), only wider, with the
   extra controls added on its right.
   ========================================================== */
.mini-center, .mini-transport, .mini-seek { display: contents; } /* the phone's single row */
.mini-desk { display: none; }
.mini-ph { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
body.is-desktop .mini-ph { display: none; }
.mini-scrub { --tl: 21px; }
body.is-desktop .mini-desk { display: flex; align-items: center; flex: 0 0 auto; }
/* three zones: the track on the left, the transport exactly in the middle, the rest on the right */
body.is-desktop .mini-player,
body.is-desktop.no-tabbar .mini-player {
  --bar-x: max(40px, calc((100vw - var(--side) - 1120px) / 2)); /* the edges of the page's column */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 16px;
  left: calc(var(--side) + var(--bar-x));
  right: var(--bar-x);
  bottom: calc(var(--sab) + 16px);
  padding-right: 14px;
}
body.is-desktop .mini-main { grid-column: 1; cursor: pointer; }
body.is-desktop .mini-transport { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 10px; }
body.is-desktop .mini-right { grid-column: 3; justify-content: flex-end; align-items: center; gap: 2px; min-width: 0; }
body.is-desktop .mini-time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); opacity: 0.85; white-space: nowrap; }
body.is-desktop #mp-time-cur::after { content: "\00a0/\00a0"; }
body.is-desktop #mp-time-tot { margin-right: 10px; }
body.is-desktop .mini-scrub:hover .mini-progress { transform: scaleY(0.5); }
body.is-desktop .mini-scrub:hover .mini-thumb { opacity: 1; transform: scale(1); }
.mini-ctrl { width: 40px; height: 40px; color: var(--text); background: none; border: 0; box-shadow: none; cursor: pointer; transition: color 0.2s, background-color 0.2s, transform 0.15s var(--ease-out); }
.mini-ctrl:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.mini-ctrl:active { transform: scale(0.92); }
.mini-ctrl[aria-pressed="true"] { color: var(--liked); }
.mini-vol { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
/* the volume icon: a speaker with three waves and a cross; the level (data-lvl 0..3) draws them in and out smoothly */
.vol-ico .vol-w, .vol-ico .vol-x { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 0.28s var(--ease-out), opacity 0.2s ease-out; }
.vol-btn[data-lvl="1"] .vol-w1, .vol-btn[data-lvl="2"] .vol-w1, .vol-btn[data-lvl="3"] .vol-w1 { stroke-dashoffset: 0; opacity: 1; }
.vol-btn[data-lvl="2"] .vol-w2, .vol-btn[data-lvl="3"] .vol-w2 { stroke-dashoffset: 0; opacity: 1; transition-delay: 0.04s; }
.vol-btn[data-lvl="3"] .vol-w3 { stroke-dashoffset: 0; opacity: 1; transition-delay: 0.08s; }
.vol-btn[data-lvl="0"] .vol-x { stroke-dashoffset: 0; opacity: 1; }
.vol-btn[data-lvl="0"] .vol-x2 { transition-delay: 0.07s; }
/* the waves that go away go out together, without waiting */
.vol-btn .vol-w, .vol-btn .vol-x { transition-delay: 0s; }
.vol-slider { -webkit-appearance: none; appearance: none; width: 92px; height: 28px; background: transparent; cursor: pointer; --v: 100%; }
.vol-slider::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--text) 0 var(--v), rgba(255, 255, 255, 0.22) var(--v) 100%); }
.vol-slider::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); }
.vol-slider::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--text); }
.vol-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.vol-slider::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }

/* ==========================================================
   THE LYRICS (computer): nothing but the words — the side panel steps
   aside and the text takes nearly the whole window.
   ========================================================== */
/* только на экране плеера: иначе после выхода из текста боковая панель пропадала на всех страницах */
body.is-desktop.lyrics-open[data-screen="player"] { --side: 0px; }
body.is-desktop.lyrics-open[data-screen="player"] .tabbar { display: none; }
body.is-desktop.lyrics-open .screen-player { --pad-x: max(48px, calc((100vw - 1180px) / 2)); }
body.is-desktop.lyrics-open .player-art-wrap { width: 100%; }
body.is-desktop.lyrics-open .lyrics { padding-top: 40px; }
body.is-desktop.lyrics-open .lyrics-lines.is-synced .lyrics-line { font-size: clamp(34px, 3.4vw, 52px); }
body.is-desktop.lyrics-open .lyrics-lines:not(.is-synced) .lyrics-line { font-size: clamp(34px, 3.4vw, 52px); }

/* the lyrics: the controls fold into one slim row at the bottom (track left, transport and seek in the middle, buttons right) */
body.is-desktop.lyrics-open .screen-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "bar bar bar" "lyr lyr lyr" "meta ctrl foot" "meta scrub foot" "meta times foot";
  column-gap: 32px;
  padding-bottom: calc(var(--sab) + 22px);
}
body.is-desktop.lyrics-open .screen-player > :not(.player-prism) { width: auto; margin-left: 0; margin-right: 0; }
body.is-desktop.lyrics-open .player-bar { grid-area: bar; }
body.is-desktop.lyrics-open .player-art-wrap { grid-area: lyr; min-height: 0; }
body.is-desktop.lyrics-open .player-meta { grid-area: meta; align-self: center; margin: 0; }
body.is-desktop.lyrics-open .player-controls { grid-area: ctrl; margin: 6px 0 0; gap: 20px; }
body.is-desktop.lyrics-open .scrub { grid-area: scrub; }
body.is-desktop.lyrics-open .scrub-times { grid-area: times; }
body.is-desktop.lyrics-open .player-foot { grid-area: foot; align-self: center; justify-content: flex-end; gap: 10px; }
body.is-desktop.lyrics-open .ctrl { width: 52px; height: 52px; }
body.is-desktop.lyrics-open .ctrl-play { width: 64px; height: 64px; }
body.is-desktop.lyrics-open .player-title { font-size: 20px; }
body.is-desktop.lyrics-open .player-artist { font-size: 15px; }

/* a long title shrinks to its column and ends in an ellipsis; it never runs under the buttons */
body.is-desktop.lyrics-open .player-meta-text { flex: 0 1 auto; min-width: 0; }
body.is-desktop.lyrics-open .player-meta { gap: 16px; justify-self: stretch; min-width: 0; max-width: 100%; }
body.is-desktop.lyrics-open .player-meta-text .player-title, body.is-desktop.lyrics-open .player-meta-text .player-artist { max-width: 100%; }

/* the home page on a computer: the greeting is the page's heading, the avatar sits on its line */
body.is-desktop #screen-home .home-top { position: absolute; top: calc(var(--sat) + 26px); right: var(--pad-x); z-index: 2; margin: 0; }
body.is-desktop #screen-home .avatar-btn { width: 52px; height: 52px; }
body.is-desktop #screen-home .avatar-btn .avatar { width: 48px; height: 48px; font-size: 20px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
body.is-desktop #screen-home .avatar-btn:hover .avatar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
body.is-desktop .home-greet { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.035em; color: var(--text); margin: 0 72px 6px 0; }

body.is-desktop .mix-sub { max-width: 56ch; font-size: 16px; }

/* a narrower window: the bar gives up its extras so nothing runs into the buttons */
@media (max-width: 1180px) { body.is-desktop .vol-slider { display: none; } }
@media (max-width: 1000px) { body.is-desktop .mini-right .mini-time { display: none; } }

/* «Нотка Плюс»: one readable column (plans and prices were stretched across the whole window) */
body.is-desktop #screen-plus { --pad-x: max(40px, calc((100vw - var(--side) - 760px) / 2)); }

/* «Под настроение»: the lights are bigger and have room, not phone-sized specks in a wide empty field */
body.is-desktop #screen-mood { --pad-x: max(40px, calc((100vw - var(--side) - 1000px) / 2)); }
body.is-desktop .mood-orb { width: calc(var(--s) * 1.5); height: calc(var(--s) * 1.5); font-size: 20px; }
body.is-desktop .mood-orb .orb-plus { height: 22px; font-size: 12px; padding: 0 9px; }
body.is-desktop .mood-cloud.is-live { height: clamp(460px, 62vh, 620px); margin-left: 0; margin-right: 0; }
body.is-desktop .mood-genres { gap: 14px; }
body.is-desktop .mood-genre { padding: 22px 10px 18px; font-size: 18px; }
body.is-desktop .mood-genre i { width: 60px; height: 60px; }

/* «Нотка Плюс» on a computer: a centred header and a larger drum (the JS spaces the items by --pw-k) */
body.is-desktop #screen-plus { --pw-k: 1.12; }
body.is-desktop #screen-plus .plus-brand { justify-content: center; }
body.is-desktop #screen-plus .plus-title { font-size: 48px; text-align: center; }
body.is-desktop #screen-plus .pw { height: calc(226px * var(--pw-k) + 132px); margin-top: 12px; }
body.is-desktop #screen-plus .pw-track { height: calc(196px * var(--pw-k)); perspective: 1000px; }
body.is-desktop #screen-plus .pw-item { width: calc(156px * var(--pw-k)); height: calc(156px * var(--pw-k)); margin: calc(-78px * var(--pw-k)) 0 0 calc(-78px * var(--pw-k)); }
body.is-desktop #screen-plus .pw-dots { top: calc(200px * var(--pw-k)); }
body.is-desktop #screen-plus .pw-copies { top: calc(226px * var(--pw-k) + 6px); height: 130px; }
body.is-desktop #screen-plus .pw-name { font-size: 38px; }
body.is-desktop #screen-plus .pw-desc { max-width: 480px; font-size: 17px; }

/* the background light belongs to the page, not to the whole window: on a computer its centre is the middle of the content (right of the side panel) and it is larger for a wide window */
body.is-desktop .light-group { left: calc(50% + var(--side) / 2); --size: min(64vw, 920px); }

/* the glow behind the Plus header was a box the width of the phone's column (with its colours hung to the sides): on a computer it spans the page and is centred on the title */
body.is-desktop #screen-plus .plus-hero::before {
  left: calc(-1 * var(--pad-x));
  right: calc(-1 * var(--pad-x));
  top: -120px;
  height: 540px;
  background:
    radial-gradient(34% 46% at 33% 36%, rgba(234, 115, 250, 0.24), transparent 72%),
    radial-gradient(34% 46% at 67% 40%, rgba(254, 26, 124, 0.2), transparent 72%),
    radial-gradient(42% 50% at 50% 52%, rgba(250, 156, 143, 0.18), transparent 74%);
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}

/* the dark fade above the bar was a strip with hard sides on a wide page; the bar is a card of its own here */
body.is-desktop .plus-bar::before { display: none; }

/* the Plus header on a computer: a wider canvas of four columns, the title centred over it */
body.is-desktop #screen-plus .plus-hero { padding-top: 200px; text-align: center; }
body.is-desktop #screen-plus .plus-showcase { height: 350px; }
body.is-desktop #screen-plus .ps-deck { width: 1560px; grid-template-columns: repeat(4, minmax(0, 1fr)); top: -4px; gap: 14px; transform: translateX(-50%) perspective(820px) rotateX(58deg) rotateZ(-9deg); }
body.is-desktop #screen-plus .ps-tile { height: 92px; padding: 12px 16px 17px 12px; border-radius: 24px; gap: 14px; }
body.is-desktop #screen-plus .ps-cover { width: 66px; height: 66px; border-radius: 15px; }
body.is-desktop #screen-plus .ps-meta b { font-size: 18px; }
body.is-desktop #screen-plus .ps-meta em { font-size: 15px; }
body.is-desktop #screen-plus .ps-play { width: 44px; height: 44px; }
body.is-desktop #screen-plus .ps-play svg { width: 20px; height: 20px; }
body.is-desktop #screen-plus .ps-bar { left: 92px; right: 16px; bottom: 11px; height: 4px; }
body.is-desktop #screen-plus .ps-tile:nth-child(n+19) { display: flex; }

/* ----- «Нотка Плюс»: more glass, an even row of atmospheres, a promo code that can be seen ----- */
.plan-card {
  background:
    radial-gradient(120% 70% at 12% 0%, color-mix(in srgb, var(--c-mid) 38%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 42%),
    rgba(26, 18, 36, 0.62);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1.5px 0.5px rgba(255, 255, 255, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 60px -26px rgba(0, 0, 0, 0.7);
}
.plan-opt { background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.plan-opt.is-on { background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 2px var(--c-warm); }
.tm-list li { background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.pd-chips .chip { background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.pd-chips .chip.active { background: var(--btn-light); box-shadow: 0 6px 18px -8px rgba(255, 255, 255, 0.5); }

/* atmospheres: equal cards, none enlarged, the picked one only outlined, nothing cut off */
.pd-atmo { padding: 6px; align-items: start; }
.pd-atmo.demo-seasons .atmo-card, .pd-atmo.demo-seasons .atmo-card.is-on { transform: none; opacity: 0.78; }
.pd-atmo.demo-seasons .atmo-card.is-on { opacity: 1; }
.pd-atmo.demo-seasons .atmo-view { height: 140px; outline-offset: 3px; }
.pd-atmo .at-name { text-align: center; margin-top: 2px; }
body.is-desktop .pd-atmo { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
body.is-desktop .pd-atmo.demo-seasons .atmo-view { height: 190px; }

/* the promo code: a button, not a grey line */
.plus-promo-link {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 420px; height: 52px; margin: 18px auto 6px;
  border-radius: 999px; font-size: 15.5px; font-weight: 700; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 14px 26px -16px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform 0.2s var(--ease-out), background-color 0.2s;
}
.plus-promo-link::before {
  content: ""; width: 20px; height: 20px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M3 9a2 2 0 0 0 0 6v3h18v-3a2 2 0 0 1 0-6V6H3Z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'><path d='M3 9a2 2 0 0 0 0 6v3h18v-3a2 2 0 0 1 0-6V6H3Z'/></svg>") center / contain no-repeat;
}
.plus-promo-link:active { transform: scale(0.98); }
@media (hover: hover) { .plus-promo-link:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)); } }

/* the text: lines change smoothly: their brightness and size ease over (the scroll itself is eased in the script) */
.lyrics-lines.is-synced .lyrics-line {
  transform-origin: 0 55%;
  transform: scale(0.93);
  /* the shadow under the sung line comes at once: a shadow that eases took the line's fade and growth off the
     compositor with it (Chrome can't run text-shadow there), and weak phones redrew the text on every frame */
  transition: opacity 0.75s var(--ease-out), transform 0.8s var(--ease-out), background-color 0.2s var(--ease-out);
}
.lyrics-lines.is-synced .lyrics-line.is-active { will-change: transform; }
.perf-lite .lyrics-lines.is-synced .lyrics-line { transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.lyrics-lines.is-synced .lyrics-line.is-active { transform: scale(1); }
.lyrics-lines.is-synced:not(.is-picking) .lyrics-line { opacity: var(--lo, 0.5); }
.lyrics-lines.is-synced:not(.is-picking) .lyrics-line:active { opacity: 0.7; }

/* окно на компьютере не в фокусе: фоновые анимации замирают (см. idle-guard в app.js) */
html.app-idle *, html.app-idle *::before, html.app-idle *::after { animation-play-state: paused !important; }

/* «Минимализм»: ровный тёмный фон, как в Spotify. Свет, атмосферы и лучи плеера убраны; стекло (мини-плеер, кнопки) остаётся прежним */
html.minimal { --bg: #121212; }
html.minimal, html.minimal body { background: #121212; }
html.minimal .light { background: #121212; }
html.minimal .light-art, html.minimal .light-group, html.minimal .light-spill, html.minimal .light-grain,
html.minimal #atmo-back, html.minimal #atmo-front { display: none !important; }
/* the rays behind the cover drew grey smoky rings around it: switched off */
#player-prism { display: none !important; }
html.minimal .light::before, html.minimal .light::after { content: none !important; }
/* имя исполнителя под названием в плеере открывает его страницу */
#player-artist { cursor: pointer; width: fit-content; max-width: 100%; transition: color 0.15s, opacity 0.15s; }
#player-artist:hover { color: var(--text); }
#player-artist:active { opacity: 0.6; }
/* минимализм: меню «…», окна и активная вкладка без цвета трека */
html.minimal .sheet, html.minimal .modal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 40%),
    linear-gradient(135deg, rgba(32, 32, 32, 0.92), rgba(22, 22, 22, 0.95));
}
html.minimal .tab.active { background: rgba(255, 255, 255, 0.12); }
/* минимализм: экран загрузки без цветных пятен, только знак и слово на ровном фоне */
html.minimal .screen-splash::before { display: none; }
html.minimal .splash-word { background: #EDEDED; -webkit-background-clip: text; background-clip: text; filter: none; }
html.minimal .glass-note::before { display: none; }
html.minimal .gn-body { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.2); }
html.minimal .gn-shine { display: none; }

/* ПК: знак и слово на экране открытия крупнее (в окне 900+ px 96 px терялись) */
body.is-desktop .splash-mark { width: clamp(190px, 24vmin, 320px); height: clamp(190px, 24vmin, 320px); }
body.is-desktop .splash-word { margin-top: clamp(34px, 4vmin, 52px); font-size: clamp(50px, 6.4vmin, 84px); }
/* свечение вокруг играющей обложки в «Недавнем» больше не обрезается краями полки: запас внутри, компенсация полями */
#home-recent { padding: 14px 24px 40px; margin: -14px -24px -36px; scroll-padding-inline: 24px; }

/* шапка Плюса: чёткие плееры (слабая перспектива: у сильной ближний ряд растягивался в 1.8 раза и мылился),
   свет по цветам играющего трека, края полотна и затемнения над плашкой не обрезаются */
#screen-plus .ps-deck { transform: translateX(-50%) perspective(2400px) rotateX(58deg) rotateZ(-9deg); }
body.is-desktop #screen-plus .ps-deck { transform: translateX(-50%) perspective(4800px) rotateX(58deg) rotateZ(-9deg); }
#screen-plus .plus-showcase {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 46%, transparent 80%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 46%, transparent 80%), linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}
.plus-hero::before {
  background:
    radial-gradient(58% 60% at 18% 40%, color-mix(in srgb, var(--c-mid) 38%, transparent), transparent 70%),
    radial-gradient(52% 56% at 86% 55%, color-mix(in srgb, var(--c-warm) 32%, transparent), transparent 70%),
    radial-gradient(46% 50% at 52% 70%, color-mix(in srgb, var(--c-core) 24%, transparent), transparent 72%);
}
body.is-desktop #screen-plus .plus-hero::before {
  background:
    radial-gradient(34% 46% at 33% 36%, color-mix(in srgb, var(--c-mid) 34%, transparent), transparent 72%),
    radial-gradient(34% 46% at 67% 40%, color-mix(in srgb, var(--c-warm) 30%, transparent), transparent 72%),
    radial-gradient(42% 50% at 50% 52%, color-mix(in srgb, var(--c-core) 22%, transparent), transparent 74%);
}
.plus-bar::before { left: -20px; right: -20px; top: -56px; height: 56px; background: linear-gradient(180deg, transparent, rgba(12, 10, 18, 0.8) 85%); }

/* «Текст» на телефоне: слова занимают почти весь экран. Пока он открыт, нижний блок сжимается
   (название в одну строку, кнопки меньше), а список уходит чуть под него и тает у кнопок.
   Размеры меняются сразу, без анимации: плавное изменение размеров пересчитывает раскладку каждый кадр. */
body:not(.is-desktop).lyrics-open .player-bar { margin-bottom: 0; }
body:not(.is-desktop).lyrics-open .player-art-wrap { padding-top: 6px; padding-bottom: 0; }
body:not(.is-desktop).lyrics-open .player-meta { margin-bottom: 2px; }
body:not(.is-desktop).lyrics-open .player-title { font-size: 17px; line-height: 1.25; }
body:not(.is-desktop).lyrics-open .player-artist { font-size: 13.5px; margin-top: 0; }
body:not(.is-desktop).lyrics-open .player-meta .fav-btn { transform: scale(0.85); }
body:not(.is-desktop).lyrics-open .scrub-times { margin-top: 0; }
body:not(.is-desktop).lyrics-open .player-controls { margin: 4px 0 4px; gap: 20px; }
body:not(.is-desktop).lyrics-open .ctrl { width: 46px; height: 46px; }
body:not(.is-desktop).lyrics-open .ctrl-play { width: 58px; height: 58px; }
body:not(.is-desktop).lyrics-open .screen-player { padding-bottom: calc(var(--sab) + 10px); }
body:not(.is-desktop).lyrics-open .lyrics { bottom: -14px; padding-top: 20px; }

/* найденные оригиналы вместо сохранённых ремейков: список «было → станет» с галочками */
.sheet-note { margin: 2px 4px 10px; font-size: 14px; color: var(--text-2); }
.originals-list { list-style: none; margin: 0 0 12px; padding: 0; overflow-y: auto; max-height: 52vh; }
.originals-item { padding: 12px 6px; border-bottom: 1px solid var(--line); }
.originals-item:last-child { border-bottom: 0; }
.originals-item label { display: flex; gap: 12px; width: 100%; align-items: flex-start; cursor: pointer; }
.originals-item input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-warm); }
.originals-text { flex: 1; min-width: 0; display: block; }
.originals-text b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.originals-text i { display: block; font-style: normal; font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.originals-text i.was { text-decoration: line-through; opacity: 0.7; }
.originals-go { width: 100%; margin-bottom: 8px; }
/* «Текст» на телефоне: лишнее убрано. Перемотка и пауза тут не нужны: остаются название, ползунок
   и нижний ряд. Плеер сворачивается свайпом вниз. */
body:not(.is-desktop).lyrics-open .player-controls { display: none; }
body:not(.is-desktop).lyrics-open .player-foot { margin-top: 6px; }

/* свайп вниз по плееру: плеер как карточка (цельный, с цветным фоном трека), под ним страница,
   панель вкладок и мини-плеер на месте с первого момента; двигаются только transform и opacity */
body.player-pulling #screen-player {
  animation: none !important;
  z-index: 5;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(130% 55% at 50% 0%, color-mix(in srgb, var(--c-warm) 40%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--c-mid) 28%, #170A14) 0%, color-mix(in srgb, var(--c-deep) 60%, #0A0709) 100%);
  box-shadow: 0 -12px 44px rgba(0, 0, 0, 0.4);
}
body.player-pulling .player-prism { display: none; }
body.player-pulling #bottom-nav, body.player-pulling #mini-player { z-index: 6; animation: none !important; }

/* телефон: аватарка справа сверху крупнее (была 36 px) */
body:not(.is-desktop) #screen-home .avatar-btn { width: 60px; height: 60px; margin: -4px -4px -4px 0; }
body:not(.is-desktop) #screen-home .avatar-btn .avatar { width: 54px; height: 54px; font-size: 23px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.26), 0 8px 20px -8px rgba(0, 0, 0, 0.5); }
/* пока плеер уходит, свет успевает занять позу страницы под ним (иначе его 1,1-секундное движение видно уже после ухода плеера) */
body.player-pulling .light-group { transition-duration: 0.3s, 0.3s; }
/* страница под сворачиваемым плеером: без входных анимаций карточек и блоков */
.screen.no-enter, .no-enter .shelf-card, .no-enter [data-reveal], .no-enter [data-reveal] * { animation: none !important; }

/* «В любимое»: сердце мягко пружинит, от него поднимаются несколько маленьких розовых сердечек */
@keyframes heart-pop {
  0% { transform: scale(0.72); }
  42% { transform: scale(1.2); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes heart-unlike { 0% { transform: scale(1); } 45% { transform: scale(0.82); } 100% { transform: scale(1); } }
.heart-pop > .ic-on { animation: heart-pop 0.62s cubic-bezier(0.3, 0.7, 0.3, 1) both; }
.heart-unlike > .ic-off { animation: heart-unlike 0.3s var(--ease-out) both; }
.heart-burst { position: fixed; z-index: 400; width: 0; height: 0; pointer-events: none; }
.heart-ring {
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--liked) 60%, transparent);
  animation: heart-ring 0.7s ease-out both;
}
@keyframes heart-ring { from { transform: scale(0.6); opacity: 0.7; } to { transform: scale(1.9); opacity: 0; } }
.heart-spark {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; color: var(--c, var(--liked));
  opacity: 0; animation: heart-spark 1.25s cubic-bezier(0.22, 0.6, 0.3, 1) both; animation-delay: var(--d, 0s);
}
.heart-spark svg { width: 100%; height: 100%; display: block; }
@keyframes heart-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.3) rotate(0deg); }
  20% { opacity: 0.95; }
  65% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--sc, 1)) rotate(var(--rot, 0deg)); }
}
.perf-lite .heart-spark, .perf-lite .heart-ring { display: none; }

/* сердце в строке трека (плейлисты, поиск, альбомы) и переключатель «в начало» в шторке плейлиста */
.row-heart { color: var(--text-2); flex: 0 0 auto; }
.row-heart[aria-pressed="true"] { color: var(--liked); }
.sheet-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 6px 14px; font-size: 15px; color: var(--text-2); }
.sheet-switch > span { flex: 1; min-width: 0; }

/* плеер: экран прокручивается, под верхней частью (ровно на экран) лежит «О треке».
   Элементы верхней части теперь внутри .player-main: им нужны те же правила, что были у прямых детей экрана. */
.player-main > * { position: relative; z-index: 1; }
body:not(.is-desktop) .player-main, body.is-desktop:not(.lyrics-open) .player-main { display: flex; flex-direction: column; flex: 0 0 100%; height: 100%; min-height: 100%; box-sizing: border-box; }
body.is-desktop.lyrics-open .player-main { display: contents; } /* with the words the page is a grid: its parts are the grid's cells */
body.is-desktop .player-main > :not(.player-art-wrap) { width: min(100%, 600px); margin-left: auto; margin-right: auto; }
body.is-desktop.lyrics-open .player-main > * { width: auto; margin-left: 0; margin-right: 0; }
body.lyrics-open .player-info { display: none; }
body:not(.is-desktop).lyrics-open #screen-player { overflow: hidden; }

/* «О треке»: мини-карточка исполнителя, карточка альбома и кредиты чипами */
.player-info { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; margin: 16px 0 6px; width: 100%; }
body.is-desktop .player-info { width: min(100%, 600px); margin-left: auto; margin-right: auto; }
.pi-artist, .pi-album {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px 12px 12px; border-radius: 22px; text-align: left;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c-warm) 22%, transparent), color-mix(in srgb, var(--c-deep) 30%, transparent)), rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.25s var(--ease-out);
}
.pi-album { background: rgba(255, 255, 255, 0.06); }
.pi-artist:active, .pi-album:active { transform: scale(0.985); }
.pi-photo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; }
.pi-album-cover { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 12px; }
.pi-artist-text, .pi-album-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pi-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.pi-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-album-title { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-sub { font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-sub:empty { display: none; }
.pi-credits { display: flex; flex-direction: column; gap: 6px; padding: 14px 4px 0; }
.pi-credits:empty { display: none; }
.pi-credits-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.pi-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
.pi-people li { display: flex; align-items: center; gap: 14px; padding: 10px 4px; }
.pi-people li[hidden] { display: none; }
.pi-av {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, hsl(var(--h, 320) 55% 52%), hsl(calc(var(--h, 320) + 30) 50% 32%));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.pi-person { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.pi-person b { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-person i { font-style: normal; font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-more { align-self: flex-start; margin: 4px 4px 0; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.pi-more:active { transform: scale(0.96); }
body.is-desktop .pi-people { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.pi-source { margin: 4px 4px 0; font-size: 12px; color: var(--text-3); }
.pi-source:empty { display: none; }

/* «О треке», третий проход: карточка исполнителя как «Об исполнителе» в Spotify: фото во всю карточку, имя на нём */
.pi-artist {
  position: relative; display: block; overflow: hidden; isolation: isolate; width: 100%;
  aspect-ratio: 1 / 0.9; max-height: 420px; padding: 0; border-radius: 26px; text-align: left;
  background: color-mix(in srgb, var(--c-deep) 50%, #14090f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 18px 36px -18px rgba(0, 0, 0, 0.6);
}
.pi-photo { position: absolute; inset: 0; z-index: -2; border-radius: 0; box-shadow: none; width: auto; height: auto; flex: none;
  background: center 20% / cover no-repeat; transition: transform 0.6s var(--ease-out); }
.pi-photo.is-empty { background: linear-gradient(150deg, var(--c-warm), var(--c-mid) 60%, var(--c-deep)); }
.pi-artist::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 5, 12, 0.28) 0%, rgba(8, 5, 12, 0) 32%, rgba(8, 5, 12, 0.78) 100%); }
.pi-artist:active .pi-photo { transform: scale(1.03); }
.pi-artist .pi-kicker { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 0.04em; color: #fff; text-transform: none; font-weight: 600;
  background: rgba(12, 8, 18, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pi-artist .pi-artist-text { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.pi-artist .pi-name { font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
.pi-artist .pi-sub { font-size: 15px; color: rgba(255, 255, 255, 0.82); }
.pi-album { padding: 12px 16px 12px 12px; gap: 16px; border-radius: 22px; min-height: 92px; }
.pi-album-cover { flex-basis: 68px; width: 68px; height: 68px; border-radius: 14px; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.55); }
.pi-album-title { font-size: 17px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.is-desktop .pi-artist { aspect-ratio: 16 / 7; max-height: 300px; }

/* «Мой микс»: большая кнопка в центре, за ней веером три обложки; пока играет, вокруг кнопки кольцо прогресса трека.
   Никаких постоянных анимаций: в покое всё стоит (легко для слабых телефонов). */
.mix-hero {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(14px, 3vh, 26px) 0 clamp(18px, 3.5vh, 30px); margin: 0;
}
.mix-stage { position: relative; width: min(280px, 76vw); height: 190px; display: grid; place-items: center; }
.mix-play-xl { position: relative; z-index: 3; width: 112px; height: 112px; transition: transform 0.35s cubic-bezier(0.2, 1.3, 0.3, 1); }
.mix-play-xl:active { transform: scale(0.93); }
.mix-play-xl .ic-play { margin-left: 3px; }
.mix-hero:not(.playing) .mix-play-xl { animation: none; }
.mix-ring { display: none; }
.mix-fan { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mix-fan i {
  position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 20px;
  background: color-mix(in srgb, var(--c-deep) 70%, #1b0e18) center / cover no-repeat;
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1);
}
.mix-fan i:nth-child(1) { transform: translateX(-98px) rotate(-12deg); }
.mix-fan i:nth-child(2) { transform: translateX(98px) rotate(12deg); }
.mix-fan i:nth-child(3) { transform: translateY(-4px) scale(0.9); opacity: 0.0; }
.mix-fan i.is-empty { background: linear-gradient(145deg, var(--c-warm), var(--c-mid)); opacity: 0.7; }
.mix-hero.playing .mix-fan i:nth-child(1) { transform: translateX(-108px) rotate(-16deg) scale(1.04); }
.mix-hero.playing .mix-fan i:nth-child(2) { transform: translateX(108px) rotate(16deg) scale(1.04); }
.mix-progress { position: absolute; z-index: 2; width: 132px; height: 132px; left: 50%; top: 50%; margin: -66px 0 0 -66px; transform: rotate(-90deg); pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease-out); }
.mix-hero.is-current .mix-progress { opacity: 1; }
.mp-track { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 3; }
.mp-fill { fill: none; stroke: color-mix(in srgb, var(--c-core) 90%, #fff); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 389.6; stroke-dashoffset: 389.6; }
.mix-title-btn { margin-top: 2px; }
.mix-title { font-size: 36px; }
.mix-sub { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 32ch; text-align: center; }
.mix-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; width: 100%; }
.mix-row .mood-btn { margin-top: 0; height: 46px; }
.mix-refresh {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text);
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.3s cubic-bezier(0.2, 1.3, 0.3, 1), background-color 0.25s;
}
.mix-refresh:active { transform: scale(0.94); background: rgba(255, 255, 255, 0.18); }
.mix-refresh.is-spinning svg { animation: spin 0.9s linear infinite; }
.mix-hero.is-building .mix-play-xl::after { width: 40px; height: 40px; border-width: 4px; }
body.is-desktop .mix-stage { width: 340px; height: 210px; }

/* кнопка микса — капля жидкости: три слоя с плавно перетекающими краями, внутри свет, который медленно ходит.
   Текучесть быстрее, пока играет; на десктопе её ведёт реальный уровень звука. На нажатие капля проседает и пружинит. */
.mix-play-xl { background: none; box-shadow: none; border-radius: 0; overflow: visible; width: 124px; height: 124px; }
.mix-ring, .mix-glow, .mix-wave, .mix-progress { display: none; }
.mix-blob { position: absolute; z-index: 0; pointer-events: none; will-change: transform, border-radius; }
.mix-blob.b1 {
  inset: 0; border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95) 0 9%, transparent 34%),
    radial-gradient(circle at 72% 80%, color-mix(in srgb, var(--c-warm) 55%, transparent) 0, transparent 55%),
    linear-gradient(150deg, #fff7f3, color-mix(in srgb, var(--c-core) 70%, #ffffff) 55%, color-mix(in srgb, var(--c-warm) 60%, #fff));
  box-shadow: inset 0 -8px 16px color-mix(in srgb, var(--c-mid) 38%, transparent), 0 18px 34px -12px color-mix(in srgb, var(--c-deep) 85%, #000);
  animation: blob-a 11s ease-in-out infinite alternate;
}
.mix-blob.b2 {
  inset: -9px; border-radius: 46% 54% 40% 60% / 56% 44% 56% 44%; z-index: -1;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c-warm) 62%, transparent), color-mix(in srgb, var(--c-mid) 40%, transparent) 70%, transparent 100%);
  filter: blur(2px); opacity: 0.75; animation: blob-b 14s ease-in-out infinite alternate;
}
.mix-blob.b3 {
  inset: -20px; border-radius: 52% 48% 60% 40% / 44% 56% 44% 56%; z-index: -2;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-core) 30%, transparent), transparent 70%);
  filter: blur(10px); opacity: 0.6; animation: blob-c 17s ease-in-out infinite alternate;
}
@keyframes blob-a {
  0% { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; transform: rotate(0deg) scale(1); }
  33% { border-radius: 45% 55% 42% 58% / 58% 46% 54% 42%; transform: rotate(40deg) scale(1.02); }
  66% { border-radius: 52% 48% 60% 40% / 42% 56% 44% 58%; transform: rotate(-20deg) scale(0.99); }
  100% { border-radius: 40% 60% 48% 52% / 54% 40% 60% 46%; transform: rotate(30deg) scale(1.03); }
}
@keyframes blob-b {
  0% { border-radius: 46% 54% 40% 60% / 56% 44% 56% 44%; transform: rotate(0deg) scale(1); }
  50% { border-radius: 60% 40% 54% 46% / 42% 58% 42% 58%; transform: rotate(-50deg) scale(1.05); }
  100% { border-radius: 42% 58% 46% 54% / 60% 40% 56% 44%; transform: rotate(35deg) scale(0.98); }
}
@keyframes blob-c { from { transform: rotate(0deg) scale(0.96); } to { transform: rotate(-90deg) scale(1.08); } }
/* motion.js steps the outline of the drop itself, 12 times a second (blobShapes): here only the turn and swell, on the compositor */
html.blob-js .mix-blob.b1 { animation-name: blob-a-turn; }
html.blob-js .mix-blob.b2 { animation-name: blob-b-turn; }
@keyframes blob-a-turn {
  0% { transform: rotate(0deg) scale(1); }
  33% { transform: rotate(40deg) scale(1.02); }
  66% { transform: rotate(-20deg) scale(0.99); }
  100% { transform: rotate(30deg) scale(1.03); }
}
@keyframes blob-b-turn {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-50deg) scale(1.05); }
  100% { transform: rotate(35deg) scale(0.98); }
}
.mix-hero.playing .mix-blob.b1 { animation-duration: calc(var(--beat, 0.62s) * 9); }
.mix-hero.playing .mix-blob.b2 { animation-duration: calc(var(--beat, 0.62s) * 11); }
.mix-hero.playing .mix-blob.b3 { animation-duration: calc(var(--beat, 0.62s) * 14); }
/* the liquid answers the loudness: swells with it (desktop) */
.mix-hero.is-live .mix-blob.b1 { scale: calc(1 + var(--lvl, 0) * 0.1); transition: scale 0.12s linear; }
.mix-hero.is-live .mix-blob.b2 { scale: calc(1 + var(--lvl, 0) * 0.2); transition: scale 0.12s linear; }
.mix-hero.is-live .mix-blob.b3 { opacity: calc(0.5 + var(--lvl, 0) * 0.5); transition: opacity 0.12s linear; }
.mix-hero.playing .mix-play-xl, .mix-hero.is-live .mix-play-xl { animation: none; transform: none; }
.mix-play-xl { position: relative; z-index: 3; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.mix-play-xl:active { transform: scale(0.9, 0.84); transition: transform 0.12s var(--ease-out); }
.mix-play-xl .ic-play, .mix-play-xl .ic-pause { position: relative; z-index: 2; color: color-mix(in srgb, var(--c-deep) 85%, #1b0e18); filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.5)); }
.mix-hero.playing .mix-fan i:nth-child(1), .mix-hero.playing .mix-fan i:nth-child(2) { animation: none; }
.mix-hero.is-building .mix-play-xl::after { width: 40px; height: 40px; border-width: 4px; z-index: 3; }
.perf-lite .mix-blob { animation: none !important; }
body.is-desktop .mix-play-xl { width: 140px; height: 140px; }

/* кнопка «Вперемешку» — режим списка: включённая подсвечена; в шапке исполнителя только значок, чтобы три кнопки влезли */
.hero-actions .pill-icon-only { flex: 0 0 48px; padding: 0; }
body.is-desktop .hero-actions .pill-icon-only { min-width: 48px; }

/* низкое окно (мини-режим Telegram на ПК, телефон в альбомной): панель и мини-плеер занимали полэкрана — делаем их компактнее */
@media (max-height: 640px) {
  body:not(.is-desktop) .tabbar { height: 54px; padding: 4px; bottom: calc(var(--sab) + 8px); }
  body:not(.is-desktop) .tab { flex-direction: row; gap: 8px; font-size: 13px; }
  body:not(.is-desktop) .tab svg { width: 20px; height: 20px; }
  body:not(.is-desktop) .mini-player { bottom: calc(var(--sab) + 70px); height: 58px; padding: 8px 8px 12px 8px; }
  body:not(.is-desktop).no-tabbar .mini-player { bottom: calc(var(--sab) + 10px); }
  body:not(.is-desktop) .mini-player .cover { width: 38px; height: 38px; }
  body:not(.is-desktop) .mini-play { width: 40px; height: 40px; }
}
@media (max-height: 480px) {
  body:not(.is-desktop) .tab span { display: none; }
}

/* свайп по строке трека: вправо «Следующим», влево «В плейлист» */
.track-row.swipeable { position: relative; touch-action: pan-y; }
.swipe-hint { position: absolute; top: 4px; bottom: 4px; width: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 700; line-height: 1.1; text-align: center; opacity: 0; pointer-events: none; color: var(--text-2); }
.swipe-hint-r { left: 0; }
.swipe-hint-l { right: 0; }
.swipe-hint.is-ready { color: var(--c-core, #ff6f9c); }

/* заголовок альбома в режиме «По альбомам» */
.album-group { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 4px 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-2); }
.album-group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.album-group-count { flex: none; font-weight: 600; }

/* ОДИН СТИЛЬ КНОПОК: стекло. Раньше «тихие» кнопки были плоскими серыми плашками, а белые — залитыми, и рядом со стеклом
   они выбивались (замечание uniq). Теперь все кнопки: матовое стекло с тонкой обводкой и бликом сверху; главная — светлое стекло. */
.pill-quiet, .lang-row button, .mix-refresh, .mood-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.pill-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -2px 6px rgba(255, 150, 130, 0.18), 0 10px 26px -12px color-mix(in srgb, var(--c-core, #ff2d78) 70%, transparent);
}
.pill-quiet[aria-pressed="true"], .lang-row button[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-core, #ff2d78) 55%, rgba(255, 255, 255, 0.2)), color-mix(in srgb, var(--c-core, #ff2d78) 28%, rgba(255, 255, 255, 0.06)));
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.lang-row { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.lang-row button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: transform 0.2s var(--ease-out), background-color 0.2s; }
.lang-row button:active { transform: scale(0.95); }
/* три кнопки в шапке списка: подписи не обрезаются */
.hero-actions .pill-btn { padding: 0 12px; }
.hero-actions .pill-btn.play-src { flex-grow: 0.75; }

/* кнопка микса «подороже»: почти белая жемчужная капля; от фона в ней только лёгкие перетекающие тона по краю и внизу */
.mix-blob.b1 {
  background:
    radial-gradient(circle at 28% 22%, #fff 0 8%, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 80% 86%, color-mix(in srgb, var(--c-warm) 42%, transparent) 0, transparent 52%),
    radial-gradient(circle at 12% 78%, color-mix(in srgb, var(--c-core) 26%, transparent) 0, transparent 46%),
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--c-mid) 18%, transparent) 0, transparent 40%),
    linear-gradient(155deg, #fffefd, #fff4ef 60%, color-mix(in srgb, var(--c-warm) 22%, #fff4ef));
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.95),
    inset 0 -10px 18px color-mix(in srgb, var(--c-warm) 30%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 18px 34px -12px color-mix(in srgb, var(--c-deep) 80%, #000);
}

/* «Мой микс»: which mix this is (without a mood, or the mood; a tap takes the mood off / opens the moods) */
.mix-mode {
  display: inline-flex; align-items: center; gap: 6px; align-self: center; margin: 2px auto 4px;
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--text-2); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mix-mode.is-mood { color: #fff; background: rgba(255, 45, 120, 0.28); border-color: rgba(255, 111, 127, 0.55); }
.mix-mode.is-mood::after { content: "×"; opacity: 0.85; font-size: 16px; line-height: 1; }

/* splash: the minimal mode and weak phones show the note at once (no particles) */
html.minimal .splash-mark, .perf-lite .splash-mark { opacity: 1; transform: none; transition: none; }

/* polish before the release: labels do not break into two lines, targets are at least 40 px, the consent window is solid */
.lang-row { flex-wrap: wrap; row-gap: 8px; }
.lang-row button { white-space: nowrap; height: 40px; padding: 0 14px; }
.chip { height: 40px; white-space: nowrap; }
.mood-btn, .mix-refresh { min-height: 44px; }
.mix-mode { padding: 9px 14px; }
.switch::after { content: ""; position: absolute; inset: -9px -5px; }
#home-see-all-favorites { min-width: 44px; min-height: 44px; }
.data-notice { background: rgb(22, 18, 30); }
.px-seg .chip { min-height: 40px; }

/* ==========================================================
   THE LYRICS WITH THE COVER (computer): the second layout, made to look good in a screen recording.
   The cover, the title and the controls on the left; the words, large, on the right.
   ========================================================== */
.player-foot .foot-btn.lyrics-layout-btn { display: none; }
body.is-desktop.lyrics-open .player-foot .foot-btn.lyrics-layout-btn { display: inline-flex; }

body.is-desktop.lyrics-open.lyrics-cover .screen-player {
  --pad-x: max(56px, calc((100vw - 1480px) / 2));
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.25fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto auto;
  grid-template-areas: "bar bar" "art lyr" "meta lyr" "scrub lyr" "times lyr" "ctrl lyr" "foot lyr";
  column-gap: clamp(40px, 6vw, 120px);
}
body.is-desktop.lyrics-open.lyrics-cover .player-art-wrap { display: contents; }
body.is-desktop.lyrics-open.lyrics-cover .player-art-wrap > :not(.player-art):not(.lyrics):not(.cover-volume-feedback) { display: none; }
body.is-desktop.lyrics-open.lyrics-cover .player-art {
  grid-area: art; align-self: end; justify-self: center;
  width: min(100%, calc(100vh - 440px)); min-width: 220px; height: auto; max-height: none; aspect-ratio: 1 / 1;
  opacity: 1; transform: none; filter: none; pointer-events: auto;
  border-radius: 28px;
}
body.is-desktop.lyrics-open.lyrics-cover .lyrics {
  grid-area: lyr; position: relative; inset: auto; min-height: 0; height: 100%;
  padding: 34vh 16px 40vh 20px; margin: 0; text-align: left;
}
body.is-desktop.lyrics-open.lyrics-cover .lyrics-lines.is-synced .lyrics-line { font-size: clamp(36px, 3.4vw, 60px); line-height: 1.16; padding: 10px 0; }
body.is-desktop.lyrics-open.lyrics-cover .lyrics-lines:not(.is-synced) .lyrics-line { font-size: clamp(36px, 3.4vw, 60px); line-height: 1.16; }
body.is-desktop.lyrics-open.lyrics-cover .player-meta { margin: 22px 0 0; justify-self: stretch; }
body.is-desktop.lyrics-open.lyrics-cover .player-title { font-size: clamp(24px, 2.2vw, 34px); }
body.is-desktop.lyrics-open.lyrics-cover .player-artist { font-size: clamp(16px, 1.3vw, 20px); }
body.is-desktop.lyrics-open.lyrics-cover .scrub { margin-top: 18px; }
body.is-desktop.lyrics-open.lyrics-cover .player-controls { justify-content: center; margin: 10px 0 0; }
body.is-desktop.lyrics-open.lyrics-cover .player-foot { justify-content: center; margin-top: 12px; }
/* a quiet hand: the bar and the buttons fade away, the cover, the words and the thin line of the song stay (for a clean recording) */
body.is-desktop.lyrics-open.lyrics-cover.ui-idle .player-bar,
body.is-desktop.lyrics-open.lyrics-cover.ui-idle .player-controls,
body.is-desktop.lyrics-open.lyrics-cover.ui-idle .player-foot,
body.is-desktop.lyrics-open.lyrics-cover.ui-idle .scrub-times { opacity: 0; pointer-events: none; }
body.is-desktop.lyrics-open.lyrics-cover .player-bar,
body.is-desktop.lyrics-open.lyrics-cover .player-controls,
body.is-desktop.lyrics-open.lyrics-cover .player-foot,
body.is-desktop.lyrics-open.lyrics-cover .scrub-times { transition: opacity 0.6s var(--ease-out); }
body.is-desktop.lyrics-cover.ui-idle { cursor: none; }

/* Кнопки плеера: одно спокойное стекло вместо тёмно-сливовых кругов разного размера.
   Сверху две стеклянные кнопки, перемотка без круга (как в Apple Music), играть/пауза светлая, нижний ряд одной капсулой. */
.player-bar .round-btn.round-glass {
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.player-bar .round-btn.round-glass::before { display: none; }
.player-bar .round-btn svg { width: 20px; height: 20px; }
.player-controls { gap: 36px; }
.player-controls .ctrl.round-glass {
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  width: 56px; height: 56px; color: var(--text);
}
.player-controls .ctrl.round-glass::before { display: none; }
.player-controls .ctrl.round-glass svg { width: 32px; height: 32px; }
.player-controls .ctrl.round-glass:active { background: rgba(255, 255, 255, 0.12); }
.player-controls .ctrl-play { box-shadow: 0 14px 34px -14px rgba(4, 2, 10, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
/* «Текст» и «Очередь» под кнопками: стеклянные круги 48px, как кнопки шапки плеера, иконки 26px цвета text.
   На экране текста — те же иконки без стекла в одну линию по центру (тише), включённая — ярче. */
.player-foot {
  justify-content: space-between; gap: 8px; width: auto; margin: 0; padding: 0;
  background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.player-foot .foot-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border-radius: 50%; color: var(--text);
  transition: transform 0.25s var(--ease-out), color 0.35s var(--ease-out), background-color 0.25s var(--ease-out);
}
.player-foot .foot-btn svg { width: 26px; height: 26px; flex: none; }
.player-foot .foot-btn:active { transform: scale(0.92); }
body.lyrics-open .player-foot { justify-content: center; gap: 28px; }
body.lyrics-open .player-foot .foot-btn { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--text-2); }
body.lyrics-open .player-foot .foot-btn:active { background: var(--surface-1); }
body.lyrics-open .player-foot .foot-btn[aria-pressed="true"] { color: var(--text); background: none; }
@media (max-height: 700px) {
  .player-controls .ctrl.round-glass { width: 48px; height: 48px; }
  .player-controls .ctrl.round-glass svg { width: 28px; height: 28px; }
}
body.is-desktop.lyrics-open .player-foot { margin: 0 0 0 auto; }
body.is-desktop.lyrics-open .player-controls .ctrl.round-glass { width: 48px; height: 48px; }
