/* Match page v3 — premium layout (Sofascore × Linear) */

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

:root {
  --navy:  #0A1628;
  --teal:  #00C2CB;
  --white: #FFFFFF;
  --body:  rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.70);
  --dim:   rgba(255, 255, 255, 0.52);
  --mp-max: 1240px;
  --mp-pad: clamp(16px, 3vw, 32px);
  --mp-gap: clamp(28px, 4vw, 56px);
  --mp-card-bg: rgba(255, 255, 255, 0.035);
  --mp-card-border: rgba(255, 255, 255, 0.08);
  --mp-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  --mp-radius: 14px;
  --s1: rgba(255, 255, 255, 0.04);
  --s2: rgba(255, 255, 255, 0.07);
  --t06: rgba(0, 194, 203, 0.06);
  --t08: rgba(0, 194, 203, 0.08);
  --t12: rgba(0, 194, 203, 0.12);
  --div: rgba(255, 255, 255, 0.08);
}

html, body {
  background: var(--fa-bg, var(--navy));
  color: var(--fa-text-secondary, var(--body));
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Page shell (match route only — do not widen team / player columns) ── */
body.match-page .page {
  padding: 16px var(--mp-pad) 96px;
  max-width: var(--mp-max);
  margin: 0 auto;
}

body.match-page.has-pb-track #page-root > .page {
  padding: 16px var(--mp-pad) 96px;
  max-width: var(--mp-max);
  margin: 0 auto;
}

body.match-page.has-pb-track .wrap {
  max-width: var(--mp-max);
  margin: 0 auto;
  padding: 0 var(--mp-pad);
}

.state {
  padding: 64px 16px;
  text-align: center;
  color: var(--muted);
}

.state h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 10px;
}

.mp-crumbs {
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.mp-crumbs a { color: var(--teal); text-decoration: none; }
.mp-crumbs a:hover,
.mp-crumbs a:focus-visible {
  color: #00C2CB;
  opacity: 0.88;
}
.mp-crumb-sep { opacity: 0.45; }
.mp-crumb-current { color: var(--muted); }

/* ── Hero ── */
#overview { scroll-margin-top: 72px; }

.mp-hero {
  position: relative;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(0, 0, 0, 0.18) 100%);
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-radius);
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3vw, 36px);
  box-shadow: var(--mp-shadow);
  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: 24px;
  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: var(--t06);
}

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

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

.mp-home { justify-self: center; }
.mp-away { justify-self: center; align-items: center; }

.mp-flag {
  border-radius: 4px;
  display: block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  width: clamp(48px, 8vw, 64px);
  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;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
  max-width: 100%;
  width: 100%;
  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;
  min-width: 0;
  flex-shrink: 0;
}

.mp-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 72px);
  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--pens {
  border: 1px solid rgba(0, 194, 203, 0.45);
  background: rgba(0, 194, 203, 0.12);
}

.mp-sec--pens {
  border: 1px solid rgba(0, 194, 203, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(0, 194, 203, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(10, 22, 40, 0.55) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.mp-pens-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}

.mp-pens-head .mp-pens-scoreline {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 194, 203, 0.24);
}

.mp-pens-eyebrow {
  margin: 0 0 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.mp-pens-title {
  margin: 0;
}

.mp-sec--pens .mp-sec-sub {
  font-size: 12px;
  color: var(--dim);
  margin: 4px 0 0;
}

.mp-sec--pens-live .mp-sec-title::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 194, 203, 0.55);
  animation: mp-pens-pulse 1.6s ease-out infinite;
  vertical-align: middle;
}

@keyframes mp-pens-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 194, 203, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(0, 194, 203, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 203, 0); }
}

.mp-pens-board {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 16px 14px 18px;
}

.mp-pens-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-pens-flag {
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.mp-pens-team {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  align-items: flex-start;
}

.mp-pens-vs {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.mp-pens-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-pens-log-item {
  display: grid;
  grid-template-columns: 72px 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.mp-pens-log-item--home {
  box-shadow: inset 3px 0 0 rgba(0, 194, 203, 0.55);
}

.mp-pens-log-item--away {
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.28);
}

.mp-pens-log-item--scored {
  background: linear-gradient(90deg, rgba(0, 194, 203, 0.08), rgba(255, 255, 255, 0.02));
}

.mp-pens-log-item--missed {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(255, 255, 255, 0.02));
}

.mp-pens-log-item--latest {
  border-color: rgba(0, 194, 203, 0.45);
  box-shadow: inset 3px 0 0 var(--teal), 0 0 0 1px rgba(0, 194, 203, 0.18);
}

.mp-pens-log-side {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.72);
}

.mp-pens-log-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.mp-pens-log-item--scored .mp-pens-log-icon {
  background: var(--teal);
  color: var(--navy);
}

.mp-pens-log-item--missed .mp-pens-log-icon {
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
}

.mp-pens-log-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mp-pens-log-player {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.mp-pens-log-result {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}

.mp-pens-log-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--teal);
  min-width: 42px;
  text-align: right;
}

.mp-pens-kick-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.tl-v2-dot--penalty,
.tl-v2-item.tl-penalty-goal .tl-v2-dot {
  border-color: rgba(250, 204, 21, 0.85);
  background: rgba(250, 204, 21, 0.14);
}

