/* =====================================================================
   SPORTA — дизайн-токены и компоненты
   Переносится в site/static/style.css как есть.
   Тема: атрибут data-theme="light|dark" на <html>. Маленький inline-скрипт
   в <head> ставит его из localStorage или prefers-color-scheme до отрисовки;
   кнопка в шапке переключает. Без JS работает светлая тема.
   Адаптив — container queries от .sp (обёртка страницы = <body class="sp">).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* ---------- 1. Токены: светлая тема ---------- */
:root, [data-theme="light"] {
  color-scheme: light;

  /* бренд */
  --navy: #011E56;
  --navy-2: #0A2D72;
  --navy-3: #1E3F86;
  --orange: #F28C1B;
  --orange-hover: #FF9C33;

  /* поверхности */
  --bg: #F1F3F8;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --surface-3: #E9EDF4;
  --line: #E0E5EE;
  --line-2: #C6CEDC;

  /* текст */
  --text: #0B1633;
  --text-2: #3D4966;
  --text-3: #58647F;
  --link: #0B3A9C;

  /* шапка (одинакова в обеих темах) */
  --hdr-bg: #011E56;
  --hdr-text: #FFFFFF;
  --hdr-text-2: #C2CEEA;
  --hdr-line: rgba(255, 255, 255, .14);
  --hdr-hover: rgba(255, 255, 255, .09);

  /* акцент */
  --accent: #F28C1B;
  --on-accent: #011E56;
  --accent-ink: #A85400;          /* оранжевый для текста на светлом, 5.3:1 */
  --accent-soft: #FFF0DD;
  --btn-primary: #011E56;

  /* результаты: заливка + текст на ней + мягкий фон */
  --win: #18794E;  --on-win: #FFFFFF;  --win-soft: #E2F3E9;
  --draw: #667089; --on-draw: #FFFFFF; --draw-soft: #ECEFF4;
  --loss: #B8322A; --on-loss: #FFFFFF; --loss-soft: #FBE6E3;

  /* статусы матча */
  --live: #C81E2A;  --live-soft: #FDE7E8;
  --post: #8A5300;  --post-soft: #FFF3D1;

  /* зоны таблицы */
  --z-ucl: #1D4ED8;
  --z-uecl: #0F7C85;
  --z-rel: #B8322A;
  --on-zone: #FFFFFF;

  /* выделение выбранной команды */
  --sel-bg: #FFF3E3;
  --sel-line: #F28C1B;

  /* карточки событий */
  --card-y: #F2B705;
  --card-r: #D3262E;

  /* реклама */
  --ad-bg: #F6F2EA;
  --ad-line: #E0D6C2;
  --ad-meta: #67583B;
  --ad-stripe: rgba(103, 88, 59, .08);

  /* фокус */
  --focus: #0B3A9C;

  /* тени */
  --sh-1: 0 1px 2px rgba(11, 22, 51, .06);
  --sh-2: 0 10px 28px rgba(11, 22, 51, .10);
  --sh-score: 0 12px 32px rgba(1, 30, 86, .22);
}

/* ---------- 1b. Токены: тёмная тема ---------- */
[data-theme="dark"] {
  color-scheme: dark;

  --bg: #070E1E;
  --surface: #0E1830;
  --surface-2: #121E3A;
  --surface-3: #192749;
  --line: #1F2C4C;
  --line-2: #2E3F67;

  --text: #E9EEF8;
  --text-2: #B6C0D7;
  --text-3: #8E9BB7;
  --link: #93B6FF;

  --accent-ink: #FFA54A;
  --accent-soft: #2B1D0C;
  --btn-primary: #1E3F86;

  --win: #46C483;  --on-win: #05170D;  --win-soft: #0E2A1D;
  --draw: #9AA6BF; --on-draw: #0B1220; --draw-soft: #1A2440;
  --loss: #FF7A6E; --on-loss: #2B0805; --loss-soft: #351616;

  --live: #FF6B72;  --live-soft: #3A1418;
  --post: #F2C14E;  --post-soft: #2E2410;

  --z-ucl: #7BA0FF;
  --z-uecl: #3CCAD3;
  --z-rel: #FF7A6E;
  --on-zone: #07102A;

  --sel-bg: #2A1D0D;

  --ad-bg: #17140F;
  --ad-line: #352D1F;
  --ad-meta: #CDB98E;
  --ad-stripe: rgba(205, 185, 142, .07);

  --focus: #FFB35C;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .45);
  --sh-2: 0 10px 28px rgba(0, 0, 0, .5);
  --sh-score: 0 12px 32px rgba(0, 0, 0, .45);
}

/* ---------- 1c. Типографика, отступы, радиусы (общие) ---------- */
:root {
  --font-display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;   /* базовый */
  --fs-17: 17px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-32: 32px;
  --fs-score: 44px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  --tap: 44px;          /* минимальная зона нажатия */
  --side: 300px;        /* правая колонка на десктопе */
  --maxw: 1232px;       /* 1200 + 2 × 16 */
}

/* ---------- 2. База ---------- */
.sp {
  container-type: inline-size;
  font-family: var(--font-body);
  font-size: var(--fs-15);
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
.sp a { color: var(--link); }
.sp :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }
.sp h1, .sp h2, .sp h3, .sp p { margin: 0; }
.num, .st td, .m-score, .m-time, .ev-min, .sb-n { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); }
.ico { width: 20px; height: 20px; flex: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s-4); }
.page { padding: var(--s-4) 0 var(--s-8); display: grid; gap: var(--s-4); }
.layout { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); align-items: start; }
.main { display: grid; gap: var(--s-4); min-width: 0; }
.side { display: grid; gap: var(--s-4); min-width: 0; }
.cols2 { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@container (min-width: 700px) {
  .cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) var(--side); gap: var(--s-6); }
  .page { padding-top: var(--s-6); gap: var(--s-6); }
}

