/* iceystellar — тёмный готический интерфейс в духе Dark Souls */

:root {
  --ground: #0b0c0f;
  --ink: #e7e0cf;
  --ink-2: #bdb4a1;
  --muted: #8d8678;
  --bronze: #c6a56c;
  --bronze-dim: rgba(198, 165, 108, .28);
  --line: rgba(198, 165, 108, .2);
  --panel: rgba(10, 11, 14, .68);
  --panel-solid: #101115;
  --ember: #ff9b3d;
  --ember-hi: #ffd08a;
  --blood: #8f1d17;
  --blood-hi: #c0352a;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --caps: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --edge: clamp(16px, 2.2vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground) url("../assets/gaze/base.webp") center top / cover no-repeat fixed;
  color: var(--ink);
  font: 500 17px/1.5 var(--serif);
  overflow-x: hidden;
}
/* Курсор — меч с наклоном, остриё вверху слева, клик приходится на остриё. Над ссылками клинок раскаляется.
   Первая строка — для браузеров без image-set, вторая — чёткий вариант для экранов с высокой плотностью. */
body {
  cursor: url("../assets/cursor/sword.png") 1 2, auto;
  cursor: image-set(url("../assets/cursor/sword.png") 1x, url("../assets/cursor/sword@2x.png") 2x) 1 2, auto;
}
a, button, select, summary, label.search, [role="tab"], .chips button, .bar {
  cursor: url("../assets/cursor/sword-hot.png") 1 2, pointer;
  cursor: image-set(url("../assets/cursor/sword-hot.png") 1x, url("../assets/cursor/sword-hot@2x.png") 2x) 1 2, pointer;
}
/* Chrome и Edge не рисуют курсор крупнее 32px, если он вылезает за край окна, и ставят вместо него стрелку.
   Поэтому у нижнего и правого края (класс ставит js/main.js) меч уменьшается до 32px. */
html.cursor-edge body {
  cursor: url("../assets/cursor/sword-sm.png") 0 1, auto;
  cursor: image-set(url("../assets/cursor/sword-sm.png") 1x, url("../assets/cursor/sword.png") 2x) 0 1, auto;
}
html.cursor-edge :is(a, button, select, summary, label.search, [role="tab"], .chips button, .bar) {
  cursor: url("../assets/cursor/sword-hot-sm.png") 0 1, pointer;
  cursor: image-set(url("../assets/cursor/sword-hot-sm.png") 1x, url("../assets/cursor/sword-hot.png") 2x) 0 1, pointer;
}
input { cursor: text; }
img { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: rgba(255, 155, 61, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 50;
  background: var(--panel-solid); padding: 10px 14px; border: 1px solid var(--bronze-dim);
}
.skip:focus { top: 12px; }

/* ---------- Сцена ---------- */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ground); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#scene { transform-origin: 50% 85%; will-change: transform; }
#fire { mix-blend-mode: screen; }
/* Дневной свет из окна: лучи рисуются резкими, размывает их CSS — так одинаково во всех браузерах */
#day { mix-blend-mode: screen; filter: blur(14px); opacity: 0; pointer-events: none; }
#ash { opacity: .7; }
.fog {
  position: absolute; inset: -10% -20%; pointer-events: none; opacity: .3;
  background:
    radial-gradient(40% 18% at 30% 88%, rgba(150, 165, 185, .35), transparent 70%),
    radial-gradient(35% 14% at 75% 92%, rgba(150, 165, 185, .3), transparent 70%);
  filter: blur(18px);
  animation: fog 38s ease-in-out infinite alternate;
}
@keyframes fog { to { transform: translate3d(8%, -1%, 0); } }
/* Плёночное зерно: шум из SVG, который подрагивает по кадрам */
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-3%, 2%); } 33% { transform: translate(2%, -4%); }
  50% { transform: translate(-4%, -1%); } 67% { transform: translate(3%, 3%); } 83% { transform: translate(-1%, 4%); }
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 52%, rgba(4, 4, 6, .78) 100%),
    linear-gradient(to bottom, rgba(4, 4, 6, .55), transparent 18%, transparent 70%, rgba(4, 4, 6, .82));
}

