/* 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: var(--surface);
  border: 0;
  border-radius: 0 0 16px 16px;
  padding: 20px 32px 24px;
  margin: 0 0 24px;
}
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:before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 3px;
  height: 32px;
  background: var(--team-stripe, var(--text));
  border-radius: 3px;
}
.match-report .score-team:last-child:before {
  left: auto;
  right: 0;
}
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;
}
.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: 84px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 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: 18px 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;
  }
  .match-report .report-event {
    gap: 8px;
    min-height: 78px;
    padding: 13px 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: 14px 0 18px;
  }
  .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;
  }
}
