/* Match sheet only: shared website / Android / iOS header.
   Names keep one common font size; never fit each team independently.
   Two name lines above each logo; score stays in the middle column. */
#match-sheet-modal .match-sheet-score:not(.video-match-summary) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
}
#match-sheet-modal .match-sheet-score > .sheet-team-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 8px 0;
}
#match-sheet-modal .match-sheet-score .sheet-team-name {
  order: 0;
  flex: none !important;
  width: 100% !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  min-height: 2.4em;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
#match-sheet-modal .match-sheet-score .sheet-team-link .tl-wrap {
  order: 1;
  flex: 0 0 24px !important;
  width: 24px !important;
  height: 24px !important;
}
@media (max-width: 600px) {
  #match-sheet-modal .match-sheet-score .sheet-team-name {
    font-size: 12px !important;
  }
}
/* Native apps: header readability +2px, independently of website values. */
/* Three matching panels; the middle panel is a static score, not a control. */
body.capacitor #match-sheet-modal .match-sheet-score:not(.video-match-summary) > :is(.sheet-team-link,strong) {
  box-sizing: border-box;
  border: 1px solid var(--brd,#30304c);
  border-radius: 10px;
  background: rgba(255,255,255,.015);
}
body.capacitor #match-sheet-modal .match-sheet-score:not(.video-match-summary) > strong {
  align-self: stretch;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  white-space: nowrap;
  cursor: default;
}
body.capacitor #match-sheet-modal .mt {
  font-size: 15px;
}
body.capacitor #match-sheet-modal .match-sheet-sub {
  font-size: 13px;
}
body.capacitor #match-sheet-modal .match-sheet-score .sheet-team-name {
  font-size: 15px !important;
}
body.capacitor #match-sheet-modal .match-sheet-score strong {
  font-size: 22px !important;
}
@media (max-width: 380px) {
  body.capacitor #match-sheet-modal > .mbox {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 600px) {
  body.capacitor #match-sheet-modal .match-sheet-score:not(.video-match-summary) {
    padding: 0 !important;
  }
  body.capacitor #match-sheet-modal .match-sheet-score .sheet-team-name {
    font-size: 14px !important;
  }
  body.capacitor #match-sheet-modal .match-sheet-score strong {
    font-size: 17px !important;
  }
}
