/* Text-led 1990s TV match replay. Artwork is existing approved capacity-banded WebP. */
#ulf-match-live{--ml-top:max(5px,env(safe-area-inset-top));--ml-bottom:max(5px,env(safe-area-inset-bottom));padding:var(--ml-top) 5px var(--ml-bottom)}
#ulf-match-live .ml-panel{width:min(100%,680px);border-radius:4px;background:#071733;border:3px solid #dfba64;
 height:calc(100dvh - var(--ml-top) - var(--ml-bottom));max-height:none;overflow-y:auto;overscroll-behavior:contain}
#ulf-match-live :is(.ml-header,.ml-teams,.ml-clock,.ml-track){flex:none}
#ulf-match-live .ml-header{background:linear-gradient(90deg,#112b7e,#193b92);border-bottom:2px solid #ddbb72;letter-spacing:.08em}
#ulf-match-live.ml-cup-final .ml-header{background:linear-gradient(90deg,#3a281c,#654324);border-bottom-color:#f2ca77}
#ulf-match-live .ml-live{background:#244970;color:#ffe9ac;border:1px solid #b7d0e7;animation:none}
#ulf-match-live .ml-teams{background:#0b1a35}
#ulf-match-live .ml-scene{flex:0 0 50dvh;min-height:50dvh;position:relative;background:#133249;border:1px solid #799bb0;overflow:hidden;isolation:isolate}
#ulf-match-live .ml-stadium-picture{position:absolute;inset:0;display:block}
#ulf-match-live .ml-stadium-picture img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;
 transform:scale(1.02);filter:saturate(.8) brightness(.83) sepia(.08);animation:ulf36-tv-pan 18s ease-in-out infinite alternate}
