/* =========================================================
   ХК «Юпитер» — стили сайта
   Тема: космос + лёд. Оранжево-красный «Юпитер» и ледяной циан.
   Все цвета — в переменных ниже, меняются в одном месте.
   ========================================================= */

:root {
  /* Фон / поверхности (глубокий космический чёрный — как фон логотипа) */
  --bg: #0a0a0c;
  --bg-2: #17110d;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.11);

  /* Фирменный оранжевый клуба (#E06030) — планета Юпитер */
  --jupiter: #F2894A;   /* светлый край */
  --jupiter-2: #E06030; /* фирменный */
  --spot: #C1441A;      /* глубокий (Большое красное пятно) */

  /* Тёплый светлый акцент вместо голубого — в тон бренду */
  --ice: #FFB877;
  --ice-2: #74dd9b;     /* «зелёный успех» — для побед */
  --lose: #F0533B;      /* красный — для поражений */

  /* Цвета графиков (валидированы навыком dataviz для тёмной темы) */
  --c-goals: #E06030;   /* голы */
  --c-assists: #4A86D0; /* передачи */
  --c-win: #3E9A6A;     /* победы */
  --c-tie: #8A93A6;     /* ничьи (нейтральный) */
  --c-loss: #DA4E38;    /* поражения */

  /* Текст */
  --text: #f3ede7;
  --muted: #c3b3a4;
  --muted-2: #8b7d70;

  /* Прочее */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --grad-jupiter: linear-gradient(120deg, var(--jupiter) 0%, var(--jupiter-2) 52%, var(--spot) 100%);
  --grad-ice: linear-gradient(120deg, var(--ice) 0%, var(--jupiter-2) 100%);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 78% -12%, rgba(224,96,48,0.22) 0%, transparent 60%),
              radial-gradient(900px 600px at 8% 8%, rgba(224,96,48,0.10) 0%, transparent 55%),
              var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Unbounded", "Golos Text", sans-serif; font-weight: 700; letter-spacing: .5px; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Доступность: курсор на кликабельном + видимый фокус для клавиатуры */
button, .chip, .tab, .nav-toggle, .player, .photo { cursor: pointer; }
a:focus-visible, button:focus-visible, .chip:focus-visible, .tab:focus-visible,
.btn:focus-visible, .player:focus-visible, .photo:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 10px;
}

/* Появление секций при прокрутке (scroll-reveal, ставится через JS) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s ease-out, transform .55s ease-out; will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* Hero скрыт до анимации входа (Motion). Класс motion-ready ставится в <head>,
   снимается скриптом входа или авто-таймером — так нет «мигания» и нет риска остаться скрытым. */
.motion-ready .hero__logo,
.motion-ready .hero__eyebrow,
.motion-ready .hero__title,
.motion-ready .hero__subtitle,
.motion-ready .hero__actions,
.motion-ready .hero__stats { opacity: 0; }

/* Табличные (моноширинные) цифры для статистики — числа не «прыгают» */
.lb-table, .stat-card b, .player__stat b, .match__score, .match__day, .hero__stat b { font-variant-numeric: tabular-nums; }

/* ---------- Иконки (единый линейный стиль вместо эмодзи) ---------- */
.ico { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; vertical-align: -0.14em; }
.ico__svg { width: 1em; height: 1em; display: block; }
.subhead .ico, .leaders__title .ico, .dhl-link .ico, .tab .ico, .arena__badge .ico { margin-right: .35em; }
.contact-card__emoji, .arena__ic { color: var(--ice); }
.arena__ic { font-size: 19px; }
.holiday__emoji { color: var(--jupiter-2); }
.news-card__img { color: #2a1206; }
.video__play, .staff__ava { color: #1a0e05; }

.grad-text {
  background: var(--grad-jupiter);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.hidden { display: none !important; }

/* Звёздное небо */
#starfield {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; opacity: .8;
}

/* ================= ШАПКА ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(10, 10, 12, 0.92); box-shadow: 0 8px 30px rgba(0,0,0,.35); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { font-size: 30px; filter: drop-shadow(0 4px 14px rgba(255,159,67,.55)); }
.brand__logo-img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(224,96,48,.55)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.brand__tag { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav__cta {
  background: var(--grad-jupiter); color: #1a0e05 !important; font-weight: 700;
  box-shadow: 0 8px 22px rgba(255,107,61,.35);
}
.nav__cta:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--text); border-radius: 3px; transition: .3s; }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  padding: 40px clamp(16px, 4vw, 40px);
  overflow: hidden;
}
.hero__logo-wrap {
  position: absolute; right: clamp(-40px, 2vw, 60px); top: 50%; transform: translateY(-50%);
  width: clamp(300px, 40vw, 500px);
  z-index: 1; pointer-events: none; will-change: transform;
}
/* «Дыхание» планеты: мягкое свечение за логотипом пульсирует, сам логотип неподвижен */
.hero__logo-wrap::before {
  content: ""; position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,96,48,.38) 0%, transparent 62%);
  animation: glowBreath 5.5s ease-in-out infinite;
  z-index: -1;
}
@keyframes glowBreath { 50% { opacity: .45; transform: scale(.94); } }
.hero__logo {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 0 36px rgba(224,96,48,.3));
}

.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero__eyebrow {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; letter-spacing: 1px; color: var(--ice); margin-bottom: 22px;
}
.hero__title { font-size: clamp(52px, 10vw, 104px); margin: 0 0 10px; }
.hero__subtitle { font-size: clamp(17px, 2.4vw, 22px); color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 16px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, filter .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad-jupiter); color: #1a0e05; box-shadow: 0 12px 30px rgba(255,107,61,.4); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }

.hero__stats { display: flex; flex-wrap: wrap; gap: 30px; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat b { font-family: "Unbounded", sans-serif; font-size: 34px; background: var(--grad-ice); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__stat span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-size: 28px; color: var(--muted); animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ================= СЕКЦИИ ================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 40px); }
.section--alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(23,17,13,.55) 12%, rgba(23,17,13,.55) 88%, transparent);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 46px; }
.section__title { font-size: clamp(32px, 5vw, 52px); margin: 0 0 16px; }
.section__title::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 18px auto 0;
  border-radius: 2px; background: var(--grad-jupiter);
}
.section__lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.subhead { font-family: "Unbounded", sans-serif; font-size: 24px; margin: 44px 0 20px; }

/* ---------- Фильтры / табы ---------- */
/* Командное фото в разделе «Команда» */
.team-photo { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.team-photo img { width: 100%; height: auto; display: block; }

.filters, .tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip, .tab {
  padding: 9px 20px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--border); color: var(--muted); font-weight: 600; font-size: 15px;
  font-family: inherit; line-height: 1.15;   /* кнопки сами шрифт не наследуют (был системный); высота строки — как была у системного */
  cursor: pointer; transition: .2s;
}
.chip:hover, .tab:hover { color: var(--text); border-color: var(--ice); }
.chip.is-active, .tab.is-active {
  background: var(--grad-jupiter); color: #1a0e05; border-color: transparent;
}

/* ---------- Карточки игроков ---------- */
.players-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px;
}
.player {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.player:hover { transform: translateY(-6px); border-color: rgba(224,96,48,.6); box-shadow: var(--shadow); }
.player:hover .player__avatar { transform: scale(1.05); transition: transform .25s; }
.player__top {
  position: relative; height: 190px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(224,96,48,.16), transparent 60%);
}
.player__num {
  position: absolute; top: 2px; right: 12px; font-family: "Unbounded", sans-serif;
  font-size: 96px; font-weight: 700; color: rgba(255,255,255,.07);
  letter-spacing: -2px; line-height: 1; transition: color .25s;
}
.player:hover .player__num { color: rgba(224,96,48,.2); }
.player__avatar {
  width: 118px; height: 118px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Unbounded", sans-serif; font-size: 40px; font-weight: 700; color: #0a0a0a;
  box-shadow: 0 10px 30px rgba(0,0,0,.4); background: var(--grad-jupiter);
}
.player__avatar { position: relative; overflow: hidden; }
.player__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.player__body { padding: 16px 18px 20px; }
.player__name { font-family: "Unbounded", sans-serif; font-size: 21px; margin: 0 0 4px; }
.player__pos {
  display: inline-block; font-size: 11px; color: var(--ice); text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.player[data-pos="Защитник"] .player__pos { color: var(--jupiter); }
.player[data-pos="Нападающий"] .player__pos { color: var(--jupiter-2); }

/* Верхняя акцент-полоса карточки (цвет по амплуа) */
.player__accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad-jupiter); z-index: 3; }
.player[data-pos="Вратарь"] .player__accent { background: linear-gradient(90deg, var(--ice), var(--jupiter)); }

