/* Scoped match modal; existing feed and other dialogs remain independent. */
#matchDialog{width:min(1160px,calc(100vw - 40px));max-width:none;max-height:92dvh;padding:0;border:1px solid #405c70;border-radius:16px;background:#101c27;overflow:auto;box-shadow:0 26px 100px #0008}#matchDialog::backdrop{background:#020911c9;backdrop-filter:blur(5px)}#matchDialog>.dialog-top{position:sticky;top:0;z-index:5;padding:12px 24px;margin:0;background:#101c27f5;border-bottom:1px solid #304252;backdrop-filter:blur(10px)}#matchDialog>.dialog-top .eyebrow{font-size:11px;letter-spacing:2px}#matchDialog>.dialog-top .close{width:32px;height:32px;padding:0;font-size:25px;line-height:1}#detailContent{padding:18px 24px 0}#matchDialog .pd-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;min-height:142px;background:#142431 center/cover;border:1px solid #324959;border-radius:11px 11px 0 0}.pd-identity{display:flex;align-items:center;gap:18px;min-width:0}.pd-identity .portrait-detail{width:72px;height:82px;flex-shrink:0}.pd-heading{min-width:0}.pd-heading .card-name-line{font-size:19px;gap:8px;white-space:normal}.pd-heading .card-team-name,.pd-heading .card-player{font-size:19px;font-weight:700;color:var(--text)}#matchDialog #detailTitle{font-size:28px;margin:3px 0;line-height:1.3}.pd-meta{font-size:11px;color:#a1b5c6;margin:5px 0 0}.pd-score{text-align:center;flex-shrink:0;min-width:136px}.pd-score>small{font-size:12px;color:#9cafbd;display:block}.pd-score>small.loss{color:#f88092}.pd-score>small.win{color:var(--green)}.pd-score>strong{display:flex;gap:10px;justify-content:center;font-size:38px;line-height:1.3}.pd-score i{font-style:normal;font-weight:400;color:#8da1b6}.pd-own{color:#68ddb6}.pd-metrics{display:grid;grid-template-columns:1.4fr repeat(6,1fr);padding:17px 8px;background:#182a38;border:1px solid #324959;border-top:0;border-radius:0 0 11px 11px}.pd-metrics .metric{display:block;text-align:center;border-right:1px solid #304553}.pd-metrics .metric:last-child{border:0}.pd-metrics .metric small,.pd-round-metrics .metric small{display:block;font-size:11px;color:#96adc0;letter-spacing:.2px}.pd-metrics .metric strong{display:block;font-size:24px;line-height:1.5;white-space:nowrap}.pd-metrics .metric:nth-child(n+2):nth-child(-n+4) strong{color:#71ddb0}.pd-highlights{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.pd-highlights .signal-pill{font-size:11px;min-height:23px;display:flex;align-items:center;gap:6px;padding:2px 7px;background:#ffffff04;border:1px solid #655b38}.pd-highlights .signal-count{font-size:11px}.pd-performance,.pd-round-detail{border:1px solid #304453;border-radius:10px;background:#142431;padding:16px 18px;margin-top:12px}.pd-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.pd-section-head h3{font-size:16px;margin:0}.pd-section-head small{font-size:11px;color:#94aabc}.pd-mode,.pd-players{display:flex;gap:4px;background:#0d1b26;padding:3px;border-radius:6px}.pd-mode button,.pd-players button{border:0;background:none;color:#9db2c3;padding:4px 10px;font-size:11px;border-radius:4px}.pd-mode button[aria-pressed=true],.pd-players button[aria-pressed=true]{background:#344d61;color:#eaf3fc}.pd-players{margin-top:10px;flex-wrap:wrap}.pd-performance-scroll{overflow-x:auto;scrollbar-width:thin;padding:3px}.pd-bars{display:grid;grid-template-columns:repeat(var(--round-count),minmax(27px,1fr));gap:4px;min-width:calc(var(--round-count)*31px - 4px)}.pd-round{height:172px;background:#253341;border:1px solid transparent;border-radius:3px;padding:5px 4px;display:flex;align-items:center;flex-direction:column;min-width:0;max-width:54px;color:inherit}.pd-round:hover{background:#344a5a}.pd-round[aria-pressed=true]{outline:2px solid #efca6d;outline-offset:1px;background:#3d382a}.pd-round-number{font-size:10px;color:#a3b2c2}.pd-kill-stack{flex:1;display:flex;flex-direction:column;justify-content:flex-end;gap:3px;padding:7px 0}.pd-kill-stack svg{width:15px;height:15px;color:#e8eff6}.pd-round.ace .pd-kill-stack svg{color:#efca6d}.pd-result-line{height:2px;background:#68d9b1;width:100%;margin-bottom:5px}.pd-round.lost .pd-result-line{background:#ee7589}.pd-death{height:17px;color:#ff607a}.pd-death svg{width:15px;height:15px}.pd-round.phase-start{border-left:2px solid #6d8295}.pd-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:12px;font-size:10px;color:#9db2c3}.pd-reset{margin-left:auto;padding:3px 7px;font-size:10px;color:#bdd4e6;background:none;border:1px solid #3b5062;border-radius:4px}.pd-round-heading{display:flex;align-items:center;gap:8px}.pd-result,.pd-ace{font-size:10px;padding:2px 5px;border-radius:3px}.pd-result.win{color:#71ddb0;background:#22483f}.pd-result.loss{color:#f6879a;background:#422d39}.pd-ace{color:#17212b;background:#efca6d;font-weight:800}.pd-round-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-bottom:12px;border-bottom:1px solid #304453}.pd-round-metrics .metric{display:block}.pd-round-metrics .metric strong{font-size:19px;white-space:nowrap}.pd-event{display:grid;grid-template-columns:52px 52px 1fr auto;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #ffffff08;font-size:12px}.pd-event:last-child{border:0}.pd-event time,.pd-weapon{color:#91aabc;font-size:11px}.pd-kind{color:#71ddb0}.pd-event.death .pd-kind{color:#f58299}.pd-event.assist .pd-kind{color:#b2cfff}.pd-target{display:flex;align-items:center;gap:9px}.pd-target .agent-portrait{width:25px;height:25px;flex-shrink:0;border-radius:4px}.pd-halves{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.pd-halves>div{border-left:3px solid #446b7a;padding-left:13px}.pd-halves small{font-size:11px;color:#99aebf;display:block}.pd-halves strong{font-size:23px;display:block;line-height:1.5}.pd-empty,.pd-known{font-size:12px;color:#9fb4c5;line-height:1.7;margin:12px 0}.pd-known{color:#e5ce8e}.pd-notes{font-size:11px;color:#91a7ba;margin:14px 0}.pd-notes summary{cursor:pointer}.pd-notes p{margin:7px 0}.pd-footer{position:sticky;bottom:0;background:#101c27f7;border-top:1px solid #304453;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;z-index:3}.pd-actions{display:flex;gap:8px;flex-wrap:wrap}.pd-action,.pd-actions button,.pd-related{display:inline-flex;align-items:center;justify-content:center;border:1px solid #405b6e;border-radius:6px;background:#213747;color:#dcebf6;font-size:12px;font-weight:550;padding:8px 12px}.pd-action:hover,.pd-related:hover{background:#2e4c61}.pd-related{background:transparent;font-size:11px}.pd-actions button:disabled{opacity:.5}.pd-mode button:focus-visible,.pd-round:focus-visible,.pd-action:focus-visible{outline:2px solid #b4d9ff;outline-offset:2px}
@media(max-width:650px){#matchDialog{width:calc(100vw - 16px);max-height:96dvh;border-radius:12px}#matchDialog>.dialog-top{padding:9px 13px}#detailContent{padding:10px 12px 0}#matchDialog .pd-hero{padding:14px 10px;gap:8px;min-height:124px}.pd-identity{gap:9px}.pd-identity .portrait-detail{width:46px;height:56px}.pd-heading .card-name-line{gap:4px}.pd-heading .card-team-name,.pd-heading .card-player{font-size:14px}.pd-heading .team-logo{width:20px;height:20px}#matchDialog #detailTitle{font-size:23px}.pd-meta{font-size:9px}.pd-score{min-width:76px}.pd-score>strong{font-size:25px;gap:4px}.pd-score>small{font-size:10px}.pd-metrics{grid-template-columns:repeat(3,1fr);gap:10px 0;padding:12px 3px}.pd-metrics .metric:nth-child(3){border:0}.pd-metrics .metric strong{font-size:19px}.pd-metrics .metric:first-child strong{font-size:17px}.pd-metrics .metric small{font-size:10px}.pd-performance,.pd-round-detail{padding:12px 10px}.pd-section-head{flex-wrap:wrap;gap:8px}.pd-section-head h3{font-size:15px}.pd-mode button{padding:4px 7px}.pd-round{height:162px}.pd-round-metrics{gap:8px}.pd-round-metrics .metric strong{font-size:15px}.pd-round-metrics .metric small{font-size:9px}.pd-event{grid-template-columns:38px 32px 1fr auto;gap:5px;font-size:11px}.pd-event time,.pd-weapon{font-size:10px}.pd-target{gap:5px}.pd-target .agent-portrait{width:22px;height:22px}.pd-halves{gap:10px}.pd-halves>div{padding-left:8px}.pd-halves strong{font-size:17px}.pd-footer{position:static;align-items:stretch;flex-direction:column}.pd-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.pd-action{font-size:11px;padding:8px}.pd-action:last-child{grid-column:1/-1}.pd-related{align-self:flex-end;padding:5px 8px}.pd-reset{margin-left:0}}
.pd-metrics .metric,.pd-round-metrics .metric{grid-area:auto;grid-row:auto;grid-column:auto;min-width:0}

@media(max-width:650px){.pd-actions.pd-multi-stream:has(.pd-only-player)>.pd-action:last-of-type{grid-column:auto}}

@media(max-width:650px){.pd-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.pd-metrics .metric:first-child{grid-column:1/-1;border-right:0;padding-bottom:8px;border-bottom:1px solid #304553}.pd-metrics .metric:nth-child(3){border-right:1px solid #304553}.pd-metrics .metric:nth-child(4),.pd-metrics .metric:nth-child(7){border-right:0}}