.tl-v2-item.tl-penalty-goal .tl-goal-mark {
  color: #422006;
}

.tl-v2-content--penalty .tl-goal-badge {
  background: rgba(250, 204, 21, 0.18);
  color: #FDE68A;
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.tl-v2-content--penalty {
  border-color: rgba(250, 204, 21, 0.28);
}

.tl-v2-dot--missed-pen,
.tl-v2-item.tl-missed-penalty .tl-v2-dot {
  border-color: rgba(248, 113, 113, 0.85);
  background: rgba(248, 113, 113, 0.12);
}

.tl-v2-item.tl-missed-penalty .tl-goal-mark {
  color: #fecaca;
  font-weight: 800;
}

.tl-v2-content--missed-pen {
  border-color: rgba(248, 113, 113, 0.28);
}

.tl-goal-badge--missed {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.mp-pens-team--away {
  align-items: flex-end;
  text-align: right;
}

.mp-pens-team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-pens-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mp-pens-team--away .mp-pens-dots {
  justify-content: flex-end;
}

.mp-pens-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.mp-pens-dot--scored {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 8px rgba(0, 194, 203, 0.45);
}

.mp-pens-dot--missed {
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 0.95);
}

.mp-pens-scoreline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
}

.mp-pens-score-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.mp-pens-score-sep {
  font-size: 22px;
  color: var(--dim);
  font-weight: 600;
}

.mp-pens-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-pens-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mp-pens-row--latest .mp-pens-kick {
  border-color: rgba(0, 194, 203, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 194, 203, 0.2);
}

.mp-pens-kick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.mp-pens-kick--empty {
  visibility: hidden;
}

.mp-pens-kick-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.mp-pens-kick--scored .mp-pens-kick-icon {
  color: var(--navy);
  background: var(--teal);
}

.mp-pens-kick--missed .mp-pens-kick-icon {
  color: #fff;
  background: rgba(239, 68, 68, 0.9);
}

.mp-pens-kick-player {
  font-size: 13px;
  color: var(--body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-pens-wait {
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  margin: 8px 0 0;
}

.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-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: 20px;
  padding-top: 18px;
  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); }

/* ── Sticky nav ── */
.mp-subnav {
  position: sticky;
  top: 0;
  z-index: 90;
  margin: 20px calc(-1 * var(--mp-pad)) 0;
  padding: 0 var(--mp-pad);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-subnav-inner {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--mp-max);
  margin: 0 auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.mp-subnav-inner::-webkit-scrollbar { display: none; }

.mp-subnav-text--short { display: none; }

@media (max-width: 599px) {
  .mp-subnav-text--full { display: none; }
  .mp-subnav-text--short { display: inline; }
  .mp-subnav-link { padding: 6px 10px; font-size: 12px; }
}

.mp-subnav-link {
  flex-shrink: 0;
  scroll-snap-align: start;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 6px;
  border: none;
  position: relative;
  transition: color 0.15s, background 0.15s;
}

.mp-subnav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.mp-subnav-link.is-active {
  color: var(--white);
  background: rgba(0, 194, 203, 0.12);
}

.mp-subnav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--teal);
}

/* ── Grid layout ── */
.mp-shell { margin-top: var(--mp-gap); }

.mp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mp-gap);
  align-items: start;
}

@media (min-width: 960px) {
  .mp-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  }
}

.mp-main { display: flex; flex-direction: column; gap: var(--mp-gap); min-width: 0; }
.mp-aside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ── Sections ── */
.mp-sec, .sec { scroll-margin-top: 64px; }
.mp-sec { padding-top: 0; }
#predictions { scroll-margin-top: 64px; }

.mp-sec-head {
  margin-bottom: 18px;
}

.mp-sec-title, .sh {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 0;
  line-height: 1.1;
}

.mp-sec-sub {
  font-size: 13px;
  color: var(--dim);
  margin: 6px 0 0;
}

.sh {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.mp-card {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-radius);
  padding: clamp(18px, 2.5vw, 24px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.mp-card--aside {
  padding: 18px 20px;
}

.mp-aside-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}

/* Facts */
.mf-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mf-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--div);
}

.mf-row:last-child { border-bottom: none; }
.mf-label { color: var(--dim); flex-shrink: 0; }
.mf-value { color: var(--body); text-align: right; }
.mf-value a.mp-team-link { color: var(--teal); }

.mp-empty-state {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.55;
  padding: 20px 22px;
  border: 1px solid var(--div);
  border-radius: var(--mp-radius);
  background: rgba(255, 255, 255, 0.02);
}

/* ── Timeline v2 ── */
.tl-v2 {
  --tl-rail-col: 56px;
  --tl-gap: 16px;
  display: grid;
  grid-template-columns: var(--tl-rail-col) minmax(0, 1fr);
  column-gap: var(--tl-gap);
  position: relative;
}

.tl-v2-line {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  align-self: stretch;
  width: 2px;
  margin-block: 8px;
  background: linear-gradient(180deg, rgba(0, 194, 203, 0.45), rgba(255, 255, 255, 0.1));
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}

