/* STS v5.6.151 - logged-in account dropdown + header space fix */
html body.streamx-v5.twitch-v53 .sts-mockup-header{
  grid-template-columns:minmax(560px,1fr) minmax(320px,420px) auto!important;
  column-gap:18px!important;
  overflow:visible!important;
  z-index:1000!important;
}

html body.streamx-v5.twitch-v53 .sts-mock-left,
html body.streamx-v5.twitch-v53 .sts-mock-nav{
  min-width:0!important;
}

html body.streamx-v5.twitch-v53 .sts-mock-nav{
  transform:translate(-8px,-4px)!important;
  gap:24px!important;
  overflow:hidden!important;
  flex-wrap:nowrap!important;
}

html body.streamx-v5.twitch-v53 .sts-mock-nav a,
html body.streamx-v5.twitch-v53 .sts-mock-more-btn{
  white-space:nowrap!important;
  flex:0 0 auto!important;
}

html body.streamx-v5.twitch-v53 .tw-search.sts-nav-search,
html body.streamx-v5.twitch-v53 .sts-mock-search{
  position:relative!important;
  z-index:1200!important;
  max-width:420px!important;
  width:clamp(300px,24vw,420px)!important;
  min-width:300px!important;
  margin:0!important;
  transform:none!important;
}

html body.streamx-v5.twitch-v53 .sts-search-results{
  position:absolute!important;
  top:calc(100% + 10px)!important;
  left:0!important;
  right:0!important;
  z-index:99999!important;
  max-height:420px!important;
  overflow:auto!important;
  border:1px solid rgba(79,255,20,.65)!important;
  border-radius:14px!important;
  background:rgba(5,8,10,.98)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.75),0 0 28px rgba(83,252,24,.22)!important;
}

html body.streamx-v5.twitch-v53 .sts-account-actions{
  position:relative!important;
  flex:0 0 auto!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  overflow:visible!important;
  z-index:1300!important;
}

html body.streamx-v5.twitch-v53 .sts-account-menu-button{
  height:44px!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:5px 12px 5px 6px!important;
  border-radius:999px!important;
  border:1px solid rgba(139,92,246,.7)!important;
  background:linear-gradient(135deg,rgba(15,23,18,.92),rgba(38,18,56,.94))!important;
  color:#fff!important;
  cursor:pointer!important;
  box-shadow:0 0 20px rgba(139,92,246,.25)!important;
}

html body.streamx-v5.twitch-v53 .sts-account-menu-button:hover,
html body.streamx-v5.twitch-v53 .sts-account-menu-button[aria-expanded="true"]{
  border-color:#53fc18!important;
  box-shadow:0 0 25px rgba(83,252,24,.25),0 0 35px rgba(139,92,246,.25)!important;
}

html body.streamx-v5.twitch-v53 .sts-account-avatar{
  width:34px!important;
  height:34px!important;
  border-radius:50%!important;
  overflow:hidden!important;
  display:block!important;
  border:2px solid #8b5cf6!important;
  box-shadow:0 0 18px rgba(139,92,246,.55)!important;
  flex:0 0 34px!important;
  background:#09090d!important;
}

html body.streamx-v5.twitch-v53 .sts-account-avatar.big{
  width:46px!important;
  height:46px!important;
  flex-basis:46px!important;
}

html body.streamx-v5.twitch-v53 .sts-account-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}

html body.streamx-v5.twitch-v53 .sts-account-name{
  max-width:92px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}

html body.streamx-v5.twitch-v53 .sts-account-caret{
  color:#53fc18!important;
  font-size:12px!important;
}

