*{box-sizing:border-box}.m4-wrap{max-width:1420px;margin:35px auto;padding:0 22px;color:#e8edf2;font-family:Arial,sans-serif}.m4-head,.m4-toolbar,.m4-connect{display:flex;justify-content:space-between;align-items:center;gap:18px}.m4-head{margin-bottom:22px}.m4-head small,.m4-toolbar span{color:#ff7a18;font-weight:800;letter-spacing:1.5px}.m4-head h1{margin:5px 0;font-size:34px}.m4-grid{display:grid;grid-template-columns:1fr 340px 1fr;gap:14px;margin-top:14px}.m4-team,.m4-center,.m4-card,.m4-toolbar,.m4-connect,.m4-empty{background:#171c21;border:1px solid #303942;border-radius:8px;padding:16px}.m4-team h2,.m4-card h3{margin:0 0 14px}.m4-player,.m4-slot{min-height:62px;background:#20262d;border:1px solid #313a43;margin:7px 0;padding:10px;display:flex;align-items:center;gap:10px}.m4-player>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#343e48;font-weight:900}.m4-player div{flex:1}.m4-player small{display:block;color:#8e9aa6;margin-top:4px}.m4-player button{width:auto}.m4-slot{color:#77828d}.m4-card label{display:block;margin:10px 0;color:#aeb8c1}.m4-card select,.m4-card input,.m4-team button,.m4-actions button,.m4-primary,.m4-btn,.m4-start,.m4-connect button{width:100%;padding:11px;border:1px solid #3b4650;background:#252d35;color:#fff;border-radius:5px;text-decoration:none}.m4-card select{margin-top:5px}.m4-check{display:flex!important;gap:8px;align-items:center}.m4-check input{width:auto}.m4-primary,.m4-start{background:#ef7417!important;border-color:#ff8b35!important;font-weight:900}.m4-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.m4-start{margin-top:12px}.m4-status{display:flex;align-items:center;gap:8px}.m4-status i{width:9px;height:9px;background:#42d66c;border-radius:50%}.m4-connect{margin-top:14px}.m4-connect>*{width:auto!important;min-width:150px;text-align:center}.disabled{opacity:.4;pointer-events:none}.m4-empty{text-align:center;padding:60px}.m4-empty .m4-primary{max-width:320px}@media(max-width:900px){.m4-grid{grid-template-columns:1fr}.m4-center{order:-1}.m4-connect{flex-wrap:wrap}}.m4-connect-info{flex:1;min-width:320px}.m4-connect-info strong{display:block;color:#ff7a18;font-size:12px;letter-spacing:1px;margin-bottom:6px}.m4-connect-info code{display:block;background:#0f1317;border:1px solid #303942;border-radius:5px;padding:10px;color:#f2f5f7;white-space:nowrap;overflow:auto}.m4-connect-info small{display:block;color:#42d66c;font-weight:800;margin-top:6px;min-height:15px}
.m4-config-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.m4-config-head h3{margin:0}
.m4-config-dropdown{margin-top:14px;padding-top:12px;border-top:1px solid #303942;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.m4-config-dropdown[hidden]{display:none}.m4-config-dropdown label{display:flex;flex-direction:column;gap:6px}.m4-config-dropdown .m4-check{flex-direction:row;align-items:center}.m4-config-dropdown input,.m4-config-dropdown select{width:100%;box-sizing:border-box}.m4-config-dropdown small{color:#89949d}@media(max-width:760px){.m4-config-dropdown{grid-template-columns:1fr}}

/* v4.2.1 Match Config UI */
.m4-config-launch{display:flex!important;align-items:center;justify-content:space-between;gap:18px}.m4-config-launch h3{margin:0 0 5px}.m4-config-launch small{color:#8f9aa3}.m4-config-launch .m4-primary{width:auto!important;min-width:160px;padding:12px 18px!important}
.m4-config-modal{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:28px}.m4-config-modal[hidden]{display:none!important}
.m4-config-dialog{width:min(820px,94vw);background:#171d22;border:1px solid #3b454e;border-top:3px solid #f47a13;border-radius:8px;box-shadow:0 24px 70px rgba(0,0,0,.65);padding:24px}
.m4-config-title{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #303941;padding-bottom:15px;margin-bottom:20px}.m4-config-title span{font-size:11px;letter-spacing:1.4px;color:#f47a13;font-weight:800}.m4-config-title h2{margin:3px 0 0;font-size:24px;color:#fff}.m4-config-close{border:0;background:transparent;color:#aab3ba;font-size:32px;line-height:1;cursor:pointer}
.m4-config-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}.m4-config-grid label{display:flex!important;flex-direction:column!important;gap:7px!important;color:#dce1e5!important;font-size:12px!important;font-weight:700!important}.m4-config-grid select,.m4-config-grid input[type=text]{width:100%!important;height:44px!important;box-sizing:border-box!important;background:#20272d!important;color:#fff!important;border:1px solid #3d4851!important;border-radius:5px!important;padding:0 12px!important;opacity:1!important;pointer-events:auto!important}.m4-config-grid select:disabled,.m4-config-grid input:disabled{opacity:.45!important;cursor:not-allowed!important}
.m4-switchrow{height:44px;flex-direction:row!important;align-items:center!important;background:#20272d;border:1px solid #3d4851;border-radius:5px;padding:0 14px}.m4-switchrow input{width:18px!important;height:18px!important;pointer-events:auto!important}.m4-workshop-field{grid-column:1/-1}.m4-workshop-field small{color:#89949d;font-weight:400}
.m4-config-footer{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #303941;margin-top:22px;padding-top:18px}.m4-config-footer button{width:auto!important;min-width:180px!important;height:44px!important;padding:0 18px!important}body.m4-modal-open{overflow:hidden}
@media(max-width:700px){.m4-config-grid{grid-template-columns:1fr!important}.m4-workshop-field{grid-column:auto}.m4-config-footer{flex-direction:column}.m4-config-footer button{width:100%!important}}

/* v4.2.5 native CMS integration */
.page-match-system .m4-wrap{max-width:1180px;width:calc(100% - 36px);margin:28px auto 36px;padding:0;color:#e8edf2}
.page-match-system .m4-grid{grid-template-columns:minmax(0,1fr) 340px minmax(0,1fr)}
.page-match-system .m4-team,.page-match-system .m4-center,.page-match-system .m4-card,.page-match-system .m4-toolbar,.page-match-system .m4-connect,.page-match-system .m4-empty{box-shadow:0 12px 30px rgba(0,0,0,.22)}
@media(max-width:1050px){.page-match-system .m4-wrap{width:calc(100% - 24px)}.page-match-system .m4-grid{grid-template-columns:1fr}.page-match-system .m4-center{order:-1}}


/* v4.2.6 - MatchSystem width aligned exactly with CMS container / hero / footer */
.page-match-system .m4-wrap{
    width:min(1180px, calc(100vw - 32px)) !important;
    max-width:none !important;
    margin:24px auto 36px !important;
    padding:0 !important;
}
@media(max-width:760px){
    .page-match-system .m4-wrap{
        width:calc(100vw - 24px) !important;
    }
}


/* v4.2.7 - MatchSystem aligned to CMS hero/footer width */
.page-match-system .m4-wrap{
    width:min(1374px, calc(100% - 32px)) !important;
    max-width:1374px !important;
    margin-left:auto !important;
    margin-right:auto !important;
}

/* v4.3.0 PopFlash-inspired AZB lobby layout */
.page-match-system .m4-grid{grid-template-columns:minmax(0,1fr) 360px minmax(0,1fr)!important;align-items:stretch}
.m4-team-head,.m4-lower-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #303942;padding-bottom:10px;margin-bottom:10px}.m4-team-head h2,.m4-lower-head h3{margin:0}.m4-team-head button,.m4-lower-head button{width:auto!important;padding:8px 12px!important}
.m4-config-inline{border:1px solid #303942;border-radius:6px;background:#171c21;overflow:hidden}.m4-config-bar{width:100%;display:grid;grid-template-columns:1fr auto 18px;align-items:center;gap:10px;padding:12px 14px;border:0;background:#252d35;color:#fff;text-align:left;cursor:pointer}.m4-config-bar span{font-weight:900}.m4-config-bar b{font-size:10px;color:#98a3ad;font-weight:700}.m4-config-bar i{font-style:normal;transition:transform .18s}.m4-config-inline.open .m4-config-bar i{transform:rotate(180deg)}
.m4-config-drop{padding:14px;border-top:1px solid #303942;background:#1b2127}.m4-config-drop[hidden]{display:none!important}.m4-config-drop .m4-config-grid{grid-template-columns:1fr!important;gap:10px!important}.m4-config-drop .m4-config-grid label{margin:0!important}.m4-config-drop .m4-switchrow{height:40px}.m4-config-save{margin-top:12px!important}
.m4-actions-three{grid-template-columns:repeat(3,1fr)!important}.m4-pick-placeholder{opacity:.55;cursor:not-allowed}
.m4-lower{display:grid;grid-template-columns:1fr 1fr;margin-top:14px;background:#171c21;border:1px solid #303942;border-radius:8px;overflow:hidden;min-height:300px}.m4-waiting,.m4-chat{padding:14px}.m4-waiting{border-right:1px solid #303942}.m4-lower-head small{color:#89949d}.m4-chat{display:flex;flex-direction:column;min-width:0}.m4-chat-log{height:230px;overflow:auto;padding-right:4px}.m4-chat-row{padding:8px 4px;border-bottom:1px solid #293139}.m4-chat-row>div{display:flex;justify-content:space-between;gap:10px}.m4-chat-row strong{font-size:12px;color:#ff7a18}.m4-chat-row time{font-size:10px;color:#74808a}.m4-chat-row p{margin:4px 0 0;font-size:13px;color:#d9dfe4;overflow-wrap:anywhere}.m4-chat-empty{color:#77828d;padding:20px 4px}.m4-chat-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:auto;padding-top:10px}.m4-chat-form input{min-width:0;background:#0f1317;color:#fff;border:1px solid #3b4650;border-radius:5px;padding:11px}.m4-chat-form button{width:auto!important;background:#252d35;color:#fff;border:1px solid #3b4650;border-radius:5px;padding:0 16px}
@media(max-width:1050px){.page-match-system .m4-grid{grid-template-columns:1fr!important}.m4-lower{grid-template-columns:1fr}.m4-waiting{border-right:0;border-bottom:1px solid #303942}.m4-actions-three{grid-template-columns:1fr!important}}


/* v4.3.1 compact config toggles + conditional map inputs */
.m4-config-drop .m4-toggle-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.m4-config-drop .m4-switchrow{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;height:40px!important;padding:0 12px!important;margin:0!important}
.m4-config-drop .m4-switchrow span{line-height:1!important}
.m4-config-drop .m4-switchrow input[type=checkbox]{margin:0!important;flex:0 0 auto!important}
.m4-config-drop [data-standard-map][hidden],.m4-config-drop [data-workshop-wrap][hidden]{display:none!important}
@media(max-width:520px){.m4-config-drop .m4-toggle-pair{grid-template-columns:1fr}}

/* v4.3.2 - Captain Pick */
.m4-pick-state{margin:8px 0 2px;padding:9px 11px;border:1px solid #744017;background:#241b14;border-radius:5px;display:flex;justify-content:space-between;gap:10px;align-items:center}
.m4-pick-state[hidden]{display:none!important}.m4-pick-state strong{color:#ff7a18;font-size:11px;letter-spacing:.8px}.m4-pick-state span{font-size:11px;color:#d7dde2}
.m4-player .m4-pick-player{width:auto!important;min-width:74px;background:#ef7417;border-color:#ff8b35;font-size:11px;font-weight:800;padding:8px 10px}

/* v4.4.0 - MatchSystem Zentrale */
.m4-hub{background:#11171b;border:1px solid #2c353b;border-radius:7px;overflow:hidden}
.m4-hub-head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 26px;border-bottom:1px solid #293138;background:linear-gradient(180deg,#161d22,#11171b)}
.m4-hub-head>div:first-child>span{font-size:10px;letter-spacing:1.8px;color:#ff7a18;font-weight:900}.m4-hub-head h2{margin:4px 0 3px;font-size:21px}.m4-hub-head p{margin:0;color:#89959d;font-size:12px}
.m4-capacity{min-width:150px;text-align:center;border:1px solid #344047;border-radius:6px;padding:10px 14px;background:#0d1215}.m4-capacity strong{display:block;font-size:20px}.m4-capacity span{font-size:9px;letter-spacing:1px;color:#84919a}.m4-capacity.is-free strong{color:#7fc95d}.m4-capacity.is-full strong{color:#e05c55}
.m4-lobby-list{padding:14px}.m4-lobby-card{display:grid;grid-template-columns:1.2fr 1.5fr .65fr .75fr auto;align-items:center;gap:14px;padding:13px 15px;margin-bottom:8px;background:#161d21;border:1px solid #2a343a;border-radius:5px}.m4-lobby-main span,.m4-lobby-players span{font-size:9px;color:#74818a;letter-spacing:1px}.m4-lobby-main strong{margin:0 7px;color:#ff7a18}.m4-lobby-main small{color:#98a3aa}.m4-lobby-meta{display:flex;gap:12px;font-size:11px}.m4-lobby-meta b{color:#ff7a18}.m4-lobby-meta span{color:#bac3c8}.m4-lobby-players{text-align:center}.m4-lobby-players strong{display:block}.m4-lobby-status{display:flex;align-items:center;gap:7px;font-size:10px}.m4-lobby-status i{width:7px;height:7px;border-radius:50%;background:#79c35b}.m4-lobby-buttons{display:flex;gap:6px}.m4-lobby-buttons button,.m4-lobby-buttons a,.m4-back,.m4-abort{border:1px solid #3a464d;background:#20292e;color:#e8edf0;padding:8px 10px;border-radius:4px;font-size:10px;font-weight:800;text-decoration:none;cursor:pointer}.m4-lobby-buttons button:hover,.m4-lobby-buttons a:hover,.m4-back:hover{border-color:#ff7a18}.m4-lobby-buttons .danger,.m4-abort{background:#39191a;border-color:#783133;color:#ff9a91}.m4-lobby-buttons .danger:hover,.m4-abort:hover{background:#4b1d1f;border-color:#b64a4d}
.m4-hub-create{display:flex;justify-content:flex-end;padding:0 14px 16px}.m4-hub-create small{color:#7f8b92}.m4-hub-empty{margin:14px;padding:28px;text-align:center;border:1px dashed #303b42;color:#7f8b92}.m4-toolbar-right{display:flex;align-items:center;gap:8px}.m4-back{background:#161d21}
@media(max-width:900px){.m4-lobby-card{grid-template-columns:1fr 1fr}.m4-lobby-buttons{grid-column:1/-1}.m4-hub-head{align-items:flex-start;flex-direction:column}.m4-toolbar-right{flex-wrap:wrap;justify-content:flex-end}}

/* v4.4.1 - AZB two-column lobby hub */
.m4-lobby-list{display:none!important}
.m4-lobby-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px}
.m4-lobby-tile{min-height:292px;display:flex;flex-direction:column;background:linear-gradient(180deg,#181e22 0%,#111619 100%);border:1px solid #a74e17;border-top:3px solid #ef7417;border-radius:7px;box-shadow:0 10px 24px rgba(0,0,0,.24);overflow:hidden}
.m4-lobby-tile>header{display:flex;align-items:center;justify-content:space-between;padding:15px 17px 13px;border-bottom:1px solid #31383d;background:linear-gradient(90deg,rgba(239,116,23,.10),transparent 45%)}
.m4-lobby-tile>header span{display:block;font-size:9px;font-weight:900;letter-spacing:1.6px;color:#89949b}.m4-lobby-tile h3{margin:2px 0 0;font-size:18px;letter-spacing:.5px;color:#f0f3f5}.m4-lobby-tile .m4-lobby-status{padding:7px 9px;border:1px solid #384248;border-radius:4px;background:#0d1215}
.m4-lobby-owner{display:flex;justify-content:space-between;align-items:center;padding:12px 17px;border-bottom:1px solid #292f33}.m4-lobby-owner span{font-size:9px;color:#7e8a91;letter-spacing:1.2px}.m4-lobby-owner strong{color:#ff7a18;font-size:12px}
.m4-lobby-facts{display:grid;grid-template-columns:repeat(4,1fr);padding:13px 10px}.m4-lobby-facts>div{text-align:center;padding:3px 7px;border-right:1px solid #2c3439;min-width:0}.m4-lobby-facts>div:last-child{border-right:0}.m4-lobby-facts span{display:block;font-size:8px;color:#758189;letter-spacing:1px;margin-bottom:4px}.m4-lobby-facts strong{display:block;font-size:11px;color:#e5e9eb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m4-lobby-options{display:flex;gap:7px;padding:0 17px 11px}.m4-lobby-options span{padding:5px 8px;border:1px solid #343d42;border-radius:3px;background:#151b1f;color:#6f7b82;font-size:9px;font-weight:800}.m4-lobby-options span.on{border-color:#77421d;color:#f49a58;background:#211913}
.m4-lobby-progress{height:3px;margin:0 17px 14px;background:#252c30;overflow:hidden}.m4-lobby-progress i{display:block;height:100%;background:#ef7417}
.m4-lobby-tile>.m4-lobby-buttons{margin-top:auto;padding:0 17px 16px}.m4-lobby-tile>.m4-lobby-buttons .join{background:#df6916;border-color:#f18436;color:white}.m4-lobby-tile>.m4-lobby-buttons a,.m4-lobby-tile>.m4-lobby-buttons button{flex:1;text-align:center}
.m4-lobby-tile.is-empty{border-color:#3a4145;border-top-color:#59636a;background:linear-gradient(180deg,#151a1d,#101416)}.m4-empty-status{font-size:9px;font-weight:900;letter-spacing:1px;color:#7fc95d;border:1px solid #3b5733;background:#142014;padding:6px 9px;border-radius:4px}.m4-empty-slot{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;color:#6f7a81}.m4-empty-slot b{font-size:12px;letter-spacing:1px;color:#929da3}.m4-empty-slot span{font-size:10px}.m4-lobby-tile.is-empty>footer{padding:0 17px 16px}.m4-lobby-tile.is-empty>footer button{width:100%}
@media(max-width:850px){.m4-lobby-grid{grid-template-columns:1fr}.m4-lobby-facts{grid-template-columns:repeat(2,1fr);gap:8px}.m4-lobby-facts>div{border-right:0}}


/* v4.6.0 - Match History */
.m4-history{margin:0 16px 18px;border-top:1px solid #293138;padding-top:18px}.m4-history-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:12px}.m4-history-head span{font-size:9px;letter-spacing:1.6px;color:#ff7a18;font-weight:900}.m4-history-head h2{margin:3px 0;font-size:20px}.m4-history-head p{margin:0;color:#89959d;font-size:11px}.m4-history-head>strong{font-size:10px;color:#87939a;border:1px solid #333e44;padding:8px 10px;border-radius:4px}.m4-history-empty{padding:24px;text-align:center;color:#77838a;border:1px dashed #313a40}.m4-history-match{background:#151b1f;border:1px solid #2d373d;margin-bottom:8px;border-radius:5px;overflow:hidden}.m4-history-match>summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr 160px 150px 20px;align-items:center;gap:14px;padding:13px 15px}.m4-history-match>summary::-webkit-details-marker{display:none}.m4-history-map b{display:block;font-size:12px}.m4-history-map small,.m4-history-score small{display:block;color:#7f8b92;font-size:9px;margin-top:3px}.m4-history-score{text-align:center}.m4-history-score strong{font-size:17px;color:#ff7a18}.m4-history-match>summary time{font-size:10px;color:#9aa5ab;text-align:right}.m4-history-match>summary>i{font-style:normal;color:#89949b}.m4-history-match[open]>summary>i{transform:rotate(180deg)}.m4-history-detail{border-top:1px solid #2b3439;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:12px}.m4-history-team{background:#101518;border:1px solid #293238}.m4-history-team>header{display:flex;justify-content:space-between;align-items:center;padding:10px 11px;border-bottom:1px solid #293238}.m4-history-team h3{margin:0;font-size:11px;letter-spacing:1px}.m4-history-team header b{font-size:18px;margin-right:7px}.m4-history-team header span{font-size:8px;font-weight:900;padding:3px 5px;border-radius:3px}.m4-history-team header .win{background:#17371f;color:#70d98b}.m4-history-team header .loss{background:#3a191b;color:#ee7777}.m4-history-table .head,.m4-history-table .row{display:grid;grid-template-columns:minmax(120px,1fr) 64px 32px 32px 32px 46px;gap:5px;align-items:center;padding:8px 9px}.m4-history-table .head{font-size:8px;color:#758189;border-bottom:1px solid #242c31}.m4-history-table .row{font-size:10px;border-bottom:1px solid #20272b}.m4-history-table .row:last-child{border-bottom:0}.m4-history-table .delta.pos{color:#67d98a}.m4-history-table .delta.neg{color:#ee7474}.m4-history-no-player{padding:18px;color:#707b82;font-size:10px}.m4-history-demo{border-top:1px solid #2b3439;padding:10px 12px;text-align:center}.m4-history-demo a,.m4-history-demo button{display:block;width:100%;padding:10px;border:1px solid #a95119;background:#7b350d;color:#fff;border-radius:4px;font-size:10px;font-weight:900;text-decoration:none}.m4-history-demo button:disabled{opacity:.45;cursor:not-allowed}.m4-history-demo a:hover{background:#9a430f}.m4-history-match[open]{border-color:#8d481c}@media(max-width:850px){.m4-history-detail{grid-template-columns:1fr}.m4-history-match>summary{grid-template-columns:1fr auto}.m4-history-match>summary time{display:none}.m4-history-table{overflow-x:auto}.m4-history-table .head,.m4-history-table .row{min-width:500px}}
/* v4.8.0 - Match History Stage 3 */
.m4-history-filter{display:grid;grid-template-columns:180px minmax(220px,1fr) 160px auto auto;gap:8px;align-items:end;background:#101518;border:1px solid #293238;padding:10px;margin-bottom:12px;border-radius:5px}.m4-history-filter label{font-size:8px;font-weight:900;letter-spacing:1px;color:#7f8b92}.m4-history-filter input,.m4-history-filter select{display:block;width:100%;box-sizing:border-box;margin-top:5px;background:#171e22;border:1px solid #354047;color:#e9eef0;padding:9px 10px;border-radius:4px;font-size:10px}.m4-history-filter button,.m4-history-filter a{padding:9px 13px;border-radius:4px;border:1px solid #a95119;background:#7b350d;color:#fff;text-decoration:none;font-size:9px;font-weight:900;cursor:pointer}.m4-history-filter a{background:#171e22;border-color:#354047;color:#aab4b9}.m4-history-match>summary{grid-template-columns:minmax(180px,1fr) 130px minmax(120px,170px) 135px 20px}.m4-history-mvp{text-align:center;min-height:28px}.m4-history-mvp span{display:inline-block;font-size:7px;font-weight:900;background:#7b350d;color:#fff;padding:2px 5px;border-radius:3px;margin-right:5px}.m4-history-mvp b{font-size:10px}.m4-history-mvp small{display:block;color:#7f8b92;font-size:8px;margin-top:2px}.m4-history-team header .draw{background:#333b40;color:#c8d0d4}.m4-history-table .head,.m4-history-table .row{grid-template-columns:minmax(115px,1fr) 54px 28px 28px 28px 42px 30px 42px}.m4-history-demo a small{display:block;margin-top:3px;color:#ffc08e;font-size:8px;letter-spacing:.5px}.m4-history-pages{display:flex;gap:5px;justify-content:center;padding:8px 0 2px}.m4-history-pages a{min-width:30px;text-align:center;padding:7px 5px;border:1px solid #333e44;background:#151b1f;color:#aab4b9;text-decoration:none;border-radius:4px;font-size:9px;font-weight:900}.m4-history-pages a.active,.m4-history-pages a:hover{border-color:#a95119;background:#7b350d;color:#fff}@media(max-width:1000px){.m4-history-filter{grid-template-columns:1fr 1fr}.m4-history-match>summary{grid-template-columns:1fr 110px 130px 20px}.m4-history-mvp{display:none}}@media(max-width:650px){.m4-history-filter{grid-template-columns:1fr}.m4-history-match>summary{grid-template-columns:1fr auto}.m4-history-match>summary time,.m4-history-mvp{display:none}}

/* v4.9.4 – MatchSystem: gleicher Footer-Abstand wie Home */
.m4-wrap{
  margin-bottom:0!important;
  padding-bottom:0!important;
}
.m4-workshop-field{display:grid;grid-template-columns:1fr 1fr;gap:12px}.m4-workshop-field[hidden]{display:none!important}.m4-workshop-field label{display:flex;flex-direction:column;gap:6px}.m4-workshop-field small{color:#89949d;font-weight:400}@media(max-width:700px){.m4-workshop-field{grid-template-columns:1fr}}
.m4-vote-config{grid-column:1/-1;padding:14px;border:1px solid rgba(255,122,0,.35);border-radius:10px;background:rgba(255,122,0,.05);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.m4-vote-config>strong,.m4-vote-config>small{grid-column:1/-1}.m4-mapvote{margin:14px 0;padding:16px;border:1px solid rgba(255,122,0,.4);border-radius:12px;background:rgba(12,14,18,.92)}.m4-mapvote>strong{display:block;color:#ff7a00;margin-bottom:8px}.m4-vote-maps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.m4-vote-maps button{padding:12px;text-align:left}.m4-vote-maps button small{display:block;opacity:.7;margin-top:3px}@media(max-width:700px){.m4-vote-config,.m4-vote-maps{grid-template-columns:1fr}}

/* AZB MATCHLOBBY 2.0 – E-SPORTS PRO: presentation-only redesign */
.m4-toolbar{background:linear-gradient(110deg,#1b242d,#11171d 72%)!important;border:1px solid #33404b!important;border-left:3px solid #ed7b24!important;border-radius:10px!important;padding:16px 20px!important}
.m4-toolbar strong{color:#f3f6f9!important;font-size:22px!important}.m4-status{border:1px solid #73532e!important;background:#2a251e!important;border-radius:7px!important;padding:8px 12px!important}.m4-status span{color:#f4b977!important;font-weight:800!important}.m4-status[data-status="live"],.m4-status[data-status="ready"]{background:#1b3029!important;border-color:#3b8265!important}.m4-status[data-status="live"] span,.m4-status[data-status="ready"] span{color:#8de0b2!important}
.m4-grid{gap:16px!important;grid-template-columns:minmax(0,1fr) minmax(270px,.92fr) minmax(0,1fr)!important;align-items:start}
.m4-grid>.m4-team,.m4-grid>.m4-center{min-width:0;background:linear-gradient(180deg,#1a232c,#121920)!important;border:1px solid #303d48!important;border-top:3px solid #6a8ba9!important;border-radius:10px!important;box-shadow:0 14px 28px rgba(0,0,0,.17)!important;padding:14px!important}
.m4-grid>.m4-center{border-top-color:#f28b35!important;background:linear-gradient(180deg,#201e1c,#151a20)!important}.m4-grid>.m4-team:nth-child(3){border-top-color:#9ba9b8!important}
.m4-config-inline,.m4-config-drop{min-width:0!important}.m4-config-bar{border-radius:7px!important;border:1px solid #65472d!important;background:linear-gradient(90deg,#32251b,#1b2229)!important;padding:13px!important}.m4-config-bar span{color:#f49b54!important}.m4-config-bar b{color:#e1e7ed!important;white-space:normal!important}
.m4-config-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.m4-config-grid>label,.m4-config-grid>[data-fixed-map],.m4-config-grid>.m4-toggle-pair,.m4-config-grid>.m4-map-pair,.m4-config-grid>.m4-vote-entry{min-width:0!important}.m4-config-grid>[data-fixed-map],.m4-config-grid>.m4-toggle-pair,.m4-config-grid>.m4-map-pair,.m4-config-grid>.m4-vote-entry{grid-column:1/-1!important}.m4-map-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.m4-map-pair label{display:flex;flex-direction:column;gap:6px;min-width:0}.m4-map-pair select,.m4-config-grid select,.m4-config-grid input{max-width:100%;min-width:0;box-sizing:border-box}.m4-config-grid [data-fixed-map]>label{display:flex;flex-direction:column;gap:6px}.m4-vote-entry{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#29241f;border:1px solid #78502f;border-radius:8px;padding:12px}.m4-vote-entry strong,.m4-vote-entry small{display:block}.m4-vote-entry strong{font-size:11px;color:#f9a665}.m4-vote-entry small{font-size:10px;color:#abb5be;margin-top:5px}.m4-vote-entry button{white-space:nowrap}
.m4-vote-overlay{position:fixed;inset:0;z-index:99990;background:rgba(4,7,11,.84);display:flex;justify-content:center;align-items:center;padding:18px;box-sizing:border-box;backdrop-filter:blur(5px)}.m4-vote-overlay[hidden],.m4-vote-entry[hidden]{display:none!important}.m4-vote-dialog{width:min(760px,100%);max-height:92vh;overflow:auto;background:linear-gradient(180deg,#202b35,#121920);border:1px solid #6e5239;border-top:3px solid #f18b36;border-radius:13px;box-shadow:0 25px 80px #000b}.m4-vote-dialog header{display:flex;justify-content:space-between;gap:12px;padding:22px 24px;border-bottom:1px solid #36414a}.m4-vote-dialog header small{color:#ef954b;font-weight:800;letter-spacing:1.5px}.m4-vote-dialog h2{margin:6px 0;font-size:23px;color:#f4f6f8}.m4-vote-dialog p{margin:0;color:#aebbc7;font-size:12px}.m4-vote-dialog header button{align-self:start;background:#2e3943;color:white;border:1px solid #52616d;border-radius:6px;font-size:22px;cursor:pointer}.m4-vote-dialog .m4-vote-config{margin:18px 24px!important;background:transparent!important;border:0!important;padding:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px!important}.m4-vote-dialog .m4-vote-config>strong,.m4-vote-dialog .m4-vote-config>small{grid-column:1/-1}.m4-vote-dialog .m4-vote-config label{min-width:0}.m4-vote-dialog .m4-vote-config select{width:100%;max-width:100%;box-sizing:border-box}.m4-vote-dialog footer{grid-column:1/-1;display:flex;justify-content:flex-end}.m4-vote-dialog footer button{background:#e77820;color:#fff;padding:12px 18px;border:0;border-radius:7px;font-weight:800;cursor:pointer}
.m4-player{border:1px solid #35434f!important;background:linear-gradient(90deg,#263440,#1c2731)!important;border-radius:8px!important;margin-bottom:7px!important;padding:9px!important}.m4-player>span{background:#344c61!important;color:#e0edf8!important;border-radius:8px!important}.m4-player strong{color:#f1f4f6!important}.m4-player small{color:#a7b9c7!important}.m4-slot{border:1px dashed #384652!important;background:#161f27!important;border-radius:7px!important;color:#8797a5!important;margin-bottom:6px!important}.m4-lower>*,.m4-waiting,.m4-chat{border-radius:10px!important;border-color:#34414b!important;background:linear-gradient(180deg,#1a232c,#111820)!important}.m4-lower-head{border-bottom:1px solid #34414b!important}.m4-chat-row{border-bottom:1px solid #293640!important}.m4-chat-row strong{color:#e9eef3!important}.m4-start{border-radius:8px!important;background:linear-gradient(100deg,#e16b19,#ff943e)!important;box-shadow:0 5px 18px #d9651830!important;transition:filter .2s,transform .2s}.m4-start:hover{filter:brightness(1.12);transform:translateY(-1px)}
@media(max-width:900px){.m4-grid{grid-template-columns:1fr!important}.m4-vote-entry{flex-wrap:wrap}.m4-vote-entry button{width:100%}}@media(max-width:550px){.m4-map-pair,.m4-vote-dialog .m4-vote-config{grid-template-columns:1fr!important}}

/* Workshop selector refinement */
.m4-workshop-field{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:9px!important;align-items:start!important}
.m4-workshop-field[hidden],.m4-workshop-overlay[hidden]{display:none!important}
.m4-workshop-control{min-width:0;display:flex;flex-direction:column;gap:7px}
.m4-workshop-control>label{font-size:10px;font-weight:800;color:#c1cad4;min-height:13px}
.m4-workshop-control input,.m4-workshop-picker{width:100%!important;min-width:0!important;height:38px!important;box-sizing:border-box!important;border:1px solid #40505f!important;background:#222b34!important;border-radius:5px!important;color:#f2f5f8!important;font-size:11px!important;padding:0 9px!important}
.m4-workshop-picker{display:flex;align-items:center;justify-content:space-between;gap:4px;cursor:pointer;text-align:left}
.m4-workshop-picker span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m4-workshop-picker:hover{border-color:#f1872c!important}
.m4-workshop-help{grid-column:1/-1;color:#94a3b2;font-size:10px;line-height:1.4}
.m4-workshop-overlay{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:18px}
.m4-workshop-dialog{width:min(560px,100%);max-height:min(80vh,740px);display:flex;flex-direction:column;gap:14px;padding:22px;background:#171e26;border:1px solid #53606b;border-top:3px solid #ee8127;border-radius:12px;box-shadow:0 24px 90px #000b;color:#e8edf2}
.m4-workshop-dialog header{display:flex;justify-content:space-between;gap:12px;align-items:start}
.m4-workshop-dialog header small{color:#f1872c;font-weight:800}.m4-workshop-dialog h2{margin:5px 0;font-size:22px}.m4-workshop-dialog p{color:#a8b3bd;margin:0}
.m4-workshop-dialog [data-workshop-close]{background:#28323d;border:1px solid #4a5764;color:white;border-radius:6px;padding:8px 12px;cursor:pointer}
.m4-workshop-dialog input{height:44px;background:#232d37;border:1px solid #506071;border-radius:6px;padding:0 13px;color:white;width:100%;box-sizing:border-box}
.m4-workshop-results{overflow-y:auto;min-height:70px;display:grid;align-content:start;gap:6px}
.m4-workshop-result{background:#222c36;border:1px solid #364553;border-radius:7px;color:#e8edf2;text-align:left;padding:12px;cursor:pointer;display:flex;flex-direction:column;gap:4px}
.m4-workshop-result:hover,.m4-workshop-result:focus{border-color:#f1872c;background:#2c3239}
.m4-workshop-result small{color:#9eabb8}
.m4-workshop-dialog footer{display:flex;justify-content:flex-end}
body.m4-workshop-modal-open{overflow:hidden}
@media(max-width:430px){.m4-workshop-field{grid-template-columns:1fr!important}}

/* AZB CMS – Match-System Farbabgleich zur Server-/Home-Seite.
   Nur Oberflächenfarben; keine Maße, Positionen oder Status-/Aktionsfarben. */
.page-match-system .m4-hub,
.page-match-system .m4-team,
.page-match-system .m4-center,
.page-match-system .m4-card,
.page-match-system .m4-toolbar,
.page-match-system .m4-connect,
.page-match-system .m4-empty {
  background: #111318;
  border-color: #292d34;
}
.page-match-system .m4-hub-head {
  background: linear-gradient(180deg,#15171c 0%,#111318 100%);
  border-bottom-color: #292d34;
}
.page-match-system .m4-lobby-tile {
  background: linear-gradient(180deg,#17191e 0%,#111318 100%);
}
.page-match-system .m4-lobby-tile > header {
  background: linear-gradient(90deg,rgba(239,116,23,.08),transparent 45%);
  border-bottom-color: #2c3036;
}
.page-match-system .m4-lobby-tile.is-empty {
  background: linear-gradient(180deg,#15171b,#101216);
}
.page-match-system .m4-history-match,
.page-match-system .m4-history-team,
.page-match-system .m4-lobby-card,
.page-match-system .m4-player,
.page-match-system .m4-slot {
  background: #15171c;
  border-color: #2c3036;
}
.page-match-system .m4-capacity,
.page-match-system .m4-lobby-tile .m4-lobby-status,
.page-match-system .m4-live-config {
  background-color: #0e1014;
}

/* AZB two-stage match configuration */
.azb-step-two-label{grid-column:1/-1;color:#ff8529;font-weight:800;letter-spacing:.08em;border-top:1px solid #35414a;padding-top:12px;margin-top:8px}.azb-step-hidden{display:none!important}[data-config-step-two][hidden]{display:none!important}
