/* Match-only player modal; Ranking and referee controls retain their styles. */
html:root body #playerModal:has(.k96-profile) .modal-card.profile{width:min(640px,calc(100vw - 20px))!important;max-width:640px!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;padding:0!important;border:1px solid #c3deee!important;border-radius:20px!important;background:#fff!important;box-shadow:0 20px 70px #071d4666!important}
html:root body #playerModal:has(.k96-profile) .modal-card>.modal-close{display:none!important}
html:root body #playerModal:has(.k96-profile) #playerBody{padding:0!important;margin:0!important;background:#fff!important}
html:root body #playerModal .k96-profile,html:root body #playerModal .k96-profile *{box-sizing:border-box;color:#112e4e!important;opacity:1;text-shadow:none}
html:root body #playerModal .k96-profile{padding:0;background:#fff;font-family:Arial,sans-serif;line-height:1.3}
html:root body #playerModal .k96-top{display:flex;justify-content:space-between;align-items:center;padding:12px 18px;border-bottom:1px solid #d9eaf4;background:#fff;position:sticky;top:0;z-index:2}
html:root body #playerModal .k96-top>b{font-size:24px;font-weight:900}html:root body #playerModal .k96-top em{color:#ff7900!important;font-style:normal}
html:root body #playerModal .k96-top button{display:grid;place-items:center;background:#eef6fc!important;color:#183d5d!important;border:0!important;border-radius:10px;width:42px;height:42px;min-height:42px;padding:0!important;font-size:30px;cursor:pointer}
html:root body #playerModal .k96-identity{display:flex;align-items:center;gap:18px;padding:18px}
html:root body #playerModal .k96-photo{width:100px;height:100px;flex:0 0 100px;border-radius:50%;object-fit:cover;border:3px solid #ff9700;outline:2px solid #2077ac;outline-offset:2px}
html:root body #playerModal .k96-identity>div{min-width:0}html:root body #playerModal .k96-identity h2{font-size:23px;line-height:1.15;margin:0 0 7px;font-weight:900;overflow-wrap:anywhere;color:#10355b!important}
html:root body #playerModal .k96-identity p{font-size:21px;color:#eb7600!important;font-weight:800;margin:0 0 6px}html:root body #playerModal .k96-identity small{font-size:12px;color:#526b80!important;display:block}
html:root body #playerModal .k96-match{margin:0 16px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:center;border:1px solid #c3dfef;border-radius:13px;padding:12px;background:#f0f8ff;text-align:center}
html:root body #playerModal .k96-match>span{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;font-size:13px;overflow-wrap:anywhere}html:root body #playerModal .k96-match img{width:34px;height:34px;object-fit:contain}html:root body #playerModal .k96-match strong{font-size:25px;display:block;color:#153a5c!important}html:root body #playerModal .k96-match small{display:block;font-size:10px;color:#566f84!important}
html:root body #playerModal .k96-content{padding:18px 16px 20px}html:root body #playerModal .k96-content h3{margin:0;text-align:center;font-size:21px;color:#10355b!important}html:root body #playerModal .k96-content>p{margin:4px 0 16px;text-align:center;font-size:12px;color:#577188!important}
html:root body #playerModal .k96-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}html:root body #playerModal .k96-discipline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html:root body #playerModal .k96-tile{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #c5dfef;border-radius:13px;background:linear-gradient(135deg,#fff,#f1f8fd);min-width:0;min-height:90px;margin:0}
html:root body #playerModal .k96-tile>img,html:root body #playerModal .k96-tile>svg{width:64px;height:64px;object-fit:contain;flex:0 0 64px;filter:none}
html:root body #playerModal .k96-tile>div{min-width:0}html:root body #playerModal .k96-tile small{display:block;font-size:13px;font-weight:700;color:#516c83!important;line-height:1.2}html:root body #playerModal .k96-tile b{display:block;font-size:32px;line-height:1.1;font-weight:900;color:#102c47!important;margin-top:4px}
html:root body #playerModal .k96-content h4{font-size:13px;margin:16px 0 8px;color:#294962!important}
html:root body #playerModal .k96-discipline .k96-tile{gap:6px;padding:8px;min-height:75px}html:root body #playerModal .k96-discipline .k96-tile>img{width:32px;height:42px;flex-basis:32px}html:root body #playerModal .k96-discipline .k96-tile small{font-size:11px}html:root body #playerModal .k96-discipline .k96-tile b{font-size:27px}
@media(max-width:440px){html:root body #playerModal .k96-identity{gap:12px;padding:16px}html:root body #playerModal .k96-photo{width:78px;height:78px;flex-basis:78px}html:root body #playerModal .k96-identity h2{font-size:18px}html:root body #playerModal .k96-identity p{font-size:18px}html:root body #playerModal .k96-tile{padding:8px;gap:6px;min-height:82px}html:root body #playerModal .k96-tile>img,html:root body #playerModal .k96-tile>svg{width:48px;height:54px;flex-basis:48px}html:root body #playerModal .k96-tile small{font-size:12px}html:root body #playerModal .k96-match img{width:23px;height:28px}html:root body #playerModal .k96-match>span{font-size:11px;gap:4px}html:root body #playerModal .k96-content{padding:14px 12px 18px}html:root body #playerModal .k96-discipline .k96-tile{flex-direction:column;text-align:center;gap:3px}html:root body #playerModal .k96-discipline .k96-tile>img{flex-basis:auto;height:32px}}

/* Approved visual refinements: larger Ranking artwork and orange scoreboard. */
html:root body #playerModal .k96-match>div>strong{background:linear-gradient(135deg,#ffa400,#ff7900)!important;color:#fff!important;border-radius:10px;padding:5px 16px;font-size:30px;line-height:1.2;min-width:92px}
html:root body #playerModal .k96-match>div>small{margin-top:5px;color:#4c657d!important;font-weight:700}
html:root body #playerModal .k97-live-dot{display:inline-block;width:7px;height:7px;margin-right:4px;border-radius:50%;background:#ed3347;vertical-align:middle}
html:root body #playerModal .k96-content h3{font-size:22px;font-weight:900;letter-spacing:-.3px}
html:root body #playerModal .k96-grid .k96-tile{gap:10px;padding:10px;min-height:112px}
html:root body #playerModal .k96-grid .k96-tile>img{width:86px;height:86px;flex-basis:86px;object-fit:contain}
html:root body #playerModal .k96-discipline .k96-tile>img{width:48px;height:52px;flex-basis:48px}
@media(max-width:440px){html:root body #playerModal .k96-content h3{font-size:19px}html:root body #playerModal .k96-grid .k96-tile{padding:8px 5px;gap:5px;min-height:100px}html:root body #playerModal .k96-grid .k96-tile>img{width:69px;height:76px;flex-basis:69px}html:root body #playerModal .k96-grid .k96-tile small{font-size:11px;overflow-wrap:normal}html:root body #playerModal .k96-discipline .k96-tile>img{width:44px;height:46px;flex-basis:auto}html:root body #playerModal .k96-match>div>strong{font-size:27px;padding:5px 9px;min-width:78px}}
@media(max-width:350px){html:root body #playerModal .k96-grid .k96-tile{flex-direction:column;text-align:center}html:root body #playerModal .k96-grid .k96-tile>img{flex-basis:auto;width:76px;height:76px}}
