:root {
  color-scheme: dark;
  --bg: #03080d;
  --bg-soft: #061018;
  --panel: #07131b;
  --panel-strong: #0a1b25;
  --panel-glass: rgba(7, 19, 27, 0.84);
  --line: #17313d;
  --line-soft: rgba(108, 231, 255, 0.14);
  --text: #f4f8fb;
  --text-soft: #c7d4db;
  --muted: #81939f;
  --accent: #43ff8a;
  --accent-2: #7be7ff;
  --gold: #f6b454;
  --danger: #ff6048;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 0%, rgba(67, 255, 138, 0.09), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(123, 231, 255, 0.08), transparent 25rem),
    linear-gradient(180deg, #02060a 0%, var(--bg) 36%, #02070b 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 70%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: var(--header-height);
  padding: 12px 18px;
  border-bottom: 1px solid rgba(123, 231, 255, 0.14);
  background: rgba(3, 8, 13, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(123, 231, 255, 0.42);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 950;
  font-size: 27px;
  line-height: 1;
  transform: skew(-12deg);
  box-shadow: inset 0 0 22px rgba(67, 255, 138, 0.13), 0 0 24px rgba(67, 255, 138, 0.15);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 900;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.main-nav {
  display: none;
  grid-column: 1 / -1;
  padding: 12px 0 4px;
}

.main-nav.is-open {
  display: grid;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 750;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--text);
  border-color: rgba(67, 255, 138, 0.28);
  background: rgba(67, 255, 138, 0.08);
}

.header-actions {
  display: none;
}

.nav-toggle {
  display: inline-grid;
  gap: 5px;
  width: 42px;
  height: 42px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  color: var(--text);
  cursor: pointer;
}

.btn--primary {
  color: #041009;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(67, 255, 138, 0.22);
}

.btn--outline {
  border-color: rgba(67, 255, 138, 0.48);
  background: rgba(3, 8, 13, 0.54);
}

.btn--ghost {
  border-color: rgba(123, 231, 255, 0.24);
  background: rgba(123, 231, 255, 0.08);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.hero,
.page-hero,
.match-hero,
.club-hero,
.player-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 580px;
  display: grid;
  align-items: end;
  gap: 24px;
  padding: 82px 18px 34px;
  border-bottom: 1px solid rgba(123, 231, 255, 0.14);
  background: var(--bg-soft);
}

.hero::before,
.page-hero::before,
.match-hero::before,
.club-hero::before,
.player-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(3, 8, 13, 0.94) 0%, rgba(3, 8, 13, 0.65) 48%, rgba(3, 8, 13, 0.52) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(3, 8, 13, 0.2) 46%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.05);
}

.hero::after,
.page-hero::after,
.match-hero::after,
.club-hero::after,
.player-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(0deg, var(--bg), transparent);
}

.hero__content,
.page-hero > div,
.club-hero > div,
.player-hero > div {
  width: 100%;
  max-width: min(var(--max), calc(100vw - 36px));
  margin: 0 auto;
}

.hero__content {
  align-self: center;
}

.eyebrow,
.chip,
.match-meta {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
}

h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: 42px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-title {
  max-width: 980px;
}

.hero-title span {
  display: block;
}

.hero-title em {
  color: var(--accent);
  font-style: normal;
  white-space: nowrap;
}

.hero-title__city {
  font-size: 0.88em;
}

h2 {
  font-size: 27px;
  font-weight: 950;
  text-transform: uppercase;
}

h3 {
  font-size: 19px;
}