#ulf-match-live .ml-scene:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:1;
 background:linear-gradient(0deg,#000a 0%,transparent 80%),linear-gradient(90deg,#07132c66,transparent 35%,transparent 65%,#07132c66)}
#ulf-match-live .ml-stage-label{z-index:2;top:8px;left:8px;font-size:10px;color:#fff0bc;text-shadow:0 2px 4px #000}
#ulf-match-live .ml-flash{z-index:2;position:absolute;left:7px;right:7px;bottom:7px;
 padding:8px 5px;background:#091c3ad9;border:1px solid #c0a364;border-radius:2px;
 color:#ffebac;line-height:1.35;overflow-wrap:anywhere}
#ulf-match-live .ml-scene.goal .ml-flash{background:linear-gradient(105deg,#142e6e,#081637);border-color:#ffe2a0;
 border-inline-start:5px solid #edbc55;box-shadow:0 3px 10px #0009}
#ulf-match-live .ml-goal-graphic{position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%);
 width:calc(100% - 28px);max-width:430px;pointer-events:none;user-select:none;text-align:center;
 padding:10px 12px;border:3px solid #8ccf8d;border-radius:2px;
 background:linear-gradient(135deg,#102942,#07182f 70%);box-shadow:0 0 0 3px #082c2b,0 0 0 5px #73a981,0 7px 22px #000c;
 color:#f8f2d8}
#ulf-match-live .ml-goal-graphic[hidden],#ulf-match-live .ml-show-goal .ml-flash{display:none}
#ulf-match-live .ml-goal-line{display:grid;grid-template-columns:clamp(42px,8vw,72px) minmax(0,1fr) 36px;
 align-items:center;gap:5px;color:#d4f1be}
#ulf-match-live .ml-goal-motif{display:block;width:100%;height:auto}
#ulf-match-live .ml-goal-title{font:900 clamp(40px,8.5vw,68px)/1 ui-monospace,Consolas,monospace;
 letter-spacing:.03em;color:#fff4b6;text-shadow:3px 3px #020d20;animation:ulf36-goal-pulse 1s steps(2,end) infinite}
#ulf-match-live [data-ml-goal-minute]{font-size:15px;font-weight:900;font-variant-numeric:tabular-nums}
#ulf-match-live .ml-goal-result{display:grid;justify-items:center;gap:6px;margin-top:5px;line-height:1.2}
#ulf-match-live .ml-goal-result>div{min-width:0;max-width:100%}
#ulf-match-live .ml-goal-result [data-ml-goal-player]{display:block;font-size:clamp(17px,4.2vw,24px);overflow-wrap:anywhere}
#ulf-match-live .ml-goal-result [data-ml-goal-player][hidden]{display:none}
#ulf-match-live .ml-goal-result small{display:block;margin-top:3px;color:#c4dfcd;font-size:clamp(11px,2.7vw,14px);overflow-wrap:anywhere}
#ulf-match-live .ml-goal-score{padding:2px 14px;border:1px solid #6f9c91;background:#041226;
 color:#fff1b1;white-space:nowrap;font-size:clamp(23px,5vw,32px);font-variant-numeric:tabular-nums;letter-spacing:.04em}
#ulf-match-live .ml-sub-board{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;color:#faffdf;text-shadow:none;font-weight:900}
#ulf-match-live .ml-sub-board span{padding:4px 6px;background:#0c3020;border:2px solid #87d99b;border-radius:3px;font-size:clamp(11px,3vw,16px)}
#ulf-match-live .ml-sub-board span:last-child{background:#422328;border-color:#f19f93}
#ulf-match-live .ml-feed{flex:1 1 0;min-height:68px;background:#071a36;scrollbar-color:#997546 #142943}
#ulf-match-live .ml-event{padding:7px 4px;border-bottom:1px dotted #526884;line-height:1.45}
#ulf-match-live .ml-event:last-child{font-size:clamp(13px,3.5vw,16px);font-weight:800}
#ulf-match-live .ml-event.sub{color:#b3f2c7}
#ulf-match-live .ml-bottom{background:#112942;border-top:2px solid #ae8d52;padding:6px 8px}
#ulf-match-live .ml-tip{font-size:11px;line-height:1.4;margin:0 0 3px}
#ulf-match-live .ml-tip:empty{display:none}
#ulf-match-live .ml-controls{display:flex;justify-content:space-between;align-items:center;gap:5px;flex-wrap:wrap;margin:0 0 5px}
#ulf-match-live .ml-controls-label{color:#dae5f3;font-size:11px;font-weight:900;letter-spacing:.08em}
#ulf-match-live .ml-control-buttons{display:flex;gap:5px;flex-wrap:wrap}
#ulf-match-live .ml-control-buttons button{min-width:44px;min-height:44px;width:auto;padding:8px 12px;background:#224361;
 color:#eaf4fe;border:1px solid #98b1c9;font-size:12px}
#ulf-match-live .ml-control-buttons button[aria-pressed="true"]{background:#e6c073;color:#102542;border:2px solid #fff2be}
#ulf-match-live .ml-control-buttons button:disabled{opacity:.55}
#ulf-match-live button:focus-visible{outline:3px solid #fff;outline-offset:2px}
@keyframes ulf36-tv-pan{from{transform:scale(1.02) translateX(-.7%)}to{transform:scale(1.07) translateX(.7%)}}
@keyframes ulf36-goal-pulse{0%,100%{color:#fff4b6}50%{color:#9edba0}}
@media(prefers-reduced-motion:reduce){#ulf-match-live .ml-stadium-picture img{animation:none!important;transform:none!important}
 #ulf-match-live .ml-goal-title{animation:none!important}}
@media(max-height:500px){
 #ulf-match-live .ml-goal-graphic{padding:5px 10px}
 #ulf-match-live .ml-goal-line{grid-template-columns:45px minmax(0,1fr) 36px}
 #ulf-match-live .ml-goal-title{font-size:40px}
 #ulf-match-live .ml-goal-result{gap:3px;margin-top:2px}
 #ulf-match-live .ml-goal-result [data-ml-goal-player]{font-size:17px}
 #ulf-match-live .ml-goal-result small{font-size:11px;margin-top:1px}
 #ulf-match-live .ml-goal-score{font-size:22px;padding:1px 12px}
}
@media(max-height:360px){
 #ulf-match-live .ml-goal-graphic{padding:4px 8px}
 #ulf-match-live .ml-goal-line{grid-template-columns:34px minmax(0,1fr) 32px}
 #ulf-match-live .ml-goal-title{font-size:32px}
 #ulf-match-live .ml-goal-result [data-ml-goal-player]{font-size:14px}
 #ulf-match-live .ml-goal-result small{font-size:10px}
 #ulf-match-live .ml-goal-score{font-size:18px;padding:0 10px}
}
@media(max-width:440px){
 #ulf-match-live .ml-panel{border-width:2px}
 #ulf-match-live .ml-scene{margin:4px 8px 5px}
 #ulf-match-live .ml-controls-label{display:none}
 #ulf-match-live .ml-control-buttons{width:100%}
 #ulf-match-live .ml-control-buttons button{flex:1 1 auto}
}
#ulf-match-live.ml-interactive .ml-live{background:#a52e41}
#ulf-match-live .ml-team-access{display:flex;justify-content:space-between;gap:5px;margin-top:5px}
#ulf-match-live .ml-team-access[hidden]{display:none}
#ulf-match-live .ml-team-access button{width:auto;min-width:44px;min-height:44px;padding:6px 8px;border:1px solid #7399b1;
 background:#173859;color:#e9f7ff;font-size:12px}
#ulf-match-live #ulf-live-team:not([hidden]){display:inline-flex;align-items:center;justify-content:center;gap:5px}
#ulf-match-live #ulf-live-tactics{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px 5px;max-width:44%}
#ulf-match-live #ulf-live-team small,#ulf-match-live #ulf-live-tactic-status{padding:3px 5px;border-radius:3px;background:#102d52;color:#fff2c9;
 font:700 11px/1.3 ui-monospace,monospace}
#ulf-match-live #ulf-live-team small{flex:none}
#ulf-match-live #ulf-live-tactic-status{min-width:0;overflow-wrap:anywhere}
#ulf-match-live #ulf-live-tactic-status[hidden]{display:none}
#ulf-match-live .ml-team-access button:disabled{opacity:.65}
#ulf-match-live .ml-team-lists,.ml-match-report .ml-team-lists{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;
}
#ulf-match-live .ml-tactical-decisions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#ulf-match-live .ml-tactical-decisions button{min-width:0;padding:7px 2px;font-size:clamp(10px,2.7vw,12px)}
#ulf-match-live .ml-tactical-decisions button[aria-pressed="true"]{border-color:#fff2be;background:#e6c073;color:#102542}
#ulf-match-live .ml-tactical-decisions label{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
#ulf-match-live .ml-tactical-decisions select{min-width:0;min-height:44px;max-width:66%}
#ulf-match-live .ml-management-panel[hidden]{display:none}
#ulf-match-live .ml-management-panel button,#ulf-match-live .ml-management-panel select{min-height:44px}
#ulf-match-live .ml-tactical-decisions button:not([aria-pressed="true"]){background:#173859;color:#e9f7ff;border-color:#527798}
#ulf-match-live .ml-live-status{margin:5px 0 0;font-size:12px;color:#ffe585;overflow-wrap:anywhere}
#ulf-match-live .ml-live-status:empty{display:none}
#ulf-match-live .ml-management-panel{
  flex:1 1 auto;padding:12px;overflow:auto;overscroll-behavior:contain;min-height:0;font-size:13px;
}
#ulf-match-live .ml-management-panel h2{font-size:19px;margin:5px 0;color:#ffe585}
#ulf-match-live .ml-management-panel p,#ulf-match-live .ml-team-panel ul{margin:6px 0 10px}
#ulf-match-live .ml-team-panel form{display:grid;gap:8px;margin:10px 0}
#ulf-match-live .ml-team-panel label{display:grid;gap:3px;min-width:0}
#ulf-match-live .ml-team-panel select{width:100%;min-width:0;background:#123053;color:#fff}
#ulf-match-live .ml-team-panel summary{cursor:pointer;padding:8px 0}
#ulf-match-live .ml-team-panel li,.ml-match-report li{overflow-wrap:anywhere}
#ulf-match-live.ml-show-management :is(.ml-scene,.ml-feed,.ml-controls,#ulf-ml-skip){display:none}
#ulf-match-live.ml-show-management .ml-team-access{justify-content:flex-end;margin-top:0}
.ml-match-report{margin:12px 0;padding:10px;border:1px solid #56799b;background:#0b2845}
.ml-match-report h3{margin:0 0 6px}

:is(.ulf36-fixture-banner,#ulf-match-live .ml-scene)[data-ulf-light="night"] picture img {
 filter:brightness(.70) saturate(.75) hue-rotate(9deg);
}
:is(.ulf36-fixture-banner,#ulf-match-live .ml-scene)[data-ulf-weather="sun"] picture img {
 filter:brightness(1.10) saturate(1.15) sepia(.09);
}
:is(.ulf36-fixture-banner,#ulf-match-live .ml-scene)[data-ulf-light] picture::after {
 position:absolute;inset:0;content:"";pointer-events:none;
}
:is(.ulf36-fixture-banner,#ulf-match-live .ml-scene)[data-ulf-light="night"] picture::after {
 background:radial-gradient(ellipse at 15% 5%,#c5e3ff55,transparent 32%),radial-gradient(ellipse at 85% 5%,#c5e3ff55,transparent 32%);
}
:is(.ulf36-fixture-banner,#ulf-match-live .ml-scene):is([data-ulf-weather="rain"],[data-ulf-weather="showers"]) picture::after {
 background:repeating-linear-gradient(118deg,transparent 0 15px,#d4e7ff30 16px,transparent 17px 28px),linear-gradient(#7893aa55,transparent);
}
:is(.ulf36-fixture-banner,#ulf-match-live .ml-scene)[data-ulf-weather="snow"] picture::after {
 background:radial-gradient(circle,#fff9 1px,transparent 2px) 0 0/23px 27px,
 radial-gradient(circle,#e9f6ff77 1px,transparent 2px) 10px 9px/43px 33px,linear-gradient(transparent,#edf2fb38);
}
:is(.ulf36-fixture-banner,#ulf-match-live .ml-scene)[data-ulf-weather="fog"] picture::after {
 background:linear-gradient(transparent,#dae2eb88 52%,#d1dce355 72%,transparent);
}
.ulf36-fixture-banner .ulf36-match-conditions {font-size:.8rem;margin:3px 0 0}
#ulf-match-live .ml-atmosphere-conditions {
 position:absolute;z-index:2;top:34px;left:8px;padding:3px 6px;border-radius:3px;
 font-size:11px;color:#fff0bc;background:#071733d9;
}
