/* Shared platform navigation and functional panels. */
.desktop-header,.channel-categories,.mobile-topbar{display:none}
.video-more-button{display:flex;align-items:center;justify-content:center;width:48px;height:34px;min-height:34px;padding:4px;color:white;border-radius:8px;touch-action:manipulation}.video-more-button svg{width:25px;height:25px}.video-more-button:hover{background:#ffffff1a}.danmaku-toggle{font-size:17px!important;font-weight:700}.danmaku-toggle[aria-pressed=true]{color:#ff5276}.danmaku-layer{position:absolute;inset:14% 0 30%;overflow:hidden;pointer-events:none;z-index:3}.danmaku-item{position:absolute;left:100%;width:max-content;max-width:80%;color:white;font-weight:600;font-size:18px;text-shadow:0 1px 3px #000,1px 0 #000;white-space:nowrap;animation:danmaku-travel 8s linear forwards}@keyframes danmaku-travel{to{transform:translateX(calc(-100vw - 100%))}}
.drawer{z-index:60;background:#202024}.drawer-header{padding:20px 22px}.drawer-header .icon-button{width:40px;height:40px}.drawer-header h2{font-size:18px}.drawer-body{padding:18px 22px}.drawer-tabs{display:flex;gap:8px;border-bottom:1px solid #ffffff12;margin:0 0 16px;overflow:auto}.drawer-tabs button{flex-shrink:0;min-height:42px;padding:0 11px;color:#a0a0aa;border-bottom:2px solid transparent;font-size:12px}.drawer-tabs button.is-active,.drawer-tabs button[aria-selected=true]{color:white;border-color:var(--pink)}.drawer-search-form{display:flex;gap:8px;margin-bottom:20px}.drawer-search-form input{flex:1;min-width:0;height:42px;background:#303037;border:1px solid #ffffff17;border-radius:7px;padding:0 12px;color:white;font-size:13px}.drawer-search-form button{padding:0 16px;border-radius:7px;background:var(--pink);font-size:13px}.search-history-heading{display:flex;justify-content:space-between;align-items:center;color:#d4d4dc;font-size:13px;margin:18px 0 12px}.search-history-heading button{font-size:11px;color:#8e8e9a}.search-history{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.search-history button{padding:8px 12px;min-height:34px;border-radius:6px;background:#ffffff0c;color:#c4c4cd;font-size:12px}.drawer-menu-action{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:50px;padding:12px 2px;border-bottom:1px solid #ffffff0e;text-align:left;font-size:13px}.drawer-menu-action svg{width:18px;height:18px}.drawer-menu-action:hover{color:#ff6687}.drawer-menu-action select,.drawer-menu-action input{accent-color:var(--pink)}.drawer-menu-action select{background:#303039;border:1px solid #ffffff14;color:white;border-radius:5px;padding:7px}.comment-actions{display:flex;gap:16px;align-items:center;margin-top:8px}.comment-action{font-size:10px;color:#888c99;min-height:32px;padding:4px 0}.comment-action[aria-pressed=true]{color:#ff5b80}.comment-item.is-reply{margin-left:34px;border-left:2px solid #ffffff10;padding-left:12px}.comment-input-row{gap:8px;z-index:1;background:#202024}.comment-input-row input{font-size:13px;min-height:42px}.watch-later-item{display:flex;align-items:center;gap:8px}.watch-later-item .drawer-item{flex:1;min-width:0}.watch-later-item>button:last-child{padding:8px;font-size:11px;color:#9297a5}.report-form{display:flex;flex-direction:column;gap:12px}.report-select,.report-details{width:100%;background:#2e2f36;border:1px solid #ffffff14;border-radius:6px;color:white;padding:12px;font-size:13px}.report-details{height:110px;resize:vertical}.signin-link{display:flex;align-items:center;justify-content:center;min-height:44px;margin:18px 0 10px}.guest-login-dialog>#login-dialog-dismiss{background:#ffffff0a;color:#b7bac5;margin-top:8px}.service-dialog{width:430px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);padding:0;border:1px solid #ffffff12;border-radius:16px;background:#202024;color:#eee;box-shadow:0 30px 90px #0008}.service-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}.service-body{padding:0 22px 24px;font-size:13px;line-height:1.9;color:#b0b2bd}.service-body h3{color:#f0f0f3;font-size:15px}.service-body .service-status{display:inline-block;font-size:11px;color:#9d9fac;border-radius:5px;background:#ffffff0a;padding:4px 8px}.service-body .service-action{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:18px;padding:8px 18px;border-radius:7px;background:var(--pink);color:white;font-size:13px}.service-body .wallpaper-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.wallpaper-grid a{font-size:11px;line-height:1.6}.wallpaper-grid img{width:100%;height:100px;object-fit:cover;display:block;border-radius:6px;margin-bottom:6px}.service-channels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.service-channels button{height:54px;border-radius:8px;background:#ffffff0a;font-size:13px}.service-channels button:hover{background:#ffffff15}.service-body label{display:block;margin:12px 0}.service-body input,.service-body textarea{width:100%;display:block;background:#303039;color:white;border:1px solid #ffffff15;border-radius:6px;padding:10px;margin-top:6px}.upload-dialog .dialog-description,.upload-dialog .local-note{line-height:1.8}.backend-status-note{font-size:11px;color:#888d9b;line-height:1.7}.is-clean .video-more-button,.is-clean .danmaku-layer{display:none}
html[data-ui="desktop"] .desktop-header{height:66px;display:flex;align-items:center;gap:20px;padding:0 122px 0 28px;position:relative;z-index:35;background:#151518}
html[data-ui="desktop"] .desktop-search{position:relative;height:42px;width:460px;min-width:240px;max-width:45%;display:flex;align-items:center;border:1px solid #5d5e63;border-radius:9px;background:#353538;flex-shrink:1;margin-left:clamp(0px,7vw,140px)}
html[data-ui="desktop"] .desktop-search>span{display:none}
html[data-ui="desktop"] .desktop-search input{background:none;border:0;outline:none;flex:1;min-width:0;height:100%;padding:0 14px;color:#fff;font-size:14px}
html[data-ui="desktop"] .desktop-search input::placeholder{color:#a0a0a7}
html[data-ui="desktop"] .desktop-search>button{display:flex;align-items:center;gap:6px;padding:0 14px;border-left:1px solid #ffffff20;font-size:14px;white-space:nowrap}
html[data-ui="desktop"] .desktop-search>button svg{width:19px;height:19px}
html[data-ui="desktop"] .desktop-search .search-results{top:47px}
html[data-ui="desktop"] .desktop-tools{margin-left:auto;display:flex;align-items:center;gap:17px;flex-shrink:0}
html[data-ui="desktop"] .desktop-tools>button{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:30px;padding:0;color:#a5a5ae;font-size:10px}
html[data-ui="desktop"] .desktop-tools>button:hover{color:white}
html[data-ui="desktop"] .desktop-tools>button svg{width:20px;height:20px}
html[data-ui="desktop"] .account-login-trigger{top:13px;right:16px;height:40px;min-width:90px;border-radius:9px}
html[data-ui="desktop"] .account-login-trigger{width:94px;max-width:94px;padding:0 10px;gap:6px}
html[data-ui="desktop"] .account-login-trigger>span:last-child{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-ui="desktop"] .account-login-avatar{flex-shrink:0}
html[data-ui="desktop"] .main-content{height:calc(100% - 66px);padding:0 14px 12px}
html[data-ui="desktop"] .channel-categories{height:44px;display:flex;align-items:center;gap:24px;overflow:auto;scrollbar-width:none;padding:0 8px}
html[data-ui="desktop"] .channel-categories button{height:100%;font-size:13px;color:#8f9099;white-space:nowrap;padding:0 4px;border-bottom:2px solid transparent}
html[data-ui="desktop"] .channel-categories button.is-active{color:white;border-color:var(--pink)}
html[data-ui="desktop"] .watch-layout{height:calc(100% - 44px)}
html[data-ui="desktop"] .social-rail{gap:10px}
html[data-ui="desktop"] .social-button{min-height:56px}
html[data-ui="desktop"] .video-info{bottom:24px}
html[data-ui="desktop"] .guest-account-menu{top:65px;right:16px}
html[data-ui="desktop"] .service-dialog{margin:auto}
html[data-ui="desktop"] .drawer{top:66px;width:420px;max-width:calc(100vw - 76px)}
@media(max-width:1200px){html[data-ui="desktop"] .desktop-search{margin-left:0;max-width:46%;min-width:200px}html[data-ui="desktop"] .desktop-tools{gap:12px}html[data-ui="desktop"] .desktop-tools>[data-service=coins],html[data-ui="desktop"] .desktop-tools>[data-service=wallpaper]{display:none}html[data-ui="desktop"] .desktop-header{padding-left:20px;gap:12px}html[data-ui="desktop"] .controls-right{gap:3px}html[data-ui="desktop"] .clean-button{min-width:70px;padding:0 5px;font-size:11px}html[data-ui="desktop"] .recommendations-button>span:last-child{display:none}}
/* Narrow computer windows retain the sidebar, search and desktop player. */
@media (max-width: 760px) {
 html[data-ui="desktop"] .desktop-header{gap:8px;padding:0 102px 0 12px}
 html[data-ui="desktop"] .desktop-search{width:100%;max-width:none;min-width:0;margin:0}
 html[data-ui="desktop"] .desktop-search input{padding:0 9px;font-size:12px}
 html[data-ui="desktop"] .desktop-search>button{padding:0 9px;font-size:12px}
 html[data-ui="desktop"] .desktop-tools{display:none}
 html[data-ui="desktop"] .channel-categories{gap:17px}
 html[data-ui="desktop"] .clean-button,html[data-ui="desktop"] .danmaku-toggle{display:none}
 html[data-ui="desktop"] .player-controls{padding:0 6px;gap:4px}
 html[data-ui="desktop"] .controls-left,html[data-ui="desktop"] .controls-right{gap:2px;min-width:0}
 html[data-ui="desktop"] .time-display{font-size:9px;gap:4px}
 html[data-ui="desktop"] .player-controls .icon-button{width:30px;padding:6px}
 html[data-ui="desktop"] #speed{width:43px;font-size:10px}
}
@media(max-height:600px){html[data-ui="desktop"] .desktop-header,html[data-ui="desktop"] .channel-categories{display:none}html[data-ui="desktop"] .main-content{height:100%;padding:8px}html[data-ui="desktop"] .watch-layout{height:100%}html[data-ui="desktop"] .account-login-trigger{top:14px;right:144px;height:34px;min-width:72px}html[data-ui="desktop"] .social-rail{gap:3px}html[data-ui="desktop"] .social-button{min-height:44px}html[data-ui="desktop"] .video-more-button{height:28px;min-height:28px}html[data-ui="desktop"] .drawer{top:0;max-width:100vw}html[data-ui="desktop"] .guest-account-menu{top:58px}html[data-ui="desktop"] .clean-button{min-width:67px}html[data-ui="desktop"] .danmaku-toggle{width:32px!important}html[data-ui="desktop"] .desktop-tools{display:none}}
@media(max-height:360px){html[data-ui="desktop"] .social-rail{flex-direction:row;top:auto;bottom:12px;right:14px;transform:none;width:auto;gap:6px;align-items:center}html[data-ui="desktop"] .social-button{min-width:44px;width:44px;height:44px}html[data-ui="desktop"] .social-button small{display:none}html[data-ui="desktop"] .creator-action{height:58px;width:48px}html[data-ui="desktop"] .video-more-button{width:36px;height:44px}html[data-ui="desktop"] .video-info{bottom:78px}html[data-ui="desktop"] .account-login-trigger{right:76px}}
html[data-ui="mobile"] .desktop-header,html[data-ui="mobile"] .channel-categories{display:none}
html[data-ui="mobile"] .mobile-topbar{position:fixed;top:0;left:0;right:0;z-index:25;height:calc(54px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 8px 0;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#0005,transparent);color:white;text-shadow:0 1px 4px #0008}
html[data-ui="mobile"] .mobile-topbar>button{width:44px;height:44px;display:flex;align-items:center;justify-content:center}
html[data-ui="mobile"] .mobile-topbar>button svg{width:25px;height:25px}
html[data-ui="mobile"] .mobile-topbar nav{display:flex;align-items:center;gap:23px;height:44px}
html[data-ui="mobile"] .mobile-topbar nav button{position:relative;height:44px;font-size:17px;color:#ddd;font-weight:600;padding:0 2px}
html[data-ui="mobile"] .mobile-topbar nav button.is-active{color:#fff;font-weight:700}
html[data-ui="mobile"] .mobile-topbar nav button.is-active:after{content:"";position:absolute;bottom:2px;left:calc(50% - 9px);width:18px;height:3px;border-radius:3px;background:#fff}
html[data-ui="mobile"] .social-rail{gap:8px;bottom:13px}
html[data-ui="mobile"] .video-more-button{height:28px;min-height:28px;width:48px}
html[data-ui="mobile"] .video-more-button svg{width:25px;height:25px}
html[data-ui="mobile"] .video-info{bottom:14px}
html[data-ui="mobile"] .drawer{top:0;bottom:var(--mobile-nav-height);width:min(100vw,460px);max-width:100vw}
html[data-ui="mobile"] .drawer[data-view=comments]{top:auto;height:min(72dvh,640px);border-radius:17px 17px 0 0;box-shadow:0 -15px 60px #0005}
html[data-ui="mobile"] .drawer[data-view=search]{width:100vw}
html[data-ui="mobile"] .drawer[data-view=search] .drawer-header{padding-top:max(16px,env(safe-area-inset-top,0px))}
html[data-ui="mobile"] .drawer-header{padding:14px 18px}
html[data-ui="mobile"] .drawer-body{padding:14px 18px}
html[data-ui="mobile"] .service-dialog{max-height:calc(100dvh - 30px)}
html[data-ui="mobile"] .danmaku-layer{inset:15% 0 32%}
html[data-ui="mobile"] .danmaku-item{font-size:16px}
/* Short mobile viewports, including WebApp landscape, use compact spacing. */
@media (max-height: 500px) {
 html[data-ui="mobile"]{--mobile-nav-height:calc(44px + env(safe-area-inset-bottom,0px))}
 html[data-ui="mobile"] .mobile-tabbar>button,html[data-ui="mobile"] .mobile-tabbar>.mobile-publish{height:43px;min-height:43px;font-size:14px}
 html[data-ui="mobile"] .mobile-tabbar>.mobile-publish::before{top:7px}
 html[data-ui="mobile"] .mobile-topbar{height:calc(44px + env(safe-area-inset-top,0px));padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px))}
 html[data-ui="mobile"] .mobile-topbar nav{gap:18px}
 html[data-ui="mobile"] .mobile-topbar nav button{font-size:15px}
 html[data-ui="mobile"] .social-rail{flex-direction:row;right:max(10px,env(safe-area-inset-right,0px));bottom:7px;width:auto;gap:12px;align-items:center}
 html[data-ui="mobile"] .social-button{height:44px;min-height:44px;width:44px;gap:2px}
 html[data-ui="mobile"] .social-button svg{width:26px;height:26px}
 html[data-ui="mobile"] .social-button small{font-size:10px;line-height:14px}
 html[data-ui="mobile"] .creator-action{width:44px;height:57px}
 html[data-ui="mobile"] .creator-profile-button{width:36px;height:36px;left:4px}
 html[data-ui="mobile"] .avatar-follow-button{top:18px;left:0}
 html[data-ui="mobile"] .video-more-button{width:36px;height:44px;min-height:44px}
 html[data-ui="mobile"] .video-info{bottom:79px;right:22px}
 html[data-ui="mobile"] .video-title-line h2{-webkit-line-clamp:1;font-size:14px}
 html[data-ui="mobile"] .video-info p{-webkit-line-clamp:2;font-size:11px}
 html[data-ui="mobile"] .creator-row{margin-bottom:4px}
 html[data-ui="mobile"] .creator-row strong{font-size:14px}
 html[data-ui="mobile"] .music-line{display:none}
}
@media(prefers-reduced-motion:reduce){.danmaku-item{animation:none;left:10%;position:relative;display:block;white-space:normal;max-width:80%}}
.field-label select,.field-label textarea{display:block;width:100%;background:#252731;color:#eee;border:1px solid #ffffff12;border-radius:5px;padding:11px;margin-top:9px;font-size:12px}.field-label+.field-label{margin-top:16px}.field-label textarea{min-height:76px;resize:vertical}.profile-edit-form,.message-form{display:flex;flex-direction:column;gap:12px}.profile-edit-form input,.profile-edit-form textarea,.message-form input,.message-form textarea{width:100%;background:#2e3039;border:1px solid #ffffff14;border-radius:6px;color:white;font-size:13px;padding:11px}.message-item{padding:11px 13px;margin:12px 0;background:#ffffff09;border-radius:9px;font-size:13px;overflow-wrap:anywhere}.message-item.is-own{background:#ff365d20;margin-left:36px}.message-item time{font-size:9px;color:#777e91;display:block;margin-top:6px}.message-thread{display:flex;flex-direction:column;gap:8px}.profile-stats{display:flex;gap:22px;margin:18px 0;font-size:13px;color:#b8bbc6}.profile-stats strong{color:white}.auth-user-note{font-size:11px;line-height:1.7;color:#969dad}.upload-dialog form{max-height:70dvh;overflow:auto}.login-service-state{margin:18px 0 8px}

.creator-avatar.is-user-avatar { display: grid; place-items: center; background: #42454d; color: #fff; font-weight: 650; font-size: 22px; }
