/* 5.0.0-beta.2520: stable legionnaire placement plus glyph-safe text boxes for Cyrillic and Romanian diacritics. */
body.golmdm-home-fullwidth-page .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519,
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519{
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:14px!important;
  row-gap:8px!important;
  padding-bottom:3px!important;
  overflow:visible!important;
}
body.golmdm-home-fullwidth-page .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519>.golmdm-match-row-team.is-home,
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519>.golmdm-match-row-team.is-home{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
}
body.golmdm-home-fullwidth-page .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519>.golmdm-home-score,
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519>.golmdm-home-score{
  grid-column:2!important;
  grid-row:1!important;
  align-self:center!important;
}
body.golmdm-home-fullwidth-page .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519>.golmdm-match-row-team.is-away,
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519>.golmdm-match-row-team.is-away{
  grid-column:3!important;
  grid-row:1!important;
  min-width:0!important;
}
body.golmdm-home-fullwidth-page .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519,
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  width:max-content!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  color:#62717d!important;
  font-size:10.5px!important;
  font-weight:650!important;
  line-height:1.34!important;
  letter-spacing:0!important;
  text-transform:none!important;
  opacity:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  padding-block:2px 3px!important;
  margin-block:-2px -3px!important;
}
body.golmdm-home-fullwidth-page .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519.is-home,
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519.is-home{
  grid-column:1!important;
  grid-row:2!important;
  justify-self:end!important;
  text-align:right!important;
}
body.golmdm-home-fullwidth-page .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519.is-away,
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519.is-away{
  grid-column:3!important;
  grid-row:2!important;
  justify-self:start!important;
  text-align:left!important;
}
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519 svg,
.golmdm-matchv89-legion-player-v2518 svg{
  display:block!important;
  width:11px!important;
  height:11px!important;
  flex:0 0 11px!important;
  overflow:visible!important;
  fill:none!important;
  stroke:#2f9f3d!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519>span{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  line-height:1.34!important;
  padding:2px 0 3px!important;
  margin:-2px 0 -3px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-rendering:optimizeLegibility!important;
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
:is(html.golmd-theme-dark,html.golmdm-dark-live,html[data-theme="dark"],html[data-golmdm-real-theme="dark"],html[data-golmdm-live-theme="dark"]) .golmdm-homepage-v1549 .golmdm-home-legion-player-v2519,
body.golmd-theme-dark .golmdm-homepage-v1549 .golmdm-home-legion-player-v2519,
[data-golmdm-theme="dark"] .golmdm-home-legion-player-v2519{
  color:#a9b7c1!important;
}
:is(html.golmd-theme-dark,html.golmdm-dark-live,html[data-theme="dark"],html[data-golmdm-real-theme="dark"],html[data-golmdm-live-theme="dark"]) .golmdm-homepage-v1549 .golmdm-home-legion-player-v2519 svg,
body.golmd-theme-dark .golmdm-homepage-v1549 .golmdm-home-legion-player-v2519 svg,
[data-golmdm-theme="dark"] .golmdm-home-legion-player-v2519 svg{
  stroke:#64d974!important;
}
/* Old cached 2518 row: force the label below instead of beside the logo. */
body.golmdm-home-fullwidth-page .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-match-row-team.has-legionnaire-v2518,
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-match-row-team.has-legionnaire-v2518{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  row-gap:8px!important;
  align-items:center!important;
}
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-match-row-team.has-legionnaire-v2518 .golmdm-home-team-main-v2518{grid-column:1!important;grid-row:1!important;}
.golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-match-row-team.has-legionnaire-v2518 .golmdm-home-legion-player-v2518{grid-column:1!important;grid-row:2!important;margin:0!important;}
@media (max-width:640px){
  body.golmdm-home-fullwidth-page .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519,
  .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-match-scoreline-v1701.has-legionnaire-row-v2519{
    column-gap:10px!important;
    row-gap:6px!important;
    padding-bottom:2px!important;
  }
  .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519{
    gap:3px!important;
    font-size:9.8px!important;
    line-height:1.34!important;
  }
  .golmdm-homepage-v1549.gol-home-sports-showcase-v1593 .golmdm-home-legion-player-v2519 svg{
    width:10px!important;
    height:10px!important;
    flex-basis:10px!important;
  }
}

/* Match page: replace the detached Player / Club strip with a compact line below the right team. */
html body.golmdm-has-league-page #golmdm-virtual-page .golmdm-matchv89-legion-player-v2518{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:9px 0 0!important;
  padding:0!important;
  color:rgba(242,248,244,.76)!important;
  font-size:11.5px!important;
  font-weight:650!important;
  line-height:1.34!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:nowrap!important;
  overflow:visible!important;
  padding-block:2px 3px!important;
  margin-bottom:-3px!important;
}
html body.golmdm-has-league-page #golmdm-virtual-page .golmdm-matchv89-legion-player-v2518>span{
  display:block!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  line-height:1.34!important;
  padding:2px 0 3px!important;
  margin:-2px 0 -3px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  text-rendering:optimizeLegibility!important;
  color:inherit!important;
  -webkit-text-fill-color:currentColor!important;
}
html body.golmdm-has-league-page #golmdm-virtual-page .golmdm-matchv89-legion-player-v2518 svg{
  width:13px!important;
  height:13px!important;
  flex-basis:13px!important;
  stroke:#68d676!important;
}
html body.golmdm-has-league-page #golmdm-virtual-page .golmdm-matchv89-team.has-legionnaire-player-v2518 .golmdm-matchv89-form{
  margin-top:7px!important;
}
@media (max-width:640px){
  .golmdm-home-match .golmdm-home-team-main-v2518{gap:7px!important;}
  .golmdm-home-match .golmdm-home-legion-player-v2518{
    gap:3px!important;
    margin-top:5px!important;
    font-size:9.7px!important;
    line-height:1.06!important;
  }
  .golmdm-home-match .golmdm-home-legion-player-v2518 svg{
    width:10px!important;
    height:10px!important;
    flex-basis:10px!important;
  }
  html body.golmdm-has-league-page #golmdm-virtual-page .golmdm-matchv89-legion-player-v2518{
    gap:3px!important;
    margin-top:6px!important;
    font-size:9.5px!important;
    line-height:1.34!important;
  }
  html body.golmdm-has-league-page #golmdm-virtual-page .golmdm-matchv89-legion-player-v2518 svg{
    width:10px!important;
    height:10px!important;
    flex-basis:10px!important;
  }
}
