/* ==========================================================================
   Broadcast Match Centre Styles — Expat World Cup
   ========================================================================== */

/* Match Centre Hero Banner */
.page-hero-matches {
  position: relative;
  background: linear-gradient(135deg, #030a1c 0%, var(--color-navy) 50%, #002b66 100%);
  border-bottom: 2px solid var(--color-emerald);
  padding: calc(var(--header-h) + 5.5rem) 0 4rem;
  overflow: hidden;
}

.page-hero-matches .crumbs,
.page-hero-matches .crumbs a,
.page-hero-matches .crumbs a:visited {
  color: var(--color-yellow);
  text-decoration: none;
}

.page-hero-matches .crumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-hero-matches .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-emerald);
  color: #ffffff;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.35);
}

.page-hero-matches .hero-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.page-hero-matches h1 {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.05;
  color: #ffffff;
  margin: 0 0 12px;
}

.page-hero-matches .lede {
  color: rgba(248, 250, 252, 0.88);
  max-width: 650px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Match Overview Metrics Bar */
.match-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.match-metric-pill {
  background: rgba(7, 23, 57, 0.7);
  border: 1px solid rgba(0, 168, 107, 0.3);
  padding: 12px 18px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.match-metric-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 168, 107, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.match-metric-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-yellow);
}

.match-metric-pill strong {
  display: block;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-yellow);
  line-height: 1;
  margin-bottom: 2px;
}

.match-metric-pill span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Match Centre Toolbar & Status Filters */
.matches-toolbar {
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(7, 23, 57, 0.08);
  border: 1px solid rgba(0, 87, 217, 0.1);
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.match-status-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.match-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.match-tab-btn svg {
  width: 14px;
  height: 14px;
  color: #64748b;
  transition: color 0.2s;
}

.match-tab-btn:hover {
  background: #e2e8f0;
  color: var(--color-royal);
}

.match-tab-btn.is-active {
  background: var(--color-emerald);
  color: #ffffff;
  border-color: var(--color-emerald);
  box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.match-tab-btn.is-active svg {
  color: var(--color-yellow);
}

/* Radar pulse for live tab */
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: radarPulse 1.6s infinite ease-out;
}

@keyframes radarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ==========================================================================
   Broadcast Match Scorecard Cards
   ========================================================================== */
.matches-card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 3rem;
}

.broadcast-match-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(7, 23, 57, 0.06);
  border: 1px solid rgba(0, 87, 217, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.broadcast-match-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 87, 217, 0.12);
  border-color: var(--color-royal);
}

/* Special Highlight for Live Match */
.broadcast-match-card.is-live-match {
  border-left: 4px solid #ef4444;
}

/* Header bar on each card */
.match-card-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 12px 20px;
  border-bottom: 1px solid #edf2f7;
  flex-wrap: wrap;
  gap: 10px;
}

.match-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.badge-live {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.badge-final {
  background: #eff6ff;
  color: var(--color-royal);
  border: 1px solid #bfdbfe;
}

.badge-upcoming {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.match-venue-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #475569;
}

.match-venue-tag svg {
  width: 14px;
  height: 14px;
  color: var(--color-emerald);
}

/* Scoreboard Main Stage */
.match-scoreboard-stage {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.team-score-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-score-side.is-team2 {
  flex-direction: row-reverse;
  text-align: right;
}

.team-score-crest {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--crest-bg, #00A86B);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.team-score-info {
  display: flex;
  flex-direction: column;
}

.team-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.team-score-side.is-team2 .team-name-row {
  justify-content: flex-end;
}

.team-name-row strong {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  color: var(--color-royal);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.team-score-runs {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-royal);
  line-height: 1;
}

.team-score-runs.is-winner,
.total-score.is-winner {
  color: var(--color-emerald) !important;
}

.team-score-overs {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: normal;
  margin-left: 6px;
}

/* Center VS & Equations */
.match-vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.vs-badge {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-royal);
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0, 87, 217, 0.25);
}

.match-timing {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Bottom Match Banner & Actions */
.match-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fdfdfd;
  padding: 12px 20px;
  border-top: 1px solid #edf2f7;
  flex-wrap: wrap;
  gap: 12px;
}

.match-equation-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.match-equation-text svg {
  width: 16px;
  height: 16px;
  color: var(--color-emerald);
  flex-shrink: 0;
}

