/* /static/css/shot-charts.css — Shot Charts cheat sheet */

.sc-container {
  padding: 24px 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ── Header + controls ─────────────────────────────────── */
.sc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sc-title {
  display: none;
}

.sc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Button group (reuse ps-btn pattern) */
.sc-btn-group {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sc-btn {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: var(--theme-text-secondary, #8B949E);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sc-btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text-primary, #E6EDF3);
}

.sc-btn--active {
  background: rgba(0, 211, 189, 0.12);
  color: #00D3BD;
  border-color: rgba(0, 211, 189, 0.3);
}

.sc-btn--active:hover {
  background: rgba(0, 211, 189, 0.2);
  color: #00D3BD;
}

/* Standalone today-only toggle / picker triggers */
.sc-btn-today {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dropdown selects */
.sc-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--theme-text-primary, #E6EDF3);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  padding: 10px 12px;
  cursor: pointer;
  appearance: auto;
}

.sc-select:focus {
  outline: none;
  border-color: var(--theme-accent, #00D3BD);
}

/* ── Team picker ──────────────────────────────────────── */
.sc-team-picker {
  position: relative;
}

.sc-team-popup {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 100;
  background: #141e30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 380px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.sc-team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.sc-team-chip {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--theme-text-secondary, #8B949E);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 4px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, opacity 0.12s;
}

.sc-team-chip-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sc-team-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text-primary, #E6EDF3);
}

.sc-team-chip--active {
  background: rgba(0, 211, 189, 0.12);
  color: #00D3BD;
  border-color: rgba(0, 211, 189, 0.3);
}

.sc-team-grid:has(.sc-team-chip:not(.sc-team-chip--active)) .sc-team-chip:not(.sc-team-chip--active) {
  opacity: 0.35;
}

.sc-team-chip--active .sc-team-chip-logo {
  filter: none;
}

/* ── Inline position grid (always visible, no popup) ──── */
.sc-pos-grid-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-pos-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--theme-text-secondary, #8B949E);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
  width: 56px;
  text-align: center;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, opacity 0.12s;
}

.sc-pos-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text-primary, #E6EDF3);
}

.sc-pos-chip--active {
  background: rgba(0, 211, 189, 0.12);
  color: #00D3BD;
  border-color: rgba(0, 211, 189, 0.3);
}

.sc-pos-grid-inline:has(.sc-pos-chip:not(.sc-pos-chip--active)) .sc-pos-chip:not(.sc-pos-chip--active) {
  opacity: 0.35;
}

/* Hide min GP filter on desktop */
.sc-select#sc-min-games { display: none; }

/* ── Drawer wrapper — preserves flex chain on desktop ──── */
.sc-drawer-handle { display: none; }
.sc-drawer-toggle-btn { display: none; }
.sc-drawer-body {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

/* Bottom row (team picker + reset) — inline on desktop */
.sc-bottom-row {
  display: contents;
}

.sc-btn-reset { display: none; }
.sc-btn-reset.sc-btn--dirty {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ── Table ──────────────────────────────────────────────── */
.sc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  white-space: nowrap;
}

.sc-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #0d1b2a;
  color: var(--theme-text-secondary, #8B949E);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  user-select: none;
}

/* Player header stays left-aligned */
.sc-table th.sc-col-player {
  text-align: left;
}

.sc-table th[data-col] {
  cursor: pointer;
  transition: color 0.15s;
}

.sc-table th[data-col]:hover {
  color: var(--theme-accent, #00D3BD);
}

.sc-table th.sc-sorted {
  color: var(--theme-accent, #00D3BD);
}

.sc-arrow {
  font-size: 10px;
  margin-left: 3px;
  vertical-align: middle;
}

.sc-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--theme-text-primary, #E6EDF3);
}

/* Zebra rows */
.sc-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Hover highlight */
.sc-table tbody tr.sc-player-row {
  cursor: pointer;
  transition: background 0.12s;
}

.sc-table tbody tr.sc-player-row:hover {
  background: rgba(0, 211, 189, 0.06);
}

/* ── Column-specific ────────────────────────────────────── */
td.sc-col-player {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  position: sticky;
  left: 0;
  z-index: 1;
}

.sc-table tbody tr:nth-child(odd) td.sc-col-player {
  background: #0a1628;
}
.sc-table tbody tr:nth-child(even) td.sc-col-player {
  background: #0c1a30;
}
.sc-table tbody tr:hover td.sc-col-player {
  background: #0b1f30;
}

th.sc-col-player {
  position: sticky;
  left: 0;
  z-index: 4;
}

.sc-avatar-wrap {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sc-headshot {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.sc-team-badge {
  position: absolute;
  bottom: -3px;
  right: -6px;
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 50%;
  background: #060e1e;
  padding: 2px;
}

.sc-team-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sc-name {
  font-weight: 600;
  color: var(--theme-text-primary, #E6EDF3);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Abbreviated name hidden on desktop, shown on mobile */
.sc-name-short { display: none; }

.sc-pos-badge,
.sc-inj-chip {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.2;
}

.sc-pos-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--theme-text-secondary, #8B949E);
}

.sc-inj-chip {
  background: rgba(255, 170, 51, 0.15);
  color: #ffaa33;
}

.sc-inj--gtd {
  background: rgba(255, 170, 51, 0.15);
  color: #ffaa33;
}

.sc-inj--probable {
  background: rgba(0, 211, 189, 0.12);
  color: #44d9b4;
}

.sc-inj--out {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.sc-col-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ── Zone FG% heat-map cells ──────────────────────────── */
.sc-zone-cell {
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  border-radius: 4px;
  padding: 4px 8px;
}

.sc-heat-green  { background: rgba(52, 211, 153, 0.25); color: #34d399; }
.sc-heat-yellow { background: rgba(251, 191, 36, 0.20); color: #fbbf24; }
.sc-heat-red    { background: rgba(239, 68, 68, 0.20);  color: #ef4444; }
.sc-heat-none   { color: var(--theme-text-secondary, #8B949E); }

/* ── Inline expansion (detail row) ─────────────────────── */
.sc-detail-row td {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Side-by-side courts container */
.sc-courts-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(0, 211, 189, 0.15);
}

.sc-court-col {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.sc-court-title {
  position: relative;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-text-primary, #E6EDF3);
  margin-bottom: 10px;
}

.sc-court-svg {
  margin: 8px 0;
}

.sc-court-svg svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: inline-block;
}

.sc-detail-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--theme-text-primary, #E6EDF3);
  font-family: Inter, system-ui, sans-serif;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  appearance: auto;
}

.sc-detail-select:focus {
  outline: none;
  border-color: var(--theme-accent, #00D3BD);
}

/* Shot legend */
.sc-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--theme-text-secondary, #8B949E);
}

.sc-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Defense clear opponent button ───────────────────── */
.sc-clear-opp-btn {
  appearance: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--theme-text-secondary, #8B949E);
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.sc-clear-opp-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ── Defense placeholder (opponent selector) ─────────── */
.sc-defense-placeholder {
  padding: 12px 0;
}

.sc-placeholder-text {
  color: var(--theme-text-secondary, #8B949E);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  margin: 0 0 14px;
}

.sc-opp-team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.sc-opp-team-chip {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--theme-text-secondary, #8B949E);
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 4px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.sc-opp-team-chip:hover {
  background: rgba(0, 211, 189, 0.12);
  color: #00D3BD;
  border-color: rgba(0, 211, 189, 0.3);
}

.sc-opp-team-chip .sc-team-chip-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ── View player stats link ─────────────────────────────── */
.sc-view-player-link {
  flex: 0 0 100%;
  text-align: center;
  padding: 0;
  margin-bottom: -16px;
}

.sc-view-player-link a {
  color: #00D3BD;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.sc-view-player-link a:hover {
  color: #33e0ce;
  text-decoration: underline;
}

/* ── Detail panel controls ─────────────────────────────── */
.sc-detail-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* ── Color scale legend ───────────────────────────────── */
.sc-color-scale {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 8px;
  font-size: 11px;
  font-family: Inter, system-ui, sans-serif;
  color: var(--theme-text-secondary, #8B949E);
}

.sc-color-bar {
  width: 120px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #3b82f6, #60a5fa, #fbbf24, #f97316, #ef4444);
}

/* ── Loading / Empty states ─────────────────────────────── */
.sc-loading,
.sc-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--theme-text-secondary, #8B949E);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
}

/* ── Light theme ────────────────────────────────────────── */
[data-theme="light"] .sc-table th {
  background: #f6f8fa;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sc-table td {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .sc-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .sc-table tbody tr.sc-player-row:hover {
  background: rgba(0, 211, 189, 0.06);
}

[data-theme="light"] .sc-btn {
  background: rgba(0, 0, 0, 0.04);
  color: var(--theme-text-secondary, #656d76);
}

[data-theme="light"] .sc-select,
[data-theme="light"] .sc-detail-select {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--theme-text-primary, #1f2328);
}

[data-theme="light"] .sc-table tbody tr:nth-child(odd) td.sc-col-player {
  background: #fff;
}
[data-theme="light"] .sc-table tbody tr:nth-child(even) td.sc-col-player {
  background: #f6f8fa;
}
[data-theme="light"] .sc-table tbody tr:hover td.sc-col-player {
  background: rgba(0, 211, 189, 0.06);
}
[data-theme="light"] th.sc-col-player {
  background: #f6f8fa;
}
[data-theme="light"] .sc-team-badge {
  background: #fff;
}
[data-theme="light"] .sc-courts-row {
  background: rgba(0, 0, 0, 0.02);
  border-top-color: rgba(0, 211, 189, 0.15);
}

[data-theme="light"] .sc-team-popup {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .sc-team-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--theme-text-secondary, #656d76);
}

[data-theme="light"] .sc-team-chip:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--theme-text-primary, #1f2328);
}

[data-theme="light"] .sc-team-chip--active {
  background: rgba(0, 180, 160, 0.1);
  color: #00917e;
  border-color: rgba(0, 180, 160, 0.3);
}

[data-theme="light"] .sc-pos-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--theme-text-secondary, #656d76);
}

[data-theme="light"] .sc-pos-chip--active {
  background: rgba(0, 180, 160, 0.1);
  color: #00917e;
  border-color: rgba(0, 180, 160, 0.3);
}

[data-theme="light"] .sc-clear-opp-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--theme-text-secondary, #656d76);
}

[data-theme="light"] .sc-clear-opp-btn:hover {
  background: rgba(220, 60, 60, 0.1);
  color: #cc3333;
  border-color: rgba(220, 60, 60, 0.3);
}

[data-theme="light"] .sc-opp-team-chip {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--theme-text-secondary, #656d76);
}

[data-theme="light"] .sc-opp-team-chip:hover {
  background: rgba(0, 180, 160, 0.1);
  color: #00917e;
  border-color: rgba(0, 180, 160, 0.3);
}

[data-theme="light"] .sc-pos-badge {
  background: rgba(0, 0, 0, 0.06);
  color: var(--theme-text-secondary, #656d76);
}
[data-theme="light"] .sc-inj-chip,
[data-theme="light"] .sc-inj--gtd {
  background: rgba(200, 130, 0, 0.12);
  color: #b37400;
}
[data-theme="light"] .sc-inj--probable {
  background: rgba(0, 160, 130, 0.1);
  color: #008060;
}
[data-theme="light"] .sc-inj--out {
  background: rgba(220, 60, 60, 0.12);
  color: #cc3333;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {

  /* Lock page scroll when drawer is open */
  body.sc-body-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  .sc-container {
    padding: 140px 0 32px;
  }

  .sc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
  }

  .sc-title {
    display: none;
  }

  /* ── Filter drawer — fixed below navbar ─────────────── */
  .sc-filter-drawer {
    position: fixed;
    top: var(--sc-navbar-h, 74px) !important;
    left: 0;
    right: 0;
    z-index: 1100;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 0 16px 16px;
    background: var(--bg-base, #060e1e);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .sc-drawer-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 120px;
    flex-shrink: 0;
    padding: 0 24px;
    box-sizing: border-box;
    background: var(--bg-base, #060e1e);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    order: 2;
  }

  .sc-drawer-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 50%;
    border: 2px solid #00D3BD;
    background: rgba(0, 211, 189, 0.12);
    color: #00D3BD;
    font-size: 32px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, transform 0.15s;
  }

  .sc-drawer-toggle-btn:active {
    background: rgba(0, 211, 189, 0.25);
    transform: scale(0.92);
  }

  .sc-drawer-summary {
    font-size: 32px;
    font-weight: 600;
    color: var(--theme-text-primary, #E6EDF3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* --- Drawer body (scrollable content) --- */
  .sc-drawer-body {
    overflow-y: auto;
    max-height: 0;
    transition: max-height 0.3s ease;
    -webkit-overflow-scrolling: touch;
    order: 1;
    display: block;
    flex-wrap: nowrap;
    gap: 0;
  }

  .sc-filter-drawer.sc-drawer-open .sc-drawer-body {
    max-height: calc(70vh - 108px);
  }

  .sc-controls {
    width: 100%;
    gap: 28px;
    flex-direction: column;
    padding: 48px 32px 20px;
    box-sizing: border-box;
  }

  /* ── Buttons — 30px font, generous padding ──────────── */
  .sc-btn {
    font-size: 30px;
    padding: 18px 28px;
  }

  .sc-btn-group {
    border-radius: 16px;
    width: 100%;
    display: flex;
  }

  .sc-btn-group .sc-btn {
    flex: 1;
    text-align: center;
  }

  .sc-btn-today {
    border-radius: 16px;
    width: 100%;
    text-align: center;
    padding: 20px 28px;
  }

  .sc-select#sc-min-games {
    display: none;
  }

  /* ── Table 2x ────────────────────────────────────────── */
  .sc-table {
    font-size: 26px;
  }

  .sc-table th {
    font-size: 24px;
    padding: 20px 20px;
    letter-spacing: 0.05em;
  }

  .sc-table td {
    padding: 16px 8px;
  }

  td.sc-col-player {
    padding-left: 4px;
  }

  /* ── Avatar 2x ───────────────────────────────────────── */
  .sc-avatar-wrap {
    width: 64px;
    height: 64px;
  }

  .sc-headshot {
    width: 64px;
    height: 64px;
  }

  .sc-team-badge {
    width: 36px;
    height: 36px;
    bottom: -4px;
    right: -8px;
    padding: 3px;
  }

  .sc-team-logo {
    width: 64px;
    height: 64px;
  }

  /* ── Player col static on mobile ─────────────────────── */
  td.sc-col-player,
  th.sc-col-player {
    position: static;
  }

  td.sc-col-player {
    gap: 16px;
    min-width: auto;
    max-width: 320px;
  }

  .sc-name {
    font-size: 26px;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
  }

  .sc-name-short {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
  }

  /* Abbreviated names on mobile */
  .sc-name-full { display: none; }
  .sc-name-short { display: inline; }

  /* ── Chips 2x ────────────────────────────────────────── */
  .sc-pos-badge,
  .sc-inj-chip {
    font-size: 18px;
    padding: 4px 12px;
    border-radius: 8px;
  }

  /* ── Arrow 2x ────────────────────────────────────────── */
  .sc-arrow {
    font-size: 20px;
    margin-left: 6px;
  }

  /* ── Loading/empty 2x ────────────────────────────────── */
  .sc-loading,
  .sc-empty {
    font-size: 30px;
    padding: 96px 32px;
  }

  .sc-table-wrap {
    border: none;
    border-radius: 0;
  }

  /* ── Bottom row: team picker + reset side by side ────── */
  .sc-bottom-row {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sc-bottom-row .sc-team-picker {
    flex: 1;
    min-width: 0;
  }

  .sc-bottom-row .sc-team-popup {
    width: calc(100vw - 64px);
  }

  .sc-btn-reset {
    display: block;
    flex: 0 0 auto;
    width: auto;
    padding: 18px 24px;
  }

  /* ── Team popup — inline panel inside drawer ─────────── */
  .sc-team-picker {
    position: static;
    width: 100%;
  }

  .sc-team-popup {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow-y: visible;
    padding: 20px;
    margin-top: 10px;
    border-radius: 16px;
    box-shadow: none;
  }

  .sc-team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .sc-team-chip {
    font-size: 22px;
    padding: 14px 8px;
  }

  .sc-team-chip-logo {
    width: 54px;
    height: 54px;
  }

  /* ── Inline position chips ─────────────────────────────── */
  .sc-pos-grid-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  .sc-pos-chip {
    font-size: 28px;
    padding: 16px 0;
    flex: 1;
    min-width: 0;
    border-radius: 14px;
  }

  /* Courts side-by-side on mobile — minimal spacing */
  .sc-courts-row {
    gap: 0;
    padding: 8px 0;
  }

  .sc-court-col {
    flex: 0 0 50%;
    max-width: 480px;
    padding: 10px;
  }

  .sc-court-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .sc-court-svg {
    margin: 10px 0;
  }

  .sc-court-svg svg {
    max-width: none;
    width: 100%;
  }

  .sc-view-player-link {
    text-align: left;
    padding-left: 350px;
    margin-top: 10px;
    margin-bottom: 16px;
  }

  .sc-view-player-link a {
    font-size: 24px;
  }

  .sc-clear-opp-btn {
    font-size: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    margin-left: 16px;
  }

  /* ── Defense placeholder (opponent selector) ─────────── */
  .sc-placeholder-text {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .sc-opp-team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .sc-opp-team-chip {
    font-size: 18px;
    padding: 10px 4px;
    border-radius: 10px;
  }

  .sc-opp-team-chip .sc-team-chip-logo {
    width: 40px;
    height: 40px;
  }

  .sc-detail-controls {
    gap: 6px;
    margin-bottom: 8px;
  }

  .sc-color-scale {
    margin: 8px 0 4px;
    font-size: 24px;
  }

  .sc-color-bar {
    width: 100px;
    height: 10px;
  }

  /* ── Disable hover effects on mobile ─────────────────── */
  .sc-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--theme-text-secondary, #8B949E);
  }

  .sc-btn--active:hover {
    background: rgba(0, 211, 189, 0.12);
    color: #00D3BD;
  }

  .sc-team-chip:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--theme-text-secondary, #8B949E);
  }

  .sc-team-chip--active:hover {
    background: rgba(0, 211, 189, 0.12);
    color: #00D3BD;
  }

  .sc-pos-chip:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--theme-text-secondary, #8B949E);
  }

  .sc-pos-chip--active:hover {
    background: rgba(0, 211, 189, 0.12);
    color: #00D3BD;
  }
}

/* ── Light theme — mobile drawer ───────────────────────── */
@media (max-width: 1000px) {
  [data-theme="light"] .sc-filter-drawer {
    background: #fff;
    border-bottom-color: rgba(0, 0, 0, 0.1);
  }

  [data-theme="light"] .sc-drawer-handle {
    background: #fff;
    border-top-color: rgba(0, 0, 0, 0.06);
  }

  [data-theme="light"] .sc-drawer-toggle-btn {
    border-color: #00b4a0;
    background: rgba(0, 180, 160, 0.1);
    color: #00917e;
  }
}
