/* Tutti — стили экранов (frontend-views). DESIGN v2 «de-slop» (docs/BEACON-DESIGN.md §7):
   контент лежит прямо на фоне — без панелей, карточек и надписей-«киккеров»; шапки альбома / плейлиста / исполнителя
   подкрашены цветом обложки; одна коралловая кнопка «Слушать», остальное — круглые кнопки-иконки и «⋯».
   Только свои классы v-*; строки треков, плитки, полки, листы и диалоги — из ядра (css/app.css).
   Шкала шрифта 12/13/14/16/20/28/40, скругления 6 (кнопки, поля) / 8 (обложки) / 12 (листы) / 50 % (круглое). */

/* ───────────────────────── страница ───────────────────────── */
.v-page {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding-bottom: 40px;
  color: var(--fg, #f5f5f7);
}
/* сброс без веса: классы ниже (v-quiet, v-hdr-meta …) задают свои отступы */
:where(.v-page) :where(h1, h2, h3, p) { margin: 0; }
.v-page [hidden] { display: none !important; }
.v-search { overflow-anchor: none; } /* прокрутку при дописывании волн держим сами (search.js keepScroll) */

.v-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.v-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.v-sec, .v-page .section { margin-top: 32px; }
.v-sec:first-child { margin-top: 0; }
.v-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 12px;
}
.v-sec-title {
  min-width: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v-sec-more {
  flex: none;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--fg-3, rgba(245, 245, 247, .6));
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur, 200ms) ease-out;
}
.v-sec-more:hover { color: var(--fg, #f5f5f7); text-decoration: underline; text-underline-offset: 3px; }
.v-body { margin-top: 24px; }
.v-body > :first-child, .v-body > :first-child > .v-sec:first-child { margin-top: 0; }
/* секции в слотах (.v-body > div > секция): тот же ритм 32 px, только у первого слота отступа нет */
.v-page .v-body > div > :is(.v-sec, .section) { margin-top: 32px; }
.v-page .v-body > div:first-child > :is(.v-sec, .section):first-child { margin-top: 0; }

.v-link { color: inherit; text-decoration: none; }
.v-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.v-link-btn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--fg-2, rgba(245, 245, 247, .7));
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur, 200ms) ease-out;
}
.v-link-btn:hover { color: var(--fg, #f5f5f7); text-decoration: underline; text-underline-offset: 3px; }
.v-link-btn:disabled { color: var(--fg-4, rgba(245, 245, 247, .5)); text-decoration: none; cursor: default; }
.v-link-quiet { color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; text-decoration: none; }
.v-link-quiet:hover { color: var(--fg, #f5f5f7); text-decoration: underline; text-underline-offset: 3px; }
.v-link-inline { color: var(--fg-2, rgba(245, 245, 247, .7)); text-decoration: underline; text-underline-offset: 3px; }
.v-quiet { margin-top: 12px; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; line-height: 1.5; }
.v-under { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 8px; }
.v-sep { color: var(--fg-4, rgba(245, 245, 247, .5)); }
.v-num { font-variant-numeric: tabular-nums; }
.v-bad { color: var(--bad, #ff6b6b); }
.v-danger, .v-danger .v-row-title { color: #ff8a80 !important; }
.v-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }

/* «почему рекомендуем»: одна тихая строка под исполнителем */
.v-reason {
  margin-top: 1px;
  color: var(--fg-3, rgba(245, 245, 247, .6));
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* пустое состояние: заголовок, одно предложение, одно действие */
.v-empty { padding: 32px 0 16px; max-width: 440px; }
.v-empty-title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.v-empty-text { margin-top: 8px; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 14px; line-height: 1.5; }
.v-empty-act { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ───────────────────────── цвет из обложки под шапкой ───────────────────────── */
.v-tint {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: calc(-1 * (var(--main-pt, calc(var(--top-h, 56px) + var(--safe-t, 0px))) + 32px));
  height: 500px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg,
    rgb(var(--v-tint, 44 44 50) / .92) 0%,
    rgb(var(--v-tint, 44 44 50) / .55) 38%,
    rgb(var(--v-tint, 44 44 50) / .18) 72%,
    rgb(var(--v-tint, 44 44 50) / 0) 100%);
  transition: opacity 250ms ease-out;
}
.v-tinted > .v-tint { opacity: 1; }

/* ───────────────────────── шапка альбома / плейлиста / исполнителя ───────────────────────── */
.v-hdr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 8px;
}
.v-hdr-art {
  position: relative;
  flex: none;
  width: min(62vw, 240px);
  aspect-ratio: 1;
  border-radius: var(--r-md, 8px);
  overflow: hidden;
  background: var(--surface, #17171c);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.v-hdr.is-round .v-hdr-art { border-radius: 50%; }
.v-hdr-art > .v-liked-art { width: 100% !important; height: 100% !important; }
.v-hdr-art > .cover, .v-hdr-art > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 0 !important;
  object-fit: cover;
  box-shadow: none !important;
}
.v-hdr-text { align-self: stretch; min-width: 0; }
.v-hdr-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  overflow-wrap: break-word;
  -webkit-user-select: text;
  user-select: text;
}
.v-hdr-title.v-t-m { font-size: 24px; }
.v-hdr-title.v-t-s { font-size: 24px; }
.v-hdr-desc {
  margin-top: 8px;
  color: var(--fg-2, rgba(245, 245, 247, .7));
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.v-hdr-meta { margin-top: 6px; color: var(--fg-2, rgba(245, 245, 247, .7)); font-size: 14px; line-height: 1.45; }
.v-hdr-meta .v-link, .v-hdr-artists .v-link { color: var(--fg, #f5f5f7); font-weight: 600; }

.v-actions { display: flex; align-items: center; gap: 4px; margin-top: 20px; }
.v-actions .v-play { margin-right: 12px; }

/* главная коралловая кнопка «Слушать» — одна на шапку */
.v-play, .btn-play.v-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent, #D97757);
  color: var(--on-accent, #16110f);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: background-color var(--dur, 200ms) ease-out, transform 150ms ease-out;
}
.v-play:hover, .btn-play.v-play:hover { background: var(--accent-hover, #e2876a); transform: none; }
.v-play:active { transform: scale(.96); }
.v-play .icon { width: 24px; height: 24px; }
.v-play.is-preparing { box-shadow: 0 0 0 4px rgb(217 119 87 / .3), 0 6px 18px rgba(0, 0, 0, .35); }
.v-play.is-preparing .icon { opacity: .6; }
.v-play-sm, .btn-play.v-play-sm { width: 48px; height: 48px; }
.v-play-sm .icon { width: 20px; height: 20px; }

/* круглые кнопки-иконки без рамки */
.v-ib, .btn-icon.v-ib {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg-2, rgba(245, 245, 247, .7));
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  cursor: pointer;
  transition: color var(--dur, 200ms) ease-out, background-color var(--dur, 200ms) ease-out, transform 150ms ease-out;
}
.v-ib:hover, .btn-icon.v-ib:hover { color: var(--fg, #f5f5f7); background: var(--hover, rgba(255, 255, 255, .07)); border: 0; }
.v-ib:active { transform: scale(.94); }
.v-ib .icon { width: 24px; height: 24px; }
.v-ib.on, .v-ib[aria-pressed="true"] { color: var(--accent, #D97757); }
.v-ib.on::after, .v-ib[aria-pressed="true"]::after { display: none; }
.v-ib:disabled { opacity: .45; cursor: default; }
.v-ib-sm, .btn-icon.v-ib-sm { width: 32px; height: 32px; }
.v-ib-sm .icon { width: 16px; height: 16px; }

/* «Любимые треки»: ровная тёплая плашка с сердцем (без градиента) */
.v-liked-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #3a2119;
  color: var(--accent, #D97757);
}
.v-liked-art .icon { width: 42%; height: 42%; }

/* ───────────────────────── главная ───────────────────────── */
.v-greet { margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.v-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.v-q {
  position: relative;
  min-width: 0;
  height: 64px;
  border-radius: var(--r-sm, 6px);
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  transition: background-color var(--dur, 200ms) ease-out;
}
.v-q:hover { background: rgba(255, 255, 255, .12); }
.v-q:active { background: rgba(255, 255, 255, .16); }
.v-q.v-sk { display: block; }
.v-q-link { display: flex; align-items: center; height: 100%; min-width: 0; color: inherit; text-decoration: none; }
.v-q-art { flex: none; width: 64px; height: 64px; background: var(--surface, #17171c); }
.v-q-art .cover, .v-q-art .v-liked-art { width: 100% !important; height: 100% !important; border-radius: 0 !important; }
.v-q-art .v-liked-art .icon { width: 22px; height: 22px; }
.v-q-title {
  flex: 1;
  min-width: 0;
  padding: 0 8px 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  /* OWNER-29 «не нужно 3 точки»: обычно 1–2 строки; длинному названию хватает трёх строк в плитке 64 px, без «…» */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: normal; /* слово не рвётся посередине: home.js fitQuick уменьшает шрифт длинным названиям */
  word-break: normal;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.v-q-title.v-q-s { font-size: 14px; }
.v-q-title.v-q-xs { font-size: 13px; }
/* слово шире строки даже при 13 px (редкость): правильный перенос по слогам, а не обрыв посреди слова */
.v-q-title.v-q-wrap { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.v-q-play {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent, #D97757);
  color: var(--on-accent, #16110f);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--dur, 200ms) ease-out, background-color var(--dur, 200ms) ease-out;
}
.v-q-play:hover { background: var(--accent-hover, #e2876a); }
.v-q-play .icon { width: 16px; height: 16px; }
.v-q-play.is-loading .icon { opacity: .3; }
@media (hover: hover) {
  .v-q:hover .v-q-play, .v-q:focus-within .v-q-play, .v-q-play.is-playing { opacity: 1; }
  .v-q:hover .v-q-title, .v-q:focus-within .v-q-title { padding-right: 52px; }
}
@media (hover: none) { .v-q-play { display: none; } }
@media (max-width: 1023px) { .v-q:nth-child(n+7) { display: none; } }
@media (min-width: 1024px) { .v-quick.v-d4 .v-q:nth-child(n+5) { display: none; } }

/* треки на главной: две колонки на большом экране; на телефоне 5 строк */
@media (min-width: 1024px) {
  .v-cols .track-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
}
@media (min-width: 601px) and (max-width: 1023px) {
  .v-cols .track-row:nth-child(n+6) { display: none; }
}
@media (max-width: 600px) {
  .v-cols .track-row:nth-child(n+5) { display: none; }
}
.v-hint .v-hint-text { margin: 6px 0 14px; max-width: 520px; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 14px; line-height: 1.5; }

/* ───────────────────────── поиск ───────────────────────── */
.v-s-head { margin-top: 8px; }
.v-sbox {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  margin-top: 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm, 6px);
  background: rgba(255, 255, 255, .08);
  transition: border-color var(--dur, 200ms) ease-out, background-color var(--dur, 200ms) ease-out;
}
.v-sbox:hover { background: rgba(255, 255, 255, .1); }
.v-sbox:focus-within { border-color: rgba(245, 245, 247, .38); background: rgba(255, 255, 255, .1); }
.v-sbox-icon { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--fg-3, rgba(245, 245, 247, .6)); pointer-events: none; }
.v-sinput {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 44px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--fg, #f5f5f7);
  font: inherit;
  font-size: 16px; /* < 16 px — iOS приближает поле */
  -webkit-appearance: none;
  appearance: none;
  -webkit-user-select: text;
  user-select: text;
}
.v-sinput:focus-visible { outline: none; }
.v-sinput::placeholder { color: var(--fg-4, rgba(245, 245, 247, .5)); }
.v-sinput::-webkit-search-cancel-button, .v-sinput::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.v-sbox-clear {
  position: absolute;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--fg-3, rgba(245, 245, 247, .6));
  cursor: pointer;
}
.v-sbox-clear:hover { color: var(--fg, #f5f5f7); }
.v-sbox-clear .icon { width: 18px; height: 18px; }
@media (min-width: 1024px) {
  .v-sbox { max-width: 560px; }
  .v-s-suggest { max-width: 576px; }
}

.v-s-suggest, .v-s-idle, .v-s-results { margin-top: 12px; }
.v-s-idle > .v-sec:first-child, .v-s-idle > .v-discover > :first-child { margin-top: 20px; }
.v-chips { margin-top: 4px; }
.v-s-results > .v-s-filters:empty + .v-s-meta { margin-top: 0; }
.v-s-understood { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; margin-top: 14px; color: var(--fg-2, rgba(245, 245, 247, .7)); font-size: 14px; line-height: 1.5; }
.v-s-understood .v-link-btn { padding: 0; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(245, 245, 247, .3); text-underline-offset: 3px; }
.v-s-understood .v-link-btn:hover { color: var(--fg, #f5f5f7); text-decoration-color: currentColor; }
.v-s-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; line-height: 1.45; }
.v-s-results .v-sec, .v-s-results .section { margin-top: 28px; }
.v-s-sk { margin-top: 20px; }
.v-dotspin { /* знак «ещё идёт»: три неподвижные точки (владелец: «не надо делать анимацию, оставь статику») */
  display: inline-block;
  flex: none;
  width: 18px;
  height: 4px;
  color: var(--fg-3, rgba(245, 245, 247, .6));
  background: radial-gradient(circle closest-side, currentColor 92%, transparent) 0 0 / 6px 4px repeat-x;
}
.v-s-more-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; }

/* лучший результат + первые треки */
.v-s-overview { display: block; }
@media (min-width: 1024px) {
  .v-s-overview.has-top { display: grid; grid-template-columns: minmax(280px, 2fr) 3fr; column-gap: 32px; align-items: start; }
}
.v-top { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; }
.v-top-art {
  flex: none;
  display: block;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 0;
  border-radius: var(--r-md, 8px);
  overflow: hidden;
  background: var(--surface, #17171c);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  cursor: pointer;
}
.v-top.is-artist .v-top-art { border-radius: 50%; }
.v-top-art .cover { display: block; width: 100% !important; height: 100% !important; border-radius: 0 !important; }
.v-top-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.v-top-title {
  color: inherit;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
}
a.v-top-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.v-top-sub { color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) {
  .v-top { gap: 20px; padding-top: 4px; }
  .v-top-art { width: 120px; height: 120px; }
  .v-top-title { font-size: 28px; }
}

/* ───────────────────────── строки маленьких списков (медиатека, подсказки, недавние, настройки) ───────────────────────── */
.v-rows { display: flex; flex-direction: column; }
.v-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(100% + 16px);
  min-height: 56px;
  margin: 0 -8px;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--r-md, 8px);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color var(--dur, 200ms) ease-out;
}
.v-row:hover { background: var(--hover, rgba(255, 255, 255, .06)); }
.v-row:active { background: var(--press, rgba(255, 255, 255, .1)); }
.v-row:focus-visible { outline: 2px solid var(--accent, #D97757); outline-offset: -2px; }
.v-row-art { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; }
.v-row-art .cover { width: 48px !important; height: 48px !important; border-radius: var(--r-sm, 6px); }
.v-row-art .cover.round { border-radius: 50%; }
.v-row-art .v-liked-art { border-radius: var(--r-sm, 6px); }
.v-row-art .v-liked-art .icon { width: 20px; height: 20px; }
.v-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.v-row-title { color: var(--fg, #f5f5f7); font-size: 16px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-row-sub { color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-row-right { flex: none; display: inline-flex; align-items: center; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; font-variant-numeric: tabular-nums; }
.v-row-right .icon { width: 18px; height: 18px; }
.v-row-hint { display: inline-flex; color: var(--fg-4, rgba(245, 245, 247, .5)); }
.v-row-play {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm, 6px);
  background: rgba(7, 7, 10, .55);
  color: #fff;
}
.v-row-play .icon { width: 18px; height: 18px; }
@media (hover: hover) { .v-sug-track:hover .v-row-play { display: flex; } }
.v-row-plain .v-row-right { color: var(--fg-4, rgba(245, 245, 247, .5)); }

.v-ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm, 6px);
  background: rgba(255, 255, 255, .08);
  color: var(--fg-2, rgba(245, 245, 247, .7));
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}
.v-ava.v-round, .v-ava-round { border-radius: 50%; }
.v-ava-icon .icon { width: 22px; height: 22px; }
.v-ava-xl { width: 72px; height: 72px; font-size: 28px; }

.v-recent-item { display: flex; align-items: center; gap: 4px; }
.v-recent-item > .v-row { flex: 1; width: auto; margin-right: 0; min-width: 0; }
.v-row-search .v-ava { border-radius: 50%; width: 40px; height: 40px; background: transparent; color: var(--fg-3, rgba(245, 245, 247, .6)); }
.v-row-search .v-ava .icon { width: 20px; height: 20px; }
.v-sug .v-row { min-height: 52px; }
.v-sug-interp .v-row-title { font-weight: 600; }
.v-idle-hint { margin-top: 24px; max-width: 420px; }

/* ───────────────────────── медиатека ───────────────────────── */
.v-lib-head { margin-top: 8px; }
.v-lib-head .v-chips { margin-top: 12px; }
.v-lib-body { margin-top: 16px; }
.v-lib-list .v-ava { background: rgba(255, 255, 255, .08); }
.v-lib-count { margin: 0 0 12px; }
.v-ai-row { display: flex; align-items: center; gap: 4px; }
.v-ai-row > .v-row { flex: 1; width: auto; margin-right: 0; min-width: 0; }
.v-ai-row.is-busy .v-row { cursor: default; }
.v-ai-row.is-busy .v-row:hover { background: transparent; }

/* ───────────────────────── настройки и админка: группы без карточек ───────────────────────── */
.v-me { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.v-me .v-ava { border-radius: 50%; }
.v-me-text { min-width: 0; }
.v-me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-me .v-quiet { margin-top: 4px; }
.v-group {
  max-width: 760px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, .08));
}
.v-admin .v-group { max-width: 1040px; }
.v-admin > .v-title + .v-group { margin-top: 20px; }
.v-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v-group-title { margin-bottom: 12px !important; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.v-group .v-quiet:first-child { margin-top: 0; }
.v-status-line { color: var(--fg-2, rgba(245, 245, 247, .7)); font-size: 14px; line-height: 1.5; }
.v-status-line b { color: var(--fg, #f5f5f7); font-weight: 600; }
.v-group .v-status-hint { margin-top: 2px; max-width: 560px; }

.v-pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.v-pref + .v-pref { border-top: 1px solid var(--line, rgba(255, 255, 255, .08)); }
@media (max-width: 639px) { .v-pref-wide { flex-direction: column; align-items: flex-start; gap: 10px; } }
.v-pref-text { min-width: 0; }
.v-pref-title { font-size: 16px; font-weight: 500; }
.v-pref-sub { margin-top: 2px; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; line-height: 1.45; }
.v-seg { display: inline-flex; flex: none; padding: 2px; border-radius: var(--r-sm, 6px); background: rgba(255, 255, 255, .08); }
.v-seg-btn {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--fg-3, rgba(245, 245, 247, .6));
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur, 200ms) ease-out, color var(--dur, 200ms) ease-out;
}
.v-seg-btn:hover { color: var(--fg, #f5f5f7); }
.v-seg-btn.on { background: rgba(255, 255, 255, .16); color: var(--fg, #f5f5f7); }
.v-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: background-color var(--dur, 200ms) ease-out;
}
.v-switch.on { background: var(--accent, #D97757); }
.v-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform var(--dur, 200ms) ease-out;
}
.v-switch.on .v-switch-knob { transform: translateX(18px); }

.v-form { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.v-field { display: flex; flex-direction: column; gap: 6px; }
.v-field-label { color: var(--fg-2, rgba(245, 245, 247, .7)); font-size: 13px; font-weight: 500; }
.v-input { height: 44px; }
.v-hidden-user { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.v-form-err { color: #ff8a80; font-size: 13px; line-height: 1.45; }
.v-form-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 2px; }
.v-form .v-quiet { margin-top: 0; }

.v-usage { max-width: 520px; margin-top: 14px; }
.v-usage-top { display: flex; justify-content: space-between; gap: 12px; color: var(--fg-2, rgba(245, 245, 247, .7)); font-size: 13px; }
.v-meter { height: 4px; margin-top: 6px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.v-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--fg-2, rgba(245, 245, 247, .7)); }
.v-usage.is-warn .v-meter > span, .v-meter.is-warn > span { background: var(--accent, #D97757); }

.v-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.v-invite {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
  user-select: text;
}
.v-group .v-invite + .v-quiet { margin-top: 6px; }
.v-sbox-sm { height: 40px; max-width: 360px; margin: 0 0 8px; }
.v-sbox-sm .v-sinput { padding-right: 12px; font-size: 16px; }

.v-table { display: flex; flex-direction: column; }
.v-tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 4px 16px;
  min-height: 56px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, .08));
}
.v-tr:last-child { border-bottom: 0; }
.v-th { display: none; }
.v-tr > .v-td:nth-child(3), .v-tr > .v-td:nth-child(4) { display: none; }
@media (min-width: 900px) {
  .v-tr { grid-template-columns: minmax(180px, 1.3fr) minmax(120px, 1fr) minmax(130px, 1fr) minmax(200px, 1.5fr) 44px; }
  .v-tr > .v-td:nth-child(3), .v-tr > .v-td:nth-child(4) { display: block; }
  .v-th { display: grid; min-height: 36px; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 12px; font-weight: 600; }
}
.v-td { min-width: 0; }
.v-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.v-user .v-ava { width: 36px; height: 36px; border-radius: 50%; font-size: 14px; }
.v-user-text { display: flex; flex-direction: column; min-width: 0; }
.v-user-login { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-user:hover .v-user-login { text-decoration: underline; text-underline-offset: 3px; }
.v-user-sub { color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 12px; }
.v-trust { color: var(--fg-2, rgba(245, 245, 247, .7)); font-size: 13px; text-align: right; }
.v-trust .v-num { color: var(--fg, #f5f5f7); font-weight: 700; }
.v-trust.is-limited .v-num, .v-trust.is-restricted .v-num { color: var(--accent, #D97757); }
@media (min-width: 900px) { .v-trust { text-align: left; } }
.v-td-sub { display: block; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 12px; }
.v-muted-cell { color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; line-height: 1.4; }
.v-td-act { display: flex; justify-content: flex-end; }
.v-tr.is-blocked .v-user-login { color: var(--fg-3, rgba(245, 245, 247, .6)); text-decoration: line-through; }

.v-dl { margin: 0; }
.v-dl-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .08)); }
.v-dl-row:last-child { border-bottom: 0; }
.v-dl dt { color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; }
.v-dl dd { margin: 0; min-width: 0; font-size: 14px; line-height: 1.45; }
.v-dl .v-meter { max-width: 360px; }
.v-warm { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 480px; }
.v-dd-sub { display: block; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; }
.v-dl-compact .v-dl-row { grid-template-columns: 1fr auto; padding: 8px 0; }
@media (max-width: 639px) { .v-dl:not(.v-dl-compact) .v-dl-row { grid-template-columns: 1fr; gap: 2px; } }
.v-state-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--fg-4, rgba(245, 245, 247, .5)); vertical-align: 1px; }
.v-state-dot.is-ok { background: #3fcf8e; }
.v-state-dot.is-wait { background: #e3b45a; }
.v-state-dot.is-bad { background: #ff6b6b; }

.v-pens { display: flex; flex-direction: column; }
.v-pen { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .08)); }
.v-pen:last-child { border-bottom: 0; }
.v-pen-main { min-width: 0; }
.v-pen-rule { font-size: 14px; font-weight: 600; }
.v-pen-meta { margin-top: 2px; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 13px; }
.v-pen-meta .v-link-btn { padding: 0; font-size: 13px; }
.v-pen-ev { margin-top: 2px; color: var(--fg-4, rgba(245, 245, 247, .5)); font-size: 12px; overflow-wrap: anywhere; }
.v-pen.is-forgiven { opacity: .55; }
.v-trust-score { font-size: 14px; color: var(--fg-2, rgba(245, 245, 247, .7)); }
.v-trust-score .v-num { color: var(--fg, #f5f5f7); font-size: 20px; font-weight: 700; }
.v-trust .v-dl, .v-trust .v-pens { margin-top: 12px; }

/* ссылка на плейлист / временный пароль (в листе ядра) */
.v-share { display: flex; flex-direction: column; gap: 14px; }
.v-share-text { margin: 0; color: var(--fg-2, rgba(245, 245, 247, .7)); font-size: 14px; line-height: 1.5; }
.v-share-row { display: flex; gap: 8px; }
.v-share-input { flex: 1; min-width: 0; -webkit-user-select: text; user-select: text; }
.v-share .v-link-btn { align-self: flex-start; }

/* ───────────────────────── скелеты: плоские и статичные (владелец: «анимацию не надо, оставь статику») ───────────────────────── */
.v-sk {
  display: block;
  border-radius: 4px;
  background: rgba(255, 255, 255, .07);
}
.v-sk-line { height: 12px; margin: 8px 0; }
.v-sk-sm { height: 10px; }
.v-sk-title { width: 60%; height: 28px; margin: 4px 0 12px; }
.v-sk-fill { width: 100%; height: 100%; aspect-ratio: 1; border-radius: var(--r-md, 8px); }
.v-sk-play { width: 56px; height: 56px; border-radius: 50%; margin-right: 12px; }
.v-sk-ib { width: 32px; height: 32px; margin: 6px; border-radius: 50%; }
.v-round { border-radius: 50% !important; }
.v-sk-rows { display: flex; flex-direction: column; }
.v-sk-row { display: flex; align-items: center; gap: 12px; height: 64px; }
.v-sk-cov { flex: none; width: 48px; height: 48px; border-radius: var(--r-sm, 6px); }
.v-sk-num { flex: none; width: 14px; height: 12px; margin: 0 10px 0 6px; }
.v-sk-col { flex: 1; min-width: 0; }
.v-sk-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 14px; overflow: hidden; }
.v-sk-tile { display: block; min-width: 0; }
.v-sk-tile .v-sk-line { margin-top: 12px; }
.v-sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 24px 16px; }
.v-hdr .v-sk-fill { border-radius: 0; }
.v-w30 { width: 30%; } .v-w40 { width: 40%; } .v-w50 { width: 50%; } .v-w70 { width: 70%; }

@keyframes v-spin { to { transform: rotate(360deg); } }

/* ───────────────────────── архивы: «Ищем в архивах…», «Ещё в архивах · N треков», «Пусто…» (OWNER-20/27) ───────────────────────── */
.v-arch-note { min-height: 1.45em; margin: 0 0 8px; color: var(--fg-3, rgba(245, 245, 247, .6)); font-size: 14px; line-height: 1.45; }
.v-arch-empty { color: var(--fg-2, rgba(245, 245, 247, .7)); font-size: 15px; line-height: 1.5; }
.v-arch-albums { margin-top: 16px; }
/* альбом есть в каталоге, а в архивах пусто: строки приглушены (как недоступные треки), но нажимаются */
.v-unavail .track-row:not([data-state="cached"]):not(.is-current) :is(.tr-main, .tr-index) { opacity: .5; }
.v-empty-arch .v-empty-title { font-size: 18px; }

/* ───────────────────────── дискография (OWNER-24) ───────────────────────── */
.v-disco-head { margin-top: 8px; }
.v-disco-head .v-sk-title { margin-bottom: 8px; }
.v-disco-artist { margin-top: 4px; color: var(--fg-2, rgba(245, 245, 247, .7)); font-size: 16px; line-height: 1.4; }
.v-disco-artist .v-link { font-weight: 600; }
.v-disco-head .v-chips { margin-top: 16px; }
.v-disco-body { margin-top: 20px; }

/* свои ряды чипов (медиатека, поиск, дискография): 36 px */
.v-chips .chip { height: 36px; padding: 0 16px; }

/* переключатель в настройках: палец попадает с запасом */
.v-switch::before { content: ""; position: absolute; inset: -9px -4px; }

/* ───────────────────────── телефон (OWNER-17: крупнее, свободнее, без мелких пояснений) ───────────────────────── */
@media (max-width: 639px) {
  .v-page .shelf { grid-auto-columns: 150px; }
}
@media (max-width: 370px) {
  .v-page .shelf, .v-sk-shelf { grid-auto-columns: 136px; }
}
@media (max-width: 600px) {
  .v-sec-title { font-size: 22px; } /* OWNER-29 */
  .v-reason, .v-ai-entry .v-row-sub, .v-lib-count { display: none; }
  .v-row { min-height: 64px; }
  .v-row-sub { font-size: 14px; }
  .v-quiet, .v-pref-sub { font-size: 14px; }
  .v-empty-text { font-size: 15px; }
}
/* всё, во что попадают пальцем, — не ниже 44 px */
@media (hover: none), (max-width: 600px) {
  /* ссылки в строке под заголовком (исполнитель альбома, «38 альбомов»): палец попадает с запасом, вёрстка не двигается */
  .v-hdr-meta .v-link, .v-disco-artist .v-link, .v-hdr-artists .v-link { position: relative; }
  .v-hdr-meta .v-link::before, .v-disco-artist .v-link::before, .v-hdr-artists .v-link::before {
    content: ""; position: absolute; left: 50%; top: -14px; bottom: -14px; width: max(calc(100% + 8px), 44px); transform: translateX(-50%);
  }
  /* строка исполнителей плейлиста обрезана по двум строкам (overflow hidden): даём ей поля, чтобы зона нажатия не срезалась */
  .v-hdr-desc:has(> .v-hdr-artists) { padding: 14px 0; margin: -6px 0 -14px; }
  .v-top-title { padding: 10px 0; margin: -10px 0; }
  .v-link-btn, .v-sec-more, .v-link-quiet { display: inline-flex; align-items: center; min-height: 44px; }
  .v-sec-more, .v-page .section-more { justify-content: center; min-width: 44px; }
  .v-page .section-more { display: inline-flex; align-items: center; min-height: 44px; }
  .v-ib-sm, .btn-icon.v-ib-sm { width: 44px; height: 44px; }
  .v-seg-btn { height: 40px; }
}

/* ───────────────────────── большой экран ───────────────────────── */
@media (min-width: 1024px) {
  .v-title, .v-greet { font-size: 28px; }
  .v-sec, .v-page .section, .v-page .v-body > div > :is(.v-sec, .section) { margin-top: 40px; }
  .v-quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
  .v-q { height: 64px; }
  .v-q-art { width: 64px; height: 64px; }
  .v-q-title { font-size: 14px; padding-left: 16px; }
  .v-hdr { flex-direction: row; align-items: flex-end; gap: 28px; padding-top: 28px; }
  .v-hdr-art { width: 232px; }
  .v-hdr-text { align-self: flex-end; padding-bottom: 4px; }
  .v-hdr-title { font-size: 40px; line-height: 1.1; }
  .v-hdr-title.v-t-m { font-size: 28px; }
  .v-hdr-title.v-t-s { font-size: 28px; }
  .v-hdr-meta { font-size: 14px; }
  .v-actions { margin-top: 24px; }
  .v-body { margin-top: 28px; }
  .v-sk-row { height: 56px; }
  .v-sk-cov { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .v-dotspin { animation: none; }
  .v-tint, .v-q, .v-q-play, .v-row, .v-ib, .v-play { transition: none; }
}