.match-card-actions {
  display: flex;
  gap: 10px;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-card-action.btn-scorecard {
  background: var(--color-royal);
  color: #ffffff;
  border: 1px solid var(--color-royal);
}

.btn-card-action.btn-scorecard:hover {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: #ffffff;
}

.btn-card-action.btn-scorecard svg {
  width: 14px;
  height: 14px;
  color: var(--color-yellow);
}

.btn-card-action.btn-scorecard:hover svg {
  color: #ffffff;
}

/* ==========================================================================
   Full Scorecard Component (Exhibition Dubai vs Qatar)
   ========================================================================== */
.scorecard-broadcast-container {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(7, 23, 57, 0.08);
  border: 1px solid rgba(0, 87, 217, 0.12);
  overflow: hidden;
  margin-top: 1.5rem;
}

.scorecard-banner-header {
  background: linear-gradient(135deg, var(--color-navy) 0%, #00388d 100%);
  color: #ffffff;
  padding: 24px;
  border-bottom: 3px solid var(--color-emerald);
}

.scorecard-banner-header .crumbs-tag {
  color: var(--color-yellow);
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.scorecard-banner-header h2 {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.scorecard-banner-header .meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  flex-wrap: wrap;
}

.scorecard-banner-header .meta-bar svg {
  width: 15px;
  height: 15px;
  color: var(--color-yellow);
}

/* Innings Switcher Tabs */
.innings-tab-nav {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.innings-tab-nav button {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.innings-tab-nav button:hover {
  color: var(--color-royal);
  background: #e2e8f0;
}

.innings-tab-nav button.is-active {
  color: var(--color-royal);
  border-bottom-color: var(--color-emerald);
  background: #ffffff;
}

/* Innings Scorecard Table Layout */
.innings-content-panel {
  padding: 24px;
}

.innings-head-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.innings-head-summary h3 {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.4rem;
  color: var(--color-royal);
  text-transform: uppercase;
  margin: 0;
}

.innings-head-summary .total-score {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-royal);
}

/* Table Design */
.score-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-bottom: 24px;
}

.score-table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.score-table-wrap th {
  background: #f8fafc;
  font-family: "Barlow Condensed", "Oswald", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #475569;
  padding: 10px 14px;
  border-bottom: 2px solid var(--color-emerald);
  text-align: left;
}

.score-table-wrap th.num,
.score-table-wrap td.num {
  text-align: right;
}

.score-table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.score-table-wrap tr:hover td {
  background: #f1f5f9;
}

.score-table-wrap td.batter-name {
  font-weight: 600;
  color: var(--color-royal);
}

.score-table-wrap td.batter-name a,
.score-table-wrap td.batter-name a:visited {
  color: var(--color-royal);
  text-decoration: none;
}

.score-table-wrap td.batter-name a:hover {
  color: var(--color-emerald);
  text-decoration: underline;
}

.score-table-wrap td.out-mode {
  color: #64748b;
  font-size: 0.88rem;
}

/* Fall of Wickets Timeline */
.fow-timeline-box {
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 24px;
  border-left: 3px solid var(--color-emerald);
}

.fow-timeline-box strong {
  color: var(--color-royal);
}

/* Player of the Match Spotlight */
.motm-spotlight {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 20px;
}

.motm-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-gold);
  flex-shrink: 0;
}

.motm-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motm-info strong {
  display: block;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.25rem;
  color: var(--color-royal);
  text-transform: uppercase;
}

.motm-info p {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: #64748b;
}

.motm-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-gold);
  color: #071739;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}

.motm-badge svg {
  width: 14px;
  height: 14px;
}

/* Responsive */
@media (max-width: 850px) {
  .match-overview-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .match-scoreboard-stage {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .team-score-side.is-team2 {
    flex-direction: row;
    text-align: left;
  }
  .team-score-side.is-team2 .team-name-row {
    justify-content: flex-start;
  }
  .motm-spotlight {
    flex-direction: column;
    text-align: center;
  }
  .motm-badge {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .match-overview-metrics {
    grid-template-columns: 1fr;
  }
  .innings-content-panel {
    padding: 16px 12px;
  }
  .innings-head-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .innings-tab-nav button {
    padding: 10px 14px;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .match-scoreboard-stage {
    padding: 16px 12px;
  }
  .match-card-topbar {
    padding: 10px 12px;
  }
}
