/* Nine-darter marker slides out beside the row, or its checkout route. */
.broadcast-nine {
    position: absolute;
    right: calc(100% + var(--row-checkout-count, 0) * var(--checkout-cell));
    top: 0;
    bottom: 0;
    width: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(#fff8, var(--broadcast-secondary));
    color: var(--broadcast-secondary-text);
    font-size: 19px;
    font-weight: 900;
    opacity: 0;
    visibility: hidden;
    transform: scaleX(0);
    transform-origin: right center;
    transition: opacity .22s ease, transform .28s ease, visibility 0s .28s;
}
.broadcast-row.has-nine .broadcast-nine { opacity: 1; visibility: visible; transform: scaleX(1); transition-delay: 0s; }
.broadcast-scoreboard.has-nine { --nine-space: 34px; --checkout-space: var(--nine-space); }
.broadcast-scoreboard.has-checkout { --checkout-space: calc(var(--checkout-count) * var(--checkout-cell) + var(--nine-space, 0px)); }

body.match-tv-active { overflow: hidden !important; }
.tv-quick-throws { display: none; }
#screen-match.match-tv-mode {
    position: fixed;
    inset: 0;
    z-index: 5000;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100svh;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--broadcast-stage-bg);
}
#screen-match.match-tv-mode > :not(.match-layout):not(#spectator-speed-controls):not(#career-walkon-stage):not(#walkon-arena) { display: none !important; }
#screen-match.match-tv-mode > .match-layout { display: block; width: 100%; height: 100%; margin: 0; }
#screen-match.match-tv-mode .match-stats,
#screen-match.match-tv-mode .dart-info,
#screen-match.match-tv-mode #t-btn-match-back { display: none !important; }
#screen-match.match-tv-mode .match-board {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    border-radius: 0;
    background: radial-gradient(ellipse at 35% 38%, var(--broadcast-stage-glow), var(--broadcast-stage-bg) 72%);
}
#screen-match.match-tv-mode .dartboard-container { position: static; width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; box-shadow: none; }
#screen-match.match-tv-mode .match-board-view {
    position: absolute;
    inset: 0 360px 0 0;
    width: auto;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
#screen-match.match-tv-mode.tv-spectator .match-board-view { right: 360px; }
#screen-match.match-tv-mode .match-board #dartboard-3d { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
#screen-match.match-tv-mode .match-board-view[data-view="2d"] { display: grid; place-items: center; background: var(--broadcast-stage-bg); }
#screen-match.match-tv-mode .match-board-view[data-view="2d"] .dartboard-surround { width: min(92%, calc(100svh - 24px), 720px); }
#screen-match.match-tv-mode .board-view-controls {
    position: fixed;
    z-index: 5004;
    top: max(18px, env(safe-area-inset-top));
    right: max(22px, env(safe-area-inset-right));
    max-width: 430px;
    margin: 0;
    padding: 7px;
    border: 1px solid #4d687c;
    border-radius: 9px;
    background: #0c2036e8;
    box-shadow: 0 5px 16px #0008;
}
#screen-match.match-tv-mode .board-view-controls > span { display: none; }
#screen-match.match-tv-mode .board-view-controls button { min-height: 38px; }
#screen-match.match-tv-mode #match-tv-toggle { border-color: #f1c40f; color: #fff7ab; }
#screen-match.match-tv-mode .match-tv-ai-speed-control {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 0 5px 0 8px;
    box-sizing: border-box;
    border: 1px solid #f0bd18;
    border-radius: 6px;
    background: #172b3d;
    color: #f8e694;
    font-weight: 800;
}
#screen-match.match-tv-mode .match-tv-ai-speed-control[hidden] { display: none; }
#screen-match.match-tv-mode #match-tv-ai-speed {
    min-height: 28px;
    padding: 2px 4px;
    border: 1px solid #5e7486;
    border-radius: 4px;
    background: #07131f;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
#screen-match.match-tv-mode #match-tv-ai-speed:focus-visible { outline: 2px solid #f0bd18; outline-offset: 2px; }
#screen-match.match-tv-mode .aim-controls {
    position: fixed;
    z-index: 5003;
    top: 84px;
    right: max(22px, env(safe-area-inset-right));
    width: 316px;
    box-sizing: border-box;
    margin: 0;
    padding: 12px;
    max-height: calc(100svh - 300px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #45647d;
    border-radius: 10px;
    background: #0c2036ed;
    box-shadow: 0 8px 22px #0009;
    opacity: 1 !important;
}
#screen-match.match-tv-mode .aim-sector-picker legend { margin-bottom: 6px; color: #e7f0f6; }
#screen-match.match-tv-mode .aim-sector-numbers { gap: 4px; }
#screen-match.match-tv-mode .aim-bull-buttons,
#screen-match.match-tv-mode .aim-multiplier-buttons { gap: 4px; margin-top: 5px; }
#screen-match.match-tv-mode .aim-sector-btn,
#screen-match.match-tv-mode .aim-multiplier-btn { min-height: 37px; padding: 6px 3px; }
#screen-match.match-tv-mode .tv-quick-throws { display: block; min-width: 0; margin: 0; padding: 0 0 8px; border: 0; border-bottom: 1px solid #45647d; }
#screen-match.match-tv-mode .tv-quick-throws legend { padding: 0; margin-bottom: 6px; color: #e7f0f6; font-size: 13px; font-weight: bold; }
.tv-quick-throw-row { display: grid; gap: 4px; }
.tv-quick-throw-row + .tv-quick-throw-row { margin-top: 4px; }
.tv-quick-trebles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tv-quick-doubles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tv-quick-bulls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tv-quick-throw-btn {
    min-width: 0; min-height: 37px; padding: 6px 3px;
    border: 1px solid #5a8bab; border-radius: 5px;
    background: #183952; color: #fff; font: inherit; font-size: 13px; font-weight: bold;
    cursor: pointer; touch-action: manipulation;
}
.tv-quick-throw-btn:hover:not(:disabled) { background: #245577; border-color: #f1c40f; }
.tv-quick-throw-btn:focus-visible { outline: 3px solid #f1c40f; outline-offset: 2px; }
.tv-quick-throw-btn:disabled { opacity: .45; cursor: not-allowed; }
#screen-match.match-tv-mode .match-actions {
    position: fixed;
    z-index: 5003;
    right: max(22px, env(safe-area-inset-right));
    bottom: 146px;
    width: 316px;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
#screen-match.match-tv-mode .match-actions > :not(#throw-btn):not(#t-btn-sim-visit) { display: none !important; }
#screen-match.match-tv-mode .match-actions #throw-btn { min-width: 0; min-height: 58px; font-size: 18px; white-space: nowrap; }
#screen-match.match-tv-mode .match-actions #t-btn-sim-visit { min-height: 58px; padding-inline: 6px; white-space: nowrap; }
#screen-match.match-tv-mode .broadcast-scoreboard {
    position: fixed;
    z-index: 5002;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    width: min(340px, calc(100% - 44px - var(--checkout-space, 0px)));
    margin: 0;
}
#screen-match.match-tv-mode.tv-spectator #spectator-speed-controls {
    position: fixed;
    z-index: 5004;
    top: max(16px, env(safe-area-inset-top));
    left: 50%;
    display: flex !important;
    width: auto;
    margin: 0;
    transform: translateX(-50%);
    background: #0c2036ed;
}

