/* The score board and player summaries share the same three column axes. */
.single-match-stage-inner.fhz-match-aligned{
  --fhz-match-columns:minmax(0,1fr) minmax(120px,.72fr) minmax(0,1fr);
  --fhz-match-gap:clamp(12px,2.5vw,30px);
  display:flex;flex-direction:column;justify-content:flex-end;
  min-height:520px;padding:180px 24px 28px;box-sizing:border-box;
}
.single-match-stage-inner.fhz-match-aligned .single-match-label{
  position:relative;inset:auto;transform:none;align-self:center;
  margin:0 auto 24px;max-width:100%;text-align:center;justify-content:center;
}
.single-match-stage-inner.fhz-match-aligned .single-match-center,
.single-match-stage-inner.fhz-match-aligned .fhz-result-scorers{
  position:relative;inset:auto;transform:none;display:grid;
  grid-template-columns:var(--fhz-match-columns);column-gap:var(--fhz-match-gap);
  width:100%;max-width:960px;margin:0 auto;padding:0;box-sizing:border-box;
}
.single-match-stage-inner.fhz-match-aligned .single-match-center{grid-template-rows:auto auto auto;align-items:stretch;row-gap:0}
.fhz-match-aligned .single-match-team{
  grid-row:1 / span 3;display:grid;grid-template-rows:subgrid;
  justify-items:center;align-items:center;min-width:0;text-align:center;
}
.fhz-match-aligned .single-match-team:first-child{grid-column:1}
.fhz-match-aligned .single-match-team:last-child{grid-column:3}
.fhz-match-aligned .single-match-logo{
  width:clamp(64px,7vw,88px);height:clamp(64px,7vw,88px);padding:8px;
  box-sizing:border-box;margin:0 auto 12px;display:grid;place-items:center;
}
.fhz-match-aligned .single-match-logo img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.fhz-match-aligned .single-match-team h2{
  width:100%;margin:0 0 6px;min-height:2.4em;display:grid;place-content:center;
  font-size:clamp(15px,1.8vw,20px);line-height:1.2;overflow-wrap:anywhere;text-align:center;
}
.fhz-match-aligned .single-match-team>span{margin:0;text-align:center;line-height:1.4}
.fhz-match-aligned .single-match-score{
  grid-column:2;grid-row:1 / span 3;align-self:center;min-width:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  font-size:clamp(38px,6vw,74px);line-height:1;white-space:nowrap;text-align:center;
}
.fhz-match-aligned .single-match-score small{
  display:block;width:100%;margin:0;font-size:clamp(10px,1.1vw,13px);
  line-height:1.5;white-space:normal;text-align:center;
}
.single-match-stage-inner.fhz-match-aligned .fhz-result-scorers{
  grid-template-rows:repeat(4,auto);row-gap:6px;margin-top:24px;padding-top:16px;
  border-top:1px solid rgba(255,255,255,.15);
}
.fhz-match-aligned .fhz-result-scorers>div{
  grid-row:1 / span 4;display:grid;grid-template-rows:subgrid;min-width:0;
  text-align:center;align-items:start;
}
.fhz-match-aligned .fhz-result-scorers>div:first-child{grid-column:1}
.fhz-match-aligned .fhz-result-scorers>div:last-child{grid-column:3}
.fhz-match-aligned .fhz-result-scorers span{grid-row:1;margin:0;overflow-wrap:anywhere}
.fhz-match-aligned .fhz-result-scorers strong{margin:0;font-size:13px;line-height:1.6;text-align:center}
.fhz-match-aligned .fhz-result-scorers strong:not(.fhz-result-assists):not(.fhz-result-cards){grid-row:2}
.fhz-match-aligned .fhz-result-scorers .fhz-result-assists{grid-row:3;margin:0}
.fhz-match-aligned .fhz-result-scorers .fhz-result-cards{grid-row:4;margin:0}
@media(max-width:640px){
  .single-match-stage-inner.fhz-match-aligned{
    --fhz-match-columns:minmax(0,1fr) minmax(80px,.65fr) minmax(0,1fr);
    --fhz-match-gap:10px;padding:130px 12px 22px;min-height:0;
  }
  .fhz-match-aligned .single-match-label{font-size:11px}
  .fhz-match-aligned .single-match-logo{width:60px;height:60px;padding:6px}
  .fhz-match-aligned .single-match-team h2{font-size:14px}
  .fhz-match-aligned .single-match-team>span{font-size:11px}
  .fhz-match-aligned .single-match-score{font-size:clamp(28px,7vw,44px);gap:10px}
  .fhz-match-aligned .single-match-score small{font-size:10px}
  .fhz-match-aligned .fhz-result-scorers strong{font-size:12px}
  .fhz-match-aligned .fhz-result-scorers span{font-size:10px}
}

