/* шрифты как у сайта лиги: Noto Sans (латиница, кириллица) + Noto Sans Georgian, цифры и заголовки — тем же шрифтом, без узкого */
html.lh-site { --font: "Noto Sans", "Noto Sans Georgian", sans-serif; --cond: "Noto Sans", "Noto Sans Georgian", sans-serif; }

/* Шапка как на betlivebasketball.com — для открытия статистики «вкладкой» сайта лиги.
   Подключается вместо обычной шапки (header.top.lh); на gabl-stats с 17.11.2026. */
.top.lh { position: relative; height: 64px; padding: 0; display: block; background: #23262e; color: #fff; border-bottom: 0;
  font-family: "Noto Sans Georgian", var(--font); }
.lh-in { max-width: 1920px; height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
:where(.lh) a { text-decoration: none; color: inherit; }
:where(.lh) button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }

.lh-logos { display: flex; align-items: center; gap: 2px; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); }
.lh-logos img { display: block; height: 36px; width: auto; }
.lh-partner { display: none !important; }

.lh-burger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 24px; height: 16px; }   /* как у лиги: 24×16 */
.lh-burger i { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.lh.open .lh-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.lh.open .lh-burger i:nth-child(2) { opacity: 0; }
.lh.open .lh-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.lh-right { display: flex; align-items: center; gap: 10px; }
.lh-streams { display: inline-flex; align-items: center; gap: 6px; background: #52525b; color: #fff; border: 2px solid transparent; border-radius: 32px;
  padding: 6px 10px; font: 600 10px/15px Montserrat, var(--font); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; transition: background .3s, border-color .3s; }
.lh-streams:hover { background: transparent; border-color: #fff; }
.lh-streams svg { width: 12px; height: auto; flex: none; }

/* меню: на телефоне — панель под шапкой */
.lh-menu { list-style: none; margin: 0; position: absolute; top: 64px; left: 0; right: 0; z-index: 50; height: calc(100dvh - 64px); overflow-y: auto;
  background: var(--paper); color: var(--fg); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px));
  transform: translateX(-100%); visibility: hidden; transition: transform .3s, visibility .3s; }
.lh.open .lh-menu { transform: none; visibility: visible; }
.lh-item { border-bottom: 1px solid var(--line); }
.lh-h { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-size: 14px; line-height: 20px; font-weight: 600;
  text-transform: uppercase; text-align: start; font-feature-settings: "case"; }   /* грузинские «заглавные», как у лиги */
