/* ==========================================================
   НОТКА ПЛЮС — страница в языке самой Нотки: стекло по цветам играющего трека,
   настоящие карточки с настоящими обложками, ровные поля, ничего «мультяшного».
   Телефон: одна колонка. Компьютер: две колонки по центру.
   ========================================================== */

#screen-plus { isolation: isolate; }

/* ---------- шапка ---------- */
.px-hero { position: relative; padding: 6px 0 4px; }
.px-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; margin: 0 0 14px;
  border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: -0.005em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.4), inset 0 0 0 0.5px rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
}
.px-eyebrow-mark {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
  background: var(--btn-light); color: var(--bg);
}
.px-title {
  font-size: clamp(30px, 8.6vw, 40px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em;
  text-wrap: balance; margin: 0 0 12px;
}
.px-lede { font-size: 17px; line-height: 1.45; color: var(--text-2); max-width: 34em; margin: 0; text-wrap: pretty; }

/* стопка настоящих мини-плееров: те же карточки, что внизу самой Нотки */
.px-stack { position: relative; margin: 26px 0 8px; height: 116px; text-align: left; }
.px-mini {
  position: absolute; left: 0; right: 0; height: 68px; display: flex; align-items: center; gap: 12px;
  padding: 8px 12px 14px 8px; border-radius: 22px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.07) 100%),
    linear-gradient(125deg, color-mix(in srgb, var(--c-warm) 22%, transparent), color-mix(in srgb, var(--c-deep) 32%, transparent)),
    rgba(26, 20, 34, 0.9);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.5), inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 14px 30px -12px rgba(4, 2, 10, 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  transform-origin: 50% 100%;
}
.px-mini:nth-child(1) { top: 48px; z-index: 3; }
.px-mini:nth-child(2) { top: 31px; z-index: 2; transform: scale(0.95); opacity: 0.85; }
.px-mini:nth-child(3) { top: 14px; z-index: 1; transform: scale(0.9); opacity: 0.55; }
.px-mini-play {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--btn-light); color: var(--bg); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.5);
}
.px-mini u { position: absolute; left: 70px; right: 14px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); text-decoration: none; overflow: hidden; }
.px-mini u::after { content: ""; display: block; height: 100%; width: var(--w, 100%); border-radius: 3px; background: var(--c-warm); }
.px-mini:nth-child(n+2) > :not(u) { opacity: 0; }
.px-mini:nth-child(1) u::after { width: 58%; }
.px-mini:nth-child(2) u::after { width: 34%; }
.px-mini:nth-child(3) u::after { width: 76%; }

/* обложка и подпись: одинаковы в мини-плеере и в списках примеров */
.px-cv {
  width: 52px; height: 52px; flex: none; border-radius: 13px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c-warm) 60%, #2a2233), color-mix(in srgb, var(--c-deep) 70%, #1a1622)) center / cover no-repeat;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.18), 0 6px 14px -8px rgba(0, 0, 0, 0.7);
}
.px-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.px-meta b { font-size: 16px; font-weight: 650; letter-spacing: -0.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-meta em { font-style: normal; font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- карточки возможностей ---------- */
.px-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.px-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--c-warm) 13%, rgba(24, 19, 32, 0.6)), color-mix(in srgb, var(--c-deep) 20%, rgba(18, 14, 26, 0.68)));
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.34), inset 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 26px 50px -26px rgba(0, 0, 0, 0.65);
}
.px-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04) 32%, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, 0.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.px-card-head { display: flex; align-items: flex-start; gap: 14px; }
.px-ic {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 15px; color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 0.5px 0.5px rgba(255, 255, 255, 0.5), inset 0 0 0 0.5px rgba(255, 255, 255, 0.16);
}
.px-card-title { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 1px 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.px-card-text { font-size: 15px; line-height: 1.42; color: var(--text-2); margin: 0; text-wrap: pretty; }

/* переключатель внутри карточки: стеклянная дорожка, активный пункт светится */
.px-seg {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
}
.px-seg .chip {
  flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 8px; border-radius: 999px; font-size: 14px; font-weight: 600; text-align: center;
  background: transparent; color: var(--text-2); box-shadow: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.px-seg .chip.active {
  color: var(--bg); background: var(--btn-light);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.6), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.8);
}

/* варианты внутри карточки сменяют друг друга без прыжка высоты */
.px-views { display: grid; }
.px-views > .v { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out); }
.px-views > .v.is-on { opacity: 1; transform: none; pointer-events: auto; }
.px-when { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 10px; font-size: 14px; color: var(--text-2); }
.px-when b { font-size: 16px; color: var(--text); font-weight: 650; letter-spacing: -0.01em; }

/* списки примеров: строки как строки треков в самой Нотке */
.px-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.px-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.09);
}
.px-row .px-cv { width: 46px; height: 46px; border-radius: 12px; }
.px-row .px-meta b { font-size: 15px; }
.px-row .px-meta em { font-size: 13px; }