/* ---------- 3. Шапка ---------- */
.hdr { background: var(--hdr-bg); color: var(--hdr-text); }
.hdr :focus-visible { outline-color: var(--orange); }
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-4); }
.logo { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; order: 1; }
.logo-slot {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border: 1.5px dashed rgba(255, 255, 255, .5); border-radius: var(--r-sm);
  color: var(--hdr-text-2); font-size: var(--fs-12); font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.hdr-tools { order: 2; margin-left: auto; display: flex; gap: 2px; margin-right: -10px; }
.ibtn {
  width: var(--tap); height: var(--tap);
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-md); background: transparent; color: var(--hdr-text); cursor: pointer;
}
.ibtn:hover { background: var(--hdr-hover); }
.ibtn svg { width: 22px; height: 22px; }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

.nav {
  order: 3; flex: 1 0 100%;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--s-4) * -1); padding: 0 var(--s-2);
  border-top: 1px solid var(--hdr-line);
}
.nav::-webkit-scrollbar { display: none; }
.nav-a {
  position: relative; display: inline-flex; align-items: center;
  height: var(--tap); padding: 0 12px;
  color: var(--hdr-text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-14); white-space: nowrap;
}
.sp .nav-a { color: var(--hdr-text-2); }
.sp .nav-a:hover, .sp .nav-a.is-active { color: var(--hdr-text); }
/* «гребень» — оранжевый скошенный штрих под активным разделом */
.nav-a.is-active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 4px;
  background: var(--orange);
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
@container (min-width: 1024px) {
  .hdr-in { height: 60px; column-gap: var(--s-6); }
  .nav-a { height: 60px; padding: 0 11px; font-size: var(--fs-15); }
  .hdr-tools { order: 3; margin-left: 0; }
  .logo-slot { height: 38px; }
}

/* полоса даты под шапкой */
.dbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.dbar a { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); padding: 0 8px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-14); border-radius: var(--r-md); }
.dbar a:hover { background: var(--surface-3); }
.dbar-now { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-14); color: var(--text); text-align: center; }

/* ---------- 4. Заголовки, хлебные крошки, вкладки ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: var(--fs-13); color: var(--text-3); }
.crumbs a { color: var(--text-2); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--line-2); }

.ph { display: flex; align-items: center; gap: var(--s-3); }
.ph h1 { font-family: var(--font-display); font-size: var(--fs-24); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.ph-sub { margin-top: 4px; font-size: var(--fs-14); color: var(--text-3); }
@container (min-width: 1024px) { .ph h1 { font-size: var(--fs-32); } }

.h2 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: var(--fs-15); font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.h2::before { content: ""; flex: none; width: 7px; height: 15px; background: var(--orange); transform: skewX(-16deg); border-radius: 1px; }

.lead { font-size: var(--fs-15); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.intro { font-size: var(--fs-14); line-height: 1.55; color: var(--text-2); }

.pills { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s-4) * -1); padding: 2px var(--s-4); }
.pills::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex; align-items: center; height: var(--tap); padding: 0 16px; flex: none;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 600; font-size: var(--fs-14); text-decoration: none; white-space: nowrap;
}
.sp .pill { color: var(--text); }
.sp .pill:hover { border-color: var(--text-3); }
.sp .pill.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- 5. Карточка-секция ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 12px 16px; min-height: 52px; }
.card-b { padding: 0 16px 16px; }
.card-f { border-top: 1px solid var(--line); }
.more { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); font-size: var(--fs-14); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sp .more { color: var(--link); }
.more svg { width: 16px; height: 16px; }
.card-f .more { width: 100%; justify-content: center; }

/* ---------- 6. Заголовок турнира в списке ---------- */
.tg-h {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px;
  background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: var(--fs-13); color: var(--text-3);
}
.tg-h .tg-name { font-weight: 700; color: var(--text); text-decoration: none; }
.tg-h .tg-name:hover { text-decoration: underline; }
.tg-h .tg-dot { color: var(--line-2); }
.tg-h .tg-r { margin-left: auto; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.sp .tg-h .tg-r { color: var(--link); }

.cc {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 26px; height: 18px; padding: 0 4px; border-radius: var(--r-xs);
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  background: var(--surface-3); color: var(--text-2);
}
.cc--by { background: var(--navy); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }

/* ---------- 7. Строка матча ---------- */
.m {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  min-height: 68px; padding: 10px 16px;
  color: inherit; text-decoration: none; border-bottom: 1px solid var(--line);
}
.m:last-child { border-bottom: 0; }
.sp .m { color: var(--text); }
.m:hover { background: var(--surface-2); }
.m-time { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-14); font-weight: 700; color: var(--text); line-height: 1.2; }
.m-st { font-size: var(--fs-12); font-weight: 500; color: var(--text-3); }
.m-time.is-live, .m-time.is-live .m-st { color: var(--live); }
.m-time.is-post .m-t { text-decoration: line-through; color: var(--text-3); font-weight: 500; }
.m-time.is-post .m-st { color: var(--post); font-weight: 700; }
.m-teams { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.m-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-15); color: var(--text-2); }
.m-team .m-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m.is-pre .m-team, .m.is-draw .m-team { color: var(--text); }
.m-team.is-win { color: var(--text); font-weight: 700; }
.m-score { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; min-width: 22px; font-size: var(--fs-17); font-weight: 600; color: var(--text-2); }
.m-s { height: 24px; display: flex; align-items: center; gap: 3px; }
.m-s.is-win { color: var(--text); font-weight: 800; }
.m-s sup { font-size: var(--fs-11); font-weight: 600; color: var(--text-3); align-self: flex-start; margin-top: 1px; }
.m-dash { color: var(--text-3); font-weight: 500; }
.tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: var(--r-xs);
  background: var(--surface-3); color: var(--text-2); font-size: var(--fs-11); font-weight: 700; letter-spacing: .02em; width: max-content;
}

