/* Elbrus Match Center — scoped styles */
.em-admin-body{margin:0;background:#eedbb4;color:#282430;font-family:Arial,'Segoe UI',sans-serif}.em-admin-body *{box-sizing:border-box}.em-admin-body button,.em-admin-body input,.em-admin-body select{font:inherit}.em-admin-body button{cursor:pointer}.em-admin-top{background:linear-gradient(110deg,#1c1d28,#2d2833);color:#fff;min-height:72px;display:flex;align-items:center;justify-content:space-between;padding:14px max(20px,calc((100vw - 1320px)/2));gap:20px}.em-admin-top a{color:#e6c58f;text-decoration:none}.em-admin-top strong{font-size:18px;letter-spacing:.08em}.em-admin-top strong span{color:#bdafac;font-weight:400}.em-admin-top>span{font-size:12px;color:#b5aeb5}.em-admin-layout{max-width:1320px;margin:0 auto;padding:35px 20px 70px}.em-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.em-eyebrow{letter-spacing:.19em;font-size:12px;color:#82606f;font-weight:800}.em-admin-heading h1{font-size:clamp(34px,5vw,55px);margin:8px 0}.em-admin-heading p{margin:0;color:#726875}.em-admin-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr);gap:20px}.em-admin-left,.em-admin-right{display:grid;gap:20px;align-content:start}.em-admin-card{background:#fbf8f2;border-radius:20px;padding:26px;border:1px solid #d7c5a7;box-shadow:0 10px 26px rgba(52,36,31,.06)}.em-admin-card h2{font-size:21px;margin:0 0 14px}.em-admin-card p{color:#706775;line-height:1.55}.em-admin-card label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:750}.em-admin-card input:not([type=checkbox]),.em-admin-card select{width:100%;background:#fff;color:#262431;border:1px solid #ccc3be;border-radius:10px;padding:12px;min-height:44px;outline-color:#936b7e}.em-admin-card button:not(.em-undo){background:#292531;color:#fff;border:0;border-radius:10px;padding:12px 17px;font-weight:750;min-height:44px}.em-admin-card button:hover{filter:brightness(1.17)}.em-admin-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.em-admin-actions button,.em-admin-top button{background:#292531;color:white;border:0;border-radius:9px;padding:12px 16px}.em-admin-actions .em-button-secondary{background:transparent;border:1px solid #967b7d;color:#292531}.em-admin-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}.em-admin-row h2{margin:0}.em-admin-row select{max-width:260px}.em-formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:16px 0}.em-formgrid .em-full{grid-column:1/-1}.em-switch{display:flex!important;flex-direction:row!important;align-items:center;font-size:14px!important;margin:18px 0}.em-switch input{width:18px;height:18px;accent-color:#795261}.em-muted{font-size:13px!important;color:#827985!important}.em-positions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.em-lineup-field{display:grid;grid-template-columns:58px minmax(0,1fr);gap:6px;background:#f1e8dc;border-radius:10px;padding:10px}.em-lineup-field b{grid-column:1/-1;font-size:12px;color:#6f5c63}.em-lineup-field input{min-width:0}.em-pitch{height:330px;border:3px solid rgba(232,241,224,.7);position:relative;overflow:hidden;border-radius:12px;background:repeating-linear-gradient(90deg,#255344 0%,#255344 12.5%,#2b5b49 12.5%,#2b5b49 25%);box-shadow:inset 0 0 0 3px rgba(12,38,27,.35)}.em-pitch::before{content:'';position:absolute;left:0;top:19%;height:62%;width:13%;border:2px solid #e8f1df;opacity:.6}.em-pitch::after{content:'';position:absolute;right:0;top:19%;height:62%;width:13%;border:2px solid #e8f1df;opacity:.6}.em-midline{position:absolute;left:50%;top:0;bottom:0;border-left:2px solid rgba(232,241,224,.65)}.em-center-circle{width:110px;height:110px;border:2px solid rgba(232,241,224,.65);border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.em-crest{position:absolute;right:10%;top:50%;transform:translateY(-50%);font-size:clamp(21px,3vw,37px);font-weight:1000;letter-spacing:.08em;text-align:center;color:#e7cb9c;opacity:.35}.em-crest small{display:block;font-size:11px;margin-top:6px}.em-pitch-player{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;max-width:88px;z-index:2}.em-pitch-player strong{display:flex;align-items:center;justify-content:center;background:#e7c687;width:31px;height:31px;border-radius:50%;border:2px solid #292531;color:#292531;font-size:14px}.em-pitch-player small{color:white;background:#1a2424ed;border-radius:4px;padding:3px 5px;font-size:10px;text-align:center;max-width:85px;overflow:hidden;text-overflow:ellipsis}.em-scoreboard{background:#292531;color:#f7efdf;border-radius:13px;padding:23px 8px;display:flex;align-items:center;justify-content:center;gap:10px}.em-scoreboard b{font-size:38px}.em-scoreboard span{font-size:11px;font-weight:800;text-transform:uppercase}.em-events{display:grid;gap:7px}.em-event{display:grid;grid-template-columns:38px 1fr 27px;align-items:center;gap:8px;border-bottom:1px solid #e7ddd3;padding:11px 0;font-size:13px}.em-event-time{font-weight:900;color:#875c6e}.em-undo{border:0;background:#e9dee0;color:#7b4958;border-radius:7px;cursor:pointer;padding:3px 7px;font-size:21px}.em-plain-link{color:#6c4459;font-weight:800}.em-toast{position:fixed;bottom:22px;right:22px;background:#282430;color:#fff;border-radius:11px;padding:14px 20px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.em-toast.visible{opacity:1;transform:translateY(0)}[hidden]{display:none!important}
/* Public match center immediately below homepage hero. */
html body .em-public-match{background:transparent;color:#282430;padding:24px 16px 16px;max-width:1280px;margin:0 auto;font-family:Arial,'Segoe UI',sans-serif;box-sizing:border-box}
html body .em-public-match *{box-sizing:border-box}.em-public-match .em-public-inner{background:linear-gradient(125deg,#25232e,#38303d);color:white;border-radius:20px;padding:24px;box-shadow:0 14px 40px #21182535}.em-public-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#edca89;font-size:12px;font-weight:800;letter-spacing:.07em}.em-public-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;text-align:center;margin:22px 0}.em-public-club{display:grid;justify-items:center;gap:6px;font-weight:900;font-size:clamp(15px,2vw,23px)}.em-public-club img{width:75px;height:90px;object-fit:contain}.em-public-vs{font-size:clamp(30px,5vw,65px);font-weight:900;white-space:nowrap;color:#fff}.em-public-vs small{display:block;font-size:11px;letter-spacing:.08em;color:#edca89}.em-public-detail{text-align:center;font-size:14px;color:#e2d9da;margin:9px 0 18px}.em-public-content{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.em-public-content .em-pitch{height:255px}.em-public-content .em-pitch-player strong{width:25px;height:25px;font-size:12px}.em-public-content .em-pitch-player small{font-size:9px}.em-public-events{max-height:255px;overflow:auto}.em-public-events h3{margin:0 0 12px;font-size:16px}.em-public-event{padding:9px 0;border-bottom:1px solid #ffffff24;color:#e5dfe0;font-size:13px}.em-public-event strong{color:#edca89}.em-public-no-lineup{color:#bbb0ba;font-size:13px;text-align:center;padding:45px 0}.em-public-error{padding:10px;color:#935f72}
@media(max-width:750px){.em-admin-grid,.em-public-content{grid-template-columns:1fr}.em-admin-heading{align-items:flex-start;flex-direction:column}.em-admin-top strong span,.em-admin-top>span{display:none}.em-admin-card{padding:18px}.em-positions{grid-template-columns:1fr}.em-formgrid{grid-template-columns:1fr}.em-public-teams{gap:7px}.em-public-club img{width:50px;height:60px}.em-public-match .em-public-inner{padding:17px}.em-public-content .em-pitch{height:225px}.em-pitch-player small{font-size:9px}.em-crest{font-size:19px}.em-admin-layout{padding:20px 12px}}

/* Эльбрус: голы только под эмблемой соответствующей команды */
html body .em-public-match .em-public-teams {align-items:start}
html body .em-public-match .em-public-vs {align-self:start; padding-top:18px}
html body .em-public-match .em-team-goals {
  width:100%; max-width:350px; margin:10px auto 0;
  display:flex;flex-direction:column;align-items:center;gap:8px;
  min-width:0;
}
html body .em-public-match .em-goal-row {
  display:flex;align-items:baseline;justify-content:center;gap:5px;
  font-size:clamp(12px,1.2vw,15px);line-height:1.45;
  color:#f2e7df;flex-wrap:wrap;text-align:center;max-width:100%;
}
html body .em-public-match .em-goal-scorer {font-weight:900;color:#fff}
html body .em-public-match .em-goal-passer {font-weight:400;color:#e1d6df}
html body .em-public-match .em-goal-minute {color:#edca89;font-weight:700}
html body .em-public-match .em-opponent-icon {font-size:60px;color:#b89b83;line-height:90px}
html body .em-public-match .em-public-event--hint {opacity:.65;font-size:12px}
@media(max-width:750px){
  html body .em-public-match .em-public-teams {grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px}
  html body .em-public-match .em-goal-row {font-size:11px;gap:3px}
  html body .em-public-match .em-team-goals {gap:7px}
  html body .em-public-match .em-opponent-icon {font-size:43px;line-height:60px}
  html body .em-public-match .em-public-vs {padding-top:10px}
}

/* Эльбрус: поле по центру, ход матча под полем, эмблема на второй половине */
html body .em-public-inner--stacked{display:block}
html body .em-public-pitch-wrap{margin-top:18px}
html body .em-pitch--centered{max-width:980px;margin:0 auto}
html body .em-public-events--full{margin-top:22px;max-width:980px;margin-left:auto;margin-right:auto}
html body .em-public-events--full h3{margin:0 0 14px}
html body .em-crest-mark{
  position:absolute; right:12%; top:50%; transform:translateY(-50%);
  width:min(22vw,190px); height:min(22vw,190px);
  display:flex; align-items:center; justify-content:center;
  opacity:.16; pointer-events:none; filter:grayscale(.08);
}
html body .em-crest-mark img{max-width:100%; max-height:100%; object-fit:contain}
html body .em-public-event{background:rgba(255,255,255,.04); border:1px solid rgba(214,194,156,.14); border-radius:16px; padding:12px 14px; margin-bottom:10px}
html body .em-public-event span{opacity:.9}
html body .em-public-event--hint{opacity:.74}
@media(max-width:820px){
  html body .em-crest-mark{right:10%; width:110px; height:110px; opacity:.13}
}

/* Эльбрус: цветные эмблемы в матч-центре */
html body .em-team-logo{width:74px;height:74px;object-fit:contain;display:block}
html body .em-team-logo--main{filter:none !important;opacity:1 !important}
html body .em-public-club img{filter:none !important;opacity:1 !important}
html body .em-crest-mark{position:absolute;right:12%;top:50%;transform:translateY(-50%);width:min(22vw,190px);height:min(22vw,190px);display:flex;align-items:center;justify-content:center;opacity:.96 !important;pointer-events:none}
html body .em-crest-mark img{max-width:100%;max-height:100%;object-fit:contain;filter:none !important;opacity:1 !important}
html body .em-opponent-icon{width:74px;height:74px;border-radius:18px;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;font-size:28px;color:#f2e3c1}
@media(max-width:820px){html body .em-team-logo{width:58px;height:58px}html body .em-crest-mark{width:110px;height:110px;right:10%}}

