:root {
  --bg: #07070a;
  --bg2: #0e0d12;
  --panel: rgba(10, 12, 22, 0.88);
  --panel-solid: #0b0d18;
  --tooltip: #070b1c;
  --line: #3a3324;
  --gold: #f8b700;
  --gold2: #d4a64a;
  --gold-dim: #8f733a;
  --text: #e8dfc8;
  --text-dim: #a69c86;
  --text-faint: #6f685a;
  --q5: #ff8000;
  --q4: #a335ee;
  --q3: #0070dd;
  --q2: #1eff00;
  --q1: #9d9d9d;
  --era: #d9b45a;
  --era-ember: #ffe39a;
  --head: "Cormorant SC", "Forum", Georgia, serif;
  --deco: "Forum", "Cormorant SC", Georgia, serif;
  --body: "Alegreya", Georgia, serif;
  --ui: "Alegreya Sans SC", "Alegreya", sans-serif;
  --topbar: 58px;
  --tl-h: 168px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 18px/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { color: var(--gold); }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: #f8b70055; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050506; }
::-webkit-scrollbar-thumb { background: #2d2719; border: 2px solid #050506; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #4d4026; }
.hidden { display: none !important; }

#embers { position: fixed; inset: 0; pointer-events: none; z-index: 2; }

/* ---------- кнопки в стиле WoW ---------- */
.btn-wow {
  position: relative;
  padding: 10px 26px;
  background: linear-gradient(#7a0f0f, #3f0606 55%, #250303);
  border: 1px solid #c8a14a;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 #ffffff33, inset 0 0 0 2px #00000088, 0 2px 10px #000a;
  color: #ffd76a;
  font: 700 17px var(--ui);
  letter-spacing: .06em;
  text-shadow: 0 1px 2px #000;
  transition: filter .2s, transform .1s;
}
.btn-wow:hover { filter: brightness(1.25); color: #fff1b8; }
.btn-wow:active { transform: translateY(1px); }
.btn-wow.big { font-size: 22px; padding: 14px 44px; }
.btn-wow.ghost { background: linear-gradient(#1d1a14, #0d0b08); color: var(--gold2); }
.btn-wow.small { font-size: 14px; padding: 6px 14px; }

/* ---------- заставка ---------- */
#splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #000;
  transition: opacity 1.4s ease, visibility 1.4s;
}
#splash.gone { opacity: 0; visibility: hidden; }
.splash-bg {
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center, transparent 20%, #000 75%), var(--splash-img, none) center/cover;
  filter: saturate(1.1) brightness(.75);
  animation: kenburns 40s ease-in-out infinite alternate;
}
.splash-inner { position: relative; text-align: center; padding: 20px; }
.logo-mark { color: var(--gold); font-size: 34px; text-shadow: 0 0 20px #f8b700; animation: pulse 3s ease-in-out infinite; }
.logo {
  margin: 4px 0 6px;
  font: 700 clamp(44px, 9vw, 112px)/1 var(--head);
  letter-spacing: .03em;
  background: linear-gradient(180deg, #fff6c8 0%, #f8d056 35%, #c9871c 62%, #7a4a0c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #2b1800) drop-shadow(0 0 30px #f8a50066);
}
.logo-sub { font: 500 clamp(15px, 2vw, 21px) var(--ui); color: #d8c79a; letter-spacing: .12em; text-shadow: 0 2px 6px #000; }
.splash-actions { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.splash-note { margin-top: 18px; color: var(--text-dim); font-size: 15px; min-height: 22px; }
.splash-note a { border-bottom: 1px dotted; }

/* ---------- верхняя панель ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--topbar);
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px;
  background: linear-gradient(#141210f2, #0a0908e8);
  border-bottom: 1px solid #4a3d22;
  box-shadow: 0 1px 0 #000, 0 6px 22px #000c;
}
.brand { font: 700 22px var(--head); color: var(--gold); white-space: nowrap; letter-spacing: .02em; }
.brand-mark { text-shadow: 0 0 10px var(--gold); }
#nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
#nav::-webkit-scrollbar { display: none; }
#nav a {
  font: 500 15px var(--ui); letter-spacing: .05em; color: #c9bc9d;
  padding: 6px 12px; border-radius: 3px; white-space: nowrap;
}
#nav a:hover { color: #fff; background: #ffffff0d; }
#nav a.active { color: var(--gold); background: linear-gradient(#f8b70014, #f8b70024); box-shadow: inset 0 -2px 0 var(--gold); }
#search-btn {
  display: flex; align-items: center; gap: 8px;
  background: #0006; border: 1px solid #3b3222; border-radius: 4px;
  padding: 5px 10px; color: var(--text-dim); font: 500 14px var(--ui);
}
#search-btn kbd { font: 11px monospace; border: 1px solid #3b3222; padding: 1px 4px; border-radius: 3px; color: var(--text-faint); }
#player { display: flex; align-items: center; gap: 8px; min-width: 0; }
#pl-toggle, .track .tb, .btn-wow svg { display: inline-grid; place-items: center; }
.btn-wow svg { vertical-align: -2px; width: 12px; height: 12px; }
#pl-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(#3a2a08, #120c02); border: 1px solid var(--gold-dim); color: var(--gold);
  font-size: 13px; flex: none;
}
#pl-toggle.playing { box-shadow: 0 0 12px #f8b70077; }
.pl-info { width: 170px; overflow: hidden; line-height: 1.15; }
#pl-title { font: 500 13px var(--ui); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pl-from { font-size: 11px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pl-vol { width: 70px; accent-color: var(--gold2); }
#pl-auto { background: none; border: 1px solid #3b3222; border-radius: 3px; font: 500 11px var(--ui); padding: 3px 6px; color: var(--text-faint); }
#pl-auto.on { color: var(--gold); border-color: var(--gold-dim); }
#menu-btn { display: none; background: none; border: 0; font-size: 24px; color: var(--gold); }

#view { position: relative; z-index: 3; padding-top: var(--topbar); min-height: 100vh; }

/* ---------- ЛЕТОПИСЬ: сцена ---------- */
.chronicle { position: fixed; inset: var(--topbar) 0 0 0; overflow: hidden; }
.stage { position: absolute; inset: 0 0 var(--tl-h) 0; overflow: hidden; }
.stage-bg { position: absolute; inset: -30px; background-size: cover; background-position: center 25%; opacity: 0; transition: opacity 1.6s ease; }
.stage-bg.show { opacity: 1; animation: kenburns 30s ease-in-out infinite alternate; }
.stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #07070af5 0%, #07070ad0 30%, #07070a40 62%, #07070a10 100%),
    linear-gradient(0deg, #07070a 0%, transparent 30%),
    radial-gradient(ellipse at 70% 40%, transparent 30%, #0008 100%);
}
.era-glow { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at 15% 80%, color-mix(in srgb, var(--era) 22%, transparent), transparent 55%); transition: background 1.5s; }
.stage-card {
  position: absolute; z-index: 2; left: max(40px, 6vw); top: 50%; transform: translateY(-50%);
  width: min(640px, 88vw);
}
.stage-card > * { opacity: 0; transform: translateY(18px); }
.stage-card.in > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.stage-card.in > *:nth-child(2) { animation-delay: .08s; }
.stage-card.in > *:nth-child(3) { animation-delay: .16s; }
.stage-card.in > *:nth-child(4) { animation-delay: .26s; }
.stage-card.in > *:nth-child(5) { animation-delay: .36s; }
.stage-card.in > *:nth-child(6) { animation-delay: .46s; }
.stage-card.in > *:nth-child(7) { animation-delay: .56s; }
.stage-card.out > * { animation: sink .45s ease forwards; }
.era-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 13px var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--era);
}
.era-pill::before { content: ""; width: 34px; height: 1px; background: var(--era); box-shadow: 0 0 8px var(--era); }
.stage-year { font: 500 20px var(--deco); color: var(--text-dim); margin-top: 6px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qbadge { font: 700 12px var(--ui); letter-spacing: .08em; padding: 2px 8px; border: 1px solid currentColor; border-radius: 2px; background: #0008; }
.stage-title {
  margin: 8px 0 4px;
  font: 700 clamp(36px, 5.2vw, 72px)/1.02 var(--head);
  color: #ffe9a8;
  text-shadow: 0 0 1px #000, 0 3px 0 #2a1900, 0 0 40px #f8a50044;
}
.stage-sub { font: italic 400 clamp(18px, 2vw, 24px) var(--body); color: #d9c9a0; }
.stage-sum { margin: 16px 0 0; font-size: 19px; color: var(--text); max-width: 580px; text-shadow: 0 1px 4px #000; }
.stage-faces { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.face { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid #8f733a; box-shadow: 0 0 0 1px #000, 0 3px 8px #000; background: #1a1610 center/cover; display: block; transition: transform .2s, border-color .2s; }
.face:hover { transform: scale(1.12); border-color: var(--gold); }
.stage-actions { display: flex; gap: 12px; margin-top: 24px; align-items: center; flex-wrap: wrap; }
.stage-nav { position: absolute; z-index: 3; right: 24px; bottom: calc(var(--tl-h) + 20px); display: flex; gap: 8px; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(#2a1f0a, #0b0804); border: 1px solid var(--gold-dim); color: var(--gold); font-size: 22px; box-shadow: 0 4px 14px #000; transition: .2s; }
.round-btn:hover { box-shadow: 0 0 18px #f8b70066; border-color: var(--gold); }
.stage-counter { position: absolute; z-index: 3; right: 30px; top: 22px; font: 500 14px var(--ui); color: var(--text-faint); letter-spacing: .1em; text-align: right; }
.stage-counter b { color: var(--gold2); font-size: 22px; }
.era-intro {
  position: absolute; z-index: 4; inset: 0 0 var(--tl-h) 0; display: grid; place-items: center; text-align: center; pointer-events: none;
  background: radial-gradient(ellipse, #000c 10%, #0009 50%, transparent 80%);
  opacity: 0; transition: opacity .8s;
}
.era-intro.show { opacity: 1; }
.era-intro h2 { font: 700 clamp(40px, 7vw, 90px)/1 var(--head); margin: 0; color: var(--era); text-shadow: 0 0 40px var(--era), 0 4px 0 #000; }
.era-intro p { max-width: 640px; margin: 18px auto 0; font: italic 21px var(--body); color: #e9dcb8; padding: 0 20px; }
.era-intro .span { font: 500 15px var(--ui); letter-spacing: .25em; color: var(--text-dim); margin-top: 10px; }

/* ---------- ТАЙМЛАЙН ---------- */
.timeline {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--tl-h); z-index: 5;
  background: linear-gradient(#0d0b08ee, #050404);
  border-top: 1px solid #5a4a28;
  box-shadow: 0 -1px 0 #000, 0 -10px 30px #000c;
}
.tl-tools { position: absolute; top: 6px; left: 14px; right: 14px; display: flex; gap: 14px; align-items: center; z-index: 3; font: 500 12px var(--ui); color: var(--text-faint); letter-spacing: .06em; pointer-events: none; }
.tl-tools > * { pointer-events: auto; }
.tl-filter { display: flex; gap: 4px; }
.tl-filter button { background: #0008; border: 1px solid #2f2819; border-radius: 2px; padding: 1px 7px; font: 700 11px var(--ui); color: var(--text-faint); }
.tl-filter button.on { border-color: currentColor; }
.tl-filter button[data-q="5"].on { color: var(--q5); } .tl-filter button[data-q="4"].on { color: var(--q4); }
.tl-filter button[data-q="3"].on { color: #3a9bff; } .tl-filter button[data-q="2"].on { color: var(--q2); } .tl-filter button[data-q="1"].on { color: var(--q1); }
.tl-hint { margin-left: auto; }
.tl-scroll { position: absolute; inset: 26px 0 0 0; overflow-x: auto; overflow-y: hidden; cursor: grab; scrollbar-width: thin; }
.tl-scroll.drag { cursor: grabbing; }
.tl-track { position: relative; height: 100%; }
.tl-axis { position: absolute; left: 0; right: 0; top: 74px; height: 2px; background: linear-gradient(90deg, transparent, #6b5630 3%, #6b5630 97%, transparent); }
.tl-era {
  position: absolute; top: 0; bottom: 0;
  border-left: 1px solid #ffffff10;
}
.tl-era-label {
  position: sticky; left: 0; display: inline-block; padding: 2px 10px;
  font: 700 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: var(--c); text-shadow: 0 0 8px #000; cursor: pointer;
}
.tl-era-label:hover { text-shadow: 0 0 10px var(--c); }
.tl-era-band { position: absolute; left: 0; right: 0; top: 72px; height: 6px; background: var(--c); opacity: .35; }
.tl-era.cur .tl-era-band { opacity: .9; box-shadow: 0 0 12px var(--c); }
.tl-era.cur { background: linear-gradient(transparent, color-mix(in srgb, var(--c) 7%, transparent)); }
.tl-ev {
  position: absolute; top: 75px; transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0; z-index: 2;
}
.gem {
  display: block; width: var(--s); height: var(--s); transform: rotate(45deg);
  background: radial-gradient(circle at 35% 30%, #fff9 0%, var(--q) 35%, color-mix(in srgb, var(--q) 55%, #000) 100%);
  border: 1px solid #000; box-shadow: 0 0 0 1px color-mix(in srgb, var(--q) 60%, #fff3), 0 0 calc(var(--s) * .6) color-mix(in srgb, var(--q) 70%, transparent);
  transition: transform .25s, box-shadow .25s;
}
.tl-ev:hover .gem { transform: rotate(45deg) scale(1.35); }
.tl-ev.cur .gem { transform: rotate(45deg) scale(1.5); box-shadow: 0 0 0 2px #fff, 0 0 24px var(--q), 0 0 50px var(--q); animation: pulse 2s infinite; }
.tl-lbl {
  position: absolute; left: 50%; transform: translateX(-50%);
  font: 500 12px/1.15 var(--ui); white-space: nowrap; color: #cfc2a3; text-shadow: 0 1px 3px #000;
  pointer-events: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis;
}
.tl-lbl.up { bottom: calc(100% + 10px); }
.tl-lbl.down { top: calc(100% + 12px); }
.tl-yr { display: block; color: var(--text-faint); font-size: 10.5px; }
.tl-ev.q5 .tl-lbl { color: #ffc27a; font-size: 13px; }
.tl-ev.cur .tl-lbl { color: #fff; }
.tl-ev .tl-lbl.hov { opacity: 0; transition: opacity .2s; }
.tl-ev:hover .tl-lbl.hov, .tl-ev.cur .tl-lbl.hov { opacity: 1; }
.tl-tip {
  position: fixed; z-index: 60; pointer-events: none; max-width: 320px;
  background: var(--tooltip); border: 1px solid #5d5d7a; border-radius: 4px; padding: 8px 11px;
  box-shadow: 0 0 0 1px #000, 0 6px 20px #000; font-size: 14px; line-height: 1.4;
}
.tl-tip b { display: block; font: 700 15px var(--body); }
.tl-tip .y { color: var(--text-dim); font-size: 12px; }

/* ---------- страницы ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 34px 24px 90px; }
.page-head { text-align: center; margin: 14px 0 30px; }
.page-head h1 { font: 700 clamp(34px, 5vw, 58px)/1.05 var(--head); margin: 0; color: #ffe1a0; text-shadow: 0 3px 0 #2a1900, 0 0 30px #f8a50033; }
.page-head p { color: var(--text-dim); font-style: italic; margin: 8px auto 0; max-width: 720px; }
.divider { height: 18px; margin: 26px auto; max-width: 520px; background: radial-gradient(circle, var(--gold) 0 3px, transparent 4px) center/18px 18px no-repeat, linear-gradient(90deg, transparent, var(--gold-dim) 30%, transparent 48%, transparent 52%, var(--gold-dim) 70%, transparent) center/100% 1px no-repeat; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.filters input, .filters select {
  background: #0c0b09; border: 1px solid #3b3222; color: var(--text); border-radius: 3px;
  padding: 8px 12px; font: 16px var(--body); min-width: 0;
}
.filters input { width: 300px; max-width: 100%; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.chip-btn { background: #0c0b09; border: 1px solid #3b3222; border-radius: 14px; padding: 3px 12px; font: 500 14px var(--ui); color: var(--text-dim); }
.chip-btn.on { color: var(--gold); border-color: var(--gold-dim); background: #f8b70012; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.card {
  position: relative; display: block; border-radius: 4px; overflow: hidden;
  background: #0d0c0a; border: 1px solid #2c261a;
  box-shadow: 0 4px 14px #000a; transition: transform .25s, border-color .25s, box-shadow .25s;
  color: var(--text);
}
.card:hover { transform: translateY(-4px); border-color: var(--gold-dim); box-shadow: 0 10px 28px #000, 0 0 18px #f8b70022; color: var(--text); }
.card-img { aspect-ratio: 4/5; background: #15120c center 20%/cover; position: relative; }
.card-img.wide { aspect-ratio: 16/9; }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, #0d0c0a); }
.card-img.noimg { display: grid; place-items: center; font: 700 54px var(--head); color: #3a3121; background: radial-gradient(#1d1912, #0d0c0a); }
.card-body { padding: 10px 12px 13px; margin-top: -40px; position: relative; z-index: 1; }
.card-name { font: 700 19px/1.15 var(--body); }
.card-sub { font-size: 13.5px; color: var(--text-dim); line-height: 1.3; margin-top: 3px; }
.card.stub { opacity: .62; }
.t5 .card-name, .c-q5 { color: var(--q5); } .t4 .card-name, .c-q4 { color: #c065ff; } .t3 .card-name, .c-q3 { color: #3a9bff; } .t2 .card-name, .c-q2 { color: var(--q2); } .t1 .card-name, .c-q1 { color: #c8c8c8; }

.group-title { font: 700 26px var(--head); color: var(--gold2); margin: 38px 0 14px; display: flex; align-items: center; gap: 14px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); }
.group-title small { font: 500 14px var(--ui); color: var(--text-faint); }

/* ---------- статья ---------- */
.hero { position: relative; height: min(62vh, 560px); overflow: hidden; }
.hero-bg { position: absolute; inset: -20px; background: #111 center 25%/cover; animation: kenburns 40s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#07070a55, transparent 30%, #07070acc 78%, var(--bg)), radial-gradient(ellipse at center, transparent 40%, #0009); }
.hero-inner { position: absolute; z-index: 1; left: 0; right: 0; bottom: 26px; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.hero-kicker { font: 700 13px var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--era); }
.hero h1 { font: 700 clamp(38px, 6vw, 78px)/1.02 var(--head); margin: 6px 0 6px; color: #ffe7a6; text-shadow: 0 3px 0 #2a1900, 0 0 40px #000; }
.hero .sub { font: italic clamp(18px, 2.2vw, 25px) var(--body); color: #e0cfa3; text-shadow: 0 2px 8px #000; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 22px 24px 90px; }
.prose { min-width: 0; }
.prose .lead { font-size: 21px; color: #f1e6c9; font-style: italic; border-left: 3px solid var(--gold-dim); padding-left: 16px; margin: 6px 0 22px; }
.prose p { margin: 0 0 1.05em; text-align: justify; hyphens: auto; }
.prose > .body > p:first-child::first-letter {
  float: left; font: 700 4.2em/0.85 var(--head); margin: 6px 10px 0 0; color: var(--gold);
  text-shadow: 0 2px 0 #3a2200, 0 0 18px #f8a50055;
}
.prose h2 { font: 700 28px var(--head); color: var(--gold2); margin: 36px 0 14px; display: flex; gap: 12px; align-items: center; }
.prose h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-dim), transparent); }
.quote {
  position: relative; margin: 28px 0; padding: 22px 28px 18px 60px;
  background: linear-gradient(90deg, #f8b7000f, transparent); border-left: 2px solid var(--gold-dim);
  font: italic 22px/1.5 var(--body); color: #f4e4b5;
}
.quote::before { content: "“"; position: absolute; left: 14px; top: -6px; font: 700 80px var(--head); color: var(--gold-dim); }
.quote cite { display: block; margin-top: 8px; font: 500 15px var(--ui); font-style: normal; color: var(--text-dim); letter-spacing: .05em; }
.note-stub { padding: 18px; border: 1px dashed #3b3222; color: var(--text-dim); border-radius: 4px; }

/* инфобокс — как тултип вовхеда */
.infobox {
  position: sticky; top: calc(var(--topbar) + 16px);
  background: var(--tooltip); border: 1px solid #535b80; border-radius: 5px;
  box-shadow: 0 0 0 1px #000, 0 10px 30px #000c; overflow: hidden; align-self: start;
}
.infobox .ib-img { aspect-ratio: 1; background: #111 center 20%/cover; cursor: zoom-in; border-bottom: 1px solid #2a3050; }
.infobox .ib-body { padding: 14px 16px; font-size: 15px; line-height: 1.45; }
.ib-name { font: 700 21px var(--body); }
.ib-en { color: var(--text-faint); font-size: 13.5px; margin-bottom: 8px; }
.ib-row { display: flex; gap: 10px; padding: 5px 0; border-top: 1px solid #ffffff0d; }
.ib-row .k { color: #ffd100; flex: none; width: 96px; font-size: 13.5px; }
.ib-row .v { color: #fff; }
.ib-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid #ffffff12; }
.ext { display: inline-flex; gap: 6px; align-items: center; font: 500 13px var(--ui); padding: 4px 10px; border-radius: 3px; border: 1px solid #3f4668; color: #a9c7ff; background: #0d1430; }
.ext:hover { color: #fff; border-color: #7282c0; }
.ext.wh { color: #ffcf63; border-color: #6d5520; background: #1f1608; }

/* связанные списки */
.links-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ent {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 3px;
  border: 1px solid #2c261a; border-radius: 24px; background: #0d0c0a; font: 500 15px var(--body);
  transition: border-color .2s, background .2s;
}
.ent:hover { border-color: var(--gold-dim); background: #18140c; }
.ent .face { width: 30px; height: 30px; border-width: 1px; }
.ent .rel { color: var(--text-faint); font-size: 12.5px; }
.ent.noface { padding-left: 12px; }

.mini-tl { position: relative; margin: 8px 0 0; padding-left: 26px; }
.mini-tl::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold-dim), #2c261a); }
.mini-tl a { position: relative; display: block; padding: 7px 0; color: var(--text); }
.mini-tl a::before { content: ""; position: absolute; left: -23px; top: 15px; width: 10px; height: 10px; transform: rotate(45deg); background: var(--q); box-shadow: 0 0 8px var(--q); }
.mini-tl a:hover b { color: var(--gold); }
.mini-tl small { color: var(--text-faint); margin-right: 8px; font: 500 13px var(--ui); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gallery button { padding: 0; border: 1px solid #2c261a; border-radius: 3px; aspect-ratio: 4/3; background: #111 center/cover; transition: .25s; }
.gallery button:hover { border-color: var(--gold-dim); filter: brightness(1.15); transform: scale(1.02); }

.game-list { display: grid; gap: 8px; }
.game-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; background: var(--tooltip); border: 1px solid #2a3050; border-radius: 4px; }
.game-kind { flex: none; font: 700 11px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: #8ea2d8; border: 1px solid #2a3050; border-radius: 2px; padding: 2px 6px; margin-top: 3px; min-width: 76px; text-align: center; }
.game-item .nm { font-weight: 700; }
.game-item .nt { color: var(--text-dim); font-size: 15px; }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.video { position: relative; aspect-ratio: 16/9; border: 1px solid #2c261a; border-radius: 4px; overflow: hidden; background: #000 center/cover; cursor: pointer; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 40%, #000d); }
.video .play::before { content: ""; display: block; width: 64px; height: 64px; border-radius: 50%; background: #000a; border: 2px solid var(--gold); transition: .2s; grid-area: 1 / 1; }
.video .play::after { content: ""; grid-area: 1 / 1; width: 22px; height: 24px; margin-left: 5px; background: var(--gold); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video:hover .play::before { box-shadow: 0 0 24px #f8b700aa; transform: scale(1.08); }
.video .vt { position: absolute; left: 12px; right: 12px; bottom: 10px; font: 700 16px var(--body); text-shadow: 0 1px 4px #000; }
.video .vs { display: block; font: 500 12px var(--ui); color: var(--text-dim); }

.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 46px; }
.pager a { flex: 1; padding: 14px 18px; border: 1px solid #2c261a; border-radius: 4px; background: #0d0c0a; }
.pager a:hover { border-color: var(--gold-dim); }
.pager small { display: block; color: var(--text-faint); font: 500 12px var(--ui); letter-spacing: .1em; }
.pager .r { text-align: right; }

/* музыка */
.tracks { display: grid; gap: 8px; }
.track { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #0d0c0a; border: 1px solid #2c261a; border-radius: 4px; cursor: pointer; }
.track:hover { border-color: var(--gold-dim); }
.track.now { border-color: var(--gold); box-shadow: 0 0 14px #f8b70022; }
.track .tb { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-dim); color: var(--gold); flex: none; font-size: 12px; }
.track .tt { font-weight: 700; }
.track .tf { color: var(--text-faint); font-size: 14px; }
.track .era-tag { margin-left: auto; font: 500 12px var(--ui); color: var(--c); letter-spacing: .08em; }

/* поиск */
.overlay { position: fixed; inset: 0; z-index: 80; background: #000c; backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; }
.search-box { margin-top: 12vh; width: min(720px, 92vw); background: var(--tooltip); border: 1px solid #535b80; border-radius: 6px; box-shadow: 0 20px 60px #000; overflow: hidden; }
#search-input { width: 100%; padding: 18px 20px; font: 21px var(--body); background: transparent; border: 0; border-bottom: 1px solid #2a3050; color: #fff; outline: none; }
#search-results { max-height: 60vh; overflow-y: auto; }
.sr { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: var(--text); }
.sr.sel, .sr:hover { background: #1a2246; color: #fff; }
.sr .face { width: 36px; height: 36px; border-width: 1px; }
.sr .k { margin-left: auto; font: 500 12px var(--ui); color: var(--text-faint); letter-spacing: .08em; }
.sr .en { color: var(--text-faint); font-size: 14px; }

/* лайтбокс */
#lightbox { align-items: center; }
#lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
#lightbox img { max-width: 90vw; max-height: 82vh; border: 1px solid var(--gold-dim); box-shadow: 0 0 60px #000; }
#lightbox figcaption { color: var(--text-dim); margin-top: 8px; font-size: 15px; }
.lb-nav, .lb-close { position: absolute; background: none; border: 0; color: var(--gold); font-size: 54px; padding: 20px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; } .lb-close { top: 10px; right: 10px; font-size: 30px; }

/* анимации */
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes sink { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-14px); } }
@keyframes pulse { 50% { filter: brightness(1.35); } }
.fade-in { animation: fadeIn .6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }

/* легенда важности */
.legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font: 500 13px var(--ui); color: var(--text-dim); }
.legend span::before { content: "◆ "; color: var(--q); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .pl-info { width: 110px; }
  #search-btn kbd, #pl-vol { display: none; }
}
@media (max-width: 900px) {
  :root { --tl-h: 150px; }
  .article { grid-template-columns: 1fr; }
  .infobox { position: static; max-width: 420px; }
  #nav { position: fixed; top: var(--topbar); left: 0; right: 0; flex-direction: column; background: #0b0a08f8; border-bottom: 1px solid #4a3d22; padding: 8px; display: none; }
  #nav.open { display: flex; }
  #menu-btn { display: block; margin-left: auto; }
  .brand { font-size: 18px; }
  #search-btn { padding: 5px 8px; font-size: 0; } #search-btn span { font-size: 18px; }
  .pl-info, #pl-auto { display: none; }
  .stage-card { left: 16px; width: calc(100vw - 32px); top: 14px; transform: none; }
  .stage-title { font-size: 34px; margin-top: 4px; }
  .stage-sub { font-size: 17px; }
  .stage-sum { font-size: 15.5px; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .stage-faces { margin-top: 12px; }
  .stage-faces .face { width: 36px; height: 36px; }
  .stage-faces .face:nth-child(n+7) { display: none; }
  .stage-actions { margin-top: 14px; }
  .stage::after { background: linear-gradient(#07070ae0 0%, #07070ab0 55%, #07070a50 80%), linear-gradient(0deg, #07070a 0%, transparent 30%); }
  .hero { height: 46vh; }
  .stage-nav { right: 12px; bottom: calc(var(--tl-h) + 10px); }
  .round-btn { width: 44px; height: 44px; }
  .stage-counter { display: none; }
  .tl-hint { display: none; }
  .page { padding: 20px 16px 70px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .prose p { text-align: left; }
}
