.live-team { margin-bottom: 24px; }
.live-team-header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.live-team-header h2, .live-team-header p { margin: 0; }
.live-team-header p { color: var(--muted); }
.live-totals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.live-totals > div { padding: 8px 14px; background: var(--surface2); border-radius: 10px; }
.live-totals dt { font-size: 12px; color: var(--muted); }
.live-totals dd { margin: 0; font-size: clamp(18px, 4vw, 26px); font-weight: 750; font-variant-numeric: tabular-nums; }
.live-totals .live-score { color: var(--mint); }
.live-rank-note { margin: 8px 0 14px; }

.live-team .team-player { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.live-team .team-player-top { width: 100%; min-height: 18px; margin: 0; }
.live-kit { display: block; width: clamp(29px, 6vw, 44px); height: auto; aspect-ratio: 1; object-fit: contain; }
.live-player-name { display: block; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.live-team .team-bench > div { min-width: 0; }
.live-upcoming { color: var(--mint); background: var(--mint-soft); border-radius: 4px; padding: 2px 4px; font-size: 10px; font-weight: 700; }
.live-points-button {
  width: 100%; min-height: 32px; margin: auto 0 0; padding: 4px 2px;
  border: 1px solid var(--line-mint); border-radius: 6px;
  background: var(--mint-soft); color: var(--mint);
  font: inherit; font-size: 12px; font-weight: 750; cursor: pointer;
}
.live-points-button:hover { background: var(--mint-mid); }
.live-points-hint { margin: 0 0 10px; }

.live-points-popover {
  position: fixed; inset: auto; margin: 0; box-sizing: border-box;
  width: min(19rem, calc(100vw - 20px)); max-height: min(65vh, 480px); overflow: auto;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); box-shadow: 0 8px 28px #0004;
  font-size: 12px;
}
.live-points-popover h2 { margin: 0; font-size: 16px; }
.live-match-breakdown { margin-top: 14px; }
.live-match-breakdown h3 { margin: 0; font-size: 14px; }
.live-match-breakdown dl { margin: 6px 0 0; }
.live-match-breakdown dl > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); }
.live-match-breakdown dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-stat-value { margin-left: 7px; color: var(--muted); font-size: 12px; }
.live-contribution { margin: 14px 0 0; color: var(--muted); }
.live-contribution strong { color: var(--ink); }

#live-captains h2 { margin: 0 0 12px; }
#live-captains .data-table { min-width: 0; }
#live-captains .data-table td.num { white-space: nowrap; }
.live-high-captain-rate { display: inline-block; padding: 3px 7px; border-radius: 5px; background: var(--mint-soft); color: var(--mint); font-weight: 750; }
@media (max-width: 700px) {
  .live-player-name, .live-points-button { font-size: 11px; }
  .live-upcoming { padding: 2px; font-size: 9px; }
  #live-captains .data-table td, #live-captains .data-table th { padding: 9px 7px; }
}
