.score-body {
  --score-bg: #edf1ed;
  --score-panel: #ffffff;
  --score-dark: #101813;
  --score-line: #d7ded8;
  background: var(--score-bg);
}

.score-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  color: #fff;
  background: var(--score-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.score-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.score-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
}

.score-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  color: rgba(255, 255, 255, 0.78);
}

.score-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.score-nav a.active,
.score-nav a:hover,
.score-nav a:focus-visible {
  color: #112016;
  background: var(--accent);
}

.score-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 290px;
  gap: 16px;
  width: min(calc(100% - 24px), 1280px);
  margin: 16px auto 48px;
}

.league-sidebar,
.table-sidebar,
.tournament-card,
.score-top,
.day-strip,
.status-filters {
  background: var(--score-panel);
  border: 1px solid var(--score-line);
  border-radius: 12px;
}

.league-sidebar,
.table-sidebar {
  position: sticky;
  top: 78px;
  align-self: start;
  padding: 12px;
}

.sidebar-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px 12px;
  border-bottom: 1px solid var(--score-line);
}

.sidebar-title strong {
  font-size: 18px;
}

.sidebar-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.league-link {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid var(--score-line);
}

.league-link.active {
  background: #edf7e7;
  border-radius: 10px;
}

.league-link span,
.league-link small {
  display: block;
}

.league-link span {
  font-weight: 850;
}

.league-link small {
  margin-top: 3px;
  color: var(--muted);
}

.organizer-box,
.qr-note {
  margin-top: 14px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(145deg, #10241a, #1f7a42);
  border-radius: 12px;
}

.organizer-box p,
.qr-note p {
  margin: 8px 0 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.4;
}

.organizer-box a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  color: #102015;
  background: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.score-content {
  display: grid;
  gap: 12px;
}

.score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.score-kicker {
  margin: 0 0 6px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.score-top h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.score-top p:last-child {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.panel-link {
  min-width: max-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  color: #fff;
  background: var(--score-dark);
  border-radius: 999px;
  font-weight: 850;
}

.day-strip,
.status-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
}

.day-strip button,
.status-filters button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  background: #f4f6f4;
  border: 1px solid var(--score-line);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.day-strip button.active,
.status-filters button.active {
  color: #102015;
  background: var(--accent);
  border-color: transparent;
}

.tournament-card {
  overflow: hidden;
}

.tournament-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #fff;
  background: var(--score-dark);
}

.tournament-head span,
.tournament-head strong {
  display: block;
}

.tournament-head span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tournament-head strong {
  margin-top: 3px;
}

.tournament-head a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.match-list {
  display: grid;
}

.match-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 74px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--score-line);
}

.match-row:last-child {
  border-bottom: 0;
}

.match-row.is-hidden {
  display: none;
}

.match-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.match-time.live {
  color: var(--danger);
}

.team {
  min-width: 0;
}

.team strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home {
  text-align: right;
}

.score {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  color: #111813;
  background: #eef2ef;
  border-radius: 8px;
}

.match-meta {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.positions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}

.positions-table th,
.positions-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--score-line);
  text-align: left;
}

.positions-table th:last-child,
.positions-table td:last-child {
  text-align: right;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .score-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .table-sidebar {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .score-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .score-shell {
    grid-template-columns: 1fr;
    width: min(calc(100% - 16px), 1280px);
    margin-top: 8px;
  }

  .league-sidebar,
  .table-sidebar {
    position: static;
  }

  .score-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .match-row {
    grid-template-columns: 46px minmax(0, 1fr) 62px minmax(0, 1fr);
    gap: 7px;
    padding: 10px;
  }

  .match-meta {
    grid-column: 2 / -1;
    text-align: left;
  }
}
