/* The sheet is shared by public final results, member games and season archives. */
.nba-rosters {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.nba-side-input, .nba-side-label { display: none; }
.nba-roster.mc-card { padding: 0 18px; overflow: visible; }
.nba-team-heading { display: flex; gap: 9px; align-items: center; min-height: 62px; }
.nba-team-heading h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.nba-team-heading img, .nba-side-label img { flex: none; object-fit: contain; }
.nba-team-heading a { display: grid; place-items: center; margin-left: auto; min-width: 44px; min-height: 44px; color: var(--gold); }
.nba-team-heading a svg { width: 16px; height: 16px; }
.nba-disclosure, .nba-reported-starters { border-top: 1px solid var(--line); padding: 0; margin: 0; }
.nba-disclosure > summary {
  display: flex; align-items: center; gap: 8px; min-height: 46px;
  font-size: 14px; font-weight: 600; cursor: pointer; list-style: none;
}
.nba-disclosure > summary::-webkit-details-marker { display: none; }
.nba-disclosure > summary small { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--muted); }
.nba-disclosure > summary::after {
  content: ''; width: 6px; height: 6px; flex: none; margin: 0 3px 3px 3px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.nba-disclosure[open] > summary::after { transform: rotate(225deg); margin-bottom: -3px; }
.nba-disclosure > summary:focus-visible, .nba-team-heading a:focus-visible, .nba-player a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 4px;
}
.nba-disclosure .mc-pitch { margin: 0 0 12px; }
.nba-disclosure .mc-pitch-basketball .mc-pitch-rows { min-height: 235px; padding-block: 14px; }
.nba-roster-list { list-style: none; margin: 0 0 12px; padding: 0; }
.nba-roster-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px;
}
.nba-roster-list li > span:last-child:not(:first-child), .nba-roster-list small { color: var(--muted); font-size: 12px; }
.nba-reported-starters h4 { margin: 12px 0 8px; font-size: 14px; }
.nba-empty, .nba-meta, .nba-disclosure .mc-caption { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; padding: 8px 0 12px; }
.nba-boxscore, .nba-comparison table { width: 100%; max-width: 100%; white-space: normal; border-collapse: collapse; font-variant-numeric: tabular-nums; table-layout: fixed; }
.nba-boxscore { margin-bottom: 6px; }
.nba-boxscore th, .nba-boxscore td { padding: 5px 2px; border-top: 1px solid var(--line); text-align: right; }
.nba-boxscore th:first-child { padding-left: 0; text-align: left; }
.nba-boxscore thead th:not(:first-child) { width: 2.35em; }
.nba-boxscore thead .nba-more-col { width: 28px; }
.nba-boxscore thead th { color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 500; }
.nba-boxscore abbr { text-decoration: none; }
.nba-boxscore tbody { font-size: 14px; }
.nba-boxscore tbody th { font-weight: 500; }
.nba-boxscore .nba-points { font-weight: 650; }
.nba-player { display: flex; gap: 8px; align-items: center; }
.nba-boxscore tbody .nba-player > span,
.nba-boxscore tbody .nba-player .mc-player-link {
  min-width: 0; white-space: normal; color: var(--fg); font-size: 14px; font-weight: 500; line-height: 1.35;
  overflow-wrap: anywhere; letter-spacing: normal;
}
.nba-player .mc-player-thumb { width: 28px; height: 32px; border-radius: 4px; }
.nba-player .mc-player-link { display: inline-flex; align-items: center; min-height: 34px; }
.nba-player .player-photo-credit, .nba-player .player-photo-credit[open] { flex-basis: 28px; width: 28px; }
.nba-player .player-photo-credit > summary { width: 28px; }
.nba-comparison.mc-card { padding: 16px 20px; }
.nba-comparison caption { padding: 0 0 12px; text-align: left; color: var(--fg); font-size: 16px; font-weight: 600; }
.nba-comparison th, .nba-comparison td { font-size: 14px; border-top: 1px solid var(--line); padding: 8px 3px; }
.nba-comparison thead th { min-width: 0; white-space: normal; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.nba-comparison thead th:first-child, .nba-comparison td:first-child { text-align: left; }
.nba-comparison thead th:last-child, .nba-comparison td:last-child { text-align: right; }
.nba-comparison tbody th { color: var(--muted); font-weight: 400; text-align: center; }
.nba-comparison th:nth-child(2) { width: 44%; }
.nba-comparison th small { display: block; font-size: 11px; }

@media (max-width: 740px) {
  .nba-rosters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .nba-side-label {
    display: flex; gap: 5px; align-items: center; justify-content: center; align-self: stretch;
    min-height: 44px; padding: 5px; border: 1px solid var(--line); border-radius: 7px;
    color: var(--muted); font-size: 13px; line-height: 1.25; text-align: center; cursor: pointer;
  }
  .nba-side-label span { min-width: 0; overflow-wrap: anywhere; }
  .nba-side-input { display: block; position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .nba-side-input:checked + .nba-side-label { color: var(--fg); background: var(--gold-soft); border-color: var(--gold); }
  .nba-side-input:focus-visible + .nba-side-label { outline: 2px solid var(--gold); outline-offset: 2px; }
  .nba-roster.mc-card { grid-column: 1/-1; padding: 0 12px; }
  #nba-side-home:checked ~ #nba-roster-away, #nba-side-away:checked ~ #nba-roster-home { display: none; }
  .nba-team-heading { min-height: 40px; }
  .nba-team-heading h3 { font-size: 14px; }
  .nba-team-heading img { display: none; }
  .nba-player { gap: 5px; }
  .nba-player .mc-player-thumb { width: 24px; height: 29px; }
  .nba-comparison.mc-card { padding: 12px; }
}
@media (max-width: 380px) {
  .nba-roster.mc-card { padding-inline: 8px; }
  .nba-boxscore thead th:not(:first-child) { width: 2.05em; }
  .nba-boxscore td, .nba-boxscore tbody th { font-size: 13px; }
}

/* A player's disclosure opens directly below their stat line. The main row
   keeps proper column headers and the name remains a direct profile link. */
.nba-boxscore .nba-extra-row > td { position: relative; padding: 0; border: 0; text-align: left; }
.nba-extra { border: 0; margin: 0; padding: 0; }
.nba-extra > summary {
  position: absolute; right: 0; bottom: 100%; width: 28px; height: 40px;
  display: grid; place-items: center; list-style: none; cursor: pointer;
}
.nba-extra > summary::-webkit-details-marker { display: none; }
.nba-extra > summary::after {
  content: ''; width: 6px; height: 6px; border: solid var(--gold);
  border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.nba-extra[open] > summary::after { transform: rotate(225deg); }
.nba-extra > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.nba-extra dl {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px; margin: 0 0 9px; padding: 4px 8px; background: var(--gold-soft); border-radius: 6px;
}
.nba-extra dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 5px 0; }
.nba-extra dt { color: var(--muted); font-size: 12px; line-height: 1.3; }
.nba-extra dd { margin: 0; color: var(--fg); font-size: 13px; font-variant-numeric: tabular-nums; }

.nba-depth > summary { color: var(--gold); font-weight: 500; }
.nba-depth > summary small { font-variant-numeric: tabular-nums; }
