/* ==========================================================================
   FASOOLLKA — Летопись ада / Летопись рая (этап 8)
   Поиск, подсказка про Telegram и подвал — общие с кинотеатром (cinema.css
   подключается на этой странице тоже), кнопки записей .rec — оттуда же.
   1. Страница, цвета видов стримов, шапка с печатью времени
   2. Карта летописи (SVG: тропа по годам, месяцы-кружки, значки событий)
   3. Месяц: календарь и список стримов, результаты поиска
   4. События года
   4б. С кем были стримы — гости и статистика по ним (с 10.10.2026)
   5. Без даты, облегчённый режим, телефон
   Анимации — только transform / opacity (см. CLAUDE.md, раздел 9).
   ========================================================================== */

.chron {
    position: relative;
    z-index: 10;
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: clamp(10px, 2vh, 20px) clamp(16px, 3vw, 40px) 60px;
}

/* цвета видов стримов: g — игры, f — кино, s — сериалы, a — аниме, i — IRL, c — общение;
   отметок на кнопках: w — с гостями, o — шоу, m — марафоны; --tw — значок Twitch у статистики */
:root[data-theme="hell"] {
    --k-g: #ff3b52; --k-f: #ffb347; --k-s: #ff7ab6; --k-a: #b38cff; --k-i: #3fd99a; --k-c: #b99490;
    --k-w: #62c6ff; --k-o: #ffd84a; --k-m: #ff7a2a; --tw: #b48cff;
    --road: #ff3a1c; --road-hot: #ffd27a; --road-dim: rgba(255, 70, 40, .22);
    --st-bg: #1c0408; --st-line: rgba(255, 120, 90, .55); --ev-cut: #1c0408;
}
:root[data-theme="heaven"] {
    --k-g: #d23a4c; --k-f: #c48a12; --k-s: #b8458f; --k-a: #6a55e0; --k-i: #13946c; --k-c: #8a84a6;
    --k-w: #2a7fc4; --k-o: #b5780a; --k-m: #d0661a; --tw: #7a44e0;
    --road: #e2b54c; --road-hot: #fffbe8; --road-dim: rgba(214, 170, 74, .3);
    --st-bg: #fffdf6; --st-line: rgba(192, 138, 30, .6); --ev-cut: #fffdf6;
}

/* ---------- 1. Шапка ---------- */
.chron__hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "seal intro" "seal stats";
    align-items: center;
    gap: 8px clamp(18px, 3vw, 44px);
    padding: clamp(18px, 3vw, 36px) clamp(18px, 3.4vw, 48px);
    border-radius: 24px 24px 14px 14px;
    overflow: hidden;
    isolation: isolate;
}
:root[data-theme="hell"] .chron__hero {
    background:
        radial-gradient(70% 120% at 0% 50%, rgba(255, 40, 10, .22), transparent 60%),
        radial-gradient(60% 90% at 100% 100%, rgba(120, 0, 20, .4), transparent 70%),
        linear-gradient(180deg, rgba(26, 3, 8, .92), rgba(10, 2, 5, .9));
    box-shadow: inset 0 0 0 1px rgba(255, 110, 60, .3), 0 0 60px -14px rgba(255, 40, 0, .45), 0 30px 60px -30px #000;
}
:root[data-theme="heaven"] .chron__hero {
    background:
        radial-gradient(70% 120% at 0% 50%, rgba(255, 236, 170, .6), transparent 60%),
        radial-gradient(60% 90% at 100% 0%, rgba(196, 214, 255, .7), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 250, 238, .82));
    box-shadow: inset 0 0 0 1px rgba(214, 170, 74, .55), 0 0 60px rgba(255, 236, 170, .6), 0 30px 60px -30px rgba(70, 90, 160, .45);
}