.lh-h .chev { width: 18px; height: 18px; transition: transform .25s; }
.lh-item.sub-open .chev { transform: rotate(180deg); }
.lh-item.on > .lh-h { color: #f70628; }
.lh-sub { list-style: none; margin: 0; padding: 0 4px; display: none; flex-direction: column; gap: 2px; }
.lh-item.sub-open .lh-sub { display: flex; padding-bottom: 14px; }
.lh-sub a { display: block; padding: 8px 0; font-size: 13px; font-weight: 500; }
.lh-sub a:hover { color: var(--mut); }
body.lh-lock { overflow: hidden; }


/* компьютер — меню в строку, подменю по наведению. Размеры — как у betlivebasketball.com
   (у лиги: lg 1024 / xl 1296 / 2xl 1500). Не влезает (длинные грузинские пункты) —
   league.js ставит .lh-t1 → .lh-t2 → .lh-t3 (плотнее; t3 — без логотипа партнёра). */
@media (min-width: 1024px) {
  .top.lh { height: 80px; }
  .lh-in { padding: 0 16px; }
  .lh-burger { display: none; }
  .lh-logos { position: static; transform: none; gap: 2px; flex: 0 1 auto; min-width: 0; }   /* как у лиги: не влезает — логотипы сжимаются */
  .lh-logos a { min-width: 0; }
  .lh-logos img { object-fit: contain; min-width: 0; max-width: 100%; }
  .lh-right { width: 100%; max-width: 94px; justify-content: center; }   /* как у лиги: блок STREAMS фиксированной ширины, кнопка по центру */
  .lh-logo { border-right: 2px solid #f70628; padding-right: 8px; }
  .lh-partner { display: flex !important; padding-left: 8px; }
  .lh-logos img { height: 32px; }
  .lh-menu { position: static; height: auto; overflow: visible; transform: none; visibility: visible; background: none; color: #fff; padding: 0;
    display: flex; align-items: center; gap: 0 32px; transition: none; }
  .lh-item { position: relative; border: 0; }
  .lh-h { width: auto; height: 80px; padding: 0 8px; border-bottom: 4px solid transparent; border-top: 4px solid transparent; justify-content: center; white-space: nowrap; transition: border-color .3s; }
  .lh-h .chev { display: none; }
  .lh-item:hover > .lh-h, .lh-item:focus-within > .lh-h { border-bottom-color: #f70628; }
  .lh-item.on > .lh-h { color: #fff; border-bottom-color: #f70628; }
  .lh-sub, .lh-item.sub-open .lh-sub { display: block; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); min-width: 100%; width: max-content; z-index: 60;
    background: #fff; color: #000; border-radius: 12px; padding: 10px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.18);
    visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
  .lh-item:hover .lh-sub, .lh-item:focus-within .lh-sub { visibility: visible; opacity: 1; }
  .lh-sub li + li { border-top: 1px solid #e5e5e5; }
  .lh-sub a { font-size: 12px; padding: 10px 0; }
  .lh-sub a:hover { color: #71717a; }
  .lh-streams { font-size: 10px; padding: 6px 10px; }
  .lh-streams svg { width: 20px; }
}
@media (min-width: 1296px) {
  .lh-in { padding: 0 48px; }
  .lh-logo { padding-right: 16px; }
  .lh-partner { padding-left: 16px; }
  .lh-logos img { height: 40px; }
  .lh-menu { gap: 0 48px; }
  .lh-h { padding: 0 16px; }
  .lh-streams { font-size: 12px; line-height: 16px; padding: 10px 16px; }
  .lh-right { max-width: 119px; }
}
@media (min-width: 1500px) {
  .lh-in { padding: 0 96px; }
  .top.lh, .lh .lh-h { height: 96px; }
  .lh-streams { font-size: 16px; line-height: 24px; font-weight: 700; padding: 16px 20px; gap: 10px; }
  .lh-right { max-width: 146px; }
}
/* автоматическое сжатие, если пункты не помещаются (league.js: lh-t1 → lh-t2 → lh-t3) */
@media (min-width: 1024px) {
  .lh.lh-t1 .lh-in { padding-left: 48px; padding-right: 48px; }
  .lh.lh-t1 .lh-menu { gap: 0 32px; }
  .lh.lh-t1 .lh-h { padding: 0 12px; }
  .lh.lh-t2 .lh-in { padding-left: 24px; padding-right: 24px; gap: 20px; }
  .lh.lh-t2 .lh-menu { gap: 0 20px; }
  .lh.lh-t2 .lh-h { padding: 0 8px; }
  .lh.lh-t3 .lh-partner { display: none !important; }
  .lh.lh-t3 .lh-logo { border-right: 0; padding-right: 0; }
  .lh.lh-t3 .lh-menu { gap: 0 14px; }
  .lh.lh-t3 .lh-h { padding: 0 4px; }
  .lh.lh-t3 .lh-streams { font-size: 12px; padding: 10px 14px; }
}
/* под шапкой лиги лента матчей светлая, как фон их сайта (красная сливалась с красной чертой меню) */
.top.lh ~ .gstrip { background: var(--bg); padding: 18px 0 14px; }
.top.lh ~ .gstrip .gs-c { border-color: var(--line); box-shadow: 0 1px 3px var(--shadow); }
@media (prefers-reduced-motion: reduce) { .lh * { transition: none !important; } }

/* язык и тема — в подвале (league.js переносит туда nav из шапки) */
.lh-hold { display: none; }
.foot nav.lh-foot-nav { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 14px; }
.lh-foot-nav > a[href="/season"] { display: none; }
.lh-foot-nav .langwrap, .lh-foot-nav .tb { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  background: var(--paper); color: var(--fg); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; width: auto; font-size: 13px; }
.lh-foot-nav .langwrap svg { width: 16px; height: 16px; flex: none; }
.lh-foot-nav .langwrap select { position: static; opacity: 1; width: auto; height: auto; background: none; border: 0; color: inherit; padding: 0 2px; font: inherit; cursor: pointer; }
.lh-foot-nav a.backpro { background: var(--accent, #e5062a); color: #fff; padding: 6px 12px 6px 9px; border-radius: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; line-height: 1; text-decoration: none; font-size: 13px; }
.lh-foot-nav a.backpro svg { width: 16px; height: 16px; }
.foot .pw { display: block; margin-top: 4px; }
.foot .pw a { color: inherit; font-weight: 600; }
