/* Match form and head-to-head; only completed matches from the source database. */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:15px}
.form-team{border:1px solid var(--line);background:var(--surface2);padding:17px 19px;border-radius:9px}
.form-team>strong{display:block;font-size:12px;color:var(--text);margin-bottom:12px}
.form-badges{display:flex;flex-wrap:wrap;gap:8px}
.form-result{display:inline-flex;justify-content:center;align-items:center;min-width:31px;height:31px;padding:4px 7px;border-radius:8px;font-size:12px;font-weight:900}
.form-result.result-W{background:#dcfce7;color:#166534}
.form-result.result-D{background:#e2e8f0;color:#334155}
.form-result.result-L{background:#fee2e2;color:#991b1b}
.h2h-list{display:grid;gap:3px;margin-top:15px}
.h2h-row{display:grid;grid-template-columns:92px minmax(0,1fr) 63px minmax(0,1fr);align-items:center;gap:11px;padding:12px 10px;border-bottom:1px solid var(--line);font-size:11px;color:var(--text)}
.h2h-row:hover{background:var(--hover)}
.h2h-row time{color:var(--quiet);font-size:10px}
.h2h-row strong{text-align:center;font-size:13px;white-space:nowrap}
.h2h-row span:last-child{text-align:right}
@media(max-width:630px){
 .form-grid{grid-template-columns:1fr}
 .h2h-row{grid-template-columns:64px minmax(0,1fr) 45px minmax(0,1fr);gap:5px;padding:10px 5px;font-size:9px}
 .h2h-row time{font-size:9px}
 .h2h-row strong{font-size:11px}
}

.form-result{position:relative;text-decoration:none}
a.form-result:hover,a.form-result:focus-visible{outline:2px solid currentColor;outline-offset:2px;text-decoration:none;z-index:5}


.scorila-form-popover[hidden]{display:none!important}
.scorila-form-popover{position:fixed;max-width:min(340px,calc(100vw - 16px));padding:7px 10px;border-radius:7px;background:#172433;color:#fff;font:700 12px/1.4 system-ui,sans-serif;z-index:10000;pointer-events:none;box-shadow:0 3px 12px #08132244;text-align:center}
.stadium-workspace .stadium-standing-form>a.scorila-standing-match,.stadium-workspace .stadium-standing-form>span.scorila-standing-match{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:5px;text-decoration:none;font-weight:850}
.stadium-standing-form .scorila-standing-match.form-W{background:#dcfce7;color:#166534}.stadium-standing-form .scorila-standing-match.form-D{background:#e2e8f0;color:#334155}.stadium-standing-form .scorila-standing-match.form-L{background:#fee2e2;color:#991b1b}
.stadium-standing-form a.scorila-standing-match:is(:hover,:focus-visible){outline:2px solid currentColor;outline-offset:1px}