.tl-track, .tl-list {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.tl-v2-item {
  display: grid;
  grid-template-columns: var(--tl-rail-col) minmax(0, 1fr);
  gap: var(--tl-gap);
  padding: 14px 0;
  border: none;
  background: transparent;
  border-radius: 0;
  align-items: start;
}

.tl-v2-item + .tl-v2-item {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tl-v2-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.tl-v2-minute {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--teal);
  line-height: 1;
}

.tl-v2-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--navy);
  border: 2px solid rgba(0, 194, 203, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tl-v2-content {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}

.tl-v2-content strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--white);
  font-size: 15px;
}

.tl-v2-item.tl-yellow .tl-v2-dot { border-color: #EAB308; background: rgba(234, 179, 8, 0.12); }
.tl-v2-item.tl-red .tl-v2-dot { border-color: #EF4444; background: rgba(239, 68, 68, 0.12); }
.tl-v2-item.tl-subst .tl-v2-dot { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); }

.tl-card-chip {
  display: block;
  width: 12px;
  height: 16px;
  border-radius: 2px;
}

.tl-card-chip--yellow { background: #EAB308; }
.tl-card-chip--red { background: #EF4444; }

.tl-v2-dot--goal,
.tl-v2-item.tl-goal .tl-v2-dot {
  width: 38px;
  height: 38px;
  border-color: var(--teal);
  background: var(--teal);
  color: var(--navy);
  box-shadow: 0 0 0 4px var(--t12), 0 6px 18px rgba(0, 194, 203, 0.35);
}

.tl-goal-mark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.tl-v2-item.tl-goal .tl-v2-minute {
  font-size: 15px;
  color: var(--white);
}

.tl-v2-content--goal {
  border: 2px solid rgba(0, 194, 203, 0.55);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(0, 194, 203, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tl-goal-badge {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.tl-goal-scorer {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  color: var(--white);
  margin: 0;
}

.tl-goal-meta {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.tl-v2-content--goal .tl-goal-meta {
  margin-top: 4px;
}

/* Legacy timeline items inside v2 */
.tl-item:not(.tl-v2-item) {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--s1);
  border: 1px solid var(--div);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
}

.tl-min {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--teal);
  min-width: 36px;
}

/* ── Statistics ── */
.mp-card--stats {
  padding: 18px 16px 20px;
}

.mp-stats-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-stats-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  min-width: 0;
}

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

.mp-stats-team--away {
  justify-content: flex-end;
  text-align: right;
}

.mp-stats-vs {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.mp-stats-flag {
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.mp-stats-primary {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mp-stat-duel--primary .mp-stat-duel-val {
  font-size: clamp(22px, 4vw, 28px);
}

.mp-stat-duel--primary .mp-stat-duel-bar {
  height: 12px;
}

.mp-stat-duel--primary .mp-stat-duel-label {
  font-size: 13px;
}

.mp-stats-more {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-stats-more-title {
  margin: 0 0 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.mp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.mp-stat-duel-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 10px;
  margin-bottom: 8px;
}

.mp-stat-duel-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  padding: 0 4px;
}

.mp-stat-duel-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1;
}

.mp-stat-duel-val--home { text-align: right; }
.mp-stat-duel-val--away { text-align: left; }

.mp-stat-duel-val.is-lead {
  color: var(--teal);
  text-shadow: 0 0 20px rgba(0, 194, 203, 0.25);
}

.mp-stat-duel-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mp-stat-duel-bar-home {
  background: linear-gradient(90deg, rgba(0, 194, 203, 0.95), rgba(0, 194, 203, 0.55));
}

.mp-stat-duel-bar-away {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.12));
}

.mp-stat-duel--compact .mp-stat-duel-val {
  font-size: 16px;
}

.mp-stat-duel--compact .mp-stat-duel-bar {
  height: 6px;
}

/* Legacy stat classes (unused) */
.mp-stat-row + .mp-stat-row { margin-top: 20px; }

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

.mp-stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}

.mp-stat-home-val, .mp-stat-away-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}

.mp-stat-home-val { text-align: right; }
.mp-stat-away-val { text-align: left; }

.mp-stat-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.mp-stat-bar-home {
  background: linear-gradient(90deg, rgba(0, 194, 203, 0.85), rgba(0, 194, 203, 0.55));
  transition: width 0.4s ease;
}

.mp-stat-bar-away {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.15));
  transition: width 0.4s ease;
}

/* ── Match flow (momentum) ── */
.mp-card--flow {
  padding: 16px 14px 18px;
}

.mp-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.mp-flow-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--body);
}

.mp-flow-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.mp-flow-legend-item--home .mp-flow-swatch {
  background: var(--teal);
}

.mp-flow-legend-item--away .mp-flow-swatch {
  background: rgba(255, 255, 255, 0.35);
}

.mp-flow-chart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  height: 160px;
  padding: 0 2px;
}

.mp-flow-axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.mp-flow-col {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  height: 100%;
}

.mp-flow-bar-slot {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.mp-flow-bar {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  border-radius: 4px;
  min-height: 2px;
}

.mp-flow-bar--home {
  bottom: 50%;
  background: linear-gradient(180deg, rgba(0, 194, 203, 0.95), rgba(0, 194, 203, 0.45));
  box-shadow: 0 0 12px rgba(0, 194, 203, 0.25);
}

.mp-flow-bar--away {
  top: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.12));
}

.mp-flow-min {
  margin-top: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--dim);
}

.mp-flow-footnote {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--dim);
  text-align: center;
}

/* Legacy momentum */
.mp-mom-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}

