/* Team summaries and filters reuse the same compact, source-backed club data. */
.compact-ui .team-directory-rich { justify-content: space-between; align-items: center; min-height: 72px; }
.team-directory-copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.team-directory-copy strong { font-size: 12px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.team-directory-standing { font-size: 10px; color: var(--muted); }
.team-directory-tail { display: flex; flex: none; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; }
.team-directory-form { display: flex; gap: 3px; }
.team-directory-pinned { color: var(--accent); font-size: 9px; white-space: nowrap; }
.team-directory-open { color: var(--muted); font-size: 10px; white-space: nowrap; }
.team-directory-open span { color: var(--accent); font-size: 16px; margin-left: 4px; }
.team-directory-rich.is-pinned { border-color: var(--accent); background: var(--accent-soft); }
.team-directory-form .team-result { width: 15px; height: 18px; font-size: 8px; }
.compact-ui .team-result { font-weight: 700; }
.compact-ui .team-result.is-win { color: #8fe0b1; background: #2ba3652e; border-color: #45885f; }
.compact-ui .team-result.is-loss { color: #efafa7; background: #dc746b22; border-color: #985c59; }
.compact-ui .team-result.is-draw { color: #f0d796; background: #d9bb772e; border-color: #907a48; }
.compact-ui.theme-light .team-result.is-win { color: #166534; background: #dcfce7; border-color: #86c29a; }
.compact-ui.theme-light .team-result.is-loss { color: #993e35; background: #fbe2df; border-color: #c28c85; }
.compact-ui.theme-light .team-result.is-draw { color: #775005; background: #f5e8c7; border-color: #baa06b; }
.club-season-context { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.team-season-stat:last-child strong { font-size: 22px; }
.club-recent-form { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: -1px 0 12px; color: var(--muted); font-size: 10px; }
.club-form-results { display: flex; align-items: center; gap: 4px; }
.club-form-results button.team-result { width: 27px; height: 26px; padding: 0; border: 1px solid var(--stroke); box-shadow: none; font-size: 10px; }
.club-form-results button:hover { border-color: var(--accent); }
.club-recent-form > small { font-size: 9px; }
.club-fixture-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.club-fixture-tabs { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--stroke); border-radius: 5px; }
.club-fixture-tabs button { min-height: 27px; padding: 5px 8px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 10px; white-space: nowrap; box-shadow: none; }
.club-fixture-tabs button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.club-fixture-tabs button:hover { color: var(--text); }
.compact-ui #club-fixture-venue { width: 117px; min-width: 0; min-height: 33px; padding: 5px 20px 5px 8px; border-radius: 5px; font-size: 10px; }
.club-roster-search { display: flex; align-items: center; position: relative; margin-bottom: 8px; }
.compact-ui #club-roster-query { min-height: 33px; width: 100%; padding: 7px 34px 7px 10px; font-size: 11px; border-radius: 5px; }
.club-roster-search button { display: grid; place-items: center; position: absolute; right: 3px; width: 27px; height: 27px; padding: 0; border: 0; color: var(--muted); background: transparent; box-shadow: none; font-size: 18px; }
.team-fixtures .empty-state { display: flex; flex-direction: column; gap: 6px; }
.compact-ui .team-fixture { grid-template-columns: 95px minmax(0, 1fr) 68px 10px; gap: 10px; min-height: 35px; padding: 6px 10px; }
.team-fixture time { flex-direction: row; align-items: baseline; gap: 7px; white-space: nowrap; }
.team-fixture time small { font-size: inherit; }
.team-fixture-opponent { display: block; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.team-fixture-opponent .is-selected-team { font-weight: 600; }
.team-fixture-separator { color: var(--muted); }
.team-fixture-score { font-size: 19px; line-height: 1.1; }
.team-fixture > .team-arrow { line-height: 1; }
.compact-ui .team-content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.compact-ui .team-content-grid .team-section-heading { display: flex; margin-bottom: 7px; }
.compact-ui .team-content-grid > .team-roster-section { order: 0; width: min(100%, 660px); justify-self: center; }
.compact-ui .team-content-grid > .team-fixtures-section { order: 1; width: min(100%, 940px); justify-self: center; }
.compact-ui .team-content-grid > .team-scorers-section { order: 2; width: fit-content; max-width: min(100%, 940px); justify-self: center; }
.compact-ui .team-content-grid > .team-participants-section { order: 3; width: min(100%, 600px); justify-self: center; }
.compact-ui :is(.team-roster-section, .team-participants-section) .table-wrap { max-width: 100%; border: 1px solid var(--stroke); border-radius: 5px; }
.compact-ui :is(.team-roster-section, .team-participants-section) .table { width: max-content; min-width: 100%; }
.compact-ui :is(.team-roster-section, .team-participants-section) .table :is(th, td) { padding: 4px 7px; font-size: 10px; line-height: 1.4; white-space: nowrap; }
.compact-ui :is(.team-roster-section, .team-participants-section) .player-link { min-height: 20px; padding: 0; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.compact-ui .team-scorers-section .table :is(th, td) { padding: 4px 6px; line-height: 1.4; font-size: 11px; }
.compact-ui .team-scorers-section .player-link { min-height: 20px; padding: 0; line-height: 1.4; }
.compact-ui :is(.team-roster-section, .team-scorers-section) .table th:first-child,
.compact-ui :is(.team-roster-section, .team-scorers-section) .table td:first-child:not([colspan]) { width: 30px; text-align: center; }
.team-scorers-section .table-wrap { max-width: 100%; border: 1px solid var(--stroke); border-radius: 5px; }
.team-scorers-section .table { width: max-content; min-width: 100%; font-variant-numeric: tabular-nums; }
.team-scorers-section th:not(:nth-child(2)), .team-scorers-section td:not(:nth-child(2)) { text-align: center; white-space: nowrap; }
.scoring-player-column { min-width: 34px; }
.scoring-player-column > span { display: block; color: var(--muted); font-size: 9px; }
.scoring-player-column abbr { border: 0; text-decoration: none; }
.scoring-value.is-empty { color: var(--muted); opacity: .55; }
.scoring-opponent { min-width: 150px; max-width: 250px; white-space: nowrap !important; }
.compact-ui .scoring-match-link { display: flex; align-items: baseline; gap: 7px; width: 100%; min-height: 20px; padding: 0; border: 0; background: none; color: var(--text); box-shadow: none; text-align: left; font-size: 11px; white-space: nowrap; }
.scoring-match-link small { margin-left: auto; color: var(--muted); font-size: 9px; }
.scoring-match-link:hover { color: var(--accent); }
.team-scoring-key { display: flex; flex-wrap: wrap; gap: 2px 14px; max-width: 660px; margin-top: 8px; }
.team-scoring-key > span { display: inline-flex; align-items: baseline; gap: 5px; font-size: 10px; }
.team-scoring-key b { color: var(--muted); }
.compact-ui .team-scoring-key .player-link { font-size: 10px; }
.team-scorers-section .player-link { text-align: left; font-size: 12px; }
.team-scorer-points { color: var(--accent); font-weight: 700; }
.team-scorers-total td { border-top: 1px solid var(--stroke); font-weight: 700; }
.team-scorers-total td:last-child { text-align: right; }
.team-scorers-total th { text-align: right; }
@media (max-width: 600px) {
  .compact-ui .team-fixture { grid-template-columns: 70px minmax(0, 1fr) 46px 7px; gap: 4px; min-height: 33px; padding: 5px; }
  .team-fixture time { grid-column: 1; grid-row: 1; gap: 4px; font-size: 9px; }
  .team-fixture-opponent { display: flex; flex-direction: row; align-items: center; gap: 3px; grid-column: 2; grid-row: 1; font-size: 10px; white-space: nowrap; }
  .team-fixture-opponent > :not(.team-fixture-separator) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .team-fixture-separator { flex: none; }
  .team-fixture-score { grid-column: 3; grid-row: 1; gap: 3px; font-size: 17px; }
  .team-fixture > .team-arrow { grid-column: 4; grid-row: 1; font-size: 16px; }
  .compact-ui .team-fixture .team-result { width: 13px; height: 16px; font-size: 8px; }
  .compact-ui .team-directory-rich { min-height: 66px; padding: 10px 11px; gap: 10px; }
  .team-directory-copy strong { font-size: 11px; }
  .team-directory-standing { font-size: 9px; }
  .team-directory-form { gap: 2px; }
  .team-directory-form .team-result { width: 13px; height: 17px; font-size: 8px; }
  .club-season-context { font-size: 9px; }
  .team-season-stat:last-child strong { font-size: 17px; }
  .club-recent-form { gap: 7px; margin-bottom: 11px; font-size: 9px; }
  .club-form-results button.team-result { width: 25px; height: 25px; }
  .club-recent-form > small { font-size: 8px; }
  .club-fixture-controls { gap: 6px; }
  .club-fixture-tabs { flex: 1; justify-content: space-between; }
  .club-fixture-tabs button { padding: 5px 6px; min-height: 30px; font-size: 9px; }
  .compact-ui #club-fixture-venue { width: 103px; min-height: 36px; font-size: 9px; }
  .compact-ui #club-roster-query { min-height: 36px; font-size: 16px; }
}
@media (max-width: 350px) {
  .club-fixture-tabs button { padding-inline: 4px; }
  .compact-ui #club-fixture-venue { width: 94px; padding-left: 6px; }
  .club-recent-form > small { display: none; }
}