/* Compact, scannable metadata for the direct-comparison header. */
.single-match-h2h-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.single-match-h2h-header h3{flex:0 0 auto;margin:0}
.single-match-h2h-header .fhz-h2h-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.single-match-h2h-header .fhz-h2h-meta span{display:inline-flex;align-items:center;gap:4px;padding:8px 11px;border:1px solid rgba(159,180,197,.22);border-radius:999px;background:rgba(255,255,255,.025);color:#9fb4c5;font-size:clamp(11px,1vw,12px);font-weight:800;line-height:1.25;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}
.single-match-h2h-header .fhz-h2h-meta strong{color:#fff;font:inherit}
body.single-flh_spiel .single-match-h2h-grid{align-items:stretch}
body.single-flh_spiel .single-match-h2h-grid .fhz-h2h-balance{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
body.single-flh_spiel .single-match-h2h-grid .fhz-h2h-balance>span:last-child{font-size:clamp(14px,1.25vw,16px);line-height:1.35;text-align:center}
body.single-flh_spiel .fhz-h2h-balance-logo{display:grid;place-items:center;width:clamp(50px,5vw,62px);height:clamp(50px,5vw,62px);margin:0 0 2px;padding:7px;box-sizing:border-box;border:1px solid rgba(159,180,197,.24);background:rgba(4,9,8,.45);color:#c6ff00;font-size:18px;font-weight:900;line-height:1}
body.single-flh_spiel .fhz-h2h-balance-logo img{display:block;width:100%;height:100%;object-fit:contain}
body.single-flh_spiel .fhz-h2h-balance-draw{padding-top:62px}
@media(max-width:700px){
  .single-match-h2h-header{flex-direction:column;gap:12px}
  .single-match-h2h-header .fhz-h2h-meta{justify-content:flex-start}
  .single-match-h2h-header .fhz-h2h-meta span{padding:7px 9px}
}

/* Match pages follow the homepage's deliberately square card language. */
body.single-flh_spiel .single-match-stage-inner,
body.single-flh_spiel .single-match-card,
body.single-flh_spiel .single-match-logo,
body.single-flh_spiel .single-match-label,
body.single-flh_spiel .badge,
body.single-flh_spiel .fhz-h2h-meta span,
body.single-flh_spiel .single-match-h2h-extra>div{border-radius:0}

/* Put the goal total above a full-width list of recent direct meetings. */
body.single-flh_spiel .fhz-h2h-results{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}
body.single-flh_spiel .fhz-h2h-goals-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;width:100%;box-sizing:border-box}
body.single-flh_spiel .fhz-h2h-goals-card span{margin:0}
body.single-flh_spiel .fhz-h2h-goals-card strong{flex:0 0 auto;margin:0;font-size:clamp(26px,3vw,34px);line-height:1}
body.single-flh_spiel .fhz-h2h-history-card{width:100%;box-sizing:border-box}
body.single-flh_spiel .fhz-h2h-history-card>span{display:block;margin-bottom:12px;font-size:14px;line-height:1.3}
body.single-flh_spiel .fhz-h2h-list{list-style:none;margin:0;padding:0;border-top:1px solid rgba(159,180,197,.18)}
body.single-flh_spiel .fhz-h2h-row{display:grid;grid-template-columns:86px minmax(0,1fr) 54px minmax(0,1fr);gap:6px 12px;align-items:center;margin:0;padding:10px 0;border-bottom:1px solid rgba(159,180,197,.14)}
body.single-flh_spiel .fhz-h2h-row time{color:#9fb4c5;font-size:14px;font-weight:800;white-space:nowrap}
body.single-flh_spiel .fhz-h2h-team{display:flex;align-items:center;min-width:0;color:#fff;font-size:clamp(15px,1.35vw,17px);font-weight:800;line-height:1.35;overflow-wrap:anywhere}
body.single-flh_spiel .fhz-h2h-team .fhz-team-label{display:inline-flex!important;align-items:center;flex-wrap:nowrap;width:auto;gap:9px}
body.single-flh_spiel .fhz-h2h-team .fhz-team-label img{flex:0 0 30px;width:30px;height:30px}
body.single-flh_spiel .fhz-h2h-team .fhz-team-label>span{margin:0!important}
body.single-flh_spiel .fhz-h2h-home{justify-content:flex-end;text-align:right}
body.single-flh_spiel .fhz-h2h-home .fhz-team-label{flex-direction:row-reverse;justify-content:flex-start}
body.single-flh_spiel .fhz-h2h-away{justify-content:flex-start;text-align:left}
body.single-flh_spiel .fhz-h2h-away .fhz-team-label{justify-content:flex-start}
body.single-flh_spiel .fhz-h2h-row .fhz-h2h-score{color:#c6ff00;font-size:21px;line-height:1.1;text-align:center;white-space:nowrap}
body.single-flh_spiel .fhz-h2h-row small{grid-column:2/5;color:#9fb4c5;font-size:12px;font-weight:700;line-height:1.3;text-align:center;text-transform:uppercase;letter-spacing:.035em}
body.single-flh_spiel .fhz-h2h-all{margin-top:12px}
body.single-flh_spiel .fhz-h2h-all summary{width:max-content;max-width:100%;padding:8px 11px;border:1px solid #35433b;color:#c6ff00;font-size:12px;font-weight:900;line-height:1.2;text-transform:uppercase;letter-spacing:.04em;cursor:pointer}
body.single-flh_spiel .fhz-h2h-all[open] summary{margin-bottom:10px}
body.single-flh_spiel .fhz-h2h-history-card:has(.fhz-h2h-all[open])>.fhz-h2h-recent{display:none}
@media(max-width:700px){
  body.single-flh_spiel .fhz-h2h-balance-logo{width:46px;height:46px;padding:6px}
  body.single-flh_spiel .fhz-h2h-balance-draw{padding-top:54px}
  body.single-flh_spiel .fhz-h2h-goals-card{gap:12px}
  body.single-flh_spiel .fhz-h2h-goals-card strong{font-size:24px}
  body.single-flh_spiel .fhz-h2h-row{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);gap:6px 8px}
  body.single-flh_spiel .fhz-h2h-row time{grid-column:1/-1;text-align:center}
  body.single-flh_spiel .fhz-h2h-team .fhz-team-label{gap:6px}
  body.single-flh_spiel .fhz-h2h-team .fhz-team-label img{flex-basis:24px;width:24px;height:24px}
  body.single-flh_spiel .fhz-h2h-row .fhz-h2h-score{font-size:19px}
  body.single-flh_spiel .fhz-h2h-row small{grid-column:1/-1}
}
/* Shared chronological goal strip within the match image. */
.fhz-match-aligned .fhz-match-timeline{position:relative;width:100%;max-width:760px;margin:24px auto 0;padding-top:18px;border-top:1px solid rgba(200,255,0,.2);color:#fff}
.fhz-match-aligned .fhz-match-timeline h3{margin:0 0 12px;color:#c8ff00;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;text-align:left}
.fhz-match-aligned .fhz-timeline-list{list-style:none;margin:0;padding:0;display:grid;gap:0}
.fhz-match-aligned .fhz-timeline-event{position:relative;display:grid;grid-template-columns:64px 70px 32px minmax(0,1fr);align-items:center;gap:14px;min-height:64px;margin:0;padding:10px 14px;background:rgba(3,12,8,.64);border-bottom:1px solid rgba(255,255,255,.1);text-align:left}
.fhz-match-aligned .fhz-timeline-event:first-child{border-top:1px solid rgba(255,255,255,.1)}
.fhz-match-aligned .fhz-timeline-minute{color:#c8ff00;font-size:17px;font-weight:900;font-variant-numeric:tabular-nums;text-align:center}
.fhz-match-aligned .fhz-timeline-score{display:grid;place-items:center;padding:7px 0;border:1px solid rgba(200,255,0,.26);background:rgba(200,255,0,.07);color:#fff;font-size:17px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.fhz-match-aligned .fhz-timeline-logo{display:grid;place-items:center;width:32px;height:32px}
.fhz-match-aligned .fhz-timeline-logo img{display:block;width:28px;height:28px;object-fit:contain}
.fhz-match-aligned .fhz-timeline-player{min-width:0}
.fhz-match-aligned .fhz-timeline-player strong{display:block;color:#fff;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.fhz-match-aligned .fhz-timeline-player small{display:block;margin-top:3px;color:#aac0cf;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.fhz-match-aligned .fhz-timeline-player small span{display:block;font-size:13px;line-height:1.45}
.fhz-match-aligned .fhz-timeline-empty,.fhz-match-aligned .fhz-timeline-assists{margin:12px 0 0;color:#aac0cf;font-size:12px;line-height:1.5}
.fhz-match-aligned .fhz-timeline-cards{margin:14px 0 0;padding-top:12px;border-top:1px solid rgba(255,80,80,.18);color:#ff5c5c;font-size:12px;font-weight:700;line-height:1.5}
@media(max-width:640px){
.fhz-match-aligned .fhz-timeline-event{grid-template-columns:45px 54px 24px minmax(0,1fr);gap:8px;padding:10px 6px}
.fhz-match-aligned .fhz-timeline-minute,.fhz-match-aligned .fhz-timeline-score{font-size:14px}
.fhz-match-aligned .fhz-timeline-logo{width:24px;height:24px}
.fhz-match-aligned .fhz-timeline-logo img{width:24px;height:24px}
.fhz-match-aligned .fhz-timeline-player strong{font-size:12px}
.fhz-match-aligned .fhz-timeline-player small{font-size:10px}
}

/* Team events flank one shared minute axis. */
.fhz-match-aligned .fhz-match-timeline{max-width:960px}
.fhz-match-aligned .fhz-timeline-event{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);gap:16px;padding:10px 0;background:rgba(3,12,8,.42);min-height:66px}
.fhz-match-aligned .fhz-timeline-minute{grid-column:2;grid-row:1;position:relative;z-index:1;padding:9px 0;border:1px solid rgba(200,255,0,.3);background:#0a170f;font-size:15px}
.fhz-match-aligned .fhz-timeline-event:before{content:'';position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(200,255,0,.25)}
.fhz-match-aligned .fhz-timeline-detail{grid-row:1;display:flex;align-items:center;gap:12px;min-width:0}
.fhz-match-aligned .fhz-timeline-event--home .fhz-timeline-detail{grid-column:1;justify-content:flex-end;text-align:right}
.fhz-match-aligned .fhz-timeline-event--away .fhz-timeline-detail{grid-column:3;text-align:left}
.fhz-match-aligned .fhz-timeline-event--home .fhz-timeline-logo{order:3}
.fhz-match-aligned .fhz-timeline-event--home .fhz-timeline-score,.fhz-match-aligned .fhz-timeline-event--home .fhz-timeline-card-icon{order:4}
.fhz-match-aligned .fhz-timeline-event--away .fhz-timeline-score,.fhz-match-aligned .fhz-timeline-event--away .fhz-timeline-card-icon{order:-1}
.fhz-match-aligned .fhz-timeline-score{flex:0 0 54px;padding:6px 0;font-size:14px}
.fhz-match-aligned .fhz-timeline-logo{flex:0 0 28px}
.fhz-match-aligned .fhz-timeline-card-icon{flex:0 0 13px;height:19px;background:#ff414c;border-radius:2px;margin:0 12px;position:relative}
.fhz-match-aligned .fhz-timeline-card-icon--yellow-red:before{content:'';position:absolute;width:13px;height:19px;background:#ffcd32;border-radius:2px;top:-4px;left:-5px;z-index:-1}
.fhz-match-aligned .fhz-timeline-event--card .fhz-timeline-detail{isolation:isolate}
.fhz-match-aligned .fhz-timeline-event--card .fhz-timeline-player small{color:#ff6570}
@media(max-width:640px){
.fhz-match-aligned .fhz-timeline-event{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);gap:7px;min-height:75px}
.fhz-match-aligned .fhz-timeline-minute{font-size:12px}
.fhz-match-aligned .fhz-timeline-detail{flex-wrap:wrap;gap:4px 6px}
.fhz-match-aligned .fhz-timeline-player{flex:0 0 100%}
.fhz-match-aligned .fhz-timeline-event--home .fhz-timeline-player{order:0}
.fhz-match-aligned .fhz-timeline-event--away .fhz-timeline-player{order:0}
.fhz-match-aligned .fhz-timeline-event--away .fhz-timeline-score,.fhz-match-aligned .fhz-timeline-event--away .fhz-timeline-card-icon{order:1}
.fhz-match-aligned .fhz-timeline-event--away .fhz-timeline-logo{order:2}
.fhz-match-aligned .fhz-timeline-score{flex-basis:42px;font-size:12px;padding:3px 0}
.fhz-match-aligned .fhz-timeline-player strong{font-size:12px}
.fhz-match-aligned .fhz-timeline-card-icon{margin:0 9px}
}

@media(max-width:640px){.fhz-match-aligned .fhz-timeline-player small span{font-size:12px}}

.fhz-match-aligned .fhz-timeline-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 7px}
.fhz-match-aligned .fhz-timeline-event--home .fhz-timeline-name{justify-content:flex-end}
.fhz-match-aligned .fhz-timeline-type{font-size:14px;line-height:1.35;color:#aac0cf;white-space:nowrap}
@media(max-width:640px){.fhz-match-aligned .fhz-timeline-name{gap:2px 5px}.fhz-match-aligned .fhz-timeline-type{font-size:13px}}
