/* ============================================================
   Daniel Kim / DK ARCHIVE — дизайн-система v2.2
   Логотип Daniel Kim (оригинальный файл) · Unbounded (display) · Golos Text (интерфейс) · JetBrains Mono (данные)
   ============================================================ */

:root {
  --void: #090909;
  --ash: #141414;
  --ash-2: #1b1b1b;
  --graphite: #303030;
  --line: #242424;
  --ivory: #e5e2d9;
  --ivory-2: #bfbcb3;
  --silver: #96969b;
  --blood: #c41632;

  /* тона DK SCORE (цвет всегда дублируется числом и вердиктом) */
  --t-gold: #c8ac6e;
  --t-silver: #c6c6cc;
  --t-green: #87a98a;
  --t-grey: #8f8f94;
  --t-red: #d35b67;
  --t-none: #6a6a6f;

  --f-display: 'Unbounded', 'Arial Black', sans-serif;
  --f-ui: 'Golos Text', 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --wrap: 1360px;
  --radius: 2px;
  --hdr: 60px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 140ms;
  --mid: 220ms;
}

/* ── база ── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--void); scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; min-height: 100vh; background: var(--void); color: var(--ivory); font: 400 16px/1.55 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--ivory); color: var(--void); }
:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ivory); color: var(--void); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.meta { font: 500 12px/1.45 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--silver); }
.kicker { font: 500 12px/1.4 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--silver); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.kicker .hot { color: var(--ivory); }
.kicker .dot { width: 5px; height: 5px; background: var(--blood); display: inline-block; }
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; line-height: .94; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.ulink { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--mid) var(--ease), color var(--fast); padding-bottom: 1px; }
.ulink:hover, a:hover .ulink { background-size: 100% 1px; }

/* локальные печатные текстуры */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.raster { position: relative; isolation: isolate; }
.raster::before { content: ''; position: absolute; inset: -8% 0; z-index: -1; pointer-events: none; opacity: .14; background-image: radial-gradient(circle at 1px 1px, var(--silver) .7px, transparent 1px); background-size: 6px 6px; -webkit-mask-image: linear-gradient(105deg, transparent 8%, #000 40%, #000 60%, transparent 92%); mask-image: linear-gradient(105deg, transparent 8%, #000 40%, #000 60%, transparent 92%); }

.mark { display: inline-block; flex: none; fill: currentColor; vertical-align: -1px; }
.logo { display: block; height: auto; max-width: 100%; }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ivory); border-radius: var(--radius); background: var(--ivory); color: var(--void); font: 600 13px/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: background var(--fast), color var(--fast), border-color var(--fast); text-align: center; }
.btn:hover { background: #fff; border-color: #fff; }
.btn.ghost { background: transparent; color: var(--ivory); border-color: var(--graphite); }
.btn.ghost:hover { border-color: var(--ivory); }
.btn.blood { background: var(--blood); border-color: var(--blood); color: #fff; }
.btn.blood:hover { background: #d81c3a; border-color: #d81c3a; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 12px; }
.btn .arr { transition: transform var(--fast) var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   ЛЕНТА + ШАПКА
   ============================================================ */
.ribbon { border-bottom: 1px solid var(--line); background: var(--ash); }
.ribbon-in { display: flex; align-items: center; gap: 20px; height: 32px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--silver); }
.ribbon-in::-webkit-scrollbar { display: none; }
.ribbon-in .lbl { color: var(--ivory); display: inline-flex; align-items: center; gap: 8px; }
.ribbon-in .lbl .mark { color: var(--blood); }
.ribbon-in a { display: inline-flex; gap: 8px; align-items: center; transition: color var(--fast); }
.ribbon-in a b { font-weight: 500; color: var(--ivory); }
.ribbon-in a:hover { color: var(--ivory); }
.ribbon-in a::before { content: ''; width: 1px; height: 10px; background: var(--graphite); margin-right: 12px; }

.hdr { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 9, .95); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: var(--s5); height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; color: var(--ivory); }
.brand .logo { height: 26px; width: auto; }
.brand .mark { width: 16px; height: auto; transition: transform var(--mid) var(--ease); }
.brand:hover .mark { transform: rotate(45deg); }
.brand .brand-mark { display: none; }
.brand-sub { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; color: var(--silver); padding-left: 12px; border-left: 1px solid var(--graphite); white-space: nowrap; }
.brand.is-home .brand-sub { color: var(--ivory); padding-left: 0; border-left: 0; }
.nav { display: flex; align-items: stretch; height: 100%; }
.nav a { position: relative; display: flex; align-items: center; white-space: nowrap; padding: 0 14px; font: 500 12px/1 var(--f-display); letter-spacing: .07em; text-transform: uppercase; color: var(--silver); transition: color var(--fast); }
.nav a:hover { color: var(--ivory); }
.nav a[aria-current='page'] { color: var(--ivory); }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--blood); }
.nav a.ext { color: var(--ivory); }

