.matchups-page {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 28px 16px 64px;
  color: var(--dmb-ink, #f4f5f7);
}

.matchups-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.matchups-header h1 {
  margin: 4px 0 0;
  font-family: "Fira Mono", monospace;
  font-size: 34px;
  font-weight: 700;
}

.matchups-eyebrow {
  margin: 0;
  color: var(--dmb-gold, #ffb700);
  font-family: "Fira Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.matchups-freshness {
  min-height: 24px;
  color: #29c780;
  font-family: "Fira Mono", monospace;
  font-size: 11px;
}

.matchups-toolbar {
  display: grid;
  grid-template-columns: 130px minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.matchups-control > span {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--dmb-muted, #9ca7b3);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.matchups-control .Select-control {
  min-height: 40px;
  border-color: var(--dmb-line, rgba(255, 255, 255, 0.08));
  border-radius: 5px;
  background: #141b21;
}

.matchups-control .Select-value-label,
.matchups-control .Select-placeholder,
.matchups-control .Select-input > input {
  color: var(--dmb-ink, #f4f5f7) !important;
}

.matchups-control .Select-menu-outer {
  z-index: 20;
  border-color: var(--dmb-line, rgba(255, 255, 255, 0.08));
  background: #141b21;
  color: var(--dmb-ink, #f4f5f7);
}

.matchups-control .Select-option,
.matchups-control .VirtualizedSelectOption {
  background: #141b21;
  color: var(--dmb-ink, #f4f5f7);
}

.matchups-control .Select-option.is-focused,
.matchups-control .Select-option.is-selected,
.matchups-control .VirtualizedSelectFocusedOption {
  background: #283746;
  color: #fff;
}

.matchups-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.matchup-card {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  background: var(--dmb-panel, #20272e);
}

.matchup-card-open {
  display: block;
  width: 100%;
  padding: 12px 14px 10px;
}

.matchup-card-heading,
.matchup-team-copy,
.matchup-score,
.matchup-boxscore header,
.matchup-player-copy,
.matchup-player-points {
  min-width: 0;
}

.matchup-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.matchup-card-heading strong {
  color: var(--dmb-muted, #9ca7b3);
  font-size: 12px;
}

.matchup-game-button {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08));
  border-radius: 4px;
  background: #141b21;
  color: var(--dmb-gold, #ffb700);
  font: 700 9px "Fira Mono", monospace;
  cursor: pointer;
}

.matchup-game-button:hover,
.matchup-game-button:focus-visible {
  border-color: var(--dmb-gold, #ffb700);
  outline: 0;
}
.matchup-card-heading small,
.matchup-card-meta,
.matchup-team-copy small,
.matchup-score small,
.matchup-boxscore header small,
.matchup-player-copy small,
.matchup-player-points small { color: var(--dmb-muted, #9ca7b3); }

.matchup-card-heading small,
.matchup-card-meta,
.matchup-score,
.matchup-player-points {
  font-family: "Fira Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.matchup-team-list { border-top: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08)); }

.matchup-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  align-items: center;
  min-height: 51px;
  border-bottom: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08));
}

.matchup-team.leading { box-shadow: inset 3px 0 0 #29c780; }
.matchup-team-copy { padding: 7px 10px; }
.matchup-team-copy strong,
.matchup-team-copy small,
.matchup-score strong,
.matchup-score small,
.matchup-boxscore header strong,
.matchup-boxscore header small,
.matchup-player-copy strong,
.matchup-player-copy small,
.matchup-player-points strong,
.matchup-player-points small { display: block; }
.matchup-team-copy strong,
.matchup-team-copy small,
.matchup-player-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matchup-team-copy strong { font-size: 13px; }
.matchup-team-copy small { margin-top: 1px; font-size: 10px; }
.matchup-score { padding-right: 8px; text-align: right; }
.matchup-score strong { font-size: 17px; }
.matchup-score small { font-size: 9px; }

.matchup-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 9px;
  font-size: 9px;
  text-transform: uppercase;
}
.matchup-card-meta span:last-child { margin-left: auto; color: var(--dmb-gold, #ffb700); }

.matchup-modal .modal-dialog {
  width: min(1120px, calc(100vw - 20px));
  max-width: none;
}

.matchup-modal .modal-content {
  overflow: hidden;
  border: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08));
  border-radius: 6px;
  background: #11181e;
  color: var(--dmb-ink, #f4f5f7);
}

.matchup-modal-header {
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 6px 8px 6px 12px;
  border-bottom: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08));
  background: #20272e;
}

.matchup-modal-header .modal-title {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matchup-modal-close {
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dmb-muted, #9ca7b3);
  place-items: center;
}

.matchup-modal-close:hover,
.matchup-modal-close:focus-visible {
  color: var(--dmb-gold, #ffb700);
  outline: 0;
}

.matchup-modal .modal-body { padding: 0; }

.matchup-compare-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08));
  background: #182129;
}

.matchup-compare-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
}

.matchup-compare-team.right { direction: rtl; }
.matchup-compare-team.right > * { direction: ltr; text-align: right; }
.matchup-compare-team strong,
.matchup-compare-team small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matchup-compare-team strong { font-size: 12px; }
.matchup-compare-team small { color: var(--dmb-muted, #9ca7b3); font-size: 9px; }
.matchup-compare-score { color: var(--dmb-gold, #ffb700); font-family: "Fira Mono", monospace; text-align: right; }
.matchup-versus { color: var(--dmb-muted, #9ca7b3); font: 700 8px "Fira Mono", monospace; text-align: center; }

.matchup-pair-group h3 {
  margin: 0;
  padding: 4px 8px;
  border-bottom: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08));
  background: #20272e;
  color: var(--dmb-muted, #9ca7b3);
  font-size: 8px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.matchup-pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  min-height: 31px;
  border-bottom: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08));
}

.matchup-pair-row:last-child { border-bottom: 0; }
.matchup-pair-position { align-self: center; color: var(--dmb-muted, #9ca7b3); font-size: 7px; font-weight: 700; text-align: center; }

.matchup-compact-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 7px;
  background: #171e24;
}

.matchup-compact-player:not(.right) { border-left: 2px solid var(--position-color, #9ca7b3); }
.matchup-compact-player.right { border-right: 2px solid var(--position-color, #9ca7b3); }
.matchup-compact-player.pos-qb { --position-color: #ff4775; }
.matchup-compact-player.pos-rb,
.matchup-compact-player.pos-fb { --position-color: #19c7ae; }
.matchup-compact-player.pos-wr { --position-color: #60a5fa; }
.matchup-compact-player.pos-te { --position-color: #ffad5a; }
.matchup-compact-player.pos-def { --position-color: #cf79d8; }
.matchup-compact-player.pos-k { --position-color: #a7b0bb; }

.matchup-compact-player .matchup-compact-copy small {
  color: var(--position-color, var(--dmb-muted, #9ca7b3));
}

.matchup-compact-player.right { direction: rtl; }
.matchup-compact-player.right > * { direction: ltr; text-align: right; }
.matchup-compact-copy,
.matchup-compact-points { min-width: 0; }
.matchup-compact-copy strong,
.matchup-compact-copy small,
.matchup-compact-points strong,
.matchup-compact-points small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matchup-compact-copy strong { font-size: 10px; line-height: 1.1; }
.matchup-compact-copy small { color: var(--dmb-muted, #9ca7b3); font-size: 7px; }
.matchup-compact-points { font-family: "Fira Mono", monospace; text-align: right; }
.matchup-compact-points strong { font-size: 10px; }
.matchup-compact-points small { color: var(--dmb-muted, #9ca7b3); font-size: 7px; }

.matchup-boxscores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--dmb-line, rgba(255, 255, 255, 0.08));
  background: var(--dmb-line, rgba(255, 255, 255, 0.08));
}

.matchup-boxscore { min-width: 0; padding: 10px; background: #171e24; }
.matchup-boxscore header { min-height: 38px; }
.matchup-boxscore header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.matchup-boxscore header small { font-size: 9px; }
.matchup-player-group + .matchup-player-group { margin-top: 14px; }
.matchup-player-group h3 { margin: 0 0 5px; color: var(--dmb-muted, #9ca7b3); font-size: 9px; text-transform: uppercase; }
.matchup-player-list { display: grid; gap: 3px; }

.matchup-player {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 38px;
  border-left: 2px solid var(--dmb-muted, #9ca7b3);
  background: #222a31;
}

.matchup-player-position { color: var(--dmb-muted, #9ca7b3); font-size: 8px; font-weight: 700; text-align: center; }
.matchup-player-copy { padding: 5px 3px; }
.matchup-player-copy strong { font-size: 10px; }
.matchup-player-copy small,
.matchup-player-points small { font-size: 8px; }
.matchup-player-points { padding-right: 5px; text-align: right; }
.matchup-player-points strong { font-size: 10px; }
.matchup-player-empty,
.matchups-empty { color: var(--dmb-muted, #9ca7b3); }
.matchup-player-empty { margin: 0; font-size: 10px; }
.matchups-empty { padding: 40px; border: 1px dashed var(--dmb-line, rgba(255, 255, 255, 0.08)); text-align: center; }

.matchup-player.pos-qb { border-left-color: #ff4775; }
.matchup-player.pos-rb,
.matchup-player.pos-fb { border-left-color: #19c7ae; }
.matchup-player.pos-wr { border-left-color: #60a5fa; }
.matchup-player.pos-te { border-left-color: #ffad5a; }
.matchup-player.pos-def { border-left-color: #cf79d8; }
.matchup-player.pos-k { border-left-color: #a7b0bb; }

@media (max-width: 860px) {
  .matchups-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .matchups-page { padding: 20px 10px 48px; }
  .matchups-header { align-items: center; }
  .matchups-header h1 { font-size: 27px; }
  .matchups-toolbar { grid-template-columns: 1fr 1fr; }
  .matchups-control:last-child { grid-column: 1 / -1; }
  .matchup-card-open { padding: 10px; }
  .matchup-modal .modal-dialog { width: calc(100vw - 8px); margin: 4px; }
  .matchup-modal .modal-content { max-height: calc(100dvh - 8px); }
  .matchup-modal-header { min-height: 42px; padding-left: 8px; }
  .matchup-modal-header .modal-title { font-size: 12px; }
  .matchup-compare-team { gap: 3px; padding: 5px 4px; }
  .matchup-compare-team strong { font-size: 10px; }
  .matchup-compare-team small { font-size: 7px; }
  .matchup-compare-score strong { font-size: 11px; }
  .matchup-compact-player { grid-template-columns: minmax(0, 1fr) 42px; gap: 2px; padding: 2px 4px; }
  .matchup-compact-copy strong,
  .matchup-compact-points strong { font-size: 9px; }
  .matchup-pair-row { min-height: 28px; }
}