.mp-mom-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  padding: 0 4px;
}

.mp-mom-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mp-mom-stack {
  width: 100%;
  max-width: 14px;
  height: 88px;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.mp-mom-home { background: rgba(0, 194, 203, 0.75); }
.mp-mom-away { background: rgba(255, 255, 255, 0.22); }

.mp-mom-min {
  font-size: 9px;
  font-weight: 600;
  color: var(--dim);
}

/* ── Insights ── */
.mp-insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.mp-insight-card {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.15s;
}

.mp-insight-card:hover { border-color: rgba(0, 194, 203, 0.25); }

.mp-insight-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 6px;
}

.mp-insight-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.mp-insight-detail {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}

/* ── Substitutions cards ── */
.mp-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.mp-sub-card {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: 12px;
  overflow: hidden;
}

.mp-sub-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--div);
}

.mp-sub-card-min {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--teal);
}

.mp-sub-card-team {
  font-size: 12px;
  font-weight: 600;
  color: var(--dim);
}

.mp-sub-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }

.mp-sub-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.mp-sub-card-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.mp-sub-card-row--out .mp-sub-card-tag { background: rgba(127, 29, 29, 0.45); color: #FCA5A5; }
.mp-sub-card-row--in .mp-sub-card-tag { background: rgba(20, 83, 45, 0.45); color: #86EFAC; }
.mp-sub-card-player { color: var(--body); font-weight: 500; }

/* ── Formation / pitch v3 ── */
.fp-wrap {
  border-radius: var(--mp-radius);
  border: 1px solid rgba(0, 194, 203, 0.16);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.14) 100%);
  box-shadow: var(--mp-shadow);
  overflow: hidden;
}

.fp-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: clamp(320px, 42vw, 480px);
  max-height: 520px;
  background: #0A3D1E;
}

