/* FM27 R61.0 – one consistent match per row; safe for all matchday views.
 * Layout-only. Never target images outside the common .fm27-r2740-fixture component.
 * Shipped because earlier R27.40 CSS is referenced by layout, but absent from the
 * checked Nov 10 webroot archive. Explicit sizes are essential on mobile. */
body.fm27-midnight .fm27-r2740-fixture {
  display:grid !important;
  grid-template-columns: minmax(56px,96px) minmax(0,1fr) minmax(56px,86px) minmax(0,1fr) minmax(102px,162px) 20px;
  align-items:center; column-gap:9px; row-gap:0;
  box-sizing:border-box; min-width:0; width:100%;
  min-height:62px; margin:0; padding:9px 13px;
  background:#192840; border:0; border-bottom:1px solid #394a66;
  border-radius:0;
  color:#e9f1ff; font-size:.78rem;
}
body.fm27-midnight .fm27-r2740-fixture:nth-child(even) {background:#1b2a44;}
body.fm27-midnight .fm27-r2740-fixture:hover {background:#243450;}
body.fm27-midnight .fm27-r2740-fixture > * {min-width:0; max-width:100%;}
body.fm27-midnight .fm27-r2740-fixture a {color:#ebf3ff; text-decoration:none;}
body.fm27-midnight .fm27-r2740-fixture a:hover {color:#fff;}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-kind {
  display:flex; align-items:center; gap:5px; min-width:0; overflow:hidden;
  color:#b2c3df; font-size:.68rem; line-height:1.15;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-kind > span {
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team {
  display:flex; gap:7px; align-items:center; min-width:0; width:100%;
  font-size:.81rem; font-weight:680; line-height:1.2;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team.is-home {justify-content:flex-end; text-align:right;}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team.is-away {justify-content:flex-start; text-align:left;}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team > span {
  flex:0 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team > img,
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team > i.bi-shield {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 26px; width:26px !important; height:26px !important;
  min-width:26px; max-width:26px !important; max-height:26px !important;
  object-fit:contain; vertical-align:middle; margin:0 !important; padding:0 !important;
  font-size:20px;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-kind img {
  box-sizing:border-box; flex:0 0 18px; width:18px !important; height:18px !important;
  max-width:18px !important; max-height:18px !important; object-fit:contain;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-score {
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  min-width:0; width:100%; padding:5px 3px;
  background:#263653; border:1px solid #425675; border-radius:7px;
  text-align:center; font-variant-numeric:tabular-nums;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-score strong {
  font-size:.95rem; font-weight:800; line-height:1.24; white-space:nowrap;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-score small {font-size:.64rem;color:#b9cbe3;line-height:1.2;}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-time {
  display:block; font-size:.7rem; color:#b4c6df; line-height:1.3; text-align:right;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-open {
  display:flex;align-items:center;justify-content:center;width:20px;min-width:0;
  color:#bdcafa;font-size:.8rem;
}
body.fm27-midnight .fm27-r2740-fixture .fm27-r2744-result-note {
  grid-column:2/5;grid-row:2;white-space:normal;text-align:center;
  padding:0 4px 3px;color:#b9c8e5;font-size:.67rem;
}
/* Applicable to both Mein Spielplan, Ergebnisse and Heute/Nächste Spiele.
   A match stays one horizontal row on phones; detailed time collapses to a
   shorter context to leave room for names, score and crests. */
@media(max-width:760px) {
 body.fm27-midnight .fm27-r2740-fixture {
   grid-template-columns: 20px minmax(0,1fr) 55px minmax(0,1fr) 14px;
   gap:5px; padding:9px 8px; min-height:55px;
 }
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-kind {
   grid-column:1;gap:0;justify-content:center;
 }
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-kind > span {display:none;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team.is-home {grid-column:2;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-score {grid-column:3;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team.is-away {grid-column:4;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-time {display:none;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-open {grid-column:5;width:14px;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team {gap:4px;font-size:.71rem;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team > img,
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team > i.bi-shield {
   flex-basis:21px;width:21px !important;height:21px !important;
   min-width:21px;max-width:21px !important;max-height:21px !important;
   font-size:17px;
 }
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-score {padding:5px 2px;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-score strong {font-size:.82rem;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2744-result-note {grid-column:2/5;grid-row:2;font-size:.62rem;}
}
@media(max-width:390px) {
 body.fm27-midnight .fm27-r2740-fixture {gap:3px;padding-inline:5px;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-team {font-size:.66rem;}
 body.fm27-midnight .fm27-r2740-fixture .fm27-r2740-fixture-score {min-width:49px;}
}
