/* Тема builder — сайт из конструктора. Цвета, шрифты, ширина, отступы, скругления и размеры карточек приходят
   CSS-переменными из раскладки (layout.CSS: --bg --surface --surface-2 --line --text --muted --accent --accent-2
   --accent-ink --font --head-font --radius --radius-sm --width --gap --shadow --card-min --mcard-min --ccard-min --lines),
   варианты шапки, кнопок и карточек — классами <body> (layout.BodyClass: hdr-* nav-* srch-* ftr-* btn-* vc-* ratio-*
   hov-* mc-* cc-* mode-* shadow-*; вторая версия конструктора: menu-* cbar-* fcats-* cc-<стиль>-ch rate-* meta-* by-*
   sec-* mcols-N mtabs vc-surface cols-fixed colsm-fixed colsc-fixed cc-upper и переменные --chcard-min --cols --cols-m
   --cols-c --mobile-cols). Варианты всегда пишутся как body.<класс>: у элементов таких классов нет.
   Выбор посетителя «светлая/тёмная» — класс tt-light / tt-dark на <html> (ставит builder.js).

   Разделы: 1 основа · 2 кнопки и поля · 3 шапка · 4 каркас и заголовки · 5 карточки видео · 6 модели ·
   7 категории, облако, чипы · 8 герой и блоки главной · 9 списки и шапки таксонов · 10 страница видео ·
   11 модели/категории, пагинация · 12 формы, кабинет, правовые · 13 подвал · 14 реклама, 18+ · 15 адаптивность ·
   16 вторая версия конструктора (шапки drawer/rail/stacked/portal, подменю, вкладки, каналы, новые карточки и части) */

/* ── 1. основа ─────────────────────────────────────────────────────────── */
:root {
  /* значения на случай, если раскладка не пришла (их перекрывает <style> из layout.CSS) */
  --bg: #0b0b0f; --surface: #15151c; --surface-2: #1e1e26; --line: #2c2c36; --text: #ececf1; --muted: #9a9aa8;
  --accent: #ff3d6e; --accent-2: #ffb547; --accent-ink: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --head-font: var(--font);
  --radius: 10px; --radius-sm: 5px; --width: 1320px; --gap: 16px; --shadow: none;
  --card-min: 240px; --mcard-min: 150px; --ccard-min: 190px; --lines: 2;
  --pad: 24px; --side-w: 248px;
  --btn-h: 40px; --btn-px: 18px; --btn-fs: 14px; --btn-r: var(--radius-sm);
  --ratio: 16 / 9;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--bg); color: var(--text); font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head-font); letter-spacing: -.01em; }
h1 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0; }
h2 { font-size: 20px; line-height: 1.25; margin: 0; }
h3 { margin: 0; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.skip:focus { top: 12px; color: var(--accent-ink); }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-flip { transform: scaleY(-1); }
.kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.verified { font-style: normal; color: var(--accent); font-size: .85em; }
.empty { padding: 56px 16px; text-align: center; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(14px, 2vw, 22px); box-shadow: var(--shadow); }
.more { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.more:hover { color: var(--accent); }

/* логотип: значок из настроек оформления (design.LogoHTML) и название */
.logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--head-font); }
.logo:hover { color: inherit; }
.logo-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.12; }
.logo-txt b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo .tagline { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font); }
.logo-mark { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-style: normal; }
.logo-mark b { font-weight: 800; line-height: 1; }
.logo-circle { border-radius: 50%; } .logo-rounded { border-radius: 8px; } .logo-square { border-radius: 2px; }

/* ── 2. кнопки и поля ──────────────────────────────────────────────────── */
body.btn-sm { --btn-h: 34px; --btn-px: 13px; --btn-fs: 13px; }
body.btn-md { --btn-h: 40px; --btn-px: 18px; --btn-fs: 14px; }
body.btn-lg { --btn-h: 48px; --btn-px: 24px; --btn-fs: 15.5px; }
body.btn-pill { --btn-r: 999px; }
body.btn-sharp { --btn-r: 0px; }
body.btn-gradient, body.btn-soft { --btn-r: calc(var(--radius-sm) + 3px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--btn-h); padding: 0 var(--btn-px);
  border: 1px solid var(--line); border-radius: var(--btn-r); background: var(--surface-2); color: var(--text);
  font: 600 var(--btn-fs)/1 var(--font); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s, filter .15s;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn .ico { font-size: 1.15em; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn.chip-on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
.btn-off { opacity: .4; pointer-events: none; }
.btn-wide { width: 100%; height: calc(var(--btn-h) + 6px); font-size: calc(var(--btn-fs) + 1px); }
.btn-danger { border-color: #e5484d; color: #e5484d; background: transparent; }
.btn-danger:hover { background: #e5484d; border-color: #e5484d; color: #fff; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f2f2f2; color: #1f1f1f; border-color: #dadce0; }
body.btn-upper .btn { text-transform: uppercase; letter-spacing: .07em; font-size: calc(var(--btn-fs) - 1px); }

body.btn-outline .btn { background: transparent; }
body.btn-outline .btn-primary { background: transparent; border-color: var(--accent); color: var(--accent); }
body.btn-outline .btn-primary:hover { background: var(--accent); color: var(--accent-ink); filter: none; }
body.btn-ghost .btn { background: transparent; border-color: transparent; }
body.btn-ghost .btn:hover { background: var(--surface-2); }
body.btn-ghost .btn-primary { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
body.btn-ghost .btn-primary:hover { background: var(--accent); color: var(--accent-ink); filter: none; }
body.btn-gradient .btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 32%, transparent); }
body.btn-gradient .btn-primary:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
body.btn-sharp .btn { letter-spacing: .02em; }
body.btn-sharp .btn-primary { box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 45%, #000); }
body.btn-soft .btn { border-color: transparent; background: var(--surface-2); }
body.btn-soft .btn-primary { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--accent); }
body.btn-soft .btn-primary:hover { background: color-mix(in srgb, var(--accent) 32%, var(--surface)); color: var(--accent); filter: none; }

input[type="search"], input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%; min-width: 0; height: var(--btn-h); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--btn-r);
  background: var(--surface); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 80px; padding: 12px 14px; resize: vertical; border-radius: var(--radius); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1); }

/* ── 3. шапка ──────────────────────────────────────────────────────────── */
.hdr { position: relative; z-index: 40; background: color-mix(in srgb, var(--surface) 72%, var(--bg)); border-bottom: 1px solid var(--line); }
body.hdr-sticky:not(.hdr-sidebar) .hdr { position: sticky; top: 0; background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.hdr-in {
  max-width: var(--width); margin: 0 auto; padding: 12px var(--pad) 8px;
  display: grid; align-items: center; gap: 8px 20px;
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search act" "menu menu menu";
}
.hdr-in > .logo { grid-area: logo; }
.hdr-in > .sbox { grid-area: search; }
.hdr-in > .hdr-act { grid-area: act; }
.hdr-in > .menu { grid-area: menu; }
.hdr-act { display: flex; align-items: center; gap: 6px; justify-self: end; }
.hlink { display: inline-flex; align-items: center; gap: 6px; height: var(--btn-h); padding: 0 10px; border-radius: var(--btn-r); color: var(--muted); font-weight: 600; font-size: 14px; }
.hlink:hover { color: var(--text); background: var(--surface-2); }
.hlink .ico { color: var(--accent-2); }

/* поиск */
.sbox { min-width: 0; }
.hdr-in > .sbox:not(.sbox-pop) { width: 100%; max-width: 640px; justify-self: center; }
.search { position: relative; display: flex; align-items: center; }
.search input { padding-right: 46px; }
body.btn-pill .search input, body.btn-sharp .search input { border-radius: var(--btn-r); }
.search > button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: calc(var(--btn-h) - 8px); height: calc(var(--btn-h) - 8px); border: 0; border-radius: var(--btn-r); background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; }
.search > button:hover { color: var(--accent); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 5px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, .38); }
.suggest li a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); }
.suggest li a:hover, .suggest li.sel a { background: var(--surface-2); color: var(--text); }
.suggest em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.hdr-in { position: relative; }
.sbox-pop { position: static; justify-self: end; }
.sbox-pop > summary { list-style: none; display: grid; place-items: center; width: var(--btn-h); height: var(--btn-h); border: 1px solid var(--line); border-radius: var(--btn-r); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 18px; }
.sbox-pop > summary::-webkit-details-marker { display: none; }
.sbox-pop > summary:hover, .sbox-pop[open] > summary { color: var(--accent); border-color: var(--accent); }
.sbox-pop > .search { position: absolute; right: var(--pad); top: calc(100% - 2px); z-index: 55; width: min(460px, calc(100% - 2 * var(--pad))); padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, .38); }
.sbox-pop > .search > button { right: 14px; }
.search-page { max-width: 640px; }

