:root{--ink:#263b48;--muted:#607582;--line:#dce5e5;--accent:#087f78;--pale:#e5f3f0;--bg:#f3f5f5}body{font:14px/1.4 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}button,input,select{border-radius:5px}button:disabled{cursor:default}.nav{width:74px;padding:18px 6px;background:#fff;border-right:1px solid var(--line);align-items:center;color:var(--muted);gap:10px;z-index:10}.brand{font-size:30px;color:var(--accent);margin-bottom:18px}.nav-link{display:flex;flex-direction:column;align-items:center;gap:3px;width:60px;padding:10px 0;margin:0;font-size:12px;color:var(--muted)}.nav-link b{font-size:22px;font-weight:500}.nav-link.active{background:var(--pale);color:var(--accent)}.nav-bottom{width:100%;text-align:center}.nav-bottom button{color:var(--muted);border:0;font-size:12px;padding:6px;margin-top:12px}main{margin-left:74px;padding:14px 18px;max-width:2600px}header{margin:0 0 12px;min-height:28px;justify-content:flex-end}.header-actions{gap:12px}header h1{display:none}.panel{border-radius:8px;margin-bottom:14px}.panel-head{padding:12px 16px}.panel-body{padding:16px}h2{font-size:16px}h2 small{font-size:11px;color:var(--muted);font-weight:400;margin-left:8px}h3{font-size:14px}.personal-tools{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.metrics{gap:12px;margin-bottom:16px}.metric{border-radius:8px;padding:14px 18px}.metric strong{color:var(--accent)}.split{grid-template-columns:minmax(0,1fr) 290px;gap:16px}.split>div,.split>aside{min-width:0}.weekly-leagues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:10px}.league-chip{border-radius:6px;padding:10px;justify-content:space-between;min-width:0}.league-chip label{flex:1;min-width:0}.league-chip small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.league-chip b{overflow-wrap:anywhere;font-size:13px}.league-chip select{max-width:85px}.modal-leagues{display:grid;gap:8px;margin:18px 0}.muted{font-size:12px}.filters{gap:8px}.filters input[type=search]{min-width:120px;width:160px}th,td{padding:10px 12px}.basketball main{height:100vh;display:flex;flex-direction:column;gap:0}.basketball #app{display:flex;flex-direction:column;min-height:0;flex:1}.basket-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:10px}.basket-toolbar .filters{margin:0}.basket-toolbar label{font-size:12px;white-space:nowrap}.basket-layout{grid-template-columns:198px minmax(0,1fr);gap:12px;min-height:0;flex:1;align-items:stretch}.queue{margin:0;display:flex;flex-direction:column;min-height:0}.queue .panel-head{padding:10px 12px}.match-list{max-height:none;overflow:auto;min-height:0;flex:1}.match-card{padding:12px 10px;font-size:13px}.match-card .top{font-size:10px;display:block}.match-card .top span+span{margin-left:8px}.match-card .teams{line-height:1.6;margin-top:7px}.match-card.active{background:var(--pale);box-shadow:none}.match-card .teams>div{display:block}#detail{display:flex;flex-direction:column;gap:10px;min-height:0;min-width:0}.analysis-top{margin:0;flex-shrink:0}.match-analysis-top{display:flex;gap:16px;align-items:center;padding:8px 12px}.matchbar{display:flex;gap:10px;align-items:center;flex:0 1 auto;min-width:0}.match-title{margin-right:8px;min-width:100px;max-width:240px}.match-title h2{font-size:19px;line-height:1.4;overflow-wrap:anywhere}.match-title h2 span{font-size:12px;color:var(--muted);font-weight:400}.match-title small{font-size:10px;color:var(--muted)}.expected{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px}.expected input{width:80px;padding:5px 6px;font-size:17px;font-weight:600;color:var(--accent)}.source{font-size:9px;color:var(--accent);white-space:nowrap;margin-top:3px}.markets{flex:0 1 560px;min-width:320px;border-left:1px solid var(--line);padding-left:14px}.markets th{font-size:10px;background:white;padding:4px 7px;text-align:right}.markets td{font-size:12px;text-align:right;padding:5px 7px}.markets td:first-child,.markets th:first-child{text-align:left}.compact-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding:7px 12px}.compact-actions button{font-size:12px;padding:4px 8px}.compact-actions .muted{font-size:11px}.spacer{margin-left:auto}.news-alert{display:flex;align-items:center;gap:12px;padding:8px 12px;background:#fff8eb;border:1px solid #ecddbc;border-radius:6px;flex-shrink:0;font-size:12px}.news-alert b{color:#986413;white-space:nowrap}.news-alert span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.news-alert button{border:0;background:transparent;font-size:11px;padding:0}.roster-panel{margin:0;display:flex;flex-direction:column;min-height:0;flex:1}.tabs{gap:5px;padding:8px 12px;border-bottom:1px solid var(--line);margin:0;flex-shrink:0;align-items:center}.tabs button{border:0;background:transparent;font-size:13px;padding:5px 10px}.tabs button.active{background:var(--pale);color:var(--accent)}.tabs small{color:var(--muted);font-size:10px}#tab-content{flex:1;min-height:0;overflow:auto}.rosters{display:grid;grid-template-columns:1fr 1fr;height:100%;min-height:0}.roster{display:flex;flex-direction:column;min-width:0;min-height:0}.roster:first-child{border-right:1px solid var(--line)}.team-stats{display:flex;gap:8px;align-items:center;padding:9px 12px;background:#f8fafa;font-size:12px;flex-wrap:wrap}.team-stats b{max-width:45%;overflow-wrap:anywhere}.team-stats strong{color:var(--accent)}.team-stats select{margin-left:auto;font-size:11px;padding:3px}.table-scroll{overflow:auto;min-height:0;flex:1}.roster table{width:100%;font-variant-numeric:tabular-nums}.roster th,.roster td{text-align:right;padding:6px 8px;font-size:12px;white-space:nowrap}.roster th{position:sticky;top:0;background:white;z-index:1;font-size:11px}.roster th:nth-child(2),.roster td:nth-child(2){text-align:left}.roster .player-button{max-width:130px;white-space:normal;font-size:12px}.foreign{font-size:10px;color:var(--accent);background:var(--pale);padding:1px 3px;border-radius:3px;margin-left:3px}.appearance{display:inline-flex;justify-content:center;align-items:center;width:21px;height:21px;border-radius:4px}.played{color:var(--accent);background:var(--pale)}.bench{color:#986413;background:#fff3dc}.absent{color:#8c989f;background:#f1f3f4}.datafoot{font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding:7px 12px;flex-shrink:0}.positive{color:#18805b}.negative{color:#bd4456}.basketball #tab-content>.panel{border:0;border-radius:0;margin-bottom:0}.basketball .news{padding:12px 0}.basketball .two-col{grid-template-columns:1fr 1fr}.login .nav,.login header{display:none}.login main{margin:0;max-width:none;display:flex;justify-content:center;align-items:center;min-height:100vh}.login-panel{width:360px}.login-panel h2{font-size:22px;margin-bottom:22px}.login-panel label{display:block;margin:14px 0}.login-panel input{width:100%;display:block;margin-top:5px}.login-panel button{width:100%;margin-top:8px}#login-error{color:#bd4456}dialog{max-height:90vh;overflow:auto}textarea{width:100%;font:inherit;border:1px solid var(--line);padding:10px;border-radius:6px}#parameters button,#note-form button{margin-top:16px}#message:not(:empty){position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:50;box-shadow:0 4px 20px #1232;max-width:80vw}
@media(min-width:1900px){.basket-layout{grid-template-columns:220px minmax(0,1fr)}main{padding:18px 24px}.roster td{padding:8px 10px;font-size:13px}.markets{flex-basis:610px}.match-title h2{font-size:21px}.weekly-leagues{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1400px){.weekly-leagues{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:minmax(0,1fr) 240px}.match-analysis-top{flex-wrap:wrap;gap:8px}.markets{border-left:0;padding-left:0;flex:1}.match-title{max-width:220px}.roster td,.roster th{padding:5px;font-size:11px}}
@media(max-width:760px){.nav{position:fixed;inset:auto 0 0;width:100%;height:58px;flex-direction:row;justify-content:space-around;padding:3px;border-top:1px solid var(--line)}.brand,.nav-bottom{display:none}.nav-link{width:23%;padding:3px;font-size:10px;gap:0}.nav-link b{font-size:18px}main{margin:0;padding:12px 12px 72px}.basketball main{height:auto;min-height:100vh}.basket-layout{display:block}.queue{max-height:190px;margin-bottom:10px}.basket-toolbar{flex-wrap:wrap}.basket-toolbar .filters{flex-wrap:wrap}.basketball #detail{min-height:600px}.matchbar{flex-wrap:wrap}.markets{min-width:0;overflow:auto}.rosters{height:520px;grid-template-columns:1fr}.roster{min-height:260px}.roster:first-child{border-right:0;border-bottom:1px solid var(--line)}.split{display:block}.weekly-leagues{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.personal-tools{flex-wrap:wrap}.header-actions span{display:inline}.tabs small{display:none}.basketball .two-col{grid-template-columns:1fr}.login main{padding:20px}.panel-head{flex-wrap:wrap}.personal .filters{gap:6px}.table-wrap{max-width:100%}}

/* Compact match summary and paired team season statistics. */
.analysis-top{align-self:stretch;max-width:100%;width:100%}
.match-analysis-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,470px);gap:12px;padding:8px 12px;align-items:center}
.matchbar{display:flex;flex-wrap:nowrap;gap:8px;min-width:0}
.match-title{flex:1 1 auto;min-width:0;max-width:none;margin-right:0}
.match-title h2{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-title small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.matchbar>.muted{white-space:nowrap;font-size:11px}.matchbar>div:not(.match-title){flex:0 0 auto}
.expected input{width:64px;font-size:16px;padding:4px}.source{max-width:90px;overflow:hidden;text-overflow:ellipsis}
.markets{min-width:0;width:100%;padding-left:12px;border-left:1px solid var(--line)}
.markets th,.markets td{padding:3px 5px;white-space:nowrap}.markets #calc-state{display:block;font-size:10px;text-align:right;margin-top:2px}
.team-detail{padding:5px 12px 6px;border-bottom:1px solid var(--line);flex-shrink:0}
.team-meta{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-bottom:6px}
.team-metrics{display:flex;flex-wrap:wrap;gap:5px 14px;font-variant-numeric:tabular-nums}
.team-metrics>div{display:flex;flex-direction:row;align-items:baseline;gap:5px;min-width:0}
.team-metrics span{color:var(--muted);font-size:11px}.team-metrics strong{font-size:12px;font-weight:600}
.team-shooting{display:flex;flex-wrap:nowrap;gap:12px;margin-top:7px;padding:7px 0 3px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums;overflow-x:auto}
.shot-stat{display:flex;flex:0 0 auto;align-items:baseline;gap:6px;font-size:14px;line-height:1.5;white-space:nowrap}
.shot-stat>span{color:var(--muted);font-size:12px}.shot-stat strong{font-weight:600;white-space:nowrap}.shot-stat i{font-style:normal;color:#91a0a6;font-weight:400}.shot-stat b{font-size:12px;font-weight:500;color:var(--accent)}
.team-stat-source{font-size:9px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
@media(min-width:761px) and (max-width:1150px){.match-analysis-top{grid-template-columns:minmax(0,1fr) 330px;gap:8px;padding:7px}.matchbar{gap:5px}.matchbar>.muted{display:none}.expected input{width:52px}.match-title h2{font-size:14px}.markets{padding-left:7px}.markets th{font-size:9px}.markets td{font-size:11px}}
@media(min-width:2100px){.team-shooting{gap:22px}.shot-stat{font-size:15px}.shot-stat>span,.shot-stat b{font-size:13px}}
@media(max-width:760px){.match-analysis-top{display:flex;flex-wrap:wrap}.matchbar{width:100%}.markets{border-left:0;padding-left:0}.rosters{height:auto}.roster{min-height:500px}.table-scroll{max-height:420px}.team-meta{flex-wrap:wrap}}

.league-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.weekly-leagues{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));max-height:390px;overflow:auto;padding-right:4px}.weekly-leagues .league-chip{display:flex;justify-content:flex-start;gap:10px;cursor:pointer;margin:0}.weekly-leagues .league-chip b{font-size:13px}.weekly-leagues .league-chip small{font-size:11px}.league-actions button[data-league-action=dismiss]{color:#a63c3c}.league-actions button:disabled{opacity:.45}.modal-leagues label{display:flex;gap:8px}

.quote-status{display:flex;align-items:center;gap:5px;margin-top:5px}.quote-status small{margin-left:auto;font-size:9px}

header[hidden]{display:none!important}

/* Keep expected scores next to the matchup instead of stretching across the viewport. */
@media(min-width:761px){.match-analysis-top{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:16px}.matchbar{flex:0 1 590px;max-width:590px}.match-title{flex:0 1 auto;max-width:280px}.markets{flex:0 1 470px;max-width:470px;min-width:310px}}

/* Names reveal the existing career record without opening a modal. */
.player-career-trigger{cursor:help;display:inline-block;max-width:160px;white-space:normal;border-bottom:1px dotted #9bb7b5;outline-offset:3px}
.player-career-trigger:hover,.player-career-trigger:focus-visible{color:var(--accent);border-bottom-color:var(--accent)}
.coach-career-trigger{font-size:14px;font-weight:600;color:var(--ink);max-width:none;margin-left:4px}
.player-type{display:inline-block;font-size:10px;line-height:1.5;padding:0 4px;border-radius:3px;margin-left:4px;vertical-align:middle;white-space:nowrap}
.player-type.foreign{color:#08756d;background:#e5f3f0}.player-type.asian{color:#1f6894;background:#eaf3fa}.player-type.naturalized{color:#7151a1;background:#f1ecf8}
.player-career-card{position:fixed;z-index:100;width:340px;max-width:calc(100vw - 16px);max-height:min(520px,calc(100vh - 24px));overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:14px 16px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 30px #183b4826;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.player-career-card[hidden]{display:none!important}.career-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:3px}.career-title strong{font-size:15px}.career-title>span,.career-meta,.career-source{font-size:11px;color:var(--muted)}.career-identity{color:var(--accent);font-size:11px;margin-top:5px}.career-text{white-space:pre-wrap;margin:10px 0;padding:9px 0;border-block:1px solid var(--line);font-variant-numeric:tabular-nums}.career-source{margin-top:7px;display:flex;justify-content:space-between;gap:8px}

/* Current-match evidence stays separate from the previous appearance column. */
.current-appearance{display:inline-block;line-height:21px;border-radius:4px;padding:0 4px}
.current-appearance.pending{color:var(--muted)}
.current-appearance.starter,.current-appearance.played{color:var(--accent);background:var(--pale)}
.current-appearance.listed{color:#476777;background:#eef4f6}
.current-injury{display:inline-block;margin-left:4px;border-radius:3px;background:#fff0e6;padding:0 4px;font-size:10px;line-height:20px}
.current-injury a{color:#a55b24;text-decoration:none}
.match-data-entry{white-space:nowrap;font-size:11px;font-weight:400}.match-data-entry a{font-size:12px;color:var(--accent);text-decoration:none}.match-data-entry a:hover{text-decoration:underline}.data-link-unavailable{color:var(--muted)}