.hsearch { position: relative; }
.hsearch summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--graphite); border-radius: var(--radius); color: var(--ivory); transition: border-color var(--fast); }
.hsearch summary::-webkit-details-marker { display: none; }
.hsearch summary:hover, .hsearch[open] summary { border-color: var(--ivory); }
.hsearch form { position: absolute; right: 0; top: calc(100% + 8px); width: min(440px, calc(100vw - 2 * var(--gutter))); display: flex; background: var(--ash); border: 1px solid var(--graphite); }
.hsearch input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; background: transparent; border: 0; color: var(--ivory); font: 400 16px var(--f-ui); outline: none; }
.hsearch input::placeholder { color: var(--silver); }
.hsearch button { border: 0; border-left: 1px solid var(--graphite); background: transparent; padding: 0 18px; font: 600 12px var(--f-ui); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.hsearch button:hover { background: var(--ivory); color: var(--void); }

/* мобильная шапка — одна строка */
@media (max-width: 760px) {
  :root { --hdr: 52px; }
  .hdr-in { gap: 6px; }
  .brand { gap: 8px; }
  .brand .logo { height: 20px; }
  .brand-sub { display: none; }
  .nav a { padding: 0 9px; font: 500 14px/1 var(--f-ui); letter-spacing: 0; text-transform: none; }
  .nav a[aria-current='page']::after { left: 9px; right: 9px; }
  .nav a.ext { display: none; }
  .hsearch summary { width: 42px; height: 42px; }
}
@media (max-width: 380px) {
  .brand .brand-logo { display: none; }
  .brand .brand-mark { display: inline-block; width: 18px; }
  .brand.is-home .brand-sub { display: none; }
  .nav a { padding: 0 8px; }
}

/* ============================================================
   DK SCORE
   ============================================================ */
.dks { --tone: var(--t-none); display: inline-flex; flex-direction: column; color: var(--tone); }
.t-gold { --tone: var(--t-gold); }
.t-silver { --tone: var(--t-silver); }
.t-green { --tone: var(--t-green); }
.t-grey { --tone: var(--t-grey); }
.t-red { --tone: var(--t-red); }
.t-none { --tone: var(--t-none); }
.dks .num { font-variant-numeric: tabular-nums; }
.dks .of { color: var(--silver); }
.dks .lbl { color: var(--ivory-2); }
.dks .bar { position: relative; background: var(--graphite); overflow: hidden; }
.dks .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tone); transform-origin: left; }

/* сегментированная шкала (standard / hero) */
.segs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; }
.segs i { position: relative; height: 6px; background: var(--graphite); overflow: hidden; }
.segs i.edge { height: 10px; }
.segs i.on { background: var(--tone); }
.segs i.part::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--tone); }
.t-none .segs i { background: transparent; box-shadow: inset 0 0 0 1px var(--graphite); }

/* compact — каталог и списки */
.dks--c { align-items: flex-end; gap: 5px; }
.dks--c .row { display: inline-flex; align-items: baseline; gap: 1px; white-space: nowrap; }
.dks--c .num { font: 700 24px/.9 var(--f-mono); letter-spacing: -.02em; }
.dks--c .of { font: 500 11px/1 var(--f-mono); color: var(--silver); }
.dks--c .bar { width: 40px; height: 3px; }

/* editorial — главная: между standard и hero */
.dks--e { gap: 10px; width: 100%; max-width: 300px; }
.dks--e .row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dks--e .num { font: 800 clamp(44px, 4.4vw, 60px)/.85 var(--f-display); letter-spacing: -.045em; }
.dks--e .of { font: 500 14px var(--f-mono); }
.dks--e .lbl { margin-left: 8px; font: 700 13px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); }
.dks--e .segs i { height: 5px; }
.dks--e .segs i.edge { height: 8px; }

/* standard — рейтинги */
.dks--s { gap: 6px; min-width: 96px; }
.dks--s .row { display: flex; align-items: baseline; gap: 4px; }
.dks--s .num { font: 800 30px/.9 var(--f-display); letter-spacing: -.03em; }
.dks--s .of { font: 500 12px var(--f-mono); }
.dks--s .segs { width: 96px; }
.dks--s .segs i { height: 4px; }
.dks--s .segs i.edge { height: 7px; }
.dks--s .lbl { font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }

/* hero — страница релиза */
.dks--h { gap: 12px; width: 100%; max-width: 560px; }
.dks--h .row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.dks--h .num { font: 800 clamp(80px, 9.5vw, 136px)/.78 var(--f-display); letter-spacing: -.05em; }
.dks--h .side { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.dks--h .of { font: 500 14px var(--f-mono); letter-spacing: .04em; }
.dks--h .lbl { font: 700 16px/1 var(--f-display); letter-spacing: .07em; text-transform: uppercase; color: var(--ivory); }
.dks--h .ticks { position: relative; height: 16px; font: 500 11px/1 var(--f-mono); color: var(--silver); }
.dks--h .ticks span { position: absolute; top: 3px; transform: translateX(-50%); }
.dks--h .ticks span:first-child { transform: none; }
.dks--h .ticks span:last-child { transform: translateX(-100%); }
.dks--h.dks--cinema .segs { gap: 4px; }
.dks--h.dks--cinema .segs i { height: 9px; }
.dks--h.dks--cinema .segs i.edge { height: 14px; }
.dks--h .cap { font: 500 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--silver); display: flex; align-items: center; gap: 8px; }
.dks--h .cap .mark { color: var(--blood); }
@media (prefers-reduced-motion: no-preference) {
  .dks .bar i { animation: dks-fill .32s var(--ease) both; }
  .segs i.on, .segs i.part::after { animation: dks-seg .18s var(--ease) both; animation-delay: calc(var(--i) * 9ms); }
  @keyframes dks-fill { from { transform: scaleX(0); } }
  @keyframes dks-seg { from { opacity: 0; } }
}

/* ============================================================
   ОБЛОЖКИ И ЗАПИСИ
   ============================================================ */