/* меню */
.menu { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.menu::-webkit-scrollbar { display: none; }
.menu a { position: relative; display: inline-flex; align-items: center; height: 36px; padding: 0 12px; white-space: nowrap; color: var(--muted); font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); transition: color .15s, background-color .15s; }
.menu a:hover { color: var(--text); }
.menu a.active { color: var(--text); }
body.nav-plain .menu a.active { color: var(--accent); }
body.nav-tabs .menu { gap: 2px; align-self: end; }
body.nav-tabs .menu a { border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
body.nav-tabs .menu a:hover { background: var(--surface-2); }
body.nav-tabs .menu a.active { background: var(--bg); border-color: var(--line); color: var(--text); box-shadow: inset 0 2px 0 var(--accent); }
body.nav-tabs.hdr-classic .hdr-in, body.nav-tabs.hdr-centered .hdr-in, body.nav-tabs.hdr-bold .hdr-in { padding-bottom: 0; }
body.nav-tabs.hdr-compact .menu a, body.nav-tabs.hdr-split .menu a { border-bottom: 1px solid transparent; border-radius: var(--radius-sm); }
body.nav-tabs.hdr-compact .menu a.active, body.nav-tabs.hdr-split .menu a.active { border-color: var(--line); }
body.nav-pills .menu a { border-radius: 999px; padding: 0 15px; }
body.nav-pills .menu a:hover { background: var(--surface-2); }
body.nav-pills .menu a.active { background: var(--accent); color: var(--accent-ink); }
body.nav-underline .menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
body.nav-underline .menu a:hover::after { transform: scaleX(.5); }
body.nav-underline .menu a.active::after { transform: scaleX(1); }

/* полоса популярных категорий */
.catsbar { border-top: 1px solid var(--line); }
.catsbar-in { max-width: var(--width); margin: 0 auto; padding: 0 var(--pad); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catsbar-in::-webkit-scrollbar { display: none; }
.catsbar a { flex: none; padding: 9px 11px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.catsbar a:hover, .catsbar a.active { color: var(--accent); }
.catsbar .catsbar-all { color: var(--text); }

/* компактная: логотип, поиск, меню и вход в одну низкую строку */
body.hdr-compact .hdr-in { padding-block: 7px; grid-template-columns: auto minmax(160px, 340px) minmax(0, 1fr) auto; grid-template-areas: "logo search menu act"; gap: 14px; }
body.hdr-compact .hdr-in > .sbox:not(.sbox-pop) { justify-self: stretch; }
body.hdr-compact .menu { justify-content: flex-end; }
body.hdr-compact .logo-txt b { font-size: 18px; }
body.hdr-compact .logo .tagline { display: none; }
body.hdr-compact { --btn-h: 36px; }

/* меню слева, поиск справа */
body.hdr-split .hdr-in { padding-block: 14px; grid-template-columns: auto minmax(0, 1fr) minmax(180px, 360px) auto; grid-template-areas: "logo menu search act"; gap: 22px; }
body.hdr-split .menu a { font-size: 15px; }

/* логотип по центру */
body.hdr-centered .hdr-in { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "search logo act" "menu menu menu"; padding-top: 16px; }
body.hdr-centered .hdr-in > .logo { flex-direction: column; text-align: center; gap: 6px; }
body.hdr-centered .logo-txt { align-items: center; }
body.hdr-centered .logo-txt b { font-size: 26px; }
body.hdr-centered .hdr-in > .sbox:not(.sbox-pop) { justify-self: start; max-width: 320px; }
body.hdr-centered .hdr-in > .sbox-pop { justify-self: start; }
body.hdr-centered .hdr-in > .sbox-pop > .search { right: auto; left: var(--pad); }
body.hdr-centered .menu { justify-content: center; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }

/* крупная с цветной полосой */
body.hdr-bold .hdr, body.hdr-bold.hdr-sticky .hdr { background: linear-gradient(115deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-bottom: 0; }
body.hdr-bold .hdr-in { padding-top: 18px; }
body.hdr-bold .logo-txt b { font-size: 26px; }
body.hdr-bold .logo .tagline { color: var(--accent-ink); opacity: .78; }
body.hdr-bold .logo-mark { background: var(--accent-ink); color: var(--accent); }
body.hdr-bold .hdr .search input { background: rgba(255, 255, 255, .95); border-color: transparent; color: #15151c; }
body.hdr-bold .hdr .search input::placeholder { color: #6b6b78; }
body.hdr-bold .hdr .search > button { color: #6b6b78; }
body.hdr-bold .hdr .suggest { color: var(--text); }
body.hdr-bold .sbox-pop > summary { background: rgba(255, 255, 255, .18); border-color: transparent; color: var(--accent-ink); }
body.hdr-bold .hlink, body.hdr-bold .hlink .ico { color: var(--accent-ink); }
body.hdr-bold .hlink:hover { background: rgba(0, 0, 0, .12); color: var(--accent-ink); }
body.hdr-bold .hdr .btn-primary, body.hdr-bold .hdr .btn-primary:hover { background: var(--accent-ink); border-color: transparent; color: var(--accent); box-shadow: none; }
body.hdr-bold .menu a { color: color-mix(in srgb, var(--accent-ink) 78%, transparent); }
body.hdr-bold .menu a:hover, body.hdr-bold .menu a.active { color: var(--accent-ink); }
body.hdr-bold.nav-pills .menu a:hover, body.hdr-bold.nav-tabs .menu a:hover { background: rgba(0, 0, 0, .12); }
body.hdr-bold.nav-pills .menu a.active { background: var(--accent-ink); color: var(--accent); }
body.hdr-bold.nav-tabs .menu a.active { background: var(--bg); color: var(--text); border-color: transparent; }
body.hdr-bold.nav-underline .menu a::after { background: var(--accent-ink); }
body.hdr-bold .catsbar { border-top-color: rgba(0, 0, 0, .12); background: rgba(0, 0, 0, .1); }
body.hdr-bold .catsbar a { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
body.hdr-bold .catsbar a:hover, body.hdr-bold .catsbar a.active, body.hdr-bold .catsbar .catsbar-all { color: var(--accent-ink); }

/* меню слева колонкой */
body.hdr-sidebar .hdr { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); overflow-y: auto; overscroll-behavior: contain; border-bottom: 0; border-right: 1px solid var(--line); scrollbar-width: thin; }
body.hdr-sidebar .hdr-in { height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 16px; }
body.hdr-sidebar .hdr-in > .logo { margin-bottom: 4px; }
body.hdr-sidebar .hdr-in > .sbox:not(.sbox-pop) { max-width: none; }
body.hdr-sidebar .sbox-pop { justify-self: stretch; }
body.hdr-sidebar .sbox-pop > summary { width: 100%; }
body.hdr-sidebar .sbox-pop { position: relative; }
body.hdr-sidebar .sbox-pop > .search { position: static; width: 100%; margin-top: 8px; padding: 0; border: 0; background: none; box-shadow: none; }
body.hdr-sidebar .sbox-pop > .search > button { right: 4px; }
body.hdr-sidebar .menu { order: 3; align-self: stretch; flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; }
body.hdr-sidebar .menu a { height: 40px; padding: 0 12px; font-size: 14.5px; }
body.hdr-sidebar .menu a:hover { background: var(--surface-2); }
body.hdr-sidebar.nav-tabs .menu a { border: 0; border-left: 3px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
body.hdr-sidebar.nav-tabs .menu a.active { border-left-color: var(--accent); background: var(--surface-2); box-shadow: none; }
body.hdr-sidebar.nav-underline .menu a::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; transform: scaleY(0); }
body.hdr-sidebar.nav-underline .menu a.active::after { transform: scaleY(1); }
body.hdr-sidebar .side-cats { order: 4; padding-top: 12px; border-top: 1px solid var(--line); }
body.hdr-sidebar .hdr-act { order: 5; margin-top: auto; justify-self: stretch; flex-wrap: wrap; }
body.hdr-sidebar .hdr-act .btn { flex: 1; }
body.hdr-sidebar .shell { margin-left: var(--side-w); }
.side-title { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.side-cats .more { display: inline-block; margin-top: 8px; font-size: 13px; }

.catlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 1px; }
.catlist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 14px; }
.catlist a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catlist a small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.catlist a:hover { background: var(--surface-2); color: var(--text); }
.catlist a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ── 4. каркас и заголовки ─────────────────────────────────────────────── */
.shell { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wrap { flex: 1; width: 100%; max-width: var(--width); margin: 0 auto; padding: calc(var(--gap) * 1.5) var(--pad) 56px; display: flex; flex-direction: column; gap: calc(var(--gap) * 2.2); min-width: 0; }
.block { min-width: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: calc(var(--gap) * .9); }
.sec-head h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 1.8vw, 22px); font-weight: 750; }
.sec-head h2::before { content: ""; width: 4px; height: .95em; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent-2)); flex: none; }
.sec-note { margin: calc(var(--gap) * -.5) 0 12px; }
.lhead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.lhead h1 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; }
.lhead-banner { position: relative; overflow: hidden; display: block; padding: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 36px); border-radius: calc(var(--radius) * 1.3); border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%), radial-gradient(100% 120% at 100% 100%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 60%), var(--surface); }
.lhead-banner h1 { font-size: clamp(28px, 4vw, 46px); }
.lhead-banner p { margin-top: 6px; color: var(--muted); }
.lhead-compact { margin-bottom: calc(var(--gap) * -1.2); }
.lhead-compact h1 { font-size: 20px; }

