/* Detailed movement analysis and the overhead match photograph. */
.analysis-main .match-scene{min-height:0}
.analysis-main .scene-image{height:auto;aspect-ratio:1.8}
.scout-card{justify-content:space-between}
.trace-player-shadow{fill:none;stroke:var(--ink);stroke-width:7;stroke-opacity:.6;stroke-linecap:round;stroke-linejoin:round}
.trace-player{fill:none;stroke:var(--green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.trace-link{stroke:var(--on-dark);stroke-opacity:.65;stroke-width:2;stroke-dasharray:7 8}
.ball-ring{stroke:var(--on-dark);stroke-width:2;opacity:.85}
.ball-point{fill:var(--on-dark)}
.tracked-player{width:var(--control-size);height:var(--control-size);min-width:var(--control-size);min-height:var(--control-size);border:0;transform:translate(-50%,-50%);border-radius:50%;isolation:isolate}
.tracked-player::before{content:'';position:absolute;inset:var(--space-2);border:1px solid var(--on-dark);border-radius:50%;box-shadow:0 0 0 1px var(--ink)}
.tracked-player.is-selected{border:0}
.tracked-player.is-selected::before{border:2px solid var(--green);box-shadow:0 0 0 2px var(--image-scrim)}
.tracked-player>span{top:0;left:50%;transform:translate(-50%,-85%);background:var(--ink);color:var(--on-dark);padding:var(--space-2);font-size:var(--text-sm);gap:var(--space-2);border:1px solid var(--on-dark)}
.tracked-player.is-selected>span{border-color:var(--green);color:var(--ink)}
.tracked-player small{font-size:.5625rem}
.tracked-player:hover::before{border-color:var(--green)}
.tracked-player:focus-visible{outline-offset:2px}
.analysis-charts{grid-template-columns:repeat(2,minmax(0,1fr))}
.density-chart{grid-column:1/-1;border-right:0;border-bottom:1px solid var(--line-dark);padding:var(--space-8)}
.movement-heading{display:flex;align-items:start;justify-content:space-between;gap:var(--space-8)}
.movement-heading>.chart-heading{min-width:0;max-width:100%;flex:1 1 24rem}
.movement-heading .chart-heading h3{font-size:var(--text-title);line-height:1.35;font-weight:700;margin:0}
.movement-heading .chart-heading p{font-size:var(--text-sm);line-height:1.8;color:var(--muted-on-dark);margin:var(--space-2) 0 0}
.movement-periods{display:flex;flex-shrink:0;gap:var(--space-1);border:1px solid var(--line-dark);padding:var(--space-1)}
.movement-periods button{min-height:var(--control-size);background:none;color:var(--muted-on-dark);border:0;padding:var(--space-2) var(--space-4);font-size:var(--text-xs);font-weight:700;white-space:nowrap}
.movement-periods button[aria-pressed=true]{background:var(--green);color:var(--ink)}
.movement-toolbar{display:flex;align-items:center;justify-content:space-between;gap:var(--space-6);border-bottom:1px solid var(--line-dark);margin-block:var(--space-6);padding-bottom:var(--space-3)}
.movement-modes{display:flex;gap:var(--space-6)}
.movement-modes button{display:flex;align-items:center;gap:var(--space-2);min-height:var(--control-size);font-size:var(--text-sm);font-weight:700;padding:var(--space-2) 0;background:none;color:var(--muted-on-dark);border:0}
.movement-modes button::before{content:'';width:5px;height:5px;background:currentColor;opacity:0}
.movement-modes button[aria-pressed=true]{color:var(--green)}
.movement-modes button[aria-pressed=true]::before{opacity:1}
.movement-toolbar>span{font-size:.625rem;letter-spacing:.05em;font-weight:700;color:var(--muted-on-dark)}
.movement-body{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(16rem,1fr);gap:var(--space-8)}
.movement-plot{min-width:0;align-self:center}
.movement-pitch{margin:0;width:100%;max-height:27rem}
.movement-field-lines{color:var(--movement-line)}
.movement-grid{stroke:var(--on-dark);stroke-width:.8;stroke-opacity:.16;stroke-dasharray:4 7}
.movement-axis{font-family:var(--font-ui);font-size:10px;fill:var(--muted-on-dark);color:var(--muted-on-dark);font-weight:600;letter-spacing:1px}
.region-share{fill:var(--on-dark);font-family:var(--font-ui);font-size:19px;font-weight:800}
.region-time{fill:var(--muted-on-dark);font-family:var(--font-ui);font-size:13px;font-weight:600}
.movement-route-shadow{stroke:var(--ink);stroke-opacity:.7;stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
.movement-route{stroke:var(--green);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.movement-legend{display:flex;align-items:center;gap:var(--space-2);flex-wrap:wrap;font-size:.6875rem;color:var(--muted-on-dark);padding:var(--space-2) var(--space-4) 0;min-height:2.5rem}
.movement-legend>b{font-weight:500;margin-left:auto}
.movement-colour-key{width:9rem;height:6px;background:linear-gradient(to right,var(--heat-low),var(--heat-cool),var(--heat-mid),var(--heat-warm),var(--heat-orange),var(--heat-high),var(--heat-peak))}
.route-start-key,.route-end-key{width:8px;height:8px;border-radius:50%;border:1px solid var(--green)}
.route-end-key{background:var(--green)}
.movement-summary{min-width:0;border-left:1px solid var(--line-dark);padding-left:var(--space-8)}
.movement-focus>span,.movement-channels>span{display:block;font-size:.625rem;letter-spacing:.04em;font-weight:700;color:var(--muted-on-dark)}
.movement-focus>strong{display:block;font-size:var(--text-body);font-weight:700;line-height:1.5;min-height:3.375rem;margin-top:var(--space-2)}
.movement-focus>div{display:flex;align-items:center;gap:var(--space-4);margin-top:var(--space-2)}
.movement-focus>div>b{font-family:var(--font-display);font-size:2.75rem;font-weight:400;letter-spacing:-.06em;line-height:1.2}
.movement-focus>div>span{font-size:var(--text-title);font-weight:600;line-height:1.4}
.movement-focus small{display:block;font-size:.625rem;font-weight:500;color:var(--muted-on-dark)}
.movement-breakdown{margin:var(--space-6) 0}
.movement-breakdown>div{display:grid;grid-template-columns:1fr auto;gap:var(--space-2);padding-block:var(--space-3);border-top:1px solid var(--line-dark)}
.movement-breakdown dt{font-size:var(--text-xs);color:var(--muted-on-dark)}
.movement-breakdown dd{display:flex;align-items:center;gap:var(--space-4);font-size:var(--text-xs);margin:0}
.movement-breakdown dd b{font-weight:700;min-width:2.5rem;text-align:right}
.movement-breakdown dd span{color:var(--muted-on-dark);min-width:2.75rem;text-align:right}
.movement-breakdown i{--zone-share:0%;display:block;grid-column:1/-1;height:3px;background:linear-gradient(to right,var(--green) var(--zone-share),var(--line-dark) var(--zone-share))}
.movement-channels{padding-top:var(--space-3);border-top:1px solid var(--line-dark)}
.movement-channels>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-2);margin-top:var(--space-3)}
.movement-channels b{display:block;font-size:var(--text-body);font-weight:700;line-height:1.3}
.movement-channels div div>span{display:block;font-size:.625rem;line-height:1.6;color:var(--muted-on-dark);margin-top:var(--space-1)}
.movement-half{font-size:var(--text-xs);line-height:1.7;color:var(--muted-on-dark);margin:var(--space-4) 0 0}
.movement-half strong{color:var(--green);font-weight:700}
.movement-footnote{display:flex;justify-content:space-between;align-items:start;gap:var(--space-8);border-top:1px solid var(--line-dark);padding-top:var(--space-4);margin-top:var(--space-6)}
.movement-footnote>p{font-size:.6875rem;line-height:1.8;color:var(--muted-on-dark);max-width:39rem;margin:0}
.movement-footnote>span{font-size:.6875rem;line-height:1.8;color:var(--green);flex-shrink:0}
.movement-modes button,.movement-periods button{transition:color var(--motion-small),background var(--motion-small),transform var(--motion-micro)}
.movement-modes button:active,.movement-periods button:active{transform:scale(var(--motion-press))}
html:not(.motion-enabled) .movement-periods,html:not(.motion-enabled) .movement-modes{display:none}
html[data-motion=reduce] :is(.movement-modes button,.movement-periods button):active{transform:none}
@container analysis (max-width:64rem){.movement-body{grid-template-columns:minmax(0,1.7fr) minmax(15rem,1fr);gap:var(--space-6)}.movement-summary{padding-left:var(--space-6)}.density-chart{padding:var(--space-6)}.movement-heading{flex-wrap:wrap;gap:var(--space-4)}.movement-focus>strong{font-size:var(--text-base)}.movement-focus>div>b{font-size:2.25rem}.movement-footnote{gap:var(--space-6)}}
@container analysis (max-width:45rem){.analysis-main .scene-image{aspect-ratio:1.5}.analysis-charts{grid-template-columns:minmax(0,1fr)}.density-chart{display:block;grid-column:1/-1;padding:var(--space-6);border-bottom:1px solid var(--line-dark)}.movement-body{grid-template-columns:minmax(0,1fr)}.movement-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:var(--space-4) var(--space-6);border:0;border-top:1px solid var(--line-dark);padding:var(--space-6) 0 0}.movement-breakdown{margin:0}.movement-focus>strong{min-height:0}.movement-channels{grid-column:1}.movement-half{grid-column:2;grid-row:2;margin:0;align-self:center}.movement-heading .chart-heading h3{font-size:1.25rem}.movement-toolbar{margin-block:var(--space-4)}.movement-footnote{display:block}.movement-footnote>span{display:block;margin-top:var(--space-3)}}
@container analysis (max-width:27rem){.density-chart{padding:var(--space-6) var(--space-4)}.movement-heading .chart-heading p{font-size:var(--text-xs)}.movement-periods{width:100%;justify-content:stretch}.movement-periods button{flex:1;padding-inline:var(--space-2)}.movement-modes{width:100%;justify-content:space-between;gap:var(--space-2)}.movement-modes button{font-size:var(--text-xs)}.movement-toolbar>span{display:none}.movement-body{gap:var(--space-4)}.movement-summary{display:block;padding-top:var(--space-4)}.movement-focus{display:grid;grid-template-columns:1fr auto;gap:var(--space-2) var(--space-4);align-items:center}.movement-focus>span{grid-column:1/-1}.movement-focus>strong{font-size:var(--text-base);margin:0}.movement-focus>div{display:block;margin:0;text-align:right}.movement-focus>div>b{font-size:1.75rem;display:block}.movement-focus>div>span{font-size:var(--text-sm)}.movement-focus small{display:none}.movement-breakdown{margin-block:var(--space-4)}.movement-half{margin-top:var(--space-4)}.movement-legend{padding-inline:0;gap:var(--space-1);font-size:.625rem}.movement-legend>b{margin-left:0;flex-basis:100%;margin-top:var(--space-1)}.movement-colour-key{flex:1;max-width:6rem}.tracked-player small{display:none}.tracked-player>span{font-size:var(--text-xs);padding:var(--space-1) var(--space-2)}.scene-readout{left:var(--space-2);bottom:var(--space-2)}.scene-readout>span{font-size:.5625rem}}
@container analysis (max-width:16rem){.movement-periods{flex-wrap:wrap}.movement-periods button{flex:1 1 40%}.movement-modes{flex-wrap:wrap;gap:0 var(--space-3)}.movement-focus{display:block}.movement-focus>div{text-align:left;margin-top:var(--space-3)}.movement-focus>div>b{display:inline-block;margin-right:var(--space-3)}.movement-breakdown dd{gap:var(--space-2)}.movement-breakdown dt{font-size:.6875rem}.movement-footnote>span{font-size:.625rem}.scene-readout{display:none}}
@media(prefers-reduced-motion:reduce){.movement-periods button:active,.movement-modes button:active{transform:none}}
@container analysis (max-width:27rem){.movement-axis{font-size:18px;letter-spacing:.3px}.region-share{font-size:26px}.region-time{font-size:20px}}