.cv { position: relative; aspect-ratio: 1 / 1; background: var(--ash); overflow: hidden; border-radius: var(--radius); }
.cv.poster { aspect-ratio: 2 / 3; }
.cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; transition: transform var(--mid) var(--ease), filter var(--mid) var(--ease); }
.cv .ph { position: absolute; inset: 0; padding: 12%; display: flex; flex-direction: column; justify-content: space-between; background: var(--ash); }
.cv .ph .mark { width: 16%; max-width: 26px; height: auto; color: var(--graphite); }
.cv .ph span { font: 800 clamp(13px, 1.4vw, 20px)/1.02 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; color: #4a4a4e; overflow-wrap: break-word; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cv .tag { position: absolute; left: 8px; top: 8px; padding: 5px 7px; background: rgba(9, 9, 9, .88); font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ivory); }

/* Карточка релиза — 4 зоны: обложка · название + DK SCORE · исполнители · метаданные.
   В сетке зоны общие для ряда (subgrid): строка «ТИП · ГОД · ПЛАТФОРМА» стоит на одной линии у всех карточек ряда. */
.entry { display: grid; grid-template-rows: auto auto auto 1fr; min-width: 0; }
.entry:hover .cv img { transform: scale(1.035); filter: contrast(1.06); }
.entry > .cv { margin-bottom: 12px; align-self: start; }
.e-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; }
.entry .t { font: 600 16px/1.25 var(--f-ui); color: var(--ivory); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; word-break: normal; hyphens: auto; -webkit-hyphenate-limit-before: 4; -webkit-hyphenate-limit-after: 4; hyphenate-limit-chars: 9 4 4; text-wrap: pretty; }
.entry .e-head .dks { padding-top: 2px; }
.entry .by { margin-top: 4px; font-size: 14px; line-height: 1.3; color: var(--silver); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.entry .by:empty { margin-top: 0; }
.entry .info { align-self: start; display: flex; flex-wrap: wrap; row-gap: 2px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font: 500 11px/1.35 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--silver); }
.entry .info span { white-space: nowrap; }
.entry .info span:not(.pl) + span:not(.pl)::before { content: '·'; margin: 0 .55em; color: #5a5a5f; }
.entry .info .pl { margin-left: auto; padding-left: 10px; color: var(--ivory-2); }
.entry:hover .t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 36px 20px; }
.grid.posters { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@supports (grid-template-rows: subgrid) {
  .grid { row-gap: 0; }
  .grid > .entry { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 36px; }
}
@media (max-width: 640px) {
  .grid, .grid.posters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .entry .t { font-size: 15px; }
  .entry .by { font-size: 13px; }
  .e-head { column-gap: 8px; }
  .entry .info { font-size: 10.5px; letter-spacing: .04em; }
  .dks--c .num { font-size: 22px; }
  .dks--c .bar { width: 34px; }
}
@media (max-width: 640px) and (min-width: 0px) {
  @supports (grid-template-rows: subgrid) { .grid { row-gap: 0; } .grid > .entry { padding-bottom: 28px; } }
}

/* LIST */
.llist { display: flex; flex-direction: column; border-top: 1px solid var(--ivory); }
.lhead, .lrow { display: grid; grid-template-columns: 56px minmax(0, 3fr) minmax(0, 1.6fr) 56px 104px 128px; gap: 16px; align-items: center; }
.lhead { min-height: 36px; border-bottom: 1px solid var(--line); font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--silver); }
.lhead span:last-child { text-align: right; }
.lrow { padding: 10px 0; border-bottom: 1px solid var(--line); transition: background var(--fast); }
.lrow:hover { background: var(--ash); }
.lrow .cv { width: 56px; }
.lrow.is-film .cv { width: 40px; justify-self: center; }
.lrow .t { font: 600 16px/1.25 var(--f-ui); overflow-wrap: break-word; }
.lrow .by { font-size: 14px; color: var(--silver); overflow-wrap: break-word; }
.lrow .lk, .lrow .ly, .lrow .ld { font: 500 13px/1.3 var(--f-mono); color: var(--ivory-2); }
.lrow .ls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.lhead, .lrow { grid-template-columns: 56px minmax(0, 3fr) minmax(0, 1.6fr) 56px 104px 150px; }
.lrow .lv { font: 500 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--tone); min-width: 52px; text-align: left; }
@media (max-width: 900px) {
  .lhead { display: none; }
  .lrow { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: 'cv t s' 'cv m s'; row-gap: 2px; }
  .lrow .cv { grid-area: cv; }
  .lrow .lt { grid-area: t; }
  .lrow .lk { grid-area: m; font-size: 12px; color: var(--silver); }
  .lrow .ly, .lrow .ld { display: none; }
  .lrow .ls { grid-area: s; flex-direction: column; align-items: flex-end; gap: 6px; }
  .lrow .lv { min-width: 0; text-align: right; }
}

