/* League identity alongside the venue, below the date and kick-off. */
.football-next .game-venue{display:grid;grid-template-columns:minmax(0,max-content) 48px;column-gap:22px;align-items:center;justify-content:start}
.football-next .game-venue>span{grid-column:1;grid-row:1}
.football-next .game-venue>strong{grid-column:1;grid-row:2}
.football-next .game-venue>p{grid-column:1;grid-row:3}
.football-next .game-venue .next-league-logo{grid-column:2;grid-row:1 / 4;display:block;width:48px;height:54px;object-fit:contain;align-self:center;margin:0;filter:drop-shadow(0 3px 8px #0005)}
.football-next .game-venue .next-league-logo[hidden]{display:none}
#spielplan{scroll-margin-top:24px}
@media(max-width:640px){.football-next .game-venue{column-gap:18px;grid-template-columns:minmax(0,max-content) 42px}.football-next .game-venue .next-league-logo{width:42px;height:48px}}

/* Homepage: dedicated league slot immediately to the left of ticket actions. */
.stadium-game{grid-template-columns:236px minmax(0,1fr) 96px 160px;grid-template-areas:'intro match league actions' 'intro venue league actions'}
.stadium-game>.next-league-logo{grid-area:league;display:block;justify-self:center;align-self:center;width:64px;height:76px;object-fit:contain;margin:0;filter:drop-shadow(0 3px 8px #0005)}
.stadium-game>.next-league-logo[hidden]{display:none}
@media(min-width:851px) and (max-width:1180px){.stadium-game{grid-template-columns:210px minmax(0,1fr) 64px 140px;column-gap:20px}.stadium-game>.next-league-logo{width:52px;height:62px}}
@media(max-width:850px){.stadium-game{grid-template-columns:minmax(0,1fr) 150px;grid-template-areas:'intro intro' 'match actions' 'venue league';gap:22px 24px}.stadium-game>.next-league-logo{width:52px;height:62px}}
@media(max-width:640px){.stadium-game{grid-template-columns:minmax(0,1fr) 64px;grid-template-areas:'intro intro' 'match match' 'venue league' 'actions actions';gap:22px 16px}.stadium-game>.next-league-logo{width:48px;height:56px}.stadium-game .game-actions{grid-column:1 / -1}}

/* Keep the home/away label centred directly below the Next Game title. */
.next-label .next-game-heading{display:inline-flex;flex-direction:column;align-items:center;max-width:100%}
.stadium-game .next-label .next-game-heading .game-home,
.football-page .football-next .next-label .next-game-heading .game-home{display:block;align-self:stretch;text-align:center;margin:10px 0 0;font:600 10px/1.5 var(--tech);letter-spacing:2.2px;color:#c7cbd0}
.next-label .next-game-heading .game-home[hidden]{display:none!important}

.game-strip > .next-game-coach {
 position:absolute; inset:auto 0 0; z-index:-1; margin:0; padding:0;
 height:clamp(43px,4.7vw,72px); overflow:hidden; pointer-events:none;
}
.next-game-coach canvas {display:block;width:100%;height:100%}

.game-strip .next-label .next-game-heading .game-home.is-parked {
 color:#fff;
 text-shadow:0 0 4px #fff,0 0 10px #ffffffad,0 0 18px #ffffff70;
}

.game-strip > .next-game-coach[hidden]{display:none}
@media(min-width:761px){.football-main > .stadium-game{margin-top:var(--football-nav-gap)}}
@media(max-width:760px){
 #main .stadium-game{grid-template-columns:minmax(0,1fr) 48px;grid-template-areas:'intro intro' 'match match' 'venue league' 'actions actions';gap:22px 14px;padding:30px 20px}
 #main .stadium-game .next-label{grid-area:intro;flex-wrap:wrap;min-width:0;max-width:100%;padding:0 0 18px}
 #main .stadium-game .next-label h2{white-space:normal;font-size:clamp(34px,9vw,44px);margin:0}
 #main .stadium-game .fixture-pair{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0}
 #main .stadium-game .fixture-club{width:100%;min-width:0;gap:12px}
 #main .stadium-game .fixture-club strong{font-size:clamp(24px,6.5vw,32px);min-width:0;white-space:normal;overflow-wrap:anywhere}
 #main .stadium-game .fixture-versus{padding-left:46px}
 #main .stadium-game .fixture-club-logo{width:34px;height:40px;flex:none}
 #main .stadium-game .game-venue{padding-left:0;min-width:0;overflow-wrap:anywhere}
 #main .stadium-game .game-actions{grid-area:actions;display:flex;flex-wrap:wrap;gap:14px;min-width:0}
 #main .stadium-game .game-actions>a{min-width:0;min-height:44px}
 #main .stadium-game .game-actions .button{min-width:0;flex:1 1 160px;max-width:100%}
 #main .stadium-game>.next-league-logo{width:42px;height:50px}
}