.fp-grass { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fp-players { position: absolute; inset: 10px 14px; z-index: 2; }

.fp-wrap:not(.fp-wrap--split) .fp-player {
  width: clamp(50px, 13%, 68px);
}

.fp-player {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: clamp(58px, 7vw, 76px);
  text-align: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.fp-player.is-subbed-out { opacity: 0.38; filter: grayscale(0.35); }
.fp-player.is-subbed-in .fp-kit {
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.55), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.fp-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  min-height: 16px;
  margin-bottom: 3px;
}

.fp-badges--empty { min-height: 0; margin-bottom: 0; }

.fp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.fp-badge--sub-out { background: rgba(127, 29, 29, 0.85); color: #FECACA; }
.fp-badge--sub-in { background: rgba(20, 83, 45, 0.9); color: #BBF7D0; }
.fp-badge--goal { background: rgba(10, 22, 40, 0.75); font-size: 10px; }
.fp-badge--card { width: 8px; height: 11px; min-width: 8px; padding: 0; border-radius: 2px; }
.fp-badge--yellow { background: #EAB308; }
.fp-badge--red { background: #EF4444; }

.fp-kit {
  position: relative;
  border-radius: 10px;
  padding: 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.fp-shirt {
  position: relative;
  width: clamp(34px, 4.5vw, 42px);
  height: clamp(38px, 5vw, 46px);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(18% 0%, 82% 0%, 100% 16%, 100% 100%, 0% 100%, 0% 16%);
  border: 1px solid var(--fp-kit-border, rgba(0, 0, 0, 0.12));
  background: linear-gradient(180deg, var(--fp-kit-bg, var(--white)) 0%, color-mix(in srgb, var(--fp-kit-bg, var(--white)) 78%, #000) 100%);
  color: var(--fp-kit-num, var(--navy));
}

.fp-shirt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 6px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
  opacity: 0.9;
}

.fp-num {
  position: relative;
  z-index: 1;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 17px);
  line-height: 1;
}

.fp-name {
  margin-top: 6px;
  padding: 3px 6px;
  max-width: 100%;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(8px, 1vw, 10px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--white);
  background: rgba(10, 22, 40, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  backdrop-filter: blur(4px);
}

a.fp-name-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

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

a.fp-player-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
}

a.fp-player-link:hover .fp-name,
a.fp-player-link:focus-visible .fp-name {
  color: var(--teal);
  border-color: rgba(0, 194, 203, 0.35);
}

a.fp-sub-player-link,
a.fp-bench-link,
a.tl-player-link,
a.mp-sub-card-player-link {
  color: inherit;
  text-decoration: none;
}

a.fp-sub-player-link:hover,
a.fp-sub-player-link:focus-visible,
a.fp-bench-link:hover,
a.fp-bench-link:focus-visible,
a.tl-player-link:hover,
a.tl-player-link:focus-visible,
a.mp-sub-card-player-link:hover,
a.mp-sub-card-player-link:focus-visible {
  color: var(--teal);
  opacity: 0.88;
}

.fp-rating-wrap {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 2;
}

.fp-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.fp-rating--excellent { background: rgba(0, 194, 203, 0.92); color: var(--navy); }
.fp-rating--good { background: rgba(134, 239, 172, 0.92); color: #052e16; }
.fp-rating--avg { background: rgba(250, 204, 21, 0.92); color: #422006; }
.fp-rating--low { background: rgba(248, 113, 113, 0.92); color: #450a0a; }
.fp-rating--pending { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.55); min-width: 22px; }

.mp-sec--lineups .mp-sec-head {
  overflow: visible;
}

.mp-sec--lineups .mp-sec-sub {
  font-size: 12px;
  color: var(--dim);
  margin: 4px 0 0;
}

.fp-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.fp-foot { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fp-foot--home { justify-content: flex-start; }
.fp-foot--away { justify-content: flex-end; text-align: right; }
.fp-foot-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fp-foot-text--away { align-items: flex-end; }
.fp-flag { border-radius: 3px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }

.fp-team {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-form {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
}

.fp-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0, 194, 203, 0.08);
  border: 1px solid rgba(0, 194, 203, 0.28);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  min-height: 34px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.fp-toggle:hover, .fp-toggle:focus-visible {
  background: rgba(0, 194, 203, 0.16);
  border-color: var(--teal);
  color: var(--white);
}

.fp-toggle-spacer { width: 56px; }

.fp-toggle-chevron {
  display: inline-block;
  transition: transform 140ms ease;
  font-size: 10px;
}

.fp-toggle.is-open .fp-toggle-chevron { transform: rotate(180deg); }

.fp-subs-panel[hidden] { display: none !important; }

.fp-subs-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.fp-subs-col {
  padding: 18px 20px;
  min-width: 0;
}

.fp-subs-col + .fp-subs-col {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-subs-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.fp-subs-h {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin: 0;
  line-height: 1.2;
}

.fp-coach {
  font-size: 12px;
  color: var(--dim);
  margin: 4px 0 0;
}

.fp-subs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.fp-sub-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}

.fp-sub-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--teal);
  min-width: 32px;
  flex-shrink: 0;
  line-height: 1.35;
}

.fp-sub-change {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.fp-sub-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--body);
}

.fp-sub-tag--out { color: #FCA5A5; }
.fp-sub-tag--in { color: #86EFAC; }

.fp-sub-icon {
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.fp-sub-empty {
  font-size: 13px;
  color: var(--dim);
  font-style: italic;
}

.fp-bench-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 16px 0 8px;
}

.fp-bench-unused {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.fp-bench-unused li { white-space: nowrap; }

@media (max-width: 720px) {
  .fp-subs-panel { grid-template-columns: 1fr; }
  .fp-subs-col + .fp-subs-col {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* ── Pre-match ── */
.mp-hint { font-size: 14px; color: var(--dim); line-height: 1.5; }
.mp-prematch-group { font-size: 14px; color: var(--muted); margin-bottom: 16px; }

.mp-team-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 20px;
}

.mp-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 14px;
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.mp-team-card:hover {
  border-color: rgba(0, 194, 203, 0.35);
  transform: translateY(-2px);
}

.mp-team-card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  text-align: center;
}

.mp-team-card-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.mp-team-preview-vs {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--dim);
  align-self: center;
}

.mp-countdown { margin: 8px 0 24px; }

.mp-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mp-countdown-cell {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
}

.mp-countdown-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  color: var(--teal);
  line-height: 1;
}

.mp-countdown-lab {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 6px;
}

.mp-countdown-soon {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--teal);
  text-align: center;
  padding: 16px;
}

.mp-disc-preview {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-radius);
  padding: 18px;
}

.mp-disc-preview-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

.mp-disc-preview-author {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 8px;
}

.mp-disc-preview-body {
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mp-disc-preview-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.mp-disc-preview-link:hover,
.mp-disc-preview-link:focus-visible {
  color: #00C2CB;
  opacity: 0.88;
}
.mp-disc-preview--compact { margin-bottom: 12px; }
.mp-disc-preview-likes { font-size: 11px; font-weight: 600; color: var(--dim); margin-left: 8px; }

/* ── Projected Result card ── */
.mp-prediction-mount { margin-bottom: 20px; }

.mpr-card {
  background: var(--mp-card-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--mp-card-border, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 20px 22px;
}

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

.mpr-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

.mpr-confidence {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
.mpr-confidence--high { color: #4cdf7a; background: rgba(76, 223, 122, 0.1); }
.mpr-confidence--medium { color: #f0c76e; background: rgba(240, 199, 110, 0.1); }
.mpr-confidence--low { color: var(--muted); }

.mpr-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mpr-score-team {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
  min-width: 80px;
}
.mpr-score-team:first-child { text-align: right; }
.mpr-score-team:last-child { text-align: left; }

.mpr-score-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  min-width: 28px;
  text-align: center;
}

.mpr-score-sep {
  font-size: 20px;
  color: var(--dim);
  font-weight: 300;
}

.mpr-section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 10px;
}

.mpr-probs { margin-bottom: 16px; }

.mpr-prob-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.mpr-prob-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  min-width: 70px;
  flex-shrink: 0;
}

.mpr-prob-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.mpr-prob-fill {
  height: 100%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  transition: width 0.4s ease;
}
.mpr-prob-fill--lead { background: var(--teal); }

.mpr-prob-pct {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  min-width: 36px;
  text-align: right;
}

.mpr-factors { margin-bottom: 16px; }

.mpr-factor-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mpr-factor {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 6px;
}
.mpr-factor::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.7;
}

.mpr-fanpicks { margin-bottom: 16px; }

.mpr-fanpicks-line {
  font-size: 13px;
  color: var(--body);
  margin: 0;
}

.mpr-explanation { margin-bottom: 16px; }

.mpr-explanation-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

.mpr-accuracy { border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 14px; }

.mpr-accuracy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.mpr-accuracy-label {
  font-size: 12px;
  color: var(--dim);
}

.mpr-accuracy-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--body);
}
.mpr-accuracy--yes { color: #4cdf7a; }
.mpr-accuracy--no { color: #ff8a8a; }

@media (max-width: 767px) {
  .mpr-card { padding: 16px; border-radius: 12px; }
  .mpr-score-num { font-size: 28px; }
  .mpr-score-team { font-size: 13px; min-width: 60px; }
  .mpr-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── AI product layout ── */
#match-ai-root { scroll-margin-top: 72px; }

.mai-sec { padding-top: 0; }

.mai-product-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.mai-product-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--white);
  margin: 0 0 4px;
}

.mai-product-tag {
  font-size: 13px;
  color: var(--dim);
  margin: 0;
}

.mai-confidence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--t06);
  border: 1px solid rgba(0, 194, 203, 0.25);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.mai-confidence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(0, 194, 203, 0.6);
}

.mai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .mai-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mai-card--wide { grid-column: 1 / -1; }
}

.mai-card {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: 12px;
  padding: 18px 20px;
}

.mai-card--disc { border-color: rgba(0, 194, 203, 0.2); }

.mai-card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 10px;
}

.mai-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  margin: 0 0 10px;
}