/* заголовок секции */
.sh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 14px 0; margin-bottom: var(--s5); border-top: 1px solid var(--ivory); }
.sh h2 { margin: 0; font: 800 clamp(18px, 2vw, 22px)/1.1 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; display: flex; align-items: baseline; gap: 12px; }
.sh h2 .n { font: 500 12px var(--f-mono); letter-spacing: .04em; color: var(--silver); }
.sh a, .shl a { font: 500 12px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--silver); white-space: nowrap; }
.sh a:hover { color: var(--ivory); }
.shl { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.section { padding-bottom: var(--s8); }
.sec { font-style: normal; color: var(--silver); }

/* ============================================================
   ГЛАВНАЯ — редакционная обложка
   ============================================================ */
.ch { position: relative; overflow: clip; border-bottom: 1px solid var(--line); }
.ch .sigil { position: absolute; z-index: 0; width: clamp(420px, 52vw, 820px); height: auto; left: 34%; top: -14%; fill: none; stroke: var(--ivory); stroke-width: .35; opacity: .09; transform: rotate(-14deg); pointer-events: none; }
.ch-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6) var(--s7); padding-top: clamp(32px, 5vw, 72px); padding-bottom: clamp(32px, 4.5vw, 64px); align-items: end; }
.ch-left { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); align-self: stretch; justify-content: space-between; min-width: 0; }
.ch-kick { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 600 12px/1.3 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); }
.ch-kick .arrow { color: var(--silver); letter-spacing: .1em; }
.ch-title { margin: 0; display: flex; flex-direction: column; font: 800 min(6.4vw, 100px)/.86 var(--f-display); letter-spacing: -.055em; text-transform: uppercase; color: var(--ivory); }
.ch-title .l1 { display: block; }
.ch-title .l2 { display: flex; align-items: center; padding-left: .48em; white-space: nowrap; }
.ch-title .o { width: .56em; height: auto; margin: 0 .02em; color: var(--blood); transform: translateY(.02em); }
.ch-sub { margin: 0; max-width: 30ch; font: 500 clamp(16px, 1.45vw, 20px)/1.4 var(--f-ui); color: var(--ivory-2); }
.ch-latest { --tint: 20 20 20; --cw: 46%; position: relative; display: grid; grid-template-columns: var(--cw) minmax(0, 1fr); gap: var(--s4) var(--s5); align-self: start; align-items: stretch; }
.ch-latest.is-film { --cw: 33%; }
.ch-latest::before { content: ''; position: absolute; inset: -18% -12% -10% -18%; z-index: -1; background: radial-gradient(closest-side, rgb(var(--tint) / .32), transparent 72%); pointer-events: none; }
.ch-cover { display: block; width: 100%; align-self: start; }
.ch-cover:hover img { transform: scale(1.025); }
.ch-cap { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; }
.ch-cap > .ch-k { margin-bottom: auto; }
.ch-cap > .ch-k + .ch-t { margin-top: 0; }
.ch-cap .actions .btn { white-space: nowrap; }
@media (min-width: 761px) { .ch-cap .actions .btn { padding: 0 18px; } }
.ch-k { font: 600 12px/1.3 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ch-k span { color: var(--silver); letter-spacing: .06em; }
/* Название последней реакции: размер подбирается по фактической ширине текста (site.js: fitTitle).
   --tmax — самый крупный размер, --k — стартовое уменьшение по длине (работает и без JS), --fit — точный размер от скрипта. */
.ch-t { --tmax: clamp(24px, 2.6vw, 38px); --k: 1; margin: 0; font: 800 var(--fit, calc(var(--tmax) * var(--k)))/1.02 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; overflow-wrap: break-word; word-break: normal; hyphens: manual; text-wrap: balance; }
.ch-t.fit-m { --k: .82; }
.ch-t.fit-l { --k: .66; }
.ch-t.fit-xl { --k: .54; }
.ch-t.long { text-transform: none; letter-spacing: -.015em; line-height: 1.08; }
.ch-t.is-fitted { overflow-wrap: normal; }
.ch-t.is-fitted.force-wrap { overflow-wrap: anywhere; }
.ch-t a:hover { color: #fff; }
.ch-by { font-size: 17px; color: var(--ivory-2); }
.ch-cap .dks--e { margin: 6px 0 4px; }
.ch-empty { align-items: center; color: var(--silver); padding: var(--s6) 0; }
.ch-empty .mark { color: var(--graphite); }
@media (min-width: 761px) and (max-width: 1100px) { .ch-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5) var(--s6); } .ch-title { font-size: min(5.6vw, 80px); } .ch-latest { --cw: 42%; } .ch-latest.is-film { --cw: 31%; } }
@media (max-width: 760px) {
  .ch .sigil { width: 140vw; left: 20%; top: -6%; }
  .ch-in { grid-template-columns: 1fr; gap: var(--s5); padding-top: var(--s5); padding-bottom: var(--s5); }
  .ch-left { gap: 14px; }
  .ch-title { font-size: min(11.2vw, 78px); }
  .ch-title .l2 { padding-left: .34em; }
  .ch-latest, .ch-latest.is-film { --cw: 112px; gap: 4px var(--s4); align-items: start; }
  .ch-latest.is-film { --cw: 92px; }
  .ch-cap { display: contents; }
  .ch-k { grid-column: 2; grid-row: 1; font-size: 11px; }
  .ch-t { grid-column: 2; grid-row: 2; --tmax: clamp(20px, 6.4vw, 28px); }
  .ch-by { grid-column: 2; grid-row: 3; font-size: 15px; }
  .ch-cover { grid-column: 1; grid-row: 1 / span 4; }
  .ch-cap .dks--e { grid-column: 1 / -1; grid-row: 5; margin-top: 12px; }
  .ch-cap .actions { grid-column: 1 / -1; grid-row: 6; }
  .ch-cap .actions .btn { flex: 1 1 auto; }
}

