/* The betting tabs (mock): team "Against the line" and player "Props", on the prototype's tokens and parts. */
.bt { display: flex; flex-direction: column; gap: 18px; padding: 16px 18px 22px; }
.bt-sec + .bt-sec, .bt-lede + .bt-sec { margin-top: 6px; }
.bt-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.bt-lede { max-width: 84ch; font: 400 15px/1.55 var(--ui); color: var(--text-2); text-wrap: pretty; }
.bt-lede b { font-weight: 600; color: var(--text); }
.bt-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font: 600 14px/1.3 var(--ui); color: var(--text); }
.bt-h .note { font-weight: 400; font-size: 12px; }
.bt-sec { display: flex; flex-direction: column; gap: 10px; }
.bt-kpis .kpi-num { font-size: 26px; }
.bt-kpis .kpi-num small { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

/* Section tabs that go to other pages: links styled as the prototype's tab buttons. */
.sec-tabs { overflow-x: auto; scrollbar-width: none; }
.sec-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font: 500 14px/1 var(--ui); color: var(--muted); white-space: nowrap; }
.sec-tabs a:hover { color: var(--text-2); }
.sec-tabs a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--text); }

/* ---------- The game-by-game chart ---------- */
.bt-chart { position: relative; touch-action: pan-y; user-select: none; }
.bt-chart svg { display: block; width: 100%; }
.bt-grid { stroke: var(--line); stroke-width: 1; }
.bt-zero { stroke: var(--border-2); stroke-width: 1; }
.bt-sep { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; }
.bt-axis { font: 500 10.5px/1 var(--ui); fill: var(--muted); }
.bt-push { fill: var(--muted); }
.bt-hit { fill: transparent; }
.bt-on { fill: none; stroke: var(--text); stroke-width: 1; rx: 2; pointer-events: none; }
.bt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 12px/1.3 var(--ui); color: var(--muted); }
.bt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bt-legend i { width: 10px; height: 10px; border-radius: 2px; }
.bt-tip { max-width: 300px; }

/* ---------- Tables ---------- */
.bt-table { table-layout: auto; width: max-content; min-width: 100%; }
.bt-table th, .bt-table td { padding: 0 10px; white-space: nowrap; }
.bt-table th:first-child, .bt-table td:first-child { padding-left: 14px; }
.bt-table th:last-child, .bt-table td:last-child { padding-right: 14px; }
.bt-table tr.on td { background: rgba(134, 163, 212, 0.08); }
.bt-table tr.on td:first-child { box-shadow: inset 2px 0 0 var(--blue); }
.bt-table .linkish { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.bt-table .linkish:hover { text-decoration-color: var(--text-2); }
.bt-wrap { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.bt-mark { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; vertical-align: 0; }
.bt-mark.up { background: #f4855f; }
.bt-mark.down { background: #72aaf5; }
.bt-mark.even { background: var(--muted); }
.bt-game { display: inline-flex; align-items: center; gap: 6px; }
.bt-more { align-self: flex-start; height: 32px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 6px; font: 500 12px/1 var(--ui); color: var(--text-2); }
.bt-more:hover { background: var(--raised); color: var(--text); }
.bt-src { font: 400 12px/1.6 var(--ui); color: var(--dim); max-width: 110ch; }
.bt-empty { padding: 28px 4px; font: 400 15px/1.5 var(--ui); color: var(--muted); }
.bt-empty b { color: var(--text-2); font-weight: 500; }

/* ---------- Props cards ---------- */
.bt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.nw { white-space: nowrap; }
.bt-more-props { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: -8px; }
.bt-more-props .seg { max-width: 100%; overflow-x: auto; }
.bt-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: var(--node); border: 1px solid var(--border); border-radius: 6px; text-align: left; }
.bt-card:hover { background: var(--raised); }
.bt-card[aria-pressed="true"] { background: var(--raised); border-color: var(--text-2); }
.bt-card .k { font: 500 11px/1.2 var(--ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.bt-card .big { font: 500 24px/1.1 var(--ui); letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.bt-card .big small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.bt-card .s { font: 400 12px/1.35 var(--ui); color: var(--muted); }
.bt-card .meter { position: relative; height: 4px; margin: 4px 0 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bt-card .meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text-2); border-radius: 2px; }
.bt-card .meter b { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--bg); }

/* ---------- Head cards: a finder beside the name ---------- */
.bt-find { position: relative; display: flex; align-items: center; gap: 8px; }
.bt-find input { width: 220px; height: 34px; padding: 0 10px; background: var(--bg); border: 1px solid var(--border-2); border-radius: 6px; font: 400 14px/1 var(--ui); color: var(--text); }
.bt-find input:focus { outline: none; border-color: var(--blue); }
.bt-find select { height: 34px; }

@media (max-width: 960px) {
  .bt { padding: 14px 12px 18px; gap: 14px; }
  .bt-bar .seg { max-width: 100%; overflow-x: auto; }
  .bt-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-kpis .kpi { border-bottom: 1px solid var(--border); }
  .bt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head-card { flex-wrap: wrap; }
  .head-card .push { margin-left: 0; width: 100%; }
  .bt-find, .bt-find input, .bt-find select { width: 100%; }
}

/* A player page with nothing behind it */
.pl-empty { display: flex; flex-direction: column; gap: 8px; padding: 22px 18px; }
.pl-empty h2 { font: 600 16px/1.3 var(--ui); color: var(--text); }
.pl-empty p { font: 400 14px/1.5 var(--ui); color: var(--muted); }
.pl-empty a { color: var(--blue); }
