/* A single selected group has room for a readable table and its own fixtures.
   Hidden fixture nodes stay in the DOM so organizer reordering stays complete. */
.schedule-centre-page .has-many-groups {
  --group-panel-height: clamp(540px, 61vh, 820px);
  --group-name-size: clamp(18px, 1.12vw, 28px);
  --group-stat-size: clamp(16px, .94vw, 24px);
  --group-crest-size: clamp(32px, 2.1vw, 50px);
}

.schedule-centre-page .has-many-groups .mobile-group-round-filter {
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface-1);
}

.schedule-centre-page .has-many-groups .mobile-group-switcher {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 9px;
}

.schedule-centre-page .has-many-groups .mobile-group-switcher a {
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 5px;
}

.schedule-centre-page .has-many-groups .mobile-group-switcher b { font-size: clamp(18px, 1.1vw, 26px); }
.schedule-centre-page .has-many-groups .mobile-group-switcher small { color: var(--text-2); font-size: 13px; }
.schedule-centre-page .has-many-groups .mobile-group-switcher a.active {
  border-color: var(--lime);
  background: var(--lime-wash);
  box-shadow: inset 0 -3px var(--lime);
  color: var(--text-1);
}

.schedule-centre-page .has-many-groups .mobile-round-switcher { margin: 0; padding: 0; gap: 8px; }
.schedule-centre-page .has-many-groups .mobile-round-switcher a {
  justify-content: center;
  min-height: 42px;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.schedule-centre-page .has-many-groups .mobile-round-switcher a.active { background: var(--lime-wash); color: var(--lime); }
.schedule-centre-page .has-many-groups .mobile-group-round-filter a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

@media (min-width: 981px) {
  .schedule-centre-page .has-many-groups .mobile-group-switcher:has(> a:nth-child(9)) { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.schedule-centre-page .has-many-groups .group-match-centre { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px; }
.schedule-centre-page .has-many-groups :is(.group-overview-column, .compact-standings-panel, .group-fixture-workbench) {
  height: var(--group-panel-height);
  min-height: 0;
  min-width: 0;
}

.schedule-centre-page .has-many-groups :is(.compact-standings-panel, .group-fixture-workbench) > header { min-height: 80px; padding: 16px 20px; }
.schedule-centre-page .has-many-groups :is(.compact-standings-panel, .group-fixture-workbench) h2 { font-size: clamp(26px, 1.65vw, 40px); }
.schedule-centre-page .has-many-groups .compact-standings-grid { padding: 14px; }
.schedule-centre-page .has-many-groups .compact-standings-grid > article { grid-template-rows: auto repeat(var(--standing-row-count), minmax(64px, 1fr)); }
.schedule-centre-page .has-many-groups .compact-standings-grid article > header.group-standing-head,
.schedule-centre-page .has-many-groups .compact-standing-row {
  grid-template-columns: 30px minmax(0, 1fr) clamp(168px, 11.5vw, 284px) 68px !important;
  gap: 10px;
  padding-inline: 12px;
}

.schedule-centre-page .has-many-groups .group-standing-head { min-height: 48px; }
.schedule-centre-page .has-many-groups .group-standing-head > div > b { font-size: 17px; }
.schedule-centre-page .has-many-groups .group-standing-head small,
.schedule-centre-page .has-many-groups :is(.standing-record-heading span, .standing-record-heading b, .qualification-heading) { font-size: 14px; }
.schedule-centre-page .has-many-groups .compact-standing-row > i { font-size: clamp(19px, 1.2vw, 28px); }
.schedule-centre-page .has-many-groups .standing-team { gap: 12px; }
.schedule-centre-page .has-many-groups .standing-team em { width: var(--group-crest-size) !important; height: var(--group-crest-size) !important; flex-shrink: 0; }
.schedule-centre-page .has-many-groups .standing-team-main > b { width: auto; max-width: 100%; font-size: var(--group-name-size); line-height: 1.4; }
.schedule-centre-page .has-many-groups .standing-record { font-size: var(--group-stat-size) !important; }
.schedule-centre-page .has-many-groups .standing-record > b { font-size: clamp(22px, 1.35vw, 32px) !important; }
.schedule-centre-page .has-many-groups .qualification-marker { min-width: 60px; min-height: 28px; font-size: 14px; }
.schedule-centre-page .has-many-groups .standings-ranking-note { padding: 10px 16px; flex-wrap: wrap; }
.schedule-centre-page .has-many-groups .standings-ranking-note :is(li, strong) { font-size: 13px; }

.schedule-centre-page .has-many-groups .fixture-queue-row:not(.is-selected-group) { display: none !important; }
.schedule-centre-page .has-many-groups .fixture-progress-all { display: none; }
.schedule-centre-page .has-many-groups .fixture-progress-group { display: block; }
.schedule-centre-page .has-many-groups .group-fixture-workbench .fixture-queue-row { height: auto; min-height: 112px; padding: 14px; }
.schedule-centre-page .has-many-groups .fixture-queue-row.is-public { grid-template-columns: 100px minmax(0, 1fr) !important; gap: 12px; }
.schedule-centre-page .has-many-groups .fixture-queue-meta b { font-size: 14px; }
.schedule-centre-page .has-many-groups .fixture-queue-meta span { font-size: 13px; }
.schedule-centre-page .has-many-groups .fixture-queue-teams { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); gap: 12px; }
.schedule-centre-page .has-many-groups .fixture-queue-teams b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  font-size: clamp(17px, 1.06vw, 26px) !important;
  line-height: 1.4;
}
.schedule-centre-page .has-many-groups .fixture-queue-teams em { width: var(--group-crest-size) !important; height: var(--group-crest-size) !important; }
.schedule-centre-page .has-many-groups .fixture-score > .group-match-public-report { min-height: 32px !important; font-size: 13px !important; line-height: 1.3 !important; }

@media (min-width: 2400px) {
  .schedule-centre-page .has-many-groups .mobile-group-switcher a { min-height: 66px; }
  .schedule-centre-page .has-many-groups .mobile-group-switcher small { font-size: 17px; }
  .schedule-centre-page .has-many-groups .mobile-round-switcher a { min-height: 48px; font-size: 19px; }
  .schedule-centre-page .has-many-groups .compact-standings-grid article > header.group-standing-head,
  .schedule-centre-page .has-many-groups .compact-standing-row { grid-template-columns: 42px minmax(0, 1fr) 284px 90px !important; gap: 16px; padding-inline: 20px; }
  .schedule-centre-page .has-many-groups :is(.standing-record-heading span, .standing-record-heading b, .qualification-heading, .qualification-marker, .fixture-queue-meta b) { font-size: 18px; }
  .schedule-centre-page .has-many-groups .fixture-queue-row.is-public { grid-template-columns: 144px minmax(0, 1fr) !important; }
  .schedule-centre-page .has-many-groups .fixture-queue-teams { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); }
  .schedule-centre-page .has-many-groups .group-fixture-workbench .fixture-queue-row { min-height: 142px; padding: 20px; }
}

