/* LiveSituation strip (js/live_situation.js) — shared by hub cards, the board,
   game pages, PMill cards, My Bets rows and game threads. */
.live-situation[hidden] { display: none !important; }
.lsit {
    --lsit-live: var(--color-live, #da3633);
    --lsit-hot: var(--accent-orange, #db6d28);
    --lsit-ink: var(--text-primary, #f0f6fc);
    --lsit-mute: var(--text-muted, #6e7681);
    --lsit-line: var(--border-color, #30363d);
    --lsit-fill: var(--bg-tertiary, #21262d);
    display: flex; flex-direction: column; gap: 6px;
    margin-top: 8px; padding: 8px 10px;
    border: 1px solid var(--lsit-line); border-radius: 10px;
    background: color-mix(in srgb, var(--bg-secondary, #161b22) 70%, transparent);
    font-size: 12px; line-height: 1.3; color: var(--text-secondary, #8b949e);
    font-variant-numeric: tabular-nums;
}
.lsit.is-live { border-color: color-mix(in srgb, var(--lsit-live) 35%, var(--lsit-line)); }
.lsit--full { gap: 10px; padding: 12px 14px; font-size: 13px; }

.lsit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lsit-clock { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--lsit-ink); letter-spacing: .01em; }
.lsit-clock.is-break { color: var(--lsit-mute); }
.lsit-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lsit-live); animation: lsit-pulse 1.6s ease-in-out infinite; }
.lsit-series { font-size: 11px; color: var(--lsit-mute); }

.lsit-progress { position: relative; height: 4px; border-radius: 2px; background: var(--lsit-fill); overflow: hidden; }
.lsit-progress i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--lsit-live); border-radius: 2px; transition: width .6s ease; }
.lsit-progress.is-ot i { background: var(--lsit-hot); }
.lsit-progress b { position: absolute; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--lsit-ink) 35%, transparent); }

.lsit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.lsit-row--leaders { gap: 4px 12px; }
.lsit-chip { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; background: var(--lsit-fill); color: var(--lsit-ink); font-weight: 700; font-size: 11px; white-space: nowrap; }
.lsit-chip--hot { background: color-mix(in srgb, var(--lsit-hot) 22%, transparent); color: var(--lsit-hot); }
.lsit-kv { display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; color: var(--lsit-ink); }
.lsit-kv b { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--lsit-mute); }
.lsit-kv--muted { color: var(--text-secondary, #8b949e); }

.lsit-poss { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--lsit-ink); }
.lsit-poss i { color: var(--accent-yellow, #d29922); font-size: 9px; }
.lsit-poss-text { font-weight: 600; color: var(--text-secondary, #8b949e); }

.lsit-tos { display: inline-flex; gap: 10px; margin-left: auto; font-size: 10px; font-weight: 700; color: var(--lsit-mute); letter-spacing: .04em; }
.lsit-tos > span { display: inline-flex; align-items: center; gap: 4px; }
.lsit-dots { display: inline-flex; gap: 3px; }
.lsit-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--lsit-fill); border: 1px solid var(--lsit-line); }
.lsit-dots i.on { background: var(--lsit-ink); border-color: var(--lsit-ink); }

/* Football field */
.lsit-field { display: flex; align-items: center; gap: 6px; }
.lsit-ez { font-size: 9px; font-weight: 800; letter-spacing: .06em; color: var(--lsit-mute); min-width: 28px; text-align: center; }
.lsit-turf { position: relative; flex: 1; height: 14px; border-radius: 4px; background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), color-mix(in srgb, var(--lsit-ink) 14%, transparent) calc(10% - 1px) 10%),
    color-mix(in srgb, var(--accent-green, #238636) 30%, var(--lsit-fill)); overflow: hidden; }
.lsit-mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--lsit-ink) 45%, transparent); }
.lsit-rz { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--lsit-live) 30%, transparent); }
.lsit-ball { position: absolute; top: 50%; width: 10px; height: 10px; margin-left: -5px; transform: translateY(-50%); border-radius: 50%;
    background: var(--accent-yellow, #d29922); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-yellow, #d29922) 35%, transparent); transition: left .6s ease; }
.lsit-ball.is-hot { background: var(--lsit-live); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lsit-live) 40%, transparent); }
.lsit-ball::after { content: ''; position: absolute; top: 50%; width: 0; height: 0; border: 4px solid transparent; transform: translateY(-50%); }
.lsit-ball.dir-left::after { right: 100%; border-right-color: var(--lsit-ink); margin-right: 1px; }
.lsit-ball.dir-right::after { left: 100%; border-left-color: var(--lsit-ink); margin-left: 1px; }

