:root {
  --bg: #081018;
  --bg-2: #0f1a28;
  --surface: #152235;
  --line: #2a3d58;
  --text: #edf3fb;
  --muted: #8fa3bd;
  --accent: #2ec4b6;
  --accent-dim: rgba(46, 196, 182, 0.14);
  --warn: #e8b84a;
  --danger: #ff6b6b;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --narrow: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 480px at 0% -5%, var(--accent-dim), transparent 55%),
    radial-gradient(700px 400px at 100% 0%, rgba(232, 184, 74, 0.08), transparent 45%),
    linear-gradient(180deg, #050b12 0%, var(--bg) 45%, #0a1420 100%);
  line-height: 1.55;
  font-size: 1rem;
}

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Bebas Neue");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("IBM Plex Sans");
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #04201c;
  padding: 0.5rem 0.75rem;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

main#main {
  display: block;
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  box-sizing: border-box;
}

.wrap.narrow {
  width: min(100%, var(--narrow));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  box-sizing: border-box;
}

.faq-section {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.section.prose .wrap,
.faq-section .wrap {
  max-width: var(--narrow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 11, 18, 0.9);
  border-bottom: 1px solid rgba(42, 61, 88, 0.75);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  padding-inline: 0;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 3.75rem 0 2.75rem;
  position: relative;
}

.hero-home {
  min-height: auto;
  display: block;
  padding: 3.2rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-stats .stat {
  background: rgba(21, 34, 53, 0.72);
  border: 1px solid var(--line);
  padding: 1rem 0.9rem;
}

.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--accent);
}

.hero-stats .stat span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.club-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
}

.club-logo-xs {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.2);
}

.match-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  color: var(--text);
  font-weight: 600;
}

.match-link .match-sep {
  color: var(--muted);
  font-weight: 500;
  margin-inline: 0.1rem;
}

.score-pill.is-final {
  min-width: 6.5rem;
  letter-spacing: 0.06em;
  font-size: clamp(2.6rem, 7vw, 3.8rem);
  color: var(--text);
  border-color: var(--accent);
  background: rgba(46, 196, 182, 0.1);
}

.score-pill.is-live {
  min-width: 6.5rem;
  color: var(--warn);
  border-color: var(--warn);
}

.score-grid .team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.team-page-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-search-hero {
  margin-top: 1.75rem;
  max-width: 52rem;
}

.site-search {
  position: relative;
}

.site-search-shell {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.site-search-shell:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.18), 0 10px 40px rgba(0, 0, 0, 0.28);
}

.site-search-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  padding: 0.65rem 0.35rem;
}

.site-search-shell input::placeholder {
  color: var(--muted);
}

.site-search-btn {
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #04201c;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
}

.site-search-btn:hover {
  filter: brightness(1.05);
}

.site-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 40;
  background: #0d1726;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.search-hit {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.15rem 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 61, 88, 0.65);
}

.search-hit:last-child {
  border-bottom: 0;
}

.search-hit:hover,
.search-hit:focus {
  background: rgba(46, 196, 182, 0.08);
  text-decoration: none;
}

.search-hit-type {
  grid-row: span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.search-hit-name {
  font-weight: 700;
}

.search-hit-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.search-empty {
  margin: 0;
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .site-search-shell {
    border-radius: 14px;
    flex-wrap: wrap;
    padding: 0.55rem;
  }

  .site-search-shell input {
    width: 100%;
    padding-inline: 0.55rem;
  }

  .site-search-btn {
    width: 100%;
  }
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(5, 11, 18, 0.75) 78%, var(--bg)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(46, 196, 182, 0.035) 18px,
      rgba(46, 196, 182, 0.035) 19px
    );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  margin: 0 0 0.75rem;
  max-width: 11ch;
}

.hero-lede {
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.35rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #04201c;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(21, 34, 53, 0.55);
}

.section {
  padding: 2.4rem 0;
}

.section h2,
.prose-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  letter-spacing: 0.03em;
  margin: 0 0 0.45rem;
}

.tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin: 0 0 0.85rem;
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  font-weight: 700;
}

.tier-badge.tier-major {
  color: #04201c;
  background: var(--accent);
  border-color: var(--accent);
}

.tier-badge.tier-minor {
  color: var(--warn);
  background: rgba(232, 184, 74, 0.12);
  border-color: rgba(232, 184, 74, 0.45);
}

.tier-meta {
  font-size: 0.82rem;
  color: var(--muted);
}

.tier-inline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.tier-inline.tier-major {
  color: var(--accent);
}

.tier-inline.tier-minor {
  color: var(--warn);
}

.breadcrumbs {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 1.1rem 0 1.35rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.scoreboard {
  background: linear-gradient(155deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  padding: 1.35rem;
  margin-bottom: 1.4rem;
}

.scoreboard .status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.scoreboard .status.is-live {
  color: var(--danger);
}

.scoreboard .status.is-scheduled {
  color: var(--warn);
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
}

.score-grid .team-name {
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);
  font-weight: 700;
  margin: 0;
}

.score-grid .team-name a {
  color: inherit;
  text-decoration: none;
}

.score-pill {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: 0.04em;
  min-width: 5.2rem;
  padding: 0.15rem 0.55rem;
  background: #070e18;
  border: 1px solid var(--line);
}

.meta-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.9rem 0 0;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  background: rgba(15, 26, 40, 0.72);
  margin-bottom: 1rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  padding: 0.65rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.data th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
}

table.data tr:last-child td {
  border-bottom: 0;
}

table.data a {
  color: var(--text);
  font-weight: 600;
}

.hub-list {
  display: grid;
  gap: 0.55rem;
}

.hub-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(21, 34, 53, 0.55);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.hub-list a:hover {
  border-color: var(--accent);
  transform: translateX(2px);
  text-decoration: none;
}

.hub-list .hint {
  color: var(--muted);
  font-size: 0.84rem;
}

.dir-index {
  display: grid;
  gap: 1.75rem;
  margin: 1.25rem 0 1.75rem;
}

.dir-country {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.dir-country h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.dir-sport {
  margin-bottom: 1rem;
}

.dir-sport h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.dir-sport h3 a {
  color: var(--accent);
}

.dir-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dir-cities a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 196, 182, 0.35);
  font-size: 0.95rem;
}

.dir-cities a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.dir-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.hierarchy {
  border: 1px solid var(--line);
  background: rgba(15, 26, 40, 0.65);
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--muted);
}

.hierarchy strong {
  color: var(--text);
  font-weight: 500;
}

.prose,
.prose-block {
  color: var(--text);
}

.prose-block {
  margin: 1.75rem 0;
}

.prose-block p,
.prose p {
  color: #c5d0e0;
  margin: 0 0 1rem;
  max-width: 68ch;
  font-size: 1.02rem;
}

.prose-block.faq h2 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}

.site-footer {
  margin-top: 2.5rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.footer-geo {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  font-size: 0.86rem;
}

.footer-geo a {
  color: var(--muted);
}

.footer-geo a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  opacity: 0.8;
}

@media (min-width: 720px) {
  .site-footer .inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .score-grid {
    grid-template-columns: 1fr;
  }

  .score-pill {
    justify-self: center;
  }

  .nav {
    font-size: 0.82rem;
    gap: 0.5rem 0.75rem;
  }

  .hub-list a {
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .hub-list a {
    transition: none;
  }
}
