:root {
  --bg: #070b12;
  --bg-elevated: #0d1320;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-solid: #141c2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --live: #f43f5e;
  --live-glow: rgba(244, 63, 94, 0.45);
  --win: #34d399;
  --gold: #fbbf24;
  --qualify: rgba(52, 211, 153, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --tape-h: 3rem;
  --round-r32: #22d3ee;
  --round-r16: #60a5fa;
  --round-qf: #a78bfa;
  --round-sf: #fb923c;
  --round-final: #fbbf24;
  --round-third: #94a3b8;
  --glass: blur(16px) saturate(1.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 1.5vw, 16px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  padding: clamp(0.75rem, 2vw, 1.5rem);
  padding-bottom: calc(var(--tape-h) + 1.25rem);
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(167, 139, 250, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(244, 63, 94, 0.08), transparent 45%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: min(100%, 1920px);
  margin: 0 auto;
  width: 100%;
}

.wall {
  background: rgba(13, 19, 32, 0.75);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 1.25rem;
}

.sponsor-bar {
  margin: calc(-1 * clamp(1.25rem, 3vw, 2rem)) calc(-1 * clamp(1.25rem, 3vw, 2rem)) 1rem;
  padding: 0.5rem clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sponsor-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 0.74rem;
  color: var(--text-dim);
  transition: color 0.15s;
}

.sponsor-bar__link:hover {
  color: var(--text-muted);
}

.sponsor-bar__link:hover .sponsor-bar__cta {
  background: var(--accent);
  color: #fff;
}

.sponsor-bar__text strong {
  color: var(--text-muted);
  font-weight: 600;
}

.sponsor-bar__link:hover .sponsor-bar__text strong {
  color: var(--text);
}

.sponsor-bar__cta {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  transition: background 0.15s, color 0.15s;
}

@media (max-width: 540px) {
  .sponsor-bar__link {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* ── Banner ── */
.banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.banner__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.banner__trophy-wrap {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.03));
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.banner__trophy {
  width: 2rem;
  height: auto;
}

.banner__hosts {
  display: flex;
  gap: 0.35rem;
}

.banner__hosts img {
  width: 2rem;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.banner__center {
  text-align: center;
}

.banner__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.banner__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin: 0.1rem 0 0;
  line-height: 1;
  letter-spacing: -0.03em;
}

.banner__title-accent {
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.banner__status {
  display: flex;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.live-dot--on {
  background: var(--live);
  box-shadow: 0 0 12px var(--live-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* ── Sections ── */
.section-head {
  margin-bottom: 0.85rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-hint {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Ticker ── */
.ticker-panel {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
}

@media (min-width: 1400px) {
  .ticker {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.ticker__empty,
.panel-empty {
  margin: 0;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.match-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.match-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.match-card--live {
  border-color: rgba(244, 63, 94, 0.5);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), var(--surface-solid));
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.12);
}

.match-card__meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.match-card__teams {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.match-card__team-block {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.match-card__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.match-card__row img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.match-card__row .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card__row .score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 1.2rem;
  text-align: right;
}

.match-card__row.winner .name {
  color: var(--win);
}

.badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge--live {
  color: #fff;
  background: var(--live);
  box-shadow: 0 0 12px var(--live-glow);
  animation: pulse 2s ease-in-out infinite;
}

.badge--ft {
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.badge--up {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* ── Watch links ── */
.watch-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
}

.watch-links__label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.watch-link {
  font-size: 0.65rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.watch-link:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: #fff;
}

/* ── Watch info cards (glassmorphism) ── */
.watch-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.watch-info__logo {
  width: 44px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(0,0,0,0.12);
  padding: 6px;
}

.watch-info__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.watch-info__label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
}

.watch-info__btn {
  margin-left: 0.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  border: none;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.watch-info__btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 520px) {
  .watch-info { padding: 0.45rem; gap: 0.45rem; }
  .watch-info__logo { width: 36px; height: 22px; }
  .watch-info__label { font-size: 0.78rem; }
  .watch-info__btn { padding: 0.3rem 0.55rem; font-size: 0.78rem; }
}

.team-link {
  all: unset;
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.team-link:hover,
.team-link:focus-visible {
  text-decoration: none;
  color: var(--accent-strong);
}

.team-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(7, 11, 18, 0.85);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.team-overlay[hidden] {
  display: none;
}

.team-popup {
  width: min(100%, 480px);
  max-height: min(90vh, 780px);
  overflow-y: auto;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.team-popup__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.team-popup__title {
  margin: 0;
  font-size: 1.15rem;
}

.team-popup__tag {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.team-popup__close {
  all: unset;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
}

.team-popup__summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.team-popup__summary-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.team-popup__summary-grid strong {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.team-popup__summary-grid span {
  font-size: 0.95rem;
}

.team-popup__section {
  margin-top: 1rem;
}

.team-popup__section h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.team-popup__game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.team-popup__game-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.team-popup__game-meta,
.team-popup__game-opponent,
.team-popup__game-score {
  font-size: 0.85rem;
}

.team-popup__game-meta {
  color: var(--text-muted);
}

.team-popup__game-score {
  font-weight: 700;
}

.team-popup__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.match-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.match-card__details-wrapper {
  margin-top: 0.85rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.match-card__team-details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.match-card__toggle {
  width: 100%;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: none;
}

.match-card__toggle:hover,
.match-card__toggle:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.match-card__toggle::after {
  content: "▾";
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.match-card__details-wrapper[open] .match-card__toggle::after {
  transform: rotate(180deg);
}

.match-card__details {
  margin: 0;
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.match-card__detail-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.detail-label {
  font-weight: 700;
  color: var(--text);
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0.5rem;
  z-index: 20;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  width: fit-content;
  max-width: 100%;
}

.tab {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.tab:hover {
  color: var(--text);
  background: var(--surface);
}

.tab--active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.panel[hidden] {
  display: none !important;
}

.main-content {
  min-height: 200px;
}

/* ── Groups ── */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

@media (min-width: 900px) {
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .groups-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1600px) {
  .groups-grid { grid-template-columns: repeat(4, 1fr); }
}

.group-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.group-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.group-card--live {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.1);
}

.group-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), transparent);
  border-bottom: 1px solid var(--border);
}

.group-card__header span:last-child {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
}

.group-table-wrap {
  overflow-x: auto;
}

.group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  min-width: 220px;
}

.group-table th,
.group-table td {
  padding: 0.4rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.group-table th:nth-child(2),
.group-table td:nth-child(2) {
  text-align: left;
}

.group-table th {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.2);
}

.group-table .pos {
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 600;
}

.group-table tr.qualified td {
  background: var(--qualify);
}

.group-table tr:last-child td {
  border-bottom: none;
}

.group-table .team-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.group-table .team-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 7rem;
  font-weight: 500;
}

.group-table .team-cell img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

.group-table .pts {
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.group-card--compact .group-card__header {
  font-size: 0.75rem;
  padding: 0.4rem 0.55rem;
}

.group-table--compact {
  font-size: 0.68rem;
}

.group-table--compact td {
  padding: 0.28rem 0.4rem;
}

.group-table--compact .team-cell span {
  max-width: 5rem;
}

/* ── Wall chart ── */
.wall-chart__hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.wall-chart__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.wall-chart__legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend--r32 { background: var(--round-r32); box-shadow: 0 0 8px rgba(34, 211, 238, 0.5); }
.legend--r16 { background: var(--round-r16); box-shadow: 0 0 8px rgba(96, 165, 250, 0.5); }
.legend--qf  { background: var(--round-qf);  box-shadow: 0 0 8px rgba(167, 139, 250, 0.5); }
.legend--sf  { background: var(--round-sf);  box-shadow: 0 0 8px rgba(251, 146, 60, 0.5); }
.legend--final { background: var(--round-final); box-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }

.wall-chart {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  align-items: start;
}

.wall-chart__wing {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}

.wall-chart__groups {
  flex: 0 0 auto;
  width: min(100%, 10.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wall-chart__groups-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wall-chart__knockout {
  flex: 1;
  display: flex;
  gap: 0.25rem;
  min-width: 0;
  overflow-x: auto;
  align-items: stretch;
}

.wall-chart__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.02));
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.12);
  min-width: 9.5rem;
  max-width: 12rem;
  position: sticky;
  top: 4rem;
  align-self: center;
  z-index: 2;
  isolation: isolate;
}

.wall-chart__center-rays {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
}

.wall-chart__center-rays::before,
.wall-chart__center-rays::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--round-sf), var(--round-final), var(--round-sf), transparent);
  opacity: 0.35;
}

.wall-chart__center-rays::before { left: -120%; transform: rotate(-6deg); }
.wall-chart__center-rays::after { right: -120%; transform: rotate(6deg); }

.wall-chart__final-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wall-chart__third-title {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Knockout columns */
.knock-col {
  flex: 1;
  min-width: 5.25rem;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.2rem;
}

.knock-col--r32 { --round: var(--round-r32); --round-bg: rgba(34, 211, 238, 0.06); }
.knock-col--r16 { --round: var(--round-r16); --round-bg: rgba(96, 165, 250, 0.06); }
.knock-col--qf  { --round: var(--round-qf);  --round-bg: rgba(167, 139, 250, 0.06); }
.knock-col--sf  { --round: var(--round-sf);  --round-bg: rgba(251, 146, 60, 0.07); }

.knock-col--left {
  background: linear-gradient(90deg, transparent, var(--round-bg));
  border-right: 2px solid var(--round);
}

.knock-col--right {
  background: linear-gradient(270deg, transparent, var(--round-bg));
  border-left: 2px solid var(--round);
}

.knock-col__title {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--round);
  text-align: center;
  margin: 0 0 0.35rem;
  padding: 0.3rem 0.35rem;
  border-radius: 4px;
  white-space: nowrap;
}

.knock-col__matches {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 0.3rem;
  min-height: 12rem;
  padding: 0 0.1rem;
}

.knock-col[data-matches="8"] .knock-col__matches { min-height: 22rem; }
.knock-col[data-matches="4"] .knock-col__matches { min-height: 14rem; }
.knock-col[data-matches="2"] .knock-col__matches { min-height: 8rem; }
.knock-col[data-matches="1"] .knock-col__matches { min-height: 4rem; justify-content: center; }

.knock-bridge {
  flex: 0 0 1rem;
  align-self: stretch;
  display: flex;
}

.knock-bridge__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.knock-bridge__path {
  stroke-width: 1.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.knock-bridge[data-from="r32"] .knock-bridge__path { stroke: var(--round-r32); stroke-opacity: 0.7; }
.knock-bridge[data-from="r16"] .knock-bridge__path { stroke: var(--round-r16); stroke-opacity: 0.75; }
.knock-bridge[data-from="qf"]  .knock-bridge__path { stroke: var(--round-qf);  stroke-opacity: 0.8; }
.knock-bridge[data-from="sf"]  .knock-bridge__path { stroke: var(--round-sf);  stroke-opacity: 0.9; stroke-width: 2; }

.ko-match {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ko-match[data-stage="r32"] { border-color: rgba(34, 211, 238, 0.35); }
.ko-match[data-stage="r16"] { border-color: rgba(96, 165, 250, 0.35); }
.ko-match[data-stage="qf"]  { border-color: rgba(167, 139, 250, 0.35); }
.ko-match[data-stage="sf"]  { border-color: rgba(251, 146, 60, 0.4); }
.ko-match[data-stage="final"] { border-color: rgba(251, 191, 36, 0.5); }
.ko-match[data-stage="third"] { border-color: rgba(148, 163, 184, 0.35); }

.ko-match--mini { font-size: 0.62rem; }
.ko-match--done { opacity: 0.85; }

.ko-match--live {
  border-color: var(--live) !important;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.2);
}

.ko-match--final {
  width: 100%;
}

.ko-match__id {
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 0.48rem;
  color: var(--text-dim);
}

.ko-match__team {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.4rem;
  border-bottom: 1px solid var(--border);
}

.ko-match__team:last-child { border-bottom: none; }

.ko-match__team img {
  width: 14px;
  height: 10px;
  border-radius: 1px;
  flex-shrink: 0;
}

.ko-match__team .label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ko-match__team .score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ko-match__team.winner {
  background: var(--qualify);
}

.ko-match__team.tbd .label {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.58rem;
}

.knock-col--sf.knock-col--left .ko-match::after,
.knock-col--sf.knock-col--right .ko-match::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.45rem;
  height: 2px;
  background: var(--round-sf);
  opacity: 0.8;
}

.knock-col--sf.knock-col--left .ko-match::after { right: -0.5rem; }
.knock-col--sf.knock-col--right .ko-match::after { left: -0.5rem; }

#panel-knockout {
  overflow-x: auto;
}

@media (max-width: 1100px) {
  .wall-chart {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .wall-chart__center {
    order: -1;
    position: static;
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .wall-chart__final-title,
  .wall-chart__third-title {
    width: 100%;
    text-align: center;
  }

  .wall-chart__wing { flex-direction: column; }

  .wall-chart__groups {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  }
}

@media (min-width: 1101px) {
  .wall-chart { min-width: 900px; }
}

@media (max-width: 600px) {
  .wall-chart__groups { grid-template-columns: repeat(2, 1fr); }
  .knock-col { min-width: 4.5rem; }
  .wall-chart__center { flex-direction: column; }
}

/* ── Fixtures ── */
.fixtures-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 1rem;
}

.fixture-day {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.fixture-day__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.fixture-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto 1fr;
  gap: 0.4rem 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  border-radius: 6px;
}

.fixture-row:last-child { border-bottom: none; }

.fixture-row:hover {
  background: var(--surface);
}

.fixture-row--live {
  background: rgba(244, 63, 94, 0.06);
}

.fixture-row .time {
  color: var(--text-dim);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.fixture-row .team {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  font-weight: 500;
}

.fixture-row .team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-row .team--away {
  justify-content: flex-end;
  text-align: right;
}

.fixture-row img {
  width: 16px;
  height: 11px;
  border-radius: 2px;
}

.fixture-row .result {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.fixture-row__stage {
  grid-column: 1 / -1;
  font-size: 0.62rem;
  color: var(--text-dim);
}

.fixture-row__watch {
  grid-column: 1 / -1;
}

/* ── Results ── */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.results-filter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.results-filter__label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

.results-filter select {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  min-width: 180px;
  transition: border-color 0.15s, background 0.15s;
}

.results-filter select:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.results-filter select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.results-filter select option {
  background: var(--surface-solid);
  color: var(--text);
}

.results-toolbar__count {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.results-day {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
}

.results-day__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.results-day__count {
  font-family: var(--font-body, inherit);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: none;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.75rem;
}

@media (min-width: 1400px) {
  .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 640px) {
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .results-filter select {
    width: 100%;
  }
}

.result-row {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: border-color 0.15s;
}

.result-row:hover {
  border-color: var(--border-strong);
}

.result-row__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.result-row__match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
}

.result-row__team {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  min-width: 0;
}

.result-row__team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-row__team--away {
  justify-content: flex-end;
  text-align: right;
}

.result-row__team.winner {
  color: var(--win);
  font-weight: 700;
}

.result-row__team img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
}

.result-row__score {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ── Footer ── */
.footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ── News tape ── */
.news-tape {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tape-h);
  background: rgba(7, 11, 18, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.news-tape__label {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 0 1rem;
  border-right: 1px solid var(--border);
}

.news-tape__badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--live);
}

.news-tape__source {
  font-size: 0.6rem;
  color: var(--text-dim);
}

.news-tape__viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.news-tape__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: tape-scroll 45s linear infinite;
  padding-left: 100%;
}

.news-tape__track:hover {
  animation-play-state: paused;
}

@keyframes tape-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.news-tape__item {
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0 0.5rem;
}

a.news-tape__item:hover {
  color: var(--text);
}

.news-tape__sep {
  color: var(--text-dim);
  padding: 0 1.5rem;
  font-size: 0.5rem;
}

/* ── Error ── */
.error-banner {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .banner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .banner__brand {
    justify-content: center;
  }

  .banner__status {
    justify-content: center;
  }

  .tabs {
    width: 100%;
    border-radius: var(--radius);
    justify-content: center;
  }

  .tab {
    flex: 1 1 auto;
    padding: 0.5rem 0.6rem;
    font-size: 0.72rem;
  }

  .ticker {
    grid-template-columns: 1fr;
  }

  .fixture-row {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto auto;
  }

  .fixture-row .team--away,
  .fixture-row .result {
    grid-column: 2;
    justify-content: flex-start;
    text-align: left;
  }

  .result-row__match {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .result-row__team,
  .result-row__team--away {
    justify-content: center;
    text-align: center;
  }

  .result-row__score {
    order: -1;
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-tape__track,
  .live-dot--on,
  .badge--live {
    animation: none;
  }
}