:root {
  --bg-primary: #080f1e;
  --bg-secondary: #0d1829;
  --bg-tertiary: #111f35;
  --accent-green: #00ff87;
  --accent-green-dim: #00cc6a;
  --accent-red: #ff4757;
  --accent-yellow: #ffd700;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #4a6080;
  --border: #1a2f4a;
  --live-red: #ff4757;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 50px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
  --nav-height: 60px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-green); }

img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.nav-logo span { color: var(--accent-green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent-green); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Live ticker */
.ticker-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 36px;
}

.ticker-track {
  display: flex;
  gap: 32px;
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  padding: 8px 0;
  font-size: 13px;
}

.ticker-item { display: inline-flex; align-items: center; gap: 6px; }
.ticker-item.live { color: var(--live-red); }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero p { color: var(--text-muted); margin-bottom: 24px; }

.search-bar {
  max-width: 480px;
  margin: 0 auto 20px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.search-bar input:focus { border-color: var(--accent-green); }
.search-bar input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.search-results.open { display: block; }

.search-result-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background var(--transition);
}

.search-result-item:hover { background: var(--bg-tertiary); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-stats span { color: var(--accent-green); font-weight: 600; }

/* Section headers */
.section { margin-bottom: 40px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title.live-header { color: var(--accent-green); }

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.4);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: var(--live-red);
  text-transform: uppercase;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  animation: live-pulse 1.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* League card */
.league-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.league-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.league-logo { width: 22px; height: 22px; object-fit: contain; }
.league-flag { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; }

.league-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.league-country { font-size: 11px; color: var(--text-muted); }

/* Score card / match row */
.match-card {
  border-bottom: 1px solid var(--border);
}

.match-card:last-child { border-bottom: none; }

.match-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.match-row:hover { background: var(--bg-tertiary); }

.sync-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 16px;
}

.page-main { padding-top: 24px; padding-bottom: 40px; }

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

.match-team.home { justify-content: flex-end; }
.match-team.away { justify-content: flex-start; }

.match-team.home .team-name { text-align: right; }

.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.team-logo.lg { width: 48px; height: 48px; }
.team-logo.xl { width: 72px; height: 72px; }

.team-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-score {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  justify-content: center;
}

.score-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.score-sep { color: var(--text-muted); font-size: 14px; }

.match-status {
  width: 44px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.match-status.live { color: var(--live-red); }
.match-status.ft { color: var(--text-muted); }
.match-status.scheduled { color: var(--text-secondary); }

.match-events-mini {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}

/* Goal flash */
.goal-flash {
  animation: goal-flash 0.6s ease;
}

@keyframes goal-flash {
  0% { transform: scale(1); color: var(--text-primary); }
  50% { transform: scale(1.15); color: var(--accent-green); text-shadow: 0 0 12px var(--accent-green); }
  100% { transform: scale(1); color: var(--text-primary); }
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius);
  padding: 12px 20px;
  box-shadow: 0 4px 24px rgba(0, 255, 135, 0.2);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  animation: toast-in 0.3s ease;
  max-width: 320px;
}

