/* STS v5.6.168 - Five-card live preview rail
   Bottom rail now fits 5 cards across and shuffles through all live streams. */
html body.streamx-v5.twitch-v53 .sts-live-card-rail{
  margin-top:18px!important;
  display:grid!important;
  grid-template-columns:repeat(5, minmax(0, 1fr))!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  align-items:stretch!important;
  overflow:hidden!important;
}

html body.streamx-v5.twitch-v53 .sts-live-card-rail .sts-live-mini-card{
  display:none!important;
}

html body.streamx-v5.twitch-v53 .sts-live-card-rail .sts-live-mini-card.rail-visible{
  display:block!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-card{
  height:92px!important;
  min-height:92px!important;
  border-radius:13px!important;
  box-shadow:0 10px 25px rgba(0,0,0,.32)!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-card.active{
  box-shadow:0 0 0 2px rgba(57,255,20,.75),0 0 22px rgba(57,255,20,.20),0 14px 32px rgba(0,0,0,.42)!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-live,
html body.streamx-v5.twitch-v53 .sts-live-mini-viewers,
html body.streamx-v5.twitch-v53 .sts-live-mini-meta{
  display:none!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-video,
html body.streamx-v5.twitch-v53 .sts-live-mini-bg{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

html body.streamx-v5.twitch-v53 .sts-live-card-rail.single-preview,
html body.streamx-v5.twitch-v53 .sts-live-card-rail.few-previews{
  grid-template-columns:repeat(5, minmax(0, 1fr))!important;
  justify-content:stretch!important;
}

@media(max-width:1200px){
  html body.streamx-v5.twitch-v53 .sts-live-mini-card{height:82px!important;min-height:82px!important;}
}

@media(max-width:760px){
  html body.streamx-v5.twitch-v53 .sts-live-card-rail{
    grid-template-columns:repeat(2, minmax(0, 1fr))!important;
    overflow:visible!important;
  }
  html body.streamx-v5.twitch-v53 .sts-live-mini-card{height:96px!important;min-height:96px!important;}
}
