/* Completed match only. Keep teams' colours consistent with pre-match comparison. */
.match-detail{--md-home:#39d8b2;--md-away:#91b9ff;color:var(--text);font-size:13px;line-height:1.45;overflow-wrap:anywhere;padding-bottom:16px}
.match-detail *{box-sizing:border-box}
.match-detail .md-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.match-detail .md-fulltime{font-size:11px;border:1px solid var(--border);border-radius:20px;padding:5px 9px;color:var(--hint)}
.match-detail .md-heading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.match-detail .md-date{font-size:12px;color:var(--hint);margin:10px 0 14px}
.match-detail .md-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;position:relative}
.match-detail .md-team{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:15px 8px 13px;border:1px solid var(--border);border-radius:18px;background:var(--panel);min-width:0}
.match-detail .md-team.home{border-top:3px solid var(--md-home);background:linear-gradient(160deg,#39d8b214,transparent 75%),var(--panel)}
.match-detail .md-team.away{border-top:3px solid var(--md-away);background:linear-gradient(200deg,#91b9ff18,transparent 75%),var(--panel)}
.match-detail .md-team>small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--hint)}
.match-detail .md-team .team-badge{width:44px;height:44px;flex:0 0 44px}
.match-detail .md-team-name{font-size:14px;min-height:40px;line-height:1.35;display:flex;align-items:center}
.match-detail .md-team-score{font-size:44px;line-height:1.1;font-variant-numeric:tabular-nums}
.match-detail .home .md-team-score,.match-detail .md-home{color:var(--md-home)}
.match-detail .away .md-team-score,.match-detail .md-away{color:var(--md-away)}
.match-detail .md-result{font-size:11px;color:var(--hint)}
.match-detail .md-versus{position:absolute;left:50%;top:148px;transform:translateX(-50%);color:var(--hint);font-size:24px}
.match-detail .md-context{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--hint);font-size:11px;min-height:36px;margin-top:4px}
.match-detail .md-info>summary{width:36px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;list-style:none}
.match-detail .md-info>summary::-webkit-details-marker{display:none}
.match-detail .md-info .md-icon{border:1px solid var(--hint);border-radius:50%;width:17px;height:17px}
.match-detail .md-info[open]{flex:1 0 100%}
.match-detail .md-info[open]>summary{margin-left:auto}
.match-detail .md-info>div{padding:8px 12px;background:var(--panel-strong);border-radius:12px;color:var(--text)}
.match-detail .md-info p{margin:6px 0}
.match-detail .md-coverage,.match-detail .md-warning{font-size:11px;color:var(--warning);margin:4px 0 12px}
.match-detail .md-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 16px}
.match-detail .md-facts article{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:10px;text-align:center;border:1px solid var(--border);border-radius:12px;background:var(--panel);padding:10px 6px;min-width:0}
.match-detail .md-facts small{color:var(--hint);font-size:10px;min-height:29px}
.match-detail .md-facts strong{font-size:15px;line-height:1.3}
.match-detail .md-facts article:first-child strong{font-size:24px;line-height:1}
.match-detail .md-icon{width:19px;height:19px;flex:0 0 19px}
.match-detail h3{display:flex;align-items:center;gap:7px;font-size:14px;margin:20px 0 10px}
.match-detail h3>small{margin-left:auto;color:var(--hint);font-size:11px;font-weight:400}
.match-detail .md-stat-grid,.match-detail .md-rate-grid{display:grid;gap:8px}
.match-detail .md-stat,.match-detail .md-rate{padding:11px 13px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}
.match-detail h4{font-size:12px;font-weight:500;margin:0 0 9px;line-height:1.4}
.match-detail .md-values{display:flex;justify-content:space-between;gap:10px;font-variant-numeric:tabular-nums}
.match-detail .md-values strong{font-size:22px;line-height:1.2}
.match-detail .comparison-bars{display:block;width:100%;height:10px;margin-top:9px}
.match-detail .bar-track{fill:var(--border)}
.match-detail .bar-home{fill:var(--md-home)}
.match-detail .bar-away{fill:var(--md-away)}
.match-detail .bar-zero{stroke:var(--panel-strong);stroke-width:1}
.match-detail .md-ring-chart{position:relative}
.match-detail .comparison-rings{display:block;width:100%;height:auto;aspect-ratio:240/64}
.match-detail .ring-track{stroke:var(--border);fill:none;stroke-width:5}
.match-detail .ring-home,.match-detail .ring-away{fill:none;stroke-width:5;stroke-linecap:butt}
.match-detail .ring-home{stroke:var(--md-home)}
.match-detail .ring-away{stroke:var(--md-away)}
.match-detail .md-ring-chart .md-values{position:absolute;inset:0;display:grid;grid-template-columns:35% 30% 35%;gap:0;align-items:center;pointer-events:none}
.match-detail .md-ring-chart .md-values strong{text-align:center;font-size:15px}
.match-detail .md-ring-chart .md-values strong:last-child{grid-column:3}
.match-detail .md-fractions{display:grid;grid-template-columns:35% 30% 35%;align-items:center;gap:0;text-align:center;color:var(--hint);font-size:11px;margin-top:4px}
.match-detail .md-fractions small{font-size:9px;line-height:1.3}
.match-detail .md-shot-breakdown{border:1px solid var(--border);border-radius:12px;padding:11px 13px;margin-top:8px}
.match-detail .md-shot-legend{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--hint);margin-bottom:8px}
.match-detail .md-shot-side{display:grid;grid-template-columns:minmax(0,1fr) 35px;align-items:center;gap:9px;margin-top:7px}
.match-detail .md-shot-side svg{width:100%;height:9px}
.match-detail .md-shot-side small{text-align:right;font-variant-numeric:tabular-nums}
.match-detail .md-other-shots{fill:#778391}
.match-detail .md-caption{font-size:11px;color:var(--hint);margin:0 0 8px}
.match-detail .md-player-group{border:1px solid var(--border);border-radius:12px;background:var(--panel);padding:0 12px;margin-top:7px}
.match-detail .md-player-group>summary,.match-detail .md-unavailable>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;min-height:44px;font-weight:600;font-size:12px}
.match-detail .md-player-group>summary span,.match-detail .md-unavailable>summary span{margin-left:auto;color:var(--hint)}
.match-detail .md-player-group>summary::-webkit-details-marker,.match-detail .md-unavailable>summary::-webkit-details-marker{display:none}
.match-detail .md-player-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;padding:4px 0 12px}
.match-detail .md-player-side.home{color:var(--md-home)}
.match-detail .md-player-side.away{color:var(--md-away)}
.match-detail .md-player-side h4{font-size:10px;min-height:28px}
.match-detail .md-player{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-top:1px solid var(--border);font-size:11px}
.match-detail .md-player>span{color:var(--text)}
.match-detail .md-player strong{flex-shrink:0;font-size:13px}
.match-detail .md-no-contributions{color:var(--hint)}
.match-detail .md-unavailable{border:1px solid var(--border);border-radius:12px;padding:2px 12px;margin-top:18px;color:var(--hint)}
.match-detail .md-unavailable p{font-size:11px}
.match-detail .md-unavailable-tags{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0}
.match-detail .md-unavailable-tags span{border:1px solid var(--border);border-radius:8px;padding:5px 7px;font-size:11px}
.match-detail summary:focus-visible,.match-detail button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#home-view [data-comparison-id],#results-view [data-comparison-id]{cursor:pointer}
#home-view [data-comparison-id]:focus-visible,#results-view [data-comparison-id]:focus-visible{outline:2px solid var(--accent)}
@media(min-width:600px){.match-detail .md-stat-grid,.match-detail .md-rate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.match-detail *{animation:none!important;transition:none!important}}
