/* Хоккейный штаб — общий стиль */
:root {
  --bg: #060a12;
  --bg-2: #0a1120;
  --panel: #101a2c;
  --panel-2: #14223a;
  --panel-3: #1a2b47;
  --line: rgba(151, 187, 235, 0.13);
  --line-strong: rgba(151, 187, 235, 0.28);
  --text: #edf4ff;
  --muted: #8fa5c4;
  --ice: #4fd6ff;
  --ice-deep: #2f8cff;
  --red: #ff5f6d;
  --green: #43d9a3;
  --amber: #ffc857;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ice); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace; }
code { background: rgba(79, 214, 255, 0.1); color: var(--ice); padding: 2px 6px; border-radius: 6px; font-size: 0.88em; }
pre { white-space: pre-wrap; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(47, 140, 255, 0.22), transparent 62%),
    radial-gradient(760px 420px at 92% 2%, rgba(79, 214, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(255, 95, 109, 0.07), transparent 65%);
  pointer-events: none;
}

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.7rem;
}

/* --- верхняя панель --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 4px 14px rgba(79, 214, 255, 0.25));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.18s;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.main-nav a.active { color: var(--text); background: rgba(79, 214, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(79, 214, 255, 0.18); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-link { font-size: 1.15rem; opacity: 0.7; padding: 6px; }
.icon-link:hover { opacity: 1; }

/* --- кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
  color: var(--text);
  background: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--ice), var(--ice-deep));
  color: #051225;
  box-shadow: 0 10px 28px rgba(47, 140, 255, 0.3);
}
.btn-primary:hover { color: #051225; box-shadow: 0 14px 34px rgba(47, 140, 255, 0.42); }
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.025); }
.btn-ghost:hover { border-color: rgba(79, 214, 255, 0.5); background: rgba(79, 214, 255, 0.07); color: var(--ice); }
.btn-ice { background: rgba(79, 214, 255, 0.12); border-color: rgba(79, 214, 255, 0.35); color: var(--ice); }
.btn-ice:hover { background: rgba(79, 214, 255, 0.2); }
.btn-danger { background: rgba(255, 95, 109, 0.12); border-color: rgba(255, 95, 109, 0.32); color: #ff8a94; }
.btn-danger:hover { background: rgba(255, 95, 109, 0.22); color: #ffb3b9; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-xs { padding: 7px 11px; font-size: 0.76rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* --- сетка --- */
.page { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.section { margin: 56px 0; }
.page > .section:first-child { margin-top: 40px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr); gap: 28px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-small { display: flex; flex-direction: column; gap: 8px; }

.panel {
  background: linear-gradient(160deg, rgba(20, 34, 58, 0.82), rgba(13, 22, 38, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.section-head.tight { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 0; }
.link-arrow { color: var(--ice); font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* --- hero --- */
.hero {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 40px;
  align-items: center;
  padding: 24px 0 8px;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  background: linear-gradient(120deg, #ffffff 20%, #a9e9ff 65%, #4fd6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25em;
}
.hero-lead { color: var(--muted); font-size: 1.08rem; max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; font-weight: 800; color: var(--ice); }
.hero-stats span { color: var(--muted); font-size: 0.8rem; }

.hero-card {
  position: relative;
  background:
    radial-gradient(500px 260px at 50% -10%, rgba(79, 214, 255, 0.16), transparent 65%),
    linear-gradient(165deg, #14233b, #0c1526);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
  pointer-events: none;
}
.panel-label { position: relative; color: var(--ice); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; text-align: center; margin-bottom: 18px; }
.versus { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.versus-team { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.versus-team img { width: 84px; height: 84px; object-fit: contain; }
.versus-center { text-align: center; }
.vs-big { display: block; font-size: 1.4rem; font-weight: 900; color: var(--muted); font-style: italic; }
.versus-center small { display: block; color: var(--ice); font-size: 1.1rem; font-weight: 800; margin-top: 4px; }
.versus-center strong { display: block; font-size: 1.9rem; font-weight: 900; margin-top: 4px; }
.versus-meta { position: relative; display: flex; flex-direction: column; gap: 3px; align-items: center; margin: 20px 0 10px; color: var(--muted); font-size: 0.84rem; text-align: center; }
.countdown { position: relative; text-align: center; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 14px; min-height: 18px; }
.countdown strong { color: var(--text); }
.hero-training-icon { font-size: 3rem; text-align: center; margin: 6px 0 10px; }
.hero-card h2 { margin-top: 4px; }

/* --- карточки тренировок --- */
.upcoming-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.event-card {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(20, 34, 58, 0.75), rgba(12, 21, 36, 0.9));
  border: 1px solid var(--line);
  transition: 0.2s;
}
.event-card:hover { border-color: rgba(79, 214, 255, 0.32); transform: translateY(-2px); }
.event-time { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 70px; border-right: 1px solid var(--line); padding-right: 16px; }
.event-time strong { font-size: 1.55rem; font-weight: 800; color: var(--ice); line-height: 1; }
.event-time small { color: var(--muted); font-size: 0.7rem; margin-top: 5px; text-align: center; }
.event-body { min-width: 0; }
.event-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.event-date { color: var(--muted); font-size: 0.76rem; }
.event-body h3 { margin: 0 0 4px; font-size: 1rem; }
.event-body p { margin: 0; font-size: 0.84rem; }
.event-card.compact { min-height: 116px; }

/* --- матчи --- */
.matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.match-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(20, 34, 58, 0.8), rgba(11, 19, 33, 0.92));
  border: 1px solid var(--line);
  transition: 0.2s;
}
.match-card:hover { transform: translateY(-3px); border-color: rgba(79, 214, 255, 0.35); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35); }
.match-card.win { border-left: 3px solid var(--green); }
.match-card.loss { border-left: 3px solid var(--red); }
.match-card.draw { border-left: 3px solid var(--amber); }
.match-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.match-date { color: var(--muted); font-size: 0.78rem; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match-team { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font-size: 0.83rem; font-weight: 600; min-width: 0; }
.match-team span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-team.right { text-align: center; }
.match-score { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.match-score strong { font-size: 1.65rem; font-weight: 900; letter-spacing: -0.03em; }
.match-score small { color: var(--muted); font-size: 0.68rem; }
.match-score .vs { color: var(--muted); font-weight: 800; font-size: 0.9rem; font-style: italic; }
.match-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; color: var(--muted); font-size: 0.74rem; border-top: 1px solid var(--line); padding-top: 12px; }

/* --- логотипы / аватары --- */
.logo { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
.logo-sm { width: 38px; height: 38px; }
.logo-xs { width: 28px; height: 28px; border-radius: 7px; }
.opp-logo { width: 84px; height: 84px; object-fit: contain; }
.logo-fallback, .avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(79, 214, 255, 0.25), rgba(47, 140, 255, 0.1));
  border: 1px solid rgba(79, 214, 255, 0.25);
  color: var(--ice);
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 10px;
}
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); }
.avatar-sm { width: 34px; height: 34px; }
.avatar-xs { width: 26px; height: 26px; }
.avatar-lg { width: 76px; height: 76px; }
.avatar-xl { width: 150px; height: 150px; border-width: 3px; }

/* --- статистика / лидеры --- */
.leader-list { display: flex; flex-direction: column; gap: 4px; }
.leader { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 12px; transition: 0.18s; }
.leader:hover { background: rgba(79, 214, 255, 0.06); }
.leader-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.leader-name strong { font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-name small { color: var(--muted); font-size: 0.7rem; }
.leader-points { text-align: right; }
.leader-points strong { display: block; color: var(--ice); font-size: 1.15rem; line-height: 1; }
.leader-points small { color: var(--muted); font-size: 0.66rem; }
.roster-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.roster-mini-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; font-size: 0.64rem; color: var(--muted); transition: 0.18s; }
.roster-mini-item:hover { border-color: var(--ice); color: var(--ice); }

/* --- заголовок страницы / табы --- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 26px; }
.page-head h1 { margin-bottom: 0.15em; }
.page-head p { margin-bottom: 0; max-width: 620px; }
.page-head-actions { display: flex; gap: 10px; }
.back-link { display: inline-block; color: var(--muted); font-size: 0.84rem; margin-bottom: 18px; }
.back-link:hover { color: var(--ice); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 10px; flex-wrap: wrap; }
.tab { padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 0.88rem; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tab.active { color: #04121f; background: var(--ice); }

/* --- бейджи --- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.badge-ice { background: rgba(79, 214, 255, 0.12); color: var(--ice); border: 1px solid rgba(79, 214, 255, 0.24); }
.badge-muted { background: rgba(143, 165, 196, 0.1); color: var(--muted); border: 1px solid var(--line); }
.badge-live { background: rgba(255, 95, 109, 0.14); color: #ff8f99; border: 1px solid rgba(255, 95, 109, 0.28); }
.badge-warn { background: rgba(255, 200, 87, 0.12); color: var(--amber); border: 1px solid rgba(255, 200, 87, 0.28); }
.score-pill { display: inline-flex; padding: 2px 8px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; }

/* --- таймлайн --- */
.timeline { position: relative; }
.timeline-month { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); font-weight: 700; margin: 34px 0 12px; }
.timeline-month:first-child { margin-top: 0; }
.timeline-day { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline-day.is-past { opacity: 0.5; }
.timeline-date { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.timeline-date strong { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--ice); }
.timeline-date span { color: var(--muted); font-size: 0.78rem; }
.timeline-items { display: flex; flex-direction: column; gap: 8px; }
.timeline-event {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20, 34, 58, 0.68), rgba(12, 21, 36, 0.85));
  border: 1px solid var(--line);
  transition: 0.18s;
}
.timeline-event:hover { border-color: rgba(79, 214, 255, 0.32); }
.timeline-time { font-weight: 800; font-size: 0.95rem; color: var(--ice); min-width: 52px; }
.timeline-icon { font-size: 1.25rem; }
.timeline-main { flex: 1; min-width: 0; }
.timeline-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 0.95rem; }
.timeline-sub { color: var(--muted); font-size: 0.77rem; margin-top: 2px; }

