/* STS v5.8.3 — modern navigation and header alignment
   Final header-only override. Loaded after all earlier theme layers. */
:root{
  --sts-nav-font:Inter,"Segoe UI Variable Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --sts-nav-purple:#a855f7;
}

html body.streamx-v5.twitch-v53 header.sts-mockup-header{
  height:82px!important;
  min-height:82px!important;
  display:grid!important;
  grid-template-columns:minmax(680px,1fr) minmax(250px,355px) auto!important;
  align-items:center!important;
  column-gap:20px!important;
  padding:0 28px!important;
}
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-left{
  display:flex!important;
  align-items:center!important;
  height:100%!important;
  min-width:0!important;
}
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-brand{
  flex:0 0 226px!important;
  width:226px!important;
  min-width:226px!important;
  max-width:226px!important;
  height:54px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  transform:translateY(-4px)!important;
}
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-brand img{
  width:226px!important;
  max-width:226px!important;
  height:54px!important;
  object-fit:contain!important;
  object-position:left center!important;
}
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-nav{
  display:flex!important;
  align-items:stretch!important;
  align-self:stretch!important;
  gap:27px!important;
  height:auto!important;
  margin:0 0 0 34px!important;
  white-space:nowrap!important;
}
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-nav>a,
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-more-btn{
  font-family:var(--sts-nav-font)!important;
  font-size:17px!important;
  font-weight:650!important;
  line-height:1!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  display:flex!important;
  align-items:center!important;
  height:100%!important;
}
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-more-btn{
  letter-spacing:1px!important;
}
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-nav>a.is-active{
  color:#c084fc!important;
}
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-nav>a.is-active:after{
  left:-2px!important;
  right:-2px!important;
  bottom:12px!important;
  height:4px!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#9333ea 0%,var(--sts-nav-purple) 55%,#c084fc 100%)!important;
  box-shadow:0 0 12px rgba(168,85,247,.85),0 2px 8px rgba(124,58,237,.45)!important;
}
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-search,
html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-actions{
  align-self:center!important;
}

@media(max-width:1380px){
  html body.streamx-v5.twitch-v53 header.sts-mockup-header{
    grid-template-columns:minmax(570px,1fr) minmax(220px,300px) auto!important;
    padding-inline:18px!important;
    column-gap:14px!important;
  }
  html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-brand{
    flex-basis:190px!important;width:190px!important;min-width:190px!important;max-width:190px!important;
  }
  html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-brand img{width:190px!important;max-width:190px!important}
  html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-nav{gap:18px!important;margin-left:22px!important}
  html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-nav>a,
  html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-more-btn{font-size:15px!important}
}

@media(max-width:1100px){
  html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-brand{transform:translateY(-4px)!important}
}

@media(max-width:760px){
  html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-brand{
    transform:translateY(-4px)!important;
    width:150px!important;min-width:150px!important;max-width:150px!important;height:46px!important;
  }
  html body.streamx-v5.twitch-v53 header.sts-mockup-header .sts-mock-brand img{
    width:150px!important;max-width:150px!important;height:43px!important;
  }
}
