/* Community link beside the wordmark. */
.brand-area{flex:0 0 auto}.discord-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:8px}.discord-link img{display:block;width:30px;height:30px;object-fit:contain}.discord-link:hover{background:var(--hover)}.discord-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:1024px){.discord-link{flex-basis:44px;width:44px;height:44px}}
/* Touch layouts share the desktop colors, account state and stream feed. */
.nav-shade,.mobile-account,.hub-agency{display:none}
@media(max-width:1024px){
  :root{--header:calc(120px + env(safe-area-inset-top,0px));--sidebar:min(320px,calc(100vw - 48px))}
  html{scroll-padding-top:calc(var(--header) + 12px)}
  .topbar{height:var(--header);display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 44px;gap:8px 10px;align-content:center;padding:calc(10px + env(safe-area-inset-top,0px)) max(12px,env(safe-area-inset-right,0px)) 10px max(12px,env(safe-area-inset-left,0px))}
  .brand-area{grid-column:1;grid-row:1;height:auto;gap:8px;min-width:0}.brand{font-size:24px;white-space:nowrap}.brand-mark{margin-right:7px}
  .header-right{grid-column:2;grid-row:1;height:auto;gap:4px;margin:0}.header-right .auth-button{min-height:44px;padding:10px 14px;font-size:13px}
  .icon-button{width:44px;height:44px}.topbar .search{order:initial;grid-column:1/-1;grid-row:2;min-width:0;width:auto;max-width:none;margin:0;padding:10px 12px;box-shadow:none;transform:none}
  .search kbd{display:none}.search-field,.search-field input,.search input{font-size:16px;line-height:22px}.search-field input{height:22px}.search-mirror{display:none}.search:focus-within:not(.native-text) input:not(:placeholder-shown){color:var(--text)}.search-particles{display:none}
  .nav-shade{position:fixed;inset:var(--header) 0 0;z-index:8;border:0;padding:0;background:#0009;backdrop-filter:blur(3px)}
  .mobile-nav-open .nav-shade{display:block}.mobile-nav-open{overflow:hidden}
  .sidebar{transform:translateX(-100%);opacity:0;visibility:hidden;pointer-events:none;padding:16px 16px max(24px,env(safe-area-inset-bottom,0px));overscroll-behavior:contain;scrollbar-gutter:stable;max-height:calc(100dvh - var(--header))}
  .nav-collapsed .sidebar{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto}
  .sidebar nav{flex-shrink:0}.nav-item{min-height:46px;font-size:14px}.agency-link{min-height:44px;padding:10px 14px;font-size:14px}.agency-nav{margin-bottom:12px}
  .mobile-account{display:block;padding:8px 0 16px}.mobile-account .auth-button{width:100%;min-height:46px;font-size:14px;background:var(--raised);border-color:var(--border)}
  .sidebar-bottom{padding:12px 8px 0}.sidebar-bottom a{font-size:12px;min-height:36px;margin-top:4px}.sidebar-bottom .xp-widget{margin:0 0 18px}
  .xp-info{width:36px;height:36px;flex-basis:36px;font-size:14px}.activity-slider{height:44px}.activity-slider::-webkit-slider-thumb{width:24px;height:24px;margin-top:-7.5px}.activity-slider::-moz-range-thumb{width:24px;height:24px}.xp-summary strong{font-size:13px}[data-xp-timer]{font-size:12px}.xp-progress{height:26px;margin:16px 0}.xp-progress-label{font-size:11px}.xp-explainer{font-size:12px}
  .workspace,.nav-collapsed .workspace{margin-left:0;padding:18px 12px 28px;min-height:calc(100dvh - var(--header))}.hub-panel{padding:18px 14px 0;min-height:calc(100dvh - var(--header) - 46px)}.hub-panel::before{inset:4px -4px -4px 4px;transform:none}
  .hub-heading{gap:12px;margin-bottom:16px;align-items:center}.hub-heading h1{font-size:25px;margin:0}.feed-status{font-size:9px;line-height:1.5;max-width:115px}.hub-agency{display:block;font-size:11px;color:var(--muted);margin:0 0 5px}
  .tabs{gap:20px;min-width:0}.tab{min-height:48px;font-size:12px;gap:7px;padding:12px 0 16px}.tab svg{display:none}.view-button{display:inline-flex;width:40px;height:44px;margin:0 0 4px 8px}.count{font-size:10px;padding:3px 5px;min-width:20px}.list-meta{font-size:9px;letter-spacing:.7px;margin:18px 0 14px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.compact .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}.card-body{gap:10px;padding-top:12px}.card h3{font-size:14px;line-height:1.5}.card p{font-size:12px}.card .extra{font-size:11px}.avatar{width:32px;height:32px}.badge{font-size:10px}.badge.upcoming{max-width:calc(100% - 16px);font-size:9px;line-height:1.5}.thumbnail{border-radius:10px}
  .stream-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:14px}.stream-filters>strong{grid-column:1/-1}.stream-filters label{min-width:0;font-size:12px}.stream-filters input,.stream-filters input[type=number]{box-sizing:border-box;width:100%;min-width:0;min-height:44px;font-size:16px}.stream-filters .watch-button{grid-column:1/-1;justify-self:end;min-width:80px}
  .watch-button{min-height:44px;font-size:13px;padding:10px 12px;box-sizing:border-box}.auth-status{left:12px;right:12px;max-width:none}
  .modal{box-sizing:border-box;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;overscroll-behavior:contain}
  .settings-modal,#skins-dialog{inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:94dvh;border-radius:20px 20px 0 0;padding:0 20px max(24px,env(safe-area-inset-bottom,0px));scrollbar-gutter:auto}
  .settings-modal .modal-top{position:sticky;top:0;z-index:4;margin:0 -20px 16px;padding:14px 20px 12px;background:var(--surface);border-bottom:1px solid var(--border)}.settings-modal h2{font-size:25px;margin:0}.settings-modal .modal-top .icon-button{width:44px;height:44px}
  .setting-note,.watch-note,.profile-public-note,#profile-form small{font-size:13px;line-height:1.7}.setting-row{align-items:flex-start;gap:16px;flex-wrap:wrap}.setting-row>div{flex:1 1 150px}.setting-row p{font-size:13px;margin-bottom:0}.setting-row select{min-height:44px;max-width:100%;font-size:16px;min-width:130px}.setting-row input[type=checkbox],.profile-visible input{width:22px;height:22px;flex-shrink:0}.setting-row:has(input[type=checkbox]){align-items:center}
  #profile-form>input,#profile-form>textarea{font-size:16px;min-height:46px;scroll-margin:90px}#profile-form>label{font-size:14px}.profile-visible{min-height:44px}.profile-form-actions{gap:10px}.profile-form-actions .watch-button{flex:1 1 120px}#profile-status,#skin-status{overflow-wrap:anywhere;line-height:1.7}.danger-hold,.danger-delete{min-height:48px;font-size:14px}.danger-actions{padding:14px}.danger-zone{margin-top:32px}
  .customize-tabs{top:70px;gap:24px;padding-top:0;margin-bottom:22px;z-index:3}.customize-tab{font-size:13px;min-height:48px;padding-bottom:15px}.settings-modal h3{font-size:16px}
  #skins-dialog #skin-options,#skins-dialog #theme-skin-options,#badge-skin-options,#profile-theme-options,#profile-icon-options,#profile-level-options,.award-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 26px}.skin-card{min-width:0;padding:14px;gap:12px;font-size:13px}.skin-card strong,.skin-card small{overflow-wrap:anywhere}.skin-card small{font-size:11px;line-height:1.6}.skin-card .skin-preview{min-width:0;max-width:100%}.award-options img{width:88px;height:88px;max-width:100%;justify-self:center}#profile-icon-options img{height:72px}
  #skins-dialog.has-preview{padding-bottom:calc(142px + env(safe-area-inset-bottom,0px))}.skins-save-panel{box-sizing:border-box;width:auto;max-width:none;left:12px!important;right:12px!important;top:auto!important;bottom:max(12px,env(safe-area-inset-bottom,0px))!important;padding:12px 14px;border-radius:12px;box-shadow:0 4px 30px #000a}.skins-save-panel .profile-form-actions{flex-wrap:nowrap;margin-top:8px}.skins-save-panel .watch-button{flex:1 1 0;padding:10px 8px;font-size:13px}
  /* One scroll surface keeps the video, activity/chat and description reachable. */
  .player-modal,.player-modal.is-large{inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;overflow:hidden}
  .watch-shell{overflow-y:auto;overscroll-behavior:contain;height:100%;scroll-padding-top:calc(62px + 56.25vw);padding-bottom:env(safe-area-inset-bottom,0px)}
  .watch-top{position:sticky;top:0;z-index:6;height:calc(60px + env(safe-area-inset-top,0px));min-height:60px;box-sizing:border-box;padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) 0 max(12px,env(safe-area-inset-left,0px));background:var(--surface);gap:12px}.watch-wordmark{font-size:22px}.watch-wordmark small{display:none}.watch-top-actions{gap:8px;flex-wrap:nowrap}.watch-top-actions .watch-button{font-size:12px;min-height:44px;padding:8px 12px}.watch-top .icon-button{width:44px;height:44px}#watch-large,#watch-theater{display:none}
  .desktop-viewing-note{display:none}
  .watch-layout,.player-modal.theater .watch-layout{display:flex;flex-direction:column;height:auto;background:linear-gradient(var(--watch-shade),var(--watch-shade)),var(--surface)}.watch-main{display:contents}.watch-resizer{display:none}
  .player-modal .player-slot,.player-modal.is-large .player-slot,.watch-shell:fullscreen .player-slot{position:sticky;top:calc(60px + env(safe-area-inset-top,0px));z-index:5;flex:none;width:100%;height:auto;min-height:200px;max-height:none;aspect-ratio:16/9;margin:0;border-radius:0;background:#000}
  .player-modal .player-info{box-sizing:border-box;display:block;width:100%;padding:14px 16px 0}.player-info h2{font-size:16px;line-height:1.6;margin-top:0;overflow-wrap:anywhere}.player-info p{font-size:13px;margin:8px 0}.watch-toolbar{box-sizing:border-box;padding:12px 16px 18px;gap:16px}.watch-tools-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}.watch-tools-actions .watch-button{font-size:12px;min-width:0;padding:10px 8px}.watch-dim{grid-template-columns:auto minmax(0,1fr) 36px;width:100%;max-width:none;font-size:13px;gap:14px}.watch-dim input{height:44px}.watch-dim input::-webkit-slider-thumb{width:20px;height:20px;margin-top:-8.5px}.watch-dim input::-moz-range-thumb{width:20px;height:20px}
  .watch-message{font-size:12px;line-height:1.7;margin:0;padding:0 16px 18px}.watch-side,.player-modal.theater .watch-side{display:block;overflow:visible;padding:18px 16px;border:0;border-top:1px solid var(--border)}.watch-side-tabs{position:static;margin-bottom:20px;gap:10px}.watch-side-tabs .watch-button{font-size:13px}.watch-side h3{font-size:14px}.watch-layout>.watch-description{margin:0;padding:24px 16px;border-top:1px solid var(--border)}#player-description{font-size:14px}
  #watch-chat{height:auto}#watch-chat[hidden],#watch-activity[hidden]{display:none}#chat-slot{height:clamp(340px,60dvh,620px);min-height:0;margin-top:14px}.chat-theme-label{font-size:13px}.chat-theme-label select{font-size:16px;min-height:44px}.chat-external{display:inline-flex;margin-top:12px}.related-live{min-height:80px;padding:10px;gap:12px}.related-live img{width:110px}.related-live strong,.related-live span span{font-size:12px}.related-live small{font-size:11px}
  .opera-pip-dialog{inset:0;margin:auto;width:calc(100% - 28px);height:fit-content;max-height:calc(100dvh - 28px);padding:20px;border-radius:16px}.opera-pip-dialog h2{font-size:22px}.opera-pip-dialog .modal-top{gap:12px}.opera-pip-actions .watch-button{flex:1 1 140px}
}
@media(max-width:600px){
  .grid{grid-template-columns:minmax(0,1fr);gap:26px}.compact .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.compact .card h3{font-size:12px}.compact .avatar{display:none}.compact .card p{font-size:11px}.compact .badge{font-size:9px;padding:3px 5px}.compact .badge.upcoming{font-size:8px}.state{padding:36px 16px}
}
@media(max-width:360px){
  .topbar{column-gap:4px}.brand-area{gap:2px}.brand{font-size:22px}.brand-mark{display:none}.header-right .auth-button{padding:10px 12px}.hub-panel{padding-left:10px;padding-right:10px}.tabs{gap:12px}.tab{font-size:11px;gap:5px}.view-button{width:32px;margin-left:4px}.customize-tabs{gap:18px}.customize-tab{font-size:12px}.skin-card{padding:12px}.related-live img{width:90px}
}
@media(max-width:1024px) and (max-height:500px){
  .player-modal .player-slot,.player-modal.is-large .player-slot,.watch-shell:fullscreen .player-slot{position:relative;top:auto;width:min(100%,calc((100dvh - 60px - env(safe-area-inset-top,0px)) * 16 / 9));align-self:center}.watch-shell{scroll-padding-top:70px}.settings-modal,#skins-dialog{max-height:100dvh;border-radius:0}.sidebar{max-height:calc(100dvh - var(--header))}
}
@media(hover:none){.card:hover{translate:none}.card:hover .thumbnail{box-shadow:none}.watch-resizer{display:none}}