/* --- матч / протокол --- */
.scoreboard {
  position: relative;
  background:
    radial-gradient(700px 300px at 50% -20%, rgba(79, 214, 255, 0.14), transparent 65%),
    linear-gradient(165deg, #14233b, #0a1424);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 28px clamp(18px, 4vw, 44px) 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.scoreboard-meta { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.8rem; }
.scoreboard-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin: 30px 0; }
.score-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.score-team h2 { font-size: clamp(1rem, 2.4vw, 1.5rem); margin: 0; }
.score-logo { width: clamp(70px, 10vw, 120px); height: clamp(70px, 10vw, 120px); object-fit: contain; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.4)); }
.score-center { text-align: center; min-width: 130px; }
.score-vs { font-size: 1.1rem; font-weight: 900; color: var(--muted); font-style: italic; }
.score-time { font-size: 2rem; font-weight: 800; margin-top: 4px; }
.score-value { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.score-status { color: var(--muted); font-size: 0.78rem; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.12em; }
.scoreboard.win .score-value { color: var(--green); }
.scoreboard.loss .score-value { color: var(--red); }

.period-table { max-width: 640px; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.period-row { display: grid; grid-template-columns: 1fr repeat(3, 42px) 56px; align-items: center; padding: 9px 14px; font-size: 0.84rem; border-top: 1px solid var(--line); }
.period-row:first-child { border-top: 0; }
.period-row.period-head { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(255, 255, 255, 0.02); }
.period-row > span:not(.period-team) { text-align: center; }
.period-row .total { font-weight: 800; color: var(--ice); }
.period-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.period-team img { width: 22px; height: 22px; object-fit: contain; }
.period-team .logo { width: 22px; height: 22px; }
.period-row:has(.total) { }

.protocol-layout { align-items: start; }
.period-block { margin-bottom: 22px; }
.period-block:last-child { margin-bottom: 0; }
.period-title { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 10px; border-bottom: 1px solid var(--line); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.event-row { display: grid; grid-template-columns: 52px 30px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.event-row:last-child { border-bottom: 0; }
.event-row.their .event-dot { opacity: 0.55; }
.event-minute { font-family: ui-monospace, monospace; font-size: 0.78rem; color: var(--muted); }
.event-dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(79, 214, 255, 0.08); border: 1px solid var(--line); font-size: 0.85rem; }
.event-row.penalty .event-dot { background: rgba(255, 95, 109, 0.08); border-color: rgba(255, 95, 109, 0.25); }
.event-title { font-weight: 650; font-size: 0.9rem; }
.event-sub { color: var(--muted); font-size: 0.76rem; }
.event-side { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.penalty-min { color: var(--red); font-weight: 700; font-size: 0.8rem; margin-left: 4px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.summary-grid.compact { gap: 8px; }
.summary-grid > div { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; }
.summary-grid strong { font-size: 1.4rem; font-weight: 800; color: var(--ice); line-height: 1.1; }
.summary-grid span { color: var(--muted); font-size: 0.72rem; }
.history-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.02); font-size: 0.84rem; }
.history-row:hover { background: rgba(79, 214, 255, 0.06); }
.history-row span:first-child { color: var(--muted); font-size: 0.75rem; min-width: 44px; }
.history-row strong { color: var(--ice); }
.history-row .muted { margin-left: auto; font-size: 0.72rem; }

/* --- состав --- */
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 0.76rem; }
.legend b { color: var(--text); }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.player-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius); background: linear-gradient(150deg, rgba(20, 34, 58, 0.72), rgba(12, 21, 36, 0.9)); border: 1px solid var(--line); transition: 0.18s; }
.player-card:hover { border-color: rgba(79, 214, 255, 0.34); transform: translateY(-2px); }
.player-photo { position: relative; flex-shrink: 0; }
.player-number { position: absolute; bottom: -5px; right: -5px; background: var(--ice); color: #04121f; font-size: 0.66rem; font-weight: 800; border-radius: 999px; padding: 2px 6px; border: 2px solid var(--bg); }
.player-card-body { min-width: 0; }
.player-card-body h3 { font-size: 0.98rem; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-card-body p { margin-bottom: 8px; }
.mini-stats { display: flex; gap: 12px; font-size: 0.7rem; color: var(--muted); }
.mini-stats b { color: var(--text); margin-right: 2px; }
.player-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 30px; border-radius: 26px; background: radial-gradient(600px 260px at 8% 0%, rgba(79, 214, 255, 0.14), transparent 60%), linear-gradient(160deg, #122039, #0a1322); border: 1px solid var(--line-strong); }
.player-hero-photo { position: relative; }
.big-number { position: absolute; bottom: -4px; right: -10px; font-size: 1.4rem; font-weight: 900; color: var(--ice); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 12px; }
.player-hero-copy h1 { margin-bottom: 0.1em; font-size: clamp(1.8rem, 4vw, 3rem); }
.player-hero-copy p { margin-bottom: 0; }
.player-hero-stats { display: grid; grid-template-columns: repeat(2, 100px); gap: 10px; }
.stat-box { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.stat-box strong { font-size: 1.45rem; font-weight: 800; color: var(--ice); line-height: 1; }
.stat-box span { color: var(--muted); font-size: 0.68rem; margin-top: 4px; text-align: center; }
.stat-box.accent { background: rgba(79, 214, 255, 0.1); border-color: rgba(79, 214, 255, 0.3); }
.player-event { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.player-event:last-child { border-bottom: 0; }
.player-event .event-info { flex: 1; }

/* --- пустые состояния --- */
.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(255, 255, 255, 0.015); }
.empty-state.compact { padding: 30px 18px; }
.empty-icon { font-size: 2.4rem; margin-bottom: 10px; opacity: 0.85; }
.empty-state h3 { margin-bottom: 4px; }
.empty-state p { max-width: 460px; margin: 0 auto 16px; }
.page-404 { margin: 80px auto; max-width: 620px; }
.page-404 h1 { margin-bottom: 8px; }

/* --- подвал --- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 30px clamp(16px, 4vw, 48px); margin-top: 70px; border-top: 1px solid var(--line); background: rgba(6, 10, 18, 0.6); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 38px; height: 38px; object-fit: contain; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; gap: 18px; color: var(--muted); font-size: 0.84rem; }
.footer-links a:hover { color: var(--ice); }

/* ====================== АДМИНКА ====================== */
body.admin { padding-left: 264px; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 16px;
  background: linear-gradient(180deg, #0b1424, #070d18);
  border-right: 1px solid var(--line);
  z-index: 80;
}
.sidebar-brand { padding: 4px 8px 18px; border-bottom: 1px solid var(--line); }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-size: 0.88rem; font-weight: 600; transition: 0.16s; }
.sidebar-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.sidebar-nav a.active { color: var(--text); background: rgba(79, 214, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(79, 214, 255, 0.18); }
.nav-icon { width: 20px; text-align: center; opacity: 0.9; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 0.82rem; }
.sidebar-site { color: var(--muted); }
.sidebar-site:hover { color: var(--ice); }
.sidebar-logout { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; text-align: left; }
.sidebar-logout:hover { color: var(--red); }
.admin-main { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: 18px; padding: 20px clamp(18px, 3vw, 38px); border-bottom: 1px solid var(--line); background: rgba(6, 10, 18, 0.55); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40; }
.admin-title h1 { font-size: 1.5rem; margin: 0; }
.admin-title span { display: block; margin-top: 2px; }
.admin-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 9px; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; }
.admin-content { padding: 26px clamp(18px, 3vw, 38px) 50px; display: flex; flex-direction: column; gap: 20px; flex: 1; }
.flash { background: rgba(67, 217, 163, 0.1); border: 1px solid rgba(67, 217, 163, 0.28); color: #9df0d0; padding: 11px 16px; border-radius: 12px; font-size: 0.85rem; margin-bottom: 4px; }
.flash-error { background: rgba(255, 95, 109, 0.1); border-color: rgba(255, 95, 109, 0.3); color: #ffb0b6; }
.flash ul { margin: 8px 0 0; padding-left: 20px; }

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.admin-stat { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; background: linear-gradient(150deg, rgba(20, 34, 58, 0.75), rgba(12, 21, 36, 0.9)); border: 1px solid var(--line); transition: 0.18s; }
.admin-stat:hover { border-color: rgba(79, 214, 255, 0.3); transform: translateY(-1px); }
.admin-stat-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(79, 214, 255, 0.09); font-size: 1.2rem; }
.admin-stat div { display: flex; flex-direction: column; line-height: 1.15; }
.admin-stat strong { font-size: 1.5rem; font-weight: 800; }
.admin-stat span { color: var(--muted); font-size: 0.76rem; }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.admin-grid-wide { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.85fr); }
.admin-panel { background: linear-gradient(160deg, rgba(20, 34, 58, 0.68), rgba(11, 19, 33, 0.9)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.panel-head h2 { font-size: 1.05rem; margin: 0; }
.quick-parse textarea { margin-bottom: 12px; }
.quick-parse-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.84rem; font-weight: 500; cursor: pointer; }
.check input, .check-field input { width: auto; accent-color: var(--ice); }
.admin-event { display: flex; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.admin-event:last-of-type { border-bottom: 0; }
.admin-event-date { display: flex; flex-direction: column; align-items: center; min-width: 52px; font-size: 0.68rem; color: var(--muted); }
.admin-event-date b { font-size: 0.9rem; color: var(--ice); }
.admin-event-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.admin-event-main strong { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-event-main small { color: var(--muted); font-size: 0.72rem; }
.quick-links { display: flex; gap: 8px; margin-top: 14px; }
.admin-results { display: flex; flex-direction: column; gap: 4px; }
.admin-result { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; }
.admin-result:hover { background: rgba(79, 214, 255, 0.05); }
.admin-result-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.admin-result-main strong { font-size: 0.87rem; }
.admin-result-main small { color: var(--muted); font-size: 0.72rem; }
.result-score { font-weight: 800; font-size: 1.05rem; }
.result-score.win { color: var(--green); }
.result-score.loss { color: var(--red); }
.result-score.draw { color: var(--amber); }
.status-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.status-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.83rem; }
.status-row > span:first-child { min-width: 92px; }
.status-row .muted { margin-left: auto; text-align: right; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.ok { background: var(--green); box-shadow: 0 0 10px rgba(67, 217, 163, 0.6); }
.status-dot.bad { background: var(--red); }
.status-dot.warn { background: var(--amber); }

.admin-tabs { background: none; border-bottom: 1px solid var(--line); }
.admin-list { display: flex; flex-direction: column; }
.admin-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.admin-row:last-child { border-bottom: 0; }
.admin-row.muted-row { opacity: 0.55; }
.admin-row-date { display: flex; flex-direction: column; align-items: center; min-width: 52px; color: var(--muted); font-size: 0.7rem; }
.admin-row-date strong { font-size: 0.9rem; color: var(--text); }
.admin-row-icon { font-size: 1.25rem; }
.admin-row-main { flex: 1; min-width: 0; }
.admin-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 650; font-size: 0.92rem; }
.admin-row-title a:hover { color: var(--ice); }
.admin-row-sub { color: var(--muted); font-size: 0.76rem; margin-top: 2px; }
.admin-row-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }

.form-panel { max-width: 980px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.form-grid label, .stack-form label, .score-inputs label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.form-grid .span-2 { grid-column: span 2; }
.field-hint { color: var(--muted); font-size: 0.74rem; font-weight: 400; margin-top: 4px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-field { flex-direction: row !important; align-items: center; gap: 9px !important; color: var(--text) !important; font-weight: 500 !important; min-height: 42px; }
.check-field input { width: 17px; height: 17px; }
.score-inputs { display: flex; align-items: flex-end; gap: 8px; grid-column: span 2; }
.score-inputs label { flex: 1; }
.score-inputs input { text-align: center; font-size: 1.1rem; font-weight: 700; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 18px 22px; border: 1px solid rgba(255, 95, 109, 0.25); border-radius: var(--radius); background: rgba(255, 95, 109, 0.04); }
.danger-zone p { margin: 0; }

input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.91rem;
  color: var(--text);
  background: rgba(5, 11, 20, 0.62);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(79, 214, 255, 0.65); box-shadow: 0 0 0 3px rgba(79, 214, 255, 0.1); }
textarea { resize: vertical; min-height: 92px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
option { background: #101a2c; color: var(--text); }
input[type="file"] { padding: 8px; color: var(--muted); }
.big-textarea { min-height: 320px; font-size: 0.95rem; line-height: 1.65; }
.event-form { padding-top: 4px; }
.form-grid [hidden], [hidden] { display: none !important; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.admin-table tr.inactive { opacity: 0.5; }
.admin-table .avatar { width: 30px; height: 30px; }
.table-actions { display: flex; gap: 5px; align-items: center; justify-content: flex-end; }
.table-actions form { margin: 0; }

.opponent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.opponent-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.018); }
.opponent-logo-wrap { width: 92px; height: 92px; display: flex; align-items: center; justify-content: center; }
.opponent-logo { max-width: 92px; max-height: 92px; object-fit: contain; }
.opponent-info h3 { margin-bottom: 2px; }
.opponent-info p { margin-bottom: 3px; }
.logo-source { color: var(--muted); font-size: 0.64rem; line-height: 1.35; opacity: 0.75; }
.opponent-actions { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.logo-preview { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.logo-preview-img { width: 90px; height: 90px; object-fit: contain; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.hint-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.84rem; }
.hint-list li { margin-bottom: 7px; }
.hint-list b { color: var(--text); }
.example-text { background: rgba(5, 11, 20, 0.55); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 0.78rem; color: var(--muted); }

.match-admin-head { padding: 18px 22px; }
.match-admin-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.match-admin-team { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.match-admin-team:last-child { justify-content: flex-end; text-align: right; }
.match-admin-team img { width: 48px; height: 48px; object-fit: contain; }
.match-admin-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.match-admin-score strong { font-size: 1.7rem; font-weight: 900; }
.protocol-group { margin-bottom: 18px; }
.protocol-period { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.protocol-row { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.protocol-row.their { opacity: 0.7; }
.protocol-time { font-family: ui-monospace, monospace; color: var(--muted); font-size: 0.76rem; min-width: 42px; }
.protocol-icon { font-size: 1rem; }
.protocol-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.protocol-main strong { font-size: 0.86rem; font-weight: 600; }
.protocol-main small { color: var(--muted); font-size: 0.7rem; }

.preview-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.preview-head h2 { margin-bottom: 4px; }
.preview-head p { margin: 0; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.preview-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, rgba(20, 34, 58, 0.7), rgba(11, 19, 33, 0.9)); padding: 18px; }
.preview-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.bot-message { background: rgba(5, 11, 20, 0.6); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 16px; font-size: 0.88rem; line-height: 1.55; margin-bottom: 12px; }
.bot-message b { color: #fff; }
.preview-fields { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 0.74rem; margin-bottom: 8px; }
.raw-text { color: var(--muted); font-size: 0.74rem; }
.raw-text summary { cursor: pointer; }
.raw-text p { margin: 6px 0 0; }
.preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; }

/* --- вход --- */
body.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-card { width: min(430px, 100%); padding: 34px; border-radius: 26px; border: 1px solid var(--line-strong); background: linear-gradient(165deg, rgba(20, 34, 58, 0.9), rgba(9, 16, 28, 0.95)); box-shadow: var(--shadow); }
.login-brand { margin-bottom: 26px; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.login-card > p { font-size: 0.84rem; }
.login-card .back-link { margin: 18px 0 0; }

/* --- посещаемость --- */
.attendance-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.attendance-head h2 { margin: 4px 0 6px; }
.attendance-head-stats { display: flex; gap: 10px; }
.attendance-head-stats .stat-box { min-width: 120px; }
.attendance-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.attendance-table select { min-width: 160px; }
.attendance-table input[type="text"] { min-width: 180px; }
.nowrap { white-space: nowrap; }
.attendance-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 18px; }
.attendance-public .stat-box { padding: 14px 10px; }
.attendance-history td { font-size: 0.82rem; }
.table-player { display: inline-flex; align-items: center; gap: 8px; }

/* --- статистика --- */
.stats-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; }
.stats-hero .stat-box { padding: 18px 10px; }
.legend-inline { color: var(--muted); font-size: 0.74rem; }
.legend-inline b { color: var(--ice); }
.table-panel { padding: 12px 16px; }
.leader-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.leader-row:last-child { border-bottom: 0; }
a.leader-row:hover { background: rgba(79, 214, 255, 0.06); }
.leader-icon { width: 32px; text-align: center; font-size: 1.15rem; }
.leader-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.leader-main strong { font-size: 0.88rem; }
.leader-main small { color: var(--muted); font-size: 0.74rem; }
.leader-value { font-weight: 800; color: var(--ice); font-size: 0.95rem; white-space: nowrap; }

/* --- адаптив --- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
  .two-col, .admin-grid, .admin-grid-wide { grid-template-columns: 1fr; }
  .player-hero { grid-template-columns: auto 1fr; }
  .player-hero-stats { grid-column: span 2; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .timeline-day { grid-template-columns: 1fr; gap: 10px; }
  .timeline-date { flex-direction: row; align-items: baseline; gap: 8px; }
  .timeline-date strong { font-size: 1.4rem; }
  body.admin { padding-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform 0.22s; width: 270px; }
  body.admin.nav-open .sidebar { transform: translateX(0); box-shadow: 30px 0 80px rgba(0, 0, 0, 0.6); }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .admin-topbar { padding: 14px 18px; }
  .admin-actions { width: 100%; margin-left: 0; }
  .admin-topbar { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .section { margin: 36px 0; }
  .topbar { gap: 12px; padding: 12px 16px; }
  .brand-text small { display: none; }
  .brand-logo { width: 40px; height: 40px; }
  .topbar-actions .btn { padding: 8px 12px; font-size: 0.78rem; }
  .hero-stats { gap: 20px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .scoreboard-main { grid-template-columns: 1fr auto 1fr; gap: 8px; margin: 20px 0; }
  .score-center { min-width: 80px; }
  .period-row { grid-template-columns: 1fr repeat(3, 30px) 42px; padding: 8px 10px; font-size: 0.76rem; }
  .player-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .player-hero-stats { grid-column: auto; width: 100%; grid-template-columns: repeat(2, 1fr); }
  .player-hero-photo { margin: 0 auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .score-inputs { grid-column: auto; }
  .form-subgrid { grid-template-columns: 1fr; }
  .admin-row { flex-wrap: wrap; }
  .admin-row-main { flex-basis: calc(100% - 120px); }
  .admin-row-actions { width: 100%; justify-content: flex-start; padding-left: 66px; }
  .danger-zone { flex-direction: column; align-items: flex-start; }
  .match-teams { gap: 4px; }
  .match-team { font-size: 0.74rem; }
  .event-row { grid-template-columns: 42px 26px 1fr; }
  .event-side { display: none; }
  .preview-grid { grid-template-columns: 1fr; }
  .admin-grid { gap: 14px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