.hero__lead,
.page-hero p,
.club-hero p,
.player-hero p {
  max-width: 650px;
  color: var(--text-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-match {
  display: grid;
  align-content: start;
  gap: 8px;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(123, 231, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(3, 8, 13, 0.76);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, transform 160ms ease;
}

.hero-match:hover {
  border-color: rgba(67, 255, 138, 0.44);
  transform: translateY(-2px);
}

.hero-match strong,
.hero-match span {
  display: block;
}

.hero-match strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-match span:last-child {
  color: var(--text-soft);
}

.feature-strip {
  display: grid;
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
  transform: translateY(-1px);
}

.feature-strip article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(123, 231, 255, 0.12);
  background: rgba(7, 19, 27, 0.86);
}

.feature-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(67, 255, 138, 0.38);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.feature-strip strong {
  font-size: 14px;
}

.feature-strip small {
  color: var(--muted);
}

.about-band,
.page-section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 56px 18px;
}

.about-band {
  display: grid;
  gap: 28px;
  border-bottom: 1px solid rgba(123, 231, 255, 0.11);
}

.media-panel {
  min-height: 320px;
  border: 1px solid rgba(123, 231, 255, 0.12);
  border-radius: var(--radius);
  background-image:
    linear-gradient(0deg, rgba(3, 8, 13, 0.82), rgba(3, 8, 13, 0.18)),
    var(--panel-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.about-copy p {
  color: var(--text-soft);
}

.stats-row,
.leader-grid,
.cards-grid,
.news-grid,
.dashboard-grid,
.two-column,
.design-grid,
.media-grid,
.documents-list,
.team-token-row {
  display: grid;
  gap: 16px;
}

.stats-row {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 26px;
}

.stats-row--dense {
  margin-top: 0;
}

.stats-row--league {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-card,
.panel,
.leader-card,
.cta-card,
.team-card,
.news-card,
.document-card,
.mobile-standing {
  border: 1px solid rgba(123, 231, 255, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(10, 27, 37, 0.95), rgba(7, 19, 27, 0.92));
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.18);
}

.stat-card {
  padding: 18px;
  min-width: 0;
  container-type: inline-size;
}

.stat-card strong {
  display: block;
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.stat-card--amount strong {
  font-size: 22px;
  font-size: clamp(16px, 15cqi, 32px);
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.stat-card small {
  color: var(--muted);
}

.page-section--tight {
  padding-top: 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head p {
  max-width: 650px;
  color: var(--text-soft);
}

.text-link {
  flex: none;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover {
  color: var(--accent);
}

.dashboard-grid {
  align-items: start;
}

.dashboard-grid.dashboard-grid--home {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-grid--home .section-head {
  flex-direction: column;
  align-items: flex-start;
}

.dashboard-grid > *,
.two-column > *,
.design-grid > * {
  min-width: 0;
}

.dashboard-grid--wide-left {
  grid-template-columns: 1fr;
}

.stack {
  display: grid;
  gap: 12px;
}

.match-card {
  container-type: inline-size;
  border: 1px solid rgba(123, 231, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 19, 27, 0.86);
  transition: border-color 160ms ease, transform 160ms ease;
}

.match-card:hover {
  border-color: rgba(67, 255, 138, 0.42);
  transform: translateY(-1px);
}

.match-card[hidden] {
  display: none;
}

.match-card__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.match-date {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius);
  color: #041009;
  background: var(--accent);
}

.match-date strong {
  font-size: 24px;
  line-height: 1;
}

.match-date small {
  font-size: 11px;
  font-weight: 950;
}

.match-main {
  min-width: 0;
}

.match-meta {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.match-teams {
  display: grid;
  gap: 12px;
  font-weight: 850;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.match-team__name {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.match-score {
  justify-self: start;
  margin-left: 38px;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(123, 231, 255, 0.07);
  color: var(--accent-2);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.4;
}

/* Adapt to the card width, including cards inside narrow desktop columns. */
@container (min-width: 540px) {
  .match-teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .match-score {
    margin-left: 0;
    justify-self: center;
  }

  .match-team:last-child {
    flex-direction: row-reverse;
    text-align: right;
  }
}

.match-place {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.match-status {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 5px 10px;
  border: 1px solid rgba(67, 255, 138, 0.22);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.match-status.is-done {
  border-color: rgba(246, 180, 84, 0.35);
  color: var(--gold);
}

.team-mark {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--team-accent), transparent 45%);
  border-radius: 50%;
  color: var(--team-accent);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 950;
}

.team-mark--sm {
  width: 30px;
  height: 30px;
  font-size: 9px;
}

.team-mark--lg {
  width: 92px;
  height: 92px;
  font-size: 22px;
}

.team-identity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.team-identity strong,
.team-identity small {
  display: block;
}

.team-identity small {
  color: var(--muted);
  font-size: 12px;
}

.table-shell {
  overflow-x: auto;
  min-width: 0;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.data-table--compact {
  min-width: 500px;
}

.data-table th,
.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(123, 231, 255, 0.1);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.data-table tbody tr:hover,
.data-table tr.is-leader {
  background: rgba(67, 255, 138, 0.08);
}

.data-table tr[hidden] {
  display: none;
}

.table-team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.panel {
  padding: 22px;
}

.panel--flush {
  padding: 0;
  overflow: hidden;
}

.panel--flush .section-head,
.table-toolbar {
  padding: 18px;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(123, 231, 255, 0.1);
}

.table-toolbar p {
  margin: 0;
  color: var(--text-soft);
}

.cta-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 260px;
  padding: 24px;
  display: grid;
  align-content: end;
}

.cta-card::before,
.news-card__image,
.media-grid article::before {
  background-image:
    linear-gradient(0deg, rgba(3, 8, 13, 0.94), rgba(3, 8, 13, 0.2)),
    var(--card-image);
  background-size: cover;
  background-position: center;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-card p {
  color: var(--text-soft);
}

.cta-card h2 {
  font-size: 31px;
}

.leader-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.leader-card {
  padding: 18px;
}

.leader-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.leader-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 22px;
}

.leader-card small {
  color: var(--muted);
}

.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.news-card {
  overflow: hidden;
}

.news-card__image {
  display: block;
  min-height: 160px;
}

.news-card__body {
  padding: 16px;
}

.news-card p {
  color: var(--text-soft);
}

.partners {
  padding-bottom: 70px;
}

.partner-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.partner-row span {
  padding: 18px;
  border: 1px solid rgba(123, 231, 255, 0.14);
  border-radius: var(--radius);
  color: var(--text-soft);
  background: rgba(7, 19, 27, 0.66);
  text-align: center;
  font-weight: 900;
}

.page-hero {
  min-height: 430px;
}

.page-hero--compact {
  min-height: 330px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  width: min(100%, 640px);
}

.tabs-bar {
  display: flex;
  gap: 8px;
  width: min(100% - 36px, var(--max));
  margin: 18px auto 0;
  overflow-x: auto;
  padding-bottom: 6px;
}

.tabs-bar a,
.tabs-bar button {
  flex: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(123, 231, 255, 0.16);
  border-radius: var(--radius);
  color: var(--text-soft);
  background: rgba(7, 19, 27, 0.82);
  font-weight: 800;
  cursor: pointer;
}

.tabs-bar .is-active {
  border-color: rgba(67, 255, 138, 0.44);
  color: var(--accent);
  background: rgba(67, 255, 138, 0.08);
}

.details-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.details-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(123, 231, 255, 0.1);
}

.details-list dt {
  color: var(--muted);
}

.details-list dd {
  margin: 0;
  text-align: right;
  font-weight: 850;
}

.status-pill,
.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(67, 255, 138, 0.24);
  border-radius: 999px;
  background: rgba(67, 255, 138, 0.08);
}

.filter-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(123, 231, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 19, 27, 0.82);
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(123, 231, 255, 0.16);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(3, 8, 13, 0.72);
  padding: 0 12px;
}

input[type="date"] {
  color-scheme: dark;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.calendar-list {
  display: grid;
  gap: 12px;
}

.standings-mobile {
  display: none;
  gap: 10px;
  margin-top: 16px;
}

.mobile-standing {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.mobile-standing > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-standing strong {
  color: var(--accent);
}

.mobile-standing small {
  color: var(--muted);
}

.rank {
  color: var(--muted);
  font-weight: 950;
}

.match-hero {
  min-height: 420px;
  align-items: center;
}

.match-hero__team,
.scoreboard {
  width: min(100%, 360px);
  margin: 0 auto;
  text-align: center;
}

.match-hero__team h1 {
  margin-top: 14px;
  font-size: 30px;
}

.scoreboard {
  padding: 22px;
  border: 1px solid rgba(123, 231, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(3, 8, 13, 0.72);
}

.scoreboard strong {
  display: block;
  margin: 10px 0;
  font-size: 52px;
  line-height: 0.95;
}

.scoreboard span:last-child {
  color: var(--text-soft);
}

.two-column--match,
.two-column--team {
  align-items: start;
}

.mvp-card {
  display: grid;
  gap: 4px;
}

.mvp-card strong {
  color: var(--accent);
  font-size: 30px;
}

.mvp-card span,
.mvp-card small,
.empty-state {
  color: var(--text-soft);
}

.timeline {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(123, 231, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.timeline time {
  color: var(--accent);
  font-weight: 950;
}

.timeline span {
  display: block;
  color: var(--muted);
}

.stat-bars {
  display: grid;
  gap: 16px;
}

.stat-bar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 12px;
  align-items: center;
}

.stat-bar > span {
  font-weight: 900;
}

.stat-bar > span:last-child {
  text-align: right;
}

.stat-bar div {
  display: grid;
  gap: 7px;
}

.stat-bar strong {
  color: var(--text-soft);
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
}

.stat-bar i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--accent) 0 var(--home-width), rgba(123, 231, 255, 0.3) var(--home-width) 100%);
}

.media-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.media-grid article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 210px;
  display: grid;
  align-content: end;
  padding: 16px;
  border: 1px solid rgba(123, 231, 255, 0.14);
  border-radius: var(--radius);
}

.media-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.media-grid span,
.media-grid strong,
.media-grid small {
  position: relative;
  z-index: 1;
}

.media-grid span {
  color: var(--accent);
  font-weight: 900;
}

.media-grid strong {
  display: block;
  margin-top: 4px;
}

.media-grid small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
}

.media-grid--compact article {
  min-height: 170px;
}

.media-grid--large article {
  min-height: 250px;
}

.club-hero,
.player-hero {
  min-height: 430px;
}

.club-hero::before,
.player-hero::before {
  background-image:
    linear-gradient(90deg, rgba(3, 8, 13, 0.95) 0%, rgba(3, 8, 13, 0.62) 58%, rgba(3, 8, 13, 0.54) 100%),
    var(--hero-image);
}

.details-list--hero {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 18px;
  border: 1px solid rgba(123, 231, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(3, 8, 13, 0.7);
}

.player-number {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 1px solid color-mix(in srgb, var(--team-accent), transparent 35%);
  border-radius: var(--radius);
  color: var(--team-accent);
  background: rgba(3, 8, 13, 0.72);
  font-size: 64px;
  font-weight: 950;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  min-height: 210px;
}

.team-card h2 {
  margin-bottom: 0;
  color: var(--text);
  font-size: 28px;
}

.team-card small {
  color: var(--muted);
}

.documents-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.document-card {
  padding: 20px;
}

.document-card p {
  color: var(--text-soft);
}

.application-form {
  display: grid;
  gap: 14px;
}

.application-form .full {
  grid-column: 1 / -1;
}

.design-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.swatches,
.button-row,
.team-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatches span {
  display: grid;
  gap: 10px;
  width: 104px;
  padding: 12px;
  border: 1px solid rgba(123, 231, 255, 0.14);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 850;
}

.swatches span::before {
  content: "";
  width: 100%;
  height: 46px;
  border-radius: 6px;
  background: var(--swatch);
}

.mini-form {
  display: grid;
  gap: 12px;
}

.notice {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(67, 255, 138, 0.28);
  border-radius: var(--radius);
  color: var(--text-soft);
  background: rgba(67, 255, 138, 0.08);
}

.notice--warning {
  border-color: rgba(246, 180, 84, 0.35);
  background: rgba(246, 180, 84, 0.08);
}

.empty-state--panel {
  margin: 16px 0 0;
  padding: 18px;
  border: 1px solid rgba(123, 231, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 19, 27, 0.72);
}

.site-footer {
  border-top: 1px solid rgba(123, 231, 255, 0.12);
  background: #02070b;
}

.footer-main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 28px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-email svg {
  flex-shrink: 0;
  color: var(--accent);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.social-icon {
  flex-shrink: 0;
}

.social-icon--telegram {
  color: #28a8e9;
}

.social-icon--vk {
  color: #0077ff;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(123, 231, 255, 0.16);
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--accent);
  border-color: rgba(67, 255, 138, 0.4);
  background: rgba(67, 255, 138, 0.05);
}

.footer-email:hover,
.footer-email:focus-visible {
  color: var(--accent);
}

@media (max-width: 760px) {
  .standings-mobile {
    display: grid;
  }

  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid rgba(123, 231, 255, 0.1);
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .standings-table {
    display: none;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 27px;
  }

  .hero,
  .page-hero,
  .match-hero,
  .club-hero,
  .player-hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-title em {
    white-space: normal;
  }

  .section-head {
    display: grid;
    align-items: start;
  }
}

@media (min-width: 680px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 34px;
  }

  .match-hero__team h1 {
    font-size: 40px;
  }

  .scoreboard strong {
    font-size: 70px;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .application-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 860px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline: 28px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    grid-column: auto;
    justify-content: center;
    gap: 3px;
    padding: 0;
    overflow-x: auto;
  }

  .main-nav a {
    padding: 9px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .location-pin {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 850;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 370px;
    min-height: 600px;
    padding-inline: max(28px, calc((100vw - var(--max)) / 2));
  }

  .hero__content,
  .hero-match {
    width: auto;
    margin: 0;
  }

  .feature-strip {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .about-band {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .dashboard-grid {
    grid-template-columns: 1.08fr 1fr 0.82fr;
  }

  .dashboard-grid.dashboard-grid--home {
    gap: 40px;
  }

  .filter-panel--calendar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  }

  .filter-panel--stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }

  .dashboard-grid--wide-left {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column--match {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .two-column--team {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  }

  .match-hero {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: max(28px, calc((100vw - var(--max)) / 2));
  }

  .club-hero,
  .page-hero,
  .player-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    padding-inline: max(28px, calc((100vw - var(--max)) / 2));
  }

}

@media (min-width: 1120px) {
  h1 {
    font-size: 68px;
  }

  h2 {
    font-size: 40px;
  }

  .match-hero__team h1 {
    font-size: 48px;
  }

  .scoreboard strong {
    font-size: 86px;
  }

  .main-nav a {
    padding-inline: 11px;
    font-size: 13px;
  }
}

/* Keep the tournament overview table complete and scrollable on small screens. */
.standings-legend,
.standings-scroll-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.standings-scroll-hint {
  display: none;
}

.table-shell--standings-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

@media (max-width: 760px) {
  .table-shell--standings-scroll .standings-table {
    display: table;
    min-width: 720px;
  }

  .table-shell--standings-scroll thead {
    display: table-header-group;
  }

  .table-shell--standings-scroll tr {
    display: table-row;
  }

  .table-shell--standings-scroll td {
    display: table-cell;
    padding: 13px 12px;
    white-space: nowrap;
    border-bottom: 1px solid rgba(123, 231, 255, 0.1);
  }

  .table-shell--standings-scroll td::before {
    content: none;
  }

  .standings-scroll-hint {
    display: block;
  }
}

.home-standings__preview {
  display: grid;
  gap: 16px;
}

.home-standings__list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(123, 231, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 19, 27, 0.86);
}

.home-standings__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px 12px;
}

.home-standings__list li + li {
  border-top: 1px solid rgba(123, 231, 255, 0.1);
}

.home-standings__list li:first-child {
  background: rgba(67, 255, 138, 0.06);
}

.home-standings__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
}

.home-standings__team > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-standings__points {
  display: grid;
  gap: 3px;
  text-align: right;
  white-space: nowrap;
}

.home-standings__points strong {
  color: var(--accent);
  font-size: 14px;
}

.home-standings__points small {
  color: var(--muted);
  font-size: 11px;
}

/* Data-backed public pages and accessible form feedback. */
.team-mark img { width: 100%; height: 100%; object-fit: contain; }
.media-grid article { position: relative; }
.media-open { display: flex; flex-direction: column; justify-content: flex-end; gap: .55rem; position: absolute; inset: 0; padding: 1.5rem; color: inherit; text-decoration: none; }
.media-open:focus-visible { outline: 3px solid var(--accent, #43ff8a); outline-offset: 4px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.article-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.news-prose { max-width: 900px; margin: 0 auto 2rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.application-form .consent { display: flex; align-items: flex-start; gap: .8rem; }
.application-form .consent input { width: 1.2rem; height: 1.2rem; min-width: 1.2rem; margin-top: .2rem; }
.form-message:empty { display: none; }
.form-message { line-height: 1.6; padding: 1rem; border: 1px solid currentColor; border-radius: .6rem; }
button:disabled { opacity: .65; cursor: wait; }
.partner-row img { width: 150px; height: 70px; object-fit: contain; }
.filter-panel { align-items: end; }
@media (max-width: 640px) { .header-actions .btn { font-size: 10px; padding: 10px; } .media-open { padding: 1rem; } }

/* Keep every navigation item reachable without clipping the centred flex row. */
@media (min-width: 860px) {
  .main-nav { justify-content: flex-start; }
}
@media (min-width: 860px) and (max-width: 1500px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; justify-content: center; overflow: visible; }
  .header-actions { grid-column: 2; grid-row: 1; }
}
@media (max-width: 520px) { .page-hero h1 { line-height: 1.15; } }
