/* STS v5.8.20 - collapsible Twitch-style home sidebar */
@media (min-width: 761px) {
  .sts402-shell {
    --sts-home-sidebar-width: 216px;
    grid-template-columns: var(--sts-home-sidebar-width) minmax(0,1fr) !important;
    transition: grid-template-columns .22s ease;
  }
  .sts402-shell.sts421-sidebar-collapsed {
    --sts-home-sidebar-width: 54px;
  }
  .sts402-sidebar[data-sts-sidebar] {
    width: 100%;
    min-width: 0;
    padding: 10px 8px 14px !important;
    overflow-x: hidden;
    transition: padding .22s ease, width .22s ease;
  }
  .sts421-sidebar-head {
    display: flex;
    justify-content: flex-end;
    min-height: 34px;
    margin-bottom: 4px;
  }
  .sts421-sidebar-toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 30px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: #d9dce6;
    cursor: pointer;
    font: 900 14px/1 system-ui,sans-serif;
    letter-spacing: 2px;
    transition: background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
  }
  .sts421-sidebar-toggle:hover,
  .sts421-sidebar-toggle:focus-visible {
    background: rgba(145,63,255,.16);
    border-color: rgba(158,86,255,.45);
    color: #fff;
    outline: none;
  }
  .sts421-sidebar-toggle:active { transform: scale(.94); }

  .sts402-side-nav a {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 44px !important;
    padding: 0 12px !important;
    gap: 14px !important;
    white-space: nowrap;
  }
  .sts402-side-nav a > span {
    flex: 0 0 22px;
    width: 22px !important;
    font-size: 19px !important;
  }
  .sts402-side-nav a > b {
    display: block;
    min-width: 0;
    color: inherit;
    font: inherit;
    opacity: 1;
    transition: opacity .12s ease;
  }
  .sts402-sidebar.is-collapsed {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .sts402-sidebar.is-collapsed .sts421-sidebar-head { justify-content: center; }
  .sts402-sidebar.is-collapsed .sts421-sidebar-toggle {
    width: 40px;
    border-color: transparent;
    background: transparent;
  }
  .sts402-sidebar.is-collapsed .sts402-side-nav {
    gap: 4px;
    padding-bottom: 10px;
  }
  .sts402-sidebar.is-collapsed .sts402-side-nav a {
    justify-content: center !important;
    width: 44px;
    min-height: 42px !important;
    margin-inline: auto;
    padding: 0 !important;
    border-radius: 7px;
  }
  .sts402-sidebar.is-collapsed .sts402-side-nav a > b,
  .sts402-sidebar.is-collapsed .sts402-side-title,
  .sts402-sidebar.is-collapsed .sts402-followed span,
  .sts402-sidebar.is-collapsed .sts402-followed em,
  .sts402-sidebar.is-collapsed .sts402-show-more,
  .sts402-sidebar.is-collapsed .sts402-side-empty {
    display: none !important;
  }
  .sts402-sidebar.is-collapsed .sts402-side-nav a > span {
    width: auto !important;
    flex-basis: auto;
    margin: 0;
  }
  .sts402-sidebar.is-collapsed .sts402-followed {
    display: grid !important;
    gap: 5px !important;
    margin-top: 9px;
  }
  .sts402-sidebar.is-collapsed .sts402-followed > a {
    position: relative;
    display: grid !important;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-inline: auto;
    padding: 2px !important;
    border-radius: 8px;
  }
  .sts402-sidebar.is-collapsed .sts402-followed img {
    width: 34px !important;
    height: 34px !important;
    border-width: 1px;
  }
  .sts402-sidebar.is-collapsed .sts402-followed > a::after {
    content: '';
    position: absolute;
    right: 3px;
    bottom: 5px;
    width: 7px;
    height: 7px;
    border: 2px solid #0b0e14;
    border-radius: 50%;
    background: #ff2f58;
  }
  .sts402-sidebar.is-collapsed .sts402-followed > a:has(em.offline)::after { background:#555b65; }
  .sts402-sidebar.is-collapsed a[title]::before {
    content: attr(title);
    position: fixed;
    left: 61px;
    z-index: 9999;
    padding: 7px 9px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 6px;
    background: #171a22;
    box-shadow: 0 8px 22px rgba(0,0,0,.45);
    color: #fff;
    font: 700 12px/1 system-ui,sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-5px);
    transition: opacity .12s ease,transform .12s ease;
  }
  .sts402-sidebar.is-collapsed a[title]:hover::before,
  .sts402-sidebar.is-collapsed a[title]:focus-visible::before {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 761px) and (max-width: 1060px) {
  .sts402-shell:not(.sts421-sidebar-collapsed) {
    --sts-home-sidebar-width: 216px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sts402-shell,.sts402-sidebar[data-sts-sidebar],.sts421-sidebar-toggle { transition:none !important; }
}