@media (min-width: 981px) and (max-width: 1500px) {
  .schedule-centre-page .has-many-groups .compact-standings-grid article > header.group-standing-head,
  .schedule-centre-page .has-many-groups .compact-standing-row { grid-template-columns: 24px minmax(0, 1fr) 150px 56px !important; gap: 6px; padding-inline: 8px; }
  .schedule-centre-page .has-many-groups .standing-team { gap: 7px; }
  .schedule-centre-page .has-many-groups .qualification-marker { min-width: 50px; font-size: 13px; }
  .schedule-centre-page .has-many-groups .standing-panel-actions { gap: 6px; flex-wrap: wrap; }
  .schedule-centre-page .has-many-groups .qualification-key { display: none; }
  .schedule-centre-page .has-many-groups .fixture-queue-row.is-public { grid-template-columns: 82px minmax(0, 1fr) !important; gap: 8px; }
  .schedule-centre-page .has-many-groups .fixture-queue-teams { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); gap: 6px; }
}

@media (max-width: 980px) {
  .schedule-centre-page .has-many-groups :is(.group-overview-column, .compact-standings-panel, .group-fixture-workbench) { height: auto; min-height: 0; }
  .schedule-centre-page .has-many-groups .compact-standings-grid > article { height: auto; min-height: 0; grid-template-rows: auto repeat(var(--standing-row-count), minmax(82px, auto)); }
  .schedule-centre-page .has-many-groups .mobile-group-switcher { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .schedule-centre-page .has-many-groups .mobile-group-switcher a { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 760px) {
  .schedule-centre-page .has-many-groups .mobile-group-round-filter { padding: 10px; }
  .schedule-centre-page .has-many-groups .mobile-group-switcher { gap: 7px; }
  .schedule-centre-page .has-many-groups .mobile-group-switcher a { min-height: 56px; padding: 8px; }
  .schedule-centre-page .has-many-groups .mobile-group-switcher b { font-size: 17px; }
  .schedule-centre-page .has-many-groups .mobile-group-switcher small { font-size: 12px; }
  .schedule-centre-page .has-many-groups .mobile-round-switcher { flex-wrap: nowrap; overflow-x: auto; padding-block: 2px 6px; }
  .schedule-centre-page .has-many-groups .mobile-round-switcher a { white-space: nowrap; }
  .schedule-centre-page .has-many-groups :is(.compact-standings-panel, .group-fixture-workbench) > header { padding: 14px; min-height: 74px; }
  .schedule-centre-page .has-many-groups :is(.compact-standings-panel, .group-fixture-workbench) h2 { font-size: 25px; }
  .schedule-centre-page .has-many-groups .compact-standings-grid { padding: 10px; }
  .schedule-centre-page .has-many-groups .compact-standings-grid article > header.group-standing-head,
  .schedule-centre-page .has-many-groups .compact-standing-row { grid-template-columns: 24px minmax(0, 1fr) 58px !important; gap: 8px; padding: 12px 10px; }
  .schedule-centre-page .has-many-groups .compact-standings-grid > article { grid-template-rows: auto repeat(var(--standing-row-count), minmax(100px, auto)); }
  .schedule-centre-page .has-many-groups .standing-record-heading { display: none; }
  .schedule-centre-page .has-many-groups .compact-standing-row > i { grid-row: 1; grid-column: 1; font-size: 19px; }
  .schedule-centre-page .has-many-groups .standing-team { grid-row: 1; grid-column: 2; gap: 8px; }
  .schedule-centre-page .has-many-groups .standing-team-main > b { font-size: 16px; }
  .schedule-centre-page .has-many-groups .standing-team em { width: 28px !important; height: 28px !important; }
  .schedule-centre-page .has-many-groups .qualification-marker { grid-row: 1; grid-column: 3; min-width: 50px; font-size: 12px; }
  .schedule-centre-page .has-many-groups .standing-record { grid-row: 2; grid-column: 2 / -1; font-size: 15px !important; }
  .schedule-centre-page .has-many-groups .standing-record > :is(span, b) { display: grid; gap: 3px; justify-items: center; }
  .schedule-centre-page .has-many-groups .standing-record > b { font-size: 19px !important; }
  .schedule-centre-page .has-many-groups .standing-record > :is(span, b)::before { color: var(--text-2); font-size: 11px; font-weight: 600; }
  .schedule-centre-page .has-many-groups .standing-record > :nth-child(1)::before { content: "胜"; }
  .schedule-centre-page .has-many-groups .standing-record > :nth-child(2)::before { content: "平"; }
  .schedule-centre-page .has-many-groups .standing-record > :nth-child(3)::before { content: "负"; }
  .schedule-centre-page .has-many-groups .standing-record > :nth-child(4)::before { content: "进"; }
  .schedule-centre-page .has-many-groups .standing-record > :nth-child(5)::before { content: "净"; }
  .schedule-centre-page .has-many-groups .standing-record > :nth-child(6)::before { content: "积分"; }
  .schedule-centre-page .has-many-groups .standings-ranking-note { padding: 12px; }
  .schedule-centre-page .has-many-groups .group-fixture-workbench .fixture-queue-row.is-public { grid-template-columns: minmax(0, 1fr) !important; gap: 12px; padding: 16px; min-height: 150px !important; }
  .schedule-centre-page .has-many-groups .fixture-queue-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
  .schedule-centre-page .has-many-groups .fixture-queue-teams { grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); gap: 8px; }
  .schedule-centre-page .has-many-groups .fixture-queue-teams > div { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
  .schedule-centre-page .has-many-groups .fixture-queue-teams > div:nth-of-type(2) { flex-direction: column-reverse; }
  .schedule-centre-page .has-many-groups .fixture-queue-teams b { font-size: 16px !important; }
  .schedule-centre-page .has-many-groups .fixture-queue-teams em { width: 32px !important; height: 32px !important; }
  .schedule-centre-page .has-many-groups .fixture-score { font-size: 30px !important; }
  .schedule-centre-page .has-many-groups .fixture-progress span { font-size: 12px !important; }
  .schedule-centre-page .has-many-groups .fixture-progress b { font-size: 23px; }
  .schedule-centre-page .has-many-groups .mobile-fixture-context { font-size: 13px; }
}

/* Keep the organizer's complete cross-group queue available without exposing
   editing controls on public pages or removing rows from the reorder payload. */
.schedule-centre-page .has-many-groups .group-workbench-title-row { flex-wrap: wrap; }
.schedule-centre-page .has-many-groups .group-fixture-scope {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-1);
  color: var(--text-1);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.schedule-centre-page .has-many-groups .group-fixture-scope[hidden] { display: none; }
.schedule-centre-page .has-many-groups .shows-all-group-fixtures .fixture-queue-row { display: grid !important; }
.schedule-centre-page .has-many-groups .shows-all-group-fixtures .fixture-progress-all { display: block; }
.schedule-centre-page .has-many-groups .shows-all-group-fixtures .fixture-progress-group,
.schedule-centre-page .has-many-groups .shows-all-group-fixtures .mobile-fixture-context { display: none; }