/* входы MUSIC INDEX / CINEMA INDEX */
.ixs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); padding-top: var(--s7); padding-bottom: var(--s7); }
.ix { display: flex; flex-direction: column; gap: var(--s4); padding-top: 14px; border-top: 1px solid var(--ivory); min-width: 0; }
.ix-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ix-label { font: 800 clamp(26px, 3.2vw, 46px)/.9 var(--f-display); letter-spacing: -.04em; }
.ix-ru { font: 500 15px var(--f-ui); color: var(--silver); }
.ix-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: end; }
.ix--film .ix-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.ix--film .ix-art { order: 2; }
.ix-art { display: grid; gap: 6px; }
.ix--music .ix-art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ix--film .ix-art { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ix-art .tag { display: none; }
.ix-art.empty { display: flex; aspect-ratio: 2 / 1.2; background: var(--ash); align-items: center; justify-content: center; }
.ix-art.empty .mark { color: var(--graphite); }
.ix:hover .ix-art img { transform: scale(1.04); }
.ix-stats { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ix-stats div { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.ix-stats dt { font: 500 13px var(--f-ui); color: var(--silver); }
.ix-stats dd { margin: 4px 0 0; font: 800 clamp(30px, 3.2vw, 46px)/1 var(--f-display); letter-spacing: -.04em; color: var(--ivory); }
.ix-stats dd small { font: 500 14px var(--f-mono); letter-spacing: 0; color: var(--silver); margin-left: 2px; }
.ix-stats .ix-split dd { font: 500 15px/1.3 var(--f-ui); letter-spacing: 0; color: var(--ivory-2); }
.ix-go { font: 600 13px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); }
.ix:hover .ix-go { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .ixs { grid-template-columns: 1fr; gap: var(--s6); padding-top: var(--s5); padding-bottom: var(--s5); } }
@media (max-width: 560px) {
  .ix-body, .ix--film .ix-body { grid-template-columns: 1fr; gap: var(--s4); }
  .ix--film .ix-art { order: 0; }
  .ix--music .ix-art { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ix-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--s4); }
  .ix-stats .ix-split { grid-column: 1 / -1; }
  .ix-stats dd { font-size: 28px; }
}

/* рейтинги по категориям */
.tops2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); }
.tops2.one { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.top-list { display: flex; flex-direction: column; }
.top-row { display: grid; grid-template-columns: 48px 60px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.top-row:first-child { border-top: 1px solid var(--line); }
.top-row .rank { font: 800 28px/1 var(--f-display); letter-spacing: -.04em; color: #4a4a4e; transition: color var(--fast); }
.top-row:hover .rank { color: var(--ivory); }
.top-row .cv { width: 60px; }
.top-row.is-film .cv { width: 44px; justify-self: center; }
.top-row .t { font: 600 16px/1.25 var(--f-ui); overflow-wrap: break-word; }
.top-row .by { font-size: 14px; color: var(--silver); }
@media (max-width: 900px) { .tops2 { grid-template-columns: minmax(0, 1fr); } }
.toplist { min-width: 0; }
@media (max-width: 480px) {
  .top-row { grid-template-columns: 30px 50px minmax(0, 1fr) auto; gap: 12px; }
  .top-row .rank { font-size: 20px; }
  .top-row .cv { width: 50px; }
  .top-row.is-film .cv { width: 38px; }
  .top-row .dks--s { min-width: 0; }
  .top-row .dks--s .segs { width: 64px; }
  .top-row .dks--s .num { font-size: 24px; }
}

/* шкала */
.scale { display: flex; flex-direction: column; gap: 10px; }
.scale-bar { display: grid; grid-template-columns: 40fr 20fr 20fr 10fr 10fr; height: 6px; gap: 2px; }
.scale-bar i { background: var(--tone); }
.scale-rows { display: grid; grid-template-columns: 40fr 20fr 20fr 10fr 10fr; gap: 2px; }
.scale-rows div { padding-top: 4px; min-width: 0; }
.scale-rows b { display: block; font: 700 13px/1 var(--f-mono); color: var(--tone); white-space: nowrap; }
.scale-rows span { display: block; margin-top: 6px; font: 600 13px/1.2 var(--f-ui); color: var(--ivory); }
@media (max-width: 760px) { .scale-rows { grid-template-columns: repeat(5, minmax(0, 1fr)); } .scale-rows b { font-size: 11px; } .scale-rows span { font-size: 12px; } }

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.cat-head { padding-top: var(--s7); }
.cat-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.cat-title h1 { margin: 0; font-size: clamp(38px, 6.4vw, 88px); letter-spacing: -.045em; }
.cat-title .cnt { padding-bottom: 6px; font-size: 13px; color: var(--ivory-2); }
.toolbar { margin-top: var(--s5); border-top: 1px solid var(--ivory); }
.search { display: flex; align-items: center; gap: 12px; height: 60px; border-bottom: 1px solid var(--line); }
.search svg { flex: none; color: var(--silver); }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: none; color: var(--ivory); font: 400 18px var(--f-ui); }
.search input::placeholder { color: var(--silver); }
.search input::-webkit-search-cancel-button { filter: invert(1) grayscale(1); }
.bar2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; border-bottom: 1px solid var(--line); }
.fgrp { display: flex; align-items: center; gap: 2px; min-height: 48px; flex-wrap: wrap; }
.fgrp > .meta { margin-right: 10px; }
.seg { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font: 500 14px/1 var(--f-ui); color: var(--silver); transition: color var(--fast); white-space: nowrap; }
.seg:hover { color: var(--ivory); }
.seg.on { color: var(--ivory); }
.seg.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--blood); }
.views { display: inline-flex; border: 1px solid var(--graphite); border-radius: var(--radius); }
.views a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--silver); }
.views a + a { border-left: 1px solid var(--graphite); }
.views a.on { background: var(--ivory); color: var(--void); }
.views a:not(.on):hover { color: var(--ivory); }
.active-f { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 0; }
.active-f a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--graphite); border-radius: var(--radius); font-size: 14px; color: var(--ivory); }
.active-f a:hover { border-color: var(--ivory); }
.active-f a span { color: var(--silver); font-size: 16px; line-height: 1; }
.active-f a.reset { border-color: transparent; color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }
.active-f a.reset:hover { color: var(--ivory); }