/* ---------- 8. Значок команды (вместо логотипа) ----------
   --h: оттенок 0–360, стабильный для команды (hash(id) % 360 на сервере). */
.tb {
  --h: 215;
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 7px;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(0, 0, 0, .22) 58% 100%),
    hsl(var(--h) 58% 32%);
  color: #FFFFFF; font-family: var(--font-display); font-weight: 700; font-size: 9px; line-height: 1; letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .22);
  text-transform: uppercase; user-select: none;
}
.tb:empty { display: none; }
.tb--m { width: 32px; height: 32px; border-radius: 9px; font-size: 11px; }
.tb--l { width: 56px; height: 56px; border-radius: 15px; font-size: 18px; }
.tb--xl { width: 72px; height: 72px; border-radius: 19px; font-size: 23px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), inset 0 2px 0 rgba(255, 255, 255, .22), 0 6px 16px rgba(0, 0, 0, .25); }
/* значок турнира: тёмно-синий с оранжевыми буквами */
.trn {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 15px; background: var(--navy); color: var(--orange);
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.trn--s { width: 28px; height: 28px; border-radius: 8px; font-size: 10px; }

/* ---------- 9. Форма (В/Н/П) ---------- */
.form { display: inline-flex; gap: 3px; }
.fm { width: 20px; height: 20px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--fs-11); font-weight: 800; }
.fm-w { background: var(--win); color: var(--on-win); }
.fm-d { background: var(--draw); color: var(--on-draw); }
.fm-l { background: var(--loss); color: var(--on-loss); }
.fm-x { border: 1.5px dashed var(--line-2); color: var(--text-3); }

