/* Club pages keep the fixture list and roster readable without wide tables. */
.compact-ui .league-control { position: relative; }
.pinned-team-shortcut { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--stroke); border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 20px; box-shadow: none; }
.pinned-team-shortcut:hover { border-color: var(--accent); }
.compact-ui .team-profile-head { margin-bottom: 12px; gap: 12px; }
.team-profile-head .eyebrow { margin-bottom: 4px; font-size: 9px; }
.team-profile-head .filters { flex: none; gap: 8px; }
.compact-ui .team-profile-head h2 { font-size: 30px; line-height: 1.15; }
.team-profile-head h2:focus { outline: none; }
.pin-team { min-height: 34px; padding: 5px 10px; font-size: 11px; white-space: nowrap; }
.pin-team[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.team-season-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 0; margin: 0 0 12px; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.team-season-stat { display: flex; align-items: baseline; gap: 9px; padding: 0 15px; border-left: 1px solid var(--stroke); }
.team-season-stat:first-child { border-left: 0; padding-left: 0; }
.team-season-stat strong { color: var(--accent); font-family: 'Barlow Condensed', sans-serif; font-size: 25px; line-height: 1; font-weight: 600; white-space: nowrap; }
.team-season-stat span { color: var(--muted); font-size: 10px; }
.compact-ui .team-meta { gap: 10px 26px; margin-bottom: 13px; }
.team-info { flex-direction: row; align-items: baseline; gap: 7px; max-width: none; }
.team-info strong, .team-info a { font-size: 11px; font-weight: 400; }
.team-info a { color: var(--text); text-decoration: none; text-underline-offset: 3px; }
.team-info a:hover { color: var(--accent); text-decoration: underline; }
.team-info .map-arrow { color: var(--accent); font-size: 12px; }
.team-next-match { margin: 0 0 17px; border: 1px solid var(--stroke); border-left: 2px solid var(--accent); border-radius: 5px; background: var(--panel-raised); }
.team-next-button { display: grid; grid-template-columns: 115px minmax(0, 1fr) auto 12px; align-items: center; width: 100%; gap: 16px; padding: 11px 13px; border: 0; border-radius: inherit; background: transparent; color: var(--text); box-shadow: none; text-align: left; }
.team-next-caption { color: var(--accent); font-size: 10px; font-weight: 600; }
.team-next-opponent { font-size: 12px; font-weight: 600; }
.team-next-opponent small { margin-right: 7px; color: var(--muted); font-size: 10px; font-weight: 400; }
.team-next-date { color: var(--muted); font-size: 11px; }
.team-content-grid > section { min-width: 0; }
.team-subnav { display: none; }
.team-section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; gap: 10px; }
.team-content-grid .team-section-heading h3 { margin: 0; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; }
.team-section-heading > span { color: var(--muted); font-size: 10px; }
.team-roster-section .table-wrap { border: 1px solid var(--stroke); border-radius: 5px; }
.team-roster-section .table { min-width: 0; }
.team-roster-section .table th:first-child, .team-roster-section .table td:first-child { width: 35px; }
.team-roster-section .table th:last-child, .team-roster-section .table td:last-child { text-align: right; width: 60px; }
.team-roster-section .player-link { color: var(--text); font-size: 12px; text-align: left; font-weight: 500; }
.team-roster-section .player-link::after { content: ' ›'; color: var(--accent); }
.team-fixtures { border: 1px solid var(--stroke); border-radius: 5px; overflow: hidden; }
.team-fixture { display: grid; grid-template-columns: 61px minmax(0, 1fr) 58px 11px; align-items: center; gap: 11px; width: 100%; min-height: 53px; padding: 8px 10px; border: 0; border-bottom: 1px solid var(--stroke); border-radius: 0; color: var(--text); background: transparent; text-align: left; box-shadow: none; }
.team-fixture:last-child { border-bottom: 0; }
.team-fixture:hover, .team-next-button:hover { background: var(--accent-soft); }
.team-fixture.is-next { background: var(--accent-soft); }
.team-fixture time { display: flex; flex-direction: column; gap: 3px; font-size: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
.team-fixture time small { font-size: 9px; color: var(--muted); }
.team-fixture-opponent { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.team-fixture-opponent strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.team-fixture-opponent small { color: var(--muted); font-size: 9px; }
.team-fixture-score { display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-family: 'Barlow Condensed', sans-serif; font-size: 21px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.team-fixture.is-finished .team-fixture-score { color: var(--text); }
.team-result { display: grid; place-items: center; width: 17px; height: 19px; flex: none; border-radius: 3px; font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 500; background: var(--panel-raised); color: var(--muted); }
.team-result.is-win { color: var(--accent); background: var(--accent-soft); }
.team-result.is-loss { color: #dfaaa5; }
body.theme-light .team-result.is-loss { color: #924239; }
.team-fixture > .team-arrow, .team-next-button > .team-arrow { font-size: 19px; }
.team-fixtures-legend { color: var(--muted); font-size: 9px; line-height: 1.6; margin: 9px 0 0; }
@media (min-width: 900px) { .compact-ui .team-content-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; } }
@media (max-width: 600px) {
  .compact-ui .league-control:has(.pinned-team-shortcut:not([hidden])) { display: flex; flex-direction: row; align-items: center; gap: 7px; }
  .compact-ui .league-control:has(.pinned-team-shortcut:not([hidden])) select { width: auto; flex: 1; }
  .pinned-team-shortcut { width: 38px; height: 39px; }
  .compact-ui .team-detail-actions { margin-bottom: 9px; flex-wrap: nowrap; }
  .team-detail-actions .text-action { min-height: 30px; padding: 3px 0; font-size: 10px; }
  .compact-ui .team-profile-head { align-items: flex-start; flex-wrap: wrap; gap: 9px; margin-bottom: 11px; }
  .compact-ui .team-profile-head h2 { font-size: 27px; }
  .team-profile-head .filters { justify-content: flex-start; width: auto; }
  .team-profile-head .pill { font-size: 10px; padding: 4px 8px; }
  .pin-team { min-height: 29px; padding: 4px 8px; font-size: 10px; }
  .team-season-summary { padding: 10px 0; }
  .team-season-stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 10px; }
  .team-season-stat strong { font-size: 23px; }
  .team-season-stat span { font-size: 8px; }
  .team-info { align-items: baseline; gap: 6px; }
  .team-info strong, .team-info a { font-size: 10px; line-height: 1.6; }
  .team-info > span { font-size: 9px; }
  .team-next-button { grid-template-columns: minmax(0, 1fr) 12px; gap: 5px 8px; padding: 10px; }
  .team-next-caption, .team-next-opponent, .team-next-date { grid-column: 1; }
  .team-next-button > .team-arrow { grid-column: 2; grid-row: 1 / 4; }
  .team-next-caption { font-size: 9px; }
  .team-next-opponent { font-size: 12px; }
  .team-next-date { font-size: 10px; }
  .compact-ui .team-content-grid { gap: 20px; }
  .team-subnav { display: flex; gap: 23px; margin-bottom: 10px; border-bottom: 1px solid var(--stroke); }
  .team-subnav button { display: flex; align-items: baseline; gap: 7px; padding: 9px 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--muted); font-size: 12px; box-shadow: none; }
  .team-subnav button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); }
  .team-subnav span { font-size: 10px; opacity: .8; }
  .team-content-grid .team-section-heading { display: none; }
  .team-content-grid[data-mobile-section="matches"] .team-roster-section, .team-content-grid[data-mobile-section="roster"] .team-fixtures-section { display: none; }
  .team-fixtures-section { order: -1; }
  .team-fixture { grid-template-columns: 48px minmax(0, 1fr) 50px 8px; gap: 7px; padding: 8px; }
  .team-fixture-opponent strong { font-size: 11px; line-height: 1.35; }
  .team-fixture-score { font-size: 20px; gap: 4px; }
  .team-result { width: 15px; height: 17px; font-size: 8px; }
}