.mai-card-body {
  font-size: 14px;
  color: var(--body);
  line-height: 1.55;
}

.mai-card-body p { margin: 0 0 8px; }
.mai-card-body p:last-child { margin-bottom: 0; }

.mai-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mai-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.45;
}

.mai-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.75;
}

.mai-recap-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mai-recap-scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.mai-recap-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mai-recap-team--away {
  justify-content: flex-end;
  text-align: right;
}

.mai-recap-team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mai-recap-flag {
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.mai-recap-score {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mai-recap-goals {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1;
  color: var(--white);
}

.mai-recap-sep {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--dim);
}

.mai-recap-pens {
  margin: 0;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.mai-recap-headline {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.25;
  color: var(--white);
}

.mai-recap-subline {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}

.mai-recap-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mai-recap-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 88px;
}

.mai-recap-fact-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

.mai-recap-fact-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
}

.mai-recap-fallback p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}

.mai-moments {
  display: flex;
  flex-direction: column;
}

.mai-moment-row {
  display: grid;
  grid-template-columns: 52px 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mai-moment-row:last-child { border-bottom: none; padding-bottom: 0; }
.mai-moment-row:first-child { padding-top: 0; }

.mai-moment-min {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--teal);
  text-align: right;
  line-height: 1.2;
}

.mai-moment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.mai-moment-title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  line-height: 1.25;
}

.mai-moment-meta {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
}

.mai-moment-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(0, 194, 203, 0.14);
  color: var(--teal);
}

.mai-moment-badge--red {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.mai-moments-empty {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
  font-style: italic;
}

.mai-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}

.mai-hint { font-size: 14px; color: var(--dim); font-style: italic; }

.mai-widgets { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }

.mai-widget-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 10px;
}

.mai-form-grid { display: flex; flex-direction: column; gap: 12px; }

.mai-form-team {
  background: var(--s2);
  border: 1px solid var(--div);
  border-radius: 8px;
  padding: 12px 14px;
}

.mai-form-team-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--div);
}

.mai-form-team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.mai-form-rows { display: flex; flex-direction: column; gap: 6px; }

.mai-form-row {
  display: grid;
  grid-template-columns: 52px 28px 44px 20px 1fr;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.mai-form-date { color: var(--dim); font-weight: 600; font-size: 11px; }

.mai-form-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  text-align: center;
}

.mai-form-vs { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

.mai-form-opp {
  color: var(--body);
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mai-res {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 12px;
}

.mai-res--w { background: rgba(0, 194, 203, 0.18); color: var(--teal); }
.mai-res--d { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.mai-res--l { background: rgba(255, 90, 90, 0.15); color: #ff8a8a; }

.mai-flag { border-radius: 2px; flex-shrink: 0; }
.mai-team-link { color: var(--teal); text-decoration: none; }
.mai-team-link:hover,
.mai-team-link:focus-visible {
  color: #00C2CB;
  opacity: 0.88;
}

.mai-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--div);
  border-radius: 8px;
}

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

.mai-table th, .mai-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid var(--div);
}

.mai-table th {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--s2);
}

.mai-table tbody tr:last-child td { border-bottom: none; }
.mai-th-team, .mai-td-team { text-align: left; padding-left: 10px; }

.mai-td-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--white);
}

.mai-th-rank, .mai-td-rank { width: 28px; color: var(--dim); }
.mai-th-pts, .mai-td-pts { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; color: var(--teal); }
.mai-tr--hl { background: rgba(0, 194, 203, 0.06); }
.mai-tr--hl .mai-td-team { color: var(--teal); }

.mai-scorer-list { display: flex; flex-direction: column; gap: 8px; }

.mai-scorer-row {
  display: grid;
  grid-template-columns: 24px 1fr 32px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--s2);
  border: 1px solid var(--div);
  border-radius: 8px;
}

.mai-scorer-rank {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  color: var(--dim);
  font-size: 12px;
}

