.bracket { display: block; overflow: visible; padding: 0; scroll-snap-type: none; }
.round { width: 100%; min-width: 0; max-width: none; margin: 1rem 0 1.4rem; }
.round h3 { margin: 0 0 .35rem; padding: 0 0 .3rem; border-bottom-width: 2px; font-size: 1rem; }
.round h3 small { display: inline; margin-left: .75rem; }
.round-matches, .group-fixtures { display: block; height: auto; }
.group-panel:has(> details[open]) { grid-column: 1 / -1; }
.match-list { container-type: inline-size; }
.match-table { table-layout: fixed; background: var(--surface); font-size: .82rem; }
.match-table .col-match { width: 4.75rem; }
.match-table .col-schedule { width: 14rem; }
.match-table .col-score { width: 3.5rem; }
.match-table th, .match-table td { padding: .4rem .5rem; vertical-align: middle; }
.match-table th:nth-child(n+4):nth-child(-n+7), .match-start, .match-score { text-align: center; }
.match-table th:nth-child(3), .match-name.home { text-align: right; }
.match-table th:last-child, .match-name.away { text-align: left; }
.match-filter { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin-left: auto; min-width: 0; }
.match-filter label { font-size: .85rem; font-weight: 650; }
.match-filter input { width: 18rem; min-width: 0; }
#match-search-status { margin: .5rem 0 1rem; }
.competition-block { margin: 1.5rem 0; border-top: 2px solid var(--line); }
.competition-heading { display: flex; align-items: center; gap: .75rem; padding: .8rem 0; list-style: none; }
.competition-heading::-webkit-details-marker { display: none; }
.competition-heading::before { content: '›'; font-size: 1.5rem; line-height: 1; width: .7rem; flex-shrink: 0; transform: rotate(0deg); }
.competition-block[open] > .competition-heading::before { transform: rotate(90deg); }
.competition-heading h2 { margin: 0; font-size: 1.7rem; line-height: 1.2; overflow-wrap: anywhere; }
.competition-heading .pill { margin-left: auto; }
.competition-heading:focus-visible { outline: 2px solid var(--primary); outline-offset: .2rem; }
.competition-content { padding-bottom: 1rem; }
.match-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-name.unresolved { color: var(--muted); font-style: italic; }
.match-name .missing-label { display: inline; margin-left: .4rem; }
.match-table .winner { font-weight: 750; background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.match-score { font-weight: 650; }
.match-schedule { font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.match-number, .match-info summary { font-weight: 650; white-space: nowrap; }
.match-info { position: relative; }
.match-info summary { cursor: pointer; }
.match-info-popup { position: absolute; top: calc(100% + .3rem); left: 0; z-index: 10; width: max-content; max-width: min(24rem, calc(100vw - 3rem)); padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .4rem; color: var(--text); background: var(--surface); box-shadow: var(--shadow); font-size: .8rem; font-weight: 400; overflow-wrap: anywhere; }
.match-info-popup span { display: block; }
.groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
.group-panel { min-width: 0; }
.standings-table { table-layout: fixed; min-width: 26rem; }
.standings-table .rank-column { width: 2.4rem; }
.standings-table .group-column { width: 3.5rem; }
.standings-table .team-column { width: 30%; }
.standings-table th, .standings-table td { padding: .35rem .2rem; white-space: nowrap; font-size: .78rem; }
.standings-team, .team-directory-table tbody th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-directory-table { table-layout: fixed; }
.team-directory-table th:first-child { width: 40%; }
@media (max-width: 65rem) { .groups { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 40rem) {
  .competition-heading { flex-wrap: wrap; gap: .5rem; }
  .competition-heading h2 { font-size: 1.4rem; }
  .competition-heading .pill { font-size: .7rem; }
}
@container (max-width: 48rem) {
  .match-table, .match-table tbody { display: block; }
  .match-table colgroup { display: none; }
  .match-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .match-table tbody > tr { display: grid; grid-template-columns: minmax(0,1fr) 3.5ch 3.5ch minmax(0,1fr); grid-template-areas: "number number schedule schedule" "home home away away" "hstart hpts apts astart"; gap: .15rem .3rem; padding: .4rem .25rem; border-bottom: 1px solid var(--line); }
  .match-table td { min-width: 0; padding: .15rem .25rem; border: 0; }
  .match-id { grid-area: number; }
  .match-schedule { grid-area: schedule; text-align: right; white-space: normal; font-size: .68rem; }
  .match-name.home { grid-area: home; }
  .match-name.away { grid-area: away; }
  .match-start.home { grid-area: hstart; text-align: left; }
  .match-score.home { grid-area: hpts; }
  .match-score.away { grid-area: apts; }
  .match-start.away { grid-area: astart; text-align: right; }
  .match-start::before, .match-score::before { content: attr(data-label); display: block; color: var(--muted); font-size: .65rem; font-weight: 400; }
}
