/* STS v5.6.163 - real platform showcase layout, not a mockup image
   Makes the homepage carousel fit the screen better, pulls the right panel in,
   and turns the bottom rail into 5 real random-live cards. */

html body.streamx-v5.twitch-v53 .sts-tv-home{
  display:grid!important;
  grid-template-columns:300px minmax(0,1fr)!important;
  gap:28px!important;
  width:100%!important;
  max-width:1920px!important;
  margin:0 auto!important;
  padding:24px 28px 80px!important;
  box-sizing:border-box!important;
}

html body.streamx-v5.twitch-v53 .sts-tv-sidebar{
  width:300px!important;
  min-width:300px!important;
  position:sticky!important;
  top:118px!important;
  align-self:start!important;
}

html body.streamx-v5.twitch-v53 .sts-tv-main{
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  padding-right:18px!important;
  box-sizing:border-box!important;
}

html body.streamx-v5.twitch-v53 .sts-live-showcase{
  width:100%!important;
  max-width:1540px!important;
  margin:18px auto 46px!important;
  padding:0!important;
  box-sizing:border-box!important;
}

html body.streamx-v5.twitch-v53 .sts-live-main-card{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(0, 1fr) 360px!important;
  min-height:500px!important;
  border-radius:24px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 12% 18%, rgba(57,255,20,.10), transparent 34%),
    radial-gradient(circle at 85% 90%, rgba(139,92,246,.24), transparent 45%),
    linear-gradient(135deg, rgba(3,7,10,.98), rgba(9,10,18,.98))!important;
  border:1px solid rgba(57,255,20,.30)!important;
  box-shadow:0 0 0 1px rgba(139,92,246,.18) inset,0 24px 70px rgba(0,0,0,.48),0 0 44px rgba(57,255,20,.10)!important;
}

html body.streamx-v5.twitch-v53 .sts-live-preview-stack{
  min-height:500px!important;
  background:#020609!important;
}

html body.streamx-v5.twitch-v53 .sts-live-preview img{
  object-fit:cover!important;
  object-position:center!important;
}

html body.streamx-v5.twitch-v53 .sts-live-details{
  width:360px!important;
  padding:40px 34px!important;
  background:
    radial-gradient(circle at 24% 12%, rgba(57,255,20,.12), transparent 32%),
    radial-gradient(circle at 90% 80%, rgba(139,92,246,.22), transparent 44%),
    linear-gradient(180deg, rgba(8,12,20,.98), rgba(4,6,12,.99))!important;
  border-left:1px solid rgba(57,255,20,.22)!important;
  box-sizing:border-box!important;
}

html body.streamx-v5.twitch-v53 .sts-watch-earn{
  border-radius:16px!important;
  background:linear-gradient(135deg,#39ff14 0%,#73ff4d 45%,#8b5cf6 100%)!important;
  color:#030608!important;
  box-shadow:0 16px 38px rgba(57,255,20,.18),0 0 24px rgba(139,92,246,.20)!important;
}

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:14px!important;
  width:100%!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-card{
  height:132px!important;
  min-height:132px!important;
  border-radius:16px!important;
  padding:0!important;
  overflow:hidden!important;
  position:relative!important;
  background:#05080d!important;
  border:1px solid rgba(139,92,246,.30)!important;
  opacity:.88!important;
  cursor:pointer!important;
  box-shadow:0 14px 34px rgba(0,0,0,.35)!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-card.active{
  opacity:1!important;
  border-color:#39ff14!important;
  box-shadow:0 0 0 2px rgba(57,255,20,.65),0 0 28px rgba(57,255,20,.18),0 18px 44px rgba(0,0,0,.45)!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-bg{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  filter:saturate(1.08) contrast(1.08) brightness(.88)!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-card::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.82) 100%)!important;
  z-index:1!important;
  pointer-events:none!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:flex!important;
  position:absolute!important;
  z-index:2!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-live{
  top:10px!important;
  left:10px!important;
  height:24px!important;
  align-items:center!important;
  padding:0 8px!important;
  border-radius:7px!important;
  background:#ff2f63!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:1000!important;
  letter-spacing:.04em!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-viewers{
  top:10px!important;
  right:10px!important;
  height:24px!important;
  align-items:center!important;
  padding:0 9px!important;
  border-radius:999px!important;
  background:rgba(0,0,0,.74)!important;
  color:#fff!important;
  font-size:10px!important;
  font-weight:1000!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-meta{
  left:12px!important;
  right:12px!important;
  bottom:10px!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-meta img{
  width:34px!important;
  height:34px!important;
  border-radius:50%!important;
  object-fit:cover!important;
  flex:0 0 auto!important;
  box-shadow:0 0 0 2px #39ff14!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-meta b,
html body.streamx-v5.twitch-v53 .sts-live-mini-meta small{
  display:block!important;
  text-align:left!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-meta b{
  color:#fff!important;
  font-size:12px!important;
  font-weight:1000!important;
  line-height:1.1!important;
  max-width:150px!important;
}

html body.streamx-v5.twitch-v53 .sts-live-mini-meta small{
  color:#b9c4d4!important;
  font-size:11px!important;
  font-weight:800!important;
  margin-top:2px!important;
}

html body.streamx-v5.twitch-v53 .tv-row-section,
html body.streamx-v5.twitch-v53 .tv-bottom-grid{
  max-width:1540px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

html body.streamx-v5.twitch-v53 .tv-card-row{
  display:grid!important;
  grid-template-columns:repeat(5, minmax(190px, 1fr))!important;
  gap:18px!important;
}

@media(max-width:1450px){
  html body.streamx-v5.twitch-v53 .sts-tv-home{grid-template-columns:260px minmax(0,1fr)!important;gap:22px!important;padding-left:18px!important;padding-right:18px!important;}
  html body.streamx-v5.twitch-v53 .sts-tv-sidebar{width:260px!important;min-width:260px!important;}
  html body.streamx-v5.twitch-v53 .sts-live-main-card{grid-template-columns:minmax(0,1fr) 320px!important;}
  html body.streamx-v5.twitch-v53 .sts-live-details{width:320px!important;padding:32px 26px!important;}
}

@media(max-width:1150px){
  html body.streamx-v5.twitch-v53 .sts-tv-home{display:block!important;padding:18px 16px 70px!important;}
  html body.streamx-v5.twitch-v53 .sts-tv-sidebar{position:relative!important;top:auto!important;width:100%!important;min-width:0!important;margin-bottom:18px!important;}
  html body.streamx-v5.twitch-v53 .sts-live-main-card{grid-template-columns:1fr!important;}
  html body.streamx-v5.twitch-v53 .sts-live-details{width:100%!important;border-left:0!important;border-top:1px solid rgba(57,255,20,.22)!important;}
  html body.streamx-v5.twitch-v53 .sts-live-card-rail{grid-template-columns:repeat(3, minmax(0, 1fr))!important;}
  html body.streamx-v5.twitch-v53 .tv-card-row{grid-template-columns:repeat(3, minmax(0,1fr))!important;}
}

@media(max-width:720px){
  html body.streamx-v5.twitch-v53 .sts-live-preview-stack{min-height:260px!important;}
  html body.streamx-v5.twitch-v53 .sts-live-card-rail{grid-template-columns:repeat(2, minmax(0, 1fr))!important;}
  html body.streamx-v5.twitch-v53 .sts-live-mini-card{height:108px!important;min-height:108px!important;}
  html body.streamx-v5.twitch-v53 .tv-card-row{grid-template-columns:1fr!important;}
}
