.desktop-insight-nba-matchup-grid > .nba-game-log-action { grid-column: 1 / -1; justify-self: start; }
.desktop-insight-scores > .nba-game-log-action { display: flex; align-items: center; flex: 0 0 auto; }
.mobile-matchup-card .mobile-card-action > .nba-game-log-action { display: flex; align-items: center; margin: 0; }
.mobile-matchup-card .mobile-card-action .nba-h2h-button { min-height: 36px; padding: 6px 9px; }
.mobile-nba-game-environment { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: -4px; padding-inline: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
@media (max-width: 840px) {
  .mobile-matchup-card:has([data-nba-h2h-log]) .mobile-matchup-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
  .mobile-matchup-card:has([data-nba-h2h-log]) .mobile-matchup-meta-primary { min-width: 0; overflow-wrap: anywhere; }
  .mobile-matchup-card:has([data-nba-h2h-log]) .mobile-matchup-meta-primary > :is(.pill, .desktop-insight-lineup-role) { box-sizing: border-box; display: inline-flex; align-items: center; min-height: 32px; margin: 0; }
  .mobile-matchup-card:has([data-nba-h2h-log]) .mobile-matchup-meta-primary > .pill { justify-content: flex-start; padding-inline: 8px; }
  .mobile-matchup-card:has([data-nba-h2h-log]) .mobile-matchup-meta .mobile-card-action { grid-column: 2; grid-row: 1; margin: 0; gap: 6px; }
  .mobile-matchup-card .mobile-card-action .nba-h2h-button { box-sizing: border-box; height: 32px; min-height: 32px; font-size: 11px; padding: 5px 7px; }
}
@media (min-width: 841px) and (max-width: 1600px) {
  .desktop-insight-nba-item .desktop-insight-nba-matchup-grid { grid-template-columns: minmax(0, 1fr); }
  .desktop-insight-nba-item .desktop-insight-nba-matchup-grid.has-playing-time { grid-template-columns: minmax(0, 1fr) minmax(140px, .8fr); }
  .desktop-insight-nba-matchup-grid > .desktop-insight-versus { display: none; }
  .desktop-insight-nba-matchup-grid > .desktop-insight-matchup-person:has(.desktop-insight-nba-opponent-grid) { grid-column: 1 / -1; }
}
.nba-h2h-button {
  display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 6px 9px;
  color: #9cf5b8; background: #102818; border: 1px solid #275d37; border-radius: 7px;
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.nba-h2h-button:hover { background: #1a3b24; border-color: #27f86b; }
.nba-h2h-button:focus-visible, .nba-h2h-dialog button:focus-visible, .nba-h2h-scroll:focus-visible { outline: 2px solid #27f86b; outline-offset: 3px; }
.nba-h2h-dialog {
  box-sizing: border-box; width: min(850px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  padding: 24px; color: #eef6ef; background: #08140d; border: 1px solid #326b42;
  border-radius: 16px; box-shadow: 0 24px 80px #0009; overflow: auto; color-scheme: dark;
}
.nba-h2h-dialog::backdrop { background: #000a; }
.nba-h2h-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nba-h2h-header p { margin: 0 0 6px; color: #27f86b; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.nba-h2h-header h2 { margin: 0 0 6px; font-size: 25px; line-height: 1.2; }
.nba-h2h-header small, .nba-h2h-note { color: #a4b5aa; }
.nba-h2h-close { flex: 0 0 38px; width: 38px; height: 38px; padding: 0; font-size: 27px; line-height: 1; }
.nba-game-log-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid #244d30; }
.nba-game-log-tabs [role="tab"] { flex: 0 1 100px; width: auto; min-height: 40px; padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; background: transparent; color: #b8c9bd; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.nba-game-log-tabs [aria-selected="true"] { color: #27f86b; border-bottom-color: #27f86b; background: #13321f; }
.nba-game-log-tabs [role="tab"]:hover { background: #13321f; }
.nba-h2h-period { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; color: #b8c9bd; }
.nba-h2h-period select { width: auto; min-height: 36px; padding: 6px 10px; }
.nba-h2h-period[hidden] { display: none; }
.nba-h2h-scroll { overflow-x: auto; border: 1px solid #244d30; border-radius: 8px; }
.nba-h2h-table { display: table; width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.nba-h2h-table thead { display: table-header-group; }
.nba-h2h-table tbody { display: table-row-group; width: auto; }
.nba-h2h-table tfoot { display: table-footer-group; }
.nba-h2h-table tr { display: table-row; width: auto; }
.nba-h2h-table caption { text-align: left; padding: 12px; color: #c2d2c6; font-weight: 700; }
.nba-h2h-table th, .nba-h2h-table td { display: table-cell; width: auto; position: static; background: inherit; padding: 13px 11px; text-align: right; white-space: nowrap; border-bottom: 1px solid #1b3824; }
.nba-h2h-table th:first-child { text-align: left; }
.nba-h2h-table thead th { color: #9daf9f; font-size: 11px; background: #101e15; }
.nba-h2h-table tfoot { background: #13321f; color: #9cf5b8; font-weight: 800; }
.nba-h2h-table tfoot th, .nba-h2h-table tfoot td { border-bottom: 0; }
.nba-h2h-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; }
.nba-h2h-empty { padding: 20px 0; color: #b8c9bd; }
@media (max-width: 600px) {
  .nba-h2h-dialog { padding: 18px 14px; }
  .nba-h2h-table th, .nba-h2h-table td { padding: 12px 9px; }
}