/* ---------- 10. Таблица ---------- */
.tbl-box { overflow-x: auto; }
.st { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.st th {
  height: 36px; padding: 0 5px; font-size: var(--fs-12); font-weight: 600; color: var(--text-3);
  text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.st td { height: 44px; padding: 0 5px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); color: var(--text-2); }
.st tr:last-child td { border-bottom: 0; }
.st .c-pos { width: 40px; padding-left: 12px; }
.st .c-team { text-align: left; width: 100%; }
.st th.c-team { padding-left: 4px; }
.st .c-team a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--text); text-decoration: none; font-weight: 600; }
.st .c-team a:hover { text-decoration: underline; }
.st .c-pts { font-weight: 800; color: var(--text); padding-right: 12px; }
.st .c-form { padding-right: 12px; }
.st .c-gd-p { color: var(--win); }
.pos { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: var(--r-sm); font-weight: 700; font-size: var(--fs-13); color: var(--text-2); }
.pos.z-ucl { background: var(--z-ucl); color: var(--on-zone); }
.pos.z-uecl { background: var(--z-uecl); color: var(--on-zone); }
.pos.z-rel { background: var(--z-rel); color: var(--on-zone); }
.st tr.is-sel td { background: var(--sel-bg); }
.st tr.is-sel td:first-child { box-shadow: inset 4px 0 0 var(--sel-line); }
.st tr.is-gap .form { display: none; }
.st tr.is-gap td { height: 28px; color: var(--text-3); font-size: var(--fs-12); background: var(--surface-2); }
@container (max-width: 640px) {
  .st .hm { display: none; }
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; font-size: var(--fs-12); color: var(--text-2); border-top: 1px solid var(--line); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ---------- 11. Чипы, кнопки ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-2); font-size: var(--fs-13); font-weight: 600; white-space: nowrap; }
.chip--live { background: var(--live-soft); color: var(--live); }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--post { background: var(--post-soft); color: var(--post); }
.chip--done { background: var(--surface-3); color: var(--text-2); }
.chip--accent { background: var(--accent-soft); color: var(--accent-ink); }
a.chip { text-decoration: none; min-height: 36px; height: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 0 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: var(--fs-15); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.sp .btn--accent { background: var(--accent); color: var(--on-accent); }
.sp .btn--accent:hover { background: var(--orange-hover); }
.sp .btn--primary { background: var(--btn-primary); color: #FFFFFF; }
.sp .btn--ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.sp .btn--ghost:hover { background: var(--surface-3); }
.btn svg { width: 16px; height: 16px; }

/* ---------- 12. Блок счёта матча ---------- */
.sb {
  background: var(--navy); color: #FFFFFF; border-radius: var(--r-xl); box-shadow: var(--sh-score);
  padding: 16px 16px 20px; position: relative; overflow: hidden;
}
[data-theme="dark"] .sb { box-shadow: inset 0 0 0 1px #1C3A7A, var(--sh-score); }
/* гребень сверху по центру */
.sb::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 120px; height: 5px; transform: translateX(-50%);
  background: var(--orange); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 6px 100%);
}
.sb-top { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-13); color: #C2CEEA; text-align: center; }
.sb-top a { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.sb-top a:hover { text-decoration: underline; }
.sb-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; margin-top: 16px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: #FFFFFF; text-decoration: none; min-width: 0; }
.sb-team b { font-size: var(--fs-15); line-height: 1.25; font-weight: 700; }
.sb-team small { font-size: var(--fs-12); color: #C2CEEA; }
.sb-mid { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.sb-score { display: flex; align-items: center; gap: 6px; }
.sb-n {
  min-width: 52px; height: 66px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-family: var(--font-display); font-size: var(--fs-score); font-weight: 700; line-height: 1; color: #C2CEEA;
}
.sb-n.is-win { color: #FFFFFF; background: rgba(255, 255, 255, .14); }
.sb-n--time { font-size: 30px; min-width: 120px; color: #FFFFFF; }
.sb-colon { font-family: var(--font-display); font-size: 28px; color: #8FA3CF; }
.sb-sub { font-size: var(--fs-13); color: #C2CEEA; text-align: center; }
.sb-sub b { color: #FFFFFF; font-weight: 700; }
.sb-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .12); color: #FFFFFF; font-size: var(--fs-12); font-weight: 700; letter-spacing: .02em; }
.sb-chip--post { background: #FFE5A3; color: #4A3000; }
.sb-chip--live { background: #FFE1E2; color: #A1111B; }
.sb-chip--nodata { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.sb-date { margin-top: 14px; text-align: center; font-size: var(--fs-13); color: #C2CEEA; }
.sb-periods { display: flex; gap: 6px; }
.sb-periods span { font-size: var(--fs-12); font-weight: 700; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #DCE4F5; }
@container (min-width: 1024px) {
  .sb { padding: 22px 32px 26px; }
  .sb-n { min-width: 72px; height: 88px; font-size: 60px; }
  .sb-team b { font-size: var(--fs-20); }
  .sb-main { gap: 24px; }
}

/* ---------- 13. Лента событий ---------- */
.ev-sep { padding: 8px 16px; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-size: var(--fs-12); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.ev-sep b { color: var(--text); margin-left: 6px; }
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
.ev-row:last-child { border-bottom: 0; }
.ev-min { text-align: center; font-weight: 700; font-size: var(--fs-14); color: var(--text); }
.ev-side { display: flex; align-items: center; gap: 8px; padding: 6px 0; min-width: 0; }
.ev-h { justify-content: flex-end; text-align: right; padding-left: 12px; }
.ev-a { padding-right: 12px; }
.ev-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ev-name { font-weight: 600; font-size: var(--fs-14); color: var(--text); }
.ev-sub { font-size: var(--fs-12); color: var(--text-3); }
.ev-sc { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border-radius: var(--r-xs); background: var(--surface-3); font-size: var(--fs-12); font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.ev-pim { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 5px; border-radius: var(--r-xs); background: var(--post-soft); color: var(--post); font-size: var(--fs-11); font-weight: 800; }
.i-goal { color: var(--text); }
.i-own { color: var(--loss); }
.i-yc { color: var(--card-y); }
.i-rc { color: var(--card-r); }
.i-in { color: var(--win); }
.i-out { color: var(--loss); }

/* ---------- 14. Составы ---------- */
.lu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lu-col + .lu-col { border-left: 1px solid var(--line); }
.lu-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 700; font-size: var(--fs-14); border-bottom: 1px solid var(--line); min-width: 0; }
.lu-h span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-t { padding: 8px 12px 4px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.lu-p { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; font-size: var(--fs-14); color: var(--text); }
.lu-p i { width: 22px; flex: none; font-style: normal; font-weight: 700; font-size: var(--fs-13); color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.lu-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-coach { padding: 10px 12px; font-size: var(--fs-13); color: var(--text-2); border-top: 1px solid var(--line); }

/* ---------- 15. Определения (информация о матче) ---------- */
.dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; }
.dl dt, .dl dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.dl dt { color: var(--text-3); padding-right: 16px; }
.dl dd { color: var(--text); font-weight: 500; }
.dl dt:last-of-type, .dl dd:last-of-type { border-bottom: 0; }

/* ---------- 16. Пустое состояние ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 20px; }
.empty-i { width: 48px; height: 48px; border-radius: 50%; border: 1.5px dashed var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); margin-bottom: 6px; }
.empty b { font-size: var(--fs-15); color: var(--text); }
.empty p { font-size: var(--fs-13); color: var(--text-3); max-width: 300px; }

/* ---------- 17. Реклама ----------
   Всегда: метка «Реклама», 18+, строка об ответственной игре со ссылкой.
   Отличие от контента: тёплый «бумажный» фон, штриховка в служебной полосе,
   своя рамка, кнопка партнёра — оранжевая. */
.ad { background: var(--ad-bg); border: 1px solid var(--ad-line); border-radius: var(--r-lg); color: var(--text); overflow: hidden; }
.ad-meta {
  display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px;
  background: repeating-linear-gradient(135deg, var(--ad-stripe) 0 6px, transparent 6px 12px);
  border-bottom: 1px solid var(--ad-line);
  font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ad-meta);
}
.ad-meta .age { margin-left: auto; }
.age {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 30px; height: 20px; padding: 0 5px; border: 1.5px solid currentColor; border-radius: var(--r-pill);
  font-size: var(--fs-11); font-weight: 800; letter-spacing: 0; text-transform: none;
}
.ad-body { display: flex; align-items: center; gap: 12px; padding: 12px; }
.ad-logo {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1.5px dashed var(--ad-line); color: var(--ad-meta);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-12);
}
.ad-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ad-title { font-weight: 800; font-size: var(--fs-15); color: var(--text); }
.ad-text { font-size: var(--fs-13); color: var(--text-2); }
.ad-warn { padding: 8px 12px 10px; font-size: var(--fs-12); line-height: 1.4; color: var(--text-2); border-top: 1px solid var(--ad-line); }
.sp .ad-warn a { color: var(--text); font-weight: 600; }
.ad--side .ad-body { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
.ad--side .ad-logo { width: 56px; height: 56px; }
.ad--side .btn { width: 100%; }
.ad--match .ad-body { padding: 16px; flex-wrap: wrap; }
.ad--match .ad-copy { flex: 1 1 200px; }
@container (max-width: 640px) {
  .ad--match .btn { width: 100%; }
}

/* список «Лучшие букмекеры Беларуси» */
.bk-list { display: grid; gap: var(--s-3); }
.bk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; padding: 16px; align-items: start; }
.bk-rank { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); color: var(--ad-meta); width: 28px; text-align: center; padding-top: 10px; }
.bk-info { display: grid; gap: 4px; min-width: 0; }
.bk-head { display: flex; align-items: center; gap: 12px; }
.bk-legal { font-size: var(--fs-13); color: var(--text-2); }
.bk-offer { grid-column: 1 / -1; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--ad-line); font-size: var(--fs-14); color: var(--text); }
.bk-cta { grid-column: 1 / -1; display: grid; }
@container (min-width: 1024px) {
  .bk { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr) 160px; align-items: center; }
  .bk-rank { padding-top: 0; }
  .bk-offer { grid-column: auto; }
  .bk-cta { grid-column: auto; }
}

/* ---------- 18. Правая колонка: список турниров ---------- */
.tl-g { padding: 4px 0 8px; }
.tl-gh { padding: 8px 16px 4px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.tl-a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; text-decoration: none; font-size: var(--fs-14); font-weight: 500; }
.sp .tl-a { color: var(--text); }
.tl-a:hover { background: var(--surface-2); }
.tl-a .muted { margin-left: auto; font-size: var(--fs-12); }

/* ---------- 19. Плитки-цифры (сводка команды/игрока) ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.kpi { padding: 12px 8px; text-align: center; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
@container (min-width: 700px) { .kpi b { font-size: var(--fs-20) !important; } }
.kpi b { display: block; font-family: var(--font-display); font-size: var(--fs-15); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.kpi span { font-size: var(--fs-12); color: var(--text-3); }

/* шапка сущности (команда, игрок, турнир) */
.hero { display: flex; align-items: center; gap: 14px; padding: 16px; }
.hero h1 { font-family: var(--font-display); font-size: var(--fs-24); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: var(--fs-13); color: var(--text-3); }
@container (min-width: 1024px) { .hero h1 { font-size: var(--fs-32); } .hero { padding: 24px; gap: 20px; } }

/* сетка списка команд */
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 12px; padding: 4px 16px 12px; }
.teams a { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: var(--fs-14); }
.sp .teams a { color: var(--text); }

/* текстовые страницы */
.prose { display: grid; gap: 14px; font-size: var(--fs-15); line-height: 1.65; color: var(--text-2); max-width: 720px; }
.prose h2 { font-family: var(--font-display); font-size: var(--fs-17); font-weight: 600; color: var(--text); margin-top: 8px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- 20. Подвал ---------- */
.ftr { background: var(--surface); border-top: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-14); }
.ftr-in { display: grid; gap: 20px; padding-top: 28px; padding-bottom: 32px; }
.ftr .logo-slot { border-color: var(--line-2); color: var(--text-3); }
.ftr-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ftr-links a { display: flex; align-items: center; min-height: 40px; text-decoration: none; font-weight: 500; }
.sp .ftr-links a { color: var(--text); }
.ftr-src { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.ftr-src h2 { font-size: var(--fs-12); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.ftr-src ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: var(--fs-13); }
.ftr-legal { display: flex; align-items: center; gap: 10px; font-size: var(--fs-13); color: var(--text); }
.ftr-small { font-size: var(--fs-13); color: var(--text-3); }
@container (min-width: 1024px) {
  .ftr-in { grid-template-columns: 1.2fr 1fr 1.3fr; align-items: start; column-gap: 40px; }
  .ftr-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; border-top: 1px solid var(--line); }
}

/* ---------- 21. Бегущая строка «Табло» (над шапкой) ----------
   Две одинаковые копии списка подряд → бесшовный цикл. Вторая копия aria-hidden.
   Пауза при наведении/фокусе, без анимации при prefers-reduced-motion. */
.tkr { display: flex; align-items: stretch; min-height: 44px; background: var(--orange); overflow: hidden; font-size: var(--fs-13); font-weight: 600; }
.tkr-l {
  flex: none; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  /* левый край — по колонке сайта (как логотип ниже), а не по краю экрана */
  padding: 4px 14px 4px max(16px, calc(50% - (var(--maxw) / 2) + 16px));
  background: var(--navy); border-right: 3px solid var(--navy-2, #0A2E73);
}
.tkr-live { display: inline-flex; align-items: center; gap: 7px; color: var(--orange); font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .14em; line-height: 1; }
.tkr-dot { width: 7px; height: 7px; border-radius: 50%; background: #FF4D3D; box-shadow: 0 0 0 0 rgba(255, 77, 61, .6); animation: tkr-blink 1.2s ease-in-out infinite; }
@keyframes tkr-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 77, 61, .55); }
  50% { opacity: .25; box-shadow: 0 0 0 5px rgba(255, 77, 61, 0); }
}
@media (prefers-reduced-motion: reduce) { .tkr-dot { animation: none; } }
.tkr-vp { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; padding-left: 14px; }
.tkr-track { display: flex; width: max-content; animation: tkr 70s linear infinite; }
.tkr:hover .tkr-track, .tkr:focus-within .tkr-track { animation-play-state: paused; }
@keyframes tkr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tkr-track { animation: none; } }
.tkr-i { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; white-space: nowrap; text-decoration: none; border-right: 1px solid rgba(1, 30, 86, .22); }
.sp .tkr-i { color: var(--navy); }
.sp .tkr-i:hover { text-decoration: underline; }
.tkr-tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 5px; border-radius: 3px; background: var(--navy); color: #FFFFFF; }
.tkr-sc { font-weight: 800; font-variant-numeric: tabular-nums; padding: 1px 6px; border-radius: 4px; background: rgba(1, 30, 86, .14); }

/* ---------- 22. Логотип и часы в шапке ---------- */
.logo img { display: block; height: 28px; width: auto; }
.clk { display: flex; align-items: baseline; gap: 7px; line-height: 1.1; white-space: nowrap; }
.clk-t { font-size: var(--fs-15); font-weight: 700; color: #FFFFFF; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: .01em; }
.clk-d { font-size: var(--fs-11); font-weight: 600; color: var(--hdr-text-2); }
.clk-d .long { display: none; }
.hdr-tools { order: 3; margin-left: 0; }
.nav { order: 4; }
@container (min-width: 1024px) {
  .logo img { height: 34px; }
  .clk-d .long { display: inline; }
  .clk-d .short { display: none; }
  .hdr-tools { order: 4; }
}

/* логотип в подвале: цветной в светлой теме, белый в тёмной */
.logo-w { display: none !important; }
[data-theme="dark"] .logo-c { display: none !important; }
[data-theme="dark"] .logo-w { display: block !important; }
.ftr .logo img { height: 32px; }

/* ---------- 22b. Подвал: колонки ссылок, реквизиты ---------- */
.ftr-in { gap: 28px; padding-top: 36px; padding-bottom: 28px; }
.ftr-brand > * { order: 0; }
.ftr-brand { display: grid; gap: 10px; align-content: start; max-width: 360px; }
.ftr-tag { font-family: var(--font-display); font-size: var(--fs-15); font-weight: 600; color: var(--text); }
.ftr-mail { font-weight: 600; font-size: var(--fs-14); }
.sp .ftr-mail { color: var(--accent-ink); }
.ftr-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.ftr-col { display: flex; flex-direction: column; min-width: 0; }
.ftr-col h2 { font-size: var(--fs-11); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.ftr-col a { display: flex; align-items: center; min-height: 32px; font-size: var(--fs-14); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.sp .ftr-col a { color: var(--text-2); }
.sp .ftr-col a:hover { color: var(--text); text-decoration: underline; }
.ftr-bottom { display: grid; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-13); color: var(--text-3); }
.sp .ftr-bottom a { color: var(--text-2); }
.ftr-org { line-height: 1.5; }
.sp .ftr-org a { color: var(--text); text-decoration: none; }
.sp .ftr-org a:hover { text-decoration: underline; }
@container (min-width: 768px) {
  .ftr-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (min-width: 1024px) {
  .ftr-in { grid-template-columns: minmax(240px, 1fr) 3fr; column-gap: 48px; align-items: start; }
  .ftr-bottom { grid-column: 1 / -1; display: grid; }
}

/* ---------- 23. Строка статуса (низ страницы, как «lower third») ---------- */
.sbar { display: flex; flex-wrap: wrap; border-top: 2px solid var(--orange); font-size: var(--fs-12); }
.sbar-l { flex: none; display: flex; align-items: center; padding: 8px 14px; background: var(--orange); color: var(--navy); font-weight: 800; letter-spacing: .1em; }
.sbar-m { flex: 1 1 240px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 8px 14px; background: var(--surface-2); color: var(--text-2); }
.sbar-m b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- 24. Отметка обновления и фильтр статусов ---------- */
.upd { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.upd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--win); }
.seg { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.seg a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--fs-13); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.sp .seg a { color: var(--text-2); }
.seg a i { font-style: normal; font-size: var(--fs-11); font-weight: 800; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sp .seg a.is-active { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.seg a.is-active i { color: var(--orange); }
[data-theme="dark"] .seg a.is-active { background: var(--navy-3); border-color: var(--navy-3); }

/* ---------- 9. Дополнения из макетов страниц (стили, заданные на отдельных листах холста) ---------- */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); color: var(--text); font-weight: 700; }
.skip:focus { left: 8px; }
/* архив сезонов — плитки */
.ss { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 4px 16px 16px; }
.ss a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-decoration: none; }
.ss a b { font-family: var(--font-display); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ss a span { font-size: 12px; color: var(--text-3); }
.ss a.is-cur { border-color: var(--accent); background: var(--accent-soft); }
.ss a.is-cur span { color: var(--accent-ink); font-weight: 700; }
/* календарь — навигация по турам */
.rounds { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rounds a { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
.rounds a.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rounds a.is-done { color: var(--text-2); }
/* игрок */
.ava { flex: none; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); font-family: var(--font-display); font-weight: 700; font-size: 17px; box-shadow: inset 0 0 0 1px var(--line-2); }
@container (min-width: 1024px) { .ava { width: 72px; height: 72px; font-size: 22px; } }
.mt td { white-space: normal; }
.mt .c-team a { flex-direction: column; align-items: flex-start; gap: 0; font-weight: 600; line-height: 1.3; padding: 6px 0; }
.mt .c-team small { font-size: 12px; color: var(--text-3); font-weight: 500; }
/* бомбардиры */
.pl { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pl b { font-weight: 600; color: var(--text); }
.pl small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.goals { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); }
.st tr.top1 .pos { background: var(--accent); color: var(--on-accent); }
/* 404 */
.nf { display: grid; justify-items: center; text-align: center; gap: 18px; padding: 32px 16px 40px; }
.nf .sb { display: inline-flex; padding: 24px 20px; }
@container (min-width: 1024px) { .nf { padding: 48px 16px 56px; } .nf .sb { padding: 24px 28px; } }
/* источники данных */
.src { display: grid; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); }
.src-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.src-h a { font-weight: 700; font-size: 16px; }
.src p { font-size: 14px; color: var(--text-2); }
.src-meta { display: flex; flex-wrap: wrap; gap: 6px; }

/* 10. Индивидуальные виды: F1, теннис, MMA */
/* строки подиума и навигация по этапам (Формула-1) */
.so-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.so-row:last-child { border-bottom: 0; }
.so-row:first-child .pos { background: var(--accent); color: var(--on-accent); }
.so-n { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.so-n small { font-size: var(--fs-12); color: var(--text-3); }
.so-r { font-size: var(--fs-13); color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.so-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.so-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: var(--fs-14); text-decoration: none; }
.sp .so-nav a { color: var(--text); }
.so-nav a:hover { background: var(--surface-2); }
/* таблицы с длинными ячейками (победитель — финалист, главный бой) */
.so-t td.so-wide, .so-t th.so-wide { text-align: left; white-space: normal; padding: 6px 12px 6px 6px; line-height: 1.35; min-width: 160px; }
.so-t td.so-wide small { display: block; font-size: var(--fs-12); }
.so-t td.so-wide a { color: var(--text); text-decoration: none; font-weight: 600; }
.so-t td.so-wide a:hover { text-decoration: underline; }
.st td .pl a { color: inherit; text-decoration: none; }
.st td .pl a:hover { text-decoration: underline; }
.st td a .cc, .st td .cc { margin-left: 4px; vertical-align: 1px; }
/* матч тенниса и бой MMA: строка как у матча (.m), справа счёт или способ победы */
.so-m { grid-template-columns: 88px minmax(0, 1fr) auto; cursor: default; }
.so-m:hover { background: transparent; }
.so-m .m-time .m-t { font-size: var(--fs-12); font-weight: 600; color: var(--text-3); }
.so-m .m-team a { color: inherit; text-decoration: none; }
.so-m .m-team a:hover { text-decoration: underline; }
.so-m .m-team.is-win a { color: var(--text); }
.so-sc { font-size: var(--fs-14); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.so-bout { grid-template-columns: 110px minmax(0, 1fr) minmax(0, 40%); }
.so-bout .m-time { gap: 4px; }
.so-bout .m-time .m-st { font-size: var(--fs-12); line-height: 1.25; }
.so-bout .chip { height: 20px; padding: 0 7px; font-size: var(--fs-11); width: max-content; }
.so-res { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 2px; font-size: var(--fs-13); font-weight: 600; color: var(--text); line-height: 1.3; }
.so-res small { font-size: var(--fs-12); font-weight: 500; color: var(--text-3); }
.so-m .tag { margin-left: 4px; }
@container (max-width: 520px) {
  .so-m { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 8px; }
  .so-bout { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); }
  .so-bout .m-time { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
}

/* ---------- 25. Шапка в одну строку: логотип · меню · тема (часы — под «ТАБЛО») ---------- */
.hdr-in { flex-wrap: nowrap; min-height: 52px; }
.hdr .logo { flex: none; }
.nav {
  order: 2; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0 2px; border-top: 0; align-self: stretch;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 22px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 22px), transparent 100%);
}
.nav-a { height: 100%; min-height: 52px; padding: 0 10px; }
.hdr-tools { order: 3; flex: none; margin-left: 0; }
@container (min-width: 1240px) { .nav { -webkit-mask-image: none; mask-image: none; } }

/* ---------- 26. Загрузчик (первая страница визита) и полоса перехода ---------- */
.ldr { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, #0B2C6E 0, #011E56 55%, #00133A 100%); transition: opacity .4s ease, visibility .4s; animation: ldr-auto .4s ease 2.6s forwards; }
html.is-loading { overflow: hidden; }
.ldr.is-done { opacity: 0; visibility: hidden; }
@keyframes ldr-auto { to { opacity: 0; visibility: hidden; } }
.ldr-in { display: grid; justify-items: center; gap: 18px; }
.ldr-ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.ldr-ring::before, .ldr-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.ldr-ring::before { border: 3px solid rgba(255, 255, 255, .1); }
.ldr-ring::after { border: 3px solid transparent; border-top-color: #F28C1B; border-right-color: #F28C1B; animation: ldr-spin .9s cubic-bezier(.5, .1, .5, .9) infinite; }
.ldr-ring img { width: auto; height: 72px; animation: ldr-pop 1.1s ease-in-out infinite; }
.ldr-word { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: .32em; color: #FFFFFF; padding-left: .32em; }
.ldr-bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ldr-bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: #F28C1B; animation: ldr-run 1.1s ease-in-out infinite; }
@keyframes ldr-spin { to { transform: rotate(360deg); } }
@keyframes ldr-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes ldr-run { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .ldr-ring::after, .ldr-ring img, .ldr-bar i { animation: none; } }
.pbar { position: fixed; top: 0; left: 0; z-index: 999; height: 3px; width: 0; background: linear-gradient(90deg, #F28C1B, #FFC27A); box-shadow: 0 0 8px rgba(242, 140, 27, .7); opacity: 0; pointer-events: none; }
.pbar.is-on { opacity: 1; animation: pbar 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes pbar { 0% { width: 0; } 10% { width: 45%; } 100% { width: 92%; } }

/* ---------- 27. Лента дней ---------- */
.dstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.dstrip::-webkit-scrollbar { display: none; }
.dstrip a { scroll-snap-align: center; display: grid; justify-items: center; gap: 1px; padding: 8px 6px; border-radius: var(--r-md); text-decoration: none; color: var(--text-2); }
.dstrip a:hover { background: var(--surface-3); }
.dstrip .ds-w { font-size: var(--fs-11); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dstrip b { font-family: var(--font-display); font-size: var(--fs-15); font-weight: 600; color: var(--text); white-space: nowrap; }
.dstrip .ds-n { font-size: var(--fs-11); color: var(--text-3); white-space: nowrap; }
.dstrip a.is-cur { background: var(--navy); }
.dstrip a.is-cur .ds-w { color: var(--orange); }
.dstrip a.is-cur b { color: #FFFFFF; }
.dstrip a.is-cur .ds-n { color: var(--hdr-text-2); }

/* ---------- 28. Сворачиваемые турниры ---------- */
.grp > summary { list-style: none; cursor: pointer; user-select: none; }
.grp > summary::-webkit-details-marker { display: none; }
.grp-n { margin-left: auto; font-size: var(--fs-11); font-weight: 700; color: var(--text-3); background: var(--surface-3); border-radius: 10px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.grp-c { width: 18px; height: 18px; flex: none; margin-left: 6px; background: currentColor; color: var(--text-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s; }
.grp:not([open]) .grp-c { transform: rotate(-90deg); }
.grp > summary .tg-r { margin-left: 10px; }
.grp > summary:hover { background: var(--surface-3); }

/* ---------- 29. Статусы по времени начала ---------- */
.m-st.is-live, .sb-chip.is-live { color: var(--live); font-weight: 700; }
.m-st.is-live::before, .sb-chip.is-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--live); vertical-align: 1px; animation: tkr-blink 1.2s ease-in-out infinite; }
.m-st.is-wait, .sb-chip.is-wait { color: var(--post); font-weight: 600; }

/* ---------- 30. Поиск ---------- */
.srch { width: min(640px, calc(100vw - 24px)); max-height: min(560px, calc(100vh - 80px)); margin: 72px auto auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg, 16px); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 10, 40, .35); }
.srch::backdrop { background: rgba(1, 12, 38, .55); backdrop-filter: blur(3px); }
.srch-in { display: flex; flex-direction: column; max-height: inherit; }
.srch-f { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.srch-f svg { width: 20px; height: 20px; color: var(--text-3); flex: none; }
.srch-f input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: var(--fs-17); padding: 6px 0; }
.srch-x { border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-3); border-radius: 6px; font-size: var(--fs-11); font-weight: 700; padding: 3px 7px; cursor: pointer; }
.srch-r { overflow-y: auto; padding: 6px; }
.srch-r a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); color: var(--text); text-decoration: none; font-weight: 600; }
.srch-r a:hover, .srch-r a:focus { background: var(--surface-3); outline: none; }
.srch-r small { flex: none; font-size: var(--fs-12); font-weight: 500; color: var(--text-3); }
.srch-e { padding: 18px 12px; color: var(--text-3); text-align: center; }
.hdr-tools { display: flex; gap: 4px; }

/* ---------- 31. Избранное ---------- */
.fav { flex: none; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: var(--fs-13); font-weight: 600; cursor: pointer; }
.fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--orange); color: var(--accent-ink); }
.fav[aria-pressed="true"] svg { fill: var(--orange); stroke: var(--orange); }
.fav[hidden] { display: none; }
.favs-l { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 16px; }
.favs-l a { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 8px 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-14); }
.favs-l small { color: var(--text-3); font-weight: 500; font-size: var(--fs-11); }

/* ---------- 32. Кнопка «наверх» ---------- */
.totop { position: fixed; right: 16px; bottom: 20px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #FFFFFF; box-shadow: 0 8px 20px rgba(1, 20, 60, .35); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.totop svg { width: 22px; height: 22px; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--orange); color: var(--navy); }

/* вкладки с отрицательными полями не должны давать горизонтальную прокрутку страницы */
main.page { overflow-x: clip; }

/* колонка времени в строке матча: каждая подпись — одной строкой */
.m { grid-template-columns: 64px minmax(0, 1fr) auto; }
.m-st, .m-leg { white-space: nowrap; font-size: var(--fs-11); line-height: 1.25; }
.m-leg { font-weight: 600; color: var(--text-3); }
.m-st.is-live::before { width: 5px; height: 5px; margin-right: 4px; }

/* на широком экране контент — по той же колонке, что логотип и «ТАБЛО» */
body { margin: 0; }   /* без стандартного отступа браузера: шапка и «ТАБЛО» — во всю ширину */
main.page { padding-left: var(--s-4); padding-right: var(--s-4); }

/* ---------- 33. «ТАБЛО» — часть тёмной шапки (не отдельный блок поверх оранжевой полосы) ----------
   Вся верхняя полоса тёмно-синяя, как шапка; «ТАБЛО» и часы стоят по колонке сайта над логотипом,
   результаты бегут справа, счёт — оранжевой плашкой. Тонкая линия отделяет полосу от строки меню. */
.tkr { background: var(--navy); border-bottom: 1px solid var(--hdr-line); min-height: 46px; }
.tkr-l { background: transparent; border-right: 1px solid var(--hdr-line); padding-right: 18px; }
.tkr-vp { padding-left: 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.tkr-i { border-right: 1px solid var(--hdr-line); }
.sp .tkr-i { color: var(--hdr-text-2); }
.sp .tkr-i:hover { color: #FFFFFF; text-decoration: none; }
.tkr-tag { background: rgba(255, 255, 255, .12); color: var(--hdr-text-2); }
.tkr-sc { background: var(--orange); color: var(--navy); }

/* 34. Джиу-джитсу */
/* призёры категорий: имена переносятся, колонки слева направо; цветные отметки поясов и медалей */
.bj-t .c-team { width: auto; min-width: 116px; white-space: normal; padding: 6px 6px 6px 12px; }
.bj-t th.bj-pod, .bj-t td.bj-pod { text-align: left; white-space: normal; padding: 6px 8px; line-height: 1.3; min-width: 130px; vertical-align: middle; }
.bj-t td.bj-pod .pl + .pl { margin-top: 6px; }
.bj-t td.bj-pod .pl b { font-weight: 600; }
.bj-belt { display: inline-block; width: 30px; height: 8px; border-radius: 4px; vertical-align: middle; box-shadow: inset 0 0 0 1px var(--line); }
.bj-belt--black { background: #16181D; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.bj-belt--brown { background: #7A4A21; }
.bj-belt--purple { background: #6B3FA0; }
.bj-belt--blue { background: #1F5FBF; }
.bj-belt--white { background: #F4F4F4; }
.pos.bj-p1 { background: #E5B83A; color: #1A1A1A; }
.pos.bj-p2 { background: #C3C9D2; color: #1A1A1A; }
.pos.bj-p3 { background: #C98B53; color: #1A1A1A; }
.bj-note { font-size: var(--fs-13); padding-top: 0; }
.hero .trn.bj-trn, .trn.bj-trn { font-size: 12px; letter-spacing: 0; }

/* 35. Киберспорт и PFL */
/* места «3-4», «5-8» и счёт серии «2:1» шире стандартной плашки; ряды сеток и боёв — общие .so-m / .so-bout */
.es-t .pos { width: auto; min-width: 24px; padding: 0 6px; white-space: nowrap; }
.es-t .fm { width: auto; min-width: 34px; padding: 0 6px; white-space: nowrap; }
.so-m .so-res small.muted { color: var(--text-3); }