/* ---------- Каркас ---------- */
.hud {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(300px, 360px) 1fr minmax(300px, 360px);
  gap: 24px; align-items: start;
  padding: calc(var(--edge) + 8px) var(--edge) 0;
  min-height: 100svh;
}
.col { display: flex; flex-direction: column; gap: 16px; }
.col-left { grid-column: 1; }
.col-right { grid-column: 3; }

/* ---------- Панели ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 21, 26, .74), var(--panel));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, .05);
  backdrop-filter: blur(7px) saturate(.85);
  -webkit-backdrop-filter: blur(7px) saturate(.85);
  padding: 18px 18px 16px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.panel.in { opacity: 1; transform: none; }
.corner { position: absolute; width: 7px; height: 7px; border: 1px solid var(--bronze); background: var(--panel-solid); transform: rotate(45deg); }
.c1 { left: -4px; top: -4px; } .c2 { right: -4px; top: -4px; } .c3 { left: -4px; bottom: -4px; } .c4 { right: -4px; bottom: -4px; }

.panel-title {
  font: 600 24px/1.1 var(--caps); letter-spacing: .03em; color: var(--ink);
}
.panel-title::after {
  content: ''; display: block; height: 1px; margin-top: 10px;
  background: linear-gradient(90deg, var(--bronze) 0, rgba(198, 165, 108, .25) 40%, transparent);
}
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.title-row .panel-title { flex: 1; }
.panel-sub { font-size: 15px; color: var(--muted); }
.title-row .panel-sub { white-space: nowrap; }
.offerings .panel-sub { margin-top: 8px; }
.muted { color: var(--muted); }

/* Профиль */
.profile-head { display: flex; gap: 16px; align-items: center; }
.avatar { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--bronze); outline: 3px solid rgba(10, 11, 14, .9); outline-offset: -4px; }
.nick { font: 700 32px/1 var(--caps); letter-spacing: .02em; }
.epithet { color: var(--ink-2); font-style: italic; margin-top: 2px; }
.live-pill { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #55514a; box-shadow: 0 0 0 3px rgba(85, 81, 74, .2); }
[data-live="on"] .dot { background: var(--ember); box-shadow: 0 0 0 3px rgba(255, 155, 61, .2), 0 0 12px var(--ember); animation: ember 1.8s ease-in-out infinite; }
[data-live="on"] .live-text { color: var(--ember-hi); }
@keyframes ember { 50% { box-shadow: 0 0 0 5px rgba(255, 155, 61, .08), 0 0 18px var(--ember); } }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 18px 0 4px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dd { font: 600 30px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.facts dt { font-size: 15px; color: var(--muted); }
.last { margin-top: 16px; display: grid; gap: 2px; }
.last-h { font: 600 18px/1.2 var(--caps); color: var(--ink-2); margin-bottom: 6px; }
.last a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; margin: 0 -10px; transition: background .25s; }
.last a:hover { background: rgba(198, 165, 108, .08); }
.last .t { color: var(--ink); }
.last .m { color: var(--muted); font-size: 15px; white-space: nowrap; }

/* Подношения */
.donate { display: grid; gap: 8px; margin-top: 14px; }
.don {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: rgba(198, 165, 108, .06); border: 1px solid rgba(198, 165, 108, .16);
  transition: background .25s, border-color .25s, transform .2s var(--ease);
}
.don:hover { background: rgba(255, 155, 61, .12); border-color: rgba(255, 155, 61, .45); }
.don:active { transform: translateY(1px); }
.don-mark {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  font: 700 15px/1 var(--caps); letter-spacing: .04em; color: #1a120a; background: var(--bronze);
}
.don[data-id="da"] .don-mark { background: #f57d07; }
.don[data-id="dp"] .don-mark { background: #e8c35c; }
.don[data-id="ma"] .don-mark { background: #d7cab0; }
.don-mark.has-logo { background: none; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.don-mark.has-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.don-name { font: 600 19px/1.1 var(--serif); }
.don-note { font-size: 14px; color: var(--muted); }
.don svg { margin-left: auto; color: var(--muted); font-size: 18px; transition: color .25s, transform .25s var(--ease); }
.don:hover svg { color: var(--ember-hi); transform: translate(2px, -2px); }

.crypto { display: grid; gap: 8px; margin-top: 14px; }
.coin { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 4px 8px 0; }
.coin > svg { font-size: 26px; color: var(--ink-2); }
.coin[data-coin="BTC"] > svg { color: #e9a23b; }
.coin[data-coin="USDT"] > svg { color: #3fae8c; }
.coin-name { font: 600 16px/1.1 var(--serif); }
.coin-name span { color: var(--muted); font-weight: 500; }
.coin-addr { font: 500 13px/1.35 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; font-variant-numeric: lining-nums; letter-spacing: .01em; color: var(--ink-2); word-break: break-all; user-select: all; margin-top: 2px; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; min-height: 40px;
  border: 1px solid rgba(198, 165, 108, .22); color: var(--ink-2); font-size: 14px;
  transition: border-color .2s, color .2s, background .2s;
}
.copy:hover { border-color: var(--bronze); color: var(--ink); }
.copy.done { color: var(--ember-hi); border-color: rgba(255, 155, 61, .5); }

/* Клипы */
.clip-list { display: grid; gap: 10px; margin-top: 12px; }
.clip a { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; }
.films-teaser .title-row { flex-direction: column; align-items: stretch; gap: 6px; }
.films-teaser .title-row .panel-sub { order: 2; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.9); transition: transform .6s var(--ease), filter .4s; }
.clip a:hover .thumb img { transform: scale(1.06); filter: none; }
.dur { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; background: rgba(0, 0, 0, .78); font: 600 13px/1.4 var(--serif); font-variant-numeric: tabular-nums; }
.play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .3s; font-size: 28px; color: #fff; }
.clip a:hover .play { opacity: 1; }
.clip-title { font: 600 19px/1.15 var(--serif); }
.clip-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--bronze); font-size: 16px; }
.more:hover { color: var(--ember-hi); }

/* Косплеи */
.cos-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.cos button { display: block; width: 100%; text-align: left; }
.cos-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #000; border: 1px solid rgba(198, 165, 108, .16); }
.cos-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.85); transition: transform .7s var(--ease), filter .5s; }
.cos button:hover .cos-img img { transform: scale(1.06); filter: none; }
.cos-t { display: block; font: 600 16px/1.15 var(--serif); margin-top: 6px; }
.cos-f { display: block; font-size: 13px; color: var(--muted); }

/* Тизер фильмов */
.films-latest { display: grid; gap: 2px; margin: 12px 0 14px; }
.films-latest li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(198, 165, 108, .08); }
.films-latest li:last-child { border-bottom: 0; }
.fl-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-r { font: 700 18px/1 var(--serif); color: var(--ember-hi); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-r small { font-size: 13px; color: var(--muted); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px; padding: 10px 16px;
  font: 600 18px/1 var(--caps); letter-spacing: .03em;
  transition: transform .2s var(--ease), background .3s, box-shadow .3s, color .3s;
}
.btn-ember { color: #1d1208; background: linear-gradient(180deg, #f2b866, #d98a35); box-shadow: inset 0 1px 0 rgba(255, 240, 200, .5); }
.btn-ember:hover { box-shadow: inset 0 1px 0 rgba(255, 240, 200, .5), 0 0 24px rgba(255, 155, 61, .35); }
.btn-ember:active { transform: translateY(1px) scale(.99); }

/* ---------- Низ: имя-босс и соцсети ---------- */
.dock {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 3;
  transform: translateX(-50%); width: min(680px, calc(100vw - 2 * var(--edge) - 2 * 380px));
  min-width: 380px;
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
}
.boss { display: block; }
.boss-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.boss-name { font: 600 30px/1 var(--caps); letter-spacing: .04em; text-shadow: 0 2px 10px #000; }
.boss-state { font-size: 16px; color: var(--ink-2); text-shadow: 0 1px 6px #000; white-space: nowrap; }
.boss-bar {
  display: block; height: 11px; margin-top: 8px; position: relative; overflow: hidden;
  background: rgba(8, 8, 10, .8); border: 1px solid rgba(198, 165, 108, .45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7);
}
.boss-fill { position: absolute; inset: 1px; transform-origin: left; transform: scaleX(0); background: linear-gradient(180deg, var(--blood-hi), var(--blood) 60%, #5a0f0b); transition: transform 1.4s var(--ease); }
.boss[data-live="on"] .boss-fill { transform: scaleX(1); }
.boss[data-live="on"] .boss-fill::after {
  content: ''; position: absolute; inset: 0; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 210, 160, .35), transparent);
  animation: shine 3.2s ease-in-out infinite;
}
@keyframes shine { from { transform: translateX(-120%); } to { transform: translateX(420%); } }
.boss[data-live="off"] .boss-fill { transform: scaleX(.035); background: #3a3632; }
.boss-title { display: block; margin-top: 6px; font-size: 16px; color: var(--ink-2); text-shadow: 0 1px 6px #000; min-height: 1.5em; }
.boss[data-live="on"] .boss-state { color: var(--ember-hi); }
.boss:hover .boss-name { color: #fff; }

.socials { display: flex; justify-content: center; gap: 10px; }
.socials a {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 28px; color: var(--ink-2);
  border: 1px solid transparent; transition: color .25s, border-color .25s, background .25s, transform .2s var(--ease);
}
.socials a:hover { color: var(--ember-hi); border-color: rgba(255, 155, 61, .4); background: rgba(10, 11, 14, .6); }
.socials a:active { transform: translateY(1px); }

/* OnlyFans — вверху справа */
.of {
  position: fixed; right: var(--edge); top: var(--edge); z-index: 4;
  display: block; padding: 0; border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 6px 18px rgba(0, 0, 0, .45);
  opacity: .92; transition: opacity .25s, box-shadow .25s, transform .2s var(--ease);
}
.of img { display: block; width: 136px; height: auto; }
.of:hover { opacity: 1; box-shadow: 0 0 0 1px rgba(0, 174, 239, .7), 0 0 22px rgba(0, 174, 239, .35); }
.of:active { transform: scale(.96); }
.col-right { padding-top: 50px; padding-bottom: 50px; }

/* Записка на полу — сотрудничество */
.soapstone {
  position: fixed; right: var(--edge); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 3;
  display: flex; align-items: center; gap: 12px; max-width: 440px;
  font: 500 22px/1.3 var(--serif); color: #ffd9a8;
  text-shadow: 0 0 8px rgba(255, 140, 50, .85), 0 0 22px rgba(255, 110, 40, .45);
  transition: color .3s;
}
.soapstone b { font-weight: 700; color: #fff0d9; }
.soapstone:hover { color: #fff; }
.rune {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: radial-gradient(circle, #fff3dc 0 18%, #ff9b3d 36%, rgba(255, 120, 40, 0) 70%);
  animation: rune 3.4s ease-in-out infinite;
}
@keyframes rune { 50% { transform: scale(1.25); opacity: .7; } }

/* Субтитры — как реплика персонажа */
.subtitle {
  position: fixed; left: 50%; top: 38vh; z-index: 5; transform: translate(-50%, 8px);
  width: min(640px, 90vw); text-align: center; pointer-events: none;
  font: 500 23px/1.35 var(--serif); color: #f3ecdc;
  text-shadow: 0 2px 4px #000, 0 0 18px rgba(0, 0, 0, .9);
  opacity: 0; transition: opacity .6s ease, transform .6s var(--ease);
}
.subtitle.on { opacity: 1; transform: translate(-50%, 0); }
.subtitle .who { display: block; font: 600 16px/1 var(--caps); letter-spacing: .08em; color: var(--bronze); margin-bottom: 6px; }

/* ---------- Выезжающий список фильмов ---------- */
.scrim { position: fixed; inset: 0; z-index: 8; background: rgba(3, 3, 5, .55); opacity: 0; transition: opacity .5s ease; }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9;
  width: min(760px, 100vw); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #121318, #0b0c0f 40%);
  border-left: 1px solid var(--bronze-dim);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .6);
  transform: translateX(104%); transition: transform .75s cubic-bezier(.16, 1, .3, 1);
}
.drawer.open { transform: none; }
.drawer::before { content: ''; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--bronze), transparent); }
.drawer-head { display: flex; justify-content: space-between; gap: 16px; padding: 26px 28px 12px; }
.drawer-title { font: 600 38px/1 var(--caps); letter-spacing: .02em; }
.drawer-sub { color: var(--muted); margin-top: 6px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; font-size: 22px; color: var(--ink-2); border: 1px solid var(--line); flex: none; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--ink); border-color: var(--bronze); }

.tabs { display: flex; gap: 4px; padding: 6px 28px 0; border-bottom: 1px solid var(--line); }
.tabs button { padding: 12px 14px 10px; font: 600 19px/1 var(--caps); color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.tabs button:hover { color: var(--ink-2); }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ember); }
.tabs .n { font: 500 15px/1 var(--serif); color: var(--muted); margin-left: 4px; }

.tools { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 28px 8px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); min-height: 44px; }
.search svg { color: var(--muted); font-size: 18px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 500 17px/1 var(--serif); padding: 10px 0; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--bronze); }
#sort { min-height: 44px; background: #15161b; color: var(--ink); border: 1px solid var(--line); font: 500 16px/1 var(--serif); padding: 0 10px; }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { padding: 7px 12px; font-size: 15px; color: var(--ink-2); border: 1px solid var(--line); transition: all .2s; }
.chips button:hover { border-color: var(--bronze); color: var(--ink); }
.chips button[aria-pressed="true"] { background: rgba(255, 155, 61, .14); border-color: rgba(255, 155, 61, .55); color: var(--ember-hi); }

.drawer-body { flex: 1; overflow-y: auto; padding: 4px 28px 28px; overscroll-behavior: contain; scrollbar-color: #3a342b transparent; }
.film {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(198, 165, 108, .09);
  opacity: 0; transform: translateX(24px); animation: row .55s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 28ms);
}
@keyframes row { to { opacity: 1; transform: none; } }
.film-t { font: 600 21px/1.2 var(--serif); }
.film-y { color: var(--muted); font-weight: 500; margin-left: 6px; font-size: 17px; }
.film-note { display: block; font-size: 14px; color: var(--muted); font-style: italic; margin-top: 2px; }
.film-badge { display: inline-block; margin-top: 4px; font: 600 13px/1 var(--caps); letter-spacing: .06em; color: #8fd0a8; }

.rate { display: grid; justify-items: end; gap: 6px; min-width: 132px; }
.rate-num { font: 700 30px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.rate-num small { font-size: 15px; color: var(--muted); font-weight: 500; }
.rate-tier { font: 600 13px/1 var(--caps); letter-spacing: .08em; color: var(--muted); }
.rate-line { display: flex; align-items: center; gap: 8px; }
.embers { display: flex; gap: 3px; }
.embers i { width: 5px; height: 14px; background: #2a2622; transform: skewX(-12deg); }
.embers i.lit { background: linear-gradient(180deg, var(--ember-hi), var(--ember)); box-shadow: 0 0 6px rgba(255, 155, 61, .55); }
.embers i.half { background: linear-gradient(180deg, var(--ember-hi) 0 50%, #2a2622 50%); }
.film[data-tier="fire"] .rate-num { color: var(--ember-hi); text-shadow: 0 0 14px rgba(255, 155, 61, .55); }
.film[data-tier="fire"] .rate-tier { color: var(--ember); }
.film[data-tier="coal"] .rate-tier { color: #d9a46a; }
.film[data-tier="ash"] .rate-num { color: #a49d90; }
.film[data-tier="ash"] .embers i.lit { background: #8b8378; box-shadow: none; }
.rate-text { font-style: italic; color: var(--ink-2); font-size: 17px; }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }
.drawer-foot { padding: 14px 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.drawer-foot a { color: var(--bronze); }
.drawer-foot a:hover { color: var(--ember-hi); }

/* ---------- Рекорды эфиров ---------- */
.btn-ghost {
  margin-top: 14px; min-height: 42px; font-size: 17px; color: var(--ink);
  border: 1px solid rgba(198, 165, 108, .35); background: rgba(198, 165, 108, .06);
}
.btn-ghost svg { color: var(--bronze); }
.btn-ghost:hover { border-color: var(--ember); background: rgba(255, 155, 61, .1); }
.btn-ghost:active { transform: translateY(1px); }

.drawer-left { right: auto; left: 0; border-left: 0; border-right: 1px solid var(--bronze-dim); transform: translateX(-104%); box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
.drawer-left::before { left: auto; right: -1px; }
.drawer-left.open { transform: none; }

.rec-body { padding-top: 8px; overflow-x: hidden; }
.rec-hero { padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.rec-kicker { font: 600 16px/1 var(--caps); letter-spacing: .08em; color: var(--bronze); }
.rec-big {
  font: 700 clamp(64px, 11vw, 112px)/.95 var(--serif); font-variant-numeric: lining-nums;
  color: var(--ember-hi); text-shadow: 0 0 34px rgba(255, 155, 61, .45); margin-top: 10px;
}
.rec-big small { font-size: 26px; font-weight: 500; color: var(--ink-2); text-shadow: none; }
.rec-when { color: var(--ink-2); margin-top: 6px; font-size: 18px; }

.rec-tabs { padding: 0; margin-top: 20px; }
.rec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 16px; background: var(--line); border: 1px solid var(--line); }
.rec-tile { background: #0e0f13; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 4px; animation: tile .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes tile { from { opacity: 0; transform: translateY(10px); } }
.rec-val { font: 700 34px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.rec-lab { font-size: 15px; color: var(--muted); }
.rec-note { font-size: 14px; color: var(--bronze); }

.rec-src { margin-top: 8px; font-size: 14px; color: var(--muted); }
.rec-src a { color: var(--bronze); }
.rec-src a:hover { color: var(--ember-hi); }
.rec-sec { margin-top: 32px; }
.rec-duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.rec-duo .rec-sec { margin-top: 32px; }

.best { margin-top: 12px; padding: 16px; border: 1px solid rgba(255, 155, 61, .3); background: linear-gradient(180deg, rgba(255, 155, 61, .08), rgba(255, 155, 61, .02)); }
.best-t { font: 600 22px/1.2 var(--serif); color: var(--ember-hi); }
.best-m { color: var(--muted); font-size: 15px; margin-top: 2px; }
.best-row { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px 20px; margin-top: 12px; }
.best-row div { display: flex; flex-direction: column; }
.best-row b { font: 700 24px/1.1 var(--serif); font-variant-numeric: lining-nums; }
.best-row span { font-size: 13px; color: var(--muted); }

.cats { display: grid; gap: 12px; margin-top: 14px; }
.cat-line { display: flex; justify-content: space-between; gap: 10px; }
.cat-line b { font-variant-numeric: lining-nums; color: var(--ember-hi); }
.cat-bar { display: block; height: 8px; margin-top: 6px; background: #1d1b18; }
.cat-bar span { display: block; height: 100%; background: linear-gradient(90deg, #8a3a12, var(--ember), var(--ember-hi)); transform-origin: left; }
.rec-anim .cat-bar span { animation: growx .9s var(--ease) both; animation-delay: calc(var(--i) * 120ms + 200ms); }
@keyframes growx { from { transform: scaleX(0); } }

.top-clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 12px; margin-top: 14px; counter-reset: none; }
.top-clips a { display: flex; flex-direction: column; gap: 8px; }
.tc-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.tc-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.85); transition: transform .6s var(--ease), filter .4s; }
.top-clips a:hover .tc-thumb img { transform: scale(1.06); filter: none; }
.tc-rank {
  position: absolute; left: 0; top: 0; min-width: 30px; padding: 3px 8px; text-align: center;
  font: 700 17px/1.2 var(--serif); font-variant-numeric: lining-nums; color: #1d1208; background: var(--bronze);
}
.top-clips li:nth-child(1) .tc-rank { background: linear-gradient(180deg, #ffe2a8, #e9a23b); }
.top-clips li:nth-child(2) .tc-rank { background: #cfd3d8; }
.top-clips li:nth-child(3) .tc-rank { background: #c88a5a; }
.tc-txt { display: flex; flex-direction: column; gap: 1px; }
.tc-t { font: 600 17px/1.2 var(--serif); }
.tc-v { font-size: 14px; color: var(--ember-hi); font-variant-numeric: lining-nums; }
.tc-m { font-size: 13px; color: var(--muted); }
.top-clips a:hover .tc-t { color: #fff; }

.rec-chart { margin-top: 32px; }
.rec-h { font: 600 26px/1.1 var(--caps); }
.rec-hint { color: var(--muted); font-size: 15px; margin-top: 4px; }
.bars {
  position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; align-items: end;
  height: 220px; margin: 22px 0 34px 30px; border-bottom: 1px solid rgba(198, 165, 108, .35);
}
.grid-l { position: absolute; left: -30px; right: 0; border-top: 1px dashed rgba(198, 165, 108, .12); font-size: 12px; color: var(--muted); line-height: 0; padding-top: 0; }
.bar { position: relative; height: 100%; outline-offset: 2px; }
.bar-fill {
  position: absolute; left: 18%; right: 18%; bottom: 0; transform-origin: bottom;
  background: linear-gradient(180deg, var(--ember-hi), var(--ember) 45%, #8a3a12);
  box-shadow: 0 0 14px rgba(255, 155, 61, .25);
}
.rec-anim .bar-fill { animation: grow .8s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 150ms); }
@keyframes grow { from { transform: scaleY(0); } }
.bar-peak { position: absolute; left: 50%; width: 9px; height: 9px; margin: 0 0 -4px -4.5px; transform: rotate(45deg); background: #ffe7bd; box-shadow: 0 0 10px var(--ember); }
.bar-lab { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font-size: 13px; color: var(--muted); white-space: nowrap; }
.bar-tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 6px); z-index: 2;
  width: 210px; padding: 10px 12px; display: grid; gap: 2px; font-size: 14px; line-height: 1.3;
  background: #17181d; border: 1px solid var(--bronze-dim); color: var(--ink-2);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.bar-tip b { color: var(--ink); font-size: 15px; }
.bar-tip .g { color: var(--muted); font-style: italic; }
.bar:first-of-type .bar-tip, .bar:nth-of-type(2) .bar-tip { left: 0; transform: translate(0, 6px); }
.bar:last-child .bar-tip, .bar:nth-last-child(2) .bar-tip { left: auto; right: 0; transform: translate(0, 6px); }
.bar:hover .bar-tip, .bar:focus-visible .bar-tip { opacity: 1; transform: translate(-50%, 0); }
.bar:first-of-type:hover .bar-tip, .bar:nth-of-type(2):hover .bar-tip, .bar:last-child:hover .bar-tip, .bar:nth-last-child(2):hover .bar-tip,
.bar:first-of-type:focus-visible .bar-tip, .bar:nth-of-type(2):focus-visible .bar-tip, .bar:last-child:focus-visible .bar-tip, .bar:nth-last-child(2):focus-visible .bar-tip { transform: none; }
.bar:hover .bar-fill { filter: brightness(1.15); }

.rec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.rec-table th { text-align: left; font: 600 14px/1.2 var(--caps); letter-spacing: .05em; color: var(--muted); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.rec-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid rgba(198, 165, 108, .08); }
.rec-table td.n { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.rec-table td.g { color: var(--muted); font-size: 15px; }
.rec-table tr.best td { color: var(--ember-hi); }
.rec-table tr.best td.g { color: #d9a46a; }

/* ---------- Галерея косплея ---------- */
.gallery { padding: 0; border: 1px solid var(--bronze-dim); background: #0d0e12; color: var(--ink); width: min(980px, 94vw); max-height: 92vh; }
.gallery::backdrop { background: rgba(3, 3, 5, .78); }
.gallery[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.gallery-inner { padding: 24px; display: grid; gap: 16px; }
.gallery-head { display: flex; justify-content: space-between; gap: 16px; }
.gallery-photos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery-photos img { height: min(62vh, 560px); width: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery .btn { width: auto; justify-self: start; }

/* Плеер клипов: 16:9, целиком помещается в окно по высоте */
.player { width: min(1100px, 94vw, calc((92vh - 190px) * 16 / 9 + 48px)); overflow: hidden; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid rgba(198, 165, 108, .18); }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .player-link { margin-top: 0; padding: 10px 16px; }
.player .player-link svg { color: #a970ff; }
@media (max-width: 640px) {
  .player { width: 100vw; max-width: 100vw; margin: auto 0; }
  .player .gallery-inner { padding: 14px 10px; gap: 12px; }
  .player .drawer-title { font-size: 26px; }
}

/* ---------- Адаптив ---------- */
@media (min-width: 1101px) and (max-height: 1040px) {
  .films-latest { margin: 8px 0 10px; gap: 0; }
  .films-latest li { padding: 3px 0; font-size: 16px; }
  .films-latest li:nth-child(n + 3) { display: none; }
  .films-teaser .btn { min-height: 42px; }
  .last { display: none; }
  .cos-img { aspect-ratio: 5 / 4; }
  .clip a { grid-template-columns: 100px 1fr; }
  .col { gap: 12px; }
  .col-right .panel { padding-top: 15px; padding-bottom: 14px; }
}
@media (max-width: 1320px) {
  .hud { grid-template-columns: 310px 1fr 310px; gap: 16px; }
  .dock { width: calc(100vw - 2 * var(--edge) - 2 * 326px); min-width: 300px; }
  .soapstone { max-width: 400px; font-size: 20px; }
  .boss-name { font-size: 26px; }
}

@media (max-width: 1100px) {
  body { font-size: 17px; background: var(--ground); }
  .hud {
    grid-template-columns: minmax(0, 560px); justify-content: center; padding: 0 16px 40px; gap: 16px;
    padding-top: calc(100svh + 8px);
    background: linear-gradient(to bottom, transparent 100svh, rgba(8, 9, 12, .82) calc(100svh + 120px));
  }
  .col-left, .col-right { grid-column: 1; }
  .col-right { padding-top: 0; padding-bottom: 0; }
  .dock { position: absolute; top: calc(100svh - 196px); bottom: auto; width: auto; min-width: 0; left: 16px; right: 16px; transform: none; max-width: 560px; margin: 0 auto; }
  .soapstone { position: relative; right: auto; bottom: auto; margin: 0 auto 32px; padding: 0 16px; max-width: 592px; z-index: 2; }
  .boss-name { font-size: 28px; }
  .subtitle { font-size: 20px; top: 29svh; }
  .of { position: absolute; }
  .tools { grid-template-columns: 1fr; padding: 14px 18px 8px; }
  .drawer-head, .tabs, .drawer-body, .drawer-foot { padding-left: 18px; padding-right: 18px; }
  .drawer-title { font-size: 32px; }
}

@media (max-width: 640px) {
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .rec-duo { grid-template-columns: 1fr; gap: 0; }
  .top-clips { grid-template-columns: repeat(2, 1fr); }
  .best-row { grid-template-columns: repeat(2, auto); }
  .rec-val { font-size: 28px; }
  .bars { gap: 4px; height: 180px; }
  .bar-lab { font-size: 11px; }
  .bar:nth-child(odd of .bar) .bar-lab { visibility: hidden; }
  .rec-table th:nth-child(5), .rec-table td:nth-child(5) { display: none; }
}

@media (max-width: 520px) {
  .facts dd { font-size: 26px; }
  .clip a { grid-template-columns: 112px 1fr; }
  .rate { min-width: 0; }
  .embers i { width: 4px; height: 12px; }
  .tabs button { padding: 12px 8px 10px; font-size: 17px; }
  .gallery-photos { grid-auto-columns: 82%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .panel { opacity: 1; transform: none; }
  .film { opacity: 1; transform: none; }
}
