/* Эфир хоккейного матча (/hockey/) — подключает templates/hockey/show.html.twig
   после css/core.css. Цвета — токены сайта, поэтому работает в обеих темах. */
/* системный шрифт вместо Roboto — 76 КБ меньше на каждого нового зрителя
   (страница подключается только на эфире, остальной сайт не трогает) */
:root{--f:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--m:var(--f)}
/* core.css ставит Roboto всем этим узлам с !important — перекрываем тем же
   набором (файл подключается после core.css, поэтому побеждает) */
html,body,button,input,select,textarea,optgroup,
h1,h2,h3,h4,h5,h6,code,kbd,pre,samp,.mono{font-family:var(--f)!important}
.hk{padding:16px 16px 28px;max-width:1100px;margin:0 auto}
.hk-head{margin-bottom:12px}
.hk-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--ink-3)}
.hk-title{margin:6px 0 0;font-size:24px;line-height:1.2;font-weight:700;letter-spacing:-.01em;color:var(--ink)}

/* значок состояния: показывается один из трёх по data-hk-state */
.hk-badge>span{display:none;align-items:center;gap:7px;height:24px;padding:0 10px;border-radius:999px;
  font-size:12px;font-weight:700;letter-spacing:.03em;white-space:nowrap}
[data-hk-state="live"] .hk-badge-live{display:inline-flex;background:var(--red-soft);color:var(--red)}
[data-hk-state="ns"] .hk-badge-ns{display:inline-flex;background:var(--surface-2);color:var(--ink-2)}
[data-hk-state="done"] .hk-badge-done{display:inline-flex;background:var(--surface-2);color:var(--ink-3)}
.hk-badge-live i{width:7px;height:7px;border-radius:50%;background:currentColor;animation:hkPulse 2s ease-in-out infinite}
@keyframes hkPulse{0%,100%{opacity:1}50%{opacity:.25}}

