/* Match hero header — shared by match page and home LIVE section */

.mp-hero-wrap { margin: 0; }

.mp-hero {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 32px) clamp(16px, 3vw, 28px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.mp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(0, 194, 203, 0.08), transparent 60%);
  pointer-events: none;
}

.mp-hero.is-live {
  border-color: rgba(0, 194, 203, 0.32);
}

.mp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}

.mp-hero-chip {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--div);
  border-radius: 999px;
  padding: 5px 12px;
}

.mp-hero-chip--accent {
  color: var(--teal);
  border-color: rgba(0, 194, 203, 0.28);
  background: rgba(0, 194, 203, 0.06);
}

.mp-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(12px, 3vw, 24px);
  align-items: center;
  position: relative;
}

.mp-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mp-flag {
  border-radius: 4px;
  display: block;
  width: clamp(48px, 8vw, 56px);
  height: auto;
}

.mp-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2.5vw, 22px);
  line-height: 1.15;
  color: var(--white);
  text-align: center;
}

.mp-team-link { color: inherit; text-decoration: none; transition: color 0.15s; }
.mp-team-link:hover { color: var(--teal); }

a.mp-team-side-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
}

a.mp-team-side-link:hover .mp-name,
a.mp-team-side-link:focus-visible .mp-name {
  color: var(--teal);
}

a.mp-team-side-link:hover .mp-flag,
a.mp-team-side-link:focus-visible .mp-flag {
  opacity: 0.88;
}

.mp-hero .mp-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.mp-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 8vw, 64px);
  color: var(--teal);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.mp-score-ns { font-size: clamp(24px, 4vw, 32px); color: var(--dim); }
.mp-score-sep { margin: 0 6px; opacity: 0.65; font-weight: 600; }

.mp-score-pens {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(14px, 2.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--body);
  margin-top: 4px;
}

.mp-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mp-badge.live { color: var(--white); background: var(--teal); }
.mp-badge--pens {
  border: 1px solid rgba(0, 194, 203, 0.45);
  background: rgba(0, 194, 203, 0.12);
}

.mp-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: mp-live-pulse 1.6s ease-out infinite;
}

@keyframes mp-live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.mp-live-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.mp-elapsed {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.mp-elapsed.is-stale-sync { color: var(--muted); }
.mp-badge.ht, .mp-badge.ft { color: var(--muted); border: 1px solid var(--div); background: transparent; }
.mp-badge.stale-sync { color: var(--muted); border: 1px solid var(--div); background: transparent; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.mp-badge.ns { color: var(--dim); border: 1px solid var(--div); background: transparent; }

.mp-hero-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--div);
  font-size: 13px;
  color: var(--muted);
  position: relative;
}

.mp-hero-foot span { display: inline-flex; align-items: center; gap: 6px; }
.mp-kickoff { font-weight: 600; color: var(--body); }
.mp-venue { color: var(--dim); }

/* Home LIVE section — card is the link wrapper */
.home-page a.match.match--mp-hero {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  overflow: visible;
}

.home-page a.match.match--mp-hero:hover,
.home-page a.match.match--mp-hero:focus-visible {
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

.home-page .live-matches {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-page .mp-hero-wrap--home .mp-hero {
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.home-page .mp-flag,
.home-page .mp-hero .team-flag-img {
  box-shadow: none;
  border: none;
  background: none;
  border-radius: 4px;
}

.home-page .hero-now-card .match--mp-hero {
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.home-page .hero-now.is-live .hero-now-card .match--mp-hero:hover .mp-hero {
  border-color: rgba(0, 194, 203, 0.45);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}
