/* Game View panel — see js/boxscore-analytics.js.
   Sits inside the expandable card, so it must not add height when closed. */
.gv-wrap { display: grid; gap: 14px; padding: 4px 2px 2px; }
@media (min-width: 900px) {
  /* Two columns on desktop; the impact table spans both because it is wide.
     align-items:start keeps a short card (the scoring bar) at its own height
     instead of stretching to match a tall neighbour and leaving dead space. */
  .gv-wrap { grid-template-columns: 1fr 1fr; align-items: start; }
  .gv-wrap .gv-block.gv-full { grid-column: 1 / -1; }
}
.gv-block {
  background: var(--bg-card, #fff); border: 1px solid var(--border, #dde3ec);
  border-radius: 8px; padding: 10px 12px;
}
.gv-h { font-weight: 700; font-size: .84rem; color: var(--text, #16233a); margin-bottom: 8px; }
.gv-sub { font-weight: 400; font-size: .74rem; color: var(--text-secondary, #6b7688); }
.gv-note { margin-top: 7px; font-size: .68rem; line-height: 1.45; color: var(--text-secondary, #6b7688); }

.gv-svg { width: 100%; height: auto; display: block; }
.gv-zero { stroke: var(--border, #cbd3e1); stroke-width: 1; stroke-dasharray: 3 3; }
.gv-axis { stroke: var(--border, #cbd3e1); stroke-width: 1; }
.gv-ref  { stroke: #d4af37; stroke-width: 1; stroke-dasharray: 4 3; opacity: .8; }
.gv-qlab { font-size: 9px; fill: var(--text-secondary, #7a8496); }
.gv-qval { font-size: 10px; font-weight: 700; fill: var(--text, #16233a); }

.gv-adv { width: 100%; border-collapse: collapse; font-size: .8rem; }
.gv-adv th, .gv-adv td { padding: 4px 6px; }
.gv-adv thead th { font-size: .74rem; color: var(--text-secondary, #6b7688); border-bottom: 1px solid var(--border, #dde3ec); }
/* Site-wide table CSS paints every <th> navy; inside this panel the middle
   column is a row LABEL, not a header, and inherited grey-on-navy was unreadable. */
.gv-adv tbody th, .gv-adv thead th {
  background: transparent !important; border: 0 !important;
}
.gv-adv tbody th { font-weight: 500; text-align: center; color: var(--text-secondary, #6b7688) !important; font-size: .74rem; white-space: nowrap; }
.gv-adv td { text-align: center; font-variant-numeric: tabular-nums; }
.gv-adv td.gv-a { text-align: right; } .gv-adv td.gv-b { text-align: left; }
.gv-adv .gv-win { font-weight: 800; }
.gv-adv td.gv-a.gv-win { color: #1a3c6d; } .gv-adv td.gv-b.gv-win { color: #c8102e; }
.gv-adv thead th.gv-a { color: #1a3c6d; font-weight: 700; text-align: right; }
.gv-adv thead th.gv-b { color: #c8102e; font-weight: 700; text-align: left; }

.gv-scorerow { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.gv-team { flex: 0 0 82px; font-size: .76rem; font-weight: 600; }
.gv-barwrap { flex: 1; display: flex; height: 20px; border-radius: 4px; overflow: hidden; }
.gv-seg { display: flex; align-items: center; justify-content: center; }
.gv-seg i { font-style: normal; font-size: .64rem; color: #fff; font-weight: 700; white-space: nowrap; }

.gv-impact { width: 100%; border-collapse: collapse; font-size: .76rem; }
.gv-impact th, .gv-impact td { padding: 3px 5px; text-align: right; font-variant-numeric: tabular-nums; }
.gv-impact th { font-size: .68rem; color: var(--text-secondary, #6b7688); border-bottom: 1px solid var(--border, #dde3ec); }
.gv-impact td.gv-nm, .gv-impact th:first-child { text-align: left; }
.gv-impact td.gv-tm { text-align: left; font-size: .7rem; color: var(--text-secondary, #6b7688); }
.gv-impact tr.gv-a td.gv-nm { border-left: 3px solid #1a3c6d; padding-left: 6px; }
.gv-impact tr.gv-b td.gv-nm { border-left: 3px solid #c8102e; padding-left: 6px; }
.gv-hf { position: relative; font-weight: 700; min-width: 54px; }
.gv-hfbar { position: absolute; left: 0; top: 2px; bottom: 2px; background: rgba(212,175,55,.3); border-radius: 3px; z-index: 0; }
.gv-hf { z-index: 1; }

[data-theme="dark"] .gv-block { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .gv-adv thead th.gv-a, [data-theme="dark"] .gv-adv td.gv-a.gv-win { color: #7fb2ff; }
[data-theme="dark"] .gv-adv thead th.gv-b, [data-theme="dark"] .gv-adv td.gv-b.gv-win { color: #ff8a9c; }
[data-theme="dark"] .gv-impact tr.gv-a td.gv-nm { border-left-color: #7fb2ff; }
[data-theme="dark"] .gv-impact tr.gv-b td.gv-nm { border-left-color: #ff8a9c; }
[data-theme="dark"] .gv-qval { fill: #e7ecf5; }

@media (max-width: 560px) {
  .gv-impact { font-size: .7rem; }
  .gv-impact th:nth-child(5), .gv-impact td:nth-child(5) { display: none; }  /* REB */
  .gv-impact th:nth-child(6), .gv-impact td:nth-child(6) { display: none; }  /* AST */
  .gv-team { flex-basis: 66px; }
}

/* Team identity: logos + franchise colours */
.gv-logo { vertical-align: middle; object-fit: contain; margin-right: 5px; }
.gv-legend { display: flex; gap: 16px; font-size: .74rem; margin: -2px 0 6px; color: var(--text-secondary, #6b7688); }
.gv-legend span { display: inline-flex; align-items: center; }
.gv-dot { width: 9px; height: 9px; border-radius: 50%; margin-left: 5px; display: inline-block; }
.gv-adv thead th.gv-a, .gv-adv thead th.gv-b { white-space: nowrap; }
.gv-impact td.gv-tm .gv-logo { margin-right: 3px; }
.gv-team .gv-logo { margin-right: 4px; }

/* Grid/flex items default to min-width:auto: without this a wide table sets the
   column's min-content width and the whole panel scrolls sideways instead of
   just the table. */
.gv-wrap, .gv-block { min-width: 0; }
.gv-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
