/* Fixture names share a single line, with scores and real times given their own space. */
:root :is(.home-page, .teams-page, .schedule-page) :is(.fixture-card .match-team-name, .training-card-team .training-card-name),
:root :is(.home-page, .teams-page, .schedule-page) :is(.fixture-card .match-team-name, .training-card-team .training-card-name) :is(.team-caption-content, .team-caption-name, .team-caption-tag, .team-caption-tag-text),
:root[data-team-names] .schedule-page .tournament-graph .graph-match .fixture-card :is(.match-team-name, .team-caption-content, .team-caption-name, .team-caption-tag, .team-caption-tag-text),
:root .match-report-page .scoreboard-team-name > :is(h1, h2),
:root .match-report-page .scoreboard-team-name > :is(h1, h2) :is(.team-caption-content, .team-caption-name, .team-caption-tag) {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  -webkit-line-clamp: 1;
}

.fixture-card .match-meta:not(.team-fixture-meta) > .fixture-state,
.fixture-card .fixture-format > [data-series-bo-id],
.fixture-card .match-meta time,
.home-series-meta > time.home-series-time,
.training-match-card .training-card-meta > time,
.placement-roster-card .placement-match-time > time {
  flex: none;
  white-space: nowrap;
}

.fixture-card .match-meta:not(.team-fixture-meta) > .fixture-format {
  min-inline-size: 0;
  white-space: nowrap;
}

:root .public-embed .fixture-card .match-meta > span:last-child:not(.fixture-state),
.fixture-card .fixture-format > span:not([data-series-bo-id]),
:root .home-page .home-fixtures .home-series-meta > :is(span.home-series-time, .home-series-status),
.training-match-card .training-card-meta > :is(.training-card-stage, .training-card-report),
.placement-roster-card .placement-match-time > span {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root .home-page .home-fixtures .home-series-meta > .home-series-status {
  flex: 0 1 auto;
}

/* The same centre line and typography apply to list, home and team fixtures. */
:is(.schedule-rounds,.home-fixtures,.team-detail) .cup-match-card.fixture-card .match-team-a{justify-content:flex-start;text-align:left}
:is(.schedule-rounds,.home-fixtures,.team-detail) .cup-match-card.fixture-card .match-team-b{justify-content:flex-end;text-align:right}
:is(.schedule-rounds,.home-fixtures,.team-detail) .cup-match-card.fixture-card .match-team-name{font-size:15px}
:is(.schedule-rounds,.home-fixtures,.team-detail) .cup-match-card.fixture-card .match-team-name.team-caption{flex:1 1 0;width:100%;container-type:normal}
:is(.schedule-rounds,.home-fixtures,.team-detail) .cup-match-card.fixture-card .match-team .team-mark{width:28px;height:28px;flex-basis:28px}
:is(.schedule-rounds,.home-fixtures,.team-detail) .fixture-card .match-team-a .team-caption-content{justify-content:flex-start}
:is(.schedule-rounds,.home-fixtures,.team-detail) .fixture-card .match-team-b .team-caption-content{justify-content:flex-end}
:is(.schedule-rounds,.home-fixtures,.team-detail) .cup-match-card.fixture-card .match-meta{font-size:11px;line-height:14px}
@media(max-width:600px){
 :is(.schedule-rounds,.home-fixtures,.team-detail) .cup-match-card.fixture-card .match-team-name{font-size:14px}
 :is(.schedule-rounds,.home-fixtures,.team-detail) .fixture-card .match-team-name .team-caption-content{flex-direction:row;flex-wrap:nowrap;align-items:baseline;line-height:1.3}
 :is(.schedule-rounds,.home-fixtures,.team-detail) .fixture-card .team-caption-name{max-width:100%}
 :is(.schedule-rounds,.home-fixtures,.team-detail) .fixture-card .team-caption-tag{font-size:11px;color:var(--muted)}
}

/* Keep support percentages in the card's normal flow rather than clipping them. */
:is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .cup-match-card.fixture-card--swiss{height:auto;min-height:90px;justify-content:flex-start;gap:3px;padding:9px 12px 8px}
:is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .match-teams{min-height:36px}
:is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .match-team{gap:8px}
:is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .match-team-name{font-size:20px;line-height:1.3;font-weight:600}
:is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .team-caption-content[data-tag-script=han] .team-caption-tag-text{font-size:19px}
:is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .match-team .team-mark{width:36px;height:36px;flex-basis:36px}
:is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .fixture-support{position:static;width:100%;height:auto}
:is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .fixture-support-label{display:flex;justify-content:space-between;gap:4px;font-size:10px;line-height:12px;color:var(--muted);white-space:nowrap}
@media(max-width:600px){
 :is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .cup-match-card.fixture-card--swiss{min-height:86px;padding-inline:7px}
 :is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .match-teams{grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:4px;min-height:32px}
 :is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .match-team{gap:6px}
 :is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .match-team-name{font-size:17px}
 /* Match the existing training Han size; keep four characters on one line. */
 :is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .team-caption-content[data-tag-script=han] .team-caption-tag-text{font-size:16px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 :is(.schedule-rounds[data-swiss-sides],.team-detail>.team-schedule) .fixture-card--swiss .match-team .team-mark{width:32px;height:32px;flex-basis:32px}
}