/* плеер и табло — один предмет */
.hk-deck{border-radius:var(--r);overflow:hidden;background:#000;box-shadow:var(--sh-2)}
.hk-stage{position:relative;aspect-ratio:16/9;background:#000;color:#6d6872;
  display:flex;align-items:center;justify-content:center}
.hk-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.hk-wait{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:20px}
.hk-wait svg{opacity:.55;margin-bottom:4px}
.hk-wait b{color:#d9d6dc;font-size:17px;font-weight:600}
.hk-wait span{font-size:13px;font-variant-numeric:tabular-nums}
/* надпись поверх плеера: видна только до начала, клики проходят в плеер */
.hk-wait--over{position:absolute;inset:0;justify-content:center;background:#000;pointer-events:none;z-index:1}
[data-hk-state="live"] .hk-wait,[data-hk-state="done"] .hk-wait--over,.hk-started .hk-wait--over{display:none}

.hk-board{display:flex;align-items:center;justify-content:center;gap:clamp(12px,3vw,36px);
  padding:12px 16px;background:var(--surface);border-top:1px solid var(--line)}
.hk-team{flex:0 1 240px;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:10px}
.hk-team--a{justify-content:flex-start}
.hk-team b{font-size:16px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hk-crest{width:36px;height:36px;flex:none;object-fit:contain}
.hk-crest--ph{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;
  background:var(--surface-2);color:var(--ink-3);font-size:13px;font-weight:700}
.hk-crest--s{width:24px;height:24px}
.hk-crest--xs{width:20px;height:20px;font-size:10px}
.hk-score{text-align:center;line-height:1;min-width:92px}
.hk-score strong{display:flex;justify-content:center;gap:6px;font-size:30px;font-weight:700;color:var(--ink);
  font-variant-numeric:tabular-nums}
.hk-score strong i{font-style:normal;color:var(--ink-3);font-weight:400}
.hk-st{display:block;margin-top:5px;font-size:12px;color:var(--ink-3);white-space:nowrap;font-variant-numeric:tabular-nums}
[data-hk-state="live"] .hk-st{color:var(--red);font-weight:600}
.hk-score.bump strong{animation:hkBump .6s ease-out}
@keyframes hkBump{30%{transform:scale(1.12)}}

/* ставка: блок pt-say из core.css, как у резидентов; фон — белый (в тёмной теме тёмная карточка).
   Компьютер: в шапке матча справа от названия. Телефон: под плеером. */
.hk .pt-say{background:var(--surface)}
.hk-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.hk-head-t{min-width:0}
.hk-say--top{flex:0 1 420px;min-width:300px}
.hk-say--bottom{display:none;margin-top:12px}
@media (max-width:720px){
  .hk-head{display:block}
  .hk-say--top{display:none}
  .hk-say--bottom{display:block}
}
.hk-bet-b{flex:none;display:inline-flex;align-items:center;justify-content:center;height:40px;padding:0 18px;border:0;
  border-radius:var(--r-sm);background:var(--btn);color:#fff;font-size:14px;font-weight:600;cursor:pointer}
.hk-bet-b:hover{background:var(--btn-hover)}

/* карточки с данными */
.hk-card{margin-top:12px;padding:14px 16px;border-radius:var(--r);background:var(--surface);box-shadow:var(--sh);color:var(--ink)}
.hk-h{margin:0 0 10px;font-size:15px;font-weight:700}
.hk-note{margin:10px 0 0;font-size:12px;color:var(--ink-3)}
.hk-grid{display:grid;grid-template-columns:1fr;gap:0 12px}
@media (min-width:900px){
  .hk-grid{grid-template-columns:1fr 1fr}
  .hk-wide{grid-column:1/-1}
}

/* по периодам */
.hk-pt{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:14px}
.hk-pt th{font-size:11px;font-weight:700;color:var(--ink-3);padding:0 6px 6px;text-align:center}
.hk-pt td{padding:7px 6px;border-top:1px solid var(--line);text-align:center}
.hk-pt td:first-child,.hk-pt th:first-child{text-align:left;padding-left:0;width:100%}

/* сравнение сезона */
.hk-cmp-hd{display:flex;justify-content:space-between;font-size:12px;font-weight:600;color:var(--ink-2);margin-bottom:8px}
.hk-cmp-r+.hk-cmp-r{margin-top:12px}
.hk-cmp-v{display:grid;grid-template-columns:60px 1fr 60px;align-items:baseline;gap:8px;font-size:13px}
.hk-cmp-v span{text-align:center;color:var(--ink-3);font-size:12px}
.hk-cmp-v b{font-weight:600;color:var(--ink-2);font-variant-numeric:tabular-nums}
.hk-cmp-v b:last-child{text-align:right}
.hk-cmp-v b.hk-up{color:var(--ink);font-weight:700}
.hk-cmp-bar{display:flex;gap:3px;height:6px;margin-top:6px}
/* сторона хозяев всегда красная, гостей — нейтральная; лучшее значение — жирным */
.hk-cmp-bar i{display:block;border-radius:3px}
.hk-cmp-bar .hk-bh{background:var(--red)}
.hk-cmp-bar .hk-ba{background:var(--ink-3);opacity:.55}

/* списки: личные встречи и форма */
.hk-list{list-style:none;margin:0;padding:0}
.hk-list li{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:14px}
.hk-list li:first-child{border-top:0}
.hk-d{flex:none;font-size:12px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.hk-n{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink-2)}
.hk-n.hk-w{color:var(--ink);font-weight:600}
.hk-n--a{text-align:right}
.hk-s{flex:none;min-width:52px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.hk-s sup{font-size:9px;font-weight:600;color:var(--ink-3);margin-left:2px}
.hk-h2h .hk-d{width:58px}

.hk-form{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:640px){.hk-form{grid-template-columns:1fr 1fr;gap:24px}}
.hk-form-t{display:flex;align-items:center;gap:8px;margin-bottom:4px;font-size:14px}
.hk-form-t b{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hk-dots{display:flex;gap:4px}
.hk-dots i{width:8px;height:8px;border-radius:50%}
.hk-dots i.hk-w,.hk-chip.hk-w{background:var(--win)}
.hk-dots i.hk-l,.hk-chip.hk-l{background:var(--loss)}
.hk-chip{flex:none;min-width:58px;padding:3px 6px;border-radius:6px;color:#fff;font-size:12.5px;font-weight:700;
  text-align:center;font-variant-numeric:tabular-nums}
.hk-ha{flex:none;font-size:11.5px;color:var(--ink-3)}
.hk-fr .hk-d{width:40px;text-align:right}

/* таблица конференции */
.hk-tb{width:100%;border-collapse:collapse;font-size:13.5px;font-variant-numeric:tabular-nums}
.hk-tb th{font-size:11px;font-weight:700;color:var(--ink-3);padding:0 6px 8px;text-align:center;white-space:nowrap}
.hk-tb td{padding:7px 6px;border-top:1px solid var(--line);text-align:center;white-space:nowrap}
.hk-tb .hk-l{text-align:left;width:100%}
.hk-tb td:first-child,.hk-tb th:first-child{padding-left:0;color:var(--ink-3);width:22px}
.hk-tn{display:inline-flex;align-items:center;gap:8px}
.hk-tb tr.hk-me td{background:var(--red-soft)}
.hk-tb tr.hk-me td:first-child{box-shadow:inset 3px 0 0 var(--red);padding-left:8px}
.hk-tb tr.hk-me .hk-tn{font-weight:700}
.hk-tb tr.hk-cut td{border-bottom:2px dashed var(--line-2)}

.hk-src{margin:16px 0 0;font-size:12px;color:var(--ink-3)}

/* телефон: видео прилипает к верху, табло компактнее */
@media (max-width:720px){
  .hk{padding:12px 12px 24px}
  .hk-title{font-size:19px}
  .hk-deck{margin:0 -12px;border-radius:0;position:sticky;top:var(--top-h,60px);z-index:20}
  .hk-board{padding:9px 12px;gap:8px}
  .hk-team b{font-size:13.5px;line-height:1.2;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .hk-team{text-align:right}
  .hk-team--a{text-align:left}
  .hk-crest{width:28px;height:28px}
  .hk-score{min-width:76px}
  .hk-score strong{font-size:24px}
  .hk-sm{display:none}
}

/* ручной ввод счёта (/admin/hockey/) */
.hk-adm{max-width:640px}
.hk-adm-ok{padding:10px 14px;border-radius:var(--r-sm);background:var(--win-soft);color:var(--win);font-weight:600}
.hk-adm-f label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--ink-2)}
.hk-adm-f .hk-adm-on{flex-direction:row;align-items:center;gap:8px;font-size:15px;color:var(--ink);font-weight:600;margin-bottom:14px}
.hk-adm-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.hk-adm-f input[type=number],.hk-adm-f input[type=text],.hk-adm-f select{height:44px;padding:0 12px;border-radius:var(--r-sm);
  border:1px solid var(--line-2);background:var(--surface-2);color:var(--ink);font-size:18px;font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion:reduce){.hk-badge-live i,.hk-score.bump strong{animation:none}}