/* ── 5. карточки видео ─────────────────────────────────────────────────── */
.grid { --cmin: var(--card-min); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--cmin), 100%), 1fr)); gap: calc(var(--gap) * 1.3) var(--gap); }
.vcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.thumb { position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: var(--ratio); border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow); }
body.ratio-16x9 { --ratio: 16 / 9; }
body.ratio-4x3 { --ratio: 4 / 3; }
body.ratio-1x1 { --ratio: 1 / 1; }
body.ratio-3x4 { --ratio: 3 / 4; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.thumb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 30px; background: linear-gradient(135deg, var(--surface-2), var(--line)); }
.badges { position: absolute; top: 8px; left: 8px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; }
.badge { display: inline-block; padding: 3px 7px; border-radius: min(var(--radius-sm), 6px); background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 800; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; }
.badge-short { background: rgba(0, 0, 0, .74); color: #fff; }
.badge-premium { background: rgba(0, 0, 0, .8); color: var(--accent-2); }
.dur { position: absolute; right: 8px; bottom: 8px; z-index: 3; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.thumb-stats { display: none; }
.play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.play svg { width: 50px; height: 50px; padding: 13px 11px 13px 15px; border-radius: 50%; fill: var(--accent-ink); background: color-mix(in srgb, var(--accent) 88%, transparent); transform: scale(.85); transition: transform .2s; }
.thumb:not([data-screens]):hover .play { opacity: 1; }
.thumb:not([data-screens]):hover .play svg { transform: scale(1); }
.scrub { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 3px; background: rgba(255, 255, 255, .22); }
.scrub i { display: block; width: 0; height: 100%; background: var(--accent); }
.vbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 9px; }
.vtitle { font-family: var(--font); font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: var(--lines); -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.vmodels { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vmodels a { color: var(--text); opacity: .82; }
.vmodels a:hover { color: var(--accent); opacity: 1; }
.vmeta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; color: var(--muted); font-size: 12.5px; }
.vmeta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.vrate { color: color-mix(in srgb, var(--accent) 70%, var(--text)); }

/* эффект при наведении */
body.hov-zoom .thumb:hover img { transform: scale(1.07); }
body.hov-lift .vcard { transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
body.hov-lift .vcard:hover { transform: translateY(-4px); }
body.hov-lift .vcard:hover .thumb { box-shadow: 0 14px 30px rgba(0, 0, 0, .35); }
body.hov-glow .thumb { transition: box-shadow .2s; }
body.hov-glow .vcard:hover .thumb { box-shadow: 0 0 0 2px var(--accent), 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent); }
body.hov-glow .vcard:hover .vtitle a { color: var(--accent); }

/* название поверх превью */
body.vc-overlay .vbody { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 44px 12px 10px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(transparent, rgba(0, 0, 0, .55) 35%, rgba(0, 0, 0, .9)); color: #fff; pointer-events: none; }
body.vc-overlay .vbody a { pointer-events: auto; }
body.vc-overlay .vtitle a:hover { color: #fff; text-decoration: underline; }
body.vc-overlay .vmodels, body.vc-overlay .vmeta { color: rgba(255, 255, 255, .78); }
body.vc-overlay .vmodels a { color: #fff; }
body.vc-overlay .dur { top: 8px; bottom: auto; }
body.vc-overlay .scrub { top: 0; bottom: auto; }

/* компактная: данные на превью */
body.vc-compact .grid { --cmin: calc(var(--card-min) * .86); gap: calc(var(--gap) * .9) calc(var(--gap) * .6); }
body.vc-compact .vbody { padding-top: 6px; gap: 1px; }
body.vc-compact .vtitle { font-size: 13.5px; -webkit-line-clamp: 1; }
body.vc-compact .vmodels { font-size: 12px; }
body.vc-compact .vmeta { display: none; }
body.vc-compact .thumb-stats { position: absolute; left: 8px; bottom: 8px; z-index: 3; display: flex; gap: 4px; }
body.vc-compact .thumb-stats > span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .74); color: #fff; font-size: 11.5px; font-weight: 600; }

/* строкой: превью слева */
body.vc-list .grid { --cmin: calc(var(--card-min) * 2.1); gap: var(--gap); }
body.vc-list .vcard { flex-direction: row; align-items: flex-start; gap: 14px; }
body.vc-list .thumb { width: 42%; flex: none; }
body.vc-list .vbody { padding-top: 2px; gap: 5px; }
body.vc-list .vtitle { font-size: 15px; }

/* плитка без подписи: название появляется при наведении */
body.vc-tile .grid { gap: calc(var(--gap) * .5); }
body.vc-tile .vbody { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 36px 10px 9px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(transparent, rgba(0, 0, 0, .88)); color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
body.vc-tile .vcard:hover .vbody, body.vc-tile .vcard:focus-within .vbody { opacity: 1; transform: none; }
body.vc-tile .vbody a { pointer-events: auto; }
body.vc-tile .vtitle { font-size: 13.5px; -webkit-line-clamp: 2; }
body.vc-tile .vtitle a:hover { color: #fff; }
body.vc-tile .vmodels, body.vc-tile .vmeta { display: none; }
body.vc-tile .dur { top: 8px; bottom: auto; }

/* журнальная, крупная */
body.vc-magazine .grid { --cmin: calc(var(--card-min) * 1.35); gap: calc(var(--gap) * 1.8) calc(var(--gap) * 1.3); }
body.vc-magazine .thumb { border-radius: calc(var(--radius) * 1.25); }
body.vc-magazine .vbody { padding-top: 12px; gap: 5px; }
body.vc-magazine .vtitle { font-family: var(--head-font); font-size: 18px; font-weight: 750; line-height: 1.25; letter-spacing: -.01em; }
body.vc-magazine .vmodels { order: -1; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
body.vc-magazine .vmodels a { color: var(--accent); opacity: 1; }
@media (min-width: 900px) {
  body.vc-magazine .grid:not(.view-row):not(.view-list):not(.view-big):not(.rel) > .vcard:first-child { grid-column: span 2; }
  body.vc-magazine .grid:not(.view-row):not(.view-list):not(.view-big):not(.rel) > .vcard:first-child .vtitle { font-size: 24px; }
}

/* карточка-рамка */
body.vc-polaroid .vcard { padding: 8px 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
body.vc-polaroid .thumb { border-radius: var(--radius-sm); box-shadow: none; }
body.vc-polaroid .vbody { padding: 10px 4px 0; }
body.vc-polaroid.hov-glow .vcard:hover { border-color: var(--accent); }

/* неоновая рамка */
body.vc-neon .vcard { overflow: hidden; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 18%, transparent); transition: border-color .2s, box-shadow .2s, transform .22s; }
body.vc-neon .vcard:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 26px color-mix(in srgb, var(--accent) 50%, transparent); }
body.vc-neon .thumb { border-radius: 0; box-shadow: none; }
body.vc-neon .vbody { padding: 10px 12px 12px; }
body.vc-neon .vtitle a:hover { color: var(--accent-2); }
body.vc-neon .dur { background: rgba(0, 0, 0, .82); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
body.vc-neon .badge-new { box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 70%, transparent); }

/* виды блоков: лента с прокруткой, список, крупно */
.view-row { display: grid; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.view-row > * { scroll-snap-align: start; }
body .grid.view-row { --cmin: var(--card-min); grid-auto-columns: min(var(--cmin), 80%); }
body .mgrid.view-row { grid-auto-columns: min(var(--mmin), 46%); }
body .cgrid.view-row { grid-auto-columns: min(var(--ccmin), 70%); }
body .view-row .vcard, body .view-big .vcard { flex-direction: column; gap: 0; }
body .view-row .thumb, body .view-big .thumb { width: auto; }
body .grid.view-list { --cmin: calc(var(--card-min) * 2.1); gap: var(--gap); }
body .view-list .vcard { flex-direction: row; align-items: flex-start; gap: 12px; padding: 0; background: none; border: 0; box-shadow: none; overflow: visible; }
body .view-list .thumb { width: 40%; flex: none; }
body .view-list .vbody { position: static; padding: 0; background: none; color: inherit; opacity: 1; transform: none; pointer-events: auto; gap: 4px; }
body .view-list .vtitle { font-size: 14px; }
body .view-list .vmodels, body .view-list .vmeta { display: flex; color: var(--muted); }
body .view-list .vmodels { display: block; }
body .view-list .vmodels a { color: var(--text); }
body .view-list .dur { top: auto; bottom: 6px; }
@media (min-width: 760px) {
  .grid.view-big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.view-big > .vcard:first-child { grid-column: span 2; grid-row: span 2; }
  .grid.view-big > .vcard:first-child .vtitle { font-family: var(--head-font); font-size: clamp(18px, 1.8vw, 24px); }
  .grid.view-big > .vcard:first-child .thumb { aspect-ratio: auto; flex: 1; min-height: 0; }
}

/* ── 6. карточки моделей ───────────────────────────────────────────────── */
.mgrid { --mmin: var(--mcard-min); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--mmin), 100%), 1fr)); gap: calc(var(--gap) * 1.2) var(--gap); }
.mcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; text-align: center; }
.mcard:hover { color: inherit; }
.mphoto { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 2px solid var(--line); background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--accent) 22%, var(--surface-2))); color: var(--muted); font-family: var(--head-font); font-size: clamp(24px, 3vw, 40px); font-weight: 800; box-shadow: var(--shadow); transition: border-color .2s, transform .25s; }
.mphoto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mphoto .badge { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); z-index: 1; }
.mcard:hover .mphoto { border-color: var(--accent); }
body.hov-zoom .mcard:hover .mphoto img { transform: scale(1.06); transition: transform .35s; }
body.hov-lift .mcard:hover .mphoto { transform: translateY(-3px); }
.mbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: 100%; }
.mname { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard:hover .mname { color: var(--accent); }
.mmeta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; color: var(--muted); font-size: 12.5px; }
body.mc-square .mphoto { border-radius: var(--radius); }
body.mc-square .mphoto .badge { left: 8px; top: 8px; bottom: auto; transform: none; }
body.mc-portrait .mcard { align-items: stretch; text-align: left; }
body.mc-portrait .mphoto { aspect-ratio: 3 / 4; border-radius: var(--radius); }
body.mc-portrait .mphoto .badge { left: 8px; top: 8px; bottom: auto; transform: none; }
body.mc-portrait .mmeta { justify-content: flex-start; }
body.mc-banner .mgrid { --mmin: calc(var(--mcard-min) * 1.9); }
body.mc-banner .mcard { display: block; overflow: hidden; border-radius: var(--radius); text-align: left; }
body.mc-banner .mphoto { aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); }
body.mc-banner .mphoto .badge { left: 10px; top: 10px; bottom: auto; transform: none; }
body.mc-banner .mbody { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .86)); color: #fff; border-radius: 0 0 var(--radius) var(--radius); }
body.mc-banner .mname { font-size: 16px; }
body.mc-banner .mcard:hover .mname { color: #fff; }
body.mc-banner .mmeta { justify-content: flex-start; color: rgba(255, 255, 255, .78); }
body.mc-list .mgrid { --mmin: calc(var(--mcard-min) * 1.9); gap: 8px var(--gap); }
body.mc-list .mcard { flex-direction: row; gap: 12px; padding: 8px 12px 8px 8px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
body.mc-list .mcard:hover { border-color: var(--accent); }
body.mc-list .mphoto { width: 52px; flex: none; font-size: 20px; border-width: 1px; box-shadow: none; }
body.mc-list .mphoto .badge { display: none; }
body.mc-list .mmeta { justify-content: flex-start; }
body.mc-minimal .mgrid { gap: 8px; }
body.mc-minimal .mcard { justify-content: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--btn-r); }
body.mc-minimal .mcard:hover { border-color: var(--accent); }
body.mc-minimal .mphoto { display: none; }

/* ── 7. категории и каналы, облако тегов, чипы ─────────────────────────── */
.cgrid { --ccmin: var(--ccard-min); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--ccmin), 100%), 1fr)); gap: calc(var(--gap) * 1.2) var(--gap); }
.ccard { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ccard:hover { color: inherit; }
.cimg { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--surface-2)), var(--surface-2) 70%); box-shadow: var(--shadow); }
.cini { font-family: var(--head-font); font-size: 36px; font-weight: 800; color: color-mix(in srgb, var(--text) 65%, transparent); }
.cimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.cshade { display: none; }
.cimg .badge { position: absolute; top: 8px; left: 8px; z-index: 2; }
body.hov-zoom .ccard:hover .cimg img { transform: scale(1.06); }
body.hov-lift .ccard { transition: transform .22s; }
body.hov-lift .ccard:hover { transform: translateY(-3px); }
body.hov-glow .ccard:hover .cimg { box-shadow: 0 0 0 2px var(--accent), 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent); }
.cbody { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.cname { min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard:hover .cname { color: var(--accent); }
.ccount { flex: none; color: var(--muted); font-size: 12.5px; }
body.cc-overlay .ccard { display: block; }
body.cc-overlay .cshade { display: block; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .1) 60%, transparent); }
body.cc-overlay .cbody { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 14px; color: #fff; }
body.cc-overlay .cname { font-size: 17px; font-weight: 750; }
body.cc-overlay .ccard:hover .cname { color: #fff; }
body.cc-overlay .ccount { color: rgba(255, 255, 255, .78); }
body.cc-overlay .cini { transform: translateY(-14px); }
body.cc-pill .cgrid { display: flex; flex-wrap: wrap; gap: 8px; }
body.cc-pill .cgrid.view-row { flex-wrap: nowrap; }
body.cc-pill .ccard { flex: none; flex-direction: row; align-items: center; padding: 0 16px; height: 38px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
body.cc-pill .ccard:hover { border-color: var(--accent); transform: none; }
body.cc-pill .cimg { display: none; }
body.cc-pill .cbody { gap: 8px; }
body.cc-pill .cname { font-weight: 600; font-size: 14px; }
body.cc-list .cgrid { --ccmin: calc(var(--ccard-min) * 1.3); gap: 6px var(--gap); }
body.cc-list .ccard { flex-direction: row; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
body.cc-list .ccard:hover { border-color: var(--accent); transform: none; }
body.cc-list .cimg { width: 46px; flex: none; aspect-ratio: 1; border-radius: var(--radius-sm); box-shadow: none; }
body.cc-list .cini { font-size: 18px; }
body.cc-list .cimg .badge { display: none; }
body.cc-list .cbody { flex: 1; }
body.cc-letter .cimg { aspect-ratio: 5 / 4; border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%), var(--surface); }
body.cc-letter .cimg img { display: none; }
body.cc-letter .cini { font-size: clamp(44px, 5vw, 64px); color: var(--accent); }
body.cc-letter .ccard:hover .cimg { border-color: var(--accent); }
body.cc-letter .cbody { flex-direction: column; align-items: center; gap: 0; text-align: center; }

.cloud, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 500; transition: border-color .15s, color .15s, background-color .15s; }
body.btn-sharp .chip { border-radius: 0; }
body.btn-solid .chip, body.btn-soft .chip { border-radius: calc(var(--radius-sm) + 3px); }
.chip small { color: var(--muted); font-size: 11.5px; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip-on, .chip-on:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }
.chip-cat { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }

/* ── 8. герой и блоки главной ──────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.4); box-shadow: var(--shadow); }
.hero-title { display: block; margin: 0; font-family: var(--head-font); font-size: clamp(22px, 3.4vw, 42px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.hero-meta { color: var(--muted); }
.hero-sub { color: var(--muted); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero .badge { align-self: flex-start; }
.hero-wide .hero-link { position: relative; display: block; aspect-ratio: 21 / 8; min-height: 280px; background: #000; color: #fff; }
.hero-wide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.hero-wide .hero-link:hover img { transform: scale(1.03); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35) 52%, transparent), linear-gradient(to right, rgba(0, 0, 0, .55), transparent 65%); }
.hero-body { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 780px; padding: clamp(18px, 4vw, 44px); color: #fff; }
.hero-body .hero-meta { color: rgba(255, 255, 255, .8); }
.hero-wide .hero-link:hover .hero-title { color: #fff; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); }
.hero-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .play { opacity: 1; }
.hero-media:hover .play svg { transform: scale(1.06); }
.hero-text { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(18px, 3vw, 40px); min-width: 0; }
.hero-text .hero-title { font-size: clamp(22px, 2.6vw, 34px); }
.hero-models { color: var(--muted); font-size: 14px; }
.hero-models a { color: var(--text); font-weight: 600; }
.hero-minimal { padding: clamp(32px, 6vw, 72px) clamp(18px, 4vw, 48px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; border: 1px solid var(--line); background: radial-gradient(70% 120% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--surface); }
.hero-minimal .hero-title { font-size: clamp(28px, 5vw, 56px); max-width: 18ch; }
.hero-minimal .hero-cta { justify-content: center; margin-top: 6px; }
.hero-mosaic { display: grid; gap: 6px; grid-auto-flow: column dense; grid-template-rows: repeat(2, clamp(120px, 15vw, 230px)); grid-auto-columns: minmax(0, 1fr); background: transparent; }
.mos-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); color: #fff; }
.mos-item.mos-main { grid-row: span 2; grid-column: span 2; }
.mos-item:last-child:nth-child(even):not(.mos-main) { grid-row: span 2; }
.mos-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.mos-item:hover img { transform: scale(1.05); }
.mos-item:hover { color: #fff; }
.mos-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .85), transparent 60%); }
.mos-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; }
.mos-cap b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mos-main .mos-cap { padding: clamp(14px, 2.4vw, 26px); gap: 8px; }
.mos-main .mos-cap b { font-family: var(--head-font); font-size: clamp(18px, 2.2vw, 30px); line-height: 1.12; }
.mos-cap small { color: rgba(255, 255, 255, .78); font-size: 12.5px; }

.textblock { max-width: 860px; }
.textblock h2 { margin-bottom: 10px; font-size: clamp(20px, 2.2vw, 26px); }
.textblock p { color: var(--muted); font-size: 16px; line-height: 1.7; white-space: pre-line; }
.aboutblock { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); background: linear-gradient(135deg, var(--surface), var(--bg)); }
.about-ava { flex: none; }
.about-ava .logo-mark { width: clamp(72px, 10vw, 112px); height: clamp(72px, 10vw, 112px); font-size: clamp(30px, 4vw, 46px); }
.about-ava .logo-mark svg { width: 46%; height: 46%; }
.about-ava .logo-img img { height: 72px !important; }
.about-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.about-bio { max-width: 680px; font-size: 16px; line-height: 1.65; white-space: pre-line; }
.join-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(20px, 3vw, 32px); border-radius: calc(var(--radius) * 1.3); background: linear-gradient(115deg, var(--accent), color-mix(in srgb, var(--accent-2) 75%, var(--accent))); color: var(--accent-ink); }
.join-band h2 { margin-bottom: 4px; font-size: clamp(20px, 2.4vw, 28px); }
.join-band p { opacity: .86; }
body .join-band .btn-primary, body .join-band .btn-primary:hover { background: var(--bg); border-color: transparent; color: var(--text); box-shadow: none; filter: none; }

/* ── 9. списки видео, колонка, шапки таксонов ──────────────────────────── */
.lbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--gap) * 1.6); align-items: start; }
.lbody-left { grid-template-columns: 240px minmax(0, 1fr); }
.lbody-right { grid-template-columns: minmax(0, 1fr) 270px; }
.lbody-right .lside { order: 2; }
.lmain { display: flex; flex-direction: column; gap: calc(var(--gap) * 1.2); min-width: 0; }
.lside { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.lside-cats { padding: 14px 10px; }
.lside-cats .side-title { padding: 0 10px; }
.lside-cats .more { display: inline-block; margin: 8px 10px 0; font-size: 13px; }
body.hdr-sticky:not(.hdr-sidebar) .lside { position: sticky; top: 90px; }
body.hdr-sidebar .lside { position: sticky; top: 16px; }

.thead { position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.3); }
.thead-in { position: relative; display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); min-width: 0; }
.thead-img { flex: none; display: grid; place-items: center; width: clamp(96px, 13vw, 148px); aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); border: 3px solid var(--surface); background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--accent) 26%, var(--surface-2))); color: var(--muted); font-family: var(--head-font); font-size: 44px; font-weight: 800; box-shadow: var(--shadow); }
.thead-model .thead-img { border-radius: 50%; }
.thead-img img { width: 100%; height: 100%; object-fit: cover; }
.thead-txt { min-width: 0; }
.thead h1 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; overflow-wrap: anywhere; }
.thead-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.thead-stats b { color: var(--text); }
.thead-bio { max-width: 760px; margin-top: 10px; line-height: 1.65; white-space: pre-line; }
.thead-profile { padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); background: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--surface); }
.thead-banner { border: 1px solid var(--line); background: var(--surface); }
.thead-cover { position: relative; height: clamp(140px, 22vw, 280px); background: linear-gradient(115deg, var(--accent), var(--accent-2)); }
.thead-cover img { width: 100%; height: 100%; object-fit: cover; }
.thead-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, color-mix(in srgb, var(--surface) 92%, transparent)); }
.thead-banner .thead-in { align-items: flex-start; margin-top: calc(clamp(96px, 13vw, 148px) * -.45); padding: 0 clamp(16px, 3vw, 32px) clamp(16px, 3vw, 28px); }
.thead-banner .thead-txt { padding-top: calc(clamp(96px, 13vw, 148px) * .45 + 10px); }
.thead-banner .thead-img { border-color: var(--surface); border-width: 4px; }
.thead-compact .thead-in { gap: 14px; }
.thead-compact .thead-img { width: 64px; font-size: 24px; border-width: 2px; }
.thead-compact h1 { font-size: clamp(20px, 2.2vw, 26px); }
.thead-compact .thead-stats { margin-top: 2px; font-size: 13px; }
.thead-compact .thead-bio { font-size: 14px; color: var(--muted); }
.thead-card { max-width: 820px; width: 100%; margin: 0 auto; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.thead-card .thead-in { flex-direction: column; }
.thead-card .thead-stats { justify-content: center; }
.thead-card .thead-bio { margin-inline: auto; }

/* ── 10. страница видео ────────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: calc(var(--gap) * -1.3); color: var(--muted); font-size: 13px; min-width: 0; }
.crumb-here { color: var(--text); max-width: 60ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player { position: relative; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 82vh; background: #000; }
.player-short { max-width: 420px; width: 100%; margin: 0 auto; }
.player-short video { aspect-ratio: 9 / 16; }
.player-error { margin: 0; padding: 12px 16px; color: #ff6b6b; }
.player.locked { display: grid; place-items: center; min-height: 320px; aspect-ratio: 16 / 9; }
.player.locked img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.5); transform: scale(1.1); }
.lock-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 440px; padding: 24px; text-align: center; color: #fff; }
.lock-body p { color: #ddd; }
.lock-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: 28px; color: var(--accent-2); }
.lock-msg { margin-top: 4px; color: #ffd479; font-size: 14px; }
.theater-band { margin-inline: calc(50% - 50vw); margin-block: calc(var(--gap) * -.6) 0; background: #000; }
.theater-band .player { max-width: min(1680px, 100%); margin: 0 auto; border-radius: 0; box-shadow: none; }
.theater-band .player-short { max-width: 420px; }
body.hdr-sidebar .theater-band { margin-inline: calc(var(--pad) * -1); }
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(var(--gap) * 1.6); align-items: start; }
.vgrid.has-aside { grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 410px); }
.vl-wide.has-aside, .vl-theater.has-aside { grid-template-columns: minmax(0, 1fr) 320px; }
.vmain { display: flex; flex-direction: column; gap: calc(var(--gap) * 1.1); min-width: 0; }
.vhead h1 { margin-bottom: 8px; font-size: clamp(20px, 2.3vw, 28px); line-height: 1.25; overflow-wrap: anywhere; }
.vstats { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; }
.vstats > span { display: inline-flex; align-items: center; gap: 6px; }
.vstats a { color: var(--text); font-weight: 600; }
.vactions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-block: 1px solid var(--line); }
.mchips { display: flex; flex-wrap: wrap; gap: 10px; }
.mchip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 16px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 650; font-size: 14px; }
.mchip:hover { border-color: var(--accent); }
.mchip-img { display: grid; place-items: center; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.mchip-img img { width: 100%; height: 100%; object-fit: cover; }
.desc { color: var(--muted); line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.vside { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.vside-title { font-size: 17px; }
.vside .rel:not(.view-list) { --cmin: 160px; gap: var(--gap) calc(var(--gap) * .75); }
.vside .view-list .vtitle { font-size: 13.5px; }
.vside .view-list { gap: 12px; }
.related .sec-head { margin-bottom: var(--gap); }

/* «Сохранить», комментарии */
.savewrap { position: relative; display: inline-flex; }
.savemenu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; display: flex; flex-direction: column; gap: 2px; min-width: 230px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }
.saveitem { padding: 9px 10px; border: 0; border-radius: var(--radius-sm); background: none; text-align: left; cursor: pointer; }
.saveitem:hover { background: var(--surface-2); }
.saveitem.on { color: var(--accent); }
.savenew { display: flex; gap: 6px; margin-top: 4px; padding: 8px 2px 2px; border-top: 1px solid var(--line); }
.savenew input { height: 34px; }
.savenew .btn { height: 34px; padding: 0 12px; }
.comments h2 { margin-bottom: 12px; font-size: 20px; }
.cform { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.cform-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.clist { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.citem { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.citem:last-child { border-bottom: 0; }
.cpending { opacity: .75; }
.chead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.cbadge { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.cdel { margin-left: auto; padding: 4px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.cdel:hover { color: var(--text); text-decoration: underline; }
.ctext { margin-top: 6px; line-height: 1.55; overflow-wrap: anywhere; }

/* ── 11. страницы моделей и категорий, пагинация ───────────────────────── */
.taxa-tools { display: flex; flex-direction: column; gap: 12px; margin-top: calc(var(--gap) * -1); }
.filter { display: flex; gap: 8px; max-width: 480px; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; }
.letters a { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; font-weight: 650; }
.letters a:hover { border-color: var(--accent); }
.letters a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: calc(var(--gap) * .5); }
.pager-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pg { display: inline-grid; place-items: center; min-width: var(--btn-h); height: var(--btn-h); padding: 0 10px; border: 1px solid var(--line); border-radius: var(--btn-r); background: var(--surface); font-weight: 650; font-variant-numeric: tabular-nums; }
.pg:hover { border-color: var(--accent); color: var(--accent); }
.pg-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pg-gap { border: 0; background: none; color: var(--muted); min-width: 20px; padding: 0; }
.pager-info { color: var(--muted); font-size: 13px; }
.pager-simple { flex-direction: row; justify-content: space-between; flex-wrap: wrap; padding-top: var(--gap); border-top: 1px solid var(--line); }

/* ── 12. вход, кабинет, правовые, 404, о себе, подписка ────────────────── */
.authbox { width: 100%; max-width: 440px; margin: 24px auto; padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.2); box-shadow: var(--shadow); }
.authbox form { display: flex; flex-direction: column; gap: 10px; }
.authbox input { height: calc(var(--btn-h) + 4px); background: var(--bg); }
.authbox .btn-primary { height: calc(var(--btn-h) + 4px); }
.authbox h2 { margin-top: 10px; font-size: 18px; }
.form-error { color: #ff6b6b; font-size: 14px; }
.form-note { color: var(--accent); font-size: 14px; }
.form-note.err { color: #ff6b6b; }
.or { display: flex; align-items: center; gap: 10px; margin: 2px 0; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.forgot summary { color: var(--muted); font-size: 14px; cursor: pointer; }
.forgot p { margin-top: 8px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.playlists { width: 100%; max-width: 920px; margin: 0 auto; }
.playlists h2 { margin-bottom: 12px; }
.pl-new { display: flex; gap: 8px; margin: 10px 0 16px; }
.pl { margin-bottom: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pl summary { font-weight: 650; cursor: pointer; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.pl-item { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.pl-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); background: var(--line); }
.pl-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-progress { height: 3px; overflow: hidden; border-radius: 2px; background: var(--line); }
.pl-progress i { display: block; height: 100%; background: var(--accent); }

.legal { width: 100%; max-width: 800px; margin: 8px auto 24px; line-height: 1.65; }
.legal h1 { margin-bottom: 18px; }
.legal h2 { margin: 26px 0 8px; font-size: 18px; }
.legal p { margin-bottom: 10px; color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.legal a { color: var(--accent); }
.legal-links { margin-top: 28px; color: var(--muted); font-size: 14px; }

.notfound { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: clamp(32px, 8vw, 80px) 0; text-align: center; }
.nf-code { margin: 0; font-family: var(--head-font); font-size: clamp(80px, 16vw, 168px); font-weight: 900; line-height: .9; letter-spacing: -.04em; color: var(--accent); }
.notfound .hero-cta { justify-content: center; margin-top: 8px; }

.about { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); padding: clamp(22px, 4vw, 44px); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); background: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--surface); }
.about-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.about-body h1 { font-size: clamp(26px, 3.6vw, 40px); }
.about-name { color: var(--muted); font-weight: 600; }
.about .tagline { color: var(--accent); font-size: 18px; }
.about .hero-cta { margin-top: 10px; }
.join { width: 100%; max-width: 540px; margin: 12px auto; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 4vw, 30px); text-align: left; border: 1px solid var(--accent); border-radius: calc(var(--radius) * 1.4); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), var(--shadow); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price span { font-family: var(--head-font); font-size: 46px; font-weight: 850; color: var(--accent); }
.plan-price span::before { content: "$"; margin-right: 2px; font-size: 24px; }
.plan-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan-list li { position: relative; padding-left: 26px; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }

/* ── 13. подвал ────────────────────────────────────────────────────────── */
.foot { margin-top: auto; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, var(--bg)); }
.foot-in { max-width: var(--width); margin: 0 auto; padding: 36px var(--pad) 28px; display: flex; flex-direction: column; gap: 24px; }
.ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; }
.ad { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 14px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ad:hover { border-color: var(--accent); }
.ad span { color: var(--muted); font-size: 13px; }
.foot-cols { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.foot-brand { display: flex; flex-direction: column; gap: 10px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.foot-col h2 { margin-bottom: 4px; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-col a { font-size: 14px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.foot-col a:hover { color: var(--accent); }
.foot-note { color: var(--muted); font-size: 12.5px; }
body.ftr-columns .foot-note { padding-top: 18px; border-top: 1px solid var(--line); }
body.ftr-simple .foot-in { align-items: center; text-align: center; gap: 18px; }
.foot-logo .logo-txt b { font-size: 18px; }
.foot-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 900px; }
.foot-cats .chip { min-height: 30px; font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--muted); font-size: 14px; }
body.ftr-minimal .foot-in { padding-block: 18px; gap: 10px; }
.foot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--muted); font-size: 13px; }
.foot-line > span { color: var(--text); font-weight: 600; }
.foot-line .foot-cat { opacity: .8; }

/* ── 14. реклама и 18+ ─────────────────────────────────────────────────── */
.adslot { display: flex; justify-content: center; align-items: center; max-width: 100%; overflow: hidden; }
.adslot iframe, .adslot img { max-width: 100%; }
.adslot-top { width: 100%; max-width: var(--width); margin: 14px auto 0; padding: 0 var(--pad); }
.adslot-bottom { width: 100%; max-width: var(--width); margin: 0 auto 28px; padding: 0 var(--pad); }
.adslot-grid { min-height: 120px; border-radius: var(--radius); }
.adslot-wide, .adslot-home { width: 100%; }
.adslot-above { margin-bottom: calc(var(--gap) * -.8); }
.adslot-below { margin: 4px 0; }
.adslot-side { width: 100%; }
.agegate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.agegate-box { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 460px; padding: clamp(22px, 5vw, 34px); text-align: center; background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: calc(var(--radius) * 1.4); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.agegate-box h1 { font-size: 26px; }
.agegate-box p { color: var(--muted); }
.agegate-badge { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 4px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-family: var(--head-font); font-size: 22px; font-weight: 900; }
.agegate-box .btn { width: 100%; }

/* светлое оформление: мягче тени, без «стекла» на светлом фоне */
body.mode-light .suggest, body.mode-light .savemenu, body.mode-light .sbox-pop > .search { box-shadow: 0 14px 36px rgba(20, 20, 40, .14); }
body.mode-light .agegate-box { box-shadow: 0 30px 80px rgba(20, 20, 40, .2); }
body.mode-light .foot { background: var(--surface); }
body.shadow-none .vcard, body.shadow-none .thumb { box-shadow: none; }

/* ── 15. адаптивность ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .vgrid.has-aside, .vl-wide.has-aside, .vl-theater.has-aside { grid-template-columns: minmax(0, 1fr); }
  .vside .rel:not(.view-list) { --cmin: var(--card-min); }
  .vside .view-list { --cmin: calc(var(--card-min) * 2.1); }
}
@media (max-width: 960px) {
  :root { --pad: 18px; }
  .lbody-left, .lbody-right { grid-template-columns: minmax(0, 1fr); }
  .lbody .lside { order: 2; position: static; }
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  body.hdr-sidebar .hdr { position: relative; inset: auto; width: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  body.hdr-sidebar.hdr-sticky .hdr { position: sticky; top: 0; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  body.hdr-sidebar .hdr-in { height: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search act" "menu menu menu"; gap: 8px 14px; padding: 10px var(--pad) 8px; }
  body.hdr-sidebar .menu { flex-direction: row; align-items: center; overflow-x: auto; }
  body.hdr-sidebar .menu a { height: 36px; }
  body.hdr-sidebar.nav-tabs .menu a { border-left: 0; border-bottom: 2px solid transparent; border-radius: 0; }
  body.hdr-sidebar.nav-tabs .menu a.active { border-bottom-color: var(--accent); }
  body.hdr-sidebar .side-cats { display: none; }
  body.hdr-sidebar .hdr-act { margin-top: 0; flex-wrap: nowrap; }
  body.hdr-sidebar .sbox-pop { justify-self: end; position: static; }
  body.hdr-sidebar .sbox-pop > summary { width: var(--btn-h); }
  body.hdr-sidebar .sbox-pop > .search { position: absolute; right: var(--pad); top: calc(100% - 2px); margin-top: 0; width: min(460px, calc(100% - 2 * var(--pad))); padding: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 44px rgba(0, 0, 0, .38); }
  body.hdr-sidebar .shell { margin-left: 0; }
  body.hdr-sidebar .theater-band { margin-inline: calc(50% - 50vw); }
}
@media (max-width: 760px) {
  :root { --pad: 16px; }
  body { font-size: 14.5px; }
  body:not(.hdr-sidebar) .hdr-in, body.hdr-sidebar .hdr-in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search act" "menu menu menu"; gap: 8px 10px; padding: 10px var(--pad) 6px; }
  body.srch-full .hdr-in, body.srch-full.hdr-sidebar .hdr-in { grid-template-areas: "logo . act" "search search search" "menu menu menu"; }
  .hdr-in > .sbox:not(.sbox-pop) { max-width: none; justify-self: stretch; }
  body.hdr-centered .hdr-in > .logo { flex-direction: row; text-align: left; }
  body.hdr-centered .logo-txt { align-items: flex-start; }
  body.hdr-centered .menu { justify-content: flex-start; border-top: 0; padding-top: 0; margin-top: 0; }
  body.hdr-centered .hdr-in > .sbox-pop > .search { left: auto; right: var(--pad); }
  body.hdr-compact .menu { justify-content: flex-start; }
  body.nav-tabs .hdr-in { padding-bottom: 0; }
  .logo-txt b, body.hdr-bold .logo-txt b, body.hdr-centered .logo-txt b { font-size: 18px; }
  .logo .tagline { display: none; }
  .hlink span { display: none; }
  .hlink { padding: 0 8px; }
  .wrap { padding-top: var(--gap); gap: calc(var(--gap) * 1.8); }
  .hero-wide .hero-link { aspect-ratio: 4 / 3; min-height: 0; }
  .hero-mosaic { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 120px; }
  .hero-mosaic .mos-main { grid-column: span 2; grid-row: span 2; }
  .mos-item:last-child:nth-child(even):not(.mos-main) { grid-row: auto; grid-column: span 2; }
  .aboutblock, .about { flex-direction: column; align-items: flex-start; }
  .thead-in { flex-direction: column; align-items: flex-start; }
  .thead-card .thead-in { align-items: center; }
  .thead-banner .thead-txt { padding-top: 0; }
  .thead-compact .thead-in { flex-direction: row; align-items: center; }
  body.vc-list .thumb, body .view-list .thumb { width: 44%; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .pager-simple .pager-info { order: -1; width: 100%; text-align: center; }
  .pager-simple .btn { flex: 1; }
  .crumb-here { max-width: 100%; }
}
@media (max-width: 420px) {
  .vactions .btn { padding: 0 12px; }
  .hdr-act .hdr-login { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ══ 16. вторая версия конструктора ════════════════════════════════════════ */

/* ── 16.1 светлая/тёмная по выбору посетителя (кнопка в шапке) ────────────── */
html.tt-light body.mode-dark {
  color-scheme: light;
  --bg: color-mix(in srgb, var(--accent) 3%, #f4f4f7); --surface: #ffffff; --surface-2: #f0f0f4; --line: #e0e0e7;
  --text: #16161d; --muted: #666674;
}
html.tt-dark body.mode-light {
  color-scheme: dark;
  --bg: color-mix(in srgb, var(--accent) 3%, #0c0c11); --surface: #16161d; --surface-2: #1f1f28; --line: #2e2e39;
  --text: #ececf1; --muted: #9d9daa;
}
.theme-tg { border: 0; background: none; cursor: pointer; }
.theme-tg[aria-pressed="true"] .ico { color: var(--accent); }

/* ── 16.2 шапка: ящик (drawer) ────────────────────────────────────────────── */
.hdr-in > .drawer { grid-area: burger; }
body.hdr-drawer .hdr-in { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "burger logo search act"; padding-bottom: 12px; }
body.hdr-drawer .hdr-in > .menu { display: none; }
body.hdr-drawer.hdr-sticky .hdr { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--surface) 94%, var(--bg)); }
.drawer > summary { list-style: none; display: grid; place-items: center; width: var(--btn-h); height: var(--btn-h); border: 1px solid var(--line); border-radius: var(--btn-r); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 20px; }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary:hover, .drawer[open] > summary { border-color: var(--accent); color: var(--accent); }
.drawer[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); cursor: default; }
.drawer-panel { position: fixed; left: 0; top: 0; bottom: 0; z-index: 91; display: flex; flex-direction: column; gap: 12px; width: min(330px, 86vw); padding: 20px 14px 28px; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--text); border-right: 1px solid var(--line); box-shadow: 0 0 60px rgba(0, 0, 0, .45); animation: drawer-in .22s cubic-bezier(.2, .7, .2, 1); }
@keyframes drawer-in { from { transform: translateX(-100%); } }
.drawer-title { padding: 0 10px 6px; font-family: var(--head-font); font-size: 20px; font-weight: 800; border-bottom: 1px solid var(--line); }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 10px; border-radius: var(--radius-sm); font-weight: 600; }
.drawer-nav a .ico { font-size: 18px; color: var(--muted); }
.drawer-nav a:hover { background: var(--surface-2); color: var(--text); }
.drawer-nav a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.drawer-nav a.active .ico { color: var(--accent); }
.drawer-panel .side-title { padding: 8px 10px 0; margin: 0; border-top: 1px solid var(--line); }
.drawer-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
.drawer-cats a { display: flex; justify-content: space-between; gap: 6px; padding: 6px 10px; border-radius: var(--radius-sm); font-size: 13.5px; min-width: 0; }
.drawer-cats a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-cats a small { color: var(--muted); font-size: 11.5px; }
.drawer-cats a:hover { background: var(--surface-2); }
.drawer-panel .more { padding: 0 10px; font-size: 13px; }

/* ── 16.3 шапка: колонка значков слева (rail) ─────────────────────────────── */
.rail { display: none; }
@media (min-width: 961px) {
  body.hdr-rail { --rail-w: 78px; }
  body.hdr-rail .rail { position: fixed; left: 0; top: 0; bottom: 0; z-index: 41; display: flex; flex-direction: column; gap: 2px; width: var(--rail-w); padding: 14px 6px 16px; overflow-y: auto; scrollbar-width: none; background: color-mix(in srgb, var(--surface) 72%, var(--bg)); border-right: 1px solid var(--line); }
  body.hdr-rail .rail a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 2px; border-radius: var(--radius-sm); color: var(--muted); font-size: 10.5px; font-weight: 650; text-align: center; }
  body.hdr-rail .rail a .ico { font-size: 21px; }
  body.hdr-rail .rail a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.hdr-rail .rail a:hover { background: var(--surface-2); color: var(--text); }
  body.hdr-rail .rail a.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
  body.hdr-rail .hdr { padding-left: var(--rail-w); }
  body.hdr-rail .hdr-in { padding-bottom: 12px; }
  body.hdr-rail .hdr-in > .menu:not(.menu-has-sub) { display: none; } /* разделы — в колонке слева; меню с подменю остаётся строкой */
  body.hdr-rail .shell { margin-left: var(--rail-w); }
  body.hdr-rail .theater-band { margin-inline: calc(var(--pad) * -1); }
}

/* ── 16.4 шапка в три строки (stacked) и «портал» ─────────────────────────── */
body.hdr-stacked .hdr-in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "util util util" "logo search search" "menu menu menu"; padding-top: 0; gap: 10px 22px; }
body.hdr-stacked .hdr-in > .hdr-act { grid-area: util; justify-self: stretch; justify-content: flex-end; gap: 4px; padding: 4px 0; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 0 var(--line); clip-path: inset(0 -100vmax -1px); }
body.hdr-stacked .hdr-act .hlink { height: 30px; font-size: 13px; }
body.hdr-stacked .hdr-act .hdr-login { height: 30px; padding: 0 14px; font-size: 13px; }
body.hdr-stacked .hdr-in > .logo { padding: 6px 0; }
body.hdr-stacked .logo-txt b { font-size: 26px; }
body.hdr-stacked .hdr-in > .sbox:not(.sbox-pop) { max-width: 720px; justify-self: end; }
body.hdr-stacked .hdr-in > .sbox-pop { justify-self: end; }
body.hdr-stacked .hdr-in > .menu { border-top: 1px solid var(--line); padding-top: 6px; }

