/* v183 · Presentation only; the same scoreboard and upcoming fixture stay under #tab-live. */
html.scoreboard-landscape-open{overflow:hidden;overscroll-behavior:none}
body.public-app #scoreboardLandscape{position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:var(--landscape-height,100dvh);max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#051a31;color:#fff;overflow:hidden;overscroll-behavior:contain}
body.public-app #scoreboardLandscape::backdrop{background:#051a31}
body.public-app #scoreboardLandscape:not([open]){display:none!important}
body.public-app #tab-live #scoreboardLandscape>.scoreboard-shell{
 --landscape-logo:clamp(64px,22dvh,116px);
 position:relative;display:flex;flex-direction:column;isolation:isolate;width:100%;height:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;box-shadow:none;
 background:linear-gradient(180deg,#031329c9,#03132924 43%,#03132970 80%,#031329d6),var(--scoreboard-stadium,url('assets/hatto-stadium-scoreboard.webp?v=20260915')) center 55%/cover no-repeat;
}
/* Keep native goal/substitution overlays inside the now screen-sized original board. */
body.public-app #tab-live #scoreboardLandscape>.scoreboard-shell>:not(.score):not(.live-empty-state):not(.scoreboard-venue):not(.goal-b):not(.scoreboard-swap):not(.scoreboard-cup-badge):not(.scoreboard-tv-message){display:none!important}
body.public-app #tab-live #scoreboardLandscape .live-empty-state[hidden]{display:none!important}
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score{
 flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.8fr) minmax(0,1fr);align-items:start;gap:24px;margin:0;
 padding:56px max(24px,env(safe-area-inset-right,0px)) 8px max(24px,env(safe-area-inset-left,0px));
}
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .score-centre{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0;padding:0}
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .live-label{display:none!important}
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .scoreboard-status{order:0;display:block;font:600 12px/1.3 Arial,sans-serif;letter-spacing:1px;color:#deebf8;text-align:center}
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .minute{order:1;min-width:74px;margin:0;padding:7px 13px;border:1px solid #b9dcf934;border-radius:12px;background:#082b4de8;color:#fff;box-shadow:inset 0 1px 0 #dcefff1a;backdrop-filter:blur(12px);font:600 clamp(20px,6dvh,30px)/1.1 Arial,sans-serif;font-variant-numeric:tabular-nums}
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .score-number{order:2;width:100%;margin:0;padding:0;color:#fff;font:800 clamp(62px,24dvh,122px)/1.05 Arial,sans-serif;letter-spacing:-3px;white-space:nowrap;text-align:center;font-variant-numeric:tabular-nums}
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score>.team{gap:0;min-width:0;font-size:clamp(14px,4.2dvh,20px);padding-top:var(--score-logo-offset,0px)}
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .team .fixture-team{display:grid;grid-template-rows:var(--landscape-logo) auto auto;justify-items:center;align-content:start;gap:9px;max-width:100%;font:700 clamp(14px,4.2dvh,20px)/1.2 Arial,sans-serif;text-align:center;white-space:normal;overflow-wrap:anywhere}
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .team .fixture-team .club-logo,
body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .team .team-logo{width:var(--landscape-logo);height:var(--landscape-logo);object-fit:contain}
body.public-app #tab-live #scoreboardLandscape .scoreboard-team-form{display:none!important}
body.public-app #tab-live #scoreboardLandscape .scoreboard-scorers{max-width:100%;margin:0;padding:0;font:400 clamp(11px,3dvh,14px)/1.4 Arial,sans-serif;color:#fff}
body.public-app #tab-live #scoreboardLandscape .scoreboard-scorer{margin:0 0 3px;white-space:normal;overflow-wrap:anywhere}
body.public-app #tab-live #scoreboardLandscape .scoreboard-venue{flex:0 0 auto;display:flex!important;justify-content:center;align-items:center;min-height:0;width:100%;max-width:none;margin:0;padding:5px max(24px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px));background:none;border:0;border-radius:0;color:#d0dfef;text-align:center}
body.public-app #tab-live #scoreboardLandscape .scoreboard-venue[hidden]{display:none!important}
body.public-app #tab-live #scoreboardLandscape .scoreboard-venue-copy{display:block;min-width:0}
body.public-app #tab-live #scoreboardLandscape .scoreboard-venue-copy>strong{font:500 12px/1.3 Arial,sans-serif;color:#d0dfef}
body.public-app #tab-live #scoreboardLandscape .scoreboard-venue-copy>small,
body.public-app #tab-live #scoreboardLandscape .scoreboard-venue-copy>span,
body.public-app #tab-live #scoreboardLandscape .scoreboard-venue-route{display:none!important}
body.public-app #tab-live #scoreboardLandscape .scoreboard-cup-badge{top:auto;bottom:max(10px,env(safe-area-inset-bottom,0px));left:max(12px,env(safe-area-inset-left,0px));width:30px;height:30px}
body.public-app #tab-live #scoreboardLandscape .scoreboard-cup-badge:not([hidden]){display:block!important}
/* Reuse the existing next-fixture card; never show an old score as a future result. */
body.public-app #tab-live #scoreboardLandscape>.scoreboard-shell.scoreboard-landscape-upcoming>.score{display:none!important}
body.public-app #tab-live #scoreboardLandscape .scoreboard-landscape-upcoming>.live-empty-state:not([hidden]){
 flex:1;min-height:0;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;
 margin:0;padding:58px max(24px,env(safe-area-inset-right,0px)) 10px max(24px,env(safe-area-inset-left,0px));background:none;border:0;border-radius:0;box-shadow:none;color:#fff;text-align:center;
}
body.public-app #tab-live #scoreboardLandscape .live-empty-state>strong{margin:0;font:700 14px/1.2 Arial,sans-serif;color:#d5e5f4}
body.public-app #tab-live #scoreboardLandscape .live-empty-state>.fixture-countdown{display:block;margin:0;padding:4px 10px;border:1px solid #c1dff533;border-radius:20px;background:#082b4de8;color:#ffdf20;font:600 11px/1.2 Arial,sans-serif}
body.public-app #tab-live #scoreboardLandscape .live-empty-state>.upcoming-date{margin:0;color:#d5e5f4;font:500 clamp(12px,3.8dvh,16px)/1.25 Arial,sans-serif}
body.public-app #tab-live #scoreboardLandscape .scoreboard-next-fixture{display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,.8fr) minmax(0,1fr);align-items:start;gap:24px;width:100%;max-width:none;min-width:0;margin:5px 0 3px}
body.public-app #tab-live #scoreboardLandscape .scoreboard-next-fixture>.fixture-team{display:grid;grid-template-rows:var(--landscape-logo) auto;justify-items:center;align-content:start;align-self:start;gap:8px;min-width:0;max-width:100%;margin:0;padding:0;font:700 clamp(14px,4.2dvh,20px)/1.2 Arial,sans-serif;color:#fff;white-space:normal;overflow-wrap:anywhere}
body.public-app #tab-live #scoreboardLandscape .scoreboard-next-fixture .club-logo{width:var(--landscape-logo);height:var(--landscape-logo);object-fit:contain}
body.public-app #tab-live #scoreboardLandscape .upcoming-kickoff{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;height:var(--landscape-logo);min-width:0;padding:0;margin:0;background:none;border:0}
body.public-app #tab-live #scoreboardLandscape .upcoming-kickoff>b{color:#fff;font:750 clamp(36px,13dvh,60px)/1 Arial,sans-serif;letter-spacing:-1px;white-space:nowrap;font-variant-numeric:tabular-nums}
body.public-app #tab-live #scoreboardLandscape .upcoming-kickoff>small{color:#d5e5f4;font:500 11px/1.2 Arial,sans-serif;letter-spacing:.5px}
body.public-app #tab-live #scoreboardLandscape .live-empty-state>.scoreboard-next-type{max-width:100%;margin:0;padding:0;border:0;border-radius:0;background:none;color:#ffdf20;font:600 12px/1.3 Arial,sans-serif;overflow-wrap:anywhere}
body.public-app #scoreboardLandscape>.landscape-tools{position:absolute;z-index:100;left:max(12px,env(safe-area-inset-left,0px));right:max(12px,env(safe-area-inset-right,0px));top:max(8px,env(safe-area-inset-top,0px));display:flex;align-items:center;justify-content:space-between;gap:10px;opacity:1;transition:opacity .18s}
body.public-app #scoreboardLandscape>.landscape-tools-hidden{opacity:0;pointer-events:none}
body.public-app #scoreboardLandscape .landscape-control{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px 13px;border:1px solid #c2def934;border-radius:12px;background:#082b4deb;color:#fff;box-shadow:inset 0 1px 0 #e1f2ff18;backdrop-filter:blur(12px);font:500 12px/1.2 Arial,sans-serif;cursor:pointer}
body.public-app #scoreboardLandscape .landscape-control[aria-pressed="true"]{color:#ffdf20;border-color:#ffdf2066}
@media(max-height:350px){
 body.public-app #tab-live #scoreboardLandscape>.scoreboard-shell{--landscape-logo:58px}
 body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score{padding-top:52px;gap:16px}
 body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .score-centre{gap:4px}
 body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .score-number{font-size:66px}
 body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .minute{font-size:20px;padding:5px 10px}
 body.public-app #tab-live #scoreboardLandscape .scoreboard-shell>.score .team .fixture-team{gap:6px;font-size:14px}
 body.public-app #tab-live #scoreboardLandscape .scoreboard-landscape-upcoming>.live-empty-state:not([hidden]){gap:4px;padding-top:54px;padding-bottom:8px}
 body.public-app #tab-live #scoreboardLandscape .scoreboard-next-fixture{gap:16px}
 body.public-app #tab-live #scoreboardLandscape .scoreboard-next-fixture>.fixture-team{gap:6px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){body.public-app #scoreboardLandscape>.landscape-tools{transition:none}}

/* Explicit TV link, not device guessing. Hide everything outside the original board. */
html.scoreboard-tv-mode,html.scoreboard-tv-mode body.public-app{height:100%;margin:0;padding:0!important;overflow:hidden;background:#051a31}
html.scoreboard-tv-mode body.public-app>:not(main){display:none!important}
html.scoreboard-tv-mode body.public-app>main{display:block!important;position:static!important;width:100%;max-width:none;margin:0;padding:0!important}
html.scoreboard-tv-mode body.public-app>main>.tab-panel:not(#tab-live),
html.scoreboard-tv-mode #tab-live>:not(#scoreboardLandscape){display:none!important}
html.scoreboard-tv-mode body.public-app,html.scoreboard-tv-mode body.public-app>main,html.scoreboard-tv-mode #tab-live{transform:none!important;filter:none!important;backdrop-filter:none!important;contain:none!important;will-change:auto!important;perspective:none!important;content-visibility:visible!important;animation:none!important;transition:none!important}
html.scoreboard-tv-mode #tab-live{display:block!important;margin:0;padding:0}
html.scoreboard-tv-mode #tab-live:before,html.scoreboard-tv-mode #tab-live:after{display:none!important}
body.public-app #scoreboardLandscape.scoreboard-tv-view{width:100vw;height:100vh;height:100dvh;transition:none;animation:none}
body.public-app #scoreboardLandscape .landscape-control[hidden]{display:none!important}
body.public-app #scoreboardLandscape.scoreboard-tv-view>.landscape-tools{flex-wrap:wrap}
body.public-app #scoreboardLandscape .tv-fullscreen-status{flex-basis:100%;color:#fff;text-align:center;font:500 14px/1.4 Arial,sans-serif}
body.public-app #scoreboardLandscape .tv-fullscreen-status:empty{display:none}
body.public-app #tab-live #scoreboardLandscape .scoreboard-tv-message{display:none}
body.public-app #tab-live #scoreboardLandscape .scoreboard-tv-loading>.score,
body.public-app #tab-live #scoreboardLandscape .scoreboard-tv-loading>.live-empty-state,
body.public-app #tab-live #scoreboardLandscape .scoreboard-tv-loading>.scoreboard-venue,
body.public-app #tab-live #scoreboardLandscape .scoreboard-tv-empty>.scoreboard-venue,
body.public-app #tab-live #scoreboardLandscape .scoreboard-tv-empty>.score{display:none!important}
body.public-app #tab-live #scoreboardLandscape .scoreboard-tv-loading>.scoreboard-tv-message,
body.public-app #tab-live #scoreboardLandscape .scoreboard-tv-empty>.live-empty-state:not([hidden]){display:flex!important;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:16px;width:100%;margin:0;padding:80px 6vw 30px;background:none;border:0;color:#f4f8ff;font:600 clamp(18px,3vw,54px)/1.4 Arial,sans-serif;text-align:center}
@media(min-width:900px) and (min-height:500px){
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view>.scoreboard-shell{--landscape-logo:clamp(96px,25vh,560px)}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-shell>.score{grid-template-columns:minmax(0,1fr) minmax(260px,1.2fr) minmax(0,1fr);gap:3vw;padding:12vh 5vw 2vh}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-shell>.score .score-centre{width:100%;max-width:none;justify-self:stretch;gap:2vh}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-shell>.score .scoreboard-status{width:100%;max-width:none;font-size:clamp(16px,2.8vh,60px);letter-spacing:.08em;white-space:nowrap}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-shell>.score .minute{width:auto;min-width:max-content;max-width:none;font-size:clamp(30px,7vh,150px);padding:1vh 1.3vw;border-radius:1.4vh}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-shell>.score .score-number{display:block;max-width:none;font-size:clamp(64px,min(24vh,9vw),640px);letter-spacing:-.02em;word-spacing:-.15em}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-shell>.score .team .fixture-team{gap:1.5vh;font-size:clamp(22px,2.6vw,96px)}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-scorers{font-size:clamp(14px,1.9vh,40px);line-height:1.35}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-scorer{font:inherit;margin-bottom:.4vh}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-scorer-minutes{font:inherit}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-venue{padding:1vh 5vw 3vh}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-venue-copy>strong{font-size:clamp(16px,2vh,44px)}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-cup-badge{width:clamp(40px,5vh,110px);height:clamp(40px,5vh,110px);bottom:2vh;left:3vw}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-landscape-upcoming>.live-empty-state:not([hidden]){gap:2vh;padding:9vh 5vw 3vh}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .live-empty-state>strong{font-size:clamp(20px,3vh,66px)}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .live-empty-state>.fixture-countdown{font-size:clamp(16px,2.3vh,50px);padding:1vh 1.3vw;border-radius:3vh}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .live-empty-state>.upcoming-date{font-size:clamp(20px,3.4vh,74px)}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-next-fixture{grid-template-columns:minmax(0,1fr) minmax(260px,.85fr) minmax(0,1fr);gap:3vw;margin:2vh 0 1vh}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .scoreboard-next-fixture>.fixture-team{gap:2vh;font-size:clamp(22px,2.6vw,96px)}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .upcoming-kickoff>b{font-size:clamp(50px,14vh,300px)}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .upcoming-kickoff>small{font-size:clamp(16px,2.2vh,48px)}
 body.public-app #tab-live #scoreboardLandscape.scoreboard-tv-view .live-empty-state>.scoreboard-next-type{font-size:clamp(18px,2.6vh,56px)}
 body.public-app #scoreboardLandscape.scoreboard-tv-view>.landscape-tools{top:2vh;left:3vw;right:3vw;gap:1vw}
 body.public-app #scoreboardLandscape.scoreboard-tv-view .landscape-control{min-height:48px;padding:1vh 1.4vw;font-size:clamp(14px,1.1vw,28px)}
 body.public-app #scoreboardLandscape.scoreboard-tv-view .tv-fullscreen-status{font-size:clamp(14px,1.2vw,30px)}
}
