@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg-primary:    #0b1220;
  --bg-card:       #131f35;
  --bg-card-hover: #1a2a47;
  --bg-ad:         #0d1829;
  --live:          #00e676;
  --live-dim:      rgba(0, 230, 118, 0.12);
  --upcoming:      #ffc107;
  --upcoming-dim:  rgba(255, 193, 7, 0.12);
  --finished:      #546e7a;
  --accent:        #1565c0;
  --gold:          #ffd600;
  --text:          #ffffff;
  --text-muted:    #8b9ab5;
  --border:        #1e2d45;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0,0,0,0.35);
  --transition:    0.2s ease;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.site-logo .logo-icon { font-size: 26px; line-height: 1; }
.logo-live {
  background: var(--live);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 1.5px;
  animation: pulse-bg 2s ease-in-out infinite;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}
.nav-item:hover { background: var(--bg-card); color: var(--text); }

.live-count-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--live-dim);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--live);
  white-space: nowrap;
}

/* ─── Pulsing dot ────────────────────────────────────────────────────────── */
.live-dot {
  width: 7px;
  height: 7px;
  background: var(--live);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero-section {
  padding: 52px 24px 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(21, 101, 192, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.tournament-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 22px;
}

.hero-section h1 {
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.hero-section h1 .highlight { color: var(--live); }

.hero-section .hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 0;
  line-height: 1.75;
}

/* ─── Ad Units ───────────────────────────────────────────────────────────── */
.ad-unit {
  background: var(--bg-ad);
  border: 1px dashed #1e3a5f;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  min-height: 90px;
}
.ad-unit::before {
  content: 'Advertisement';
  position: absolute;
  top: 5px;
  left: 10px;
  font-size: 9px;
  color: #2e4a66;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  pointer-events: none;
  font-weight: 500;
}
.ad-unit--leaderboard { width: 100%; min-height: 90px; }
.ad-unit--sidebar     { width: 100%; min-height: 400px; }
.ad-unit--rectangle   { width: 100%; min-height: 250px; }

/* ─── Page Layout ────────────────────────────────────────────────────────── */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.ad-wrap { padding: 20px 0 4px; }

.content-grid {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 24px;
  padding: 28px 0;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ─── Section Headers ────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.section-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.badge--live     { background: var(--live-dim);     color: var(--live);     border: 1px solid rgba(0,230,118,0.3); }
.badge--upcoming { background: var(--upcoming-dim); color: var(--upcoming); border: 1px solid rgba(255,193,7,0.3); }
.badge--finished { background: rgba(84,110,122,0.1); color: var(--finished); border: 1px solid rgba(84,110,122,0.3); }
.badge--stream   { background: rgba(21,101,192,0.15); color: #64b5f6; border: 1px solid rgba(21,101,192,0.3); }

/* ─── Match Grid ─────────────────────────────────────────────────────────── */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ─── Match Card ─────────────────────────────────────────────────────────── */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.match-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.match-card:active { transform: translateY(0); }

.match-card--live {
  border-color: rgba(0,230,118,0.25);
  box-shadow: 0 0 24px rgba(0,230,118,0.06);
}
.match-card--live:hover {
  border-color: var(--live);
  box-shadow: 0 0 32px rgba(0,230,118,0.14);
}
.match-card--live::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--live), rgba(0,230,118,0.3), transparent);
}

.match-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.match-card__stage {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.match-status--live     { color: var(--live); }
.match-status--upcoming { color: var(--upcoming); }
.match-status--finished { color: var(--finished); }
.match-status--live .status-dot {
  width: 6px; height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.match-card__teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.team__flag { font-size: 38px; line-height: 1; }
.team__name {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.score-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 88px;
  padding: 0 8px;
}
.score {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}
.score--live     { color: var(--live); }
.score--finished { color: var(--text-muted); }
.score--upcoming {
  font-size: 22px;
  color: var(--text-muted);
  letter-spacing: 3px;
  font-weight: 700;
}
.score-minute {
  font-size: 13px;
  color: var(--live);
  font-weight: 700;
}

.match-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.watch-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
}
.watch-btn--live {
  background: var(--live-dim);
  color: var(--live);
  border-color: rgba(0,230,118,0.3);
}
.watch-btn--upcoming {
  background: var(--upcoming-dim);
  color: var(--upcoming);
  border-color: rgba(255,193,7,0.3);
}
.watch-btn--finished {
  background: rgba(84,110,122,0.1);
  color: var(--finished);
  border-color: rgba(84,110,122,0.2);
}
.match-card--live:hover     .watch-btn { background: var(--live);     color: #000; border-color: var(--live); }
.match-card--upcoming:hover .watch-btn { background: var(--upcoming); color: #000; border-color: var(--upcoming); }

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ─── Toast ──────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: #1a2d4a;
  border: 1px solid #2a4060;
  color: var(--text);
  padding: 12px 26px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  white-space: nowrap;
  animation: toast-in 0.3s ease forwards;
}
.toast.toast--out { animation: toast-out 0.3s ease forwards; }
.toast--info    { border-color: rgba(0,230,118,0.4); }
.toast--warning { border-color: rgba(255,193,7,0.4); }

/* ─── SEO Content Section ────────────────────────────────────────────────── */
.seo-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 0 8px;
}
.seo-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.seo-section p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 15px;
}
.seo-section strong { color: var(--text); }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 52px 24px 32px;
  margin-top: 56px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.footer-section h3 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-section ul { list-style: none; }
.footer-section li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  cursor: pointer;
  transition: color var(--transition);
}
.footer-section li:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-disclaimer {
  font-size: 12px;
  color: #3a5070;
  max-width: 520px;
  text-align: right;
  line-height: 1.6;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  padding: 11px 24px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { margin: 0 8px; color: #2e4a66; }

/* ─── Match Hero (detail page) ───────────────────────────────────────────── */
.match-hero {
  padding: 44px 24px 36px;
  background: linear-gradient(135deg, rgba(21,101,192,0.07) 0%, rgba(11,18,32,0) 60%);
  border-bottom: 1px solid var(--border);
}
.match-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.match-hero__stage {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 600;
}
.match-hero__status { margin-bottom: 32px; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  background: var(--live-dim);
  border: 1px solid rgba(0,230,118,0.4);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 800;
  color: var(--live);
  letter-spacing: 1.5px;
}

.match-hero__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.hero-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-team__flag  { font-size: 64px; line-height: 1; }
.hero-team__name  { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.hero-team__code  { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: 2px; }

.hero-score-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-score {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -4px;
  color: var(--live);
  line-height: 1;
}
.hero-score--upcoming {
  font-size: 44px;
  color: var(--text-muted);
  letter-spacing: 5px;
  font-weight: 700;
}
.hero-score--finished { color: var(--text-muted); }
.hero-minute { font-size: 18px; font-weight: 800; color: var(--live); }
.hero-venue  { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ─── Events Timeline ────────────────────────────────────────────────────── */
.events-timeline { display: flex; flex-direction: column; gap: 10px; }

.event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.event-item:hover { background: var(--bg-card-hover); }
.event-item--away { flex-direction: row-reverse; }

.event-minute {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}
.event-icon { font-size: 20px; flex-shrink: 0; }
.event-detail { flex: 1; min-width: 0; }
.event-player { font-size: 14px; font-weight: 600; }
.event-assist { font-size: 12px; color: var(--text-muted); }
.event-team-name {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  text-align: right;
}
.event-item--away .event-detail { text-align: right; }
.event-item--away .event-team-name { text-align: left; }

/* ─── Streaming Cards ────────────────────────────────────────────────────── */
.streaming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.streaming-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.streaming-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.streaming-card__icon { font-size: 34px; margin-bottom: 10px; line-height: 1; }
.streaming-card__name { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.streaming-card__desc { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }
.streaming-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 16px;
}
.tag {
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}
.tag--region { background: rgba(21,101,192,0.2); border: 1px solid rgba(21,101,192,0.3); color: #64b5f6; }
.tag--free   { background: var(--live-dim);      border: 1px solid rgba(0,230,118,0.3);  color: var(--live); }
.tag--global { background: rgba(255,214,0,0.1);  border: 1px solid rgba(255,214,0,0.3);  color: var(--gold); }

.streaming-btn {
  width: 100%;
  padding: 10px 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.3px;
}
.streaming-btn:hover { background: #1976d2; }
.streaming-btn:active { transform: scale(0.98); }
.streaming-card--free .streaming-btn { background: #00897b; }
.streaming-card--free .streaming-btn:hover { background: #00796b; }

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.4); }
}
@keyframes pulse-bg {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

/* ─── Legal / About pages ────────────────────────────────────────────────── */
.legal-article {
  max-width: 780px;
  margin: 48px auto 64px;
  padding: 0 8px;
}
.legal-article h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.legal-article h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.legal-article h3 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.legal-article p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 15px;
}
.legal-article p strong { color: var(--text); }
.legal-article ul {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  padding-left: 22px;
  margin-bottom: 14px;
}
.legal-article ul li { margin-bottom: 6px; }
.legal-article a { color: #64b5f6; }
.legal-article a:hover { text-decoration: underline; }
.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.contact-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0 8px;
}
.contact-block p { margin-bottom: 8px; }
.contact-block p:last-child { margin-bottom: 0; }

/* ─── Groups page: compact hero ─────────────────────────────────────────── */
.hero-section--compact { padding: 32px 24px 24px; }
.hero-section--compact h1 { font-size: clamp(24px, 4vw, 40px); }

/* ─── Tab bar ────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 8px;
  padding: 20px 0 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.tab-btn {
  padding: 10px 22px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  border-radius: 0;
  transition: color var(--transition), border-color var(--transition);
  letter-spacing: 0.2px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn--active {
  color: var(--text);
  border-bottom-color: var(--live);
}

/* ─── Qualification legend ───────────────────────────────────────────────── */
.qualify-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.legend-item::before {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-item--qualify::before { background: rgba(0, 230, 118, 0.25); border: 1px solid rgba(0,230,118,0.5); }
.legend-item--third::before   { background: rgba(255, 193, 7, 0.2);  border: 1px solid rgba(255,193,7,0.4); }

/* ─── Groups grid ────────────────────────────────────────────────────────── */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 20px;
  padding-bottom: 48px;
}

/* ─── Group card ─────────────────────────────────────────────────────────── */
.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.group-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.group-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}
.group-progress {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Standings table ────────────────────────────────────────────────────── */
.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.standings-table thead tr {
  background: rgba(255,255,255,0.02);
}
.standings-table th {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.standings-table th.col-pos  { width: 32px; }
.standings-table th.col-team { text-align: left; padding-left: 16px; }
.standings-table td {
  padding: 10px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}
.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table td.col-pos  { color: var(--text-muted); font-size: 12px; }
.standings-table td.col-team { text-align: left; padding-left: 12px; }
.standings-table td.col-pts  { font-weight: 800; color: var(--text); }

.tbl-flag { font-size: 18px; vertical-align: middle; margin-right: 8px; }
.tbl-name { vertical-align: middle; font-weight: 600; font-size: 13px; }

.row--qualify { background: rgba(0, 230, 118, 0.04); }
.row--qualify:hover { background: rgba(0, 230, 118, 0.08); }
.row--third   { background: rgba(255, 193, 7, 0.04); }
.row--third:hover   { background: rgba(255, 193, 7, 0.08); }
.standings-table tbody tr { transition: background var(--transition); }
.standings-table tbody tr:hover { background: var(--bg-card-hover); }

.gd--pos { color: var(--live); }
.gd--neg { color: #ef5350; }

/* ─── Nav active state ───────────────────────────────────────────────────── */
.nav-item--active {
  background: var(--bg-card);
  color: var(--text);
}

/* ─── Bracket ────────────────────────────────────────────────────────────── */
.bracket-scroll {
  overflow-x: auto;
  padding-bottom: 32px;
  -webkit-overflow-scrolling: touch;
}
.bracket-inner {
  display: flex;
  gap: 0;
  min-width: 900px;
  padding: 16px 0 24px;
  align-items: flex-start;
}

.bracket-col {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.bracket-col--final { flex: 0 0 180px; }

.bracket-col__title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 12px;
  padding: 0 8px;
}

.bracket-col__matches {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
}

/* ─── Bracket match card ─────────────────────────────────────────────────── */
.bracket-match {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 140px;
}
.bracket-match:hover {
  border-color: rgba(100, 181, 246, 0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.bracket-match--live {
  border-color: rgba(0,230,118,0.3);
  box-shadow: 0 0 12px rgba(0,230,118,0.08);
}
.bracket-match--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  min-height: 70px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: default;
  font-style: italic;
  background: rgba(255,255,255,0.02);
}
.bracket-match--empty:hover { border-color: var(--border); box-shadow: none; }

.bm-date {
  font-size: 10px;
  color: var(--text-muted);
  padding: 5px 8px 3px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.bm-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.bm-team {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background var(--transition);
}
.bm-team:last-child { border-bottom: none; }
.bm-team--winner { background: rgba(0,230,118,0.06); }
.bm-team--winner .bm-name { color: var(--live); }
.bm-team--winner .bm-score { color: var(--live); font-weight: 800; }

.bm-flag  { font-size: 16px; line-height: 1; flex-shrink: 0; }
.bm-name  { font-size: 12px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-score { font-size: 13px; font-weight: 700; color: var(--text-muted); flex-shrink: 0; min-width: 16px; text-align: right; }
.bm-tbd   { font-size: 11px; color: var(--text-muted); font-style: italic; font-weight: 400; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .content-grid { grid-template-columns: 160px 1fr 160px; }
  .groups-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar .ad-unit--sidebar { min-height: 250px; flex: 1; min-width: 200px; }
  .match-hero__teams { gap: 12px; }
  .hero-team__flag { font-size: 48px; }
  .hero-team__name { font-size: 20px; }
  .hero-score { font-size: 56px; }
  .groups-grid { grid-template-columns: 1fr; }
  .bracket-inner { min-width: 700px; }
  .bracket-col { min-width: 130px; }
}
@media (max-width: 600px) {
  .header-nav .nav-item { font-size: 13px; padding: 7px 10px; }
  .hero-section { padding: 36px 16px 28px; }
  .matches-grid { grid-template-columns: 1fr; }
  .streaming-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; }
  .footer-disclaimer { text-align: left; }
  .hero-score { font-size: 48px; }
  .hero-team__flag { font-size: 40px; }
  .hero-team__name { font-size: 18px; }
  .page-container { padding: 0 16px; }
  .toast { font-size: 13px; padding: 10px 20px; white-space: normal; max-width: 90vw; text-align: center; }
  .tab-btn { padding: 9px 14px; font-size: 13px; }
  .standings-table { font-size: 12px; }
  .standings-table th, .standings-table td { padding: 8px 6px; }
  .tbl-flag { font-size: 15px; margin-right: 5px; }
  .bracket-col { min-width: 120px; }
}