body.hdr-portal .hdr-in { padding-bottom: 0; row-gap: 12px; }
body.hdr-portal .hdr-in > .menu { gap: 0; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-top: 1px solid var(--line); box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--accent) 9%, var(--surface)); clip-path: inset(0 -100vmax); }
body.hdr-portal .menu > a, body.hdr-portal .menu > .mi > a { height: 44px; padding: 0 14px; border-radius: 0; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
body.hdr-portal .menu > a:hover, body.hdr-portal .menu > .mi > a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
body.hdr-portal .menu > a.active, body.hdr-portal .menu > .mi > a.active { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
body.hdr-portal.nav-pills .menu > a.active, body.hdr-portal.nav-pills .menu > .mi > a.active { background: transparent; color: var(--accent); }
.menu .menu-cat { color: color-mix(in srgb, var(--text) 70%, var(--muted)); }
body.hdr-portal .menu .menu-cat { text-transform: none; letter-spacing: 0; font-size: 13.5px; }

/* ── 16.5 подменю у пунктов меню ──────────────────────────────────────────── */
.menu.menu-has-sub { overflow: visible; flex-wrap: wrap; }
.mi { position: relative; display: inline-flex; align-items: center; }
.mi-caret { display: inline-grid; place-items: center; width: 24px; height: 30px; margin-left: -10px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.mi-caret:hover, .mi.open > .mi-caret { color: var(--accent); }
.mi.open > .mi-caret .ico { transform: rotate(180deg); }
.sub { position: absolute; left: 0; top: 100%; z-index: 60; display: none; flex-direction: column; gap: 1px; min-width: 220px; padding: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, .38); }
.mi:hover > .sub, .mi:focus-within > .sub, .mi.open > .sub { display: flex; }
.menu .sub a { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: auto; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; box-shadow: none; background: none; }
.menu .sub a::after { display: none; }
.menu .sub a .ico { color: var(--accent-2); margin-right: 8px; }
.menu .sub a:hover { background: var(--surface-2); color: var(--accent); }
.menu .sub a small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.menu .sub .sub-all { justify-content: flex-start; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; color: var(--accent); font-weight: 650; }
.menu .sub-sorts a { justify-content: flex-start; }
.mi > .sub-cats { min-width: 380px; }
.mi:hover > .sub-cats, .mi:focus-within > .sub-cats, .mi.open > .sub-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sub-cats .sub-all { grid-column: 1 / -1; }
.mi.mi-mega { position: static; }
.sub-mega { left: var(--pad); right: var(--pad); max-height: min(70vh, 560px); overflow-y: auto; padding: 14px; }
.mi:hover > .sub-mega, .mi:focus-within > .sub-mega, .mi.open > .sub-mega { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 10px; }
.sub-mega .sub-all { grid-column: 1 / -1; }
body.hdr-bold .sub, body.hdr-bold .menu .sub a { color: var(--text); }
body.hdr-sidebar .menu .mi { display: flex; flex-wrap: wrap; position: static; }
body.hdr-sidebar .menu .mi > a { flex: 1; }
body.hdr-sidebar .menu .mi-caret { margin-left: 0; height: 40px; }
body.hdr-sidebar .mi:hover > .sub, body.hdr-sidebar .mi:focus-within > .sub { display: none; }
body.hdr-sidebar .menu .mi.open > .sub { position: static; display: flex; flex-direction: column; flex-basis: 100%; min-width: 0; margin: 2px 0 6px; padding: 4px; box-shadow: none; background: var(--surface-2); }

/* ── 16.6 полоса категорий: плашки, лента, текст ──────────────────────────── */
body.cbar-scroll .catsbar-in { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); padding-right: 40px; }
body.cbar-chips .catsbar-in { flex-wrap: wrap; gap: 6px; max-height: 82px; overflow: hidden; padding-block: 9px; }
body.cbar-chips .catsbar a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text); font-weight: 550; }
body.cbar-chips .catsbar a:hover, body.cbar-chips .catsbar a.active { border-color: var(--accent); color: var(--accent); }
body.cbar-chips .catsbar .catsbar-all { border-color: var(--accent); color: var(--accent); }
body.cbar-text .catsbar-in { flex-wrap: wrap; gap: 0; padding-block: 6px; overflow: visible; }
body.cbar-text .catsbar a { padding: 3px 0; font-weight: 500; }
body.cbar-text .catsbar a + a::before { content: "/"; margin: 0 9px; color: var(--line); }
body.hdr-bold.cbar-chips .catsbar a { background: rgba(0, 0, 0, .14); border-color: transparent; color: var(--accent-ink); }