/* Live broadcast identity, director cards and leg-ending replay. */
.tv-watermark,
.tv-stat-card,
.tv-moment-banner,
.tv-replay,
.tv-replay-stinger { display: none; }
#screen-match.match-tv-mode .tv-watermark {
    position: fixed;
    z-index: 5006;
    top: max(20px, env(safe-area-inset-top));
    left: max(24px, env(safe-area-inset-left));
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #ffffff52;
    border-radius: 4px;
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1;
    opacity: .72;
    filter: drop-shadow(0 2px 5px #000b);
    transform: translateY(0);
    transition: opacity .35s ease, transform .42s cubic-bezier(.2,.8,.2,1), filter .35s ease;
    pointer-events: none;
}
.tv-watermark span { padding: 7px 9px 6px; background: var(--broadcast-deep); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.tv-watermark strong { padding: 7px 8px 6px; background: var(--broadcast-accent); color: var(--broadcast-accent-text); font-size: 13px; letter-spacing: .08em; }
#screen-match.match-tv-mode .tv-watermark.is-replay-cue { opacity: 1; transform: translateY(5px) scale(1.08); filter: drop-shadow(0 4px 10px #000c); }
#screen-match.match-tv-mode .tv-watermark.is-replay { opacity: .94; transform: translateY(0) scale(1.04); }
#screen-match.match-tv-mode .tv-watermark.is-replay strong { background: var(--broadcast-secondary); color: var(--broadcast-secondary-text); }
#screen-match.match-tv-mode .tv-watermark.is-replay-outro { opacity: .25; transform: translateY(-5px); }

#screen-match.match-tv-mode .tv-stat-card {
    position: fixed;
    z-index: 5003;
    top: auto;
    bottom: 222px;
    right: max(22px, env(safe-area-inset-right));
    left: auto;
    display: block;
    width: 316px;
    overflow: hidden;
    border: 1px solid #ffffff52;
    border-top: 4px solid var(--broadcast-secondary);
    border-radius: 5px;
    background: var(--broadcast-card-bg);
    background: linear-gradient(135deg, var(--broadcast-mid), var(--broadcast-deep));
    color: #fff;
    box-shadow: 0 18px 55px #000d;
    opacity: 0;
    transform: translateY(18px) scale(.96);
    transition: opacity .3s ease, transform .55s cubic-bezier(.16,.9,.25,1);
    pointer-events: none;
}
#screen-match.match-tv-mode .tv-stat-card[hidden] { display: none; }
#screen-match.match-tv-mode .tv-stat-card.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.tv-stat-header { display: block; padding: 13px 12px 9px; border-bottom: 1px solid #ffffff32; text-align: center; }
.tv-stat-main { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: stretch; min-height: 100px; }
.tv-stat-portrait { position: relative; align-self: stretch; min-width: 0; min-height: 100px; margin: 0; overflow: hidden; background: radial-gradient(circle at 50% 43%, #ffffff22, transparent 68%); }
.tv-stat-portrait::after { content: ''; position: absolute; inset: auto 0 0; height: 44%; background: linear-gradient(transparent, var(--broadcast-deep)); }
.tv-stat-portrait img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 10px #000a); }
.tv-stat-portrait img.is-missing { display: none; }
.tv-stat-initial { position: absolute; inset: 0; display: grid; place-items: center; color: #ffffff45; font: 900 26px/1 Arial, sans-serif; }
.tv-stat-copy { align-self: center; min-width: 0; padding: 8px 2px; }
.tv-stat-kicker { display: block; padding-bottom: 4px; color: var(--broadcast-secondary); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.tv-stat-card h3 { margin: 0; padding: 0; border: 0; color: #fff; text-align: center; font: 900 17px/1.1 Arial, sans-serif; text-wrap: balance; text-transform: uppercase; }
.tv-stat-body { display: grid; align-content: center; }
.tv-stat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1fr); align-items: center; gap: 3px; min-height: 34px; padding: 4px 0; font: 800 10px/1.12 Arial, sans-serif; }
.tv-stat-row + .tv-stat-row { border-top: 1px solid #ffffff18; }
.tv-stat-label { min-width: 0; color: #dce7f3; text-align: center; overflow-wrap: anywhere; }
.tv-stat-value { min-width: 0; color: #f4f6f7; text-align: center; font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tv-stat-row strong.is-accent { color: var(--broadcast-secondary); }
.tv-stat-name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #ffffff45; font: 900 11px/1.12 Arial, sans-serif; text-transform: uppercase; }
.tv-stat-name-row strong { display: grid; min-width: 0; min-height: 41px; place-items: center; padding: 6px 7px; overflow-wrap: anywhere; text-align: center; text-wrap: balance; }
.tv-stat-name-row strong:first-child { background: var(--broadcast-accent); color: var(--broadcast-accent-text); }
.tv-stat-name-row strong:last-child { background: var(--broadcast-mid); color: #fff; }
.tv-stat-score-row { display: none; }
.tv-stat-score-disc { display: grid; place-items: center; width: 86px; aspect-ratio: 1; justify-self: center; border: 5px solid var(--broadcast-accent); border-radius: 50%; background: #ffffff0b; box-shadow: inset 0 0 0 2px #ffffff14; font: italic 900 25px/1 Arial, sans-serif; }
.tv-stat-score-disc:last-child { border-color: var(--broadcast-secondary); }
.tv-stat-score-summary { min-width: 0; text-align: center; font-family: Arial, sans-serif; }
.tv-stat-score-summary small { display: block; margin-bottom: 7px; overflow: hidden; color: #d8dde4; font-size: 11px; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.tv-stat-score-summary div { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 9px; }
.tv-stat-score-summary b { font-size: 23px; }
.tv-stat-score-summary span { color: #cbd1d8; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

#screen-match.match-tv-mode .tv-moment-banner {
    position: fixed;
    z-index: 5004;
    left: calc((100% - 360px) / 2);
    bottom: max(56px, 8vh);
    display: grid;
    grid-template-columns: auto minmax(0, auto);
    align-items: stretch;
    max-width: min(680px, calc(100% - 420px));
    border: 1px solid #ffffff38;
    border-left: 5px solid var(--broadcast-accent);
    border-radius: 4px;
    overflow: hidden;
    background: var(--broadcast-deep);
    color: #fff;
    box-shadow: 0 12px 34px #000c;
    opacity: 0;
    transform: translate(-50%, 32px) scale(.96);
    transition: opacity .24s ease, transform .42s cubic-bezier(.16,.9,.25,1);
    pointer-events: none;
}
#screen-match.match-tv-mode.tv-spectator .tv-moment-banner { left: 50%; max-width: min(680px, calc(100% - 32px)); }
#screen-match.match-tv-mode .tv-moment-banner[hidden] { display: none; }
#screen-match.match-tv-mode .tv-moment-banner.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.tv-moment-kicker {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    padding: 12px 15px;
    background: var(--broadcast-accent);
    color: var(--broadcast-accent-text);
    font: 900 12px/1 Arial, sans-serif;
    letter-spacing: .14em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.tv-moment-banner strong { padding: 12px 18px 2px; font: 900 clamp(22px, 3vw, 42px)/1 Arial, sans-serif; letter-spacing: .025em; }
.tv-moment-banner small { padding: 4px 18px 12px; color: var(--broadcast-secondary); font: 800 13px/1.2 Arial, sans-serif; letter-spacing: .08em; }
#screen-match.match-tv-mode.tv-director-hold .aim-controls,
#screen-match.match-tv-mode.tv-director-hold .match-actions { pointer-events: none; }
#screen-match.match-tv-mode.tv-director-hold #throw-btn { filter: saturate(.55); }

#screen-match.match-tv-mode .tv-replay {
    position: fixed;
    z-index: 5005;
    inset: 0;
    display: block;
    overflow: hidden;
    background: #030609;
    opacity: 0;
    transition: opacity .34s ease;
}
#screen-match.match-tv-mode .tv-replay[hidden] { display: none; }
#screen-match.match-tv-mode .tv-replay.is-visible { opacity: 1; }
#screen-match.match-tv-mode .tv-replay.is-live-3d { background: #02060838; }
#screen-match.match-tv-mode .tv-replay.is-live-3d img { display: none; }
.tv-replay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.9) contrast(1.08) brightness(.82);
    transform: scale(1.02);
    transition: transform 2.35s linear, filter .45s ease;
}
.tv-replay.is-visible[data-shot="front-tight"] img { transform: scale(1.13) translate3d(0, -1.2%, 0); }
.tv-replay.is-visible[data-shot="left-tight"] img { transform: scale(1.2) translate3d(-2.4%, -.4%, 0); filter: saturate(.86) contrast(1.12) brightness(.78); }
.tv-replay.is-visible[data-shot="left-low"] img { transform: scale(1.17) translate3d(1.8%, 1.2%, 0); filter: saturate(.92) contrast(1.06) brightness(.84); }
.tv-replay::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0003, transparent 40%, var(--broadcast-replay-shade)); pointer-events: none; }
.tv-replay-label {
    position: absolute;
    z-index: 1;
    left: max(24px, env(safe-area-inset-left));
    bottom: max(28px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    max-width: calc(100% - 210px);
    background: var(--broadcast-deep);
    color: #fff;
    box-shadow: 0 6px 18px #0009;
    font: 700 15px/1.2 Arial, sans-serif;
}
.tv-replay-label strong { align-self: stretch; display: grid; place-items: center; padding: 10px 12px; background: var(--broadcast-accent); color: var(--broadcast-accent-text); font-size: 12px; letter-spacing: .12em; }
.tv-replay-label span { padding: 10px 14px; }
#tv-replay-skip {
    position: absolute;
    z-index: 2;
    right: max(24px, env(safe-area-inset-right));
    bottom: max(28px, env(safe-area-inset-bottom));
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #ffffff70;
    border-radius: 4px;
    background: var(--broadcast-deep);
    color: #fff;
    font: 700 13px Arial, sans-serif;
    cursor: pointer;
}
#tv-replay-skip:hover, #tv-replay-skip:focus-visible { background: var(--broadcast-mid); outline: 2px solid var(--broadcast-secondary); outline-offset: 2px; }
#screen-match.match-tv-mode.tv-replay-running .board-view-controls,
#screen-match.match-tv-mode.tv-replay-running .aim-controls,
#screen-match.match-tv-mode.tv-replay-running .match-actions,
#screen-match.match-tv-mode.tv-replay-running #spectator-speed-controls,
#screen-match.match-tv-mode.tv-replay-running .broadcast-scoreboard {
    opacity: 0 !important;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s .25s;
}
#screen-match.match-tv-mode.tv-spectator.tv-replay-running #spectator-speed-controls {
    z-index: 5010;
    top: max(12px, env(safe-area-inset-top));
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1 !important;
    visibility: visible;
    pointer-events: auto;
}
#screen-match.match-tv-mode.tv-spectator.tv-replay-running #spectator-speed-controls > :not(.spectator-exit-btn) { display: none; }
#screen-match.match-tv-mode.tv-replay-running .match-board-view { right: 0; }

#screen-match.match-tv-mode .tv-replay-stinger {
    --stinger-duration: 620ms;
    position: fixed;
    z-index: 5008;
    inset: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
}
#screen-match.match-tv-mode .tv-replay-stinger[hidden] { display: none; }
.tv-stinger-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 45%, var(--broadcast-stinger-dot) 0 1px, transparent 2px) 0 0 / 18px 18px,
        var(--broadcast-stinger-bg);
    box-shadow: inset 0 0 70px #000b;
    transition: transform var(--stinger-duration) cubic-bezier(.7,0,.2,1);
    will-change: transform;
}
.tv-stinger-panel::before,
.tv-stinger-panel::after {
    content: '';
    position: absolute;
    width: 170%;
    height: 9px;
    left: -35%;
    top: 31%;
    background: var(--broadcast-accent);
    box-shadow: 0 18px 0 var(--broadcast-secondary), 0 23px 24px #000c;
    transform: rotate(-24deg);
}
.tv-stinger-panel::after { top: 70%; height: 2px; opacity: .55; box-shadow: none; background: #fff; }
.tv-stinger-panel-left { left: 0; transform: translateX(-105%); border-right: 1px solid #ffffff4d; }
.tv-stinger-panel-right { right: 0; transform: translateX(105%); border-left: 1px solid #ffffff4d; }
.tv-replay-stinger.is-covering .tv-stinger-panel { transform: translateX(0); }
.tv-replay-stinger.is-opening .tv-stinger-panel-left { transform: translateX(-105%); }
.tv-replay-stinger.is-opening .tv-stinger-panel-right { transform: translateX(105%); }
.tv-replay-stinger.is-outro .tv-stinger-panel::before { background: var(--broadcast-secondary); box-shadow: 0 18px 0 var(--broadcast-accent), 0 23px 24px #000c; }
.tv-stinger-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    grid-template-columns: auto auto;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #ffffff80;
    border-radius: 5px;
    color: #fff;
    box-shadow: 0 14px 45px #000d;
    font-family: Arial, sans-serif;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.72);
    transition: opacity var(--stinger-duration) ease, transform var(--stinger-duration) cubic-bezier(.2,.9,.2,1);
}
.tv-replay-stinger.is-covering .tv-stinger-brand { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tv-stinger-brand span { padding: 18px 20px 15px; background: var(--broadcast-deep); font-size: clamp(18px, 3vw, 38px); font-weight: 900; letter-spacing: .12em; white-space: nowrap; }
.tv-stinger-brand strong { display: grid; place-items: center; padding: 16px 18px 13px; background: var(--broadcast-accent); color: var(--broadcast-accent-text); font-size: clamp(21px, 3.4vw, 43px); letter-spacing: .04em; }
.tv-stinger-brand small { grid-column: 1 / -1; padding: 8px 12px 7px; background: var(--broadcast-secondary); color: var(--broadcast-secondary-text); text-align: center; font-size: clamp(10px, 1vw, 14px); font-weight: 900; letter-spacing: .22em; }

.match-final-score {
    position: fixed;
    z-index: 5012;
    inset: 0;
    display: grid;
    align-items: end;
    justify-items: center;
    box-sizing: border-box;
    padding: 0 24px clamp(36px, 8vh, 86px);
    overflow: hidden;
    background: linear-gradient(180deg, #02050a24 0%, #02050a78 58%, #02050ae8 100%);
    font-family: Arial, sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity .36s ease;
}
.match-final-score[hidden] { display: none; }
.match-final-score.is-visible { opacity: 1; }
.match-final-scoreboard {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(196px, 24vw, 300px) minmax(0, 1fr);
    align-items: stretch;
    width: min(1120px, calc(100vw - 48px));
    min-height: clamp(126px, 17vw, 190px);
    color: #fff;
    filter: drop-shadow(0 18px 30px #000b);
    transform: translateY(42px) scale(.97);
    transition: transform .54s cubic-bezier(.16,.9,.25,1);
}
.match-final-score.is-visible .match-final-scoreboard { transform: translateY(0) scale(1); }
.match-final-player {
    position: relative;
    display: grid;
    grid-template-columns: minmax(80px, 34%) minmax(0, 1fr);
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
    border-top: 3px solid var(--broadcast-secondary, #22c55e);
    background: linear-gradient(115deg, var(--broadcast-deep, #101827), var(--broadcast-mid, #24334a));
}
.match-final-player-p2 { grid-template-columns: minmax(0, 1fr) minmax(80px, 34%); background: linear-gradient(245deg, var(--broadcast-deep, #101827), var(--broadcast-mid, #24334a)); }
.match-final-player::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: var(--broadcast-secondary, #22c55e);
    opacity: .28;
}
.match-final-player.is-winner { border-top-color: var(--broadcast-accent, #e32636); }
.match-final-player.is-winner::after { background: var(--broadcast-accent, #e32636); opacity: 1; }
.match-final-portrait {
    position: relative;
    align-self: end;
    width: 100%;
    height: 100%;
    min-height: 126px;
    margin: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 32%, var(--broadcast-stage-glow, #334155), var(--broadcast-deep, #101827) 75%);
}
.match-final-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 8px #0008); }
.match-final-portrait img.world-cup-flag-photo { object-fit: cover; object-position: center; padding: 12%; box-sizing: border-box; }
.match-final-initial { position: absolute; inset: 0; display: grid; place-items: center; color: #ffffffd9; font-size: clamp(35px, 5vw, 66px); font-weight: 900; }
.match-final-initial[hidden], .match-final-portrait img[hidden] { display: none; }
.match-final-name { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; padding: 18px clamp(10px, 1.4vw, 20px); text-transform: uppercase; }
.match-final-player-p1 .match-final-name { align-items: flex-end; text-align: right; }
.match-final-player-p2 .match-final-name { align-items: flex-start; text-align: left; }
.match-final-name span { max-width: 100%; font-size: clamp(13px, 1.45vw, 20px); line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.match-final-name strong { max-width: 100%; font-size: clamp(20px, 2.5vw, 36px); line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.match-final-result {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-width: 0;
    overflow: hidden;
    text-align: center;
    background: var(--broadcast-accent, #e32636);
    color: var(--broadcast-accent-text, #fff);
    box-shadow: 0 0 0 1px #ffffff38, 0 0 24px #0008;
}
.match-final-result small { align-self: stretch; padding: 9px 9px 6px; background: var(--broadcast-deep, #101827); color: #fff; font-size: clamp(9px, .85vw, 12px); line-height: 1.3; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: normal; overflow-wrap: anywhere; }
.match-final-numbers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(4px, .8vw, 10px); min-width: 0; padding: 8px 12px; }
.match-final-numbers strong { min-width: 0; font-size: clamp(44px, 5.7vw, 76px); font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.035em; text-shadow: 0 3px 0 #0003; }
.match-final-numbers i { font-size: clamp(18px, 2.2vw, 30px); font-style: normal; font-weight: 400; opacity: .75; }
.match-final-result > span { padding: 8px 8px 7px; background: var(--broadcast-deep, #101827); color: #fff; font-size: clamp(9px, .85vw, 13px); font-weight: 900; letter-spacing: .14em; }

.match-post-stats {
    position: fixed;
    z-index: 5013;
    inset: 0;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 20px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 35%, var(--broadcast-stage-glow, #273b53) 0%, var(--broadcast-stage-bg, #111c29) 62%, #060b12 100%);
    color: #fff;
    font-family: Arial, sans-serif;
    opacity: 0;
    transition: opacity .36s ease;
}
.match-post-stats[hidden] { display: none; }
.match-post-stats.is-visible { opacity: 1; }
.match-post-stats-card {
    width: min(1080px, 100%);
    max-height: calc(100svh - 40px);
    box-sizing: border-box;
    overflow: auto;
    border: 1px solid #ffffff35;
    border-top: 5px solid var(--broadcast-accent, #e32636);
    background: linear-gradient(135deg, var(--broadcast-deep, #101827), var(--broadcast-mid, #24334a) 54%, var(--broadcast-deep, #101827));
    box-shadow: 0 30px 80px #000b, inset 0 0 0 1px #0007;
    transform: translateY(22px) scale(.98);
    transition: transform .5s cubic-bezier(.16,.9,.25,1);
}
.match-post-stats.is-visible .match-post-stats-card { transform: translateY(0) scale(1); }
.match-post-stats-header { padding: 20px 24px 15px; text-align: center; background: linear-gradient(90deg, #ffffff08, #ffffff02, #ffffff08); }
.match-post-stats-brand { display: inline-flex; align-items: center; gap: 8px; color: #e8edf2; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.match-post-stats-brand b { padding: 4px 6px; background: var(--broadcast-accent, #e32636); color: var(--broadcast-accent-text, #fff); letter-spacing: .05em; }
.match-post-stats-header h2 { margin: 8px 0 3px; color: #fff; font-size: clamp(22px, 3vw, 36px); font-weight: 900; letter-spacing: .07em; line-height: 1; text-transform: uppercase; }
.match-post-stats-header p { margin: 0; color: #cbd5e1; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.match-post-stats-main { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(360px, 1.8fr) minmax(150px, 1fr); align-items: stretch; gap: 12px; padding: 8px 18px 16px; }
.match-post-stats-player { display: flex; min-width: 0; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(180deg, #ffffff0b, #0004); border-bottom: 4px solid var(--broadcast-secondary, #22c55e); }
.match-post-stats-player.is-winner { border-bottom-color: var(--broadcast-accent, #e32636); }
.match-post-stats-portrait { position: relative; width: 100%; height: 200px; margin: 0; overflow: hidden; background: radial-gradient(ellipse at center 30%, var(--broadcast-stage-glow, #334155), var(--broadcast-deep, #101827) 73%); }
.match-post-stats-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 7px 7px #0008); }
.match-post-stats-portrait img.world-cup-flag-photo { box-sizing: border-box; padding: 12%; object-fit: cover; object-position: center; }
.match-post-stats-portrait span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff9; font-size: 58px; font-weight: 900; }
.match-post-stats-player > strong { display: grid; flex: 1; place-items: center; min-height: 50px; padding: 8px 10px 2px; font-size: clamp(15px, 1.7vw, 22px); font-weight: 900; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.match-post-stats-score { padding: 0 10px 10px; color: #fff; font-size: clamp(36px, 4vw, 54px); font-weight: 900; line-height: 1; }
.match-post-stats-table { display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); align-self: stretch; gap: 4px; }
.match-post-stats-row { display: grid; grid-template-columns: minmax(66px, 1fr) minmax(105px, 1.25fr) minmax(66px, 1fr); align-items: stretch; min-height: 47px; gap: 4px; text-align: center; }
.match-post-stats-row strong { display: grid; place-items: center; padding: 4px; background: var(--broadcast-accent, #e32636); color: var(--broadcast-accent-text, #fff); font-size: clamp(18px, 2vw, 26px); font-weight: 900; font-variant-numeric: tabular-nums; }
.match-post-stats-row span { display: grid; place-items: center; padding: 4px; color: #f4f7fb; font-size: clamp(9px, 1.02vw, 13px); font-weight: 900; letter-spacing: .03em; line-height: 1.12; text-transform: uppercase; }
.match-post-stats-footer { padding: 10px; background: var(--broadcast-deep, #101827); color: #cbd5e1; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-align: center; text-transform: uppercase; }

#screen-match.match-tv-mode .match-board-view[data-view="2d"] .dartboard-surround {
    transition: transform .58s cubic-bezier(.2,.75,.2,1);
    will-change: transform;
}
#screen-match.match-tv-mode .match-board-view[data-view="2d"].tv-camera-focus .dartboard-surround {
    transform: translate(var(--tv-focus-shift-x, 0), var(--tv-focus-shift-y, 0)) scale(var(--tv-focus-scale, 1.68));
}

@media (prefers-reduced-motion: reduce) { .broadcast-nine { transition: none; } }

@media (max-width: 600px) {
    .broadcast-scoreboard.has-nine { --nine-space: 28px; }
    .broadcast-nine { width: 28px; font-size: 16px; }
    #screen-match.match-tv-mode .match-board-view,
    #screen-match.match-tv-mode.tv-spectator .match-board-view { inset: 0 0 56% 0; height: auto; }
    #screen-match.match-tv-mode .match-board-view[data-view="2d"] { box-sizing: border-box; padding-top: 56px; }
    #screen-match.match-tv-mode .match-board-view[data-view="2d"] .dartboard-surround { width: min(94vw, calc(44svh - 90px)); }
    #screen-match.match-tv-mode .match-board #dartboard-3d { height: calc(100% - 56px); margin-top: 56px; }
    #screen-match.match-tv-mode .board-view-controls { top: max(6px, env(safe-area-inset-top)); right: max(6px, env(safe-area-inset-right)); max-width: calc(100% - 12px); padding: 4px; }
    #screen-match.match-tv-mode .board-view-controls button { min-height: 33px; padding: 4px 7px; font-size: 11px; }
    #screen-match.match-tv-mode .aim-controls { top: 56%; left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); width: auto; max-height: calc(44svh - 64px - env(safe-area-inset-bottom)); padding: 7px; gap: 4px; }
    #screen-match.match-tv-mode .tv-quick-throws { padding-bottom: 4px; }
    #screen-match.match-tv-mode .tv-quick-throws legend { margin-bottom: 3px; font-size: 10px; }
    #screen-match.match-tv-mode .tv-quick-throw-btn { min-height: 30px; padding: 3px 1px; font-size: 11px; }
    #screen-match.match-tv-mode .aim-sector-numbers { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
    #screen-match.match-tv-mode .aim-sector-picker legend { margin: 0 0 3px; font-size: 10px; }
    #screen-match.match-tv-mode .aim-sector-btn,
    #screen-match.match-tv-mode .aim-multiplier-btn { min-height: 30px; padding: 3px 1px; font-size: 11px; }
    #screen-match.match-tv-mode .aim-bull-btn span { display: none; }
    #screen-match.match-tv-mode .match-actions { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); bottom: max(7px, env(safe-area-inset-bottom)); width: auto; }
    #screen-match.match-tv-mode .match-actions #throw-btn { min-height: 48px; font-size: 15px; }
    #screen-match.match-tv-mode .match-actions #t-btn-sim-visit { min-height: 48px; }
    #screen-match.match-tv-mode .broadcast-scoreboard { right: 8px; bottom: 45%; transform: translateY(-8px); }
    #screen-match.match-tv-mode.tv-spectator .broadcast-scoreboard { bottom: max(8px, env(safe-area-inset-bottom)); transform: none; }
    #screen-match.match-tv-mode.tv-spectator #spectator-speed-controls { top: calc(44% + 10px); width: max-content; max-width: calc(100% - 16px); flex-wrap: wrap; gap: 5px; padding: 6px; }
    #screen-match.match-tv-mode.tv-spectator .spectator-speed-label { display: none; }
    #screen-match.match-tv-mode.tv-spectator .spectator-speed-buttons { flex-wrap: nowrap; gap: 3px; }
    #screen-match.match-tv-mode.tv-spectator .spectator-pause-btn,
    #screen-match.match-tv-mode.tv-spectator .spectator-speed-btn,
    #screen-match.match-tv-mode.tv-spectator .spectator-exit-btn { min-width: 34px; padding: 5px; font-size: 11px; }
    #screen-match.match-tv-mode .tv-watermark { top: 50px; left: 7px; transform: scale(.78); transform-origin: top left; }
    #screen-match.match-tv-mode .tv-stat-card {
        top: auto; right: 8px; bottom: calc(56% + 8px); left: 8px; width: auto;
        transform: translateY(8px) scale(.98);
    }
    #screen-match.match-tv-mode.tv-spectator .tv-stat-card { top: auto; bottom: 120px; }
    #screen-match.match-tv-mode .tv-stat-card.is-visible { transform: translateY(0) scale(1); }
    #screen-match.match-tv-mode .tv-moment-banner,
    #screen-match.match-tv-mode.tv-spectator .tv-moment-banner { left: 50%; bottom: 47%; max-width: calc(100% - 16px); }
    .tv-moment-kicker { padding: 9px 10px; font-size: 9px; }
    .tv-moment-banner strong { padding: 9px 12px 2px; font-size: 21px; }
    .tv-moment-banner small { padding: 3px 12px 9px; font-size: 10px; }
    .tv-stat-header { padding: 8px 8px 6px; }
    .tv-stat-main { display: block; min-height: 0; }
    .tv-stat-portrait { display: none; }
    .tv-stat-copy { padding: 3px 8px 5px; }
    .tv-stat-kicker { padding-bottom: 2px; font-size: 8px; }
    .tv-stat-card h3 { font-size: 15px; }
    .tv-stat-row { min-height: 29px; padding: 3px 0; font-size: 10px; }
    .tv-stat-value { font-size: 16px; }
    .tv-stat-name-row { font-size: 11px; }
    .tv-stat-name-row strong { min-height: 35px; padding: 5px 8px; }
    .tv-stat-score-row { grid-template-columns: 60px minmax(0, 1fr) 60px; gap: 8px; padding: 7px 38px 8px; }
    .tv-stat-score-disc { width: 52px; border-width: 3px; font-size: 16px; }
    .tv-stat-score-summary small { margin-bottom: 3px; font-size: 7px; }
    .tv-stat-score-summary div { gap: 4px; }
    .tv-stat-score-summary b { font-size: 15px; }
    .tv-stat-score-summary span { font-size: 7px; }
    .tv-replay-label { left: 8px; bottom: 62px; max-width: calc(100% - 16px); font-size: 12px; }
    #tv-replay-skip { right: 8px; bottom: 10px; min-height: 38px; }
    .tv-stinger-brand span { padding-inline: 12px; letter-spacing: .07em; }
    .tv-stinger-brand strong { padding-inline: 11px; }
    .match-final-score { padding: 0 7px 48px; }
    .match-final-scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); width: calc(100vw - 14px); min-height: 170px; }
    .match-final-player, .match-final-player-p2 { grid-template-columns: minmax(0, 1fr); grid-template-rows: 104px auto; }
    .match-final-player-p1 { grid-column: 1; grid-row: 1; }
    .match-final-player-p2 { grid-column: 2; grid-row: 1; }
    .match-final-player-p2 .match-final-portrait { grid-row: 1; }
    .match-final-portrait { min-height: 0; height: 104px; }
    .match-final-name { padding: 10px 8px 14px; }
    .match-final-player-p1 .match-final-name, .match-final-player-p2 .match-final-name { align-items: center; text-align: center; }
    .match-final-name span { font-size: 11px; }
    .match-final-name strong { font-size: clamp(14px, 2.8vw, 20px); }
    .match-final-result { grid-column: 1 / -1; grid-row: 2; }
    .match-final-result small { padding: 7px 8px; font-size: 9px; }
    .match-final-numbers { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 8px; padding: 6px 20px; }
    .match-final-numbers strong { font-size: 44px; }
    .match-final-numbers i { font-size: 22px; }
    .match-final-result > span { padding: 6px 8px; font-size: 9px; letter-spacing: .06em; }
    .match-post-stats { padding: 7px; }
    .match-post-stats-card { max-height: calc(100svh - 14px); }
    .match-post-stats-header { padding: 10px 8px 8px; }
    .match-post-stats-header h2 { margin-top: 5px; font-size: 19px; }
    .match-post-stats-header p { font-size: 9px; }
    .match-post-stats-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; padding: 4px 7px 8px; }
    .match-post-stats-player { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-rows: 1fr auto; min-height: 72px; text-align: left; }
    .match-post-stats-player-p2 { grid-template-columns: minmax(0, 1fr) 54px; text-align: right; }
    .match-post-stats-player-p2 .match-post-stats-portrait { grid-column: 2; grid-row: 1 / 3; }
    .match-post-stats-portrait { grid-row: 1 / 3; height: 72px; }
    .match-post-stats-portrait span { font-size: 28px; }
    .match-post-stats-player > strong { display: block; min-height: 0; padding: 9px 5px 0; font-size: 11px; }
    .match-post-stats-score { padding: 0 5px 5px; font-size: 25px; }
    .match-post-stats-table { grid-column: 1 / -1; grid-row: 2; }
    .match-post-stats-row { grid-template-columns: minmax(60px, 1fr) minmax(92px, 1.3fr) minmax(60px, 1fr); min-height: 39px; }
    .match-post-stats-row strong { font-size: 17px; }
    .match-post-stats-row span { font-size: 9px; }
    .match-post-stats-footer { padding: 7px; font-size: 9px; }
}

@media (max-height: 680px) and (min-width: 601px) {
    #screen-match.match-tv-mode .match-board-view { inset: 0 330px 0 0; }
    #screen-match.match-tv-mode.tv-spectator .match-board-view { right: 330px; }
    #screen-match.match-tv-mode .board-view-controls { top: 7px; right: 10px; max-width: 308px; padding: 4px; }
    #screen-match.match-tv-mode .board-view-controls button { min-height: 32px; padding: 4px 7px; font-size: 11px; }
    #screen-match.match-tv-mode .aim-controls { top: 98px; right: 10px; width: 308px; max-height: calc(100svh - 272px); padding: 4px; gap: 3px; }
    #screen-match.match-tv-mode .tv-quick-throws { padding-bottom: 4px; }
    #screen-match.match-tv-mode .tv-quick-throws legend { margin-bottom: 3px; font-size: 10px; }
    #screen-match.match-tv-mode .tv-quick-throw-btn { min-height: 26px; padding: 2px 1px; font-size: 11px; }
    #screen-match.match-tv-mode .tv-quick-throw-row + .tv-quick-throw-row { margin-top: 3px; }
    #screen-match.match-tv-mode .aim-sector-numbers { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
    #screen-match.match-tv-mode .aim-sector-picker legend { margin: 0 0 3px; font-size: 10px; }
    #screen-match.match-tv-mode .aim-sector-btn,
    #screen-match.match-tv-mode .aim-multiplier-btn { min-height: 27px; padding: 2px 1px; font-size: 11px; }
    #screen-match.match-tv-mode .aim-bull-btn span { display: none; }
    #screen-match.match-tv-mode .match-actions { right: 10px; bottom: 116px; width: 308px; }
    #screen-match.match-tv-mode .match-actions #throw-btn { min-height: 44px; font-size: 14px; }
    #screen-match.match-tv-mode .match-actions #t-btn-sim-visit { min-height: 44px; }
    #screen-match.match-tv-mode .broadcast-scoreboard { right: 10px; bottom: 8px; }
    #screen-match.match-tv-mode.tv-spectator #spectator-speed-controls { top: 7px; padding: 5px; }
    #screen-match.match-tv-mode .tv-watermark { top: 8px; left: 10px; }
    #screen-match.match-tv-mode .tv-stat-card { top: auto; right: 10px; bottom: 170px; left: auto; width: 308px; }
    .tv-stat-main { grid-template-columns: 46px minmax(0, 1fr) 46px; min-height: 100px; }
    .tv-stat-portrait { min-height: 100px; }
    .tv-stat-copy { padding-block: 5px; }
    .tv-stat-card h3 { font-size: 15px; }
    .tv-stat-row { min-height: 29px; font-size: 9px; }
    .tv-stat-value { font-size: 15px; }
    .tv-stat-name-row { font-size: 11px; }
    .tv-stat-name-row strong { min-height: 37px; }
    .tv-stat-score-row { grid-template-columns: 72px minmax(0, 1fr) 72px; gap: 14px; padding: 7px 64px 8px; }
    .tv-stat-score-disc { width: 61px; border-width: 4px; font-size: 18px; }
    #screen-match.match-tv-mode .tv-moment-banner { left: calc((100% - 330px) / 2); bottom: 22px; max-width: min(520px, calc(100% - 360px)); }
}

/* Shorter laptop viewports still leave room for the live statistics card. */
@media (min-width: 601px) and (min-height: 681px) and (max-height: 900px) {
    #screen-match.match-tv-mode .aim-controls { padding: 5px; gap: 3px; }
    #screen-match.match-tv-mode .tv-quick-throws { padding-bottom: 4px; }
    #screen-match.match-tv-mode .tv-quick-throws legend,
    #screen-match.match-tv-mode .aim-sector-picker legend { margin-bottom: 4px; font-size: 11px; }
    #screen-match.match-tv-mode .aim-sector-numbers { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
    #screen-match.match-tv-mode .tv-quick-throw-btn,
    #screen-match.match-tv-mode .aim-sector-btn,
    #screen-match.match-tv-mode .aim-multiplier-btn { min-height: 28px; padding: 3px 2px; font-size: 12px; }
    #screen-match.match-tv-mode .aim-bull-btn span { font-size: 11px; }
}

@media (min-width: 601px) and (max-height: 900px) {
    #screen-match.match-tv-mode .tv-stat-header { padding: 7px 8px 5px; }
    #screen-match.match-tv-mode .tv-stat-kicker { padding-bottom: 2px; font-size: 8px; }
    #screen-match.match-tv-mode .tv-stat-card h3 { font-size: 14px; }
    #screen-match.match-tv-mode .tv-stat-main,
    #screen-match.match-tv-mode .tv-stat-portrait { min-height: 0; }
    #screen-match.match-tv-mode .tv-stat-copy { padding-block: 3px; }
    #screen-match.match-tv-mode .tv-stat-row { min-height: 28px; box-sizing: border-box; padding-block: 3px; font-size: 9px; }
    #screen-match.match-tv-mode .tv-stat-value { font-size: 15px; }
    #screen-match.match-tv-mode .tv-stat-name-row strong { min-height: 34px; box-sizing: border-box; padding: 4px 6px; }
}

/* The measured toolbar, score and card heights define separate sidebar slots. */
@media (min-width: 601px) {
    #screen-match.match-tv-mode .aim-controls {
        top: var(--tv-aim-top, 84px);
        min-height: 0;
        max-height: var(--tv-aim-height, calc(100svh - 300px));
        align-content: start;
    }
    #screen-match.match-tv-mode .match-actions { bottom: var(--tv-actions-bottom, 146px); }
    #screen-match.match-tv-mode .tv-stat-card {
        bottom: var(--tv-stat-bottom, 222px);
        max-height: var(--tv-stat-max-height, none);
        box-sizing: border-box;
        overflow-y: auto;
        overscroll-behavior: contain;
        pointer-events: auto;
        transform: scale(.96);
    }
    #screen-match.match-tv-mode .tv-stat-card.is-visible { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    #screen-match.match-tv-mode .tv-watermark,
    #screen-match.match-tv-mode .tv-stat-card,
    #screen-match.match-tv-mode .tv-moment-banner,
    #screen-match.match-tv-mode .tv-replay,
    #screen-match.match-tv-mode .tv-replay-stinger .tv-stinger-panel,
    #screen-match.match-tv-mode .tv-replay-stinger .tv-stinger-brand,
    .match-final-score,
    .match-final-scoreboard,
    .match-post-stats,
    .match-post-stats-card,
    #screen-match.match-tv-mode .match-board-view[data-view="2d"] .dartboard-surround { transition: none; }
    .tv-replay.is-visible img { transition: none; }
}