/* печать времени: внешнее кольцо с годами медленно идёт по кругу, звезда — навстречу */
.chron__seal { position: relative; grid-area: seal; width: clamp(150px, 17vw, 236px); aspect-ratio: 1; }
.chron__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chron__seal-out { animation: sealTurn 180s linear infinite; }
.chron__seal-in { animation: sealTurn 120s linear infinite reverse; }
@keyframes sealTurn { to { transform: rotate(360deg); } }
.chron__seal-line { fill: none; stroke-width: 2.4; }
.chron__seal-line--thin { stroke-width: 1.2; }
.chron__seal-tick { stroke-width: 1.4; }
.chron__seal-year { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.chron__seal-star { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chron__seal-glass { stroke: none; }
:root[data-theme="hell"] .chron__seal svg { filter: drop-shadow(0 0 6px rgba(255, 40, 20, .75)); }
:root[data-theme="hell"] .chron__seal-line, :root[data-theme="hell"] .chron__seal-tick, :root[data-theme="hell"] .chron__seal-star { stroke: #ff4a2a; }
:root[data-theme="hell"] .chron__seal-year { fill: #ffc9a0; }
:root[data-theme="hell"] .chron__seal-disc { fill: #2a0508; stroke: #ff6a3a; stroke-width: 2; }
:root[data-theme="hell"] .chron__seal-glass { fill: #ffb36a; }
:root[data-theme="heaven"] .chron__seal svg { filter: drop-shadow(0 0 8px rgba(255, 220, 130, .9)); }
:root[data-theme="heaven"] .chron__seal-line, :root[data-theme="heaven"] .chron__seal-tick, :root[data-theme="heaven"] .chron__seal-star { stroke: #c4922a; }
:root[data-theme="heaven"] .chron__seal-year { fill: #8a5f12; }
:root[data-theme="heaven"] .chron__seal-disc { fill: #fffbe8; stroke: #d6a23a; stroke-width: 2; }
:root[data-theme="heaven"] .chron__seal-glass { fill: #c4922a; }

.chron__intro { grid-area: intro; min-width: 0; }
.chron__kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hot); }
:root[data-theme="heaven"] .chron__kicker { color: #a87a14; }
.chron__title {
    margin: 4px 0 10px;
    font-family: var(--serif);
    font-weight: 700;
    font-style: italic;
    font-size: clamp(40px, 6vw, 82px);
    line-height: .95;
}
:root[data-theme="hell"] .chron__title { color: #ffe6da; text-shadow: 0 0 6px #ff3a1a, 0 0 22px rgba(255, 30, 0, .9), 0 3px 0 #3a0006; animation: neon 5s steps(1) infinite; }
:root[data-theme="heaven"] .chron__title { color: #6a4a0a; text-shadow: 0 0 10px #fff, 0 0 24px #fff6d0, 0 1px 0 #fff; }
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }
.chron__lead { max-width: 64ch; font-size: clamp(15px, 1.4vw, 17px); color: var(--text-soft); }
.chron__lead b { color: var(--text); font-variant-numeric: tabular-nums; }
.chron__prologue { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; color: var(--text-faint); }
.chron__prologue .ico { font-size: 14px; color: var(--gold); }
/* ссылка на «Адские / Райские рекорды» (stats.php, с 9.10.2026) */
.chron__statlink { display: table; margin-top: 6px; font-size: 13.5px; color: var(--link); }
.chron__statlink:hover { text-decoration: underline; text-underline-offset: 3px; }

.chron__stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}
.chron__stats div { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ghost-bg); }
.chron__stats dt { font-size: 12px; color: var(--text-faint); }
.chron__stats dd { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.chron__stats small { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--text-faint); }

.page-history .controls { grid-template-columns: minmax(200px, 300px) 1fr; }
.page-history .controls .chips { justify-content: flex-start; gap: 6px; }
.page-history .controls .chip { padding: 0 12px; gap: 6px; }
.chip__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, var(--accent)) 30%, transparent); }
.chip[aria-selected="true"] .chip__dot { background: currentColor; box-shadow: none; }
/* отметки (с гостями, шоу, марафоны) — значком вместо точки */
.chip__ico { flex: none; width: 16px; height: 16px; --ev-cut: transparent; }
.chip__ico--w { color: var(--k-w); }
.chip__ico--o { color: var(--k-o); }
.chip__ico--m { color: var(--k-m); }
.chip[aria-selected="true"] .chip__ico { color: currentColor; }

/* общая панель карты, месяца, событий и гостей */
.chronmap, .month, .evts, .guests, .undated {
    border-radius: calc(var(--panel-radius) * 1.4);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}
:root[data-theme="hell"] :is(.chronmap, .month, .evts, .guests, .undated) { border-radius: 14px; }

/* ---------- 2. Карта летописи ---------- */
.chronmap { margin-top: 14px; padding: clamp(14px, 2vw, 24px); }
.chronmap__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 8px; }
.chronmap__title { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); }
.chronmap__hint { flex: 1 1 320px; font-size: 13.5px; color: var(--text-faint); }
.chronmap__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; width: 100%; margin: 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--text-soft); }
.chronmap__legend li { display: inline-flex; align-items: center; gap: 6px; }
.chronmap__legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chronmap__legend svg { width: 16px; height: 16px; color: var(--accent-hot); }

.chronmap__box { position: relative; }
.chronmap__svg { display: block; width: 100%; overflow: visible; user-select: none; }

/* тропа: широкое свечение, сама дорога и пунктир посередине */
.m-road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.m-road--glow { stroke: var(--road); stroke-width: 18; opacity: .16; }
.m-road--base { stroke: var(--road); stroke-width: 7; opacity: .75; }
.m-road--mid { stroke: var(--road-hot); stroke-width: 1.6; stroke-dasharray: 2 9; opacity: .85; }
.m-road--future { stroke: var(--road-dim); stroke-width: 4; stroke-dasharray: 1 10; }
.m-road--pre { stroke: var(--road-dim); stroke-width: 2; stroke-dasharray: 1 8; }
:root[data-theme="heaven"] .m-road--base { opacity: .9; }
:root[data-theme="heaven"] .m-road--glow { opacity: .35; stroke: #fff2c2; stroke-width: 20; }

.m-year { font-family: var(--serif); font-weight: 700; font-size: 30px; fill: var(--text); }
.m-year-sub { font-size: 12px; fill: var(--text-faint); }
:root[data-theme="hell"] .m-year { fill: #ffd9c8; paint-order: stroke; stroke: rgba(40, 0, 6, .85); stroke-width: 4px; }

/* месяц на карте */
/* карта появляется целиком (один слой), а не по кружку — фигуры внутри svg не анимируем */
.chronmap__svg.is-in { animation: mapIn .7s var(--ease-out) both; }
@keyframes mapIn { from { opacity: 0; transform: translateY(10px); } }
.m-st { cursor: pointer; outline: none; }
.m-st__hit { fill: transparent; }
.m-st__disc { fill: var(--st-bg); stroke: var(--st-line); stroke-width: 1.2; }
.m-st__seg { fill: none; }
.m-st__n { font-size: 11px; font-weight: 700; fill: var(--text); text-anchor: middle; dominant-baseline: central; pointer-events: none; font-variant-numeric: tabular-nums; }
.m-st__lbl { font-size: 11px; fill: var(--text-faint); text-anchor: middle; pointer-events: none; }
.m-st__ring { fill: none; stroke: var(--accent-hot); stroke-width: 2.4; opacity: 0; }
.m-st:hover .m-st__ring, .m-st:focus-visible .m-st__ring { opacity: .6; }
.m-st.is-sel .m-st__ring { opacity: 1; }
.m-st.is-sel .m-st__lbl { fill: var(--text); font-weight: 700; }
.m-st.is-dim { opacity: .22; }
.m-st--empty .m-st__disc { fill: none; stroke: var(--road-dim); stroke-width: 1.5; }
.m-st--future { cursor: default; }
.m-st--future .m-st__disc { fill: none; stroke: var(--road-dim); stroke-dasharray: 2 3; }
:root[data-theme="hell"] .m-st__disc { filter: drop-shadow(0 0 3px rgba(255, 40, 20, .45)); }

/* значки событий над месяцем */
.m-ev { cursor: pointer; }
.m-ev__bg { stroke-width: 1.4; }
:root[data-theme="hell"] .m-ev__bg { fill: #2a0508; stroke: rgba(255, 140, 100, .7); }
:root[data-theme="heaven"] .m-ev__bg { fill: #fffdf6; stroke: rgba(196, 146, 42, .8); }
.m-ev use { color: var(--ev-c, var(--accent-hot)); }
.m-ev:hover .m-ev__bg { stroke: var(--accent-hot); stroke-width: 2.2; }
.m-ev__more { font-size: 10.5px; font-weight: 700; fill: var(--text-soft); }
.m-ev.is-dim { opacity: .25; }

/* цвета событий */
[data-ev="game"], .ev--game { --ev-c: var(--k-g); }
[data-ev="done"], .ev--done { --ev-c: var(--gold); }
[data-ev="serial"], .ev--serial { --ev-c: var(--k-s); }
[data-ev="marathon"], .ev--marathon { --ev-c: #ff7a2a; }
[data-ev="travel"], .ev--travel { --ev-c: var(--k-i); }
[data-ev="race"], .ev--race { --ev-c: var(--k-f); }
[data-ev="holiday"], .ev--holiday { --ev-c: var(--k-a); }
[data-ev="milestone"], .ev--milestone { --ev-c: var(--accent); }
[data-ev="record"], .ev--record { --ev-c: #ffcf3a; }
[data-ev="start"], .ev--start { --ev-c: var(--accent-hot); }
[data-ev="star"], .ev--star { --ev-c: var(--gold); }
:root[data-theme="heaven"] :is([data-ev="marathon"], .ev--marathon) { --ev-c: #d0661a; }
:root[data-theme="heaven"] :is([data-ev="record"], .ev--record) { --ev-c: #c48a12; }

/* выбранный месяц: расходящееся кольцо (отдельный слой поверх карты — его ведёт видеокарта) */
.chronmap__pulse {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    border: 2px solid var(--accent-hot);
    pointer-events: none;
    opacity: 0;
    animation: mapPulse 2.2s ease-out infinite;
}
.chronmap__pulse[hidden] { display: none; }
@keyframes mapPulse { 0% { opacity: .9; transform: translate(var(--px, 0), var(--py, 0)) scale(.5); } 100% { opacity: 0; transform: translate(var(--px, 0), var(--py, 0)) scale(1.6); } }

.chronmap__tip {
    position: absolute;
    z-index: 5;
    left: 0;
    top: 0;
    width: max-content;
    max-width: min(300px, 80vw);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    background: var(--surface);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55);
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
}
.chronmap__tip[hidden] { display: none; }
.chronmap__tip b { display: block; font-family: var(--serif); font-size: 18px; text-transform: capitalize; }
.chronmap__tip .tip__kinds { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 4px 0; color: var(--text-soft); }
.chronmap__tip .tip__kinds i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--c); }
.chronmap__tip .tip__tw { display: flex; align-items: center; gap: 5px; margin: 2px 0 4px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.chronmap__tip .tip__tw .ico { font-size: 12px; color: var(--tw); }
.chronmap__tip .tip__ev { display: block; color: var(--text-soft); }
.chronmap__tip .tip__ev::before { content: "• "; color: var(--ev-c, var(--accent-hot)); }

/* ---------- 3. Месяц ---------- */
.chron__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    align-items: start;
    gap: clamp(14px, 1.6vw, 22px);
    margin-top: clamp(14px, 1.6vw, 22px);
}
.month { padding: clamp(14px, 2vw, 26px); min-width: 0; }
.month__head { display: flex; align-items: center; gap: 10px; }
.month__title { flex: 1; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; text-transform: capitalize; }
.month__title span { color: var(--text-faint); }
.month__title--plain { text-transform: none; }      /* «Стримы с Vatarls», «Поиск» — не месяц */
.month__nav {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--ghost-border);
    background: var(--ghost-bg);
    color: var(--text);
    cursor: pointer;
    transition: transform .25s var(--ease-out), border-color .2s ease;
}
.month__nav .ico { font-size: 16px; }
.month__nav--next .ico { transform: scaleX(-1); }
.month__nav:hover:not(:disabled) { border-color: var(--accent-hot); transform: scale(1.08); }
.month__nav:disabled { opacity: .35; cursor: default; }
.month__sum { margin: 4px 0 12px; color: var(--text-soft); font-size: 14.5px; }
.month__sum b { color: var(--text); }
/* итоги месяца на Twitch */
.month__tw {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin: -4px 0 14px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--tw) 35%, transparent);
    background: color-mix(in srgb, var(--tw) 8%, transparent);
    color: var(--text-soft);
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
}
.month__tw > .ico { font-size: 15px; color: var(--tw); margin-right: -6px; }
.month__tw-h { font-weight: 700; color: var(--text); }
.month__tw b { color: var(--text); }
.month__kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.month__kind { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--chip-bg); font-size: 12.5px; font-weight: 600; }
.month__kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.month__evs { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }

/* календарь месяца */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 18px; }
.cal__wd { padding: 2px 0 4px; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.cal__d {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 46px;
    padding: 6px 2px 5px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: none;
    color: var(--text-faint);
    font: inherit;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.cal__d.has { color: var(--text); background: var(--ghost-bg); border-color: var(--line); cursor: pointer; transition: border-color .2s ease, transform .25s var(--ease-out); }
.cal__d.has:hover, .cal__d.has:focus-visible { border-color: var(--accent-hot); transform: translateY(-2px); outline: none; }
.cal__d.is-off { color: var(--text-faint); opacity: .55; }
.cal__d.is-today { box-shadow: inset 0 0 0 2px var(--accent-hot); }
.cal__dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 34px; }
.cal__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cal__blank { min-height: 46px; }

/* стримы: по дням, каждый — ссылка на запись */
.sday + .sday { margin-top: 14px; }
.sday__h { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--text-soft); }
.sday__h span { color: var(--text-faint); font-weight: 500; }
.srows { display: flex; flex-direction: column; gap: 6px; }
.srow {
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 10px 9px 0;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--ghost-bg);
    color: var(--text);
    overflow: hidden;
    animation: srowIn .4s var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 18ms);
    transition: border-color .2s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}