.mai-scorer-name { font-weight: 600; color: var(--white); font-size: 13px; }

.mai-scorer-goals {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--teal);
  text-align: right;
}

.mai-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.mai-topic {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--div);
  background: var(--s2);
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.mai-topic--static { color: var(--muted); }

.mai-questions .mai-q-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.mai-q-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  line-height: 1.4;
}

.mai-q-link:hover,
.mai-q-link:focus-visible {
  color: #00C2CB;
  opacity: 0.88;
}

.mai-admin {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 200;
  max-width: 220px;
  background: var(--navy);
  border: 1px solid var(--div);
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
}

.mai-admin h4 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  margin-bottom: 8px;
  font-size: 13px;
}

.mai-admin button {
  display: block;
  width: 100%;
  margin-bottom: 6px;
  padding: 6px 8px;
  background: var(--s2);
  border: 1px solid var(--div);
  border-radius: 4px;
  color: var(--body);
  cursor: pointer;
  font-size: 11px;
}

/* ── Discussion (match page enhancements) ── */
#discussion { scroll-margin-top: 72px; }

#discussion .disc-root { gap: 18px; }

#discussion .disc-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--div);
}

#discussion .disc-tab {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

#discussion .disc-tab.is-on {
  color: var(--white);
  background: var(--t08);
  border-color: rgba(0, 194, 203, 0.35);
}

#discussion .disc-tab:hover:not(.is-on) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

#discussion .disc-post {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.15s;
}

#discussion .disc-post:hover { border-color: rgba(255, 255, 255, 0.12); }

#discussion .disc-compose {
  background: var(--mp-card-bg);
  border: 1px solid var(--mp-card-border);
  border-radius: 12px;
  padding: 16px 18px;
}

#discussion .disc-reply {
  padding: 12px 0 12px 12px;
  border-left: 2px solid rgba(0, 194, 203, 0.22);
  margin-left: 0;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 24px;
  padding: 32px 0 40px;
}

.footer-fine {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.52);
  max-width: 50ch;
  text-align: center;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .mp-sub-grid { grid-template-columns: 1fr; }
  .mp-insight-grid { grid-template-columns: 1fr; }
  .mp-hero-foot { flex-direction: column; align-items: center; gap: 8px; }
/* ── Mobile split pitches (one team per card) ── */
.fp-wrap--split {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fp-split-pitches {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 12px 0;
}

.fp-split-team {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.fp-split-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}

.fp-split-meta { min-width: 0; }

.fp-split-name {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  line-height: 1.1;
}

.fp-split-form {
  margin: 2px 0 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.fp-split-coach {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--dim);
}

.fp-pitch--solo {
  aspect-ratio: 3 / 4;
  min-height: min(52vh, 420px);
  max-height: none;
}

.fp-wrap--split .fp-player {
  width: clamp(52px, 14vw, 64px);
}

.fp-wrap--split .fp-shirt {
  width: 36px;
  height: 40px;
}

.fp-wrap--split .fp-num {
  font-size: 15px;
}

.fp-wrap--split .fp-name {
  margin-top: 5px;
  padding: 3px 7px;
  font-size: 9px;
  letter-spacing: 0.05em;
  max-width: 62px;
}

.fp-wrap--split .fp-badges {
  min-height: 14px;
  margin-bottom: 2px;
}

.fp-wrap--split .fp-rating {
  min-width: 26px;
  height: 16px;
  font-size: 9px;
}

.fp-split-actions {
  display: flex;
  justify-content: center;
  padding: 14px 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

.fp-wrap--split .fp-subs-panel {
  margin: 0 12px 14px;
}

  .mp-stats-grid { grid-template-columns: 1fr; }
  .mp-flow-chart { height: 140px; }
  .mp-flow-min { font-size: 8px; }
  .mp-pens-head { flex-direction: column; align-items: stretch; }
  .mp-pens-head .mp-pens-scoreline { align-self: center; }
  .mp-pens-log-item { grid-template-columns: 58px 28px 1fr auto; padding: 10px 12px; }
  .mp-pens-log-score { font-size: 16px; }
  .mp-pens-teams { grid-template-columns: 1fr; text-align: center; }
  .mp-pens-team--away { align-items: center; text-align: center; }
  .mp-pens-team--away .mp-pens-dots { justify-content: center; }
  .mp-pens-scoreline { justify-content: center; order: -1; }
  .fp-footer { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .fp-foot--home, .fp-foot--away { justify-content: center; }
  .fp-foot-text--away { align-items: center; }
}

@media (max-width: 420px) {
  .mp-countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-v2 { --tl-rail-col: 48px; --tl-gap: 10px; }
}

/* === Match page — single column (no side rails) === */

body.match-page {
  overflow-x: auto;
}

body.match-page .mp-page {
  padding: 12px 0 72px;
  width: 100%;
  max-width: 100%;
}

body.match-page .mp-layout--single {
  display: block;
  width: min(680px, 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 24px);
  box-sizing: border-box;
}

body.match-page .mp-layout--single > .page,
body.match-page.has-pb-track #page-root > .page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.match-page .mp-layout--single .mp-subnav {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.mp-facts-mobile {
  display: block;
}

@media (max-width: 820px) {
  body.match-page .mp-layout--single {
    padding-inline: 16px;
  }

  body.match-page .mp-page {
    padding-bottom: 24px;
  }
}

.mp-rail-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.mp-rail-card--current {
  border-color: rgba(0, 194, 203, 0.22);
}

.mp-rail-card-label,
.mp-rail-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 10px;
}

