/* ============================================================
   match.css — Live Match Centre Styles
   ZAiLUM · England World Cup 2026 Hub — Phase 3
   ============================================================ */

/* ─── Match Header / Scoreboard ─────────────────────────────── */
.match-header {
  background: linear-gradient(160deg, #0A0E1A 0%, #0D1117 40%, #160508 100%);
  border-bottom: 1px solid var(--border);
  padding: 0 16px 20px;
  position: relative;
  overflow: hidden;
}

.match-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% -20%, rgba(200,16,46,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.match-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 16px;
  position: relative;
  z-index: 1;
}

.match-status-pill {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}
.match-status-pill.live {
  background: var(--eng-red);
  color: #fff;
  animation: pulseBg 2s ease-in-out infinite;
}
.match-status-pill.prematch {
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
}
.match-status-pill.fulltime {
  background: rgba(255,215,0,0.15);
  color: #FFD700;
  border: 1px solid rgba(255,215,0,0.3);
}

@keyframes pulseBg {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.match-competition {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.match-minute-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: var(--eng-red);
  letter-spacing: 0.06em;
}

/* ─── Scoreline ─────────────────────────────────────────────── */
.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  position: relative;
  z-index: 1;
}

.score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.score-team-flag {
  width: 56px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.score-team-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-align: center;
}

.score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.score-numbers {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.score-sep {
  color: var(--text-muted);
  font-size: 48px;
  line-height: 1;
  margin: 0 2px;
}

.score-home, .score-away {
  min-width: 52px;
  text-align: center;
}

.score-time {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─── Goal Scorers ─────────────────────────────────────────── */
.goal-scorers {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 0;
  position: relative;
  z-index: 1;
}

.goal-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.goal-list.home { align-items: flex-end; }
.goal-list.away { align-items: flex-start; }

.goal-item {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.goal-icon { font-size: 10px; }

/* ─── Tab Navigation ────────────────────────────────────────── */
.match-tabs {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: calc(var(--ticker-h) + var(--nav-h));
  z-index: 50;
}

.match-tabs::-webkit-scrollbar { display: none; }

.match-tab {
  flex: none;
  padding: 14px 18px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.match-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--eng-red);
}

.match-tab:hover {
  color: var(--text-secondary);
}

/* ─── Tab Panels ─────────────────────────────────────────────── */
.tab-panel {
  display: none;
  padding: 16px;
  animation: fadeUp 0.25s var(--ease-smooth);
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Match Info Card ────────────────────────────────────────── */
.match-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.match-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.match-info-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.match-info-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.match-info-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 80px;
  flex-shrink: 0;
}

.match-info-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── Momentum Bar ───────────────────────────────────────────── */
.momentum-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.momentum-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.momentum-bar-wrap {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.momentum-bar-home {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--eng-red), #e02040);
  border-radius: var(--r-full);
  transition: width 1s var(--ease-smooth);
}

.momentum-bar-away {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(270deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  border-radius: var(--r-full);
  transition: width 1s var(--ease-smooth);
}

.momentum-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.momentum-label-home { color: var(--eng-red); }
.momentum-label-away { color: var(--text-secondary); }

/* ─── Stats Grid ─────────────────────────────────────────────── */
.stats-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.stats-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.stat-row {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: var(--text-primary);
  text-align: center;
}

.stat-value.home { color: var(--eng-red); }

.stat-bar-wrap {
  height: 6px;
  display: flex;
  gap: 2px;
  overflow: hidden;
  border-radius: var(--r-full);
}

.stat-bar-home {
  background: var(--eng-red);
  border-radius: var(--r-full) 0 0 var(--r-full);
  transition: flex 1s var(--ease-smooth);
}

.stat-bar-away {
  background: rgba(255,255,255,0.2);
  border-radius: 0 var(--r-full) var(--r-full) 0;
  transition: flex 1s var(--ease-smooth);
}

.stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  grid-column: 1 / -1;
  margin-top: -8px;
  margin-bottom: 4px;
}

/* ─── Lineups ────────────────────────────────────────────────── */
.lineups-section {
  margin-bottom: 12px;
}

.lineup-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.lineup-tab-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lineup-tab-btn.active {
  background: var(--eng-red);
  border-color: var(--eng-red);
  color: #fff;
}

.pitch {
  background: linear-gradient(180deg,
    #1a3a1a 0%,
    #1e4020 12.5%,
    #1a3a1a 12.5%,
    #1a3a1a 25%,
    #1e4020 25%,
    #1e4020 37.5%,
    #1a3a1a 37.5%,
    #1a3a1a 50%,
    #1e4020 50%,
    #1e4020 62.5%,
    #1a3a1a 62.5%,
    #1a3a1a 75%,
    #1e4020 75%,
    #1e4020 87.5%,
    #1a3a1a 87.5%
  );
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 20px 16px;
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.pitch::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}

.pitch::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.pitch-formation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.pitch-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.player-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.player-dot:hover { transform: scale(1.1); }

.player-dot-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--eng-red), #9A0B22);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  color: #fff;
  position: relative;
}

.player-dot-circle.gk {
  background: linear-gradient(135deg, #FFD700, #CC9900);
}

.player-dot-circle.away-player {
  background: linear-gradient(135deg, #2a3a5a, #1a2a4a);
}

.player-dot-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.player-dot-number {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--bg-card);
  border-radius: 50%;
  font-family: 'Rajdhani', sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

/* ─── Subs bench ────────────────────────────────────────────── */
.bench-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-top: 12px;
}

.bench-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.bench-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bench-player {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.bench-player-num {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 16px;
}

/* ─── Timeline ───────────────────────────────────────────────── */
.timeline-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.timeline-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}

.timeline-item:hover { background: var(--bg-glass); }

.timeline-item.home { flex-direction: row; }
.timeline-item.away { flex-direction: row-reverse; }

.timeline-minute {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
}

.timeline-minute span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.timeline-icon.goal {
  background: rgba(200,16,46,0.2);
  border: 1px solid rgba(200,16,46,0.4);
}

.timeline-icon.yellow {
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.3);
}

.timeline-icon.red {
  background: rgba(200,16,46,0.15);
  border: 1px solid rgba(200,16,46,0.3);
}

.timeline-icon.sub {
  background: rgba(84,243,255,0.1);
  border: 1px solid rgba(84,243,255,0.25);
}

.timeline-text {
  flex: 1;
}

.timeline-player {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-detail {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.timeline-empty {
  padding: 24px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── Player Ratings ─────────────────────────────────────────── */
.ratings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.ratings-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ratings-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.ratings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s;
}

.rating-item:hover { border-color: rgba(200,16,46,0.3); }

.rating-pos {
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  width: 28px;
  text-align: center;
  text-transform: uppercase;
}

.rating-name {
  flex: 1;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.rating-stars {
  display: flex;
  gap: 3px;
}

.rating-star {
  font-size: 14px;
  opacity: 0.25;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  user-select: none;
}

.rating-star.filled {
  opacity: 1;
}

.rating-star:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.rating-score {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--eng-red);
  min-width: 28px;
  text-align: center;
}

.rating-score.high { color: var(--eng-gold, #FFD700); }
.rating-score.perfect { color: #00e676; }

.rating-votes {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

/* ─── MOTM Voting ────────────────────────────────────────────── */
.motm-section {
  background: linear-gradient(135deg, #0D1117 0%, #160508 100%);
  border: 1px solid rgba(200,16,46,0.25);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.motm-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.motm-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.motm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.motm-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.motm-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(200,16,46,0.3);
  transform: translateY(-2px);
}

.motm-card.voted {
  background: rgba(200,16,46,0.15);
  border-color: var(--eng-red);
}

.motm-avatar {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.motm-player-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}

.motm-vote-pct {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--eng-red);
}

/* ─── Live Poll ───────────────────────────────────────────────── */
.live-poll-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.live-poll-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.live-poll-badge {
  background: var(--eng-red);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}

.live-poll-question {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  flex: 1;
}

.live-poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-poll-option {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.live-poll-option:hover { border-color: rgba(200,16,46,0.3); }

.live-poll-option.selected {
  border-color: var(--eng-red);
}

.live-poll-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(200,16,46,0.12);
  border-radius: var(--r-md) 0 0 var(--r-md);
  transition: width 0.8s var(--ease-smooth);
  pointer-events: none;
}

.live-poll-option-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-poll-pct {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: var(--eng-red);
}

/* ─── Match Prediction Prompt ────────────────────────────────── */
.match-predict-prompt {
  background: linear-gradient(135deg, #0D1117 0%, #160508 100%);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  margin-bottom: 12px;
  text-align: center;
}

.match-predict-prompt h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.match-predict-prompt p {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.predict-go-btn {
  display: inline-block;
  background: var(--eng-red);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  padding: 12px 28px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.predict-go-btn:hover {
  background: #e02040;
  transform: translateY(-1px);
}

/* ─── Match Countdown (pre-match) ────────────────────────────── */
.match-countdown-section {
  text-align: center;
  padding: 24px 16px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
}

.countdown-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.countdown-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--text-primary);
  line-height: 1;
}

.countdown-unit {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.countdown-sep {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--text-muted);
  line-height: 1;
  margin-top: 0;
}

/* ─── Shot Map ────────────────────────────────────────────────── */
.shot-map-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.shot-map-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.shot-map-pitch {
  position: relative;
  background: linear-gradient(180deg, #1a3a1a, #2a5030);
  border-radius: var(--r-md);
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 10px;
}

.shot-map-pitch::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40%;
  height: 25%;
  border: 1px solid rgba(255,255,255,0.15);
  border-bottom: none;
}

.shot-map-pitch::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 20%;
  height: 12%;
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: none;
}

.shot-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.shot-dot.goal {
  background: #00e676;
  box-shadow: 0 0 8px rgba(0,230,118,0.6);
}

.shot-dot.on-target {
  background: var(--eng-red);
  box-shadow: 0 0 8px rgba(200,16,46,0.6);
}

.shot-dot.off-target {
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.5);
}

.shot-map-legend {
  display: flex;
  gap: 14px;
}

.shot-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

.shot-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ─── xG Display ─────────────────────────────────────────────── */
.xg-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.xg-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.xg-team {
  flex: 1;
  text-align: center;
}

.xg-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  line-height: 1;
  color: var(--text-primary);
}

.xg-value.eng { color: var(--eng-red); }

.xg-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.xg-divider {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--text-muted);
}

/* ─── Upcoming Fixtures on Match page ────────────────────────── */
.next-matches-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 12px;
}

.next-matches-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.next-match-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

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

.next-match-flags {
  display: flex;
  align-items: center;
  gap: -4px;
}

.next-match-flag {
  width: 28px;
  height: 21px;
  border-radius: 3px;
  object-fit: cover;
}

.next-match-flag:last-child { margin-left: -8px; }

.next-match-info { flex: 1; }

.next-match-teams {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.next-match-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.next-match-arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── Bottom tab bar active state for Match Centre ───────────── */
.tab-bar .tab-btn[data-tab="match"].active .tab-icon svg { stroke: var(--eng-red); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (min-width: 480px) {
  .scoreline { gap: 20px; }
  .score-numbers { font-size: 72px; }
  .motm-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .match-header { padding: 0 24px 24px; }
  .tab-panel { padding: 20px 24px; }
  .stats-section, .timeline-section, .ratings-section {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}