html body.streamx-v5.twitch-v53 .sts-account-dropdown{
  position:absolute!important;
  right:0!important;
  top:calc(100% + 12px)!important;
  width:285px!important;
  z-index:99999!important;
  display:none!important;
  padding:10px!important;
  border-radius:18px!important;
  border:1px solid rgba(83,252,24,.38)!important;
  background:linear-gradient(180deg,rgba(8,10,14,.98),rgba(14,7,22,.98))!important;
  box-shadow:0 20px 55px rgba(0,0,0,.82),0 0 28px rgba(139,92,246,.25), inset 0 1px 0 rgba(255,255,255,.08)!important;
}

html body.streamx-v5.twitch-v53 .sts-account-dropdown.open{display:block!important;}

html body.streamx-v5.twitch-v53 .sts-account-dropdown::before{
  content:"";
  position:absolute;
  right:22px;
  top:-7px;
  width:14px;
  height:14px;
  transform:rotate(45deg);
  background:rgba(8,10,14,.98);
  border-left:1px solid rgba(83,252,24,.38);
  border-top:1px solid rgba(83,252,24,.38);
}

html body.streamx-v5.twitch-v53 .sts-account-head{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:10px!important;
  margin-bottom:8px!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,rgba(83,252,24,.1),rgba(139,92,246,.13))!important;
  border:1px solid rgba(255,255,255,.08)!important;
}

html body.streamx-v5.twitch-v53 .sts-account-head strong,
html body.streamx-v5.twitch-v53 .sts-account-head small{
  display:block!important;
}

html body.streamx-v5.twitch-v53 .sts-account-head strong{
  color:#fff!important;
  font-size:14px!important;
  line-height:1.1!important;
}

html body.streamx-v5.twitch-v53 .sts-account-head small{
  color:#9ca3af!important;
  font-size:12px!important;
  margin-top:3px!important;
}

html body.streamx-v5.twitch-v53 .sts-account-dropdown a,
html body.streamx-v5.twitch-v53 .sts-account-dropdown form button{
  width:100%!important;
  display:grid!important;
  grid-template-columns:28px 1fr!important;
  gap:8px 10px!important;
  align-items:center!important;
  padding:10px!important;
  border:0!important;
  border-radius:13px!important;
  background:transparent!important;
  color:#fff!important;
  text-decoration:none!important;
  text-align:left!important;
  cursor:pointer!important;
  font-family:inherit!important;
}

html body.streamx-v5.twitch-v53 .sts-account-dropdown a:hover,
html body.streamx-v5.twitch-v53 .sts-account-dropdown form button:hover{
  background:rgba(83,252,24,.1)!important;
  box-shadow:inset 3px 0 0 #53fc18!important;
}

html body.streamx-v5.twitch-v53 .sts-account-dropdown span{
  grid-row:1/3!important;
  font-size:18px!important;
}

html body.streamx-v5.twitch-v53 .sts-account-dropdown b{
  font-size:13px!important;
  line-height:1.05!important;
}

html body.streamx-v5.twitch-v53 .sts-account-dropdown small{
  color:#9ca3af!important;
  font-size:11px!important;
  line-height:1.05!important;
}

html body.streamx-v5.twitch-v53 .sts-account-dropdown form{margin:6px 0 0!important;padding-top:6px!important;border-top:1px solid rgba(255,255,255,.08)!important;}

@media (max-width: 1280px){
  html body.streamx-v5.twitch-v53 .sts-mockup-header{grid-template-columns:minmax(470px,1fr) minmax(260px,360px) auto!important;}
  html body.streamx-v5.twitch-v53 .sts-mock-nav{gap:18px!important;}
  html body.streamx-v5.twitch-v53 .sts-account-name{display:none!important;}
}
@media (max-width: 980px){
  html body.streamx-v5.twitch-v53 .sts-mockup-header{grid-template-columns:1fr auto!important;}
  html body.streamx-v5.twitch-v53 .sts-mock-search{display:none!important;}
  html body.streamx-v5.twitch-v53 .sts-mock-nav a:nth-child(n+5),
  html body.streamx-v5.twitch-v53 .sts-mock-more-wrap{display:none!important;}
}
