/* ============================================================
   World Cup 2026 — Stylesheet
   ============================================================ */

:root {
  --bg: #070b22;
  --bg-2: #0b1233;
  --bg-3: #111a44;
  --card: #131c4a;
  --card-2: #182359;
  --border: rgba(255,255,255,0.08);
  --text: #f4f6ff;
  --muted: #8c93b8;
  --accent: #a3e635;
  --accent-2: #84cc16;
  --red: #ef4444;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --purple: #7c3aed;
  --cyan: #22d3ee;
  --orange: #f59e0b;
  --pink: #ec4899;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(0,0,0,0.35);
  --max: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(124,58,237,0.10), transparent 50%),
    radial-gradient(ellipse at 100% 0%, rgba(59,130,246,0.08), transparent 50%),
    linear-gradient(180deg, #0a0f2e 0%, #070b22 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 34, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 14px;
  line-height: 1.1;
  text-transform: uppercase;
}
.logo img { width: 48px; height: 36px; border-radius: 8px; }
.logo-text small { display:block; color: var(--muted); font-weight:600; font-size: 11px; }

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  transition: color 120ms, border-color 120ms;
}
.nav a:hover { color: var(--text); }
.nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,0.07); }
.mobile-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px auto;
  background: #131c4a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 420px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,18,51,0.85) 0%, rgba(11,18,51,0.55) 60%, rgba(11,18,51,0.35) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  min-height: 420px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hero-sub {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  background: rgba(0,0,0,0.35);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 28px;
}
.hero-sub .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b1233;
  font-weight: 800;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform 120ms, box-shadow 120ms;
  box-shadow: 0 6px 18px rgba(163,230,53,0.30);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(163,230,53,0.45); }
.cta.dark {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  box-shadow: none;
}
.cta.dark:hover { background: rgba(255,255,255,0.12); }

/* page hero (inner pages) */
.page-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px auto;
  background: #131c4a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 36px 40px 32px;
  min-height: 280px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,18,51,0.85) 0%, rgba(11,18,51,0.55) 60%, rgba(11,18,51,0.35) 100%);
  z-index: 1;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900;
  line-height: 1;
  margin: 12px 0 16px;
  max-width: 70%;
}
.page-hero p { color: rgba(255,255,255,0.85); max-width: 60%; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-bottom: 8px;
}
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: rgba(255,255,255,0.9); }

/* ---------- Section ---------- */
.section {
  margin: 40px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}
.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Hosts ---------- */
.hosts-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hosts-grid .title { display: flex; flex-direction: column; justify-content: center; }
.hosts-grid .title h2 { margin: 0 0 8px; }
.hosts-grid .title p { color: var(--muted); }
.hosts-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.host-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  background: #1a234d center/cover no-repeat;
  transition: transform 180ms;
}
.host-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.8) 100%);
}
.host-card:hover { transform: translateY(-3px); }
.host-card .host-meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7,11,34,0.65);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.host-card .host-meta img { width: 24px; height: 16px; border-radius: 3px; }
.host-card .host-meta strong { font-weight: 700; font-size: 15px; }
.host-card .host-meta span { color: var(--muted); font-size: 13px; }

/* ---------- Groups grid ---------- */
.groups-block {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
}
.groups-block .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.groups-block .info h2 { margin: 0 0 8px; }
.groups-block .info p { color: var(--muted); margin: 0 0 22px; }

.groups-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.group-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  height: 130px;
  overflow: hidden;
  transition: transform 180ms, border-color 180ms;
}
.group-card:hover { transform: translateY(-3px); border-color: rgba(163,230,53,0.4); }
.group-card .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  display: inline-block;
}
.group-card .letter {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 14px;
}
.group-card .corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 80px;
  height: 60px;
  border-top-left-radius: 30px;
  background: var(--c, var(--blue));
  opacity: 0.85;
}
.group-card .corner::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(7,11,34,0.95);
}

