/* Match detail: tactical match centre on the shared CS2STAT design system. */
.match-detail-page {
  --match-t: #c69b40;
  --match-ct: #4b86bf;
  --stats-bg: #070b11;
  --stats-surface: #0a1018;
  --stats-raised: #0d151f;
  --stats-number: #dce5ee;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

body.embed-mode { min-height: 100%; background: #050a12; }
.embed-mode .auth-shell { min-height: 100%; }
.embed-mode .auth-shell__main {
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: 12px !important;
  display: block;
  align-items: stretch;
  justify-content: flex-start;
}
.embed-mode .match-detail-page { width: 100%; max-width: none; }
.embed-mode .match-detail-breadcrumb { display: none; }

.match-detail-page #match-tab-content,
.match-detail-page .score-card,
.match-detail-page .duel-matrix-card,
.match-detail-page .h2h-table-card,
.match-detail-page .utility-table-scroll,
.match-detail-page .overflow-x-auto {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.match-detail-page .duel-matrix-card,
.match-detail-page .utility-table-scroll,
.match-detail-page .h2h-table-card .overflow-x-auto {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  contain: inline-size;
}

.match-detail-breadcrumb {
  display: flex; align-items: center; min-height: 24px; margin-bottom: 10px;
  color: var(--color-text-muted); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .04em;
}
.match-detail-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-secondary); }
.match-detail-breadcrumb a:hover { color: var(--color-text); }

/* Command header — map art should read like library thumbs, not a black bar */
.match-detail-page .match-command-card {
  min-height: 142px; margin-bottom: 10px !important; border-color: var(--color-border);
  border-radius: var(--radius-md); background: var(--color-surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}
.match-detail-page .match-command-card > .absolute img {
  opacity: .78 !important;
  filter: saturate(1.05) contrast(1.08) brightness(0.92);
  object-position: center 35%;
}
.match-detail-page .match-command-card > .absolute > .match-hero-veil {
  background:
    linear-gradient(90deg,
      rgba(7, 11, 17, .88) 0%,
      rgba(7, 11, 17, .55) 38%,
      rgba(7, 11, 17, .28) 68%,
      rgba(7, 11, 17, .62) 100%),
    linear-gradient(180deg, rgba(7, 11, 17, .18) 0%, rgba(7, 11, 17, .55) 100%) !important;
}
.match-detail-page .match-hero-body { min-height: 142px !important; padding: 20px 22px !important; }
.match-detail-page .match-hero-copy { max-width: min(70%, 780px); }
.match-hero-kicker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
  color: var(--color-text-muted); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase;
}
.match-hero-kicker .ui-badge { min-height: 19px; }
.match-detail-page .match-hero-title {
  margin: 0 0 8px !important; color: var(--color-text); font-family: var(--font-display);
  font-size: clamp(24px, 2vw, 34px) !important; line-height: .98; font-weight: 700 !important;
  letter-spacing: .01em; text-transform: uppercase;
}
.match-detail-page .match-hero-meta { color: var(--color-text-muted); font-size: 12px; }
.match-detail-page .match-hero-map-list { margin-top: 10px; }
.match-detail-page .match-map-score-pill {
  border-color: var(--color-border-soft); border-radius: var(--radius-sm);
  background: rgba(13,20,30,.74); color: var(--color-text-secondary);
  font-family: var(--font-mono); font-size: 10px;
}
.match-score-board {
  display: grid; justify-items: end; gap: 5px; min-width: 168px; padding: 10px 0 10px 24px;
  border-left: 1px solid var(--color-border-soft);
}
.match-score-board__label {
  color: var(--color-text-muted); font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .12em; text-transform: uppercase;
}
.match-detail-page .score-num {
  min-width: 48px; color: var(--color-text) !important; font-family: var(--font-display);
  font-size: 54px !important; line-height: .85; text-align: center; text-shadow: none;
}
.match-detail-page .score-num.is-opponent-score { color: var(--color-text-muted) !important; }
.match-detail-page .score-num.is-viewer-score.is-win { color: var(--color-success) !important; }
.match-detail-page .score-num.is-viewer-score.is-loss { color: var(--color-danger) !important; }
.match-detail-page .score-num.is-viewer-score.is-draw { color: var(--color-warning) !important; }
.match-score-board--win .match-score-board__label { color: var(--color-success); }
.match-score-board--loss .match-score-board__label { color: var(--color-danger); }
.match-score-board--draw .match-score-board__label { color: var(--color-warning); }
.match-score-board__separator { width: 10px; height: 2px; background: var(--color-border-strong); }

.match-hero-aside {
  display: grid;
  justify-items: stretch;
  gap: 12px;
  min-width: 168px;
}
.match-hero-aside .match-score-board {
  min-width: 0;
  padding-left: 0;
  border-left: 0;
  justify-items: end;
}
.match-hero-2d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(232, 93, 38, .55);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(232, 93, 38, .92), rgba(196, 72, 24, .92));
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(232, 93, 38, .22);
  transition: filter .15s ease, transform .12s ease, box-shadow .15s ease;
}
.match-hero-2d img {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
}
.match-hero-2d:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(232, 93, 38, .3);
  color: #fff;
}
.match-hero-2d--mobile {
  width: 100%;
  margin-top: 12px;
  min-height: 44px;
}

/* Main tabs and map selector */
.match-detail-page .top-tab-nav {
  display: flex; align-items: stretch; gap: 2px; min-height: 46px; margin: 0 0 10px;
  padding: 0 8px; overflow-x: auto; border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm); background: rgba(10,16,24,.78); scrollbar-width: none;
}
.match-detail-page .top-tab-nav::-webkit-scrollbar { display: none; }
.match-detail-page .top-tab-nav a {
  position: relative; display: inline-flex; flex: 0 0 auto; align-items: center;
  min-height: 44px; padding: 0 14px !important; border: 0 !important;
  color: var(--color-text-muted) !important; font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: .04em; text-transform: uppercase;
}
.match-detail-page .top-tab-nav a:hover { color: var(--color-text) !important; background: rgba(255,255,255,.02); }
.match-detail-page .top-tab-nav a.border-orange-500 { color: var(--color-text) !important; }
.match-detail-page .top-tab-nav a.border-orange-500::after {
  content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 2px;
  background: var(--color-primary);
}

