/* Match reports: a single type scale, fixed score axis and inline event groups. */
@font-face {
  font-family: "Report Sans";
  src: url("fonts/dm-sans-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.match-report {
  font-family: "Report Sans", Arial, sans-serif;
  --report-accent: var(--text);
  font-synthesis: none;
}
:root[data-theme="dark"] .match-report {
  --surface: #242424;
  --surface-hover: #4b4b4b;
  --border: #363636;
  --secondary: #c5c5c5;
  --text: #f5f5f5;
}
:root[data-theme="light"] .match-report {
  --text: #202427;
  --secondary: #596167;
  --surface: #faf8f2;
  --surface-hover: #e7e3d9;
  --border: #dfdcd3;
}
body.match-page #fixtureDialog[open] {
  outline: none;
  max-width: 1240px;
}
body.match-page #fixtureDialog > .dialog-head {
  display: none;
}
body.match-page .match-report .match-hero {
  background:
    radial-gradient(ellipse 70% 160% at 0% 0%, color-mix(in srgb, var(--home-team-color, #77818c) 20%, transparent) 0%, color-mix(in srgb, var(--home-team-color, #77818c) 10%, transparent) 30%, color-mix(in srgb, var(--home-team-color, #77818c) 1%, transparent) 65%, transparent 100%),
    radial-gradient(ellipse 70% 160% at 100% 0%, color-mix(in srgb, var(--away-team-color, #77818c) 20%, transparent) 0%, color-mix(in srgb, var(--away-team-color, #77818c) 10%, transparent) 30%, color-mix(in srgb, var(--away-team-color, #77818c) 1%, transparent) 65%, transparent 100%),
    var(--surface);
  border: 0;
  border-radius: 0 0 16px 16px;
  padding: 20px 32px 24px;
  margin: 0 0 24px;
}
body.match-page .play-tracker {
  overflow: hidden;
  padding: 0;
  background: var(--surface);
}
.tracker-header,
.tracker-scoreline,
.tracker-event-summary {
  display: flex;
  align-items: center;
}
.tracker-header {
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.tracker-header .eyebrow,
.tracker-header h3 { margin: 0; }
.tracker-header .eyebrow { font-size: 10px; color: var(--secondary); }
.tracker-header h3 { font-size: 16px; }
.tracker-fullscreen {
  border: 1px solid var(--border);
  background: var(--surface-hover);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 11px;
  min-height: 36px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.tracker-scoreline {
  justify-content: center;
  gap: clamp(12px, 4vw, 36px);
  padding: 14px 18px 10px;
}
.tracker-scoreline > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
}
.tracker-scoreline > span b { overflow-wrap: anywhere; }
.tracker-scoreline .crest { width: 22px; height: 22px; object-fit: contain; }
.tracker-scoreline > strong {
  flex: none;
  font: 650 19px/1 Matchday, sans-serif;
  font-variant-numeric: tabular-nums;
}
.tracker-pitch {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.78;
  min-height: 220px;
  max-height: 580px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 9.8%, #ffffff09 9.8% 19.6%),
    #267746;
}
.tracker-pitch > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #ffffff8c;
  stroke-width: 3;
  pointer-events: none;
}
.tracker-half-label {
  position: absolute;
  bottom: 10px;
  z-index: 1;
  padding: 4px 8px;
  color: #fff;
  background: #101a18a8;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.tracker-home-label { left: 10px; }
.tracker-away-label { right: 10px; }
.tracker-player {
  position: absolute;
  left: var(--tracker-x);
  top: var(--tracker-y);
  z-index: 2;
  width: clamp(22px, 3vw, 34px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.tracker-player {
  position: absolute;
  left: var(--tracker-x);
  top: var(--tracker-y);
  z-index: 2;
  width: clamp(30px, 4.2vw, 46px);
  height: clamp(30px, 4.2vw, 46px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  color: #fff;
  background: #1265b7;
  box-shadow: 0 2px 5px #0008;
  border-radius: 50%;
  font: inherit;
}
.tracker-player b { font-size: 11px; line-height: 1; }
.tracker-player small { position: absolute; top: calc(100% + 2px); max-width: 74px; color: #fff; font-size: 8px; line-height: 1.1; text-align: center; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracker-player-home { background: #1769b4; }
.tracker-player-away { background: #a52f32; }
.tracker-player.is-event-player {
  box-shadow: 0 0 0 3px #ffe773, 0 0 18px #ffe773a6;
  z-index: 4;
}
.tracker-shot {
  position: absolute;
  left: var(--shot-x);
  top: var(--shot-y);
  z-index: 5;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1.5px solid #fff;
  border-radius: 50%;
  padding: 0;
  appearance: none;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: #d44b3e;
  box-shadow: 0 1px 4px #0009;
  font-size: 7px;
}
.tracker-shot-target { background: #27a9ce; }
.tracker-shot-goal { width: 17px; height: 17px; background: #e3a82c; box-shadow: 0 0 0 3px #fff8, 0 1px 5px #000a; }
.tracker-shot.is-current-shot { box-shadow: 0 0 0 3px #ffe773, 0 0 12px #ffe773cc; z-index: 6; }
.tracker-live-ball {
  position: absolute;
  left: var(--ball-x);
  top: var(--ball-y);
  z-index: 7;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  border: 1px solid #15201a;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 32%, #bfc6c1 36% 100%);
  box-shadow: 0 1px 5px #000a;
}
.tracker-live-ball.is-shot-moving { animation: tracker-shot-travel 850ms cubic-bezier(.2,.75,.25,1) both; }
@keyframes tracker-shot-travel {
  from { left: var(--ball-from-x); top: var(--ball-from-y); }
  to { left: var(--ball-x); top: var(--ball-y); }
}
.tracker-live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #ed4146; animation: tracker-live-pulse 1.5s ease-out infinite; }
@keyframes tracker-live-pulse { 50% { box-shadow: 0 0 0 5px #ed414633; } }
.tracker-pitch-pulse { position: absolute; inset: 0; z-index: 5; pointer-events: none; border: 3px solid #ffe773; animation: tracker-event-pulse 1.8s ease-out forwards; }
@keyframes tracker-event-pulse { 100% { opacity: 0; transform: scale(.985); } }
.tracker-lineup-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; text-shadow: 0 1px 4px #000; }
.tracker-event-summary {
  gap: 9px;
  min-height: 50px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.tracker-current-event { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.tracker-current-event > div { min-width: 0; }
.tracker-current-event b,.tracker-current-event small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracker-current-event b { font-size: 13px; }
.tracker-current-event small { margin-top: 3px; color: var(--secondary); font-size: 11px; }
.tracker-current-event time { margin-left: auto; color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.tracker-live-bar { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.tracker-clock { flex: none; min-width: 54px; color: var(--text); font: 650 16px/1 Matchday,sans-serif; font-variant-numeric: tabular-nums; }
.tracker-updated { flex: none; color: var(--secondary); font-size: 10px; }
.tracker-replay-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--border); background: var(--surface-alt, transparent); }
.tracker-replay-step, .tracker-replay-toggle { flex: none; min-height: 30px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 650; cursor: pointer; }
.tracker-replay-step { width: 30px; padding: 0; }
.tracker-replay-toggle:hover, .tracker-replay-step:hover { border-color: var(--accent); color: var(--accent); }
.tracker-replay-count { flex: none; color: var(--secondary); font-size: 11px; font-variant-numeric: tabular-nums; }
.tracker-replay-range { flex: 1 1 100px; width: 100%; min-width: 70px; accent-color: var(--accent); cursor: pointer; }
.tracker-replay-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 12px; }
.tracker-event-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.tracker-event-list li { display: grid; grid-template-columns: 42px 92px minmax(0,1fr); align-items: center; gap: 8px; min-width: 0; padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 11px; }
.tracker-event-list time { color: var(--secondary); font-variant-numeric: tabular-nums; }
.tracker-event-list span { color: var(--secondary); }
.tracker-event-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tracker-empty { color: var(--secondary); font-size: 12px; }
.tracker-event-summary .tracker-kind { width: 26px; height: 26px; }
.tracker-event-summary strong { color: var(--text); }
.tracker-event-summary > span:not(.tracker-kind) { color: var(--secondary); }
.tracker-event-summary time { margin-left: auto; color: var(--secondary); }
.tracker-kind { display: inline-grid; place-items: center; width: 23px; height: 23px; flex: none; }
.tracker-kind .event-glyph { width: 22px; height: 22px; }
.tracker-note { margin: 0; padding: 10px 14px; color: var(--secondary); font-size: 10px; }
.play-tracker:fullscreen { width: 100vw; height: 100vh; max-height: 100vh; display: flex; flex-direction: column; overflow: auto; background: var(--surface); }
.play-tracker:fullscreen .tracker-pitch { flex: 1; min-height: 0; max-height: none; aspect-ratio: auto; }
@media (max-width: 600px) {
  .tracker-scoreline { gap: 9px; padding-inline: 10px; }
  .tracker-scoreline > span { gap: 5px; font-size: 11px; }
  .tracker-scoreline .crest { width: 18px; height: 18px; }
  .tracker-scoreline > strong { font-size: 16px; }
  .tracker-pitch { min-height: 190px; }
  .play-tracker:fullscreen .tracker-pitch { min-height: 0; }
  .tracker-event-list { grid-template-columns: minmax(0,1fr); }
  .tracker-event-list li { grid-template-columns: 38px 82px minmax(0,1fr); padding: 8px 10px; }
  .tracker-controls { gap: 6px; padding-inline: 9px; }
  .tracker-controls button { width: 30px; height: 30px; }
  .tracker-controls > span { font-size: 9px; }
  .tracker-replay-bar { gap: 6px; padding: 6px 10px; }
  .tracker-replay-count { display: none; }
  .tracker-replay-detail { font-size: 11px; }
}
body.match-page .match-report .fixture-competition {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--secondary);
}
.match-report .fixture-competition .competition-link {
  font:
    600 12px "Report Sans",
    Arial,
    sans-serif;
  color: var(--secondary);
}
.match-report .fixture-competition .league-logo {
  height: 22px;
  width: 22px;
}
body.match-page .match-report .fixture-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  width: 100%;
  max-width: 640px;
  gap: 20px;
  margin: auto;
}
body.match-page .match-report .score-team,
body.match-page .match-report .score-team:last-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}
.match-report .score-team:first-child {
  background: transparent;
}
.match-report .score-team:last-child {
  background: transparent;
}
body.match-page .match-report .score-team .crest {
  width: 50px;
  height: 50px;
  order: 0;
}
body.match-page .match-report .score-team strong {
  font:
    650 18px/1.25 "Report Sans",
    Arial,
    sans-serif;
  color: var(--text);
  order: 1;
}
.match-report .team-short {
  display: none;
}
body.match-page .match-report .fixture-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
body.match-page .match-report .fixture-score > b {
  font:
    750 46px/1.15 "Report Sans",
    Arial,
    sans-serif;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.match-report .fixture-score small {
  font:
    500 12px/1.4 "Report Sans",
    Arial,
    sans-serif;
  color: var(--secondary);
}
.match-report .fixture-score small:empty {
  display: none;
}
body.match-page .match-report .hero-scorers {
  display: grid;
  width: 100%;
  max-width: 640px;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 14px;
  margin: 24px auto 0;
  align-items: start;
}
.match-report .hero-scorers > div {
  min-width: 0;
}
.match-report .hero-scorers > span {
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.match-report .hero-scorers > span .event-glyph {
  width: 16px;
  height: 16px;
}
body.match-page .match-report .scorer-row {
  font:
    550 13px/1.8 "Report Sans",
    Arial,
    sans-serif;
  padding: 0;
  min-height: 0;
  margin: 0;
}
.match-report .scorer-row small {
  font:
    400 12px/1.8 "Report Sans",
    Arial,
    sans-serif;
  color: var(--secondary);
  margin-left: 4px;
  white-space: normal;
}
.match-report .match-actions {
  gap: 8px;
  margin-top: 22px;
  justify-content: center;
}
.match-report .match-actions .button {
  font:
    600 12px "Report Sans",
    Arial,
    sans-serif;
  min-height: 34px;
  padding: 7px 14px;
}
/* Navigation shares the compact scoreboard's baseline and does not jump on scroll. */
.match-report .mobile-match-header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 68px;
  height: 54px;
  background: var(--surface);
  z-index: 65;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--border);
}
.match-report .mobile-match-header > button {
  background: none;
  color: var(--text);
  border: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  min-height: 40px;
}
.match-report .mobile-match-header > button .ui-icon {
  transform: rotate(180deg);
}
.match-report .report-compact-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
}
.match-report .report-compact-score button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: var(--text);
  font:
    600 13px "Report Sans",
    Arial,
    sans-serif;
  padding: 0;
  min-height: 40px;
}
.match-report .report-compact-score button:last-child {
  flex-direction: row-reverse;
}
.match-report .report-compact-score strong {
  font:
    750 21px/1 "Report Sans",
    Arial,
    sans-serif;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.match-report .mobile-match-header .crest {
  width: 25px;
  height: 25px;
}
.match-report:not(.report-scrolled) .report-compact-score {
  visibility: hidden;
}
body.match-page .match-report .fixture-tabs {
  top: 122px;
  gap: 25px;
  padding: 0 20px;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid var(--border);
  height: 54px;
  min-height: 54px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 12px 12px 0 0;
}
body.match-page .match-report .fixture-tabs button {
  font:
    500 15px "Report Sans",
    Arial,
    sans-serif;
  white-space: nowrap;
  border-radius: 0;
  min-height: 54px;
  color: var(--secondary);
}
body.match-page .match-report .fixture-tabs button[aria-selected="true"] {
  font-weight: 700;
  color: var(--text);
}
body.match-page .match-report .fixture-tabs button[aria-selected="true"]:after {
  background: var(--text);
  height: 3px;
  border-radius: 3px;
  bottom: 0;
}
.match-report .match-score-dock,
.match-report .mobile-match-identity {
  display: none !important;
}
body.match-page .match-report .fixture-content {
  padding: 0;
  background: var(--bg);
}
body.match-page .match-report .match-card {
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  padding: 24px;
  margin: 18px 0;
}
body.match-page .match-report .match-card h3 {
  font:
    700 19px/1.4 "Report Sans",
    Arial,
    sans-serif;
  letter-spacing: -0.3px;
  margin: 0 0 18px;
}
/* The pitch is the card surface; nested card padding wastes formation space. */
body.match-page .match-report .match-card.lineup-card {
  padding: 0;
}
.match-report .match-rail .rail-section h3 {
  font:
    700 17px/1.4 "Report Sans",
    Arial,
    sans-serif;
  letter-spacing: -0.2px;
}
.match-report .match-rail .rail-section {
  border-radius: 14px;
  padding: 22px;
}
.match-report .match-stream {
  max-width: 720px;
  margin: auto;
  padding: 0 0 8px;
}
.match-report .report-event {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  direction: ltr;
}
.match-report .report-event time {
  font:
    650 15px/1.3 "Report Sans",
    Arial,
    sans-serif;
  white-space: nowrap;
  min-width: 28px;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.match-report .report-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.match-report .report-icon .event-glyph,
.match-report .report-sub-icon {
  width: 20px;
  height: 20px;
  display: block;
}
.match-report .report-score {
  background: var(--surface-hover);
  border-radius: 20px;
  padding: 3px 8px;
  min-width: 39px;
  box-sizing: border-box;
  text-align: center;
  font:
    700 13px/1.2 "Report Sans",
    Arial,
    sans-serif;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.match-report .report-names {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  max-width: 65%;
}
.match-report .report-names strong,
.match-report .report-player {
  font:
    650 16px/1.35 "Report Sans",
    Arial,
    sans-serif;
  color: var(--text);
  overflow-wrap: break-word;
}
.match-report .report-player {
  border: 0;
  padding: 0;
  background: none;
  text-align: inherit;
  cursor: pointer;
  max-width: 100%;
}
.match-report .report-player:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.match-report .report-names small,
.match-report .report-names small .report-player,
.match-report .report-names small strong {
  font:
    400 14px/1.35 "Report Sans",
    Arial,
    sans-serif;
  color: var(--secondary);
}
.match-report .report-away {
  flex-direction: row-reverse;
  text-align: right;
}
.match-report .report-away .report-names {
  align-items: flex-end;
}
.match-report .report-neutral {
  justify-content: center;
}
.match-report .report-period {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--secondary);
  margin: 10px 0;
  font:
    500 12px/1.2 "Report Sans",
    Arial,
    sans-serif;
}
.match-report .report-period:before,
.match-report .report-period:after {
  content: "";
  height: 1px;
  background: var(--border);
  flex: 1;
}
.match-report .report-period > span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 30px;
  background: var(--surface-hover);
  white-space: nowrap;
}
.match-report .report-period svg {
  width: 17px;
  height: 17px;
}
.match-report .match-overflow {
  position: relative;
}
.match-report .match-overflow > summary {
  display: grid;
  place-items: center;
  height: 44px;
  list-style: none;
  cursor: pointer;
}
.match-report .match-overflow > summary::-webkit-details-marker {
  display: none;
}
.match-report .match-overflow > div {
  position: absolute;
  right: 0;
  top: 46px;
  min-width: 190px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px #0003;
}
.match-report .match-overflow button,
.match-report .match-overflow a {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: var(--text);
  font:
    500 13px "Report Sans",
    Arial,
    sans-serif;
  text-align: left;
  text-decoration: none;
  border-radius: 7px;
}
.match-report .match-overflow button:hover,
.match-report .match-overflow a:hover {
  background: var(--surface-hover);
}
.match-report .match-overflow .match-utilities {
  display: block;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.match-report .match-utility-status:not(:empty) {
  display: block;
  padding: 8px 12px;
  font-size: 12px;
}
.match-report .stat-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 18px 2px 0;
  margin: 0;
  font:
    500 12px/1.4 "Report Sans",
    Arial,
    sans-serif;
}
.match-report .stat-legend > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.match-report .stat-legend > span:last-child {
  justify-content: flex-end;
  text-align: right;
}
.match-report .stat-legend i {
  flex: none;
}
.match-report .comparison-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  background: none;
  overflow: visible;
}
.match-report .comparison-half {
  display: flex;
  min-width: 0;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.match-report .comparison-half:first-child {
  justify-content: flex-end;
}
.match-report .comparison-half i {
  display: block;
  height: 6px;
  flex: none;
  border-radius: 4px;
}
.match-report .comparison-half:first-child i {
  background: var(--home);
}
.match-report .comparison-half:last-child i {
  background: var(--away);
}
.match-report .comparison-label {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  font:
    500 13px "Report Sans",
    Arial,
    sans-serif;
}
@media (min-width: 760px) {
  .match-report .scorer-row {
    font-size: 14px;
  }
  .match-report .match-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
  }
  .match-report .match-main {
    min-width: 0;
  }
  .match-report .match-layout.without-rail {
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
  }
  .match-report .match-rail {
    top: 138px;
  }
}
@media (max-width: 759px) {
  body.match-page .match-report .match-hero {
    display: block !important;
    padding: 12px 16px 24px;
    margin: 0;
    border-radius: 0;
  }
  .match-report .mobile-match-header {
    top: 0;
    height: 54px;
    padding: 0 8px;
  }
  body.match-page .match-report .fixture-tabs {
    top: 54px;
    height: 50px;
    min-height: 50px;
    gap: 23px;
    padding: 0 16px;
    border-radius: 0;
  }
  body.match-page .match-report .fixture-tabs button {
    font-size: 15px;
    min-height: 50px;
  }
  body.match-page .match-report .fixture-scoreboard {
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    gap: 10px;
  }
  body.match-page .match-report .score-team,
  .match-report .score-team:last-child {
    gap: 9px;
    padding: 0 12px;
  }
  body.match-page .match-report .score-team .crest {
    width: 40px;
    height: 40px;
  }
  body.match-page .match-report .score-team strong {
    font-size: 17px;
  }
  .match-report .team-full {
    display: none;
  }
  .match-report .team-short {
    display: inline;
  }
  body.match-page .match-report .fixture-score > b {
    font-size: 38px;
    letter-spacing: -0.8px;
  }
  .match-report .fixture-score small {
    font-size: 12px;
  }
  body.match-page .match-report .fixture-competition {
    margin: 0 0 16px;
    font-size: 10px;
    gap: 9px;
  }
  .match-report .fixture-competition .competition-link {
    font-size: 11px;
    font-weight: 500;
  }
  .match-report .fixture-competition .league-logo {
    height: 21px;
    width: 21px;
  }
  body.match-page .match-report .hero-scorers {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 9px;
    margin-top: 22px;
  }
  body.match-page .match-report .scorer-row {
    font-size: 13px;
    line-height: 1.85;
  }
  .match-report .scorer-row small {
    font-size: 12px;
    line-height: 1.85;
  }
  .match-report .hero-scorers > span .event-glyph {
    width: 15px;
    height: 15px;
  }
  .match-report .match-actions {
    display: none;
  }
  body.match-page .match-report .fixture-content {
    padding: 0 16px;
  }
  body.match-page .match-report .match-card {
    border-radius: 13px;
    padding: 18px 14px;
    margin: 16px 0;
  }
  body.match-page .match-report .match-card h3 {
    font-size: 18px;
    margin: 0 0 20px;
  }
  body.match-page .match-report .fixture-content:has(> .lineup-card) {
    padding: 0;
  }
  body.match-page .match-report .match-card.lineup-card {
    border-radius: 0;
    margin-top: 0;
  }
  body.match-page .match-report .fixture-content:has(> .lineup-card) > :not(.lineup-card) {
    margin-inline: 12px;
  }
  .match-report .report-event {
    gap: 8px;
    min-height: 60px;
    padding: 8px 6px;
  }
  .match-report .report-event time {
    font-size: 14px;
    min-width: 25px;
  }
  .match-report .report-score {
    font-size: 13px;
    min-width: 36px;
    padding: 3px 7px;
  }
  .match-report .report-player,
  .match-report .report-names strong {
    font-size: 15px;
  }
  .match-report .report-names small,
  .match-report .report-names small .report-player,
  .match-report .report-names small strong {
    font-size: 13px;
  }
  .match-report .report-period {
    gap: 10px;
    font-size: 12px;
    margin: 10px 0 12px;
  }
  .match-report .report-period > span {
    padding: 7px 11px;
  }
  .match-report .report-compact-score {
    gap: 10px;
  }
  .match-report .report-compact-score button {
    font-size: 12px;
    gap: 6px;
  }
  .match-report .report-compact-score strong {
    font-size: 21px;
  }
  .match-report .mobile-match-header .crest {
    width: 24px;
    height: 24px;
  }
  .match-report .facts-grid {
    display: block;
  }
  body.match-page .mobile-bottom-nav {
    min-height: 58px;
  }
  body.match-page .mobile-bottom-nav button {
    min-height: 54px;
  }
  body.match-page .mobile-bottom-nav span {
    font-family: "Report Sans", Arial, sans-serif;
    font-size: 10px;
  }
  body.match-page .mobile-bottom-nav .ui-icon {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 359px) {
  body.match-page .match-report .fixture-content {
    padding: 0 10px;
  }
  body.match-page .match-report .match-card {
    padding: 16px 10px;
  }
  .match-report .report-event {
    gap: 6px;
    padding-left: 2px;
    padding-right: 2px;
  }
  .match-report .report-player {
    font-size: 14px;
  }
  .match-report .report-names small .report-player {
    font-size: 12px;
  }
  body.match-page .match-report .fixture-scoreboard {
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
    gap: 6px;
  }
}

/* Match rails and navigation should scroll with their content. */
@media (min-width: 760px) and (max-width: 1199px) {
  .match-report .match-layout:has(.lineup-card) {
    grid-template-columns: minmax(0, 1fr);
  }
  .match-report .match-layout:has(.lineup-card) .match-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
  }
}
@media (min-width: 760px) and (max-width: 1023px) {
  body.match-page .football-pitch {
    flex-direction: column;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }
  body.match-page .football-pitch .pitch-half {
    flex: 0 0 auto;
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: calc(var(--formation-rows, 4) * 144px + 48px);
    padding: 24px 16px;
    gap: 4px;
  }
  body.match-page .football-pitch .pitch-row {
    flex: 1 0 144px;
    flex-direction: row;
    width: 100%;
    min-width: 0;
    min-height: 144px;
    gap: 4px;
    padding-inline: 6px;
    box-sizing: border-box;
  }
  body.match-page .football-pitch .pitch-player {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    max-width: none;
  }
  body.match-page .pitch-player .pitch-name { max-width: 100%; }
  body.match-page .pitch-markings {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: none;
  }
}
body:not(.match-page) .layout > .sidebar,
body.match-page .match-rail {
  position: static;
  top: auto;
}
body.match-page .fixture-tabs,
body.match-page .match-report .mobile-match-header {
  position: static;
  top: auto;
  z-index: auto;
}