/* ---------- Matches ---------- */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.match-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 180ms, transform 180ms;
}
.match-card:hover { border-color: rgba(163,230,53,0.3); transform: translateY(-2px); }
.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.match-meta .time { color: var(--text); font-size: 13px; }
.match-teams {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.team-block img { width: 52px; height: 36px; border-radius: 5px; object-fit: cover; box-shadow: 0 2px 4px rgba(0,0,0,0.4); }
.team-block .name {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.vs {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.match-venue {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* List-style match rows (used on schedule pages, ref image 2) */
.match-list {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.match-row {
  display: grid;
  grid-template-columns: 100px 200px 1fr 30px 1fr 120px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 120ms;
}
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: rgba(255,255,255,0.03); }
.match-row .when {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.match-row .when .t { display: block; color: var(--text); font-size: 18px; margin-top: 4px; letter-spacing: 0; }
.match-row .venue { font-size: 13px; color: var(--muted); }
.match-row .venue strong { color: var(--text); display: block; }
.match-row .team {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.match-row .team.right { justify-content: flex-end; }
.match-row .team img { width: 42px; height: 28px; border-radius: 4px; }
.match-row .vs-line { text-align: center; font-weight: 700; color: var(--muted); }
.match-row .btn-detail {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  transition: background 120ms;
}
.match-row .btn-detail:hover { background: rgba(163,230,53,0.15); border-color: rgba(163,230,53,0.4); }

/* ---------- Featured teams ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--card);
  transition: transform 180ms;
}
.featured-card:hover { transform: translateY(-3px); }
.featured-card .flag-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.75;
}
.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.9) 100%);
}
.featured-card .meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
}
.featured-card .meta h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}
.featured-card .meta p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* ---------- Playoffs promo ---------- */
.playoffs-promo {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(124,58,237,0.85), rgba(34,211,238,0.6) 40%, rgba(163,230,53,0.65) 100%),
    #0b1233;
  position: relative;
  padding: 34px 40px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
}
.playoffs-promo h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.playoffs-promo p { margin: 0; color: rgba(255,255,255,0.9); }
.playoffs-promo .bracket-illus { opacity: 0.75; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  padding: 40px 0 30px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--purple), var(--cyan), var(--accent));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.5fr;
  gap: 30px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color 120ms;
}
.footer-col a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 0;
}
.socials a:hover { color: var(--text); background: rgba(255,255,255,0.1); }
.subscribe-form {
  display: flex;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  margin-top: 8px;
}
.subscribe-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.subscribe-form input::placeholder { color: var(--muted); }
.subscribe-form button {
  background: var(--accent);
  color: #0b1233;
  border: none;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  font-size: 18px;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .links { display: flex; gap: 18px; }

/* ---------- Inner content layout ---------- */
.with-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
}
.side-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.side-card li:last-child { border-bottom: none; }
.side-card li a { color: var(--muted); display: flex; align-items: center; gap: 10px; flex: 1; }
.side-card li a:hover { color: var(--text); }
.side-card li .chev { color: var(--muted); }
.side-card.host-card-side .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(255,255,255,0.03);
}
.side-card.host-card-side .row.active {
  background: var(--accent);
  color: #0b1233;
  font-weight: 700;
}
.side-card.host-card-side .row img { width: 28px; height: 18px; border-radius: 3px; }

.stat-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 700; }
.stat-row .ico { width: 28px; height: 28px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }

.subscribe-side {
  background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(34,211,238,0.25));
  border-radius: var(--radius);
  padding: 22px;
}
.subscribe-side h3 { margin: 0 0 4px; }
.subscribe-side p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0 0 14px; }
.subscribe-side button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0b1233;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- Filter tabs ---------- */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tab {
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 120ms;
  white-space: nowrap;
}
.tab:hover { background: rgba(255,255,255,0.12); }
.tab.active {
  background: var(--accent);
  color: #0b1233;
  border-color: var(--accent);
}

/* ---------- Bracket visual ---------- */
.bracket {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0;
}
.bracket-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.bracket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
}
.bracket-col { display: flex; flex-direction: column; gap: 18px; justify-content: space-around; }
.bracket-match {
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}
.bracket-match div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.bracket-match div + div { border-top: 1px solid var(--border); }
.bracket-match img { width: 22px; height: 14px; border-radius: 2px; }
.bracket-trophy {
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
}
.bracket-trophy img { width: 60px; margin: 0 auto 8px; }