.mp-rail-title {
  font-size: 12px;
  color: var(--teal, #00C2CB);
  margin-bottom: 12px;
}

.mp-rail-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.mp-rail-link {
  color: var(--teal, #00C2CB);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.mp-rail-link:hover,
.mp-rail-link:focus-visible {
  color: #00C2CB;
  opacity: 0.88;
  text-decoration: none;
}

.mp-rail-link--cta {
  display: inline-block;
  margin-top: 10px;
}

.mp-rail-facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-rail-fact {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.mp-rail-fact-label {
  color: rgba(255, 255, 255, 0.5);
}

.mp-rail-fact-value {
  color: rgba(255, 255, 255, 0.88);
  text-align: right;
}

.mp-rail-current-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px 8px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.mp-rail-current-match.is-live .mp-rail-current-status {
  color: var(--teal, #00C2CB);
}

.mp-rail-current-teams {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mp-rail-current-teams--away {
  justify-content: flex-end;
}

.mp-rail-current-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-rail-current-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.mp-rail-current-status {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.mp-rail-comp-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.mp-rail-comp-round {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.mp-rail-lineup-team {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.mp-rail-lineup-name {
  font-size: 13px;
  font-weight: 600;
}

.mp-rail-lineup-players {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.mp-rail-circle-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.mp-rail-circle-link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.mp-rail-circle-link:hover,
.mp-rail-circle-link:focus-visible {
  color: var(--teal, #00C2CB);
  text-decoration: none;
}

.mp-rail-related .sf-feed-matches-panel {
  background: transparent;
  border: none;
  padding: 0;
}

.mp-hero-wrap--compact {
  scroll-margin-top: 64px;
  margin-bottom: 12px;
}

.mp-hero--compact {
  padding: 16px 18px 14px;
  box-shadow: none;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.mp-hero--compact .mp-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
}

.mp-hero--compact .mp-side {
  justify-self: center;
  align-items: center;
  min-width: 0;
  width: auto;
  max-width: 100%;
}

.mp-hero--compact .mp-home .mp-team-side-link,
.mp-hero--compact .mp-home .mp-name,
.mp-hero--compact .mp-away .mp-team-side-link,
.mp-hero--compact .mp-away .mp-name {
  align-items: center;
  text-align: center;
}

.mp-hero--compact .mp-center {
  min-width: 0;
  padding: 0 6px;
}

.mp-hero--compact .mp-flag {
  width: 32px;
  height: 24px;
}

.mp-hero--compact .mp-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.mp-hero--compact .mp-score {
  font-size: clamp(22px, 4.5vw, 32px);
  line-height: 1;
  white-space: nowrap;
}

.mp-hero--compact::before {
  opacity: 0.5;
}

.mp-hero--compact .mp-hero-meta {
  margin-bottom: 12px;
}

.mp-hero--compact .mp-hero-foot {
  margin-top: 10px;
  font-size: 12px;
  gap: 8px 14px;
}

.mp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-hero-cta .btn--sm,
.mp-hero-cta .btn--ghost {
  font-size: 11px;
  padding: 6px 10px;
  letter-spacing: 0.04em;
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
}

.mp-hero-cta .btn--ghost:hover,
.mp-hero-cta .btn--ghost:focus-visible {
  border-color: rgba(0, 194, 203, 0.45);
  color: var(--teal, #00C2CB);
}

.mp-subnav {
  position: sticky;
  top: calc(var(--nav-h, 64px) + 4px);
  z-index: 20;
  margin: 0 0 16px;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
}

.mp-subnav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mp-subnav-inner::-webkit-scrollbar {
  display: none;
}

.mp-subnav-link {
  flex: 1 1 0;
  min-width: max-content;
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  text-align: center;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.mp-subnav-link:hover,
.mp-subnav-link:focus-visible {
  color: var(--teal, #00C2CB);
  text-decoration: none;
  opacity: 0.92;
}

.mp-subnav-link.is-active {
  color: #fff;
  border-bottom-color: var(--teal, #00C2CB);
}

.mp-overview-sec {
  scroll-margin-top: 120px;
}

.mp-overview-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mp-module,
.mp-sec--module {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px 16px;
}

.mp-module-head,
.mp-sec--module .mp-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mp-module-marker {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--teal, #00C2CB);
  flex-shrink: 0;
}

.mp-module-title,
.mp-sec--module .mp-sec-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.mp-module-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--teal, #00C2CB);
  text-decoration: none;
}

.mp-pulse-status.is-live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal, #00C2CB);
  letter-spacing: 0.06em;
}

.mp-pulse-scoreline {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.mp-pulse-event {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.mp-center-body .mp-sec {
  scroll-margin-top: 120px;
  margin-bottom: 20px;
}

#match-rail-prediction-root .mpr-card {
  border: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

@media (max-width: 820px) {
  .mp-hero--compact {
    padding: 12px 14px;
  }

  .mp-hero--compact .mp-score {
    font-size: 26px;
  }

  .mp-subnav-link {
    flex: 0 0 auto;
    padding: 10px 14px;
    font-size: 12px;
  }
}