/* ── 16.7 нижняя панель вкладок на телефоне (видна только на узком экране) ─── */
.mtabbar { display: none; }

/* ── 16.8 заголовки блоков ────────────────────────────────────────────────── */
.sec-head { flex-wrap: wrap; }
.sec-kick { flex-basis: 100%; margin: 0 0 -8px; font-size: 11.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
body.sec-kicker .sec-head h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; }
body.sec-kicker .sec-head h2::before { display: none; }
body.sec-bar .sec-head { align-items: center; padding: 8px 14px; border-radius: var(--radius-sm); background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2))); color: var(--accent-ink); }
body.sec-bar .sec-head h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }
body.sec-bar .sec-head h2::before { display: none; }
body.sec-bar .sec-head .more, body.sec-bar .sec-head .sec-kick { color: var(--accent-ink); opacity: .86; }
body.sec-bar .sec-kick { margin: 0; }
body.sec-line .sec-head { align-items: center; }
body.sec-line .sec-head h2 { flex: 1; min-width: 0; }
body.sec-line .sec-head h2::before { display: none; }
body.sec-line .sec-head h2::after { content: ""; flex: 1; height: 1px; min-width: 24px; background: linear-gradient(to right, var(--line), color-mix(in srgb, var(--line) 30%, transparent)); }
body.sec-tab .sec-head { align-items: flex-end; border-bottom: 2px solid var(--accent); }
body.sec-tab .sec-head h2 { margin-bottom: 0; padding: 8px 16px 7px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--accent); color: var(--accent-ink); font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
body.sec-tab .sec-head h2::before { display: none; }
body.sec-tab .sec-head .more { padding-bottom: 6px; }