@keyframes srowIn { from { opacity: 0; transform: translateY(8px); } }
.srow::before { content: ""; align-self: stretch; margin: -9px 0; background: var(--c, var(--k-c)); }
.srow:hover, .srow:focus-visible { border-color: var(--accent-hot); transform: translateX(3px); box-shadow: 0 10px 26px -16px var(--accent); outline: none; }
.srow.is-best { border-color: color-mix(in srgb, var(--accent-hot) 45%, var(--line)); }
.srow.is-hl { border-color: var(--accent-hot); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-hot) 45%, transparent), 0 10px 30px -12px var(--accent); }
.srow__t { min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.srow__t b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.srow__t small { font-size: 12.5px; color: var(--text-faint); }
.srow__t em { font-style: normal; color: var(--text-soft); }
/* статистика стрима на Twitch */
.srow__tw { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 12px; margin-top: 1px; font-size: 12.5px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.srow__tw .ico { font-size: 12px; color: var(--tw); margin-right: -6px; }
.srow__tw b { font-size: inherit; font-weight: 700; color: var(--text); }
.srow__tw em {
    padding: 0 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-hot) 16%, transparent);
    color: var(--accent-hot);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.6;
}
:root[data-theme="heaven"] .srow__tw em { color: #8a5f12; background: rgba(214, 170, 74, .22); }
/* кто был на стриме (с 10.10.2026) */
.srow__g { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; color: var(--text-soft); }
.srow__g .ico { width: 13px; height: 13px; color: var(--k-w); transform: translateY(2px); }
.srow__t .srow__g b { font-size: inherit; font-weight: 600; color: var(--text); }
.month__reset { flex: none; height: 34px; padding: 0 14px; font-size: 13px; }
.srow__go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--btn-text);
    background: var(--btn-bg);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