/* настроение */
.px-mix { display: flex; align-items: center; gap: 14px; margin: 0 2px 12px; }
.px-orb {
  width: 54px; height: 54px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9), var(--m1) 38%, var(--m2) 78%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.4), 0 10px 26px -8px color-mix(in srgb, var(--m1) 70%, transparent);
}
.px-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); margin: 0 0 1px; }
.px-mix-name { font-size: 22px; line-height: 1.15; font-weight: 750; letter-spacing: -0.025em; margin: 0; }
.px-mix-sub { font-size: 14px; color: var(--text-2); margin: 1px 0 0; }

/* атмосферы: те же превью, что на экране «Оформление» */
.px-atmo { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 12px; overflow: visible; }
.px-atmo .atmo-card { width: auto; opacity: 1; transform: none; gap: 8px; }
.px-atmo .atmo-view { width: 100%; height: 132px; border-radius: 20px; }
.px-atmo .at-name { font-size: 13.5px; font-weight: 650; letter-spacing: -0.005em; }

/* темы плеера: сцена внутри стекла, без собственного фона */
.px-themes .plus-stage { height: 250px; margin: 0; overflow: hidden; border-radius: 22px; background: rgba(0, 0, 0, 0.22); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1); }
.px-themes .plus-stage-glow { opacity: 0.55; }

/* перевод текста */
.px-lyrics { display: grid; gap: 6px; padding: 14px 16px; border-radius: 20px; background: rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08); }
.px-lyrics p { margin: 0; }
.px-lyr-dim { font-size: 15px; font-weight: 650; color: rgba(255, 255, 255, 0.34); letter-spacing: -0.01em; }
.px-lyr-o { font-size: 21px; line-height: 1.2; font-weight: 750; letter-spacing: -0.025em; }
.px-lyr-t { font-size: 16px; font-weight: 600; color: var(--c-core); opacity: 0.9; letter-spacing: -0.01em; margin-bottom: 4px !important; }
.px-note { font-size: 13.5px; color: var(--text-3); margin: 0 2px; }

/* итоги */
.px-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.px-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 14px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.09); }
.px-stat b { font-size: 26px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.px-stat span { font-size: 12.5px; line-height: 1.3; color: var(--text-2); text-wrap: balance; }
.px-stats-empty { display: none; margin: 0; padding: 14px 16px; border-radius: 20px; font-size: 15px; line-height: 1.4; color: var(--text-2); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.09); }
.px-stats.is-empty { display: block; }
.px-stats.is-empty .px-stat { display: none; }
.px-stats.is-empty .px-stats-empty { display: block; }
.px-card .plus-try { align-self: flex-start; }

/* ---------- план, честная приписка, промокод ---------- */
#screen-plus .plus-plan-sec { margin: 26px 0 18px; }
#screen-plus .plus-plan-h { font-size: 26px; font-weight: 750; letter-spacing: -0.028em; margin: 0 0 14px; }
#screen-plus .plan-card {
  border-radius: 30px; padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03) 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--c-warm) 15%, rgba(24, 19, 32, 0.62)), color-mix(in srgb, var(--c-deep) 22%, rgba(18, 14, 26, 0.7)));
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.34), inset 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 26px 50px -26px rgba(0, 0, 0, 0.65);
}
#screen-plus .plan-opts { display: grid; gap: 8px; }
#screen-plus .plan-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 20px; text-align: left;
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
#screen-plus .plan-opt.is-on {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.78), 0 10px 26px -14px rgba(0, 0, 0, 0.6);
}
#screen-plus .plan-list { margin: 16px 2px 16px; padding: 0; list-style: none; display: grid; gap: 8px; }
#screen-plus .plan-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.4; color: var(--text-2); }
#screen-plus .plan-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--btn-light); box-shadow: 0 0 10px color-mix(in srgb, var(--c-warm) 60%, transparent);
}
#screen-plus .plus-honest { margin: 6px 2px 14px; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
#screen-plus .plus-honest p { margin: 0; }
#screen-plus .plus-honest b { color: var(--text); font-weight: 650; }
#screen-plus .plus-promo-link { display: block; margin: 0 auto 130px; font-size: 15px; font-weight: 600; color: var(--text-2); text-align: center; }

/* ---------- компьютер ---------- */
body.is-desktop #screen-plus .px-hero { max-width: 760px; margin: 0 auto; padding-top: 18px; text-align: center; }
body.is-desktop #screen-plus .px-lede { margin-left: auto; margin-right: auto; }
body.is-desktop #screen-plus .px-title { font-size: clamp(38px, 3.4vw, 52px); }
body.is-desktop #screen-plus .px-stack { max-width: 560px; margin: 32px auto 12px; }
body.is-desktop #screen-plus .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1020px; margin-left: auto; margin-right: auto; gap: 18px; }
body.is-desktop #screen-plus .px-card { padding: 22px; }
body.is-desktop #screen-plus .px-atmo .atmo-view { height: 140px; }
body.is-desktop #screen-plus .plus-plan-sec, body.is-desktop #screen-plus .plus-honest, body.is-desktop #screen-plus .plus-promo-link { max-width: 620px; margin-left: auto; margin-right: auto; }
body.is-desktop #screen-plus .plus-plan-h { text-align: center; }