.toast.fade-out { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Quick league cards */
.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.league-link-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.league-link-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.league-link-card img { width: 40px; height: 40px; margin: 0 auto 8px; object-fit: contain; }
.league-link-card span { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* Article cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.article-card:hover {
  border-color: var(--accent-green-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.article-img {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-tertiary), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.article-body { padding: 16px; }
.article-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.4; }
.article-meta { font-size: 12px; color: var(--text-muted); }
.article-league { font-size: 11px; font-weight: 600; color: var(--accent-green); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 6px; }
.article-excerpt { font-size: 13px; color: var(--text-muted); margin: 8px 0; line-height: 1.55; }
.read-more-btn { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent-green); }

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent-green); border-bottom-color: var(--accent-green); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Match hero */
.match-hero {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.match-hero.live { border-color: rgba(0, 255, 135, 0.3); box-shadow: 0 4px 30px rgba(0, 255, 135, 0.1); }

.match-hero-league {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.match-hero-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.match-hero-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.match-hero-team h2 { font-size: 18px; font-weight: 700; color: var(--text-primary); }

.match-hero-score {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.match-hero-score.live { color: var(--accent-green); }

.match-info {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

/* Timeline */
.timeline { position: relative; padding-left: 24px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
}

.timeline-item.home { flex-direction: row-reverse; text-align: right; }
.timeline-time { font-size: 12px; font-weight: 700; color: var(--accent-green); min-width: 36px; }
.timeline-icon { font-size: 16px; }
.timeline-text { font-size: 14px; color: var(--text-secondary); }

/* Stat bars */
.stat-row { margin-bottom: 16px; }
.stat-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.stat-values { font-weight: 600; color: var(--text-primary); }

.stat-bar-track {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.stat-bar-home {
  background: var(--accent-green);
  transition: width var(--transition);
}

.stat-bar-away {
  background: var(--accent-red);
  transition: width var(--transition);
}

/* Formation pitch */
.pitch-container { margin-bottom: 24px; }

.pitch-svg {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius);
}

.pitch-player {
  font-size: 9px;
  fill: var(--text-primary);
  font-weight: 600;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.data-table tbody tr:hover { background: var(--bg-tertiary); }

.data-table .pos { font-weight: 700; color: var(--text-muted); width: 32px; }
.data-table .team-cell { display: flex; align-items: center; gap: 8px; color: var(--text-primary); font-weight: 500; }
.data-table .pts { font-weight: 700; color: var(--accent-green); }

.data-table tr.cl { border-left: 3px solid #3b82f6; }
.data-table tr.relegation { border-left: 3px solid var(--accent-red); }

.form-dots { display: flex; gap: 3px; }
.form-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  font-size: 0;
}
.form-dot.W { background: var(--accent-green); }
.form-dot.D { background: var(--text-muted); }
.form-dot.L { background: var(--accent-red); }

/* Player cards */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.player-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}

.player-card:hover { border-color: var(--accent-green-dim); }

.player-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.player-info h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.player-info p { font-size: 12px; color: var(--text-muted); }

/* Filters */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(0, 255, 135, 0.08);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-row { height: 52px; margin-bottom: 8px; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 13px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Team page — SofaScore-style layout */
.team-page { padding-top: 24px; padding-bottom: 40px; }

.team-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.team-hero-info h1 {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-hero-info p { color: var(--text-muted); font-size: 14px; }

.team-tabs { margin-bottom: 20px; }

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

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

.team-sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.sidebar-card-title {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  background: var(--bg-tertiary);
}

.team-link-more {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  border-top: 1px solid var(--border);
}

.team-insight {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.featured-match-card {
  display: block;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.featured-match-card:hover { border-color: var(--accent-green-dim); color: inherit; }

.featured-match-card.is-live {
  border-color: rgba(255, 71, 87, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 71, 87, 0.1);
}

.featured-match-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.featured-match-date { margin-left: auto; }

.featured-match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
}

.featured-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  min-width: 0;
}

.featured-match-team span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.featured-match-team.away { order: 3; }

.featured-match-score {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.featured-match-score.live { color: var(--live-red); }

.featured-minute {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--live-red);
  margin-top: 4px;
}

.featured-match-foot {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.compact-fixtures { padding: 4px 0; }

.compact-fixture-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.compact-fixture-row:last-child { border-bottom: none; }
.compact-fixture-row:hover { background: var(--bg-tertiary); color: inherit; }

.compact-fixture-date {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.compact-fixture-teams { color: var(--text-primary); font-weight: 500; }

.compact-fixture-score {
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.compact-fixture-score.live { color: var(--live-red); }

.mini-standings { padding-bottom: 8px; }

.mini-standings-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
}

.mini-standings-head a {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-green);
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.mini-table th,
.mini-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mini-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
}

.mini-table tr.highlight {
  background: rgba(0, 255, 135, 0.08);
}

.mini-table tr.highlight td { color: var(--text-primary); font-weight: 600; }

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

.mini-team span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-cards.compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
}

.stat-cards.compact .stat-card { padding: 12px; }

.squad-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-green);
}

/* Error & empty states */
.error-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.error-icon { font-size: 32px; margin-bottom: 12px; }

.error-state p { color: var(--text-secondary); margin-bottom: 16px; }

.btn-retry {
  padding: 10px 24px;
  background: var(--accent-green);
  color: #080f1e;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-retry:hover { background: var(--accent-green-dim); }

/* Legal / static pages */
.legal-page { padding: 32px 16px 48px; max-width: 720px; }

.page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 36px);
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-header p { color: var(--text-muted); font-size: 14px; }

.legal-content { color: var(--text-secondary); line-height: 1.75; }

.legal-content h2 {
  color: var(--text-primary);
  font-size: 18px;
  margin: 28px 0 12px;
}

.legal-content ul { padding-left: 20px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--accent-green); }

.contact-cards { display: flex; flex-direction: column; gap: 16px; }

/* Article page */
.article-page { max-width: 720px; margin: 0 auto; padding: 32px 16px; }
.article-page h1 { font-size: 32px; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; line-height: 1.2; }
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.article-author { font-size: 14px; font-weight: 600; color: var(--accent-green); }
.article-page .article-meta { margin-bottom: 0; font-size: 13px; color: var(--text-muted); }
.article-content { font-size: 17px; line-height: 1.8; color: var(--text-secondary); }
.article-content p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.85;
  padding-right: 8px;
  font-weight: 800;
  color: var(--accent-green);
}
.article-content p { margin-bottom: 16px; }
.article-content h2 { color: var(--text-primary); margin: 24px 0 12px; }
.share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.share-buttons a {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
}
.share-buttons a:hover { border-color: var(--accent-green); color: var(--accent-green); }

/* World Cup */
.wc-banner {
  background: linear-gradient(135deg, #c8102e 0%, #003087 50%, #c8102e 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.wc-banner h2 { font-size: clamp(22px, 4vw, 32px); color: #fff; margin-bottom: 8px; }
.wc-banner p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 16px; }
.wc-countdown { font-size: 2rem; color: var(--accent-green); font-weight: 700; font-variant-numeric: tabular-nums; }
.wc-quick-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.wc-quick-links a {
  padding: 8px 16px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.wc-quick-links a:hover { background: rgba(0,255,135,0.3); color: #fff; }
.wc-hero {
  background: linear-gradient(180deg, rgba(200,16,46,0.15) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  margin-bottom: 24px;
}
.wc-hero-icon { font-size: 56px; margin-bottom: 12px; }
.wc-group-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-green);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.wc-group-card .group-header {
  padding: 10px 16px;
  background: var(--bg-tertiary);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}
.wc-group-card tr.qualified { background: rgba(0, 255, 135, 0.06); }
.wc-group-card tr.qualified td:first-child { box-shadow: inset 3px 0 0 var(--accent-green); }
.breaking-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-right: 6px;
}
.wc-grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wc-team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
}
.wc-team-card:hover { border-color: var(--accent-green); transform: translateY(-2px); }
.wc-team-card img { width: 48px; height: 48px; margin: 0 auto 8px; object-fit: contain; }
.wc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.wc-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.wc-info-card .val { font-size: 20px; font-weight: 800; color: var(--accent-green); }
.wc-info-card .lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* H2H badges */
.h2h-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
}

.h2h-badge {
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.h2h-badge .num { font-size: 24px; font-weight: 800; color: var(--text-primary); }
.h2h-badge .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.team-grid-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.team-grid-item:hover { border-color: var(--accent-green); }
.team-grid-item img { width: 40px; height: 40px; margin: 0 auto 8px; object-fit: contain; }
.team-grid-item span { font-size: 11px; color: var(--text-secondary); display: block; }

/* Player hero */
.player-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.player-hero-photo { width: 120px; height: 120px; border-radius: var(--radius); object-fit: cover; background: var(--bg-tertiary); }
.player-hero-info h1 { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.player-hero-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: var(--text-muted); }

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.stat-card .val { font-size: 28px; font-weight: 800; color: var(--accent-green); }
.stat-card .lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Mobile */
.transfer-card { margin-bottom: 8px; }
.transfer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--bg-tertiary);
}
.transfer-clubs { margin-top: 4px; }
.transfer-out { color: var(--accent-red); }
.transfer-in { color: var(--accent-green); }
.transfer-arrow { margin: 0 6px; color: var(--text-muted); }
.transfer-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .match-row {
    grid-template-columns: 1fr auto 1fr;
  }

  .match-status { grid-column: 1 / -1; text-align: center; margin-top: 4px; }

  .match-hero-teams { grid-template-columns: 1fr; gap: 12px; }
  .match-hero-score { order: -1; }

  .player-hero { flex-direction: column; text-align: center; }
  .player-hero-meta { justify-content: center; }

  .footer-inner { flex-direction: column; }

  .team-layout { grid-template-columns: 1fr; }
  .featured-match-body { grid-template-columns: 1fr; gap: 16px; }
  .featured-match-team.away { order: unset; }
  .featured-match-score { order: -1; }
}
