/* The in-app match summary: result and scorers first, then the numbers, the
   players who made the difference and the ways into the other views. */

.pitch-site--app .match-result {
  background: var(--ps-paper-raised);
  border: 2px solid var(--ps-ink);
  border-radius: 12px;
  box-shadow: var(--ps-hard-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px;
}

.pitch-site--app .match-result__line {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.pitch-site--app .match-result__team {
  align-items: center;
  display: flex;
  font-size: 17px;
  font-weight: 700;
  gap: 10px;
  min-width: 0;
}

.pitch-site--app .match-result__team--away {
  justify-content: flex-end;
  text-align: end;
}

.pitch-site--app .match-result__score {
  font-family: var(--font-display);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: var(--font-display-tracking);
  white-space: nowrap;
}

.pitch-site--app .match-result__events {
  border-top: 1px solid var(--color-border-subtle);
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  padding-top: 10px;
}

.pitch-site--app .match-result__side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pitch-site--app .match-result__side--away {
  align-items: flex-end;
}

.pitch-site--app .match-result__event {
  align-items: center;
  display: flex;
  font-size: 13.5px;
  gap: 6px;
}

.pitch-site--app .match-result__event a {
  color: var(--ps-ink);
  font-weight: 600;
  text-decoration: none;
}

.pitch-site--app .match-result__event a:hover {
  text-decoration: underline;
}

.pitch-site--app .match-result__event .key-event__icon {
  block-size: 1rem;
  font-size: 0.9rem;
  inline-size: 1rem;
}

.pitch-site--app .match-result__minute,
.pitch-site--app .match-result__note {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.pitch-site--app .match-summary__pair {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.pitch-site--app .match-summary__more {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pitch-site--app .match-summary__more:hover {
  color: var(--ps-red-deep);
}

.pitch-site--app .match-summary .match-mvps__row {
  align-items: center;
  border-bottom: 1px solid var(--color-border-subtle);
  display: grid;
  gap: 10px;
  grid-template-columns: 1.25rem auto minmax(0, 1fr) auto;
  padding-block: 8px;
}

.pitch-site--app .match-mvps__rank {
  color: var(--ps-ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

.pitch-site--app .match-mvps__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pitch-site--app .match-mvps__name {
  color: var(--ps-ink);
  font-weight: 600;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-site--app .match-mvps__name:hover {
  text-decoration: underline;
}

.pitch-site--app .match-mvps__meter {
  background: var(--ps-paper-shade);
  border-radius: 999px;
  display: block;
  height: 4px;
  overflow: hidden;
}

.pitch-site--app .match-mvps__meter span {
  background: var(--theme-primary);
  display: block;
  height: 100%;
  width: calc(var(--share) * 100%);
}

.pitch-site--app .match-moments__row {
  align-items: center;
  border-bottom: 1px solid var(--color-border-subtle);
  display: grid;
  gap: 12px;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  padding-block: 8px;
}

.pitch-site--app .match-moments__minute {
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 0;
  text-align: center;
}

.pitch-site--app .match-moments__row--home .match-moments__minute {
  background: var(--theme-home);
}

.pitch-site--app .match-moments__row--away .match-moments__minute {
  background: var(--theme-away);
}

.pitch-site--app .match-moments__what {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  min-width: 0;
}

.pitch-site--app .match-moments__player {
  color: var(--ps-ink);
  font-weight: 600;
  text-decoration: none;
}

.pitch-site--app .match-moments__player:hover {
  text-decoration: underline;
}

.pitch-site--app .match-moments__value,
.pitch-site--app .match-mvps__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.pitch-site--app .match-explore {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
}

.pitch-site--app .match-explore__link {
  align-items: stretch;
  background: var(--ps-paper-raised);
  border: 2px solid var(--ps-ink);
  border-radius: 10px;
  color: var(--ps-ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 10px 14px;
  text-align: start;
  text-decoration: none;
  transition: transform 120ms, box-shadow 120ms;
}

.pitch-site--app .match-explore__link:hover,
.pitch-site--app .match-explore__link:focus-visible {
  box-shadow: var(--ps-hard-shadow);
  transform: translate(-1px, -1px);
}

.pitch-site--app .match-explore__title {
  font-weight: 700;
}

.pitch-site--app .match-explore__hint {
  color: var(--ps-ink-soft);
  font-size: 12.5px;
  line-height: 1.35;
}

@media (max-width: 40rem) {
  .pitch-site--app .match-result {
    padding: 12px 14px;
  }

  .pitch-site--app .match-result__team {
    flex-direction: column;
    font-size: 13.5px;
    gap: 4px;
    text-align: center;
  }

  .pitch-site--app .match-result__team--away {
    flex-direction: column-reverse;
  }

  .pitch-site--app .match-result__team .overflow-ellipsis {
    max-width: 100%;
  }

  .pitch-site--app .match-result__score {
    font-size: 24px;
  }
}

.pitch-site--app .match-summary__card .stack > .match-stat + .match-stat {
  margin-block-start: 0;
}

.pitch-site--app .match-summary__card .match-stat {
  padding-block: 7px;
}