/* 2D entry moved to the match hero CTA (.match-hero-2d). */

.match-tab-progress {
  position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px;
  overflow: hidden; pointer-events: none;
}
.match-tab-progress::after {
  content: ""; position: absolute; inset: 0 auto 0 -35%; width: 35%;
  background: var(--color-primary); animation: match-tab-progress 1s ease-in-out infinite;
}
@keyframes match-tab-progress { to { left: 100%; } }
.match-detail-page .top-tab-nav { position: relative; }

.match-tab-loading {
  display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 18px 20px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: rgba(13,20,30,.72); color: var(--color-text-secondary);
}
.match-tab-loading__spinner {
  width: 24px; height: 24px; flex: none; border: 2px solid var(--color-border-strong);
  border-top-color: var(--color-primary); border-radius: 50%; animation: match-tab-spin .75s linear infinite;
}
.match-tab-loading span:last-child { display: grid; gap: 3px; }
.match-tab-loading b { color: var(--color-text); font-size: var(--text-sm); }
.match-tab-loading small { color: var(--color-text-muted); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
@keyframes match-tab-spin { to { transform: rotate(360deg); } }
.match-detail-page .map-selector {
  gap: 2px; margin: 0 0 10px; padding: 4px; border-color: var(--color-border-soft);
  border-radius: var(--radius-sm); background: rgba(10,16,24,.62);
}
.match-detail-page .map-selector-chip {
  min-height: 32px; padding: 0 10px; border: 1px solid transparent;
  border-radius: var(--radius-sm); background: transparent; color: var(--color-text-muted);
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
}
.match-detail-page .map-selector-chip:hover { background: var(--color-surface-raised); color: var(--color-text); }
.match-detail-page .map-selector-chip.is-active {
  border-color: var(--color-border); background: var(--color-surface-raised); color: var(--color-text);
  box-shadow: inset 2px 0 var(--color-primary);
}
.match-detail-page .map-selector-chip.is-active b { color: var(--color-primary); }

/* Context and section hierarchy */
.match-detail-page .match-scoreline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 32px;
  margin: 0 0 10px !important; padding: 0 2px; color: var(--color-text-muted) !important;
  font-family: var(--font-mono); font-size: 10px !important; letter-spacing: .03em;
  text-transform: uppercase;
}
.match-detail-page .desktop-section-title,
.match-detail-page .h2h-title,
.match-detail-page .utility-breakdown-title,
.match-detail-page h3 {
  color: var(--color-text) !important; font-family: var(--font-display);
  font-weight: 700 !important; letter-spacing: .03em; text-transform: uppercase;
}

/* MVP / records block */
.match-detail-page .report-summary {
  display: grid !important; grid-template-columns: minmax(460px,.9fr) minmax(420px,1.1fr);
  gap: 10px !important; margin-bottom: 10px !important;
}
.match-detail-page .mvp-card,
.match-detail-page .records-card {
  max-width: none !important; border-color: var(--color-border); border-radius: var(--radius-md);
  background: var(--stats-surface); box-shadow: none;
}
.match-detail-page .mvp-card { display: grid; align-content: space-between; padding: 16px !important; }
.match-detail-page .mvp-avatar { border-radius: var(--radius-sm) !important; background: var(--color-surface-raised) !important; }
.match-detail-page .mvp-name {
  font-family: var(--font-sans); font-size: 17px !important; font-weight: 700 !important;
  letter-spacing: 0; text-transform: none;
}
.match-detail-page .mvp-badge {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px;
  border: 1px solid rgba(224,184,74,.28); border-radius: var(--radius-sm);
  background: var(--color-warning-soft); color: #f3d777 !important;
  font-family: var(--font-mono); font-size: 10px !important; letter-spacing: .06em; text-transform: uppercase;
}
.match-detail-page .mvp-metrics {
  display: grid !important; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0 !important;
  border-color: var(--color-border-soft) !important;
}
.match-detail-page .mvp-metrics > div { min-width: 0; padding: 0 12px; border-left: 1px solid var(--color-border-soft); }
.match-detail-page .mvp-metrics > div:first-child { padding-left: 0; border-left: 0; }
.match-detail-page .mvp-metrics > div:last-child { padding-right: 0; }
.match-detail-page .metric-value {
  color: var(--stats-number); font-family: var(--font-display); font-size: 22px !important;
  font-weight: 700 !important; font-variant-numeric: tabular-nums; letter-spacing: .015em;
  text-shadow: 0 1px 0 rgba(0,0,0,.8);
}
.match-detail-page .metric-label {
  color: var(--color-text-muted) !important; font-family: var(--font-mono);
  font-size: 9px !important; text-transform: uppercase;
}
.match-detail-page .records-card { padding: 5px 14px !important; }
.match-detail-page .record-row { min-height: 48px; padding: 6px 0 !important; border-bottom: 1px solid var(--color-border-soft); }
.match-detail-page .record-row:last-child { border-bottom: 0; }
.match-detail-page .record-value {
  min-width: 58px; color: var(--stats-number); font-family: var(--font-display);
  font-size: 22px !important; font-variant-numeric: tabular-nums; letter-spacing: .015em;
}
.match-detail-page .record-label {
  color: var(--color-text-muted) !important; font-family: var(--font-mono);
  font-size: 9px !important; text-transform: uppercase;
}