/* легкий режим и минимализм: без размытия фона под стеклом */
.perf-lite .px-card, .perf-lite .px-mini, .perf-lite #screen-plus .plan-card, .perf-lite .px-eyebrow { -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (max-width: 380px) { .px-seg .chip { font-size: 13px; padding: 0 5px; } }

/* ---------- плашка с ценой: стекло, как мини-плеер ---------- */
#screen-plus .plus-bar {
  display: block; padding: 10px; margin: 0 0 6px; border-radius: 28px; overflow: visible;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.07) 100%),
    linear-gradient(125deg, color-mix(in srgb, var(--c-warm) 20%, transparent), color-mix(in srgb, var(--c-deep) 30%, transparent));
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.08); backdrop-filter: blur(22px) saturate(190%) brightness(1.08);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.5), inset 0 -1px 1px rgba(255, 255, 255, 0.1), inset 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 12px 32px -8px rgba(4, 2, 10, 0.55);
}
#screen-plus .plus-bar::before { display: none; }
#screen-plus .plus-bar-head, #screen-plus .plus-bar-note { display: none; }
#screen-plus .plus-buy {
  position: relative; width: 100%; height: 52px; padding: 0 18px; border-radius: 22px; overflow: hidden;
  font-size: 16.5px; font-weight: 750; letter-spacing: -0.01em; white-space: nowrap;
}
#screen-plus .plus-bar-close {
  top: -9px; right: -5px; width: 30px; height: 30px; z-index: 2; color: var(--text);
  background: rgba(24, 18, 32, 0.88); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.28), 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}
#screen-plus .plus-bar.is-active, #screen-plus .plus-bar.is-real, #screen-plus .plus-bar.is-covered, #screen-plus .plus-bar.is-skipped, #screen-plus .plus-bar.is-dismissed { display: none; }
body.is-desktop #screen-plus .plus-bar { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- план: значки скидки в строке, ровные точки, спокойный заголовок ---------- */
#screen-plus .plan-name { color: var(--text); font-size: 22px; padding-bottom: 14px; }
#screen-plus .plan-opt { padding: 14px 16px; }
#screen-plus .po-main { order: 1; }
#screen-plus .po-badge {
  position: static; order: 2; align-self: center; flex: none; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  color: #1a1020; background: var(--btn-light); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.6);
}
#screen-plus .po-price { order: 3; min-width: 74px; }
#screen-plus .po-radio { order: 0; }
#screen-plus .plan-list { gap: 10px; }
#screen-plus .plan-list li { padding-left: 20px; }
#screen-plus .plan-list li::before { top: 0.55em; left: 3px; width: 8px; height: 8px; }
#screen-plus .plan-buy { height: 54px; font-size: 17px; font-weight: 750; }
#screen-plus .plus-promo-link {
  display: block; width: fit-content; margin: 2px auto 112px; padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--text-2); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.12);
}

#screen-plus .plus-bar-head { white-space: nowrap; font-size: 18px; }
#screen-plus .plus-bar-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#screen-plus .plus-bar { padding-bottom: 12px; padding-top: 12px; }
@media (max-width: 370px) { #screen-plus .plus-bar-head { font-size: 16.5px; } }

/* ---------- ровные поля: длинные названия не выталкивают строки за карточку ---------- */
.px-views { grid-template-columns: minmax(0, 1fr); }
.px-views > .v, .px-list, .px-row, .px-meta, .px-mix > div { min-width: 0; }
.px-mix > div { flex: 1; }
.px-mix-name, .px-mix-sub, .px-kicker { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-when { min-width: 0; }
.px-when span { white-space: nowrap; }

/* итоги: строки «число — подпись», любые цифры и слова помещаются */
.px-stats, .px-stats.is-empty { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.px-stats .px-stat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 16px; border-radius: 18px; }
.px-stats .px-stat b { flex: none; font-size: 24px; }
.px-stats .px-stat span { flex: 1; min-width: 0; text-align: right; font-size: 14px; color: var(--text-2); text-wrap: pretty; overflow-wrap: anywhere; }

/* план: выбранный вариант чуть вырастает с мягким пружинящим ходом */
#screen-plus .plan-opt { transform: scale(1); transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
#screen-plus .plan-opt.is-on { transform: scale(1.025); z-index: 1; }
#screen-plus .plan-opt:active { transform: scale(0.985); }
#screen-plus .plan-list { display: none; }
#screen-plus .plan-state { margin: 10px 2px 0; font-size: 14px; color: var(--text-2); }
#screen-plus .plan-buy { margin-top: 16px; white-space: nowrap; font-size: 16.5px; padding: 0 14px; }

#screen-plus .plan-opt { gap: 10px; padding: 14px 14px; }
#screen-plus .po-main { min-width: 0; }
#screen-plus .po-main b, #screen-plus .po-main i, #screen-plus .po-price b, #screen-plus .po-price s { white-space: nowrap; }
#screen-plus .po-main i { overflow: hidden; text-overflow: ellipsis; }
#screen-plus .po-main b { font-size: 17px; }
#screen-plus .po-badge { padding: 2px 7px; font-size: 11.5px; }
#screen-plus .po-price { min-width: 0; }
