/* ==========================================================================
   Broadcast Tournament Statistics Styles — Expat World Cup
   ========================================================================== */

.page-hero-stats {
  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-stats .crumbs {
  color: rgba(244, 241, 234, 0.78);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.page-hero-stats .crumbs a {
  color: var(--color-yellow) !important;
  font-weight: 700;
  text-decoration: none;
}
.page-hero-stats .crumbs a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

.page-hero-stats .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-stats .hero-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.page-hero-stats 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-stats .lede {
  color: rgba(248, 250, 252, 0.88);
  max-width: 650px;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Stats Metrics Bar */
.stats-metrics-grid {
  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);
}

.stats-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;
}

.stats-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;
}

.stats-metric-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-yellow);
}

.stats-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;
}

.stats-metric-pill span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section Header in Statistics */
.stats-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-section-head h2 {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: var(--color-royal);
  margin: 0;
  letter-spacing: 0.5px;
}

.stats-section-head .eyebrow {
  color: var(--color-emerald);
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}

/* Top 3 Podium Cards */
.stats-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 2.5rem;
}

.stats-podium-card {
  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;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.stats-podium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 87, 217, 0.14);
}

.stats-podium-card.is-gold {
  border-color: var(--color-gold);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.podium-media-wrap {
  position: relative;
  height: 200px;
  background: var(--color-navy);
  overflow: hidden;
}

.podium-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.stats-podium-card:hover .podium-media-wrap img {
  transform: scale(1.06);
}

.podium-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 23, 57, 0.2) 0%, rgba(7, 23, 57, 0.88) 100%);
}

/* Medal badges */
.podium-rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-rank-1 {
  background: var(--color-gold);
  color: var(--color-ink);
}

.badge-rank-2 {
  background: #cbd5e1;
  color: var(--color-ink);
}

.badge-rank-3 {
  background: #f97316;
  color: #ffffff;
}

.podium-team-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.podium-team-crest {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--crest-bg, #00A86B);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

/* Podium Body */
.podium-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.podium-body h3 {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.5rem;
  color: var(--color-royal);
  margin: 0 0 2px;
  text-transform: uppercase;
}

.podium-body .team-sub {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 16px;
}

.podium-big-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  margin-bottom: 16px;
}

.podium-big-stat strong {
  display: block;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-royal);
  line-height: 1;
}

.stats-podium-card.is-gold .podium-big-stat strong {
  color: var(--color-gold);
}

.podium-big-stat span {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.podium-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.podium-mini-stats dt {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
}

.podium-mini-stats dd {
  margin: 2px 0 0;
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-royal);
}

/* Statistics Tables Wrap */
.stats-table-card {
  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-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-bottom: 3.5rem;
}

.stats-table-card table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.stats-table-card 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: 12px 16px;
  border-bottom: 2px solid var(--color-emerald);
  text-align: left;
}

.stats-table-card th.num,
.stats-table-card td.num {
  text-align: center;
}

.stats-table-card td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.stats-table-card tr:hover td {
  background: #f1f5f9;
}

.stats-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-player-row a {
  font-family: "Oswald", "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-royal);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.stats-player-row a:hover {
  color: var(--color-emerald);
}

.stats-table-card td strong {
  color: var(--color-royal);
}

/* Responsive */
@media (max-width: 900px) {
  .stats-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-podium-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .stats-metrics-grid {
    grid-template-columns: 1fr;
  }
  .podium-mini-stats {
    grid-template-columns: 1fr;
  }
}