/* Baseball */
.lsit-row--mlb { gap: 8px 12px; }
.lsit-diamond { width: 26px; height: 26px; flex: 0 0 auto; }
.lsit-diamond rect { fill: var(--lsit-fill); stroke: var(--lsit-mute); stroke-width: 1; }
.lsit-diamond rect.on { fill: var(--accent-yellow, #d29922); stroke: var(--accent-yellow, #d29922); }
.lsit-mlb-meta { display: inline-flex; align-items: center; gap: 8px; }
.lsit-count { font-weight: 800; color: var(--lsit-ink); font-size: 13px; }

/* Last play + live win prob */
.lsit-last { color: var(--text-secondary, #8b949e); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lsit-last b { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--lsit-mute); margin-right: 4px; }
.lsit--full .lsit-last { white-space: normal; }
.lsit-wp { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 6px; }
.lsit-wp-label { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--lsit-mute); }
.lsit-wp-side { font-size: 11px; font-weight: 700; color: var(--lsit-mute); white-space: nowrap; }
.lsit-wp-side.is-fav { color: var(--lsit-ink); }
.lsit-wp-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--lsit-fill); }
.lsit-wp-bar i { display: block; height: 100%; transition: width .6s ease; }
.lsit-wp-bar i.away { background: var(--accent-blue, #58a6ff); }
.lsit-wp-bar i.home { background: var(--accent-green-light, #2ea043); }
@media (max-width: 480px) { .lsit-wp { grid-template-columns: auto 1fr auto; } .lsit-wp-label { grid-column: 1 / -1; } }

@keyframes lsit-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .lsit-dot { animation: none; } .lsit-progress i, .lsit-ball, .lsit-wp-bar i { transition: none; } }

/* Pregame numbers shown while a game is live get a caption, never silence. */
.is-pregame-note { font-size: 10px; color: var(--text-muted, #6e7681); text-transform: uppercase; letter-spacing: .06em; }

/* ── LiveGamePanel (js/live_game_panel.js): win prob swing, scoring, last plays, leaders, team stats ── */
.lgp-empty { margin: 0; color: var(--text-muted, #6e7681); font-size: 13px; }
.lgp-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted, #6e7681); margin-bottom: 6px; }
.lgp-block { margin-top: 14px; }
.lgp-drive { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--bg-tertiary, #21262d); font-size: 13px; }
.lgp-drive .lgp-kicker { display: inline; margin: 0 8px 0 0; }
.lgp-wp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lgp-wp-now { font-size: 12px; font-variant-numeric: tabular-nums; }
.lgp-wp-now .lgp-dot { margin: 0 6px; color: var(--text-muted, #6e7681); }
.lgp-home { color: var(--accent-green-light, #2ea043); }
.lgp-away { color: var(--accent-blue, #58a6ff); }
.lgp-wp-svg { width: 100%; height: 110px; display: block; border-radius: 8px; background: var(--bg-tertiary, #21262d); }
.lgp-wp-mid { stroke: color-mix(in srgb, var(--text-primary, #f0f6fc) 25%, transparent); stroke-width: 1; stroke-dasharray: 4 4; }
.lgp-wp-line { fill: none; stroke: var(--accent-green-light, #2ea043); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lgp-wp-now-dot { fill: var(--accent-green-light, #2ea043); }
.lgp-wp-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-muted, #6e7681); margin-top: 4px; }
.lgp-wp-axis span:first-child { color: var(--accent-blue, #58a6ff); }
.lgp-wp-axis span:last-child { color: var(--accent-green-light, #2ea043); }
.lgp-plays { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.lgp-play { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: baseline; padding: 6px 8px; border-radius: 8px; font-size: 13px; line-height: 1.35; }
.lgp-play:nth-child(odd) { background: color-mix(in srgb, var(--bg-tertiary, #21262d) 60%, transparent); }
.lgp-play.is-scoring { background: color-mix(in srgb, var(--accent-green, #238636) 14%, transparent); }
.lgp-play-when { font-size: 11px; font-weight: 700; color: var(--text-muted, #6e7681); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lgp-play-team { font-weight: 800; }
.lgp-play.side-home .lgp-play-team { color: var(--accent-green-light, #2ea043); }
.lgp-play.side-away .lgp-play-team { color: var(--accent-blue, #58a6ff); }
.lgp-play-type { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--bg-elevated, #2d333b); font-size: 10px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
.lgp-play-score { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-primary, #f0f6fc); white-space: nowrap; }
.lgp-leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lgp-leaders-team { font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.lgp-leaders-col.side-home .lgp-leaders-team { color: var(--accent-green-light, #2ea043); }
.lgp-leaders-col.side-away .lgp-leaders-team { color: var(--accent-blue, #58a6ff); }
.lgp-leader { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 4px 0; border-top: 1px solid var(--border-light, #21262d); font-size: 12px; }
.lgp-leader-label { grid-row: 1 / span 2; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #6e7681); align-self: start; padding-top: 2px; min-width: 56px; }
.lgp-leader-name { font-weight: 700; }
.lgp-leader-val { color: var(--text-secondary, #8b949e); }
.lgp-stats { display: flex; flex-direction: column; }
.lgp-stat { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 5px 0; border-top: 1px solid var(--border-light, #21262d); font-size: 13px; font-variant-numeric: tabular-nums; }
.lgp-stat--head { border-top: 0; font-size: 11px; font-weight: 800; color: var(--text-muted, #6e7681); }
.lgp-stat--head span:last-child, .lgp-stat-home { text-align: right; }
.lgp-stat-label { font-size: 11px; color: var(--text-muted, #6e7681); text-transform: uppercase; letter-spacing: .03em; }
.lgp-stat.lead-home .lgp-stat-home, .lgp-stat.lead-away .lgp-stat-away { font-weight: 800; color: var(--text-primary, #f0f6fc); }
.lgp-source { margin-top: 10px; font-size: 10px; color: var(--text-muted, #6e7681); text-align: right; }
@media (max-width: 520px) { .lgp-play { grid-template-columns: 64px 1fr; } .lgp-play-score { grid-column: 2; } .lgp-leaders { grid-template-columns: 1fr; } }

/* Live line row (live['odds'] from app/services/live_odds.py) */
.lsit-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-top: 6px; border-top: 1px dashed var(--lsit-line, #30363d); }
.lsit-line-label { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--lsit-live, #da3633); }
.lsit-line .lsit-kv { gap: 5px; }
.lsit-move { font-style: normal; font-size: 10px; font-weight: 800; margin-left: 4px; color: var(--accent-yellow, #d29922); }
.lsit-line-probs { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--text-secondary, #8b949e); }
@media (max-width: 480px) { .lsit-line-probs { margin-left: 0; } }

/* Live tickets (js/live_tickets.js): open picks in chats and the feed follow their game */
.live-ticket-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; width: 100%; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border-color, #30363d); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--text-secondary, #8b949e); }
.live-ticket-status[hidden] { display: none !important; }
.live-ticket-status .lt-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-live, #da3633); animation: lsit-pulse 1.6s ease-in-out infinite; }
.live-ticket-status .lt-clock { font-weight: 800; color: var(--text-primary, #f0f6fc); }
.live-ticket-status.is-live .lt-clock { color: var(--color-live, #da3633); }
.live-ticket-status .lt-score { font-weight: 700; color: var(--text-primary, #f0f6fc); }
.live-ticket-status .lt-cover { margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: 10px; }
.lt-cover.covering { color: #3fb950; background: rgba(35, 134, 54, 0.16); }
.lt-cover.not-covering { color: var(--accent-red-light, #f85149); background: rgba(218, 54, 51, 0.16); }
.lt-cover.push { color: var(--accent-yellow, #d29922); background: rgba(210, 153, 34, 0.14); }
@media (prefers-reduced-motion: reduce) { .live-ticket-status .lt-dot { animation: none; } }
