#view-matchcenter>:not(#match-archive){display:none!important}#match-archive{max-width:1080px;padding:14px;background:#f7f8f2;border:1px solid #9aa994;border-radius:9px;color:#26392f;font-size:13px}#match-archive header,#match-archive footer{display:flex;align-items:center;justify-content:space-between;gap:12px}#match-archive h2{font-size:18px;margin:0}#match-archive h2 small{font-size:12px;font-weight:400}#match-archive .archive-note{font-size:12px;margin:8px 0 12px}.archive-scroll{overflow-x:auto}#match-archive table{border-collapse:collapse;width:100%;font-size:12px}#match-archive th,#match-archive td{border:1px solid #b4bfb1;padding:4px 7px;text-align:left;line-height:1.4}#match-archive thead{background:#354d3e;color:#fff}#match-archive tbody tr:nth-child(even){background:#e9eee4}#match-archive .archive-score{font-weight:700;white-space:nowrap}#match-archive button{font-size:12px;padding:3px 8px;min-height:25px;background:#41694c;color:white;border:1px solid #64826b;border-radius:4px;cursor:pointer}#match-archive button:disabled{opacity:.5;cursor:default}.archive-muted{color:#687468}#match-archive footer{justify-content:center;margin-top:10px}#archive-detail:not(:empty){border-top:2px solid #8b9b80;margin-top:14px;padding-top:12px}.archive-analysis{display:grid;grid-template-columns:minmax(180px,300px) 1fr;align-items:start;gap:16px;margin:12px 0}.archive-analysis p{margin:4px 0}@media(max-width:600px){.archive-analysis{grid-template-columns:1fr}#match-archive{padding:8px}#match-archive td{padding:3px 5px}}
#pitch .pitch-slot{width:52px!important;min-height:48px!important;padding:2px!important}#pitch .player-token{padding:0!important}#pitch .shirt{width:23px!important;height:25px!important;font-size:10px!important;margin:0 auto!important}#pitch .token-name{font-size:9px!important;max-width:48px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}#pitch .token-role{font-size:9px!important}#match-wait{position:fixed;inset:0;background:#152b20aa;z-index:9999;display:grid;place-items:center}#match-wait section{background:#f5f6ed;color:#263e2f;padding:24px;border:1px solid #a5b19c;border-radius:10px;min-width:300px;max-width:90vw;text-align:center}#match-wait button{margin:6px;padding:8px;background:#3b6649;color:white;border:0;border-radius:5px;cursor:pointer}#match-replay{max-width:740px;margin:14px auto}#match-replay svg{width:100%;border:3px solid #d7dfcd;border-radius:6px}#match-replay h3{font-size:15px}#match-replay small{font-size:11px;font-weight:400}.replay-score,.replay-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px}.replay-controls input{flex:1;min-width:60px}
#team-lineup-mode{grid-template-columns:310px minmax(340px,540px)!important;max-width:890px!important;padding:8px!important;gap:10px!important}#team-lineup-mode>.right-column{display:none!important}#team-lineup-mode .center-column{gap:7px!important}#team-lineup-mode .roster-panel{height:540px!important;min-height:0!important}#team-lineup-mode .roster{height:385px!important;max-height:385px!important}#team-lineup-mode .pitch{height:340px!important;min-height:340px!important}#team-lineup-mode .player-token{width:46px!important}#team-lineup-mode .pitch-slot{width:48px!important;min-height:40px!important;background:transparent!important;border-color:transparent!important}#team-lineup-mode .token-name{max-width:46px!important;font-size:9px!important;padding:1px!important}#team-lineup-mode .token-role{font-size:8px!important}#team-lineup-mode .shirt{width:20px!important;height:23px!important}#team-lineup-mode .controls{gap:5px!important;padding:7px!important;flex-wrap:wrap}#team-lineup-mode .controls label{min-width:70px!important}#team-lineup-mode select{padding:5px!important;font-size:12px!important}#team-lineup-mode .button{font-size:12px!important;padding:7px!important}#team-lineup-mode .match-actions{padding:8px!important;gap:8px!important;position:sticky;bottom:5px;z-index:10}#team-lineup-mode .match-actions h2{font-size:13px!important;margin:0!important}#team-lineup-mode .match-actions p{font-size:11px!important}#team-lineup-mode .match-actions .eyebrow{display:none}#team-lineup-mode .deadline-box{padding:0!important;margin:0!important;background:transparent!important;min-width:55px}#team-lineup-mode .deadline-box>span{display:none}#team-lineup-mode .deadline-box strong{font-size:19px!important}#team-lineup-mode .manual-help{font-size:11px!important;padding:7px!important}#team-lineup-mode .saved-schemes{padding:8px!important}#team-lineup-mode .saved-schemes h2{font-size:13px!important}#team-lineup-mode .status{color:#ecf2e8!important;background:#244332;padding:5px 7px!important;font-size:12px!important}#team-lineup-mode .status.error{background:#763b32!important}#match-wait.minimized{inset:auto 16px 16px auto;background:none;display:block}#match-wait.minimized section{padding:10px;box-shadow:0 4px 20px #0004;font-size:12px}#match-wait.minimized h2{font-size:15px}@media(max-width:700px){#team-lineup-mode:not(.hidden){display:flex!important}#team-lineup-mode .pitch{height:330px!important;min-height:330px!important}}
#team-lineup-mode{grid-template-columns:390px minmax(340px,540px)!important;max-width:960px!important}#team-lineup-mode .player-row,#team-lineup-mode .editor-table-head{display:grid!important;grid-template-columns:25px 43px 30px minmax(80px,1fr) 29px 40px!important;gap:0!important;padding:0!important;min-height:25px!important;font-size:11px!important}#team-lineup-mode .player-row>span,#team-lineup-mode .editor-table-head>span{padding:4px 3px!important;border-right:1px solid #b8c6b4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#team-lineup-mode .editor-table-head{position:sticky;top:0;background:#35543f;color:white;z-index:2;font-weight:bold}#team-lineup-mode .player-name{font-size:11px!important}#team-lineup-mode .player-row:nth-child(even){background:#edf2e7}#team-lineup-mode .player-row.already-used{background:#d4e8cd!important}
#advanced-editor{font-size:12px;color:#263f2c;background:#f5f7ef;border:1px solid #b2c1a8;border-radius:5px}#advanced-editor nav{display:flex;gap:1px;border-bottom:1px solid #a6b59e}#advanced-editor button{padding:7px 6px;background:#e0e8d9;color:#29422e;border:1px solid #afbea6;font-size:11px;cursor:pointer;border-radius:3px}#advanced-editor nav button{flex:1}#advanced-editor button.active{background:#3c6547;color:white}#advanced-editor [data-page]{padding:10px;max-height:430px;overflow:auto}#advanced-editor [hidden]{display:none!important}#advanced-editor h3{font-size:14px;margin:0 0 8px}#advanced-editor p{font-size:11px;line-height:1.5;margin:6px 0}#advanced-editor label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:6px 0}#advanced-editor select{max-width:210px;min-width:90px;background:white;color:#29422e}#advanced-editor input[type=range]{width:65%}#advanced-editor .pressing{justify-content:flex-start}#advanced-editor .bench-picker{display:grid;grid-template-columns:1fr 1fr;gap:2px 8px;max-height:125px;overflow:auto;border:1px solid #b9c7b0;padding:5px}#advanced-editor .bench-picker label{justify-content:flex-start;font-size:11px;margin:2px 0}#advanced-editor .bench-picker small{font-size:9px}#advanced-editor table{border-collapse:collapse;width:100%}#advanced-editor td,#advanced-editor th{border:1px solid #b9c7b0;padding:3px 5px;text-align:left}#advanced-editor .sub-rule{display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid #b9c7b0;padding:7px 0}#advanced-editor .sub-rule label{display:grid;gap:3px;font-size:10px;margin:0}#advanced-editor .sub-rule select{min-width:55px;max-width:120px}#advanced-editor .sub-rule input{width:45px;padding:4px}#advanced-editor [data-error]{color:#982c23;padding:0 8px}#team-lineup-mode .pitch-wrap[hidden],#team-lineup-mode .manual-help[hidden]{display:none!important}