.cat { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--s7); padding-top: var(--s6); padding-bottom: var(--s9); align-items: start; }
.fpanel > summary { display: none; }
.facets { display: flex; flex-direction: column; gap: var(--s5); position: sticky; top: calc(var(--hdr) + 16px); }
.fx-h { display: flex; align-items: center; min-height: 36px; border-bottom: 1px solid var(--ivory); font: 700 12px/1 var(--f-display); letter-spacing: .07em; text-transform: uppercase; }
.fx-list.long { max-height: 380px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--graphite) transparent; }
.fx-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ivory-2); transition: color var(--fast); }
.fx-list a:hover { color: var(--ivory); }
.fx-list a .c { font: 500 12px var(--f-mono); color: var(--silver); }
.fx-list a.on { color: var(--ivory); font-weight: 600; }
.fx-list a.on span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.fx-list a.on span:first-child::before { content: ''; width: 6px; height: 6px; background: var(--blood); flex: none; }
.results { min-width: 0; }
.pager { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pager .meta { text-align: center; }

@media (max-width: 860px) {
  .cat { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s4); }
  .fpanel > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--graphite); border-radius: var(--radius); cursor: pointer; list-style: none; font: 600 14px var(--f-ui); }
  .fpanel > summary::-webkit-details-marker { display: none; }
  .fpanel > summary::after { content: '+'; margin-left: auto; font: 400 18px var(--f-mono); color: var(--silver); }
  .fpanel[open] > summary::after { content: '–'; }
  .fpanel .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; background: var(--blood); color: #fff; font: 700 12px var(--f-mono); }
  .facets { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); padding-top: var(--s4); }
  .fx-list.long { max-height: 260px; }
}
@media (max-width: 640px) {
  .cat-head { padding-top: var(--s5); }
  .toolbar { margin-top: var(--s4); }
  .search { height: 54px; }
  .search input { font-size: 16px; }
  .bar2 { flex-wrap: nowrap; gap: 8px; }
  .bar2 .fgrp { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .bar2 .fgrp::-webkit-scrollbar { display: none; }
  .bar2 .fgrp > .meta { display: none; }
  .seg { padding: 0 8px; font-size: 13.5px; }
  .seg.on::after { left: 8px; right: 8px; }
  .views a { padding: 0 9px; font-size: 0; gap: 0; min-height: 40px; }
  .views a svg { width: 16px; height: 16px; }
  .facets { grid-template-columns: 1fr; }
}

/* пустые состояния */
.empty { padding: var(--s8) var(--s5); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: var(--s4); text-align: center; }
.empty .mark { color: #4a4a4e; }
.empty h3 { margin: 0; font: 800 22px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; }
.empty p { margin: 0; color: var(--silver); max-width: 42ch; }

/* ============================================================
   СТРАНИЦА РЕЛИЗА
   ============================================================ */
.rel { --tint: 20 20 20; background: linear-gradient(180deg, rgb(var(--tint) / .2) 0, rgb(var(--tint) / .06) 55%, rgb(var(--tint) / 0) 100%); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 52px; font: 500 12px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--silver); }
.crumbs a:hover { color: var(--ivory); }
.crumbs .sep { color: #4a4a4e; }
.crumbs .edit { color: var(--ivory); border-bottom: 1px solid var(--blood); }
.crumbs .draft { color: var(--t-red); }
.rel-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); padding-top: var(--s3); padding-bottom: var(--s7); align-items: start; }
.rel-cv { max-width: 520px; }
.rel-cv .cv.poster { max-width: 380px; }
.rel-info { display: flex; flex-direction: column; gap: var(--s5); min-width: 0; }
.rel-head { display: flex; flex-direction: column; gap: 14px; }
.rel-title { margin: 0; font-size: clamp(36px, 5.2vw, 84px); }
.rel-title.long { font-size: clamp(26px, 3.4vw, 52px); }
.rel-title.xlong, .lead-title.xlong { font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -.02em; }
.rel-by { font: 500 clamp(18px, 1.8vw, 23px)/1.35 var(--f-ui); color: var(--ivory-2); }
.rel-by a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rel-by .season { color: var(--silver); }
@media (max-width: 760px) {
  .rel-in { grid-template-columns: 120px minmax(0, 1fr); grid-template-areas: 'cv head' 'score score' 'act act'; gap: var(--s4); padding-bottom: var(--s5); }
  .rel-cv { grid-area: cv; }
  .rel-info { display: contents; }
  .rel-head { grid-area: head; gap: 8px; }
  .rel-score { grid-area: score; }
  .rel-act { grid-area: act; }
  .rel-act .actions .btn { flex: 1 1 auto; }
  .rel-title, .rel-title.long { font-size: clamp(22px, 6.4vw, 32px); }
  .rel-title.xlong { font-size: 19px; letter-spacing: -.01em; text-transform: none; line-height: 1.1; }
  .rel-by { font-size: 15px; }
  .rel .kicker { font-size: 11px; gap: 2px 8px; }
  .rel .dks--h .num { font-size: 76px; }
}

.body2 { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--s7); padding-top: var(--s7); padding-bottom: var(--s7); }
.body2 + .body2 { border-top: 1px solid var(--line); }
.body2 > .meta { margin: 0; padding-top: 6px; font-weight: 500; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.1em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.68; color: var(--ivory); }
.tracks { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: var(--s6); max-width: 760px; }
.tracks li { break-inside: avoid; display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.tracks li b { font: 500 12px var(--f-mono); color: var(--silver); min-width: 22px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border-top: 1px solid var(--line); max-width: 900px; }
.facts div { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--silver); }
.facts dd { margin: 6px 0 0; font: 500 15px/1.35 var(--f-ui); color: var(--ivory); overflow-wrap: break-word; }
@media (max-width: 760px) { .body2 { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s5); padding-bottom: var(--s5); } .tracks { columns: 1; } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.watch-sec { padding-top: var(--s7); }
.watch { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s5); align-items: start; }
.watch.nofr { grid-template-columns: minmax(0, 1fr); }
.watch.nofr .plat { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: var(--s5); }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--ash); border-radius: var(--radius); overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; margin-top: 10px; }
.locked { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ash); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: var(--s5); isolation: isolate; }
.watch.nofr .locked { aspect-ratio: auto; min-height: 280px; padding: var(--s7) var(--s5); }
.locked img { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(28px) brightness(.32) saturate(1.2); z-index: -1; }
.locked .mark { color: var(--blood); }
.locked h3 { margin: 0; font: 800 clamp(20px, 2.4vw, 30px)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: -.02em; }
.locked p { margin: 0; color: var(--ivory-2); max-width: 36ch; }
.plat { display: flex; flex-direction: column; border-top: 1px solid var(--ivory); }
.plat-item { display: flex; flex-direction: column; gap: 10px; padding: var(--s4) 0 var(--s5); border-bottom: 1px solid var(--line); }
.plat-item h3 { margin: 0; font: 700 18px/1.25 var(--f-ui); }
.plat-item p { margin: 0; font-size: 14px; color: var(--silver); }
.plat-item .btn { align-self: flex-start; margin-top: 4px; }
.plat-item.boosty .meta { color: var(--ivory); display: flex; align-items: center; gap: 8px; }
.plat-item.boosty .meta::before { content: ''; width: 6px; height: 6px; background: var(--blood); }
@media (max-width: 900px) { .watch { grid-template-columns: 1fr; } }

/* ============================================================
   О ПРОЕКТЕ
   ============================================================ */