:root[data-theme="heaven"] .srow__go { border-radius: 999px; }
.srow__go .ico { font-size: 11px; }
.srow:hover .srow__go { box-shadow: var(--btn-glow); }
/* запись есть на YouTube (с 11.10.2026): справа от строки — кнопка «YouTube» (.ytbtn — base.css) */
.srow-w { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.srow__yt { height: auto; align-self: stretch; padding: 0 14px; animation: srowIn .4s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 18ms); }
:root[data-theme] .srow__yt { border-radius: 12px; }          /* как у строки и в раю (не «таблетка») */

.month__empty { padding: 18px; border-radius: 12px; border: 1px dashed var(--line); color: var(--text-soft); font-size: 14px; }
.month__more { display: flex; justify-content: center; margin-top: 14px; }
.found__group + .found__group { margin-top: 18px; }
.found__h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-family: var(--serif); font-weight: 700; font-size: 20px; text-transform: capitalize; }
.found__h button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 5px; }
.found__h small { font-family: var(--ui); font-size: 12.5px; font-weight: 500; color: var(--text-faint); text-transform: none; }

/* ---------- 4. События года ---------- */
.evts { position: sticky; top: 76px; display: flex; flex-direction: column; max-height: calc(100vh - 96px); padding: clamp(14px, 1.6vw, 20px); min-width: 0; }
.evts__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.evts__title { font-family: var(--serif); font-weight: 700; font-size: 26px; }
.evts__years { display: flex; flex-wrap: wrap; gap: 6px; }
.evts__years .chip { height: 32px; padding: 0 12px; font-size: 13px; }
.evts__list {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0 4px 0 0;
    list-style: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.ev { position: relative; padding-left: 22px; }
.ev::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.ev:first-child::before { top: 18px; }
.ev:last-child::before { bottom: calc(100% - 18px); }
.ev__btn {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-left: -22px;
    padding: 6px 8px 8px 0;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--text);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: background .2s ease;
}
.ev__btn:hover, .ev__btn:focus-visible { background: var(--ghost-bg); outline: none; }
.ev.is-hl .ev__btn { background: var(--chip-bg); }
.ev__ico {
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--ev-c, var(--accent-hot));
    background: var(--st-bg);
    color: var(--ev-c, var(--accent-hot));
}
.ev__ico svg { width: 16px; height: 16px; }
.ev__body { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.ev__date { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.ev__t { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.ev__x { font-size: 12.5px; color: var(--text-soft); overflow-wrap: anywhere; }
.ev__link { display: inline-block; margin: -4px 0 8px 18px; font-size: 12.5px; font-weight: 600; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.month .ev__link { margin: 2px 0 0 48px; }
.evts__empty { padding: 12px; color: var(--text-faint); font-size: 14px; }
.month .ev { padding-left: 0; }
.month .ev::before { display: none; }
.month .ev__btn { margin-left: 0; padding: 6px 8px; border: 1px solid var(--line); background: var(--ghost-bg); }

/* ---------- 4б. С кем были стримы ----------
   Список гостей: место, буква-значок, имя, полоска (сколько стримов — от самого частого гостя),
   период, часы, сколько раз Фасолька была у гостя в гостях, онлайн на Twitch; справа — число стримов.
   Полоска — одного цвета для всех (--ch-mark, как графики «Рекордов»). */
.guests { margin-top: clamp(14px, 1.6vw, 22px); padding: clamp(14px, 2vw, 26px); scroll-margin-top: 76px; }
.guests__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 8px; }
.guests__title { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); }
.guests__hint { flex: 1 1 320px; font-size: 13.5px; color: var(--text-faint); }
.guests__years { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.guests__years .chip { height: 32px; padding: 0 12px; font-size: 13px; }
.guests__lead { margin: 6px 0 14px; max-width: 90ch; color: var(--text-soft); font-size: 14.5px; }
.guests__lead b { color: var(--text); font-variant-numeric: tabular-nums; }
.guests__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gst {
    display: grid;
    grid-template-columns: 22px 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 10px 14px 10px 10px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--ghost-bg);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    animation: srowIn .4s var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 22ms);
    transition: border-color .2s ease, transform .3s var(--ease-out), box-shadow .3s ease;
}
.gst:hover, .gst:focus-visible { border-color: var(--accent-hot); transform: translateY(-2px); box-shadow: 0 10px 26px -16px var(--accent); outline: none; }
.gst.is-on { border-color: var(--accent-hot); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-hot) 45%, transparent); }
.gst__rank { font-size: 12px; font-weight: 700; color: var(--text-faint); text-align: right; font-variant-numeric: tabular-nums; }
.gst.is-top .gst__rank { color: var(--gold); }
.gst__ava {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--k-w) 60%, transparent);
    background: color-mix(in srgb, var(--k-w) 14%, var(--st-bg));
    color: var(--k-w);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 19px;
}
.gst.is-top .gst__ava { border-color: var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--st-bg)); }
.gst__main { min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.gst__name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.gst__bar { display: block; height: 6px; border-radius: 3px; background: var(--ch-wash); overflow: hidden; }
.gst__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ch-mark); transform: scaleX(var(--w, 0)); transform-origin: 0 50%; }
.gst__meta { font-size: 12.5px; color: var(--text-faint); }
.gst__tw { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.gst__tw .ico { font-size: 12px; color: var(--tw); }
.gst__tw b { color: var(--text); }
/* число — шрифтом текста (узорные цифры Cormorant: «11» читается как «I I»), колонка одной ширины —
   полоски во всех карточках одной длины и сравнимы */
.gst__n { display: flex; flex-direction: column; align-items: flex-end; width: 62px; line-height: 1.05; }
.gst__n b { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gst__n small { font-size: 11.5px; color: var(--text-faint); }
.guests__more { display: flex; justify-content: center; margin-top: 14px; }
.guests__more[hidden] { display: none; }

/* ---------- 5. Без даты, облегчённый режим, телефон ---------- */
.undated { margin-top: clamp(14px, 1.6vw, 22px); padding: 14px clamp(14px, 2vw, 24px); }
.undated[hidden] { display: none; }
.undated summary { cursor: pointer; font-weight: 600; color: var(--text-soft); }
.undated summary:hover { color: var(--text); }
.undated__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 6px; margin-top: 12px; }

.is-lite :is(.chronmap, .month, .evts, .guests, .undated) { -webkit-backdrop-filter: none; backdrop-filter: none; }
.is-lite .chron__seal-out, .is-lite .chron__seal-in { animation: none; }
.is-lite .chronmap__svg.is-in, .is-lite .srow, .is-lite .srow__yt, .is-lite .gst { animation: none; }
.is-lite .m-st__disc { filter: none; }
.is-min .chronmap__pulse, .is-min .chron__seal svg { animation: none; filter: none; }
.is-min .chronmap__pulse { display: none; }
@media (prefers-reduced-motion: reduce) {
    .chron__seal-out, .chron__seal-in, .chronmap__svg.is-in, .srow, .srow__yt, .gst, .chronmap__pulse { animation: none; }
}

@media (max-width: 1100px) {
    .chron__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .chron__cols { grid-template-columns: 1fr; }
    .evts { position: static; max-height: 70vh; }
}
@media (max-width: 760px) {
    /* телефон (с 15.10.2026): сразу после поиска — месяц со стримами, карта и события — ниже. Раньше до списка
       стримов было больше трёх экранов прокрутки (карта — 1 400 px) */
    .chron { display: flex; flex-direction: column; }
    .chron__cols { display: contents; }
    .chron > *, .chron__cols > * { min-width: 0; }
    .chron__hero { order: 1; }
    .chron > .controls { order: 2; }
    .chron > .cinema__note { order: 3; }
    .month { order: 4; margin-top: 10px; }
    .chronmap { order: 5; }
    .evts { order: 6; margin-top: 14px; }
    .guests { order: 7; }
    .undated { order: 8; }
    .chron > .cinema__foot { order: 9; }
    .chron__hero { grid-template-columns: 1fr; grid-template-areas: "intro" "stats"; }
    .chron__seal { position: absolute; top: -18px; right: -30px; width: 150px; opacity: .45; z-index: -1; }
    .page-history .controls { grid-template-columns: 1fr; }
    .m-year { font-size: 22px; }
    .srow { grid-template-columns: 4px minmax(0, 1fr); row-gap: 8px; }
    .srow::before { grid-row: 1 / span 2; }
    .srow__go { grid-column: 2; justify-self: start; height: 28px; }
    .srow__yt { padding: 0 11px; }
    .srow__yt span { display: none; }               /* на телефоне — только знак YouTube */
    .cal__d { min-height: 40px; font-size: 12px; }
    .gst { grid-template-columns: 18px 32px minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px 9px 6px; }
    .gst__ava { width: 32px; height: 32px; font-size: 16px; }
    .gst__n { width: 54px; }
    .gst__n b { font-size: 20px; }
}
@media (max-width: 600px) {
    .chron__hero { border-radius: 14px; }
    .chron__stats dd { font-size: 19px; }
}