/* Team selection: one scroll container and shared column geometry. */
#team-lineup-mode{grid-template-columns:minmax(340px,410px) minmax(400px,620px)!important;max-width:1060px!important;align-items:start!important}
#team-lineup-mode .roster-panel{height:auto!important;min-height:0!important;overflow:hidden;padding:12px!important}
#team-lineup-mode .roster{height:auto!important;max-height:440px!important;padding:0!important;overflow:auto!important;scrollbar-gutter:stable}
#team-lineup-mode .player-row,#team-lineup-mode .editor-table-head{grid-template-columns:28px 53px 32px minmax(120px,1fr) 32px 38px!important;min-height:29px!important;border-left:0!important;box-sizing:border-box}
#team-lineup-mode .player-row>span,#team-lineup-mode .editor-table-head>span{padding:6px 4px!important}
#team-lineup-mode .player-row .player-name{font-size:12px!important}
#team-lineup-mode .position-zone>span{opacity:0}
#team-lineup-mode .position-zone:hover>span{opacity:1}
#team-lineup-mode .pitch{height:370px!important;min-height:370px!important}
#match-archive.match-direct{max-width:1060px;padding:18px;background:#f5f8f6}
#match-archive.match-direct #archive-detail{border:0;margin:0;padding:0}
#match-archive.watching #archive-detail>header,#match-archive.watching #archive-detail>p,#match-archive.watching .archive-analysis,#match-archive.watching #archive-detail>h3,#match-archive.watching #archive-detail>table{display:none}
#match-archive.match-direct #match-replay{max-width:980px;margin:0 auto}
#match-replay .replay-score{background:#173b30;color:#fff;border-radius:10px 10px 0 0;padding:15px 22px;font-size:16px}
#match-replay .replay-score b{font-size:27px;white-space:nowrap}
#match-replay svg{display:block;box-sizing:border-box;border:8px solid #183d2c;border-radius:0 0 10px 10px;box-shadow:0 12px 30px #173b3026}
#match-replay .replay-controls{padding:15px 0}
#match-replay [data-phase]{background:#e0ece5;padding:12px;border-radius:7px;min-height:22px}
#match-wait section{width:min(980px,92vw);max-width:92vw;box-sizing:border-box;padding:20px;text-align:left;background:#f4f8f5}
#match-wait .waiting-pitch{height:min(48vh,440px);position:relative;background:repeating-linear-gradient(90deg,#267c49 0 8%,#2c8650 8% 16%);border:8px solid #183d2c;border-radius:10px;display:grid;place-items:center;color:white}
#match-wait .waiting-pitch:before{content:"";position:absolute;inset:18px;border:2px solid #ffffff8a}
#match-wait .waiting-pitch i{position:absolute;width:90px;height:90px;border:2px solid #ffffff8a;border-radius:50%}
#match-wait .waiting-pitch span{z-index:1;background:#153e30e8;padding:12px 20px;border-radius:8px}
#match-wait.minimized section{width:320px}#match-wait.minimized .waiting-pitch{display:none}
@media(max-width:800px){#team-lineup-mode:not(.hidden){display:flex!important;flex-direction:column!important}#team-lineup-mode .roster-panel{width:100%;box-sizing:border-box}#team-lineup-mode .roster{max-height:350px!important}#match-archive.match-direct{padding:8px}#match-replay .replay-score{font-size:12px;padding:10px}#match-replay .replay-score b{font-size:20px}}

#match-replay[hidden],#match-summary[hidden]{display:none!important}
#match-summary{background:#fff;color:#223b31;padding:14px;border-radius:10px}
.summary-heading{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;text-align:center;gap:20px;padding:10px 20px 22px}
.summary-heading p{margin:5px 0;font-size:12px}.summary-heading small{color:#6b7f74}.summary-result{display:block;font-size:34px;line-height:1.3}
.summary-club{display:grid;justify-items:center;gap:10px;font-size:15px}
.summary-crest{width:78px;height:92px;display:grid;place-items:center;background:linear-gradient(140deg,#277aab,#173e6c);color:#fff;font-size:25px;font-weight:800;clip-path:polygon(0 0,100% 0,94% 70%,50% 100%,6% 70%);border-top:5px solid #9dcadf;letter-spacing:1px}
.summary-crest.away{background:linear-gradient(140deg,#c34e45,#7f2824);border-color:#ebb4ae}
.summary-events{border-top:1px solid #d4dfd7;border-bottom:1px solid #d4dfd7;padding:8px 0;margin-bottom:14px}
.summary-events p{display:flex;gap:10px;margin:0;padding:5px 10px;font-size:12px}.summary-events p:nth-child(even){background:#f0f5f2}
.summary-events b{min-width:25px}.summary-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.8fr) minmax(0,1fr);gap:12px;align-items:start}
#match-summary h3{font-size:13px;margin:0 0 8px}#match-summary table{font-size:11px}#match-summary td,#match-summary th{padding:4px;border-color:#d1ded5}
#match-summary .summary-stats td{text-align:center}#match-summary .summary-stats th{text-align:center;font-weight:500}
.summary-expiry{font-size:11px;color:#75847b;margin:15px 0 0}
#match-replay{background:#122b24;border-radius:14px;padding:14px;color:white;box-sizing:border-box}
#match-replay h3{margin:0 0 10px;color:#e4eee8}
#match-replay svg{border:12px solid #647b68;outline:2px solid #263e32;box-shadow:0 8px 25px #0005}
#match-replay [data-phase]{background:#203e32;color:#e8f1ec}
#match-replay .replay-controls input{accent-color:#8ad5a0}
@media(max-width:850px){.summary-columns{grid-template-columns:1fr 1fr}.summary-stats{grid-column:1/-1;grid-row:1}.summary-heading{padding:8px;gap:8px}.summary-crest{width:55px;height:68px}.summary-club{font-size:12px}}
@media(max-width:520px){.summary-columns{grid-template-columns:1fr}.summary-stats{grid-column:auto}.summary-heading{grid-template-columns:1fr 1.2fr 1fr}#match-summary{padding:8px}}
#match-archive{margin-left:auto!important;margin-right:auto!important}
#match-archive.match-direct{width:min(1060px,100%);box-sizing:border-box}
#match-replay svg{border-top:20px solid #57665b;border-bottom:18px solid #7a5348;background:#2c7548}
#match-replay .replay-score{padding:9px 16px;font-size:14px}
#match-replay .replay-score b{font-size:23px}
#match-replay .replay-controls{padding:8px 0}
#match-replay [data-phase]{padding:8px;margin-bottom:0}

#match-replay{padding:12px;background:#102c27;border:1px solid #557065;box-shadow:0 18px 50px #08251e40}
.cinema-top{display:flex;justify-content:space-between;color:#a8bfb4;font-size:10px;letter-spacing:.08em;padding:2px 3px 10px}
.cinema-label{color:#d8c38a;font-weight:700}
.cinema-stage{position:relative;border-radius:0 0 8px 8px;overflow:hidden;background:#153728}
#match-replay .cinema-stage svg{width:100%;display:block;border:0;outline:0;box-shadow:none;border-radius:0;aspect-ratio:900/460}
#match-replay .replay-score{border-radius:7px 7px 0 0;background:#eaf0eb;color:#15382b;padding:12px 18px}
.cinema-clock{position:absolute;top:12px;left:14px;display:flex;align-items:center;gap:10px;color:#fff;background:#0c251de8;border:1px solid #a6bb8f55;border-radius:5px;padding:7px 10px;font-size:11px}
.cinema-clock b{font-variant-numeric:tabular-nums;font-size:16px;color:#f3db9e}
.cinema-banner{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);padding:12px 30px;background:#102c25ed;border-top:2px solid #d8c38a;border-bottom:2px solid #d8c38a;color:#fff;font-size:22px;letter-spacing:3px;white-space:nowrap}
.cinema-banner[hidden]{display:none}
#match-replay [data-speed]{width:60px;min-width:60px;padding:4px;font-size:12px;background:#eaf0eb;color:#173e30;border-radius:4px}
#match-replay .replay-controls{position:sticky;bottom:0;z-index:2;background:#102c27;padding:10px 0}
#match-replay [data-end]{background:#dbc790;color:#203a2e;font-weight:700;white-space:nowrap}
@media(max-width:600px){#match-replay{padding:6px}.cinema-top{font-size:8px}.cinema-clock{top:5px;left:5px;padding:4px 6px}.cinema-clock span{display:none}.cinema-banner{font-size:15px;padding:8px 15px}#match-replay .replay-score{font-size:11px;padding:8px}#match-replay .replay-controls{gap:5px}#match-replay button{padding:5px;font-size:11px}}

.summary-avatar{width:96px;height:96px;object-fit:contain;border-radius:14px;background:#edf1ec;box-shadow:0 3px 12px #183b2520}.replay-score>span{display:flex;align-items:center;gap:9px}.score-avatar{width:34px;height:34px;object-fit:contain;border-radius:7px;background:#fff}#match-replay [data-speed]{width:66px}@media(max-width:600px){.summary-avatar{width:64px;height:64px}.score-avatar{width:24px;height:24px}}