/* Secondary tabs */
.match-detail-page .subtab-nav,
.match-detail-page .duel-chip-nav,
.match-detail-page .utility-mode-tabs {
  display: flex; align-items: center; gap: 2px !important; min-height: 38px;
  margin: 0 0 10px !important; padding: 3px; overflow-x: auto;
  border: 1px solid var(--color-border-soft); border-radius: var(--radius-sm);
  background: var(--color-bg-elevated); scrollbar-width: none;
}
.match-detail-page .subtab-nav button,
.match-detail-page .duel-chip-nav button,
.match-detail-page .utility-mode-tabs button {
  min-height: 30px; padding: 0 11px !important; border-radius: 3px !important;
  background: transparent !important; color: var(--color-text-muted) !important;
  font-size: 11px !important; font-weight: 700 !important; white-space: nowrap;
}
.match-detail-page .subtab-nav button.bg-orange-500,
.match-detail-page .duel-chip-nav button.bg-orange-500,
.match-detail-page .utility-mode-tabs button.bg-orange-500 {
  background: var(--color-surface-raised) !important; color: var(--color-text) !important;
  box-shadow: inset 2px 0 var(--color-primary);
}

/* Dense FACEIT-like scoreboards */
.match-detail-page .score-card,
.match-detail-page .duel-matrix-card,
.match-detail-page .duel-select-card,
.match-detail-page .h2h-table-card,
.match-detail-page .utility-breakdown-card {
  border-color: var(--color-border) !important; border-radius: var(--radius-md) !important;
  background: var(--stats-bg) !important; box-shadow: none;
}
.match-detail-page .score-card { margin-bottom: 10px !important; }
.match-detail-page .team-header {
  min-height: 46px; padding: 0 12px !important; background: var(--stats-raised) !important;
  border-left-width: 3px !important; border-bottom: 1px solid var(--color-border-soft);
}
.match-detail-page .team-header-score,
.match-detail-page .team-header-name,
.match-detail-page .team-header-avg b { font-family: var(--font-display); font-weight: 700 !important; }
.match-detail-page .team-header-score { font-size: 22px !important; }
.match-detail-page .team-header-name { font-size: 17px !important; letter-spacing: .02em; text-transform: uppercase; }
.match-detail-page .team-header-half,
.match-detail-page .team-header-avg {
  color: var(--color-text-muted) !important; font-family: var(--font-mono);
  font-size: 9px !important; text-transform: uppercase;
}
.match-detail-page .score-scroll { padding: 0; }
.match-detail-page .score-table thead th,
.match-detail-page .equipment-table thead th,
.match-detail-page .duel-matrix-table thead th,
.match-detail-page .h2h-table-card thead th {
  height: 34px; padding: 7px 9px; border-bottom-color: var(--color-border-soft);
  background: #080d14; color: #788ba0;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}
.match-detail-page .score-table tbody td,
.match-detail-page .equipment-table tbody td,
.match-detail-page .h2h-table-card tbody td {
  height: 44px; padding: 8px 9px; border-bottom-color: rgba(148,173,204,.075);
  background: var(--stats-bg); color: var(--stats-number);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.match-detail-page tbody tr:hover td { background: var(--stats-surface); }
.match-detail-page .player-name,
.match-detail-page td.col-player {
  color: var(--color-text); font-family: var(--font-sans); font-size: 13px; font-weight: 600;
}
.match-detail-page .rating-badge {
  min-width: 48px; min-height: 25px; padding: 3px 7px !important;
  border: 1px solid currentColor; border-radius: var(--radius-md) !important;
  background: transparent; font-family: var(--font-display); font-size: 14px !important;
  font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2;
  letter-spacing: .02em; text-shadow: 0 1px 0 rgba(0,0,0,.75);
}
.match-detail-page .rating-badge--high { border-color: rgba(111,191,124,.42); background: rgba(111,191,124,.09); color: #78c987; }
.match-detail-page .rating-badge--mid { border-color: rgba(205,166,69,.42); background: rgba(205,166,69,.09); color: #d8b85f; }
.match-detail-page .rating-badge--low { border-color: rgba(217,120,128,.42); background: rgba(217,120,128,.09); color: #dc7e86; }
.match-detail-page .mvp-card .rating-badge {
  min-width: 54px; min-height: 28px; padding: 4px 9px !important; font-size: 16px !important;
}
.match-detail-page .statbar { height: 2px; background: var(--color-border-soft); }

/* One shared column geometry keeps both teams perfectly aligned. */
@media (min-width: 768px) {
  .match-detail-page .score-scroll {
    max-width: 100%;
    padding-bottom: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--color-border-strong) var(--stats-bg);
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
  }
  .match-detail-page .score-scroll::-webkit-scrollbar { height: 8px; }
  .match-detail-page .score-scroll::-webkit-scrollbar-track { background: var(--stats-bg); }
  .match-detail-page .score-scroll::-webkit-scrollbar-thumb {
    border: 2px solid var(--stats-bg);
    border-radius: var(--radius-pill);
    background: var(--color-border-strong);
  }
  .match-detail-page .score-table {
    width: 100% !important;
    table-layout: fixed;
  }
  .match-detail-page .score-table--general { min-width: 1380px !important; }
  .match-detail-page .score-table--advanced { min-width: 1040px !important; }
  .match-detail-page .score-table--entries { min-width: 900px !important; }
  .match-detail-page .score-table--trades { min-width: 820px !important; }
  .match-detail-page .score-table--clutches { min-width: 980px !important; }
  .match-detail-page .score-table th,
  .match-detail-page .score-table td { overflow: hidden; text-overflow: ellipsis; }
  .match-detail-page .score-table th:first-child,
  .match-detail-page .score-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 180px;
    background: var(--stats-bg);
    box-shadow: 12px 0 18px rgba(2, 6, 11, .38);
  }
  .match-detail-page .score-table thead th:first-child {
    z-index: 3;
    background: #080d14;
  }
  .match-detail-page .score-table tbody tr:hover td:first-child { background: var(--stats-surface); }
  .match-detail-page .score-table .statbar { max-width: 74px; margin-left: auto; }
}

/* Team metadata stays compact while the table itself keeps every column. */
@media (min-width: 768px) and (max-width: 1199px) {
  .match-detail-page .team-header-half { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Duels, equipment and replay */
.match-detail-page .duel-matrix-note,
.match-detail-page .equipment-info { color: var(--color-text-muted) !important; }
.match-detail-page .duel-matrix-card { padding: 8px !important; margin-bottom: 18px !important; }
.match-detail-page .duel-team-a { color: #e8c56e; }
.match-detail-page .duel-team-b { color: #7db7ef; }
.match-detail-page .duel-cell-value {
  display: inline-grid; min-width: 22px; min-height: 22px; place-items: center;
  padding: 0 5px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
}
.match-detail-page .duel-cell-value--a {
  border-color: rgba(224,168,58,.3); background: rgba(224,168,58,.13); color: #f0c75e;
}
.match-detail-page .duel-cell-value--b {
  border-color: rgba(74,143,212,.32); background: rgba(74,143,212,.14); color: #86bdf2;
}
.match-detail-page .duel-cell-value--muted {
  border-color: var(--color-border-soft); background: rgba(255,255,255,.025); color: var(--color-text-muted);
}
.match-detail-page .duel-select-card { padding: 10px 12px !important; }
.match-detail-page .duel-player-select {
  min-height: 34px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-bg-elevated) !important;
}
.match-detail-page .equipment-info {
  margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm); background: rgba(10,16,24,.55);
}
.match-detail-page .utility-breakdown-grid { gap: 10px !important; }
.match-detail-page .utility-breakdown-card { padding: 14px !important; }
.match-detail-page .equipment-score-card .utility-table-scroll { border-top: 0; }
.match-detail-page .equipment-score-card .team-header { margin: 0; }

/* 2D launch card — same map treatment as the match hero */
.replay-launch-card {
  position: relative;
  min-height: 220px;
  border-color: var(--color-border);
  background: var(--color-surface);
}
.replay-launch-card__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.replay-launch-card__map {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .72;
  filter: saturate(1.05) contrast(1.08) brightness(0.9);
}
.replay-launch-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(7, 11, 17, .9) 0%,
      rgba(7, 11, 17, .58) 42%,
      rgba(7, 11, 17, .22) 72%,
      rgba(7, 11, 17, .55) 100%),
    linear-gradient(180deg, rgba(7, 11, 17, .12) 0%, rgba(7, 11, 17, .72) 100%);
}
.replay-launch-card__body {
  position: relative;
  z-index: 1;
  padding: 28px 24px;
  max-width: 640px;
}
.replay-launch-card__copy {
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

.match-detail-page--replay .match-command-card { min-height: 96px; }
.match-detail-page--replay .match-hero-body { min-height: 96px !important; }
.match-detail-page--replay #status > .card { border-color: var(--color-border); background: rgba(13,20,30,.78); }

@media (max-width: 1100px) {
  .match-detail-page .report-summary { grid-template-columns: 1fr; }
  .match-detail-page .match-hero-copy { max-width: 64%; }
}

@media (max-width: 767px) {
  .match-detail-breadcrumb { margin-bottom: 8px; }
  .match-detail-page .top-tab-nav {
    min-height: 44px; margin: 0 -16px 12px; padding: 0 10px;
    border-width: 0 0 1px; border-radius: 0; background: transparent;
  }
  .match-detail-page .top-tab-nav a { min-height: 44px; padding: 0 10px !important; font-size: 11px !important; }
  .match-detail-page .top-tab-nav a.border-orange-500::after { right: 9px; left: 9px; }
  .match-detail-page .map-selector { margin-right: -16px; padding-right: 16px; }
  .match-detail-page .report-summary { display: flex !important; gap: 10px !important; }
  .match-detail-page .mvp-name { font-size: 16px !important; }
  .match-detail-page .mvp-badge { min-height: 24px; padding: 0 8px; }
  .match-detail-page .mvp-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 0 !important; }
  .match-detail-page .mvp-metrics > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .match-detail-page .mvp-metrics > div:nth-child(n+3) { padding-top: 10px; border-top: 1px solid var(--color-border-soft); }
  .match-detail-page .mvp-card { background: var(--color-surface) !important; border-color: var(--color-border) !important; }
  .match-detail-page .records-card.card { gap: 8px; }
  .match-detail-page .record-row { border-bottom: 0; background: var(--color-surface) !important; border-color: var(--color-border) !important; }
  .match-detail-page .subtab-nav,
  .match-detail-page .duel-chip-nav,
  .match-detail-page .utility-mode-tabs {
    margin-right: -16px !important; padding-right: 16px; border: 0; background: transparent;
  }
  .match-detail-page .subtab-nav button,
  .match-detail-page .duel-chip-nav button,
  .match-detail-page .utility-mode-tabs button { min-height: 36px; background: var(--color-surface) !important; }
  .match-detail-page .mobile-match-summary { border-radius: var(--radius-md); border-color: var(--color-border); }
  .match-detail-page .mobile-match-content { padding: 14px; }
  .match-detail-page .mobile-match-meta span {
    border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 9px;
  }
  .match-detail-page .mobile-score-num,
  .match-detail-page .mobile-team-name { font-family: var(--font-display); }
  .match-detail-page .mobile-team-badge,
  .match-detail-page .mobile-win-badge { border-radius: var(--radius-sm); }
  .match-detail-page .mobile-score-line.is-viewer-side.is-win .mobile-score-num { color: var(--color-success); }
  .match-detail-page .mobile-score-line.is-viewer-side.is-loss .mobile-score-num { color: var(--color-danger); }
  .match-detail-page .mobile-score-line.is-viewer-side.is-draw .mobile-score-num { color: var(--color-warning); }
  .match-detail-page .mobile-match-result {
    align-self: flex-end; padding: 4px 8px; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 9px;
    font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  }
  .match-detail-page .mobile-match-result--win { border-color: rgba(95,212,107,.3); background: var(--color-success-soft); color: #8ef0a5; }
  .match-detail-page .mobile-match-result--loss { border-color: rgba(239,101,112,.3); background: var(--color-danger-soft); color: #ff9a9a; }
  .match-detail-page .mobile-match-result--draw { border-color: rgba(224,184,74,.3); background: var(--color-warning-soft); color: #f3d777; }
  .match-detail-page .mobile-compact-player,
  .match-detail-page .mobile-score-table-wrap,
  .match-detail-page .mobile-player-row,
  .match-detail-page .mobile-utility-row,
  .match-detail-page .duel-matrix-card,
  .match-detail-page .duel-select-card {
    border-radius: var(--radius-md) !important; background: var(--stats-bg) !important;
    border-color: var(--color-border) !important;
  }
  .match-detail-page .mobile-compact-player::before { opacity: .72; }
  .match-detail-page .mobile-compact-player-line {
    color: var(--color-text-secondary); font-family: var(--font-mono); font-size: 12px;
    font-weight: 500;
  }
  .match-detail-page .mobile-compact-statgrid { border-top-color: var(--color-border-soft); }
  .match-detail-page .mobile-compact-statgrid span {
    color: var(--color-text-muted); font-family: var(--font-mono); font-size: 10px;
    font-weight: 600; letter-spacing: .04em;
  }
  .match-detail-page .mobile-compact-statgrid b {
    color: var(--stats-number); font-family: var(--font-display); font-size: 16px;
    font-weight: 700; letter-spacing: .015em;
  }
  .match-detail-page .mobile-compact-player-rating .rating-badge,
  .match-detail-page .mobile-player-stats .rating-badge,
  .match-detail-page .mobile-score-table .rating-badge {
    min-width: 52px; min-height: 27px; font-size: 16px !important;
  }
  .match-detail-page .mobile-score-table th,
  .match-detail-page .mobile-score-table td {
    border-bottom-color: var(--color-border-soft); background: var(--stats-bg);
    color: var(--stats-number); font-family: var(--font-mono); font-size: 13px;
    font-weight: 500;
  }
  .match-detail-page .mobile-score-table th {
    background: var(--stats-raised); color: var(--color-text-muted); font-size: 10px;
    font-weight: 600;
  }
  .match-detail-page .mobile-compact-player-name,
  .match-detail-page .mobile-team-summary-name,
  .match-detail-page .mobile-section-heading h2 {
    font-family: var(--font-display); letter-spacing: .02em; text-transform: uppercase;
  }
}

/* Match story pilot ------------------------------------------------------- */
.match-story-entry {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  margin: 0 0 16px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 93, 38, .38);
  border-radius: var(--radius-md);
  background: #0d151f;
  box-shadow: inset 3px 0 0 var(--color-primary), 0 16px 36px rgba(0, 0, 0, .18);
}
.match-story-entry__copy { display: grid; gap: 3px; min-width: 0; }
.match-story-entry__copy > span {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
}
.match-story-entry__copy strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.match-story-entry__copy p { margin: 3px 0 0; color: var(--color-text-secondary); font-size: 12px; }
.match-story-entry__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(232, 93, 38, .22);
  transition: transform .14s ease, filter .14s ease;
}
.match-story-entry__button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.match-story-entry__button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.match-story-entry__loader {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--color-primary);
  transform-origin: left;
  animation: match-story-loader 1s ease-in-out infinite;
}
@keyframes match-story-loader { 0% { transform: scaleX(.08); } 65% { transform: scaleX(.72); } 100% { transform: scaleX(1); } }

body.match-story-open { overflow: hidden; }
.match-story-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(1, 4, 8, .92);
  animation: match-story-overlay-in .2s ease-out both;
}
.match-story-shell {
  position: relative;
  width: min(430px, 100vw);
  height: min(844px, calc(100dvh - 24px));
  min-height: min(620px, calc(100dvh - 24px));
  overflow: hidden;
  border: 1px solid rgba(148, 173, 204, .2);
  border-radius: 10px;
  background: #05080d;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .72);
}
.match-story-topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  padding: 12px 14px 0;
}
.match-story-progress { display: flex; gap: 5px; height: 24px; }
.match-story-progress__item {
  flex: 1 1 0;
  min-width: 10px;
  height: 24px;
  padding: 10px 0 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.match-story-progress__item span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .22);
  transition: background .18s ease, box-shadow .18s ease;
}
.match-story-progress__item.is-complete span { background: rgba(255, 255, 255, .82); }
.match-story-progress__item.is-active span {
  background: var(--color-primary);
  box-shadow: 0 0 14px rgba(232, 93, 38, .65);
}
.match-story-topbar__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
.match-story-brand { width: 77px; height: auto; }
.match-story-topbar__row > span {
  overflow: hidden;
  color: rgba(232, 239, 246, .72);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-story-close {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3px;
  background: rgba(3, 6, 10, .6);
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.match-story-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.match-story-viewport,
.match-story-slide { position: absolute; inset: 0; }
.match-story-slide {
  --story-accent: #e85d26;
  --story-accent-soft: rgba(232, 93, 38, .62);
  overflow: hidden;
  background: #05080d;
}
.match-story-accent--cyan { --story-accent: #76c8f0; --story-accent-soft: rgba(77, 170, 229, .62); }
.match-story-accent--pink { --story-accent: #efa1bd; --story-accent-soft: rgba(239, 130, 174, .58); }
.match-story-slide[hidden] { display: none; }
.match-story-art { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.match-story-slide--result .match-story-art { opacity: .8; filter: saturate(.9) contrast(1.12) brightness(.72); }
.match-story-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 10, .12);
  box-shadow: inset 0 130px 100px rgba(3, 6, 10, .7), inset 0 -370px 170px rgba(3, 6, 10, .98);
  pointer-events: none;
}
.match-story-dossier {
  position: absolute;
  z-index: 1;
  top: 10.7%;
  right: 1.8%;
  display: grid;
  width: 42.8%;
  height: 34.7%;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  pointer-events: none;
}
.match-story-dossier > div {
  display: grid;
  grid-template-columns: clamp(42px, 12vw, 52px) minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0 7px 0 0;
}
.match-story-dossier img {
  width: clamp(32px, 9.5vw, 41px);
  height: clamp(32px, 9.5vw, 41px);
  justify-self: center;
  border-radius: 3px;
  object-fit: cover;
  opacity: .88;
  box-shadow: 0 0 12px rgba(0, 0, 0, .55);
}
.match-story-dossier img.is-fallback {
  padding: 0;
  background: #05080d;
  border: 1px solid rgba(241, 154, 87, .5);
  filter: brightness(2.05) saturate(1.12) contrast(.9);
  opacity: 1;
}
.match-story-dossier span {
  overflow: hidden;
  max-width: 100%;
  color: #f19a57;
  font-family: var(--font-mono);
  font-size: clamp(9px, 2.55vw, 12px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
  text-transform: none !important;
  transform: translateY(5px);
  white-space: nowrap;
}
.match-story-result {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 105px;
  left: 26px;
  display: grid;
  justify-items: center;
  text-align: center;
}
.match-story-kicker,
.match-story-person span {
  color: #e98a54;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.match-story-result h2 {
  max-width: 350px;
  margin: 10px 0 20px;
  color: #f4efe8;
  font-family: var(--font-display);
  font-size: clamp(25px, 7vw, 38px);
  line-height: .98;
  text-transform: uppercase;
}
.match-story-result h2 span { color: #8198ae; font-size: .55em; }
.match-story-score { display: flex; align-items: center; gap: 18px; }
.match-story-score strong {
  min-width: 84px;
  color: #f7efe4;
  font-family: var(--font-display);
  font-size: 92px;
  line-height: .8;
  font-variant-numeric: tabular-nums;
}
.match-story-score i { width: 18px; height: 3px; background: var(--color-primary); }
.match-story-result p {
  margin: 18px 0 0;
  color: #8198ae;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
}

.match-story-records,
.match-story-recap {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 76px;
  left: 22px;
}
.match-story-records h2,
.match-story-recap h2 {
  margin: 8px 0 17px;
  color: #f7efe4;
  font-family: var(--font-display);
  font-size: clamp(31px, 9vw, 43px);
  line-height: .9;
  text-transform: uppercase;
}
.match-story-record-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.match-story-record-grid article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 173, 204, .18);
  border-radius: 5px;
  background: rgba(4, 8, 13, .82);
  backdrop-filter: blur(10px);
}
.match-story-record-grid img,
.match-story-recap article img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(232, 93, 38, .7);
  border-radius: 50%;
  background: #101720;
  object-fit: cover;
}
.match-story-record-grid img.is-fallback,
.match-story-recap article img.is-fallback {
  padding: 0;
  background: #102131;
  filter: brightness(2.05) saturate(1.12) contrast(.9);
}
.match-story-record-grid div,
.match-story-recap article div { display: grid; min-width: 0; gap: 3px; }
.match-story-record-grid span,
.match-story-recap article span {
  overflow: hidden;
  color: #7fa5c0;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.15;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.match-story-record-grid strong,
.match-story-recap article strong {
  overflow: hidden;
  color: #e8f0f6;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-story-record-grid b {
  justify-self: end;
  color: #f3a16c;
  font-family: var(--font-display);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.match-story-award-copy {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 78px;
  left: 24px;
  display: grid;
  gap: 12px;
}
.match-story-person { display: flex; align-items: center; gap: 12px; }
.match-story-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border: 2px solid var(--story-accent);
  border-radius: 50%;
  background: #101720;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.match-story-avatar.is-fallback { padding: 0; background: #102131; filter: brightness(2.05) saturate(1.16) contrast(.9); opacity: 1; }
.match-story-person > div { display: grid; gap: 3px; min-width: 0; }
.match-story-person strong {
  overflow: hidden;
  color: #dce9f4;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-story-title-row { display: flex; align-items: center; gap: 11px; }
.match-story-title-row img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 6px;
  border: 1px solid var(--story-accent-soft);
  border-radius: 50%;
  background: rgba(4, 8, 13, .78);
  filter: brightness(0) invert(1);
}
.match-story-title-row h2 {
  margin: 0;
  color: #f7efe4;
  font-family: var(--font-display);
  font-size: clamp(31px, 9vw, 47px);
  line-height: .88;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.match-story-primary-stat { display: flex; align-items: end; gap: 14px; }
.match-story-primary-stat strong {
  color: #f7efe4;
  font-family: var(--font-display);
  font-size: clamp(64px, 19vw, 94px);
  line-height: .73;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.match-story-primary-stat span {
  max-width: 155px;
  padding-bottom: 2px;
  color: var(--story-accent);
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.05;
  letter-spacing: .08em;
}
.match-story-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 173, 204, .17);
  border-bottom: 1px solid rgba(148, 173, 204, .17);
}
.match-story-facts--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.match-story-facts > div,
.match-story-facts > li { min-width: 0; padding: 0 8px; text-align: center; }
.match-story-facts > li { display: grid; place-items: center; color: #84bfe9; font-family: var(--font-mono); font-size: 9px; font-weight: 600; line-height: 1.25; text-transform: uppercase; }
.match-story-facts > div + div,
.match-story-facts > li + li { border-left: 1px solid rgba(148, 173, 204, .16); }
.match-story-facts dt {
  color: #84bfe9;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
}
.match-story-facts dd {
  margin: 4px 0 0;
  color: #f7efe4;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
}
.match-story-badge {
  justify-self: start;
  padding: 7px 9px;
  border: 1px solid var(--story-accent-soft);
  border-radius: 3px;
  color: var(--story-accent);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Poster award layout — image-led like the generated 9:16 art direction. */
.match-story-topbar { padding: 16px 28px 0; }
.match-story-progress { gap: 6px; height: 20px; }
.match-story-progress[hidden] { display: none; }
.match-story-progress__item { min-width: 4px; height: 20px; padding: 7px 0 10px; }
.match-story-progress__item span { height: 3px; background: rgba(255, 255, 255, .24); }
.match-story-topbar__row {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 34px;
}
.match-story-topbar__row > span {
  color: rgba(238, 243, 247, .88);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.match-story-topbar__row > span i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 9px 2px;
  border-radius: 50%;
  background: #4fb6e9;
}
.match-story-close {
  position: absolute;
  right: -18px;
  min-height: 28px;
  padding: 0 6px;
  border-color: transparent;
  background: rgba(3, 6, 10, .42);
  font-size: 7px;
}
.match-story-slide--poster .match-story-art {
  object-position: center top;
  filter: saturate(.94) contrast(1.04) brightness(.84);
}
.match-story-slide--poster .match-story-scrim {
  background: linear-gradient(180deg, rgba(2, 4, 7, .18) 0%, rgba(2, 4, 7, .05) 34%, rgba(2, 4, 7, .78) 51%, #05080d 67%, #05080d 100%);
  box-shadow: inset 0 120px 90px rgba(2, 4, 7, .62);
}
.match-story-poster-copy {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 60px;
  left: 24px;
  display: grid;
  gap: 7px;
}
.match-story-poster-person {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  margin-bottom: 2px;
}
.match-story-poster-person .match-story-avatar {
  width: 66px;
  height: 66px;
  flex-basis: 66px;
  border-color: var(--story-accent);
  box-shadow: 0 0 0 3px rgba(4, 7, 11, .75), 0 0 22px var(--story-accent-soft);
}
.match-story-poster-person strong {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #dce9f4;
  font: 700 24px/1.15 var(--font-display);
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-story-poster-person.is-long strong { font-size: 20px; letter-spacing: -.025em; }
.match-story-poster-person.is-xlong strong { font-size: 17px; letter-spacing: -.04em; }
.match-story-poster-eyebrow {
  color: var(--story-accent);
  font: 700 9px/1 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.match-story-poster-title {
  margin: 3px 0 0;
  color: #f5eadc;
  font: 800 clamp(32px, 9.5vw, 46px)/.88 var(--font-display);
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
}
.match-story-poster-description {
  max-width: 370px;
  margin: 1px 0 3px;
  color: #aab8c4;
  font: 500 10px/1.4 var(--font-mono);
}
.match-story-poster-metric {
  display: flex;
  align-items: end;
  gap: 13px;
  min-width: 0;
  margin-top: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--story-accent-soft);
}
.match-story-poster-metric strong {
  color: #f5eadc;
  font: 800 clamp(66px, 19vw, 94px)/.73 var(--font-display);
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.match-story-poster-metric span {
  max-width: 115px;
  padding-bottom: 1px;
  color: var(--story-accent);
  font: 700 12px/.95 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.match-story-slide--personal_nightmare .match-story-poster-metric span {
  text-transform: none;
}
.match-story-poster-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 8px 0 9px;
  border-bottom: 1px solid rgba(232, 93, 38, .24);
}
.match-story-poster-facts--1 { grid-template-columns: minmax(0, 1fr); }
.match-story-poster-facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.match-story-poster-facts > div {
  min-width: 0;
  padding: 0 7px;
  text-align: center;
}
.match-story-poster-facts > div + div { border-left: 1px solid rgba(118, 200, 240, .22); }
.match-story-poster-facts dd {
  margin: 0;
  overflow: hidden;
  color: #f5eadc;
  font: 800 20px/1 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-story-poster-facts dt {
  margin-top: 5px;
  overflow: hidden;
  color: #56b9e8;
  font: 700 7px/1.1 var(--font-mono);
  letter-spacing: .1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.match-story-poster-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}
.match-story-poster-bottom > img { width: 116px; height: auto; }
.match-story-slide--poster[data-story-chapter="personal"] .match-story-poster-copy { gap: 5px; }
.match-story-slide--poster[data-story-chapter="personal"] .match-story-poster-person .match-story-avatar {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}
.match-story-slide--poster[data-story-chapter="personal"] .match-story-poster-title {
  margin-top: 0;
  font-size: clamp(30px, 8.8vw, 41px);
}
.match-story-slide--poster[data-story-chapter="personal"] .match-story-poster-bottom {
  justify-content: center;
  min-height: 22px;
}
.match-story-slide--poster[data-story-chapter="personal"] .match-story-poster-bottom > img { width: 108px; }
.match-story-slide--poster[data-story-chapter="personal"] .match-story-poster-metric { margin-top: 2px; }
.match-story-slide--poster[data-story-chapter="personal"] .match-story-poster-facts { padding-top: 7px; padding-bottom: 7px; }
.match-story-slide--personal_nightmare .match-story-poster-title,
.match-story-slide--courage_before_timing .match-story-poster-title,
.match-story-slide--lowtab_with_character .match-story-poster-title,
.match-story-slide--main_thing_dont_mess_up .match-story-poster-title {
  font-size: clamp(28px, 8.6vw, 42px);
}
.match-story-choice {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 104px;
  left: 28px;
  display: grid;
  gap: 13px;
  text-align: center;
}
.match-story-choice h2 {
  margin: 0;
  color: #f5eadc;
  font: 800 42px/.92 var(--font-display);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.match-story-choice p {
  max-width: 330px;
  margin: 0 auto 6px;
  color: #a7b6c3;
  font: 500 11px/1.45 var(--font-mono);
}
.match-story-choice button {
  min-height: 48px;
  border-radius: 4px;
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.match-story-choice__primary {
  border: 1px solid #f07a2b;
  background: #e85d26;
  color: #fff;
}
.match-story-choice__secondary {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(3, 6, 10, .72);
  color: #d8e2e9;
}
.match-story-overlay.is-choice .match-story-controls > button:last-child { visibility: hidden; }
.match-story-slide--choice .match-story-art { filter: saturate(.75) brightness(.5); }
.match-story-slide--choice .match-story-scrim { box-shadow: inset 0 160px 130px rgba(3, 6, 10, .76), inset 0 -560px 220px rgba(3, 6, 10, .98); }
.match-story-slide--warmup .match-story-title-row h2 { font-size: clamp(27px, 8vw, 40px); }
.match-story-slide--personal_nightmare .match-story-title-row h2 {
  font-size: clamp(29px, 8.4vw, 43px);
}

.match-story-recap > p {
  max-width: 340px;
  margin: -8px 0 13px;
  color: #8da5b8;
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.45;
  text-transform: uppercase;
}
.match-story-recap__teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.match-story-recap__teams > section {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(148, 173, 204, .17);
  border-radius: 5px;
  background: rgba(4, 8, 13, .84);
  backdrop-filter: blur(10px);
}
.match-story-recap__teams h3 {
  overflow: hidden;
  margin: 0 3px 6px;
  color: #d9e5ee;
  font-family: var(--font-display);
  font-size: 12px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.match-story-recap article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 49px;
  border-top: 1px solid rgba(148, 173, 204, .1);
}
.match-story-recap article img { width: 30px; height: 30px; }
.match-story-recap article strong { font-size: 12px; }
.match-story-recap article span { font-size: 6px; }
.match-story-recap article b { color: #f0a06b; font-family: var(--font-display); font-size: 12px; }

.match-story-hit {
  position: absolute;
  z-index: 3;
  top: 68px;
  bottom: 64px;
  width: 23%;
  border: 0;
  background: transparent;
}
.match-story-hit--prev { left: 0; }
.match-story-hit--next { right: 0; }
.match-story-hit:disabled { pointer-events: none; }
.match-story-controls {
  position: absolute;
  z-index: 5;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  min-height: 38px;
}
.match-story-controls button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 3px;
  background: rgba(3, 6, 10, .68);
  color: #edf3f8;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.match-story-controls button:last-child { border-color: rgba(232, 93, 38, .6); background: rgba(232, 93, 38, .9); }
.match-story-controls button:disabled { opacity: .28; }
.match-story-controls button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.match-story-controls span {
  color: rgba(255, 255, 255, .58);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}
.match-story-unavailable {
  position: fixed;
  z-index: 300;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 5px;
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
}
.match-story-unavailable strong { color: var(--color-text); font-family: var(--font-display); font-size: 20px; }

.match-story-slide.is-active .match-story-art { animation: match-story-art-in 1.1s cubic-bezier(.2,.7,.2,1) both; }
.match-story-slide.is-active .match-story-result,
.match-story-slide.is-active .match-story-award-copy,
.match-story-slide.is-active .match-story-records,
.match-story-slide.is-active .match-story-recap,
.match-story-slide.is-active .match-story-poster-copy,
.match-story-slide.is-active .match-story-choice { animation: match-story-copy-in .48s .08s ease-out both; }
@keyframes match-story-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes match-story-art-in { from { transform: scale(1.035); opacity: .72; } to { transform: scale(1); opacity: 1; } }
@keyframes match-story-copy-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 767px) {
  .match-story-entry { align-items: stretch; flex-direction: column; gap: 13px; }
  .match-story-entry__button { width: 100%; }
  .match-story-overlay { padding: 0; }
  .match-story-shell { width: 100vw; height: 100dvh; min-height: 0; border: 0; border-radius: 0; }
  .match-story-topbar { padding-right: 20px; padding-left: 20px; }
  .match-story-close { right: -10px; }
  .match-story-poster-copy { right: 20px; left: 20px; }
  .match-story-award-copy { right: 20px; bottom: 72px; left: 20px; }
  .match-story-person strong { font-size: 23px; }
  .match-story-avatar { width: 64px; height: 64px; flex-basis: 64px; }
  .match-story-record-grid article { grid-template-columns: 38px minmax(0, 1fr); }
  .match-story-record-grid img { width: 38px; height: 38px; }
  .match-story-record-grid b { grid-column: 2; font-size: 22px; }
}

@media (max-height: 700px) {
  .match-story-poster-copy { bottom: 54px; gap: 5px; }
  .match-story-poster-person .match-story-avatar { width: 50px; height: 50px; flex-basis: 50px; }
  .match-story-poster-person strong { font-size: 20px; }
  .match-story-poster-title { font-size: 30px; }
  .match-story-poster-metric strong { font-size: 62px; }
  .match-story-poster-facts { padding: 6px 0; }
  .match-story-poster-facts dd { font-size: 16px; }
  .match-story-poster-bottom > img { width: 72px; }
  .match-story-choice { bottom: 76px; }
  .match-story-award-copy { bottom: 58px; gap: 8px; }
  .match-story-avatar { width: 54px; height: 54px; flex-basis: 54px; }
  .match-story-person strong { font-size: 20px; }
  .match-story-title-row h2 { font-size: 31px; }
  .match-story-primary-stat strong { font-size: 66px; }
  .match-story-facts { padding: 8px 0; }
  .match-story-result { bottom: 78px; }
  .match-story-score strong { font-size: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  .match-story-overlay,
  .match-story-slide.is-active .match-story-art,
  .match-story-slide.is-active .match-story-result,
  .match-story-slide.is-active .match-story-award-copy,
  .match-story-slide.is-active .match-story-records,
  .match-story-slide.is-active .match-story-recap,
  .match-story-slide.is-active .match-story-poster-copy,
  .match-story-slide.is-active .match-story-choice,
  .match-story-entry__loader { animation: none !important; }
  .match-story-entry__button { transition: none; }
}