/* ---------- Group standings table ---------- */
.standings {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.standings table { width: 100%; border-collapse: collapse; }
.standings th, .standings td {
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.standings th {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.03);
}
.standings tr:last-child td { border-bottom: none; }
.standings td.team-cell {
  text-align: left;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.standings td.team-cell img { width: 28px; height: 18px; border-radius: 3px; }
.standings td.pts { color: var(--accent); font-weight: 800; }

/* ---------- Team detail ---------- */
.team-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  background: var(--card);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,18,51,0.85) 0%, rgba(11,18,51,0.45) 100%);
  z-index: 0;
  opacity: 0;
}
.team-hero.has-bg::before { opacity: 1; }
.team-hero > * { position: relative; z-index: 1; }
.team-hero .flag-large {
  width: 180px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.team-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.team-hero .group-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b1233;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px;
}
.team-hero p { color: var(--muted); margin: 0; max-width: 720px; }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
  .matches-grid { grid-template-columns: repeat(2, 1fr); }
  .groups-grid { grid-template-columns: repeat(4, 1fr); }
  .with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .match-row {
    grid-template-columns: 90px 1fr 1fr;
    grid-template-areas:
      "when team1 team2"
      "venue venue venue"
      "btn btn btn";
    gap: 10px;
  }
  .match-row .when { grid-area: when; }
  .match-row .venue { grid-area: venue; }
  .match-row .team.left { grid-area: team1; justify-content: flex-start; }
  .match-row .team.right { grid-area: team2; }
  .match-row .vs-line { display: none; }
  .match-row .btn-detail { grid-area: btn; }
  .bracket-grid { display: none; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header-inner { height: 64px; }
  .logo small { display: none; }
  .hero-inner { padding: 32px 24px; min-height: 380px; }
  .hero { min-height: 380px; }
  .hosts-grid, .groups-block { grid-template-columns: 1fr; }
  .hosts-cards { grid-template-columns: 1fr; }
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .matches-grid { grid-template-columns: 1fr; }
  .playoffs-promo { grid-template-columns: 1fr; text-align: center; }
  .playoffs-promo .bracket-illus { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-hero { grid-template-columns: 1fr; text-align: left; }
  .team-hero .flag-large { width: 120px; height: 80px; }
  .page-hero h1 { max-width: 100%; }
  .page-hero p { max-width: 100%; }
}

/* Open mobile menu */
.nav.open {
  display: flex;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(7,11,34,0.97);
  backdrop-filter: blur(14px);
  padding: 20px;
  gap: 4px;
  z-index: 100;
  border-top: 1px solid var(--border);
}
.nav.open a {
  padding: 14px 8px;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

/* ============================================================
   TBD (knockout matches with unknown teams)
   ============================================================ */
.team.tbd {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  align-items: center;
  gap: 8px;
}
.team.tbd.left { justify-content: flex-start; }
.team.tbd.right { justify-content: flex-end; }
.tbd-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.match-teams.tbd {
  justify-content: center;
  padding: 12px 8px;
}
.tbd-pair {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Bracket label inside slots */
.bracket-label {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  margin-left: 6px;
  font-weight: 600;
}
.bracket-match.empty {
  opacity: 0.3;
}
.bracket-col.center {
  justify-content: center;
}

/* Host sidebar sub-label */
.host-card-side .row .sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ============================================================
   FLAT DESIGN OVERRIDES — ближе к айдентике ЧМ2026
   ============================================================ */

/* Карточки — насыщенная заливка вместо обводок, мягкая тень */
.host-card,
.group-card,
.match-card,
.match-row,
.featured-card,
.side-card,
.standings,
.subscribe-side,
.bracket,
.bracket-match,
.team-hero,
.page-hero {
  background-color: var(--card);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* Внутри сайдбара — чуть светлее, более «выпуклые» */
.side-card { background-color: var(--card-2); }

/* Hover — лёгкое поднятие */
.group-card:hover,
.host-card:hover,
.match-card:hover,
.featured-card:hover {
  transform: translateY(-2px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}

/* Кнопки иконок (поиск, меню) — плоская заливка */
.icon-btn {
  background-color: var(--card);
  color: var(--text);
  border-radius: 12px;
}
.icon-btn:hover {
  background-color: var(--card-2);
}

/* Поля ввода email и т.п. */
.subscribe-form input,
input[type="email"] {
  background-color: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 10px;
}

/* Match-row горизонтальные разделители — пунктирная линия снизу, не обводка */
.match-row {
  border-radius: 14px;
}
.match-list .match-row + .match-row {
  margin-top: 8px;
}

/* Footer — убрать ободок на верху, оставить только разделитель тонкой линией bg */
.site-footer {
  border-top: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(11,18,51,0.4) 100%);
}

/* Bracket — слоты должны быть плоскими */
.bracket-match {
  border-radius: 10px;
  background-color: rgba(255,255,255,0.04);
}
.bracket-match.empty {
  background-color: rgba(255,255,255,0.02);
}

/* Standings table */
.standings {
  border-radius: 14px;
  overflow: hidden;
}

/* Tabs — заливки вместо ободка */
.tabs .tab {
  background-color: var(--card-2);
  color: var(--text);
  border-radius: 999px;
}
.tabs .tab.active {
  background-color: var(--accent);
  color: #07120a;
}

/* TBD-marker — мягкая заливка вместо пунктира */
.tbd-mark {
  background-color: rgba(255,255,255,0.06);
  color: var(--muted);
}

/* Host cards (главная) — крупная картинка */
.host-card {
  border-radius: 18px;
  overflow: hidden;
}

/* Хост-карточки в сайдбаре */
.host-card-side .row {
  background-color: rgba(255,255,255,0.03);
  border-radius: 10px;
  margin-bottom: 6px;
}
.host-card-side .row:hover {
  background-color: rgba(255,255,255,0.06);
}
.host-card-side .row.active {
  background-color: var(--accent);
  color: #07120a;
}
.host-card-side .row.active .sub {
  color: rgba(7,18,10,0.7);
}

/* ============================================================
   USER-REPLACEABLE IMAGE BG CLASSES
   Подставляются через background-image в HTML (см. build.py).
   Картинки лежат в /assets/images/...
   ============================================================ */
.host-card { background-size: cover; background-position: center; }
.featured-card .flag-bg { background-size: cover; background-position: center; }

/* Затемнение поверх фото, чтобы текст читался */
.host-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,11,34,0.1) 0%, rgba(7,11,34,0.75) 100%);
  pointer-events: none;
}
.host-card { position: relative; }
.host-card .host-meta { position: relative; z-index: 2; }

/* Featured-card затемнение */
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,11,34,0.1) 0%, rgba(7,11,34,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}
.featured-card { position: relative; }
.featured-card .meta { position: relative; z-index: 2; }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  height: 38px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s ease;
  min-width: 32px;
}
.lang-btn:hover {
  color: var(--text);
  background: var(--card-2);
}
.lang-btn.active {
  background: var(--accent);
  color: #07120a;
}