/* ── 16.9 карточка видео: данные на превью, подпись, оценка, строка данных ──── */
.tinfo { position: absolute; left: 8px; bottom: 8px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 70px); }
.tinfo > span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .74); color: #fff; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
body.rate-color .tinfo .vr-hi { color: #4ade80; }
body.rate-color .tinfo .vr-lo { color: #f87171; }
body.vc-compact .thumb:has(.tinfo) .thumb-stats { display: none; }
body.vc-overlay .tinfo, body.vc-tile .tinfo { top: 8px; bottom: auto; }
body.vc-overlay .thumb:has(.tinfo) .badges, body.vc-tile .thumb:has(.tinfo) .badges { top: 36px; }

/* затемнение и кнопка ▶ */
body.vc-play .thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .3); transition: background-color .2s; pointer-events: none; }
body.vc-play .vcard:hover .thumb::after { background: rgba(0, 0, 0, .12); }
body.vc-play .play { opacity: 1; }
body.vc-play .play svg { width: 54px; height: 54px; padding: 14px 12px 14px 16px; fill: #fff; background: rgba(0, 0, 0, .42); border: 2px solid rgba(255, 255, 255, .9); transform: scale(.92); transition: transform .2s, background-color .2s, border-color .2s; }
body.vc-play .vcard:hover .play svg { background: var(--accent); border-color: var(--accent); fill: var(--accent-ink); transform: scale(1); }
body.vc-play .thumb[data-screens]:hover .play { opacity: 0; }
body.vc-play .vtitle { font-weight: 650; }

/* подложка-карточка */
body.vc-surface:not(.vc-overlay):not(.vc-tile):not(.vc-polaroid):not(.vc-neon) .vcard { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
body.vc-surface:not(.vc-overlay):not(.vc-tile):not(.vc-polaroid):not(.vc-neon) .thumb { border-radius: 0; box-shadow: none; }
body.vc-surface:not(.vc-overlay):not(.vc-tile):not(.vc-polaroid):not(.vc-neon) .vbody { padding: 9px 11px 11px; }
body.vc-surface .view-list .vcard, body.vc-surface.vc-list .vcard { padding: 8px; }
body.vc-surface .view-list .thumb, body.vc-surface.vc-list .thumb { border-radius: var(--radius-sm); }
body.vc-surface .view-list .vbody, body.vc-surface.vc-list .vbody { padding: 2px 4px 0 0; }

/* подпись: канал, буквица канала, модели кнопками */
.vby { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vby a { color: color-mix(in srgb, var(--text) 82%, var(--muted)); font-weight: 600; }
.vby a:hover { color: var(--accent); }
.vava { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-family: var(--head-font); font-size: 15px; font-weight: 800; }
.vava:hover { color: var(--accent-ink); filter: brightness(1.08); }
body.by-channel_avatar .vbody { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-content: start; }
body.by-channel_avatar .vbody > .vava { grid-column: 1; grid-row: 1 / span 3; }
body.by-channel_avatar .vbody > :not(.vava) { grid-column: 2; }
body.vc-overlay.by-channel_avatar .vava, body.vc-tile.by-channel_avatar .vava { width: 28px; height: 28px; font-size: 13px; }
body.vc-overlay.by-channel_avatar .vbody, body.vc-tile.by-channel_avatar .vbody { grid-template-columns: 28px minmax(0, 1fr); }
body.vc-overlay .vby, body.vc-tile .vby { color: rgba(255, 255, 255, .8); }
body.vc-overlay .vby a, body.vc-tile .vby a { color: #fff; }
.vmbtns { display: flex; flex-wrap: wrap; gap: 4px; white-space: normal; }
.vmbtns .mbtn { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text); opacity: 1; font-size: 12px; font-weight: 600; }
.vmbtns .mbtn:hover { border-color: var(--accent); color: var(--accent); }
body.vc-overlay .vmbtns .mbtn, body.vc-tile .vmbtns .mbtn { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }

/* оценка: процент, полоска, палец, цвет */
.vr-bar { display: none; }
body.rate-percent .vrate .ico, body.rate-bar .vrate .ico { display: none; }
body.rate-bar .vrate .vr-bar { display: inline-block; width: 44px; height: 4px; margin-left: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.vr-bar > span, .rb-bar > span { display: block; height: 100%; background: var(--accent); }
body.rate-thumb .vrate { color: var(--text); }
body.rate-thumb .vrate .ico { color: var(--accent); }
body.rate-color .vrate b { padding: 0 5px; border-radius: 4px; color: #fff; font-size: 11.5px; line-height: 1.6; }
body.rate-color .vrate .ico { display: none; }
body.rate-color .vr-hi b { background: #1f9d55; }
body.rate-color .vr-mid b { background: #c48a0a; }
body.rate-color .vr-lo b { background: #d63c3c; }
.w0 { width: 0; } .w1 { width: 10%; } .w2 { width: 20%; } .w3 { width: 30%; } .w4 { width: 40%; } .w5 { width: 50%; }
.w6 { width: 60%; } .w7 { width: 70%; } .w8 { width: 80%; } .w9 { width: 90%; } .w10 { width: 100%; }

/* строка данных: через точку, со значками, в две стороны */
body.meta-dot .vmeta { gap: 2px 0; }
body.meta-dot .vmeta .ico { display: none; }
body.meta-dot .vmeta > span + span::before { content: "·"; margin: 0 6px; color: var(--muted); }
body.meta-dot.rate-thumb .vmeta .vrate .ico { display: inline; }
body.meta-icons .vmeta .lbl, body.meta-split .vmeta .lbl { display: none; }
body.meta-icons .vmeta .ico { color: color-mix(in srgb, var(--accent) 60%, var(--muted)); }
body.meta-split .vmeta { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
body.meta-split .vmeta > span { min-width: 0; }
body.meta-split .vmeta > .vdate { margin-left: auto; }
body.vc-overlay .vmeta > span + span::before, body.vc-tile .vmeta > span + span::before { color: rgba(255, 255, 255, .6); }

/* номера мест в блоках с флажком «по местам» и номер места из данных */
.ranked { counter-reset: rk; }
.ranked > .vcard, .ranked > .mcard, .ranked > .chcard { counter-increment: rk; }
.ranked > .vcard .thumb::before { content: counter(rk); position: absolute; left: 0; top: 0; z-index: 4; display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border-radius: var(--radius) 0 var(--radius-sm) 0; background: var(--accent); color: var(--accent-ink); font: 800 16px/1 var(--head-font); }
.ranked > .vcard .badges { left: 42px; }
.ranked > .mcard::before, .ranked > .chcard::before { content: "#" counter(rk); position: absolute; left: 4px; top: 4px; z-index: 4; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 12px/1.2 var(--head-font); }
.ranked .rank { display: none; }
.rank { position: absolute; left: 4px; top: 4px; z-index: 4; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 12px/1.2 var(--head-font); font-variant-numeric: tabular-nums; }

/* ── 16.10 карусель со стрелками ──────────────────────────────────────────── */
.car { position: relative; min-width: 0; }
.car-btn { position: absolute; top: calc(50% - 34px); z-index: 6; display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--surface) 94%, transparent); color: var(--text); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); cursor: pointer; font-size: 18px; transition: opacity .15s, border-color .15s, color .15s; }
.car-prev { left: -12px; }
.car-next { right: -12px; }
.car-js .car-btn { display: grid; }
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-js.car-static .car-btn { display: none; }
.view-car { scrollbar-width: none; scroll-behavior: smooth; }
.view-car::-webkit-scrollbar { display: none; }
@media (hover: none) { .car-js .car-btn { display: none; } .view-car { scrollbar-width: thin; } }

/* ── 16.11 карточка модели: рамка, постер, плашка, текст; номер, флаг ──────── */
.mname { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.mname-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mname .verified { flex: none; }
.mnum { display: none; flex: none; color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mflag { flex: none; display: inline-block; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1.4; }
.mmeta > span { white-space: nowrap; }
body.mc-portrait .mname, body.mc-banner .mname, body.mc-list .mname { justify-content: flex-start; }

/* карточка-рамка: фото 3:4, имя, число роликов и просмотры */
body.mc-card .mgrid { --mmin: calc(var(--mcard-min) * 1.15); }
body.mc-card .mcard { align-items: stretch; gap: 0; overflow: hidden; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .2s, transform .22s, box-shadow .2s; }
body.mc-card .mcard:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
body.mc-card .mphoto { aspect-ratio: 3 / 4; border: 0; border-radius: 0; box-shadow: none; font-size: clamp(30px, 4vw, 52px); }
body.mc-card .mcard:hover .mphoto { transform: none; }
body.mc-card .mphoto .badge { left: auto; right: 8px; top: 8px; bottom: auto; transform: none; }
body.mc-card .mbody { gap: 6px; padding: 10px 12px 12px; }
body.mc-card .mname { justify-content: flex-start; font-size: 15px; }
body.mc-card .mmeta { justify-content: space-between; gap: 2px 8px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12px; }
body.mc-card .mm-count { color: var(--text); font-weight: 650; }
body.mc-card .rank, body.mc-card .ranked > .mcard::before { left: 8px; top: 8px; border-radius: var(--radius-sm); }

/* портрет, подпись поверх */
body.mc-poster .mcard { display: block; overflow: hidden; border-radius: var(--radius); text-align: left; box-shadow: var(--shadow); }
body.mc-poster .mphoto { aspect-ratio: 3 / 4; border: 0; border-radius: var(--radius); box-shadow: none; }
body.mc-poster .mcard:hover .mphoto { transform: none; }
body.mc-poster .mphoto .badge { left: auto; right: 8px; top: 8px; bottom: auto; transform: none; }
body.mc-poster .mbody { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; gap: 3px; padding: 44px 12px 11px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(transparent, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, .9)); color: #fff; }
body.mc-poster .mname { justify-content: flex-start; font-size: 16px; font-weight: 750; }
body.mc-poster .mcard:hover .mname { color: #fff; }
body.mc-poster .mmeta { justify-content: flex-start; color: rgba(255, 255, 255, .8); }
body.mc-poster .mflag, body.mc-banner .mflag { border-color: rgba(255, 255, 255, .5); color: #fff; }

/* маленький аватар и имя */
body.mc-chip .mgrid { display: flex; flex-wrap: wrap; gap: 8px; }
body.mc-chip .mgrid.view-row { flex-wrap: nowrap; overflow-x: auto; }
body.mc-chip .mcard { flex: none; flex-direction: row; gap: 8px; max-width: 100%; padding: 4px 14px 4px 4px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s; }
body.mc-chip .mcard:hover { border-color: var(--accent); }
body.mc-chip .mphoto { width: 34px; flex: none; border-width: 1px; box-shadow: none; font-size: 14px; }
body.mc-chip .mcard:hover .mphoto { transform: none; }
body.mc-chip .mphoto .badge, body.mc-chip .mmeta { display: none; }
body.mc-chip .mname { font-size: 14px; }
body.mc-chip .mnum { display: inline; }
body.mc-chip .rank, body.mc-text .rank, body.mc-chip .ranked > .mcard::before, body.mc-text .ranked > .mcard::before { position: static; order: -1; flex: none; align-self: center; }

/* текстом: имя и число, колонками */
body.mc-text .mgrid { display: block; columns: 4 200px; column-gap: 28px; }
body.mc-text .mcard { flex-direction: row; align-items: center; gap: 8px; padding: 6px 2px; text-align: left; border-bottom: 1px dashed var(--line); break-inside: avoid; }
body.mc-text .mphoto, body.mc-text .mmeta { display: none; }
body.mc-text .mbody { flex: 1; }
body.mc-text .mname { justify-content: flex-start; font-weight: 550; }
body.mc-text .mname-t { flex: 1; }
body.mc-text .mnum { display: inline; }
body.mc-minimal .mname { font-size: 14.5px; }

/* ── 16.12 карточка категории: затемнение, подпись «Имя (N)», число на значке ── */
.cnum, .cbadge-n { display: none; }
.cbadge-n { position: absolute; right: 8px; top: 8px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .76); color: #fff; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
body.cc-shade .ccard { display: block; }
body.cc-shade .cshade { display: block; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .5); transition: background-color .2s; }
body.cc-shade .ccard:hover .cshade { background: rgba(0, 0, 0, .3); }
body.cc-shade .cini { display: none; }
body.cc-shade .cbody { position: absolute; inset: 0; z-index: 2; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px; color: #fff; text-align: center; }
body.cc-shade .cname { font-size: 18px; font-weight: 800; white-space: normal; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
body.cc-shade .ccard:hover .cname { color: #fff; }
body.cc-shade .ccount { padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-weight: 650; }
body.cc-caption .cbody { justify-content: center; text-align: center; }
body.cc-caption .cname { font-weight: 600; }
body.cc-caption .cnum { display: inline; color: var(--muted); font-weight: 500; }
body.cc-caption .ccount { display: none; }
body.cc-badge .cbadge-n { display: inline-block; }
body.cc-badge .ccount { display: none; }
body.cc-upper .cname { text-transform: uppercase; letter-spacing: .04em; }

/* ── 16.13 карточка канала ────────────────────────────────────────────────── */
.chgrid { --chmin: var(--chcard-min, 190px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--chmin), 100%), 1fr)); gap: calc(var(--gap) * 1.2) var(--gap); }
body .chgrid.view-row { grid-auto-columns: min(var(--chmin), 70%); }
.chcard { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.chcard:hover { color: inherit; }
.chimg { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 10; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 26%, var(--surface-2)), var(--surface-2) 70%); box-shadow: var(--shadow); }
.chini { font-family: var(--head-font); font-size: 34px; font-weight: 800; color: color-mix(in srgb, var(--text) 65%, transparent); }
.chimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.chshade { display: none; }
.chbody { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chname { min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chcard:hover .chname { color: var(--accent); }
.chmeta { display: flex; flex-wrap: wrap; gap: 0 10px; color: var(--muted); font-size: 12.5px; }
.chmeta span { white-space: nowrap; }
body.hov-zoom .chcard:hover .chimg img { transform: scale(1.06); }
body.hov-lift .chcard { transition: transform .22s; }
body.hov-lift .chcard:hover { transform: translateY(-3px); }
body.hov-glow .chcard:hover .chimg { box-shadow: 0 0 0 2px var(--accent), 0 0 22px color-mix(in srgb, var(--accent) 40%, transparent); }
/* буквица-логотип */
body.cc-logo-ch .chimg { aspect-ratio: 1; border: 1px solid var(--line); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%), var(--surface); }
body.cc-logo-ch .chimg img { display: none; }
body.cc-logo-ch .chini { font-size: clamp(42px, 5vw, 66px); color: var(--accent); }
body.cc-logo-ch .chcard:hover .chimg { border-color: var(--accent); }
body.cc-logo-ch .chbody { align-items: center; text-align: center; }
body.cc-logo-ch .chmeta { justify-content: center; }
/* круглый аватар */
body.cc-circle-ch .chcard { align-items: center; text-align: center; }
body.cc-circle-ch .chimg { width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--line); }
body.cc-circle-ch .chcard:hover .chimg { border-color: var(--accent); }
body.cc-circle-ch .chbody { align-items: center; max-width: 100%; }
body.cc-circle-ch .chmeta { justify-content: center; }
/* маленький аватар строкой */
body.cc-chip-ch .chgrid { display: flex; flex-wrap: wrap; gap: 8px; }
body.cc-chip-ch .chgrid.view-row { flex-wrap: nowrap; overflow-x: auto; }
body.cc-chip-ch .chcard { flex: none; flex-direction: row; align-items: center; gap: 9px; max-width: 100%; padding: 4px 14px 4px 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
body.cc-chip-ch .chcard:hover { border-color: var(--accent); transform: none; }
body.cc-chip-ch .chimg { width: 34px; flex: none; aspect-ratio: 1; border-radius: 50%; box-shadow: none; }
body.cc-chip-ch .chini { font-size: 14px; }
body.cc-chip-ch .chbody { flex-direction: row; align-items: baseline; gap: 8px; }
body.cc-chip-ch .chmeta { flex-wrap: nowrap; font-size: 12px; }
body.cc-chip-ch .chmeta span + span { display: none; }
body.cc-chip-ch .rank, body.cc-chip-ch .ranked > .chcard::before { position: static; order: -1; }
/* широкая, подпись поверх */
body.cc-banner-ch .chgrid { --chmin: calc(var(--chcard-min, 190px) * 1.6); }
body.cc-banner-ch .chcard { display: block; overflow: hidden; border-radius: var(--radius); }
body.cc-banner-ch .chimg { aspect-ratio: 21 / 9; }
body.cc-banner-ch .chshade { display: block; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .1) 65%, transparent); }
body.cc-banner-ch .chini { transform: translateY(-12px); }
body.cc-banner-ch .chbody { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px; color: #fff; }
body.cc-banner-ch .chname { font-size: 17px; font-weight: 750; }
body.cc-banner-ch .chcard:hover .chname { color: #fff; }
body.cc-banner-ch .chmeta { color: rgba(255, 255, 255, .8); }

/* ── 16.14 блоки главной: вкладки, категории рядами, алфавит ──────────────── */
.tab-r { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tab-bar { display: flex; gap: 4px; margin-bottom: var(--gap); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-bar label { flex: none; margin-bottom: -1px; padding: 10px 16px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 650; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.tab-bar label:hover { color: var(--text); }
.tab-panel { display: none; }
.tab-r:nth-of-type(1):checked ~ .tab-panels > .tab-panel:nth-child(1),
.tab-r:nth-of-type(2):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tab-r:nth-of-type(3):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tab-r:nth-of-type(4):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tab-r:nth-of-type(5):checked ~ .tab-panels > .tab-panel:nth-child(5) { display: block; }
.tab-r:nth-of-type(1):checked ~ .tab-bar > label:nth-child(1),
.tab-r:nth-of-type(2):checked ~ .tab-bar > label:nth-child(2),
.tab-r:nth-of-type(3):checked ~ .tab-bar > label:nth-child(3),
.tab-r:nth-of-type(4):checked ~ .tab-bar > label:nth-child(4),
.tab-r:nth-of-type(5):checked ~ .tab-bar > label:nth-child(5) { color: var(--accent); border-bottom-color: var(--accent); }
.tab-r:nth-of-type(1):focus-visible ~ .tab-bar > label:nth-child(1),
.tab-r:nth-of-type(2):focus-visible ~ .tab-bar > label:nth-child(2),
.tab-r:nth-of-type(3):focus-visible ~ .tab-bar > label:nth-child(3),
.tab-r:nth-of-type(4):focus-visible ~ .tab-bar > label:nth-child(4),
.tab-r:nth-of-type(5):focus-visible ~ .tab-bar > label:nth-child(5) { outline: 2px solid var(--accent); outline-offset: -2px; }
body.nav-pills .tab-bar { gap: 6px; border-bottom: 0; }
body.nav-pills .tab-bar label { margin: 0; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; }
body.nav-pills .tab-r:nth-of-type(1):checked ~ .tab-bar > label:nth-child(1),
body.nav-pills .tab-r:nth-of-type(2):checked ~ .tab-bar > label:nth-child(2),
body.nav-pills .tab-r:nth-of-type(3):checked ~ .tab-bar > label:nth-child(3),
body.nav-pills .tab-r:nth-of-type(4):checked ~ .tab-bar > label:nth-child(4),
body.nav-pills .tab-r:nth-of-type(5):checked ~ .tab-bar > label:nth-child(5) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tab-more { margin-top: var(--gap); text-align: center; }

.catrows { display: flex; flex-direction: column; gap: calc(var(--gap) * 1.5); }
.catrows > .sec-head { margin-bottom: 0; }
.catrow-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.catrow-head h3 { font-family: var(--head-font); font-size: 17px; font-weight: 750; }
.catrow-head h3 a:hover { color: var(--accent); }
.catrow-n { color: var(--muted); font-size: 13px; }
.catrow-head .more { margin-left: auto; font-size: 13px; }

.letters-jump { margin-bottom: var(--gap); }
.letters-jump a { min-width: 30px; height: 30px; }
.lgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px 30px; align-items: start; }
.lgroups-sm { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px 24px; }
.lg { min-width: 0; scroll-margin-top: 96px; }
.lg-l { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-family: var(--head-font); font-size: 20px; font-weight: 850; line-height: 1; color: var(--accent); }
.lgroups-sm .lg-l { font-size: 15px; }
.lgroups-columns { display: block; columns: 4 220px; column-gap: 30px; }
.lgroups-columns .lg { break-inside: avoid; margin-bottom: 16px; }
.lgroups-columns .lg-l { padding-bottom: 0; border-bottom: 0; font-size: 15px; }
.tlist { margin: 0; padding: 0; list-style: none; }
.tlist li { break-inside: avoid; }
.tlist a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; }
.tlist a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlist a small { flex: none; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.tlist a:hover span { color: var(--accent); }
.tcols .tlist { columns: 4 200px; column-gap: 30px; }

/* ── 16.15 списки: число в заголовке, сортировка, период, фильтры, похожие ─── */
.lcount { display: inline-block; margin-left: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-family: var(--font); font-size: .48em; font-weight: 700; vertical-align: middle; font-variant-numeric: tabular-nums; }
.lhead-banner .lcount { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.lcount-line { margin-top: calc(var(--gap) * -1.4); color: var(--muted); font-size: 14px; }
.lcount-line .lcount { margin: 0; font-size: 13px; }
.lhead .slinks { margin-left: auto; }
.lhead-banner .slinks { margin-top: 12px; }
.ltools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.stabs { display: flex; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.stabs::-webkit-scrollbar { display: none; }
.stabs a { flex: none; margin-bottom: -1px; padding: 9px 14px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.stabs a:hover { color: var(--text); }
.stabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.ltools-tabs > .stabs:first-child { flex: 1 1 auto; }
.slinks { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; font-weight: 600; }
.slinks a { color: var(--muted); }
.slinks a:hover { color: var(--text); }
.slinks a.on { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dd, .fpanel { position: relative; }
.dd > summary, .fpanel > summary { list-style: none; }
.dd > summary::-webkit-details-marker, .fpanel > summary::-webkit-details-marker { display: none; }
.dd-l { color: var(--muted); font-weight: 500; }
.dd-btn .ico, .fpanel-btn .ico { transition: transform .15s; }
.dd[open] > .dd-btn { border-color: var(--accent); }
.dd[open] > .dd-btn .ico { transform: rotate(180deg); }
.dd-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 1px; min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 36px rgba(0, 0, 0, .35); }
.dd-menu a { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.dd-menu a:hover { background: var(--surface-2); color: var(--text); }
.dd-menu a.on { color: var(--accent); font-weight: 700; }
.fpanel[open] { flex-basis: 100%; }
.fpanel[open] > .fpanel-btn { border-color: var(--accent); color: var(--accent); }
.fdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.fpanel-in { margin-top: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fpanel-in .side-title { margin-bottom: 10px; }
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fbar-l { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fbar .chip, .fpanel-in .chip { min-height: 30px; font-size: 13px; }
.relcats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.relcats-l { margin-right: 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.relcats .chip { min-height: 30px; font-size: 13px; }
.relcats-bottom { padding-top: var(--gap); border-top: 1px solid var(--line); }
.pager-more { gap: 8px; }
.pager-more .more-btn { max-width: 440px; }
.more-btn.is-loading { opacity: .6; pointer-events: none; }
.pg-txt { padding: 0 14px; }

/* ── 16.16 модели, категории, каналы: инструменты, анкета, шапка «сущность» ─── */
.taxa-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.taxa-row .filter { flex: 1 1 280px; }
.taxa-all .sec-head { margin-top: var(--gap); }
.thead-entity { padding: clamp(14px, 2.4vw, 22px); border: 1px solid var(--line); background: var(--surface); }
.thead-entity .thead-in { gap: clamp(14px, 2.4vw, 24px); }
.thead-entity .thead-img { width: clamp(72px, 9vw, 104px); border-radius: 50%; border-width: 2px; font-size: 32px; }
.thead-entity.thead-studio .thead-img { border-radius: var(--radius); }
.thead-entity h1 { font-size: clamp(22px, 2.6vw, 30px); }
.ent-stats { align-items: center; margin-top: 6px; }
.ent-stats b { font-size: 1.1em; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-width: 640px; margin: 14px 0 0; }
.facts > div { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.facts dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 750; }
.thead-card .facts { margin-inline: auto; }

/* сворачиваемый текст (описание, биография) */
.clampbox { position: relative; }
.clamp-tg { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.clamp-tg:not(:checked) ~ .clamp { max-height: 7.4em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.clamp-btn { display: inline-flex; margin-top: 8px; color: var(--accent); font-size: 14px; font-weight: 650; cursor: pointer; }
.clamp-btn:hover { text-decoration: underline; }
.clamp-tg:checked ~ .clamp-btn .cb-more, .clamp-tg:not(:checked) ~ .clamp-btn .cb-less { display: none; }
.clamp-tg:focus-visible ~ .clamp-btn { outline: 2px solid var(--accent); outline-offset: 2px; }
.clamp-short .clamp { max-height: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
.clamp-short .clamp-btn { display: none; }

/* ── 16.17 страница видео: новые части ────────────────────────────────────── */
.vstats-big { gap: 8px 22px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 14.5px; }
.vstats-big #views { color: var(--text); font-weight: 800; }
.vstats-big .ico { color: var(--accent); }
.ratebar { display: grid; grid-template-columns: auto minmax(80px, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rb-pct { color: var(--muted); font-size: 14px; white-space: nowrap; }
.rb-pct b { color: var(--text); font-size: 16px; }
.rb-bar { height: 6px; overflow: hidden; border-radius: 3px; background: color-mix(in srgb, #d63c3c 65%, var(--line)); }
.rb-bar > span { background: #2fbf71; }
.ratebar-none .rb-bar { background: var(--line); }
.rb-n { display: flex; gap: 14px; color: var(--muted); font-size: 13.5px; }
.rb-n span { display: inline-flex; align-items: center; gap: 5px; }
.infotable { display: grid; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.infotable > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); }
.infotable > div:first-child { border-top: 0; }
.infotable dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.infotable dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.infotable dd a { color: var(--text); font-weight: 600; }
.infotable dd a:hover { color: var(--accent); }
.chline { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.chline:hover { border-color: var(--accent); color: inherit; }
.chline-ava { display: grid; place-items: center; flex: none; width: 46px; height: 46px; overflow: hidden; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-family: var(--head-font); font-size: 19px; font-weight: 800; }
.chline-ava img { width: 100%; height: 100%; object-fit: cover; }
.chline-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.chline-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chline-txt small { color: var(--muted); font-size: 12.5px; }
.chline:hover .chline-btn { border-color: var(--accent); }
.sharebox { display: flex; flex-direction: column; gap: 6px; }
.sharebox .side-title { margin: 0; }
.sharebox-row { display: flex; gap: 8px; }
.sharebox-row input { flex: 1; color: var(--muted); }
.screens h2 { margin-bottom: 10px; }
.screens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.screens-grid a { display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--surface-2); }
.screens-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.screens-grid a:hover img { transform: scale(1.05); }
.vtabs .tab-bar { margin-bottom: 12px; }
.vtabs .comments h2 { display: none; }
.vtabs-nocom { display: none; }
.vtabs .comments[hidden] + .vtabs-nocom { display: block; }
.desc-wrap .desc { color: var(--muted); }
.upnext { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.un-item { display: grid; grid-template-columns: minmax(120px, 44%) minmax(0, 1fr); align-items: start; gap: 10px; }
.un-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); background: var(--surface-2); }
.un-thumb img { width: 100%; height: 100%; object-fit: cover; }
.un-thumb .dur { right: 4px; bottom: 4px; font-size: 11px; }
.un-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.un-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.un-meta { color: var(--muted); font-size: 12px; }
.un-item:hover .un-title { color: var(--accent); }
.vrow .sec-head { margin-bottom: var(--gap); }

/* ── 16.18 подвал: гармошка, категории колонками и по буквам ──────────────── */
.foot-catsbox { display: flex; flex-direction: column; gap: 12px; }
.foot-h, .foot-acc > summary h2 { margin: 0; font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fcats-cols .tlist { columns: 6 150px; column-gap: 24px; }
.fcats-cols .tlist a, .fcats-letters .tlist a { padding: 2px 0; font-size: 13.5px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
body.ftr-simple .fcats-cols, body.ftr-simple .fcats-letters { width: 100%; text-align: left; }
body.ftr-columns .foot-catsbox .foot-cats, body.ftr-accordion .foot-cats { justify-content: flex-start; max-width: none; }
.foot-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; }
.foot-acc > summary::-webkit-details-marker { display: none; }
.foot-acc > summary .ico { color: var(--muted); transition: transform .2s; }
.foot-acc-in { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 10px; }
.foot-acc-in a { font-size: 14px; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.foot-acc-in a:hover { color: var(--accent); }
.foot-acc-cats > .fcats { margin-top: 12px; }
body.ftr-accordion .foot-note { padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 761px) {
  .foot-acc > summary { pointer-events: none; }
  .foot-acc > summary .ico { display: none; }
}

/* ── 16.19 фиксированное число колонок ────────────────────────────────────── */
@media (min-width: 1000px) {
  body.cols-fixed:not(.vc-list) .grid:not(.view-row):not(.view-list):not(.view-big):not(.rel) { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
  body.cols-fixed:not(.vc-list) .lbody-left .grid:not(.view-row):not(.view-list):not(.view-big), body.cols-fixed:not(.vc-list) .lbody-right .grid:not(.view-row):not(.view-list):not(.view-big) { grid-template-columns: repeat(max(2, calc(var(--cols) - 1)), minmax(0, 1fr)); }
  body.colsm-fixed:not(.mc-text):not(.mc-chip) .mgrid:not(.view-row) { grid-template-columns: repeat(var(--cols-m), minmax(0, 1fr)); }
  body.colsc-fixed:not(.cc-pill) .cgrid:not(.view-row) { grid-template-columns: repeat(var(--cols-c), minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 999px) {
  body.cols-fixed:not(.vc-list) .grid:not(.view-row):not(.view-list):not(.view-big):not(.rel) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.colsm-fixed:not(.mc-text):not(.mc-chip) .mgrid:not(.view-row) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.colsc-fixed:not(.cc-pill) .cgrid:not(.view-row) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── 16.20 адаптивность второй версии ─────────────────────────────────────── */
@media (max-width: 760px) {
  body.hdr-drawer .hdr-in { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "burger logo search act"; padding-bottom: 10px; }
  body.hdr-drawer.srch-full .hdr-in { grid-template-areas: "burger logo . act" "search search search search"; }
  body.hdr-stacked .hdr-in { padding-top: 10px; }
  body.hdr-stacked .hdr-in > .hdr-act { grid-area: act; justify-self: end; padding: 0; border: 0; box-shadow: none; clip-path: none; }
  body.hdr-stacked .hdr-act .hlink, body.hdr-stacked .hdr-act .hdr-login { height: var(--btn-h); }
  body.hdr-stacked .logo-txt b { font-size: 18px; }
  body.hdr-stacked .hdr-in > .logo { padding: 0; }
  body.hdr-stacked .hdr-in > .menu { border-top: 0; padding-top: 0; }
  .menu.menu-has-sub { flex-wrap: nowrap; overflow-x: auto; }
  .menu-has-sub .mi { position: static; }
  .menu-has-sub .sub { position: absolute; left: var(--pad); right: var(--pad); top: 100%; min-width: 0; max-height: 60vh; overflow-y: auto; }
  .menu-has-sub .mi:hover > .sub, .menu-has-sub .mi:focus-within > .sub { display: none; }
  .menu-has-sub .mi.open > .sub { display: flex; }
  .menu-has-sub .mi.open > .sub-cats, .menu-has-sub .mi.open > .sub-mega { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu .mi-caret { width: 30px; margin-left: -8px; }
  body.mtabs { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  body.mtabs .mtabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 95%, transparent); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .mtabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: var(--radius-sm); color: var(--muted); font-size: 10.5px; font-weight: 650; }
  .mtabbar a .ico { font-size: 21px; }
  .mtabbar a.on { color: var(--accent); }
  .mtabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.ftr-accordion .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  body.ftr-accordion .foot-brand { margin-bottom: 14px; }
  .foot-acc { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .foot-acc[open] > summary .ico { transform: rotate(180deg); }
  .foot-acc > summary { cursor: pointer; }
  .fcats-cols .tlist { columns: 2; }
  .lgroups-columns, .tcols .tlist { columns: 2; }
  .lgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
  body.mc-text .mgrid { columns: 2; column-gap: 18px; }
  .infotable > div { grid-template-columns: 96px minmax(0, 1fr); }
  .ratebar { grid-template-columns: auto minmax(60px, 1fr); }
  .rb-n { grid-column: 1 / -1; }
  .lhead .slinks { flex-basis: 100%; margin-left: 0; }
  .car-prev { left: -6px; }
  .car-next { right: -6px; }
  .un-item { grid-template-columns: 140px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body.mcols-1:not(.vc-list) .grid:not(.view-row):not(.view-list) { grid-template-columns: minmax(0, 1fr); }
  body.mcols-2:not(.vc-list) .grid:not(.view-row):not(.view-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  body.mcols-2 .grid:not(.view-row):not(.view-list) .vtitle { font-size: 13px; }
  body.mcols-2 .grid:not(.view-row):not(.view-list) .vmeta { gap: 0 8px; font-size: 11.5px; }
  body.mcols-2 .grid:not(.view-row):not(.view-list) .vmeta .lbl, body.mcols-2 .grid:not(.view-row):not(.view-list) .vlikes { display: none; }
  body.mcols-2.by-channel_avatar .grid:not(.view-row):not(.view-list) .vava { display: none; }
  body.mcols-2.by-channel_avatar .grid:not(.view-row):not(.view-list) .vbody { display: flex; }
  body.mcols-2 .grid:not(.view-row):not(.view-list) .tinfo > span { padding: 1px 5px; font-size: 10.5px; }
  body.mcols-2 .ranked > .vcard .thumb::before { min-width: 26px; height: 26px; font-size: 13px; }
  body.mc-card .mgrid { --mmin: 140px; }
  .mi > .sub-cats { min-width: 0; }
}

/* меню «Сохранить» на телефоне: прижато к правому краю и не шире экрана (html/body режут всё, что выходит вбок) */
@media (max-width: 760px) {
  .savemenu { left: auto; right: 0; min-width: min(230px, calc(100vw - 2 * var(--pad, 16px))); max-width: calc(100vw - 2 * var(--pad, 16px)); }
}