.ab-hero { border-bottom: 1px solid var(--line); }
.ab-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s7); align-items: end; padding-top: var(--s7); padding-bottom: var(--s7); }
.ab-logo { padding: var(--s6) 0; }
.ab-logo .logo { width: 100%; max-width: 680px; }
.ab-side { display: flex; flex-direction: column; gap: var(--s4); }
.ab-title { margin: 0; font-size: clamp(30px, 3.8vw, 56px); }
.ab-lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ivory-2); max-width: 46ch; }
.nums { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border-top: 1px solid var(--line); }
.nums div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.nums dt { font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--silver); }
.nums dd { margin: 8px 0 0; font: 800 clamp(30px, 3.4vw, 46px)/1 var(--f-display); letter-spacing: -.03em; }
.nums dd.d { font: 500 20px/1.2 var(--f-mono); letter-spacing: 0; }
.ab-score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); align-items: start; }
.ab-p { margin: 0 0 var(--s5); font-size: 17px; line-height: 1.6; color: var(--ivory-2); max-width: 52ch; }
.dist { display: flex; flex-direction: column; }
.dist-row { display: grid; grid-template-columns: 68px 84px minmax(0, 1fr) 40px; gap: 12px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); }
.dist-row .r { font: 700 13px var(--f-mono); color: var(--tone); }
.dist-row .l { font: 600 14px var(--f-ui); }
.dist-row .b { height: 6px; background: var(--ash-2); }
.dist-row .b i { display: block; height: 100%; background: var(--tone); }
.dist-row .n { font: 500 13px var(--f-mono); text-align: right; color: var(--ivory-2); }
.soc-big { max-width: 720px; }
.ab-scales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); }
.ab-scale { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.ab-h { margin: 0; font: 800 clamp(18px, 1.8vw, 24px)/1.1 var(--f-display); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 12px; }
.ab-h span { font: 500 13px var(--f-mono); color: var(--silver); letter-spacing: 0; }
.ab-scale .ab-p { margin: 0; }
.ab-demo { display: flex; align-items: flex-end; gap: 16px; padding: 12px 0 4px; }
.ab-demo-l { font-size: 13px; color: var(--silver); padding-bottom: 2px; }
.dist-h { font: 600 13px var(--f-ui); color: var(--ivory); padding: 10px 0 4px; }
.dist-none { margin: 8px 0 0; font-size: 14px; color: var(--silver); }
.dist2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
.dist2 .dist-row { grid-template-columns: 56px 64px minmax(0, 1fr) 28px; gap: 8px; }
.nums dd small { font: 500 14px var(--f-mono); letter-spacing: 0; color: var(--silver); margin-left: 2px; }
@media (max-width: 900px) { .ab-scales, .dist2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ab-in, .ab-score { grid-template-columns: 1fr; gap: var(--s5); } .ab-logo { padding: var(--s4) 0 0; } }

/* поиск */
.search-page .group { padding-top: var(--s6); }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.foot { border-top: 1px solid var(--line); margin-top: var(--s7); }
.foot-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--s6); padding-top: var(--s7); padding-bottom: var(--s6); }
.foot .logo { height: 40px; width: auto; }
.foot p { margin: 12px 0 0; max-width: 44ch; color: var(--ivory-2); font-size: 15px; }
.foot .tag { margin-top: 16px; font: 700 14px var(--f-display); letter-spacing: -.01em; text-transform: uppercase; color: var(--ivory); }
.foot-more { display: inline-block; margin-top: 12px; font: 500 12px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--silver); }
.soc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); align-content: start; }
.soc a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 15px; }
.soc a span:last-child { color: var(--silver); transition: transform var(--fast) var(--ease), color var(--fast); }
.soc a:hover span:last-child { transform: translate(2px, -2px); color: var(--ivory); }
.foot-meta { display: flex; flex-direction: column; gap: 8px; }
.foot-meta .hi { color: var(--ivory); display: inline-flex; align-items: center; gap: 8px; }
.foot-meta .hi .mark { color: var(--blood); }
.foot-bottom { border-top: 1px solid var(--line); }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding-top: 14px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; gap: var(--s5); } }

/* ============================================================
   АДМИНКА
   ============================================================ */
