/* Fine Print theme: every new page uses this one file. Change colors and fonts here. */
:root {
  --ink: #14171F;
  --ink-2: #2B3140;
  --muted: #5B6270;
  --line: #E3E6EB;
  --line-soft: #EEF0F3;
  --bg: #F6F7F9;
  --card: #FFFFFF;
  --night: #0F1420;
  --night-2: #1C2333;
  --night-text: #C9CFDA;
  --accent: #C8102E;
  --link: #1D42BA;
  --neg: #9AA3B5;
  --radius: 18px;
  --font: Inter, system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', Inter, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(26px, 4vw, 36px); }
h2 { font-size: 20px; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; padding-top: 28px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 600; }

/* Header */
.site-header { background: var(--night); color: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; color: #fff; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo-dot { color: var(--accent); }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--night-2); color: #9AA3B5; border-radius: 999px; padding: 0 18px; height: 44px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; font-size: 15px; outline: none; }
.search input::placeholder { color: #9AA3B5; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--night-text); padding: 8px 0; }
.site-nav a.active, .site-nav a:hover { color: #fff; text-decoration: none; }

/* Layout */
main { min-height: 60vh; }
.page-grid { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 24px; padding-bottom: 64px; align-items: flex-start; }
.main-col { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-col { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; }

.breadcrumb { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb .sep { color: #B7BDC8; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* Hero */
.hero { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.hero-head { display: flex; align-items: center; gap: 16px; }
.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.answer { font-size: clamp(18px, 2.4vw, 22px); line-height: 1.45; font-weight: 500; }
.lead { font-size: 17px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #F0F2F5; border-radius: 999px; padding: 6px 12px; font-size: 13px; }

.avatar { flex: none; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; }
.avatar-lg { width: 60px; height: 60px; font-size: 20px; }
.avatar-sm { width: 36px; height: 36px; font-size: 12px; }

/* Stat table: table on wider screens, stacked list on phones */
.table-card { padding: 0; overflow: hidden; }
.table-card .card-head { padding: 20px 24px 8px; margin: 0; }
.stat-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.stat-table th { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stat-table td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.stat-table .num { text-align: right; white-space: nowrap; }
.stat-table th:first-child, .stat-table td:first-child { padding-left: 24px; }
.stat-table th:last-child, .stat-table td:last-child { padding-right: 24px; }
.player-cell { font-weight: 600; white-space: normal; }
.starter { display: inline-block; color: var(--ink-2); margin-left: 8px; padding: 1px 5px; border: 1px solid currentColor; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4; vertical-align: 2px; }
.change-col { width: 20%; }
.bar-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.bar { flex: 1; height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; min-width: 40px; }
.bar-fill { height: 100%; border-radius: 4px; background: #11663F; }
.bar-fill.neg { background: #E8A3AE; }
.delta { font-weight: 700; min-width: 44px; font-variant-numeric: tabular-nums; }
.delta.up { color: #11663F; }
.delta.down { color: #9B0C24; }
.stat-list { display: none; list-style: none; margin: 0; padding: 0; }
.stat-list li { padding: 14px 18px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.stat-list-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stat-list .bar { flex: none; width: 100%; height: 6px; }
.stat-table-compact .num { width: 22%; }
.player-grid { margin-top: 12px; }
.log-table td { white-space: nowrap; }
.result { display: inline-block; min-width: 20px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.result.win { background: #E6F4EE; color: #11663F; }
.result.loss { background: #FDE8EB; color: #9B0C24; }
.log-list { display: none; }
.chip-up { background: #E6F4EE; color: #11663F; font-weight: 600; }
.chip-down { background: #FDE8EB; color: #9B0C24; font-weight: 600; }
.vs-tile { gap: 4px; }
.vs-tile-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.vs-tile.is-best { border-left: 3px solid #11663F; }
.vs-tile.is-toughest { border-left: 3px solid #9B0C24; }
.matchup-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.matchup-badge.best { background: #E6F4EE; color: #11663F; }
.matchup-badge.toughest { background: #FDE8EB; color: #9B0C24; }
.vs-diff { margin-left: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.vs-diff.up { color: #11663F; }
.vs-diff.down { color: #9B0C24; }
.vs-legend { margin: -4px 0 12px; }
.tonight-game { display: flex; flex-direction: column; gap: 16px; }
.tonight-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tonight-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tonight-side { display: flex; flex-direction: column; gap: 10px; }
.tonight-team { display: flex; align-items: center; gap: 10px; }
.tonight-team .muted { margin-left: auto; }
.tonight-group { display: flex; flex-direction: column; gap: 4px; }
.tonight-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tonight-out { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.tonight-out:first-child { border-top: 0; }
.tonight-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tonight-gainer { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tonight-gainer:hover { text-decoration: none; color: var(--link); }
.tonight-gainer .vs-diff { margin-left: 4px; }
/* Game card grid: rows are aligned across the two teams (header, minutes, outs, matchups).
   On phones it becomes one column, all of the away team first, then the home team. */
.tonight-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; row-gap: 14px; align-items: start; }
.tonight-outs { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
@media (max-width: 640px) {
  .tonight-grid { grid-template-columns: minmax(0, 1fr); }
  .tg-away.tg-1 { order: 1; } .tg-away.tg-2 { order: 2; } .tg-away.tg-3 { order: 3; } .tg-away.tg-4 { order: 4; }
  .tg-home.tg-1 { order: 5; margin-top: 12px; } .tg-home.tg-2 { order: 6; } .tg-home.tg-3 { order: 7; } .tg-home.tg-4 { order: 8; }
}
.tonight-minutes { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.min-head { display: flex; align-items: center; gap: 6px; }
.beta-tag { padding: 1px 6px; border-radius: 999px; background: var(--line-soft); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.06em; }
.min-gainers { font-size: 13px; color: var(--ink-2); }
.min-gain { color: #11663F; font-weight: 700; }
.min-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.min-table th { font-size: 11px; font-weight: 600; color: var(--muted); text-align: left; padding: 0 0 4px; }
.min-table th.num, .min-table td.num { text-align: right; width: 4.8em; }
.min-table th:last-child, .min-table td:last-child { width: 3.4em; }
.min-table td { padding: 6px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.min-table tbody tr:first-child td { border-top: 0; }
.min-player { overflow: hidden; }
.min-name { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.min-name:hover { color: var(--link); text-decoration: none; }
.min-status { margin-left: 6px; font-size: 9px; font-weight: 700; letter-spacing: 0.05em; color: #8A5A00; vertical-align: 1px; }
.min-reason { font-size: 12px; color: #11663F; margin-top: 1px; }
.min-proj { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.min-delta { margin-left: 4px; font-size: 11px; font-weight: 600; }
.min-delta.up { color: #11663F; }
.min-delta.down { color: var(--muted); }
.min-usual { color: var(--muted); font-variant-numeric: tabular-nums; }
.min-more summary { cursor: pointer; font-size: 13px; color: var(--link); padding: 4px 0; list-style: none; }
.min-more summary::-webkit-details-marker { display: none; }
.min-more[open] summary { display: none; }
.tonight-matchups { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.tonight-matchup { display: flex; align-items: baseline; gap: 8px; color: var(--ink); min-height: 28px; }
.tonight-matchup:hover { text-decoration: none; color: var(--link); }
.tonight-matchup-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tonight-matchup .vs-diff { margin-left: 0; }
.section-sub { font-family: var(--font); font-size: 15px; font-weight: 500; }
.game-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.game-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; color: var(--ink); }
.game-tile:hover { text-decoration: none; border-color: #C9CFDA; }
/* Badge, names, then "+N more" right after them. The name list is capped by length
   in main.py (tile_names) so it all fits in about two lines. */
.game-tile-out { margin-top: 4px; color: var(--ink-2); }
.game-tile-out .status { margin-right: 4px; }
.game-tile-out .out-more { color: var(--ink-3, #6B7280); white-space: nowrap; }
.section-links { display: flex; gap: 18px; }
.rookie-table td { white-space: nowrap; }
.rookie-name { display: flex; align-items: center; gap: 10px; }
.matchup-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plain-rows { list-style: none; margin: 0; padding: 0; }
.plain-rows li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.plain-rows li:first-child { border-top: 0; padding-top: 0; }
.row-right { margin-left: auto; white-space: nowrap; }
.table-note { padding: 14px 24px; font-size: 13px; color: var(--muted); background: #FAFBFC; line-height: 1.55; }

@media (max-width: 720px) {
  .stat-table:not(.stat-table-compact) { display: none; }
  .log-list { display: block; }
  .stat-list { display: block; }
  .stat-table.stat-table-keep { display: table; }
  .stat-table-keep { font-size: 13px; }
  .stat-table-keep th { font-size: 11px; letter-spacing: 0.02em; padding: 10px 6px; }
  .stat-table-keep td { padding: 10px 6px; }
  .stat-table-keep th:first-child, .stat-table-keep td:first-child { padding-left: 16px; }
  .stat-table-keep th:last-child, .stat-table-keep td:last-child { padding-right: 16px; }
  .table-note { padding: 14px 18px; }
}

.prose { display: flex; flex-direction: column; gap: 10px; }
.prose p { color: var(--ink-2); line-height: 1.6; }

/* Related */
.related { display: flex; flex-direction: column; gap: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.related-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 15px 18px; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.related-card:hover { border-color: #C9CFDA; text-decoration: none; }
.related-card .arrow { color: var(--accent); }

/* API box */
.api-box { background: var(--night); color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.api-box-title { font-family: var(--display); font-weight: 700; font-size: 18px; }
.api-box p { color: var(--night-text); font-size: 14px; line-height: 1.5; }
.api-box-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { border: 1px solid #3A4357; color: #fff; }

.ad-slot { background: #E9ECF1; border-radius: 16px; }
.ad-rect { min-height: 250px; }
.ad-tall { min-height: 600px; }

/* Lists */
.page-list { display: flex; flex-direction: column; gap: 12px; }
.page-link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); padding: 20px; }
.page-link:hover { border-color: #C9CFDA; text-decoration: none; }
.page-link-head { display: flex; align-items: center; gap: 12px; }
.page-link-title { font-weight: 600; font-size: 17px; }
.page-link p { color: var(--ink-2); font-size: 15px; }
.plain-list { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.injury-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.injury-list li { padding: 12px 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; }
.injury-list li:first-child { border-top: 0; padding-top: 0; }
.injury-list p { color: var(--ink-2); }
.status { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 6px; padding: 3px 7px; margin-right: 8px; }
.status-out { background: #FDE8EB; color: #9B0C24; }
.status-doubtful { background: #FFF4E0; color: #7A4A00; }

/* Home */
.home-hero { background: var(--night); color: #fff; padding: 48px 0 60px; }
.home-hero-inner { display: flex; flex-direction: column; gap: 18px; }
.home-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; max-width: 760px; }
.home-hero .lead { color: var(--night-text); max-width: 660px; }
.search-lg { max-width: 640px; height: 56px; flex: none; }
.try-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #9AA3B5; }
.try-chip { color: #fff; background: var(--night-2); border-radius: 999px; padding: 8px 12px; }
.try-chip:hover { text-decoration: none; background: #2A3347; }
.home-body { display: flex; flex-direction: column; gap: 48px; padding-top: 36px; padding-bottom: 64px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { font-size: 24px; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.injury-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.injury-card-head { display: flex; align-items: center; gap: 10px; }
.injury-card-head .status { margin-left: auto; margin-right: 0; }
.injury-card-link { display: flex; flex-direction: column; gap: 2px; color: var(--ink); border-top: 1px solid var(--line-soft); padding-top: 10px; font-size: 14px; line-height: 1.45; min-height: 44px; }
.injury-card-link:hover { text-decoration: none; color: var(--link); }
.mini-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.explore-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); padding: 22px; }
.explore-card:hover { text-decoration: none; border-color: #C9CFDA; }
.explore-count { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }
.explore-title { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.25; }
.explore-card p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.explore-cta { font-size: 14px; color: var(--link); margin-top: auto; }
.explore-soon { border: 1px dashed #C9CFDA; border-radius: var(--radius); color: var(--muted); }
.explore-soon .explore-count { color: var(--muted); }
.explore-soon .explore-title { color: var(--ink-2); }
.player-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.player-tile-text { display: flex; flex-direction: column; min-width: 0; }
.player-tile-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.team-card { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-height: 54px; color: var(--ink); font-weight: 500; font-size: 14px; }
.team-card:hover { text-decoration: none; border-color: #C9CFDA; }
.api-band { background: var(--night); color: #fff; border-radius: 20px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.api-band p { color: var(--night-text); font-size: 15px; line-height: 1.5; margin-top: 6px; max-width: 620px; }
.api-band .api-box-title { font-size: 22px; }

/* Index pages */
.team-group-head { display: flex; align-items: center; gap: 10px; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.index-link { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 12px; color: var(--ink); min-height: 44px; }
.index-link:hover { text-decoration: none; border-color: #C9CFDA; }

/* Footer */
.site-footer { background: var(--night); color: #9AA3B5; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 16px; }
.footer-note { margin-top: 8px; max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: flex-start; }
.footer-links a { color: var(--night-text); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--night-text); }
.footer-col-head { color: #fff; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.footer-legal { padding-top: 12px; padding-bottom: 28px; font-size: 13px; }

@media (max-width: 640px) {
  .card { padding: 18px; }
  .table-card { padding: 0; }
  .table-card .card-head { padding: 16px 16px 6px; }
  .stat-table-compact th, .stat-table-compact td { padding: 11px 8px; }
  .stat-table-compact th { font-size: 11px; letter-spacing: 0.02em; }
  .stat-table-compact th:first-child, .stat-table-compact td:first-child { padding-left: 16px; }
  .stat-table-compact th:last-child, .stat-table-compact td:last-child { padding-right: 16px; }
  .hero { padding: 20px; }
  .avatar-lg { width: 48px; height: 48px; font-size: 17px; }
  .home-hero { padding: 24px 0 32px; }
  .home-body { gap: 32px; padding-top: 24px; }
  .section-head h2 { font-size: 20px; }
  .player-tiles, .team-grid, .game-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .game-tile { padding: 12px; }
  .player-tiles a:nth-child(n+9) { display: none; }
  .api-band { padding: 20px; }
}

/* ---------- Shot chart ---------- */
.seg { display: flex; align-items: center; gap: 3px; background: #F0F2F5; border-radius: 10px; padding: 3px; }
.seg-btn { border: 0; border-radius: 8px; padding: 6px 12px; min-height: 36px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); background: transparent; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg-btn.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 23, 31, .12); }
.seg-select { min-width: 0; }
.seg-select select { border: 0; background: transparent; font: inherit; font-weight: 600; color: inherit; cursor: pointer; min-height: 32px; max-width: 220px; min-width: 0; text-overflow: ellipsis; }
.shot-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.shot-court { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.shot-court svg { width: 100%; height: auto; display: block; }
.shot-pct { font-family: var(--display); font-weight: 700; }
.shot-diff { font-family: var(--font); font-weight: 600; }
.shot-legend { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.shot-scale { display: flex; border-radius: 4px; overflow: hidden; flex: 0 0 auto; }
.shot-scale span { width: 18px; height: 10px; }
.shot-table-wrap { flex: 1 1 360px; min-width: 0; }
.shot-table { font-size: 14px; table-layout: fixed; }
.shot-table .c-zone { width: 36%; }
.shot-table .c-share { width: 25%; }
.shot-table .c-num { width: 13%; }
.shot-table th, .shot-table td,
.shot-table th:first-child, .shot-table td:first-child,
.shot-table th:last-child, .shot-table td:last-child { padding: 10px 6px; }
.shot-table th, .shot-table th.num { font-size: 11px; letter-spacing: 0.02em; white-space: normal; vertical-align: bottom; }
.shot-table .player-cell { white-space: nowrap; font-weight: 600; }
.share { display: flex; align-items: center; gap: 6px; }
.share-bar { flex: 1; min-width: 24px; height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.share-bar div { height: 100%; background: var(--ink-2); border-radius: 3px; }
.share .muted { min-width: 30px; text-align: right; }
.shot-card .table-note { margin: 16px 0 0; border-radius: 10px; }
@media (max-width: 720px) {
  .stat-table.shot-table { display: table; }
}
@media (max-width: 640px) {
  .shot-card .card-head { flex-direction: column; align-items: stretch; }
  .seg { width: 100%; }
  .seg-btn { justify-content: center; }
  .seg-select { flex: 1; }
  .seg-select select { max-width: none; width: 100%; }
  .shot-table th:nth-child(5), .shot-table td:nth-child(5), .shot-table .c-cmp { display: none; }
  .shot-table .c-zone { width: 40%; }
  .shot-table .c-share { width: 28%; }
  .shot-table .c-num { width: 16%; }
}

/* Player hub extras */
.hub-tonight p { margin: 0; }
.hub-table td:first-child { white-space: nowrap; }
.hub-dnp td { color: var(--muted); }
.hub-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.hub-adv-item { display: flex; flex-direction: column; gap: 4px; }
.hub-adv-item p { margin: 0; }
.hub-adv-value { font-family: var(--display); font-size: 24px; font-weight: 700; }

/* Minutes-when-out rows with a small sample: listed last, greyed */
.stat-table tr.thin td, .stat-list li.thin { color: var(--muted); }
.stat-table tr.thin .player-cell, .stat-list li.thin .player-cell { font-weight: 500; }
.thin .bar-fill { opacity: 0.4; }
/* Wide tables scroll inside the card instead of spilling past it */
.table-card { overflow-x: auto; }
.player-cell .name { white-space: nowrap; }