.club-history {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.ch-hero {
  display: grid;
  grid-template-columns: minmax(150px, 35%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--panel);
}
.ch-hero > .pavilion-scene {
  height: 100%;
  margin: 0;
  border: 0;
}
.ch-hero .pavilion-scene img {
  width: 100%;
  height: 100%;
  min-height: 166px;
  object-fit: cover;
}
.ch-hero > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 22px;
}
.ch-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--dim);
}
.ch-hero h3 {
  margin: 0;
  color: var(--cream);
  font-size: 27px;
}
.ch-hero p,
.ch-archive-note {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.65;
}
.ch-hero strong {
  font-size: 26px;
  color: #f0d28a;
}
.ch-hero strong small {
  font-size: 12px;
  color: var(--dim);
  font-weight: 500;
}
.ch-filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 15px;
  align-items: end;
}
.ch-result-filters,
.ch-innings-switch {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ch-result-filters .game-button,
.ch-innings-switch .game-button {
  min-height: 40px;
  padding: 9px 13px;
}
.ch-result-filters [aria-pressed='true'],
.ch-innings-switch [aria-pressed='true'] {
  border-color: #d7bb72;
  background: #3d3d35;
  color: #ffe4a7;
}
.ch-season-filter {
  display: grid;
  gap: 6px;
  color: var(--dim);
  font-size: 11px;
}
.ch-season-filter select {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--edge);
  background: var(--panel);
  color: var(--cream);
  font: inherit;
  font-size: 12px;
}
.ch-summary {
  border: 1px solid var(--edge);
  background: var(--panel);
  padding: 18px;
}
.ch-summary > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.ch-summary h4 {
  font-size: 15px;
  margin: 0;
}
.ch-summary header > strong {
  color: var(--cream);
  font-size: 27px;
}
.ch-summary header > strong > small {
  color: var(--dim);
  font-size: 11px;
  font-weight: 500;
}
.ch-outcomes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  gap: 10px;
}
.ch-outcomes > div {
  padding-left: 10px;
  border-left: 2px solid var(--edge);
}
.ch-outcomes > [data-result='win'] {
  border-color: #7cceab;
}
.ch-outcomes > [data-result='loss'] {
  border-color: #df9b95;
}
.ch-outcomes dt {
  color: var(--dim);
  font-size: 11px;
}
.ch-outcomes dd {
  color: var(--cream);
  margin: 5px 0 0;
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ch-match-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ch-match-card {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--edge);
  background: var(--panel);
  min-width: 0;
}
.ch-match-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ch-match-card > header > span {
  font-size: 10px;
  color: var(--dim);
  line-height: 1.6;
}
.ch-result {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid var(--edge);
  border-radius: 3px;
  color: #d7d8ce;
  background: #21364a;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
}
.ch-result[data-result='win'] {
  color: #a5e0c4;
  border-color: #426c5e;
  background: #1c3d37;
}
.ch-result[data-result='loss'] {
  color: #efb2ac;
  border-color: #71504e;
  background: #3b2d36;
}
.ch-score-lines {
  display: grid;
  gap: 11px;
  margin: 0;
}
.ch-score-lines > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.ch-score-lines dt {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--cream);
}
.ch-score-lines dd {
  display: grid;
  justify-items: end;
  gap: 2px;
  margin: 0;
}
.ch-score-lines strong {
  color: var(--cream);
  font-size: 25px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ch-score-lines small {
  font-size: 10px;
  color: var(--dim);
}
.ch-context {
  margin: 0;
  color: var(--dim);
  line-height: 1.6;
  font-size: 11px;
}
.ch-match-card > footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 3px;
  margin-top: auto;
}
.ch-match-card > footer .game-button {
  min-height: 38px;
  font-size: 11px;
}
.ch-empty {
  padding: 24px 18px;
  border: 1px dashed var(--edge);
  background: var(--panel);
  color: var(--dim);
  font-size: 12px;
  line-height: 1.7;
}
.ch-empty h4 {
  color: var(--cream);
  margin: 0 0 7px;
  font-size: 15px;
}
.ch-empty p {
  margin: 0;
}
.ch-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ch-pagination > span {
  color: var(--dim);
  font-size: 11px;
}
.ch-pagination > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ch-pagination .game-button {
  min-height: 38px;
  font-size: 11px;
  padding: 7px 10px;
}
.ch-pagination b {
  font-size: 11px;
  color: var(--dim);
  margin: 0 5px;
  white-space: nowrap;
}
#club-history-dialog {
  width: min(950px, calc(100vw - 28px));
  max-height: min(88vh, 980px);
  padding: 0;
  border: 1px solid var(--edge);
  background: var(--navy);
  color: var(--cream);
}
#club-history-dialog::backdrop {
  background: #050e19bd;
}
.ch-match-detail .report-header {
  margin: 0;
  padding: 18px;
}
.ch-match-detail .report-header > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.ch-match-detail .report-header h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.ch-match-detail-body {
  display: grid;
  gap: 16px;
  padding: 18px;
  min-width: 0;
}
.ch-match-detail-body > .ch-score-lines {
  max-width: 480px;
}
.ch-match-detail .scorecard-view {
  min-width: 0;
}
@media (max-width: 700px) {
  .club-history {
    gap: 14px;
  }
  .ch-hero {
    grid-template-columns: 105px minmax(0, 1fr);
  }
  .ch-hero > div {
    padding: 15px;
    gap: 7px;
  }
  .ch-hero h3 {
    font-size: 22px;
  }
  .ch-hero p {
    font-size: 11px;
  }
  .ch-eyebrow {
    font-size: 9px;
    line-height: 1.6;
  }
  .ch-filterbar {
    grid-template-columns: minmax(0, 1fr) 114px;
    gap: 9px;
  }
  .ch-result-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }
  .ch-result-filters .game-button {
    padding: 7px 3px;
    font-size: 10px;
    min-width: 0;
  }
  .ch-season-filter select {
    font-size: 11px;
    padding-inline: 6px;
  }
  .ch-match-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .ch-match-card,
  .ch-summary {
    padding: 14px;
  }
  .ch-summary h4 {
    font-size: 13px;
  }
  .ch-pagination > div {
    width: 100%;
    justify-content: space-between;
    gap: 3px;
  }
  .ch-pagination .game-button {
    padding: 7px 8px;
  }
  .ch-pagination b {
    margin: 0 2px;
  }
  .ch-match-detail .report-header,
  .ch-match-detail-body {
    padding: 13px;
  }
  .ch-match-detail .report-header h2 {
    font-size: 16px;
  }
  .ch-match-detail .report-header .game-button {
    padding: 8px 9px;
    font-size: 11px;
    flex: none;
  }
}