/* Ассистент-бейдж и акцент на очках */
.player__badge--a { background: var(--ice); color: #06121a; }
.player__stat--pts b { color: var(--jupiter-2); }

/* Лучший бомбардир */
.player--top { border-color: rgba(255,184,119,.6); box-shadow: 0 0 0 1px rgba(255,184,119,.35), var(--shadow); }
.player__topbadge {
  position: absolute; top: 12px; left: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 999px; background: var(--ice); color: #1a0e05;
}
.player__topbadge svg { width: 11px; height: 11px; }
.player__stats { display: flex; gap: 6px; }
.player__stat { flex: 1; text-align: center; background: rgba(0,0,0,.25); border-radius: 10px; padding: 8px 4px; }
.player__stat b { display: block; font-family: "Unbounded", sans-serif; font-size: 20px; }
.player__stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.player__badge {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: var(--spot); color: #fff; letter-spacing: .5px;
}

/* ---------- Тренерский штаб ---------- */
.staff { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.staff__card {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.staff__ava { width: 56px; height: 56px; border-radius: 50%; background: var(--grad-ice); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.staff__name { font-weight: 700; }
.staff__role { font-size: 13px; color: var(--muted); }

/* ---------- Матчи ---------- */
.matches { display: flex; flex-direction: column; gap: 16px; }
.match {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; transition: border-color .2s;
}
.match:hover { border-color: rgba(224,96,48,.45); }
.match__date { text-align: center; }
.match__day { font-family: "Unbounded", sans-serif; font-size: 30px; line-height: 1; }
.match__mon { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.match__mid { min-width: 0; }
.match__teams { display: flex; align-items: center; gap: 12px; font-family: "Unbounded", sans-serif; font-size: 20px; }
.match__teams .home { color: var(--jupiter); }
.match__vs { font-size: 13px; color: var(--muted-2); }
.match__meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.match__right { text-align: right; }
.match__score { font-family: "Unbounded", sans-serif; font-size: 26px; }
.match__score.win { color: var(--ice-2); }
.match__score.lose { color: var(--lose); }
.match__tag { display: inline-block; font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ice); }
.match__tag.win { background: rgba(116,221,155,.15); color: var(--ice-2); }
.match__tag.lose { background: rgba(240,83,59,.15); color: var(--lose); }

/* ---------- Статистика ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 50px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.stat-card b { display: block; font-family: "Unbounded", sans-serif; font-size: 46px; line-height: 1; margin-bottom: 6px; }
.stat-card.win b { color: var(--ice-2); }
.stat-card.lose b { color: var(--lose); }
.stat-card span { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.leaders__title { font-family: "Unbounded", sans-serif; font-size: 24px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.lb-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.lb-table th, .lb-table td { padding: 14px 16px; text-align: center; }
.lb-table th { background: var(--surface-2); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.lb-table td { border-top: 1px solid var(--border); }
.lb-table td:nth-child(2) { text-align: left; font-weight: 600; }
.lb-table tbody tr:hover { background: var(--surface); }
.lb-table .pts { font-family: "Unbounded", sans-serif; font-size: 18px; color: var(--jupiter); }
.lb-rank { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; }
.lb-rank.top { background: var(--grad-jupiter); color: #1a0e05; }
.leaders__legend { font-size: 13px; color: var(--muted-2); margin-top: 14px; text-align: center; }

/* ---------- Графики статистики (dataviz) ---------- */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 46px; }
.chart { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.chart--wide { grid-column: 1 / -1; }
.chart__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.chart__title { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 21px; margin: 0; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.chart__legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; flex-shrink: 0; }

.hbars { display: flex; flex-direction: column; gap: 13px; }
.hbar { display: grid; grid-template-columns: minmax(92px, 27%) 1fr 46px; align-items: center; gap: 12px; }
.hbar__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar__track { display: flex; gap: 2px; height: 16px; background: rgba(255,255,255,.055); border-radius: 6px; }
.hbar__seg { height: 100%; border-radius: 3px; min-width: 3px; transition: filter .2s; }
.hbar__track .hbar__seg:first-child { border-radius: 6px 3px 3px 6px; }
.hbar__track .hbar__seg:last-child { border-radius: 3px 6px 6px 3px; }
.hbar__seg--g { background: var(--c-goals); }
.hbar__seg--a { background: var(--c-assists); }
.hbar__seg--win { background: var(--c-win); }
.hbar__seg--loss { background: var(--c-loss); }
.hbar__val { font-family: "Unbounded", sans-serif; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.hbar:hover .hbar__seg { filter: brightness(1.14); }

.segbar { display: flex; gap: 2px; height: 32px; border-radius: 8px; overflow: hidden; margin-bottom: 16px; }
.segbar__seg { display: flex; align-items: center; justify-content: center; font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 15px; color: #0a0a0c; min-width: 22px; transition: filter .2s; }
.segbar__seg:hover { filter: brightness(1.12); }
.segbar__seg--win { background: var(--c-win); }
.segbar__seg--tie { background: var(--c-tie); }
.segbar__seg--loss { background: var(--c-loss); color: #fff; }

@media (max-width: 720px) { .charts { grid-template-columns: 1fr; } }

/* ---------- Медиа ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.photo {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; border: 1px solid var(--border); display: flex; align-items: flex-end;
}
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.6)); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; }
.photo__cap { position: relative; z-index: 2; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.photo:hover img, .photo:hover .photo__ph { transform: scale(1.06); transition: .4s; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video__frame { position: relative; aspect-ratio: 16/9; background: #000; display: flex; align-items: center; justify-content: center; }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__ph { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); }
.video__play { width: 60px; height: 60px; border-radius: 50%; background: var(--grad-jupiter); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #1a0e05; }
.video__body { padding: 14px 18px; }
.video__title { font-weight: 700; }
.video__meta { font-size: 13px; color: var(--muted); }

/* Плеер музыки — модуль css/mods/music.css (классы mu-) */

/* ---------- Дни рождения ---------- */
.bd-featured { margin-bottom: 40px; }
.bd-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
  background: var(--grad-jupiter); color: #1a0e05; border-radius: var(--radius);
  padding: 30px 34px; box-shadow: var(--shadow);
}
.bd-hero__ava { width: 92px; height: 92px; border-radius: 50%; background: rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.bd-hero__big { font-family: "Unbounded", sans-serif; font-size: 30px; }
.bd-hero__sub { font-weight: 600; opacity: .85; }

.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bd-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.bd-card__ava { width: 50px; height: 50px; border-radius: 50%; background: var(--grad-ice); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #06121a; flex-shrink: 0; }
.bd-card__name { font-weight: 700; }
.bd-card__date { font-size: 13px; color: var(--ice); }
.bd-card__in { font-size: 12px; color: var(--muted); }

.holiday-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.holiday { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.holiday__emoji { font-size: 34px; }
.holiday__name { font-family: "Unbounded", sans-serif; font-size: 20px; margin: 8px 0 4px; }
.holiday__date { font-size: 13px; color: var(--ice); margin-bottom: 8px; }
.holiday__text { font-size: 14px; color: var(--muted); }

/* ---------- Новости ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.news-card:hover { transform: translateY(-5px); border-color: rgba(224,96,48,.45); }
.news-card__img { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 54px; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 20px; }
.news-card__cat { display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ice); margin-bottom: 10px; }
.news-card__title { font-family: "Unbounded", sans-serif; font-size: 20px; margin: 0 0 8px; }
.news-card__date { font-size: 13px; color: var(--muted-2); margin-bottom: 10px; }
.news-card__text { color: var(--muted); font-size: 15px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.contact-card__emoji { font-size: 34px; }
.contact-card__role { font-size: 13px; color: var(--ice); text-transform: uppercase; letter-spacing: 1px; margin: 10px 0 4px; }
.contact-card__name { font-family: "Unbounded", sans-serif; font-size: 20px; }
.contact-card__val { color: var(--muted); margin-top: 8px; }
.contact-card__val a { color: var(--ice); font-weight: 600; }
.contact-card__val a:hover { color: var(--ice); text-decoration: underline; }
/* ссылки карточек (Telegram, trackhockey.pro) — под палец 44 px за счёт отступов, вёрстка карточки не меняется */
.contact-card__val a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* ---------- Архив сезонов ---------- */
.season-archive { margin-top: 40px; }
.archive-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 22px; margin-bottom: 12px;
}
.archive-card__season { font-family: "Unbounded", sans-serif; font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.archive-card__line { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.archive-card__line .win { color: var(--c-win); } .archive-card__line .lose { color: var(--c-loss); }
.archive-card__top { margin-top: 8px; font-size: 14px; color: var(--ice); }
.archive-card__note { margin-top: 6px; font-size: 14px; color: var(--muted-2); }

/* ---------- Ссылка на ДХЛ ---------- */
.dhl-link {
  display: inline-block; margin-top: 14px; padding: 8px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ice);
  font-weight: 600; font-size: 14px; transition: .2s;
}
.dhl-link:hover { border-color: var(--jupiter-2); color: var(--text); background: var(--surface-2); }
/* «Рекорды клуба →» рядом со ссылкой на ДХЛ в шапке «Статистики» (модуль records грузится лениво — стиль здесь) */
.rc-link { margin-left: 8px; }
@media (max-width: 560px) { .rc-link { margin-left: 0; } }
.dhl-inline { color: var(--ice); font-weight: 600; }
.dhl-inline:hover { text-decoration: underline; }

/* ---------- Спонсоры ---------- */
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.sponsor {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; transition: transform .2s, border-color .2s;
  min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.sponsor:hover { transform: translateY(-5px); border-color: rgba(224,96,48,.5); }
.sponsor__link { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.sponsor__logo { display: flex; align-items: center; justify-content: center; height: 64px; }
.sponsor__logo img { max-height: 64px; max-width: 100%; object-fit: contain; }
.sponsor__name {
  font-family: "Unbounded", sans-serif; font-size: 20px; font-weight: 600;
  color: var(--muted); letter-spacing: .5px;
}
.sponsor__note { font-size: 13px; color: var(--ice); text-transform: uppercase; letter-spacing: 1px; }
.sponsors-cta { text-align: center; color: var(--muted); margin-top: 28px; }

/* ---------- Арена ---------- */
.arena {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; margin-bottom: 44px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.arena__map { min-height: 320px; background: #14100c; }
.arena__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; filter: grayscale(.15) contrast(1.05); }
.arena__info { padding: 30px 32px; display: flex; flex-direction: column; }
.arena__badge {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ice); background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.arena__name { font-family: "Unbounded", sans-serif; font-size: 28px; margin: 0 0 18px; }
.arena__row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.arena__ic { flex-shrink: 0; }
.arena__row a { color: var(--text); }
.arena__row a:hover { color: var(--ice); }
.arena__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 18px; }
.arena__actions .btn { padding: 11px 20px; font-size: 15px; }

@media (max-width: 760px) {
  .arena { grid-template-columns: 1fr; }
  .arena__map { min-height: 240px; }
  .arena__map iframe { min-height: 240px; }
}

/* ---------- Подвал ---------- */
.site-footer { border-top: 0; position: relative; padding: 64px clamp(16px,4vw,40px) 50px; text-align: center; margin-top: 40px; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(560px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,96,48,.6), transparent);
}
.brand--footer { justify-content: center; margin-bottom: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-bottom: 22px; }
.footer-nav a { font-size: 14px; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--jupiter); }
.site-footer__note { color: var(--muted); max-width: 560px; margin: 0 auto 14px; }
.site-footer__copy { color: var(--muted-2); font-size: 13px; letter-spacing: .4px; }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(3,6,14,.92); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox__content { max-width: 90vw; max-height: 85vh; }
.lightbox__content img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox__ph { width: min(80vw, 600px); aspect-ratio: 4/3; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 120px; background: var(--surface-2); }
.lightbox__close { position: absolute; top: 20px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-size: 20px; cursor: pointer; }

/* ================= АДАПТИВ ================= */
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; padding: 16px; background: rgba(7,11,24,.98); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .3s; z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .nav-toggle { display: flex; }
  .hero__logo-wrap { position: static; transform: none !important; margin: 0 auto 28px; width: min(260px, 62vw); }
  .hero { flex-direction: column; text-align: center; min-height: auto; padding-top: 30px; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .match { grid-template-columns: 70px 1fr; }
  .match__right { grid-column: 2; text-align: left; margin-top: 8px; }
}

/* ---------- Счётчик до события (hero) ---------- */
.countdown { display: flex; gap: 10px; margin: 0 0 34px; flex-wrap: wrap; }
.countdown__cell {
  min-width: 74px; padding: 10px 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
}
.countdown__cell b { display: block; font-family: "Unbounded", sans-serif; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__cell span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.countdown__label { width: 100%; font-size: 13px; color: var(--ice); letter-spacing: .5px; margin-bottom: 2px; }

/* ---------- Веха «до 100-й шайбы» ---------- */
.milestone { margin: 6px 0 40px; }
.milestone__bar { height: 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.milestone__bar i { display: block; height: 100%; background: var(--grad-jupiter); border-radius: 999px; }
.milestone span { display: block; margin-top: 10px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Флип-карточки игроков ---------- */
.player--flippable { perspective: 1000px; }
.player__flip { position: relative; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.4, .1, .2, 1); }
.player.is-flipped .player__flip { transform: rotateY(180deg); }
.player__face--front { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.player__face--back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--grad-jupiter); color: #1a0e05;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 18px; text-align: center;
}
.pb__num { font-family: "Unbounded", sans-serif; font-size: 40px; font-weight: 700; opacity: .55; }
.pb__nick { font-family: "Unbounded", sans-serif; font-size: 30px; font-weight: 700; }
.pb__fact { font-size: 14px; font-weight: 600; line-height: 1.4; }
.pb__fav { font-size: 13px; opacity: .8; }
.pb__hint { position: absolute; bottom: 12px; font-size: 11px; opacity: .6; letter-spacing: .5px; }
@media (prefers-reduced-motion: reduce) { .player__flip { transition: none; } }

/* ---------- Викторина ---------- */
.quiz { margin-top: 44px; }
.quiz__body {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; max-width: 720px; margin: 0 auto; text-align: center;
}
.quiz__q { font-family: "Unbounded", sans-serif; font-size: 24px; margin-bottom: 20px; }
.quiz__step {
  display: inline-block; margin-right: 12px; padding: 2px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ice); font-size: 14px; vertical-align: 3px;
}
.quiz__opts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quiz__opts .chip:disabled { opacity: .55; cursor: default; }
.quiz__opts .chip--right { background: var(--c-win) !important; color: #06170e !important; border-color: transparent !important; opacity: 1 !important; }
.quiz__opts .chip--wrong { background: var(--c-loss) !important; color: #fff !important; border-color: transparent !important; opacity: 1 !important; }
.quiz__result { font-size: 18px; margin-bottom: 18px; }
.quiz__result b { font-family: "Unbounded", sans-serif; font-size: 44px; display: block; color: var(--jupiter); }
.quiz__best { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Гол-сирена ---------- */
.horn {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad-jupiter); color: #1a0e05; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(224, 96, 48, .45);
  transition: transform .15s;
}
.horn:hover { transform: scale(1.08); }
.horn:active { transform: scale(.92); }
.horn__count {
  position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: #0d0d0f; color: var(--jupiter);
  font: 700 11px/21px "Golos Text", sans-serif; text-align: center;
  border: 1px solid var(--border); font-variant-numeric: tabular-nums;
}
.horn__count:empty { display: none; }
html.goal-flash::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 150;
  background: radial-gradient(circle at 50% 60%, rgba(224, 96, 48, .42), transparent 70%);
  animation: goalFlash 1.5s ease-out forwards;
}
@keyframes goalFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Мобильное меню: подложка и прокрутка ---------- */
body.menu-open { overflow: hidden; }
body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(5,4,3,.55); z-index: 30; }
body.menu-open .tabbar, body.menu-open .horn { visibility: hidden; }

/* ---------- Мобильная полировка ---------- */
.nav-toggle { padding: 12px 10px; margin: -6px 0; }

@media (max-width: 860px) {
  .nav { max-height: calc(100dvh - 64px); overflow-y: auto; }
  .chip, .tab { padding: 12px 22px; min-height: 44px; }
  .dhl-link { padding: 12px 20px; }
}

@media (max-width: 720px) {
  .lb-table { min-width: 0; }
  .lb-table th:nth-child(3), .lb-table td:nth-child(3) { display: none; } /* амплуа видно на карточках */
  .lb-table th, .lb-table td { padding: 10px 6px; font-size: 14px; }
  .lb-table td:nth-child(2) { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 560px) {
  .players-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .player__top { height: 132px; }
  .player__avatar { width: 84px; height: 84px; font-size: 30px; }
  .player__num { font-size: 52px; top: 2px; right: 10px; }
  .player__body { padding: 12px 12px 14px; }
  .player__name { font-size: 18px; }
  .player__stat b { font-size: 17px; }
  .player__stat span { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
}

/* ---------- Установка приложения (PWA) ---------- */
.btn--install { background: var(--surface-2); border: 1px solid var(--jupiter-2); color: var(--text); }
.btn--install:hover { background: var(--surface); border-color: var(--jupiter); }
.btn--install .ico { margin-right: 2px; }
.btn--install[hidden] { display: none; }
.install-hint {
  max-width: 460px; margin: -18px 0 30px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--jupiter-2);
  border-radius: 10px; font-size: 14px; color: var(--muted); line-height: 1.5;
}
.install-hint b { color: var(--text); }
.install-hint[hidden] { display: none; }

/* =========================================================
   КАРКАС ПРИЛОЖЕНИЯ: вкладки, дашборд, премиальные эффекты
   ========================================================= */

/* ---------- Полоса прогресса прокрутки ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad-jupiter); z-index: 70;
  box-shadow: 0 0 12px rgba(224, 96, 48, .7);
  transition: width .12s linear;
}

/* ---------- Переключение разделов ---------- */
[data-view][hidden] { display: none !important; }
.view-enter { animation: viewIn .45s cubic-bezier(.22,.7,.3,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view-enter { animation: none; } }

/* Активный пункт меню */
.nav a.is-current { color: var(--text); background: var(--surface-2); }
.nav a.nav__cta.is-current { color: #1a0e05 !important; }

/* ---------- Дашборд «Главное» ---------- */
.dash-section { padding-top: 0; }
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; position: relative; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(224,96,48,.42); }
/* Прожектор: мягкое свечение следует за курсором */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(224,96,48,.16), transparent 65%);
  transition: opacity .3s;
}
.card:hover::before { opacity: 1; }
.card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.card__head .ico { color: var(--jupiter); font-size: 19px; }
.card__title { font-family: "Unbounded", sans-serif; font-size: 19px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); margin: 0; }
.card__link { margin-top: 16px; display: inline-block; font-size: 14px; font-weight: 600; color: var(--ice); }
.card__link:hover { text-decoration: underline; }

.dash__wide { grid-column: span 12; }
.dash__half { grid-column: span 6; }
.dash__third { grid-column: span 4; }
@media (max-width: 860px) {
  .dash__half, .dash__third { grid-column: span 12; }
}

/* Подиум топ-3 */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.podium__item { text-align: center; }
.podium__ava {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px; position: relative;
  background: var(--grad-jupiter); display: flex; align-items: center; justify-content: center;
  font-family: "Unbounded", sans-serif; font-size: 26px; font-weight: 700; color: #1a0e05; overflow: hidden;
}
.podium__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.podium__medal {
  position: absolute; bottom: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
  background: #c0c0c0; color: #1a1a1a; border: 2px solid var(--bg); z-index: 2;
}
.podium__item--1 .podium__ava { width: 90px; height: 90px; font-size: 32px; box-shadow: 0 0 0 3px rgba(255,184,119,.5); }
.podium__item--1 .podium__medal { background: linear-gradient(140deg, #ffd76e, #e0a020); }
.podium__item--3 .podium__medal { background: linear-gradient(140deg, #d9a06a, #a06a3a); }
.podium__name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.podium__pts { font-family: "Unbounded", sans-serif; font-size: 22px; color: var(--jupiter); font-variant-numeric: tabular-nums; }
.podium__sub { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .6px; }

/* Мини-статистика на дашборде */
.mini-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.dash-scope { margin: -8px 0 12px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.mini-stat { text-align: center; background: rgba(0,0,0,.22); border-radius: 12px; padding: 14px 6px; }
.mini-stat b { display: block; font-family: "Unbounded", sans-serif; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.mini-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.mini-stat.win b { color: var(--c-win); }
.mini-stat.lose b { color: var(--c-loss); }
.mini-stat.tie b { color: var(--c-tie, var(--muted)); }
/* телефон: игры и шайбы — первой строкой, победы/ничьи/поражения — второй (пять ячеек в ряд не помещают подписи) */
@media (max-width: 560px) {
  .mini-stats { grid-template-columns: repeat(6, 1fr); gap: 8px; }
  .mini-stat { grid-column: span 2; padding: 12px 4px; }
  .mini-stat:first-child, .mini-stat:last-child { grid-column: span 3; grid-row: 1; }
}
/* 320–360 px: плитка второй строки ~74 px, «ПОРАЖЕНИЙ» в 11px с разрядкой .6px вылезала за край — шрифт и поля поменьше */
@media (max-width: 360px) {
  .mini-stat { padding-left: 2px; padding-right: 2px; }
  .mini-stat span { font-size: 10px; letter-spacing: .2px; }
}

/* Виджет ближайшего события */
.next-event { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.next-event__big { font-family: "Unbounded", sans-serif; font-size: 40px; line-height: 1; color: var(--jupiter); font-variant-numeric: tabular-nums; }
.next-event__txt { font-size: 15px; color: var(--muted); }

/* Быстрые плитки */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.quick a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 14px;
  font-size: 13px; font-weight: 600; color: var(--muted); transition: .2s; text-align: center;
}
.quick a:hover { color: var(--text); border-color: var(--jupiter-2); transform: translateY(-3px); }
.quick .ico { font-size: 24px; color: var(--jupiter); }

/* Мини-новость */
.mini-news__date { font-size: 12px; color: var(--muted-2); margin-bottom: 6px; }
.mini-news__title { font-family: "Unbounded", sans-serif; font-size: 22px; margin: 0 0 8px; }
.mini-news__text { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Поиск игрока ---------- */
.team-tools { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 30px; }
.team-tools .filters { margin-bottom: 0; }
.search { position: relative; width: min(420px, 100%); }
.search__ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 17px; pointer-events: none; }
.search__input {
  width: 100%; padding: 13px 42px 13px 44px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: "Golos Text", sans-serif; font-size: 15px; transition: border-color .2s, background .2s;
}
.search__input::placeholder { color: var(--muted-2); }
.search__input:focus { outline: none; border-color: var(--jupiter-2); background: var(--surface-2); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--muted); font-size: 13px;
}
.search__clear:hover { color: var(--text); }
.search__empty { text-align: center; color: var(--muted); margin: 10px 0 20px; }

/* ---------- Нижняя панель (телефон) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(10,10,12,.94); backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 9px 2px 8px; min-height: 56px; background: none; border: 0; cursor: pointer;
    color: var(--muted-2); font-family: "Golos Text", sans-serif;
  }
  .tabbar .ico { font-size: 21px; }
  .tabbar b { font-size: 10px; font-weight: 600; letter-spacing: .2px; }
  .tabbar .is-active { color: var(--jupiter); }
  .tabbar .is-active .ico { filter: drop-shadow(0 0 8px rgba(224,96,48,.55)); }
  body { padding-bottom: 62px; }
  .horn { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Кнопка Поделиться ---------- */
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-family: "Golos Text", sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s;
}
.share-btn:hover { color: var(--text); border-color: var(--jupiter-2); }

/* ---------- Живой фон: медленное «сияние» в фирменных тонах ---------- */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 30% at 20% 20%, rgba(224, 96, 48, .16), transparent 70%),
    radial-gradient(30% 26% at 80% 12%, rgba(242, 137, 74, .12), transparent 70%),
    radial-gradient(34% 28% at 65% 78%, rgba(193, 68, 26, .12), transparent 70%);
  filter: blur(28px);
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -1.5%, 0) scale(1.06); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.02); }
}

/* ---------- Блик на главной кнопке ---------- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg); animation: shine 5.5s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { left: -60%; } 82%, 100% { left: 125%; } }

/* ---------- Мягкое «стекло» у карточек статистики ---------- */
.stat-card, .chart, .card { backdrop-filter: blur(6px); }

/* ---------- Уважение к настройке «меньше движения» ---------- */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .btn--primary::after { display: none; }
}

/* =========================================================
   ТИПОГРАФИКА: Unbounded — широкий шрифт, поэтому размеры
   заголовков и цифр подобраны заново (иначе всё «распухает»).
   ========================================================= */
h1, h2, h3, .brand__name { letter-spacing: -0.02em; }

/* Крупные заголовки */
.hero__title { font-size: clamp(34px, 6.6vw, 74px); letter-spacing: -0.035em; margin-bottom: 14px; }
.section__title { font-size: clamp(25px, 3.6vw, 40px); }
.section__lead { font-size: 17px; }
.brand__name { font-size: 15px; letter-spacing: -0.01em; }
.brand__tag { font-size: 10px; letter-spacing: 1.2px; }
.subhead { font-size: 19px; }
.leaders__title { font-size: 19px; }
.card__title { font-size: 14px; letter-spacing: 0; }
.chart__title { font-size: 16px; }
.arena__name { font-size: 21px; }
.archive-card__season { font-size: 17px; }
.mini-news__title { font-size: 17px; line-height: 1.25; }
.quiz__q { font-size: 19px; line-height: 1.35; }
.player__name { font-size: 16px; letter-spacing: -0.02em; line-height: 1.2; }
.video__title { font-size: 15px; }

/* Цифры: Unbounded шире — уменьшаем, чтобы не ломались сетки */
.hero__stat b { font-size: 25px; }
.countdown__cell { min-width: 82px; }
.countdown__cell b { font-size: 22px; letter-spacing: -0.04em; }
.stat-card b { font-size: 32px; letter-spacing: -0.03em; }
.mini-stat b { font-size: 22px; letter-spacing: -0.03em; }
.next-event__big { font-size: 30px; letter-spacing: -0.03em; }
.podium__pts { font-size: 18px; }
.podium__ava { font-size: 19px; }
.podium__item--1 .podium__ava { font-size: 23px; }
.quiz__result b { font-size: 34px; }
.match__day { font-size: 22px; letter-spacing: -0.03em; }
.match__score { font-size: 20px; letter-spacing: -0.02em; }
.match__teams { font-size: 17px; letter-spacing: -0.01em; }
.player__stat b { font-size: 16px; }
.lb-table .pts { font-size: 15px; }
.player__avatar { font-size: 30px; letter-spacing: -0.02em; }
.hbar__val { font-size: 15px; }
.player__num { font-size: 62px; letter-spacing: -0.05em; }
.pb__num { font-size: 30px; }
.pb__nick { font-size: 22px; }
.staff__ava { font-size: 20px; }

@media (max-width: 560px) {
  .player__num { font-size: 40px; }
  .player__name { font-size: 15px; }
  .player__stat b { font-size: 15px; }
}
@media (max-width: 400px) {
  .countdown__cell { min-width: 70px; padding: 9px 6px; }
  .countdown__cell b { font-size: 19px; }
}

/* ---------- Вратарь: отдельный блок в статистике ---------- */
.goalie-wrap { margin: 0 0 46px; }
.gk { padding: 26px 28px; }
.gk__face { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.gk__ava {
  position: relative; width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(140deg, var(--ice), var(--jupiter-2));
  display: flex; align-items: center; justify-content: center;
  font-family: "Unbounded", sans-serif; font-size: 26px; font-weight: 700; color: #1a0e05;
  box-shadow: 0 0 0 3px rgba(255, 184, 119, .28);
}
.gk__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gk__role { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--ice); margin-bottom: 6px; }
.gk__role .ico { margin-right: .35em; }
.gk__name { font-family: "Unbounded", sans-serif; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 4px; }
.gk__num { font-size: 14px; color: var(--muted); }
.gk__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.gk__stat { text-align: center; background: rgba(0, 0, 0, .24); border-radius: 12px; padding: 16px 8px; }
.gk__stat b {
  display: block; font-family: "Unbounded", sans-serif; font-size: 26px; line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-bottom: 6px;
}
.gk__stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.gk__stat.lose b { color: var(--c-loss); }
.gk__stat.win b { color: var(--c-win); }
.gk__note { font-size: 13px; color: var(--muted-2); margin: 16px 0 0; }

@media (max-width: 560px) {
  .gk { padding: 20px; }
  .gk__face { gap: 14px; }
  .gk__ava { width: 72px; height: 72px; font-size: 21px; }
  .gk__name { font-size: 18px; }
  .gk__stat b { font-size: 21px; }
}

/* Подпись в шапке — в одну строку (Unbounded/Golos шире прежнего шрифта) */
.brand__tag { white-space: nowrap; font-size: 9.5px; letter-spacing: .9px; }
@media (max-width: 420px) { .brand__tag { font-size: 8.5px; letter-spacing: .5px; } }

/* =========================================================
   ЖИВОСТЬ: анимации графиков, стаггер, отклик на нажатие
   ========================================================= */

/* Полосы графиков вырастают из нуля */
.hbar__seg, .segbar__seg, .milestone__bar i {
  transition: width 1s cubic-bezier(.22, .8, .28, 1);
}
.hbar__seg[data-w], .segbar__seg[data-w], .milestone__bar i[data-w] { width: 0 !important; }
.hbar__seg.grown, .segbar__seg.grown, .milestone__bar i.grown { width: var(--w) !important; }

/* Стаггер: элементы раздела появляются по очереди */
.stagger-in { animation: staggerIn .5s cubic-bezier(.22,.7,.3,1) both; }
@keyframes staggerIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* Волна от нажатия (как в мобильных приложениях) */
.btn, .chip, .tab, .quick a, .card__link, .share-btn, .tabbar a, .tabbar button { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0);
  background: rgba(255, 255, 255, .35); animation: rippleOut .6s ease-out forwards;
}
@keyframes rippleOut { to { transform: scale(2.6); opacity: 0; } }

/* Пульс у счётчика, когда до события меньше суток */
.countdown.is-soon .countdown__cell { border-color: var(--jupiter-2); animation: soonPulse 1.8s ease-in-out infinite; }
@keyframes soonPulse { 50% { box-shadow: 0 0 0 4px rgba(224, 96, 48, .16); } }

/* Летящая шайба при гол-сирене */
.puck {
  position: fixed; z-index: 210; width: 46px; height: 46px; pointer-events: none;
  border-radius: 50%; background: radial-gradient(circle at 38% 32%, #4a4a52, #131317 70%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .55), inset 0 -3px 8px rgba(0, 0, 0, .6);
  animation: puckFly 1.5s cubic-bezier(.3, .1, .5, 1) forwards;
}
@keyframes puckFly {
  0%   { left: -70px; top: 62%; transform: rotate(0deg) scale(.85); opacity: 0; }
  12%  { opacity: 1; }
  55%  { top: 34%; }
  100% { left: 105vw; top: 58%; transform: rotate(900deg) scale(1.05); opacity: 0; }
}

/* Плавное «дыхание» индикатора живого счётчика */
.countdown__label::after {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--jupiter-2); margin-left: 8px; vertical-align: 1px;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* Фото игрока чуть приближается при наведении */
.player__avatar img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.player:hover .player__avatar img { transform: scale(1.12); }

/* Строки таблицы бомбардиров подсвечиваются мягче */
.lb-table tbody tr { transition: background .25s; }

@media (prefers-reduced-motion: reduce) {
  .hbar__seg, .segbar__seg, .milestone__bar i { transition: none; }
  .stagger-in { animation: none; }
  .ripple, .puck { display: none; }
  .countdown.is-soon .countdown__cell, .countdown__label::after { animation: none; }
  .player:hover .player__avatar img { transform: none; }
}

/* ---------- Переключатель сезонов ---------- */
.season-switch { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.season-chip { display: inline-flex; align-items: baseline; gap: 6px; }
.season-chip i { font-style: normal; font-size: 12px; opacity: .7; }

/* ---------- Места 4–5 под подиумом ---------- */
.toprows { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.toprow { display: flex; align-items: center; gap: 10px; }
.toprow__rank { width: 20px; text-align: center; font-size: 13px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.toprow__ava {
  position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.toprow__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.toprow__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toprow__sub { font-size: 12px; color: var(--muted-2); margin-left: auto; }
.toprow__pts { font-family: "Unbounded", sans-serif; font-size: 15px; color: var(--jupiter); min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Сезон ещё не начался ---------- */
.season-empty { text-align: center; padding: 40px 28px; }
.season-empty .ico { font-size: 40px; color: var(--jupiter); }
.season-empty h3 { font-family: "Unbounded", sans-serif; font-size: 22px; margin: 14px 0 10px; }
.season-empty p { color: var(--muted); max-width: 520px; margin: 0 auto; font-size: 15px; }

/* ---------- Список сезонов на главной (все видны сразу) ---------- */
.seasons {
  display: flex; flex-direction: column; gap: 10px;
  width: min(400px, 100%); margin-bottom: 26px;
}
.season-item {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 4px 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 13px 18px 13px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
  transition: border-color .22s, background .22s, transform .22s;
}
.season-item::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--muted-2); opacity: .5; transition: .22s;
}
.season-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(224, 96, 48, .45); transform: translateX(2px); }

.season-item__title {
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: -0.02em; color: var(--muted); transition: color .22s;
}
.season-item__note { grid-column: 1; font-size: 12px; color: var(--muted-2); letter-spacing: .2px; }
.season-item__badge {
  grid-row: 1 / span 2; align-self: center;
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}

/* Выбранный сезон */
.season-item.is-active {
  background: linear-gradient(100deg, rgba(224, 96, 48, .18), rgba(224, 96, 48, .04));
  border-color: rgba(242, 137, 74, .55);
  box-shadow: 0 8px 26px rgba(224, 96, 48, .16);
}
.season-item.is-active::before { background: var(--grad-jupiter); opacity: 1; }
.season-item.is-active .season-item__title { color: var(--text); }
.season-item.is-active .season-item__note { color: var(--ice); }
.season-item.is-active .season-item__badge { background: var(--grad-jupiter); color: #1a0e05; border-color: transparent; }

/* Текущий сезон помечаем всегда */
.season-item--current .season-item__badge { color: var(--ice); border-color: rgba(255, 184, 119, .4); }
.season-item.is-active.season-item--current .season-item__badge { color: #1a0e05; }

@media (max-width: 860px) { .seasons { width: 100%; margin-left: auto; margin-right: auto; } }
@media (max-width: 420px) {
  .season-item { padding: 11px 14px 11px 16px; }
  .season-item__title { font-size: 13.5px; }
  .season-item__badge { font-size: 9px; padding: 3px 8px; }
}

/* Точная раскладка карточки сезона: слева название и подпись, справа метка */
.season-item__title { grid-column: 1; grid-row: 1; }
.season-item__note  { grid-column: 1; grid-row: 2; }
.season-item__badge { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }

/* ---------- Пометка «состав формируется» ---------- */
.roster-note {
  max-width: 680px; margin: 0 auto 26px; padding: 14px 20px;
  background: rgba(224, 96, 48, .10); border: 1px solid rgba(242, 137, 74, .35);
  border-radius: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.55; text-align: center;
}
.roster-note b { color: var(--text); }
.roster-note .ico { color: var(--jupiter); margin-right: .3em; }
.roster-note[hidden] { display: none; }

/* ---------- Переключатель состава (вся команда / соревнования) ---------- */
.scope-switch { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 22px; }
.scope-chip i { font-style: normal; font-size: 12px; opacity: .65; }

/* ---------- Расписание тренировок ---------- */
.trainings { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.training {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s;
}
.training:hover { border-color: rgba(224, 96, 48, .45); }
.training__day { font-family: "Unbounded", sans-serif; font-size: 14px; letter-spacing: -0.01em; min-width: 92px; }
.training__body { flex: 1; }
.training__time { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.training__place { font-size: 13px; color: var(--muted); }
.training__kind {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ice); white-space: nowrap;
}
.training__kind--лёд { background: rgba(224,96,48,.18); color: var(--jupiter); }
.training__kind--офп { background: rgba(62,154,106,.18); color: var(--c-win); }

/* ---------- Папка «Турниры сезона» в списке соревнований ---------- */
.season-item--folder { grid-template-columns: 1fr auto auto; }
.season-item--folder::before { background: var(--ice); opacity: .45; }
.season-item--folder.has-active::before { background: var(--grad-jupiter); opacity: 1; }
.season-item__caret {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  font-size: 12px; color: var(--muted-2); transition: transform .25s; margin-left: 4px;
}
.season-item--folder[aria-expanded="true"] .season-item__caret { transform: rotate(180deg); color: var(--jupiter); }
.season-item--folder .season-item__badge { background: transparent; }

/* вложенные пункты папки — явно смещены и связаны линией с папкой */
.season-item--child {
  margin-left: 30px; width: calc(100% - 30px);
  padding: 11px 16px; border-style: dashed;
  background: rgba(255, 255, 255, .02);
  animation: childIn .22s ease-out both;
}
/* горизонтальный «усик» связи с папкой */
.season-item--child::before {
  left: -16px; top: 50%; bottom: auto; transform: translateY(-50%);
  width: 16px; height: 2px; border-radius: 0; opacity: .55;
}
/* вертикальная направляющая слева от группы детей */
.season-item--child::after {
  content: ""; position: absolute; left: -16px; top: -11px; width: 2px; height: calc(50% + 11px);
  background: rgba(255, 255, 255, .12);
}
.season-item--child:first-of-type::after { top: -9px; height: calc(50% + 9px); }
.season-item--child .season-item__title { font-size: 13.5px; }
@keyframes childIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .season-item--child { animation: none; } }

/* ---------- Ссылка на видеозапись матча ---------- */
.match__video {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 13px; font-weight: 600; color: var(--ice); transition: color .2s;
}
.match__video:hover { color: var(--jupiter); text-decoration: underline; }
.match__video .ico { font-size: 14px; }

/* ---------- Длинные значения в плитках статистики ---------- */
.stat-card { padding-left: 12px; padding-right: 12px; }
.stat-card b.val-long { font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; }
@media (max-width: 560px) { .stat-card b.val-long { font-size: 20px; } }

/* ---------- Форма команды: последние 5 игр ---------- */
.form-strip { display: flex; align-items: center; gap: 7px; margin-top: 16px; flex-wrap: wrap; }
.form-strip__label { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .7px; margin-right: 4px; }
.form-chip {
  width: 26px; height: 26px; border-radius: 8px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px/1 "Golos Text", sans-serif; cursor: default;
}
.form-chip--w { background: rgba(62, 154, 106, .25); color: var(--c-win); border: 1px solid rgba(62, 154, 106, .45); }
.form-chip--l { background: rgba(218, 78, 56, .18); color: var(--c-loss); border: 1px solid rgba(218, 78, 56, .4); }
.form-chip--t { background: rgba(138, 147, 166, .18); color: var(--c-tie); border: 1px solid rgba(138, 147, 166, .4); }

/* ---------- Сравни игроков (дуэль) ---------- */
.compare { margin-top: 44px; }
.compare__body {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; max-width: 760px; margin: 0 auto;
}
.duel__pick { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.duel__select {
  flex: 1; min-width: 0; padding: 11px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-family: "Golos Text", sans-serif; font-size: 14px; cursor: pointer;
}
.duel__select:focus { outline: none; border-color: var(--jupiter-2); }
.duel__vs { font-family: "Unbounded", sans-serif; font-size: 15px; color: var(--jupiter); flex-shrink: 0; }
.duel__row {
  display: grid; grid-template-columns: 34px 1fr 84px 1fr 34px;
  align-items: center; gap: 10px; margin-bottom: 12px;
}
.duel__val { font-family: "Unbounded", sans-serif; font-size: 16px; text-align: center; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.duel__val.lead { color: var(--jupiter); }
.duel__label { font-size: 12px; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .5px; }
.duel__bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.duel__bar--a { transform: scaleX(-1); }   /* левая полоса растёт к центру */
.duel__bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad-jupiter); transition: width .6s cubic-bezier(.22,.8,.28,1); }
.duel__bar--b i { background: linear-gradient(120deg, var(--ice), var(--jupiter-2)); }
@media (max-width: 560px) {
  .duel__row { grid-template-columns: 26px 1fr 64px 1fr 26px; gap: 6px; }
  .duel__val { font-size: 13px; }
  .duel__label { font-size: 10px; }
}

/* ---------- Подсказка у гол-сирены ---------- */
.horn-hint {
  position: fixed; right: 84px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 61;
  padding: 10px 16px; border-radius: 14px 14px 4px 14px;
  background: var(--grad-jupiter); color: #1a0e05; font: 600 13px/1.4 "Golos Text", sans-serif;
  box-shadow: 0 10px 26px rgba(224,96,48,.4);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s;
  pointer-events: none; max-width: 220px;
}
.horn-hint.show { opacity: 1; transform: none; }
@media (max-width: 860px) { .horn-hint { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Название прозвучавшего звука арены ---------- */
.horn-scene {
  position: fixed; right: 84px; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); z-index: 62;
  padding: 8px 14px; border-radius: 12px; white-space: nowrap;
  background: rgba(10, 10, 12, .92); border: 1px solid var(--jupiter-2); color: var(--jupiter);
  font: 600 12px/1 "Golos Text", sans-serif; letter-spacing: .3px;
  opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.horn-scene.show { opacity: 1; transform: none; }
@media (max-width: 860px) { .horn-scene { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); right: 76px; } }

/* ---------- Расписание: заметка и типы занятий ---------- */
.training-note {
  max-width: 720px; margin: 0 auto 24px; padding: 14px 20px; text-align: center;
  background: rgba(224, 96, 48, .10); border: 1px solid rgba(242, 137, 74, .32);
  border-radius: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.55;
}
.training-note .ico { color: var(--jupiter); margin-right: .3em; }
.training__kind--броски { background: rgba(242, 137, 74, .16); color: var(--jupiter); }
.training__kind--зал { background: rgba(74, 134, 208, .16); color: var(--c-assists); }
.training__kind--обед { background: rgba(138, 147, 166, .16); color: var(--c-tie); }
.training__kind--теория { background: rgba(255, 184, 119, .14); color: var(--ice); }

/* ---------- Приглашение стать спонсором ---------- */
.sponsor-cta {
  max-width: 900px; margin: 0 auto; padding: 34px 30px;
  background: linear-gradient(160deg, rgba(224,96,48,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(242,137,74,.28); border-radius: var(--radius);
}
.sponsor-cta__title {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: clamp(22px, 3.4vw, 30px); line-height: 1.18; letter-spacing: -.01em;
  margin: 0 0 14px; text-align: center;
  background: var(--grad-jupiter); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sponsor-cta__lead {
  color: var(--muted); font-size: 16px; line-height: 1.65;
  margin: 0 auto 30px; max-width: 720px; text-align: center;
}
.sponsor-cta__sub {
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ice); margin: 0 0 16px; text-align: center;
}

/* Чем можно помочь */
.spways {
  list-style: none; margin: 0 0 34px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px;
}
.spway {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color .2s ease, transform .2s ease;
}
.spway:hover { border-color: rgba(242,137,74,.45); transform: translateY(-2px); }
.spway__ico { flex: 0 0 auto; color: var(--jupiter); display: flex; font-size: 22px; padding-top: 2px; }
.spway__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spway__t { font-size: 15px; color: var(--text); }
.spway__x { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* Форматы участия */
.splevels { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.splevel {
  padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid rgba(242,137,74,.45);
}
.splevel--top {
  background: rgba(224,96,48,.13);
  border-color: rgba(242,137,74,.42); border-left-color: var(--jupiter);
}
.splevel__t { display: block; font-size: 15.5px; color: var(--text); margin-bottom: 4px; }
.splevel--top .splevel__t { color: var(--jupiter); }
.splevel__x { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

.sponsor-cta__contact {
  margin: 0; padding-top: 22px; border-top: 1px solid var(--border);
  text-align: center; color: var(--text); font-size: 15px; line-height: 1.6;
}
.sponsor-cta__contact .ico { color: var(--jupiter); margin-right: .4em; font-size: 18px; vertical-align: -3px; }
.sponsor-cta__contact p { margin: 0 0 16px; }
.sponsor-cta__call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; font-size: 17px; letter-spacing: .02em; white-space: nowrap;
}
.sponsor-cta__call .ico { color: inherit; margin-right: 0; }

@media (max-width: 560px) {
  .sponsor-cta { padding: 26px 18px; }
  .sponsor-cta__lead { font-size: 15px; }
  .spways { grid-template-columns: 1fr; }
}

/* Спрятанная картинка (не догрузилась) не должна занимать место —
   под ней уже нарисованы инициалы. */
img[hidden] { display: none !important; }

/* Длинные новости (разборы после матчей) — читаемые абзацы */
.news-card__text { line-height: 1.62; }
.news-card__text + .news-card__text { margin-top: 12px; }

/* ---------- Недельное расписание тренировок ---------- */
.week { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.wday {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: border-color .2s ease, background .2s ease;
}
.wday:hover { border-color: rgba(242, 137, 74, .38); }
.wday--rest { opacity: .72; }
.wday.is-today {
  background: rgba(224, 96, 48, .12);
  border-color: rgba(242, 137, 74, .5);
  box-shadow: 0 0 0 1px rgba(242, 137, 74, .18);
}
.wday__name {
  font-family: "Unbounded", system-ui, sans-serif; font-size: 14px;
  letter-spacing: -.01em; display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}
.wday.is-today .wday__name { color: var(--jupiter); }
.wday__badge {
  font-family: "Golos Text", system-ui, sans-serif; font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.1px; text-transform: uppercase; color: var(--bg);
  background: var(--jupiter); border-radius: 100px; padding: 2px 9px;
}
.wday__body { display: grid; gap: 8px; }
.wday__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wday__time { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 108px; }
.wday__place { font-size: 14px; color: var(--muted); flex: 1; min-width: 90px; }
.wday__rest { font-size: 14px; color: var(--muted-2); }

@media (max-width: 560px) {
  .wday { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .wday__name { flex-direction: row; align-items: center; gap: 9px; }
  .wday__time { min-width: 100px; font-size: 14.5px; }
  .wday__place { font-size: 13.5px; }
}

/* ---------- Команды игрока на карточке ---------- */
.player__teams { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 8px 0 2px; }
.pteam {
  font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 100px;
  background: rgba(242,137,74,.14); color: var(--ice);
  border: 1px solid rgba(242,137,74,.28); white-space: nowrap; cursor: default;
}

/* ---------- Быстрый просмотр результатов (таблица) ---------- */
.rtable { max-width: 720px; margin: 0 auto 22px; }
.rtable__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 0 4px 8px; flex-wrap: wrap;
}
.rtable__title {
  font-family: "Unbounded", system-ui, sans-serif; font-size: 15px; letter-spacing: -.01em; margin: 0;
}
.rtable__sum { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rtable__t {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.rt { border-bottom: 1px solid var(--border); transition: background .15s ease; }
.rt:last-child { border-bottom: 0; }
.rt:hover { background: rgba(255,255,255,.04); }
.rt td { padding: 9px 10px; vertical-align: middle; }
.rt__date { color: var(--muted); font-size: 12.5px; white-space: nowrap; width: 74px; }
.rt__opp { font-size: 14px; color: var(--text); }
.rt__score { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; width: 56px; }
.rt__score i { color: var(--muted-2); font-style: normal; margin: 0 1px; }
.rt__res { width: 30px; text-align: center; }
.rt__dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700;
}
.rt__dot--win { background: rgba(62,154,106,.2); color: var(--c-win); }
.rt__dot--lose { background: rgba(218,78,56,.18); color: var(--c-loss); }
.rt__dot--tie { background: rgba(138,147,166,.18); color: var(--c-tie); }
.rt--win .rt__score { color: var(--c-win); }
.rt--lose .rt__score { color: var(--lose); }
.rt__vid { width: 30px; text-align: center; }
.rt__vid a { color: var(--jupiter); display: inline-flex; }
.rt__vid .ico { font-size: 16px; }

@media (max-width: 480px) {
  .rt__date { width: 58px; font-size: 11.5px; }
  .rt__opp { font-size: 13px; }
  .rt td { padding: 8px 6px; }
}

.rtable__id { display: flex; flex-direction: column; gap: 2px; }
.rtable__comp { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- Премиальный анонс ближайшей игры ---------- */
.nextgame {
  position: relative; overflow: hidden;
  max-width: 760px; margin: 0 auto 26px; padding: 26px 26px 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(224,96,48,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(242,137,74,.32);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.nextgame::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-jupiter);
}
.nextgame__eyebrow {
  display: flex; align-items: center; justify-content: center; gap: .4em;
  font-family: "Unbounded", system-ui, sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ice); margin-bottom: 18px;
}
.nextgame__eyebrow .ico { color: var(--jupiter); font-size: 15px; }

.nextgame__vs {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
}
.nextgame__team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.nextgame__crest {
  width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); overflow: hidden;
  font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; font-size: 22px; color: var(--jupiter);
}
.nextgame__crest img { width: 64px; height: 64px; object-fit: contain; }
.nextgame__crest--opp { background: rgba(224,96,48,.12); }
.nextgame__name {
  font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: -.01em; text-align: center; line-height: 1.2; color: var(--text);
}
.nextgame__center { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 6px; }
.nextgame__vslabel {
  font-family: "Unbounded", system-ui, sans-serif; font-weight: 800; font-size: 26px;
  background: var(--grad-jupiter); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nextgame__where {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--bg); background: var(--jupiter); border-radius: 100px; padding: 3px 11px; white-space: nowrap;
}
.nextgame__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
}
.nextgame__meta span { display: inline-flex; align-items: center; gap: .4em; }
.nextgame__meta .ico { color: var(--jupiter); }

/* Отсчёт внутри анонса */
.ngcd { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.ngcd__cell {
  min-width: 62px; padding: 12px 6px; border-radius: 14px; text-align: center;
  background: rgba(0,0,0,.28); border: 1px solid var(--border);
}
.ngcd__cell b {
  display: block; font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; font-size: 26px;
  font-variant-numeric: tabular-nums; color: var(--text); line-height: 1;
}
.ngcd__cell span {
  display: block; margin-top: 6px; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted-2);
}
.ngcd__live {
  font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; color: var(--jupiter);
  display: inline-flex; align-items: center; gap: .4em;
}

/* Пустой режим — без выдуманных дат, но премиально */
.nextgame--empty { text-align: center; }
.nextgame__soon { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 520px; margin: 0 auto 16px; }
.nextgame__link { display: inline-flex; }

@media (max-width: 480px) {
  .nextgame { padding: 22px 16px 18px; }
  .nextgame__crest { width: 60px; height: 60px; font-size: 18px; }
  .nextgame__crest img { width: 52px; height: 52px; }
  .nextgame__name { font-size: 14px; }
  .nextgame__vslabel { font-size: 22px; }
  .ngcd { gap: 7px; }
  .ngcd__cell { min-width: 0; flex: 1; padding: 10px 4px; }
  .ngcd__cell b { font-size: 22px; }
}

/* ---------- Игровой день: обе команды играют в один день ---------- */
/* «Затем: 14:30 «Юпитер 2016-2» — Красная ракета · Озерки» под табло ближайшей игры */
.nextgame__then { margin: 16px auto 0; max-width: 560px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--muted); }
.nextgame__then b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.nextgame--live { border-color: rgba(240,83,59,.45); }
.nextgame--live .nextgame__then { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.nextgame--live .nextgame__then + .ngcd { margin-top: 12px; }
.nextgame__eyebrow .mc-live-dot { margin-right: .15em; }

/* Все игры дня — строки «Матчей», компактнее; слева время вместо даты */
.ng-day { max-width: 760px; margin: 0 auto 26px; }
/* «Сегодня сыграли» над табло последнего матча — той же ширины, что табло */
#nextGame > .ng-day:first-child { max-width: 860px; }
.ng-day__head {
  margin: 0 2px 10px; font-family: "Unbounded", system-ui, sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--ice);
}
.ng-day__note { margin: -2px 2px 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.matches.ng-day__list, .matches.gd-list { gap: 10px; }
.match--day { padding: 14px 18px; }
.match--day .match__time { font-size: 22px; letter-spacing: -.03em; }
.match--day .match__teams { font-size: 16px; flex-wrap: wrap; row-gap: 2px; column-gap: 10px; }
.match--day.is-focus { border-color: rgba(242,137,74,.42); }
.match--day.is-live { border-color: rgba(240,83,59,.5); }
.match--day .mc-vkf { max-width: 640px; }
.match__tag--live { background: rgba(240,83,59,.16); color: #ff9a85; }
.match__tag--played { background: rgba(255,255,255,.06); color: var(--muted); }
@media (min-width: 561px) { .match--day .match__teams > span { white-space: nowrap; } }

/* Карточка «Сегодня играем» / «Сегодня сыграли» на главной */
.gd-card { border-color: rgba(242,137,74,.35); }
.gd-card--live { border-color: rgba(240,83,59,.45); }
.gd-card .card__head { flex-wrap: wrap; row-gap: 6px; }
.gd-card .card__title { flex: 1 1 180px; min-width: 0; color: var(--ice); font-size: 13px; letter-spacing: 1.2px; line-height: 1.3; }
.gd-card__count {
  margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
}
/* идёт игра: что идёт + «Затем», рядом плеер трансляции */
.gd-live { display: flex; flex-direction: column; gap: 14px; margin: 0 0 16px; }
.gd-live__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.gd-now {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 2px;
  font-family: "Unbounded", system-ui, sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #ff9a85;
}
.gd-live__teams { font-family: "Unbounded", system-ui, sans-serif; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.gd-live__meta { font-size: 14px; color: var(--muted); }
.gd-live .gd-then { margin: 10px 0 0; }
.gd-player { min-width: 0; }
.gd-player .mc-vkf { max-width: 640px; }
.countdown__now .mc-live-dot { display: inline-block; vertical-align: 1px; margin-right: 8px; }
@media (min-width: 861px) {
  .gd-live { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); align-items: center; gap: 28px; margin-bottom: 20px; }
  .gd-live .gd-player { order: -1; }
  .gd-live__teams { font-size: 21px; }
}
/* «Ближайшие игры»: по строке на игру */
.next-event__line { display: block; }
.next-event__line + .next-event__line { margin-top: 2px; }
.next-event__line b { color: var(--text); font-variant-numeric: tabular-nums; }
.gd-then, .gd-note { margin: 0 0 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.gd-then b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Отсчёт в шапке: «Идёт сейчас: …» и «Затем: …» */
/* зона касания не меньше 44px: отступ сверху и снизу съеден отрицательным полем — строка стоит там же;
   в одну строку (широкий экран) — прозрачный ::after на 44px */
.countdown__now { position: relative; display: block; width: 100%; padding: 3px 0; margin: -3px 0 1px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); text-decoration: none; }
.countdown__now::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); transform: translateY(-50%); }
.countdown__now u { color: var(--ice); text-underline-offset: 3px; }
.countdown__now:hover u { color: var(--jupiter); }
.countdown__then { width: 100%; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.countdown__then b { color: var(--text); font-weight: 700; }
/* игра без объявленного времени: вместо часов и минут до полуночи — дата и «время уточняется» */
.countdown__tbd { width: 100%; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 15px; line-height: 1.4; color: var(--muted); }
.countdown__tbd b { font-family: "Unbounded", sans-serif; font-size: 18px; color: var(--text); }
/* раздел-модуль не загрузился (нет связи) — подпись в заглушке вместо вечного «Собираем…» */
.lazy-fail { color: var(--ice); }

@media (max-width: 860px) {
  .match--day { grid-template-columns: 58px 1fr; padding: 12px 14px; gap: 12px; }
  .match--day .match__right { margin-top: 4px; }
}
@media (max-width: 480px) {
  .match--day .match__time { font-size: 18px; }
  .gd-card__count { display: none; }   /* сколько игр — видно по строкам; на телефоне шапка в одну строку */
}

/* ---------- Лига с несколькими командами (ДХЛ: наш + старший) ---------- */
.season-league {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 8px 2px 2px; padding: 0 4px;
}
.season-league__title {
  font-family: "Unbounded", system-ui, sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--ice);
}
.season-league--current .season-league__title { color: var(--jupiter); }
.season-league__badge {
  font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted-2); white-space: nowrap;
}
.season-item--team { margin-left: 16px; width: calc(100% - 16px); }
.season-item--team::before { background: var(--grad-jupiter); opacity: .55; }
.season-item--team.is-active::before { opacity: 1; }

/* ---------- Турнирная таблица ДХЛ ---------- */
#standings[hidden] { display: none; }
.standings {
  max-width: 640px; margin: 0 auto 26px; padding: 20px 20px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: var(--radius);
}
.standings__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.standings__title {
  font-family: "Unbounded", system-ui, sans-serif; font-size: 15px; letter-spacing: -.01em; margin: 0;
  display: inline-flex; align-items: center; gap: .4em;
}
.standings__title .ico { color: var(--jupiter); }
.standings__as { font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.standings__t { width: 100%; border-collapse: collapse; }
.standings__t thead th {
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted-2);
  text-align: center; padding: 0 6px 8px;
}
.standings__t thead th:nth-child(2) { text-align: left; }
.st-row td { padding: 9px 6px; border-top: 1px solid var(--border); font-size: 14px; text-align: center; vertical-align: middle; }
.st__pos { width: 30px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st__team, .st-row .st__team { text-align: left; color: var(--text); }
.st__g { width: 34px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st__sc { width: 56px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st__pts { width: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-gap td { text-align: center; color: var(--muted-2); padding: 2px; border: 0; letter-spacing: 2px; }
.st-row--us {
  background: linear-gradient(90deg, rgba(224,96,48,.20), rgba(224,96,48,.05));
  outline: 1px solid rgba(242,137,74,.5);
}
.st-row--us .st__team, .st-row--us .st__pts { color: var(--jupiter); font-weight: 700; }
.st-row--elder { background: rgba(74,134,208,.10); }
.st-row--elder .st__team { color: var(--ice); }
.st__badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: var(--jupiter); color: var(--bg); border-radius: 100px; padding: 2px 7px; margin-left: 6px; vertical-align: middle;
}
.st__badge--e { background: rgba(74,134,208,.85); color: #fff; }
.standings__note { margin: 12px 2px 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.standings__note a { color: var(--jupiter); }

/* ---------- Полиш: мягкий отклик карточек ---------- */
.stat-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.stat-card:hover { transform: translateY(-3px); border-color: rgba(242,137,74,.4); box-shadow: 0 10px 26px rgba(0,0,0,.3); }

@media (max-width: 480px) {
  .standings { padding: 16px 12px 12px; }
  .st-row td { padding: 8px 4px; font-size: 13px; }
  .st__team { font-size: 12.5px; }
}

/* ---------- Таблица: другие команды нашего клуба в той же группе ---------- */
.st-row--club { background: rgba(74,134,208,.10); }
.st-row--club .st__team { color: var(--ice); }
.st__badge--c { background: rgba(74,134,208,.85); color: #fff; }
.rt__tech { font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .5px; margin-left: 4px; }

/* Узкий экран: «Юпитер 2016-2» → «2016-2» в переключателях команд, чтобы обе команды были видны без прокрутки */
@media (max-width: 480px) {
  .club-w { display: none; }
  .team-strip .seasons .season-league.season-league--current { display: none; }
}

/* Бомбардиры на телефоне: имя целиком над полосой, а не обрезанное «№69 Рома…» */
@media (max-width: 480px) {
  .hbar { grid-template-columns: 1fr 40px; row-gap: 5px; }
  .hbar__name { grid-column: 1 / -1; white-space: normal; }
}

/* Новости: без картинки — узкая полоска вместо пустой плашки; длинный текст свёрнут до ~4 строк */
.news-card__img--strip { aspect-ratio: auto; height: 46px; justify-content: flex-start; padding: 0 20px; font-size: 22px; }
.news-card__txt.is-clamped {
  max-height: 6.6em; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.news-card__toggle {
  margin-top: 10px; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font: 600 14px/1 "Golos Text", sans-serif;
}
.news-card__toggle:hover { border-color: rgba(224,96,48,.45); }

/* Ссылки «Протокол и видео ДХЛ» и значки в таблице — под палец (не меньше 40px); строка таблицы с протоколом нажимается */
.match__video { min-height: 40px; }
.card__link { min-height: 40px; display: inline-flex; align-items: center; }
.rt__vid { width: 44px; }
.rt__vid a { min-width: 40px; min-height: 40px; align-items: center; justify-content: center; }
.rt--open { cursor: pointer; }
.rt--open:hover td { background: rgba(255, 255, 255, .03); }

/* Зачёты ДХЛ: карточки рядом с местом — по своему дивизиону, общий итог ДХЛ — строкой под ними */
.rec-scope { font-size: 14px; line-height: 1.5; color: var(--muted); }
.rec-scope b { color: var(--text); font-weight: 600; }
.rec-scope--cap { margin: 0 0 12px; }
.rec-scope--total { margin: -34px 0 30px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.rec-scope--total p { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.rec-scope--total .rec-scope__note { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.leaders__scope { margin: -10px 0 14px; font-size: 13px; color: var(--muted); }
.leaders__scope[hidden] { display: none; }
.chart__sub { display: block; margin-top: 4px; font-family: "Golos Text", sans-serif; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
@media (max-width: 480px) {
  .rec-scope--total { margin-top: -38px; padding: 10px 12px; font-size: 13.5px; }
}

/* ---------- Кричалка: входы (окно — css/mods/chant.css, модуль js/mods/chant.js) ---------- */
/* Девиз на главной: тихая строка под подзаголовком, нажатие открывает кричалку */
.hero__motto {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -14px 0 18px; padding: 6px 14px 6px 10px;
  border: 1px solid rgba(242, 137, 74, .28); border-radius: 999px; background: rgba(224, 96, 48, .08);
  color: var(--muted); font: 500 15px/1.2 "Golos Text", sans-serif; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: border-color .2s, background .2s;
}
.hero__motto .ico { font-size: 17px; color: var(--jupiter); }
.hero__motto b {
  font: 800 15px/1 "Unbounded", sans-serif; letter-spacing: .5px;
  background: var(--grad-jupiter); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__motto:hover { border-color: rgba(242, 137, 74, .6); background: rgba(224, 96, 48, .14); }
.motion-ready .hero__motto { opacity: 0; }

/* Именинник дня на главной (app.js renderHomeBirthday): только в день рождения, ведёт в «Поздравления» */
.hero-bd {
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 8px 16px 8px 10px;
  border-radius: 22px; background: var(--grad-jupiter); color: #1a0e05; box-shadow: var(--shadow);
  font: 600 15px/1.3 "Golos Text", sans-serif; text-align: left; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.hero-bd[hidden] { display: none; }
.hero-bd__ico { display: inline-flex; flex-shrink: 0; width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0, 0, 0, .16); font-size: 19px; }
.hero-bd__txt b { font-weight: 800; }
.hero-bd__go { flex-shrink: 0; margin-left: 2px; font-weight: 800; white-space: nowrap; }
.hero-bd:hover .hero-bd__go, .hero-bd:focus-visible .hero-bd__go { text-decoration: underline; }
.motion-ready .hero-bd { opacity: 0; }

/* Именинник вместо логотипа (app.js setHeroBirthdayPic): фото в круге, колпак, номер; без фото — колпак на логотипе */
.hero--bday-photo .hero__logo { display: none; }
.hero-bdpic { position: relative; width: min(82%, 340px); margin: 0 auto; padding-top: 30%; }
.hero-bdpic__frame {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #0b0b0d; border: 5px solid #f2894a;
  box-shadow: 0 0 0 5px rgba(242, 137, 74, .22), 0 0 46px rgba(224, 96, 48, .5);
}
.hero-bdpic__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero-bdpic__photo.is-on { opacity: 1; }
.hero-bdpic__photo--logo { object-fit: contain; padding: 9%; }
.hero-bdpic__hat {
  position: absolute; left: 29%; top: -4%; width: 44%; height: auto; z-index: 2;
  transform: rotate(-13deg); transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
}
.hero-bdpic__num {
  position: absolute; left: 50%; bottom: -4%; transform: translateX(-50%); z-index: 2;
  padding: 4px 14px; border-radius: 999px; background: var(--grad-jupiter); color: #1a0e05;
  font: 800 clamp(13px, 2.2vw, 20px)/1.2 "Unbounded", sans-serif; letter-spacing: .5px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}
/* нет фото: колпак поверх логотипа «Юпитера» */
.hero-bdpic--logo { position: absolute; inset: 0; width: auto; margin: 0; padding: 0; z-index: 2; }
.hero-bdpic--logo .hero-bdpic__hat { left: 30%; top: -30%; width: 40%; }
@media (max-width: 860px) {
  .hero-bdpic__frame { border-width: 3px; box-shadow: 0 0 0 3px rgba(242, 137, 74, .22), 0 0 26px rgba(224, 96, 48, .5); }
  .hero-bdpic__num { padding: 2px 9px; font-size: 11px; }
  .hero--bday:not(.hero--bday-photo) .hero__logo-wrap { margin-top: 12%; }
}
@media (min-width: 861px) {
  .hero-bdpic { width: min(82%, 290px); }
  .hero-bdpic__hat { top: 4%; }
  .hero--bday-photo .hero__logo-wrap { top: 45%; }   /* номер под фото не уходит за первый экран */
}
@media (prefers-reduced-motion: reduce) { .hero-bdpic__photo { transition: none; } }
@media (max-width: 860px) {
  .hero-bd { margin: -4px auto 14px; padding: 7px 12px 7px 8px; font-size: 13.5px; border-radius: 18px; }
  .hero-bd__ico { width: 30px; height: 30px; font-size: 17px; }
}
/* узкий телефон: вместо «Поздравить →» — стрелка, текст поздравления занимает всю строку */
@media (max-width: 420px) {
  .hero-bd__go { display: none; }
  .hero-bd::after { content: "›"; flex-shrink: 0; margin-left: auto; padding-left: 2px; font: 800 22px/1 "Golos Text", sans-serif; }
}
@media (max-width: 860px) {
  .hero__motto { margin: -6px auto 14px; font-size: 14px; }
  .hero__motto b { font-size: 14px; }
}

/* «Кто мы?» — облачко над гол-сиреной: сирена «спрашивает», команда отвечает в кричалке.
   Видно и прячется вместе с сиреной: открыто меню, нижняя панель уехала при прокрутке, вкладка «Музыка» на телефоне */
.chant-fab {
  position: fixed; right: 18px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  min-height: 34px; padding: 0 12px; border-radius: 17px 17px 5px 17px;
  border: 1.5px solid rgba(242, 137, 74, .7); background: #17100c; color: var(--jupiter);
  font: 700 11.5px/1 "Unbounded", sans-serif; letter-spacing: .3px; white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5); -webkit-tap-highlight-color: transparent;
  transition: transform .15s, border-color .2s, opacity .2s;
}
.chant-fab::after { content: ""; position: absolute; inset: -6px -4px; }   /* под палец — не меньше 44 px */
.chant-fab:hover { border-color: var(--jupiter); transform: translateY(-1px); }
.chant-fab:active { transform: scale(.94); }
body.menu-open .chant-fab { visibility: hidden; }
body.chant-motto-on .chant-fab { opacity: 0; visibility: hidden; pointer-events: none; }   /* девиз на главной виден — он и есть вход */
body:has(.horn-hint.show) .chant-fab { opacity: 0; pointer-events: none; }   /* одноразовая подсказка сирены — без соседа */
/* при мини-плеере песен надпись прозвучавшего звука арены («Гол! Двойной гудок») поднята — на 1,8 с прячем облачко */
body.mu-mini-on:has(.horn-scene.show) .chant-fab { opacity: 0; pointer-events: none; }
.perf-vt .chant-fab { view-transition-name: hky-chant-fab; }
::view-transition-old(hky-chant-fab) { display: none; }
::view-transition-new(hky-chant-fab), ::view-transition-group(hky-chant-fab) { animation: none; mix-blend-mode: normal; }
@media (max-width: 860px) {
  .chant-fab { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); transition: transform .25s ease, opacity .25s ease; }
  .tabbar.is-hidden ~ .chant-fab { transform: translateY(160px); opacity: 0; pointer-events: none; }
  body.mu-screen .chant-fab { opacity: 0; visibility: hidden; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chant-fab, .hero__motto { transition: none; }
}

/* ===== Логотипы соперников (герб oppCrest в app.js; data.js → oppLogos, файлы assets/opp) =====
   Кружок соперника тот же, что был с инициалами (размеры прежние — вёрстка не меняется), но с логотипом у него светлая
   подложка: эмблемы клубов рисуются под светлый фон, а тёмные (например, «Динамо Юность») на тёмном не видны.
   Обводка — фирменная оранжевая. Картинка вписана целиком (contain) с полями, чтобы круглые эмблемы не резались. */
.opp-crest.opp-crest {
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #f2eee9 60%, #e3ddd6 100%);
  border-color: rgba(242,137,74,.6);
}
.opp-crest.opp-crest > img { display: block; width: 82%; height: 82%; object-fit: contain; }
/* логотип соперника в строке матча (списки «Матчей», «игры дня») — в колонке даты: на телефоне и планшете под датой,
   на компьютере слева от даты (колонка 92 px шире даты) — размеры строк прежние; светлый кружок — как у гербов соперника */
.match__logo { display: block; width: 30px; height: 30px; margin: 6px auto 0; padding: 2px; box-sizing: border-box;
  border-radius: 50%; object-fit: contain; background: #f2eee9; border: 1px solid rgba(242,137,74,.55); }
@media (min-width: 861px) {
  .match__date--logo { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 9px; }
  .match__date--logo > .match__day, .match__date--logo > .match__mon { grid-column: 2; }
  .match__date--logo > .match__logo { grid-column: 1; grid-row: 1 / span 2; margin: 0; width: 32px; height: 32px; }
}
/* до 860 px логотип висит под датой (временем — в строках «игр дня», .match__date--time) вне потока: в высоте строки не
   участвует, поэтому строки ровно той же высоты, что без логотипа, при любой длине названий (в потоке строка с короткими
   названиями в одну строчку на 430–860 px вырастала). Под колонкой даты во второй строке сетки пусто — счёт и кнопки
   правее, «В календарь» ниже. Строка игры дня без кнопок справа (нет эфира и досье) — без логотипа: под ним не было бы места. */
@media (max-width: 860px) {
  .match__date--logo, .match__date--time { position: relative; }
  .match__date--logo > .match__logo, .match__date--time > .match__logo { position: absolute; top: 100%; left: 50%; margin: 6px 0 0 -15px; }
  .match--day:has(> .match__right:empty) .match__logo { display: none; }
}
/* строки «игр дня» на компьютере: время занимает всю колонку даты — логотипа там нет */
@media (min-width: 861px) { .match__date--time > .match__logo { display: none; } }
