/* STS v5.6.237 - Simple mobile site/app mode
   Mobile is NOT the desktop site squeezed down. It shows: compact header, live list, watch player, chat, login. */

@media (max-width: 900px){
  html, body{
    width:100% !important;
    max-width:100vw !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    background:#050507 !important;
  }

  body{
    padding:0 !important;
    margin:0 !important;
    font-size:14px !important;
  }

  body::before,
  body::after,
  .site-bg,
  .bg-orb,
  .page-glow,
  .sts-page-glow{
    display:none !important;
  }

  /* Compact mobile header */
  .tw-topbar,
  .sts-glass-nav,
  .sts-mockup-header{
    position:sticky !important;
    top:0 !important;
    z-index:9999 !important;
    width:100vw !important;
    max-width:100vw !important;
    min-width:0 !important;
    height:58px !important;
    min-height:58px !important;
    max-height:58px !important;
    padding:6px 10px !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    overflow:hidden !important;
    background:#050507 !important;
    background-image:none !important;
    border:0 !important;
    border-bottom:1px solid rgba(145,71,255,.35) !important;
    box-shadow:0 8px 22px rgba(0,0,0,.65) !important;
    backdrop-filter:none !important;
  }

  .sts-mock-left,
  .tw-topbar .sts-mock-left{
    width:auto !important;
    min-width:0 !important;
    flex:1 1 auto !important;
    display:flex !important;
    align-items:center !important;
    overflow:hidden !important;
  }

  .sts-mock-brand,
  .tw-logo,
  .sts-brand-card{
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
    height:44px !important;
    max-height:44px !important;
    padding:0 !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    overflow:hidden !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  .sts-mock-brand img,
  .tw-logo img,
  .sts-brand-card img{
    width:150px !important;
    height:44px !important;
    max-width:150px !important;
    max-height:44px !important;
    object-fit:contain !important;
    object-position:left center !important;
    display:block !important;
  }

  .sts-mock-nav,
  .tw-main-nav,
  .sts-icon-nav,
  .sts-nav-search,
  .tw-search,
  .sts-mock-search,
  .sts-mock-more-wrap,
  .crypto-ticker,
  .sts-crypto-ticker,
  #cryptoTicker,
  .ticker,
  .market-ticker{
    display:none !important;
  }

  .tw-actions,
  .sts-user-actions,
  .sts-mock-actions{
    flex:0 0 auto !important;
    margin-left:auto !important;
    display:flex !important;
    align-items:center !important;
    max-width:48vw !important;
    overflow:hidden !important;
  }

  .sts-account-name,
  .sts-account-caret{
    display:none !important;
  }

  .sts-account-menu-button{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    padding:0 !important;
    border-radius:50% !important;
  }

  .sts-account-avatar,
  .sts-account-avatar img{
    width:38px !important;
    height:38px !important;
  }

  /* Global mobile containers */
  .page,
  .v5-page,
  .sts-page,
  .sts-shell,
  .tw-shell,
  .site-shell,
  .content,
  main,
  .sts-tv-main,
  .v53-watch-main{
    width:100% !important;
    max-width:100vw !important;
    min-width:0 !important;
    margin:0 !important;
    padding-left:10px !important;
    padding-right:10px !important;
    overflow-x:hidden !important;
  }

  /* HOME: simple live-first mobile list */
  .sts-tv-home{
    display:block !important;
    width:100% !important;
    max-width:100vw !important;
    min-width:0 !important;
    padding:10px !important;
    margin:0 !important;
    overflow:hidden !important;
  }

  .sts-tv-sidebar,
  .sts-fresh-left-panel{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 0 12px 0 !important;
    padding:0 !important;
    position:static !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }

  .sts-left-brand-card,
  .sts-category-panel,
  .sts-recommended-panel,
  .featured-partner,
  .sts-featured-partner,
  .sts-home-drops,
  .sts-home-featured,
  .browse-categories,
  .sts-category-showcase{
    display:none !important;
  }

  .side-group.sts-live-now-panel{
    display:block !important;
    background:#0b0d12 !important;
    border:1px solid rgba(145,71,255,.35) !important;
    border-radius:18px !important;
    padding:12px !important;
    margin:0 0 12px 0 !important;
    box-shadow:none !important;
  }

  .side-title{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    margin-bottom:10px !important;
    color:#fff !important;
    font-size:13px !important;
    letter-spacing:.06em !important;
  }

  .side-title span::before{ content:'🔴 '; }

  .side-channel,
  .side-channel.compact{
    min-height:64px !important;
    height:auto !important;
    display:grid !important;
    grid-template-columns:48px 1fr auto !important;
    gap:10px !important;
    align-items:center !important;
    padding:9px !important;
    margin:0 0 8px 0 !important;
    border-radius:16px !important;
    background:#11141b !important;
    border:1px solid rgba(255,255,255,.08) !important;
    box-shadow:none !important;
    overflow:hidden !important;
  }

  .side-channel img{
    width:48px !important;
    height:48px !important;
    border-radius:14px !important;
    object-fit:cover !important;
  }

  .side-channel span{
    min-width:0 !important;
    overflow:hidden !important;
  }

  .side-channel b,
  .side-channel small{
    display:block !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .side-channel b{font-size:14px !important;color:#fff !important;}
  .side-channel small{font-size:12px !important;color:#aeb4c3 !important;}

  .side-status-live,
  .side-status-offline{
    font-size:11px !important;
    padding:5px 8px !important;
    border-radius:999px !important;
    background:#32ff23 !important;
    color:#031003 !important;
    font-weight:900 !important;
  }

  .sts-live-showcase{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }

  .sts-live-main-card{
    display:none !important;
  }

  .sts-live-showcase-empty{
    padding:18px !important;
    border-radius:18px !important;
    background:#0b0d12 !important;
    border:1px solid rgba(255,255,255,.08) !important;
  }

  .sts-live-thumb-rail,
  .sts-live-card-rail{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    overflow:visible !important;
    padding:0 !important;
    margin:0 !important;
  }

  .sts-live-thumb,
  .sts-live-mini-card{
    width:100% !important;
    height:190px !important;
    min-height:190px !important;
    border-radius:18px !important;
    overflow:hidden !important;
    display:block !important;
    position:relative !important;
    background:#11141b !important;
    border:1px solid rgba(145,71,255,.32) !important;
  }

  .sts-live-mini-video,
  .sts-live-mini-bg{
    position:absolute !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

  .sts-live-mini-meta{
    position:absolute !important;
    left:10px !important;
    right:10px !important;
    bottom:10px !important;
    display:grid !important;
    grid-template-columns:42px 1fr !important;
    gap:8px !important;
    align-items:center !important;
    padding:9px !important;
    border-radius:14px !important;
    background:rgba(0,0,0,.72) !important;
    color:#fff !important;
  }

  .sts-live-mini-meta img{
    width:42px !important;
    height:42px !important;
    border-radius:50% !important;
    object-fit:cover !important;
  }

  .sts-live-mini-meta b,
  .sts-live-mini-meta small{
    display:block !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .sts-live-mini-live{
    position:absolute !important;
    top:10px !important;
    left:10px !important;
    z-index:3 !important;
    background:#ff3366 !important;
    color:#fff !important;
    padding:6px 9px !important;
    border-radius:10px !important;
    font-size:12px !important;
    font-weight:900 !important;
  }

  .sts-live-mini-viewers{
    position:absolute !important;
    top:10px !important;
    right:10px !important;
    z-index:3 !important;
    background:rgba(0,0,0,.7) !important;
    color:#fff !important;
    padding:6px 9px !important;
    border-radius:10px !important;
    font-size:12px !important;
  }

  /* WATCH: compact player + chat */
  .v53-watch,
  .v586-watch-match{
    display:block !important;
    width:100% !important;
    max-width:100vw !important;
    min-width:0 !important;
    padding:8px !important;
    margin:0 !important;
    overflow:hidden !important;
    background:#050507 !important;
  }

  .v53-watch-main{
    width:100% !important;
    max-width:100% !important;
    padding:0 !important;
    margin:0 !important;
  }

  .v53-player,
  .v586-player,
  .player-shell,
  .video-shell{
    width:100% !important;
    max-width:100% !important;
    aspect-ratio:16/9 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    border-radius:14px !important;
    overflow:hidden !important;
    margin:0 0 10px 0 !important;
  }

  .v53-player video,
  .v53-player img,
  .v586-player video,
  .v586-player img,
  #video,
  .mobile-viewer-player img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
  }

  .v53-stream-info,
  .v586-channel-info-row{
    display:block !important;
    width:100% !important;
    padding:10px !important;
    margin:0 0 10px 0 !important;
    border-radius:16px !important;
    background:#0b0d12 !important;
    border:1px solid rgba(255,255,255,.08) !important;
  }

  .v53-channel-line,
  .v586-channel-line{
    display:grid !important;
    grid-template-columns:48px 1fr !important;
    gap:10px !important;
    align-items:center !important;
  }

  .avatar.big{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
  }

  .v53-stream-info h1,
  .v586-channel-info-row h1{
    font-size:17px !important;
    line-height:1.2 !important;
    margin:0 0 3px 0 !important;
  }

  .v53-stream-info p,
  .v586-channel-info-row p{
    font-size:12px !important;
    line-height:1.35 !important;
    margin:0 !important;
    color:#b8bdca !important;
  }

  .v53-stream-actions,
  .pro-stream-actions,
  .v586-channel-actions,
  .sts-paypal-support,
  .v586-channel-tabs,
  .v586-watch-goals,
  .sts-chat-announcements,
  .sts-player-widgets,
  .purple-native-player-note{
    display:none !important;
  }

  .chat-panel,
  .upgraded.pro-chat,
  .v53-chat,
  .v55-chat-ref{
    position:relative !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:420px !important;
    max-height:none !important;
    margin:0 !important;
    border-radius:16px !important;
    background:#050607 !important;
    border:1px solid rgba(145,71,255,.28) !important;
    overflow:hidden !important;
    box-shadow:none !important;
  }

  .chat-head,
  .v55-chat-head,
  .sts102-chat-head{
    height:52px !important;
    min-height:52px !important;
    padding:8px 10px !important;
    background:#0b0d12 !important;
  }

  .sts102-chat-avatar{
    width:34px !important;
    height:34px !important;
  }

  .sts102-chat-title{
    font-size:16px !important;
  }

  .sts102-chat-sub,
  .chat-viewer-filters,
  .v55-chat-strip,
  .sts102-viewer-pill{
    display:none !important;
  }

  .chat-messages,
  .pro-messages,
  #chatMessages{
    height:300px !important;
    max-height:300px !important;
    overflow-y:auto !important;
    padding:10px !important;
    background:#050607 !important;
  }

  .chat-line,
  .pro-message{
    display:grid !important;
    grid-template-columns:34px 1fr !important;
    gap:8px !important;
    margin:0 0 10px 0 !important;
  }

  .chat-avatar-mini{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
  }

  .chat-name,
  .chat-name-link{
    font-size:13px !important;
  }

  .chat-body{
    font-size:14px !important;
    line-height:1.35 !important;
    word-break:break-word !important;
  }

  .chat-emote,
  .chat-body img{
    max-width:28px !important;
    max-height:28px !important;
  }

  .chat-quick-emotes,
  .global-emote-rail,
  .chat-emote-rail{
    height:42px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:5px 8px !important;
    white-space:nowrap !important;
  }

  .chat-quick-emotes img,
  .global-emote-rail img,
  .chat-emote-rail img{
    width:30px !important;
    height:30px !important;
  }

  .chat-login-required{
    margin:10px !important;
    padding:14px !important;
    border-radius:14px !important;
    background:#10131a !important;
  }

  .chat-login-required strong{font-size:18px !important;}
  .chat-login-required span{font-size:13px !important;line-height:1.35 !important;}

  .chat-login-required a,
  .chat-login-required button,
  .chat-login-required .btn{
    height:44px !important;
    border-radius:12px !important;
    font-size:14px !important;
  }

  .chat-form,
  .pro-chat-form{
    display:grid !important;
    grid-template-columns:42px 1fr 48px 62px !important;
    gap:6px !important;
    padding:8px !important;
    background:#050607 !important;
  }

  .chat-form input,
  #chatInput{
    height:42px !important;
    min-height:42px !important;
    font-size:14px !important;
    border-radius:12px !important;
    padding:0 10px !important;
  }

  .chat-form button,
  #chatWaveBtn,
  #chatStreamerEmoteBtn{
    height:42px !important;
    min-height:42px !important;
    border-radius:12px !important;
    font-size:14px !important;
  }

  /* Auth pages are still usable */
  .auth-card,
  .login-card,
  .register-card,
  .form-card{
    width:100% !important;
    max-width:100% !important;
    margin:12px 0 !important;
    padding:16px !important;
    border-radius:16px !important;
  }
}
