/* V25 – taktisch korrekte Tiefenstaffelung für ALLE Vereine.
   Bildgröße, Schildform und Spielerbeschriftung aus V24 bleiben unverändert.
   Zonen von oben nach unten: Sturm -> offensives Mittelfeld -> ZM/6er -> Abwehr -> Torwart.
   Das mittige Spielfeldmuster bleibt bestehen; seine Position ist nicht an Spielerhöhen gekoppelt. */
#matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates) {
  display:grid!important;
  box-sizing:border-box!important;
  grid-template-columns:minmax(0,1fr)!important;
  /* 4 Reihen: ST 10 %, MF 34 %, Abwehr 64 %, TW 90 % */
  grid-template-rows:minmax(0,.9fr) minmax(0,1.3fr) minmax(0,1.4fr) minmax(0,.9fr)!important;
  align-content:stretch!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  row-gap:0!important;
  column-gap:0!important;
  padding-block:14px!important;
}
/* 5 Reihen: ST 8 %, OM 26 %, ZM/DM 48 %, Abwehr 70 %, TW 90 % */
#matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates)[data-row-count="5"] {
  grid-template-rows:minmax(0,.75fr) minmax(0,1.05fr) minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.95fr)!important;
}
/* Sechserstaffelung mit deutlichem Abstand zwischen letzter 6er- und Abwehrreihe. */
#matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates)[data-row-count="6"] {
  grid-template-rows:minmax(0,.65fr) minmax(0,.95fr) minmax(0,.95fr) minmax(0,1fr) minmax(0,1.15fr) minmax(0,.8fr)!important;
}
/* Auch ungewöhnliche 3- oder 7-Reihen-Systeme erhalten deterministische Slots. */
#matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates)[data-row-count="3"] {
  grid-template-rows:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr)!important;
}
#matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates)[data-row-count="7"] {
  grid-template-rows:repeat(7,minmax(0,1fr))!important;
  min-height:730px!important;
}
#matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates) > .mc-pitch-row {
  display:grid!important;
  align-self:stretch!important;
  align-items:center!important;
  align-content:center!important;
  justify-items:center!important;
  justify-content:stretch!important;
  grid-template-columns:repeat(var(--mc-count),minmax(0,1fr))!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  flex:none!important;
  padding:0!important;
  margin:0!important;
  gap:3px!important;
}
/* Einen Kicker-Schild samt Name und Position auf seiner ursprünglichen Größe lassen. */
#matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates) > .mc-pitch-row > .mc-player {
  align-self:center!important;
  justify-self:center!important;
  margin:0 auto!important;
}
/* Mobile: mehr vertikaler Raum bei 5+ Reihen, nicht größere Spielerbilder. */
@media(max-width:560px) {
  #matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates)[data-row-count="5"] {min-height:590px!important;}
  #matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates)[data-row-count="6"] {min-height:700px!important;}
  #matchcenterRoot .mc-lineup-panel > .mc-pitch:not(.mc-pitch-coordinates) {padding-block:12px!important;}
}