.admin { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.admin > aside { padding: 22px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.admin > aside .brand { margin: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
.admin > aside .brand .logo { height: 24px; }
.admin > aside .brand-sub, .login .brand-sub { padding-left: 0; border-left: 0; color: var(--silver); display: inline; }
.admin > main { min-width: 0; padding: 32px 40px 80px; }
@media (max-width: 860px) { .admin { grid-template-columns: 1fr; } .admin > aside { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); gap: 16px; } .admin > main { padding: 24px var(--gutter) 64px; } }
.side-nav { display: flex; flex-direction: column; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ivory-2); }
.side-nav a:hover { color: var(--ivory); }
.side-nav a.on { color: var(--ivory); font-weight: 600; box-shadow: inset 2px 0 0 var(--blood); }
.side-nav a.new { justify-content: center; margin-bottom: 8px; border: 1px solid var(--ivory); background: var(--ivory); color: var(--void); font: 600 13px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; border-radius: var(--radius); }
.side-nav a.new:hover { background: #fff; }
.side-nav .c { font: 500 12px var(--f-mono); color: var(--silver); }
@media (max-width: 860px) { .side-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; } .side-nav a { border: 1px solid var(--line); border-radius: var(--radius); gap: 10px; } .side-nav a.new { margin: 0; } }
.side-foot { margin-top: auto; display: flex; flex-direction: column; }
.side-foot a, .side-foot button { display: flex; align-items: center; min-height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; font: 500 12px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--silver); }
.side-foot a:hover, .side-foot button:hover { color: var(--ivory); }
@media (max-width: 860px) { .side-foot { flex-direction: row; } }
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--ivory); max-width: 1120px; }
.admin-head h1 { margin: 0; font: 800 clamp(28px, 4vw, 44px)/.95 var(--f-display); letter-spacing: -.03em; text-transform: uppercase; }
.tabs { display: inline-flex; border: 1px solid var(--graphite); border-radius: var(--radius); }
.tabs a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; font: 600 13px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--silver); }
.tabs a + a { border-left: 1px solid var(--graphite); }
.tabs a.on { background: var(--ivory); color: var(--void); }
.notice, .errors { max-width: 1120px; margin-top: 20px; padding: 14px 16px; border: 1px solid var(--graphite); border-left: 2px solid var(--ivory); font-size: 15px; }
.errors { border-left-color: var(--blood); }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.notice a { text-decoration: underline; text-underline-offset: 3px; }
.form-wrap { max-width: 1120px; margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
@media (max-width: 1100px) { .form-wrap { grid-template-columns: 1fr; } .preview { display: none; } }
.form { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > .flabel { font: 500 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ivory-2); }
.field > label.drop { font: 400 14px/1.45 var(--f-ui); letter-spacing: 0; text-transform: none; color: var(--silver); }
.input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 0 14px; background: var(--ash); border: 1px solid var(--graphite); border-radius: var(--radius); color: var(--ivory); font: 400 16px var(--f-ui); transition: border-color var(--fast); }
.form textarea { padding: 12px 14px; line-height: 1.55; resize: vertical; min-height: 130px; }
.input:focus, .form select:focus, .form textarea:focus { border-color: var(--ivory); outline: none; }
.input::placeholder, .form textarea::placeholder { color: var(--silver); }
.drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px dashed var(--graphite); border-radius: var(--radius); cursor: pointer; transition: border-color var(--fast); }
.drop:hover, .drop.drag { border-color: var(--ivory); }
.drop .thumb { width: 84px; height: 84px; flex: none; background: var(--ash); overflow: hidden; border-radius: var(--radius); }
.drop .thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop span { font-size: 14px; color: var(--silver); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--ivory-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blood); }
.scorefield { padding: 20px; background: var(--ash); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.scorefield .top2 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.scorefield .top2 > label { font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ivory-2); }
.scorefield .dks--h .num { font-size: 84px; }
.scorefield input[type=range] { width: 100%; height: 44px; margin: 0; accent-color: var(--ivory); }
.scorefield .num-wrap { display: inline-flex; align-items: center; gap: 6px; }
.scorefield .num-in { width: 96px; min-height: 44px; text-align: center; font: 700 18px var(--f-mono); }
.scorefield .num-in.bad { border-color: var(--t-red); }
.scorefield .num-max { font: 500 14px var(--f-mono); color: var(--silver); }
.scorefield .hint { margin: 0; font-size: 13px; color: var(--silver); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.preview { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 12px; }
.table { width: 100%; max-width: 1120px; margin-top: 8px; border-collapse: collapse; }
.table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .th { width: 64px; }
.table .th .cv { width: 52px; }
.table .t { font: 600 15px/1.25 var(--f-ui); overflow-wrap: break-word; }
.table .sub { font-size: 13px; color: var(--silver); }
.table .st { font: 500 12px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--silver); white-space: nowrap; }
.table .st.draft { color: var(--t-red); }
.table .sc { text-align: right; }
.table .act { white-space: nowrap; text-align: right; }
.table .act a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font: 500 12px var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--silver); }
.table .act a:hover { color: var(--ivory); }
@media (max-width: 640px) { .table .hide-sm { display: none; } .table .act a + a { display: none; } }
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 18px; }
.login .brand { flex-direction: column; justify-content: center; margin: 0 0 8px; gap: 10px; }
.login .brand .logo { height: 34px; width: auto; }
.login .err { color: var(--t-red); font-size: 15px; text-align: center; }
.danger { margin-top: 48px; max-width: 1120px; padding-top: 20px; border-top: 1px solid var(--line); }
.danger button { background: none; border: 1px solid var(--graphite); border-radius: var(--radius); color: var(--silver); min-height: 44px; padding: 0 16px; font: 500 12px var(--f-mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.danger button:hover { border-color: var(--t-red); color: var(--t-red); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.lrow .cv .tag, .top-row .cv .tag { display: none; }

/* ───────── V2.4 ───────── */

/* Жанровые вкладки ТОП-5: текстовые, тонкая линия, активная — подчёркнута; много жанров — горизонтальная прокрутка */
.gtabs { display: flex; gap: 0 22px; margin: calc(var(--s5) * -1 + 2px) 0 var(--s4); border-bottom: 1px solid var(--line); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: 32px; }
.gtabs::-webkit-scrollbar { display: none; }
.gtab { position: relative; flex: none; padding: 10px 0 11px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--silver); white-space: nowrap; transition: color var(--fast); }
.gtab:hover { color: var(--ivory); }
.gtab[aria-selected='true'] { color: var(--ivory); }
.gtab[aria-selected='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ivory); }
.gtab:focus-visible { outline: 1px solid var(--ivory); outline-offset: 2px; }
.top-list[aria-busy='true'] { opacity: .45; transition: opacity var(--fast); }
.top-empty { display: flex; align-items: center; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--silver); }
.top-empty .mark { flex: none; color: var(--graphite); }
/* Два рейтинга рядом: списки начинаются на одной высоте, даже если у музыки есть строка вкладок */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 901px) {
    .tops2:not(.one) { grid-template-rows: auto auto 1fr; row-gap: 0; }
    .tops2:not(.one) .toplist { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
    .tops2:not(.one) .toplist > .sh { grid-row: 1; }
    .tops2:not(.one) .toplist > .gtabs { grid-row: 2; }
    .tops2:not(.one) .toplist > .top-list { grid-row: 3; }
  }
}

/* Реакция недоступна: архивная пометка, а не ошибка видео */
.nowatch { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s4) var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.nowatch .nw-mark { width: 44px; height: auto; fill: none; stroke: var(--graphite); stroke-width: 1.4; }
.nowatch .nw-k { display: block; margin-bottom: 6px; font: 500 11px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--silver); }
.nowatch h2 { margin: 0; font: 800 clamp(18px, 2vw, 24px)/1.1 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; color: var(--ivory-2); }
.nowatch p { margin: 6px 0 0; font-size: 15px; color: var(--silver); }
.nowatch .nw-side { font: 500 11px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #5f5f64; text-align: right; max-width: 18ch; }
@media (max-width: 640px) {
  .nowatch { grid-template-columns: auto minmax(0, 1fr); padding: var(--s4) 0; }
  .nowatch .nw-mark { width: 34px; align-self: start; }
  .nowatch .nw-side { grid-column: 2; text-align: left; max-width: none; }
}
.watch-sec.watch-none { padding-top: var(--s6); padding-bottom: var(--s4); }
.nowatch .nw-side { max-width: 22ch; }