/* On mobile, hide all but active lang */
@media (max-width: 900px) {
  .lang-switcher { background: transparent; padding: 0; }
  .lang-btn { display: none; }
  .lang-btn.active {
    display: inline-flex;
    background: var(--card);
    color: var(--text);
  }
  /* When mobile menu open we'd show all — handled by JS later */
}

/* ============================================================
   SEO BLOCK
   ============================================================ */
.seo-block {
  background: rgba(255,255,255,0.025);
  border-radius: 18px;
  padding: 32px 36px;
  margin: 48px 0 32px;
  max-width: 980px;
}
.seo-block h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--text);
}
.seo-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 12px;
}
.seo-block p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .seo-block { padding: 24px 20px; border-radius: 14px; }
  .seo-block p { font-size: 14px; }
}

/* ============================================================
   SEO BLOCK — расширенные стили для больших блоков
   ============================================================ */
.seo-block h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 28px 0 14px;
  color: var(--text);
}
.seo-block h2:first-child {
  margin-top: 0;
}
.seo-block h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 18px 0 8px;
  color: var(--text);
}
.seo-block p.seo-intro {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 18px;
}
.seo-block a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(163,230,53,0.3);
}
.seo-block a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   MATCH PAGE — match-hero block
   ============================================================ */
.match-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(220, 38, 38, 0.12) 100%), var(--card);
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  padding: 32px 28px;
  margin: 24px 0 40px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  overflow: hidden;
}
.match-hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,18,51,0.85) 0%, rgba(11,18,51,0.7) 100%);
  z-index: 0;
}
.match-hero > * { position: relative; z-index: 1; }
.match-hero-stage {
  display: inline-block;
  background: rgba(163, 230, 53, 0.15);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.match-hero-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 20px 0 28px;
  flex-wrap: nowrap;
}
.match-hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 0;
  max-width: 220px;
}
.match-hero-team img {
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.match-hero-team span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
}
.match-hero-vs {
  font-size: 18px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 2px;
}
.match-hero-tbd {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  max-width: 600px;
}
.match-hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 24px;
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.match-hero-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}
.match-hero-meta strong {
  font-size: 16px;
  color: var(--text);
  line-height: 1.4;
}
.match-hero-meta span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .match-hero { padding: 24px 18px; }
  .match-hero-teams { gap: 12px; }
  .match-hero-team { max-width: 140px; }
  .match-hero-team img { width: 50px; height: 36px; }
  .match-hero-team span { font-size: 14px; }
  .match-hero-vs { font-size: 14px; }
  .match-hero-meta { grid-template-columns: 1fr; gap: 12px; }
}

/* Match-card on homepage now an <a> — keep clean */
a.match-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.match-card:hover {
  transform: translateY(-2px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
}

.match-hero-h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0 16px;
  line-height: 1.2;
  color: var(--text);
}
@media (max-width: 600px) {
  .match-hero-h1 { font-size: 22px; }
}
