:root {
  --bg: #e4e9f0;
  --bg2: #eef2f7;
  --fg: #1e2a44;
  --muted: #5a6a88;
  --accent: #2f6bff;
  --danger: #e11d48;
  --line: rgba(30, 42, 68, 0.1);
  --radius: 14px;
  --font: "Nunito", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", monospace;
  --neo-shadow-dark: #c5ccd6;
  --neo-shadow-light: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (display-mode: standalone) {
  body { user-select: none; -webkit-user-select: none; }
  .browse-bar { padding-top: max(0.75rem, env(safe-area-inset-top)); }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.9em; }

/* ===== menu drawer ===== */
.app-menu[hidden] { display: none !important; }
.app-menu {
  position: fixed; inset: 0; z-index: 80;
}
.app-menu__backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 42, 68, 0.28);
  backdrop-filter: blur(2px);
}
.app-menu__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg2);
  padding: 1.1rem 1.15rem 1.5rem;
  box-shadow: 12px 0 30px rgba(30, 42, 68, 0.15);
  display: flex; flex-direction: column; gap: 0.85rem;
  overflow-y: auto;
  animation: menuIn 0.2s ease;
}
@keyframes menuIn {
  from { transform: translateX(-12px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}
.app-menu__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.app-menu__brand {
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none; color: var(--fg);
}
.app-menu__brand:hover { color: var(--accent); text-decoration: none; }
.app-menu__brand .brand-logo { font-size: 1.55rem; }
.app-menu__brand .brand-logo__tilde { width: 28px; height: 14px; }

/* ===== brand: air~wave ===== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.12em;
  font-family: "Caveat", "Segoe Script", "Comic Sans MS", cursive;
  font-size: 1.55rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
  text-transform: uppercase;
}
.brand-logo__word { line-height: 1; }
.brand-logo__word--accent { color: var(--accent); }
.brand-logo__tilde {
  flex-shrink: 0;
  width: 28px;
  height: 14px;
  color: var(--accent);
  overflow: visible;
  transform: translateY(0.12em) skewX(-8deg);
}
.brand-logo__path {
  stroke-dasharray: 42;
  animation: brand-wave-flow 2.8s ease-in-out infinite;
}
@keyframes brand-wave-flow {
  0%, 100% { stroke-dashoffset: 0; opacity: 1; }
  50% { stroke-dashoffset: -10; opacity: 0.82; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-logo__path { animation: none; }
}

.app-menu__profile {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border-radius: 16px;
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  box-shadow: 4px 4px 10px var(--neo-shadow-dark), -4px -4px 10px var(--neo-shadow-light);
}
.app-menu__profile:hover { color: var(--accent); text-decoration: none; }
.app-menu__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; background: #d5dbe6;
}
.app-menu__avatar--fallback {
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.95rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), #4b8dff);
}
.app-menu__profile-text {
  display: grid; gap: 0.15rem; min-width: 0;
}
.app-menu__profile-text strong {
  font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-menu__profile-text .muted {
  font-size: 0.75rem; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-menu__profile-chev {
  color: var(--muted); font-size: 1.35rem; font-weight: 700;
}

.app-menu__links {
  display: grid; gap: 0.35rem;
}
.app-menu__links a,
.app-menu__logout,
.app-menu__install {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.85rem; border-radius: 12px;
  color: var(--fg); font-weight: 700; text-decoration: none;
  background: var(--bg);
  box-shadow: 4px 4px 10px var(--neo-shadow-dark), -4px -4px 10px var(--neo-shadow-light);
  border: none; font: inherit; text-align: left; cursor: pointer; width: 100%;
}
.app-menu__links a svg,
.app-menu__logout svg,
.app-menu__install svg {
  flex-shrink: 0; color: var(--accent); opacity: 0.9;
}
.app-menu__links a:hover,
.app-menu__logout:hover,
.app-menu__install:hover {
  color: var(--accent); text-decoration: none;
}
.app-menu__install { color: var(--accent); }
.app-menu__install[hidden] { display: none !important; }
.app-menu__themes {
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.app-menu__themes-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}
.theme-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.7rem 2.4rem 0.7rem 0.85rem;
  border: none;
  border-radius: 12px;
  background-color: var(--bg);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 55%,
    calc(100% - 0.75rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: var(--fg);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 3px 3px 8px var(--neo-shadow-dark), -3px -3px 8px var(--neo-shadow-light);
}
.theme-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-select option {
  font-weight: 600;
  background: var(--bg);
  color: var(--fg);
}

.profile-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 720px) {
  .profile-layout { grid-template-columns: 1fr; }
}
.profile-card { text-align: center; }
.profile-card__avatar {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 0.75rem; display: grid; place-items: center;
  background: #d5dbe6;
}
.profile-card__avatar--fallback {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), #4b8dff);
}
.profile-card__name { margin: 0 0 0.25rem; font-size: 1.25rem; }
.profile-plan {
  margin-top: 1rem; padding-top: 0.85rem;
  border-top: 1px solid var(--line); text-align: left;
}

/* ===== browse top bar ===== */
.browse-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.browse-bar__brand {
  display: inline-flex; align-items: center;
  color: var(--fg); text-decoration: none; flex: 1;
}
.browse-bar__brand:hover { color: var(--accent); text-decoration: none; }
.browse-bar__brand .brand-logo { font-size: 1.35rem; }
.browse-bar__brand .brand-logo__tilde { width: 24px; height: 12px; }
/* кнопка меню — из токенов темы, не из дефолтного light neo */
.browse-bar .neo-btn {
  color: var(--muted);
  background: var(--bg2);
  box-shadow:
    4px 5px 10px var(--neo-shadow-dark),
    inset 0 1px 0 color-mix(in srgb, var(--neo-shadow-light) 40%, transparent);
}

.main { width: min(1100px, 100%); margin: 0 auto; padding: 1.25rem 1.15rem; }
.hero-lite { margin-bottom: 1.25rem; }
.hero-lite h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.hero-lite .row-between { margin-bottom: 0.75rem; align-items: center; }
.hero-lite .search { margin-top: 0; }
.muted { color: var(--muted); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: var(--bg2); color: var(--fg);
  padding: 0.55rem 1rem; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 700;
  box-shadow: 4px 4px 10px var(--neo-shadow-dark), -4px -4px 10px var(--neo-shadow-light);
}
.btn:hover { color: var(--accent); text-decoration: none; }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.9rem; }
.btn-accent, .btn-accent:hover { background: var(--accent); color: #fff; }
.btn-danger { color: var(--danger); }

.search { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.search input, label input, select, input[type="number"], input[type="search"], input[type="text"], input[type="password"], input[type="email"], input[type="file"] {
  background: var(--bg2); border: 1px solid var(--line); color: var(--fg);
  border-radius: 12px; padding: 0.55rem 0.75rem; font: inherit;
  box-shadow: inset 2px 2px 5px var(--neo-shadow-dark), inset -2px -2px 5px var(--neo-shadow-light);
}
input[type="file"] {
  box-shadow: none;
  padding: 0.45rem;
}
label { display: grid; gap: 0.35rem; margin-bottom: 0.75rem; font-weight: 700; }

.genres { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.chip {
  padding: 0.4rem 0.8rem; border-radius: 999px;
  color: var(--fg); background: var(--bg2); font-size: 0.9rem; font-weight: 700;
  box-shadow: 3px 3px 8px var(--neo-shadow-dark), -3px -3px 8px var(--neo-shadow-light);
}
.chip:hover { color: var(--accent); text-decoration: none; }

.filter-active {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.filter-active strong { color: var(--fg); }

.filters-sheet[hidden] { display: none !important; }
.filters-sheet {
  position: fixed; inset: 0; z-index: 75;
}
.filters-sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 42, 68, 0.32);
  backdrop-filter: blur(2px);
}
.filters-sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: min(78vh, 720px);
  background: var(--bg2);
  border-radius: 22px 22px 0 0;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
  box-shadow: 0 -12px 36px rgba(30, 42, 68, 0.16);
  display: flex; flex-direction: column; gap: 0.75rem;
  animation: filtersUp 0.2s ease;
}
@keyframes filtersUp {
  from { transform: translateY(16px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}
.filters-sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
}
.filters-sheet__search {
  width: 100%;
}
.filters-sheet__list {
  overflow: auto;
  display: grid;
  gap: 0.35rem;
  min-height: 0;
}
.filters-sheet__item {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
  background: var(--bg);
  box-shadow: 3px 3px 8px var(--neo-shadow-dark), -3px -3px 8px var(--neo-shadow-light);
}
.filters-sheet__item:hover { color: var(--accent); text-decoration: none; }
.filters-sheet__item.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}
.filters-sheet__item[hidden] { display: none !important; }

.station-list { display: grid; gap: 0.65rem; }
.station {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 0.85rem; align-items: center;
  padding: 0.75rem 0.9rem; border-radius: var(--radius);
  background: var(--bg2);
  box-shadow: 5px 5px 12px var(--neo-shadow-dark), -5px -5px 12px var(--neo-shadow-light);
}
.station__logo { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; background: #d5dbe6; }
.station__logo--empty { background: linear-gradient(135deg, #c5d0e0, #a8b4c8); }
.station__name { margin: 0; font-size: 0.82rem; font-weight: 700; line-height: 1.25; }
.station__name a { color: inherit; text-decoration: none; }
.station__name a:hover { text-decoration: underline; }
.station__genre { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.station__actions { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }

.crumbs {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  font-size: 0.8rem; color: var(--muted); margin: 0 0 0.85rem;
}
.crumbs a { color: inherit; text-decoration: none; font-weight: 700; }
.crumbs a:hover { text-decoration: underline; color: var(--fg); }

.station-page__hero {
  display: flex; gap: 1rem; align-items: center; margin-bottom: 0.85rem;
}
.station-page__logo {
  width: 96px; height: 96px; object-fit: cover; border-radius: 18px;
  background: #d5dbe6; flex-shrink: 0;
}
.station-page__logo--empty {
  background: linear-gradient(135deg, #c5d0e0, #a8b4c8);
}
.station-page__meta h1 {
  margin: 0 0 0.35rem; font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 800; line-height: 1.15;
}
.station-page__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.station-page__seo { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--muted); max-width: 42rem; }
.section-title {
  margin: 0 0 0.75rem; font-size: 1.05rem; font-weight: 800;
}

.add-menu { position: relative; }
.add-menu summary { list-style: none; cursor: pointer; }
.add-menu summary::-webkit-details-marker { display: none; }
.add-menu__list {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 0.3rem);
  z-index: 30;
  background: var(--bg2);
  border-radius: 12px;
  padding: 0.35rem;
  min-width: 160px;
  max-width: min(240px, calc(100vw - 1.5rem));
  box-shadow: 6px 6px 16px var(--neo-shadow-dark), -4px -4px 12px var(--neo-shadow-light);
}
.add-menu__list button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--fg); padding: 0.45rem 0.55rem; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.add-menu__list button:hover { background: var(--bg); color: var(--accent); }

.card-list, .mode-grid, .pricing-grid {
  display: grid; gap: 0.75rem;
}
.mode-grid, .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-link, .price-card {
  display: block; padding: 1rem; border-radius: var(--radius);
  background: var(--bg2); color: var(--fg);
  box-shadow: 5px 5px 12px var(--neo-shadow-dark), -5px -5px 12px var(--neo-shadow-light);
}
.card-link:hover, .price-card:hover { color: var(--accent); text-decoration: none; }
.card-link.play-clip {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
}
.card-link.play-clip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-link__main { display: grid; gap: 0.2rem; min-width: 0; }
.card-link.play-clip .btn { flex-shrink: 0; }
.clip-actions { display: flex; gap: 0.35rem; flex-shrink: 0; align-items: center; }
.offline-btn.is-offline {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}
.offline-shelf {
  margin-bottom: 1.25rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius);
  background: var(--bg2);
  box-shadow: 5px 5px 12px var(--neo-shadow-dark), -5px -5px 12px var(--neo-shadow-light);
}
.offline-shelf__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.offline-shelf__head h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.offline-shelf__hint { margin: 0; }
.offline-shelf__list { margin-top: 0.5rem; }
.price-card.current { outline: 2px solid var(--accent); }
.price { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.price-card ul { padding-left: 1.1rem; color: var(--muted); }

.auth-card, .share-box, .quiz {
  max-width: 520px; padding: 1.25rem; border-radius: var(--radius);
  background: var(--bg2); margin-bottom: 1rem;
  box-shadow: 5px 5px 12px var(--neo-shadow-dark), -5px -5px 12px var(--neo-shadow-light);
}
.auth-card__foot { margin: 1rem 0 0; }
.auth-card__lead { margin: 0 0 1.1rem; color: var(--muted); line-height: 1.45; }
.auth-social { margin-top: 1.1rem; }
.auth-social--primary { margin-top: 0; }
.auth-social__or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.auth-social__or::before,
.auth-social__or::after {
  content: "";
  height: 1px;
  background: var(--line);
}
.auth-social__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.auth-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  font-weight: 800;
  text-decoration: none;
}
.auth-social__btn--google {
  background: #fff;
  color: #1f1f1f;
  border: 1px solid var(--line);
}
.auth-social__btn--vk {
  background: #0077ff;
  color: #fff;
}
.auth-social__btn--vk:hover { color: #fff; filter: brightness(1.05); }
@media (max-width: 420px) {
  .auth-social__btns { grid-template-columns: 1fr; }
}
.quiz audio { width: 100%; margin: 0.5rem 0 0.75rem; }
.melody-timer {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
}
.melody-timer__val { font-size: 1.6rem; font-variant-numeric: tabular-nums; color: var(--accent); }
.melody-timer__bar {
  flex: 1 1 100%; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden;
}
.melody-timer__bar i {
  display: block; height: 100%; width: 0; background: var(--accent);
  transition: width 0.08s linear;
}
.melody-tiers { font-size: 0.85rem; margin: 0 0 0.75rem; }
.melody-form { display: grid; gap: 0.75rem; }
.melody-form label { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.9rem; }
.melody-form input[type="text"],
.melody-form select {
  width: 100%; padding: 0.65rem 0.75rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit;
}
.melody-check {
  display: flex !important; align-items: center; gap: 0.5rem; font-weight: 600 !important;
}
.melody-check input { width: auto; }
.quiz-options { display: grid; gap: 0.5rem; }
.quiz-opt { width: 100%; justify-content: flex-start; text-align: left; white-space: normal; }
.share-box input[type="text"] {
  width: 100%; margin: 0.35rem 0; padding: 0.55rem 0.7rem;
  border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  font: inherit; font-size: 0.85rem;
}
.flash-wrap { width: min(1100px, 100%); margin: 0.75rem auto 0; padding: 0 1.15rem; }
.flash-wrap.is-leaving {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.flash {
  padding: 0.65rem 0.9rem; border-radius: 12px; margin-bottom: 0.4rem;
  background: #dceadf; font-weight: 700; cursor: pointer;
}
.flash-error { background: #f5d5d8; color: #8a1c2e; }
.flash-success { background: #d5eadc; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); }
.table tr.me { background: rgba(47, 107, 255, 0.08); }

.saved-track {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  background: var(--bg2);
  box-shadow: 5px 5px 12px var(--neo-shadow-dark), -5px -5px 12px var(--neo-shadow-light);
}
.saved-track__cover {
  width: 52px; height: 52px; object-fit: cover; border-radius: 12px; background: #d5dbe6;
}
.saved-track__cover--empty {
  background: linear-gradient(135deg, #c5d0e0, #a8b4c8);
}
.saved-track__title { display: block; font-size: 1rem; }
.saved-track__body { min-width: 0; }
.saved-track__time { white-space: nowrap; }
.played-list {
  display: grid;
  gap: 0.5rem;
  margin: 1.35rem 0 0.5rem;
}
.played-track {
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  background: var(--bg2);
  box-shadow: 5px 5px 12px var(--neo-shadow-dark), -5px -5px 12px var(--neo-shadow-light);
}
.played-track__line {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.played-track__sep { font-weight: 600; color: var(--muted); }
.played-track__time { font-weight: 600; }

.pager {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  font-weight: 700;
}
.pager__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 12px;
  background: var(--bg2);
  box-shadow: 4px 4px 10px var(--neo-shadow-dark), -4px -4px 10px var(--neo-shadow-light);
}
.pager__btn {
  min-width: 2.5rem;
  min-height: 2.15rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
  line-height: 1;
}
.pager__btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  box-shadow:
    inset 2px 2px 5px var(--neo-shadow-dark),
    inset -2px -2px 5px var(--neo-shadow-light);
}
a.pager__btn:hover {
  color: var(--accent);
  text-decoration: none;
}
.inline { display: inline; }
.linkish {
  background: none; border: none; color: var(--accent); cursor: pointer;
  font: inherit; font-weight: 700; padding: 0;
}

.trim-editor { display: grid; gap: 0.85rem; margin-bottom: 1.25rem; }
.trim-bar {
  position: relative; height: 28px; border-radius: 999px; background: var(--bg2);
  box-shadow: inset 3px 3px 8px var(--neo-shadow-dark), inset -3px -3px 8px var(--neo-shadow-light);
}
.trim-bar__range {
  position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--accent); opacity: 0.75;
}
.trim-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }

.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
#share-playlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#share-playlist.is-ok { color: var(--accent); }
#share-playlist.is-err { color: var(--danger); }

.pl-menu { position: relative; }
.pl-menu > summary {
  list-style: none;
  cursor: pointer;
  min-width: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.pl-menu > summary::-webkit-details-marker { display: none; }
.pl-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 12;
  min-width: min(280px, 86vw);
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--bg2);
  box-shadow: 6px 6px 16px var(--neo-shadow-dark), -4px -4px 12px var(--neo-shadow-light);
  display: grid;
  gap: 0.75rem;
}
.pl-menu__rename { display: grid; gap: 0.5rem; }
.pl-menu__label {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.pl-menu__label input {
  width: 100%;
  margin: 0;
}
.pl-menu__delete {
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.pl-menu__delete .btn { width: 100%; }

/* реклама — только free / гости; платные ads_free */
.site-ad {
  position: sticky;
  bottom: calc(var(--player-dock, 12rem) + 0.35rem);
  z-index: 25;
  padding: 0 0.85rem;
  pointer-events: none;
}
.site-ad__inner {
  pointer-events: auto;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg2) 92%, var(--fg));
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px -4px rgba(30, 42, 68, 0.12);
  font-size: 0.85rem;
}
.site-ad__label {
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.site-ad__cta {
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.site-ad__cta:hover { text-decoration: underline; }
body.is-player .site-ad { display: none; }
body[data-ads="0"] .site-ad { display: none; }

/* ===== legal / ЮKassa ===== */
.legal-doc {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 0 0.25rem 1rem;
  line-height: 1.55;
}
.legal-doc h1 { margin: 0 0 0.5rem; font-size: 1.65rem; }
.legal-doc h2 { margin: 1.6rem 0 0.55rem; font-size: 1.1rem; }
.legal-doc p { margin: 0.55rem 0; }
.legal-doc ol, .legal-doc ul { margin: 0.55rem 0; padding-left: 1.25rem; }
.legal-doc__meta { margin: 0 0 0.75rem; font-weight: 700; color: var(--muted); }
.legal-doc__requisites { list-style: none; padding-left: 0; }
.legal-doc__requisites li { margin: 0.35rem 0; }
.legal-doc__nav { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.legal-doc--compact { margin-top: 2rem; }
.legal-note {
  max-width: 920px;
  margin: 0 auto 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--bg2);
  border: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.45;
}
.price-card__desc {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.table-wrap { overflow-x: auto; margin: 0.75rem 0 1rem; }
.plan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.plan-table th,
.plan-table td {
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  text-align: left;
}
.plan-table th { background: var(--bg2); font-weight: 800; }
.flash-warning {
  background: color-mix(in srgb, #e0a14a 18%, var(--bg2));
  border: 1px solid color-mix(in srgb, #e0a14a 40%, var(--line));
}

.site-footer {
  margin-top: 2rem;
  padding: 1.25rem 0.85rem calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg2) 70%, transparent);
  font-size: 0.85rem;
}
.site-footer__inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}
.site-footer__brand { font-weight: 800; letter-spacing: 0.04em; }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}
.site-footer__nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__meta { color: var(--muted); line-height: 1.4; }
.site-footer__meta a { color: inherit; }
body.is-player .site-footer { display: none; }
/* футер выше мини-плеера */
body.is-browsing .site-footer {
  margin-bottom: calc(var(--player-dock, 12rem) + env(safe-area-inset-bottom, 0px));
}
