@font-face{font-family:Roboto;src:url(roboto.woff) format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Roboto;src:url(roboto-medium.woff) format('woff');font-weight:500;font-style:normal;font-display:swap}
:root{--bg:#fff;--raised:#fff;--text:#0f0f0f;--muted:#606060;--line:rgba(0,0,0,.1);--hover:#f2f2f2;--selected:#0f0f0f;--selected-text:#fff;--search-line:#d3d3d3;--search-button:#f8f8f8;--blue:#065fd4;--skeleton:#e5e5e5;--shadow:0 4px 32px #0002;--top:calc(56px + env(safe-area-inset-top,0px));--side:240px;color-scheme:light}
:root[data-theme=dark]{--bg:#0f0f0f;--raised:#282828;--text:#f1f1f1;--muted:#aaa;--line:#ffffff26;--hover:#272727;--selected:#f1f1f1;--selected-text:#0f0f0f;--search-line:#303030;--search-button:#222;--blue:#3ea6ff;--skeleton:#272727;--shadow:0 4px 32px #0009;color-scheme:dark}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0f0f0f;--raised:#282828;--text:#f1f1f1;--muted:#aaa;--line:#ffffff26;--hover:#272727;--selected:#f1f1f1;--selected-text:#0f0f0f;--search-line:#303030;--search-button:#222;--blue:#3ea6ff;--skeleton:#272727;--shadow:0 4px 32px #0009;color-scheme:dark}}
*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
html,body{margin:0;min-height:100%;-webkit-text-size-adjust:100%}
body{font-family:Roboto,Arial,sans-serif;font-size:14px;line-height:1.43;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{border:0;background:none;cursor:pointer;padding:0}
button:disabled{cursor:wait;opacity:.55}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
svg{display:block}
[hidden]{display:none!important}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.ic{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;flex:none}
.muted{color:var(--muted)}
.small{font-size:12px}
.icon-button{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex:none}
.icon-button:hover{background:var(--hover)}
.brand{display:inline-flex;align-items:center;gap:4px;position:relative;white-space:nowrap}
.brand-mark{width:29px;height:21px;object-fit:contain}
.brand-word{font-family:Roboto,Arial,sans-serif;letter-spacing:-1px;font-size:20px;font-weight:700}
.brand sup{align-self:flex-start;color:var(--muted);font-size:10px;margin:0 0 0 1px;font-weight:400;letter-spacing:0}
.logo-link{display:flex;align-items:center;min-height:40px;padding:0 4px}
.pill,.blue-button,.text-button,.outline-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;border-radius:24px;padding:0 16px;font-weight:500;white-space:nowrap}
.pill{background:var(--hover)}
.pill:hover{filter:brightness(.95)}
.pill.on,.pill.primary{background:var(--selected);color:var(--selected-text)}
.pill .ic{width:20px;height:20px}
.blue-button{background:#065fd4;color:#fff}
.blue-button:hover{background:#0556bf}
.text-button{color:var(--blue);padding:0 12px}
.text-button:hover{background:var(--hover)}
.outline-button{border:1px solid var(--line)}
.outline-button:hover{background:var(--hover)}
.topbar{height:var(--top);position:fixed;inset:0 0 auto;z-index:60;background:var(--bg);display:flex;align-items:center;justify-content:space-between;padding:env(safe-area-inset-top,0px) max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));gap:12px}
.topbar-start,.topbar-end{display:flex;align-items:center;flex:none;gap:16px}
.topbar-end{gap:8px;min-width:100px;justify-content:flex-end}
.user-avatar{height:32px;width:32px;border-radius:50%;background:#a45b2b;color:#fff;font-size:15px;font-weight:500;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;flex:none;margin:0 8px}
.user-avatar img{width:100%;height:100%;object-fit:cover}
.search-form{display:flex;align-items:center;flex:0 1 732px;min-width:0;margin:0 28px 0 40px}
.search-input-wrap{position:relative;flex:1;min-width:0}
.search-input-wrap>input{width:100%;height:40px;padding:0 40px 0 16px;border:1px solid var(--search-line);border-right:0;border-radius:40px 0 0 40px;background:var(--bg);font-size:16px;outline:0;box-shadow:inset 0 1px 2px #00000008}
.search-input-wrap>input:focus{border-color:#1c62b9;box-shadow:inset 0 1px 2px #0002}
.search-input-wrap>input::-webkit-search-cancel-button{display:none}
.search-input-wrap>#search-clear{position:absolute;right:1px;top:4px;width:32px;height:32px}
.search-button{height:40px;width:64px;border:1px solid var(--search-line);border-radius:0 40px 40px 0;background:var(--search-button);display:flex;align-items:center;justify-content:center;flex:none}
.search-button:hover{background:var(--hover)}
.mic-button{margin-left:12px;background:var(--hover)}
.mic-button.listening{background:#f00;color:white}
.suggestions{position:absolute;top:44px;left:0;right:-64px;border-radius:12px;background:var(--raised);box-shadow:var(--shadow);padding:12px 0;z-index:70;max-height:65vh;overflow:auto}
.suggestion{width:100%;display:flex;align-items:center;gap:16px;padding:7px 16px;font-size:16px;text-align:left}
.suggestion:hover,.suggestion.selected{background:var(--hover)}
.suggestion .ic{width:20px;height:20px}
.mobile-search-back,.mobile-search-open{display:none}
.sidebar{position:fixed;top:var(--top);left:0;bottom:0;width:var(--side);z-index:45;background:var(--bg);overflow:auto;padding:0 12px}
.nav-group{padding:12px 0;border-bottom:1px solid var(--line)}
.nav-group:first-child{padding-top:12px}
.nav-item{display:flex;align-items:center;gap:24px;height:40px;padding:0 12px;border-radius:10px;min-width:0}
.nav-item>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.nav-item:hover,.nav-item.active{background:var(--hover)}
.nav-item.active{font-weight:500}
.nav-item.active .ic{stroke-width:2.1}
.nav-heading{display:flex;gap:6px;align-items:center;margin:0;padding:6px 12px 8px;font-size:16px;font-weight:500}
.nav-heading .ic{width:16px;height:16px}
.sidebar-footer{font-size:12px;color:var(--muted);padding:8px 12px 20px;line-height:18px}
.main{margin-left:var(--side);padding:var(--top) 24px 48px;min-height:100vh;min-width:0}
.mini-guide .sidebar{width:72px;padding:0 4px}
.mini-guide .sidebar .nav-group:not(:first-child),.mini-guide .sidebar-footer{display:none}
.mini-guide .nav-group{border:0}
.mini-guide .nav-item{flex-direction:column;justify-content:center;gap:5px;height:74px;padding:0;font-size:10px}
.mini-guide .main{margin-left:72px}
.sidebar-scrim{position:fixed;inset:var(--top) 0 0;background:#0008;z-index:44;width:100%}
.chips-bar{display:flex;gap:6px;align-items:center;position:sticky;top:var(--top);background:var(--bg);z-index:30;padding:12px 0;margin-bottom:12px}
.chips{display:flex;gap:12px;overflow:auto;scrollbar-width:none;flex:1;min-width:0;scroll-behavior:smooth}
.chips::-webkit-scrollbar{display:none}
.chip{height:32px;flex:none;padding:0 12px;display:inline-flex;align-items:center;border-radius:8px;white-space:nowrap;background:var(--hover);font-weight:500}
.chip:hover{filter:brightness(.96)}
.chip.active{background:var(--selected);color:var(--selected-text)}
.chips-bar>.icon-button{width:32px;height:32px}
.video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 16px}
.video-card{position:relative;min-width:0}
.video-thumb{display:block;position:relative;aspect-ratio:16/9;background:var(--skeleton);border-radius:12px;overflow:hidden}
.video-thumb>img{width:100%;height:100%;object-fit:cover;transition:transform .2s}
.video-thumb:hover>img{transform:scale(1.025)}
.video-duration{position:absolute;right:8px;bottom:8px;background:#000b;color:#fff;border-radius:4px;padding:1px 4px;font-size:12px;font-weight:500;line-height:18px}
.video-duration.live-badge{background:#c00}
.thumbnail-actions{position:absolute;top:4px;right:4px;display:flex;flex-direction:column;gap:4px;opacity:0}
.video-card:hover .thumbnail-actions,.video-card:focus-within .thumbnail-actions{opacity:1}
.thumbnail-actions button{background:#000c;color:#fff;border-radius:4px;width:28px;height:28px;display:flex;justify-content:center;align-items:center}
.thumbnail-actions .ic{width:20px;height:20px}
.video-info{display:flex;gap:12px;margin-top:12px;position:relative;padding-right:20px}
.channel-avatar{width:36px;height:36px;border-radius:50%;background:var(--hover);display:flex;align-items:center;justify-content:center;flex:none;overflow:hidden;font-size:15px;color:var(--muted)}
.channel-avatar>img{width:100%;height:100%;object-fit:cover}
.video-text{min-width:0;flex:1}
.video-card h3{font-size:16px;line-height:22px;font-weight:500;margin:0 0 4px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}
.video-author,.video-stats{font-size:14px;line-height:20px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}
.video-author:hover{color:var(--text)}
.card-more{position:absolute;right:-8px;top:-6px;width:32px;height:32px;opacity:0}
.video-card:hover .card-more,.video-card:focus-within .card-more{opacity:1}
.video-progress{height:3px;position:absolute;bottom:0;left:0;background:#f00}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 0 20px;flex-wrap:wrap}
.page-head h1{font-size:32px;line-height:40px;letter-spacing:-.5px;margin:0;font-weight:700}
.page-head p{margin:8px 0 0;color:var(--muted)}
.load-more{display:flex;justify-content:center;margin:28px 0}
.empty-state{max-width:560px;margin:70px auto;text-align:center;padding:24px}
.empty-state>.ic{width:72px;height:72px;margin:0 auto 20px;color:var(--muted);stroke-width:1}
.empty-state h2{font-size:22px;font-weight:500;margin:8px 0}
.empty-state p{color:var(--muted);line-height:22px}
.empty-state .pill{margin:8px}
.error-state{background:var(--hover);border-radius:16px;max-width:640px;margin:36px auto;padding:28px;text-align:center}
.error-state p{color:var(--muted)}
.skeleton-thumb{aspect-ratio:16/9;background:var(--skeleton);border-radius:12px;animation:pulse 1.5s infinite}
.skeleton-line{height:16px;background:var(--skeleton);margin-top:12px;border-radius:4px;width:90%}
.skeleton-line.small{width:60%;height:12px;margin-top:8px}
@keyframes pulse{50%{opacity:.5}}
.search-results{max-width:1100px;margin:0 auto;padding-top:18px}
.search-results .video-card{display:flex;gap:16px;margin:0 0 24px}
.search-results .video-thumb{width:40%;max-width:500px;flex:none}
.search-results .video-info{flex:1;margin:0;padding:0 26px 0 0}
.search-results .video-info>.channel-avatar{display:none}
.search-results h3{font-size:18px;line-height:26px}
.search-results .video-stats{font-size:12px}
.search-results .video-author{margin-top:12px}
.shorts-shelf{margin:32px 0;padding-bottom:28px;border-bottom:1px solid var(--line)}
.shorts-shelf h2{display:flex;align-items:center;gap:8px;font-size:22px;margin:0 0 20px}
.shorts-shelf h2>.ic{color:#f00}
.shorts-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.short-card .video-thumb{aspect-ratio:9/16;border-radius:12px}
.short-card h3{font-size:16px;line-height:22px;margin:8px 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.short-card p{margin:0;color:var(--muted);font-size:14px}
.shorts-page{max-width:1300px;margin:auto}
.shorts-page .shorts-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.channel-header{margin:24px auto;display:flex;gap:24px;align-items:center;max-width:1280px}
.channel-header .channel-avatar{width:128px;height:128px;font-size:48px}
.channel-header h1{font-size:32px;margin:0 0 6px;line-height:40px}
.channel-header p{color:var(--muted);margin:4px 0 12px;max-width:780px}
.channel-tabs{border-bottom:1px solid var(--line);padding:10px 0;margin:0 0 24px;display:flex;gap:24px}
.channel-tabs strong{border-bottom:2px solid var(--text);padding-bottom:10px}
.subscriptions-row{display:flex;gap:20px;overflow:auto;padding:20px 0;margin-bottom:12px}
.channel-chip{display:flex;align-items:center;flex-direction:column;gap:8px;max-width:100px;min-width:80px;text-align:center;overflow:hidden}
.channel-chip .channel-avatar{width:64px;height:64px;font-size:24px}
.watch-page{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:24px;max-width:1800px;margin:24px auto 0}
.watch-primary{min-width:0}
.is-watch .main{margin-left:0;padding-left:24px;padding-right:24px}
.is-watch .sidebar{transform:translateX(-100%)}
.is-watch.menu-open .sidebar{transform:none;box-shadow:var(--shadow)}
.player-container{position:relative;background:#000;border-radius:12px;overflow:hidden;aspect-ratio:16/9;min-height:200px}
.video-frame{position:absolute;inset:0}
.video-frame iframe{display:block;width:100%;height:100%;border:0}
.video-title{font-size:20px;font-weight:700;line-height:28px;margin:12px 0 10px;word-break:break-word}
.watch-meta,.video-channel,.video-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.watch-meta{justify-content:space-between;gap:12px}
.video-channel{gap:10px;min-width:0}
.video-channel .channel-avatar{width:40px;height:40px}
.video-channel .channel-name{font-size:16px;font-weight:500;line-height:22px}
.channel-identity{min-width:0;max-width:260px}
.channel-identity .muted{font-size:12px;line-height:18px}
.video-actions{gap:8px;flex-wrap:nowrap}
.video-actions>.icon-button{background:var(--hover);height:36px;width:36px}
.like-group{display:flex;align-items:center;border-radius:24px;overflow:hidden;background:var(--hover)}
.like-group .pill{border-radius:0;gap:6px}
.like-group .pill:first-child{position:relative}
.like-group .pill:first-child:after{content:'';position:absolute;right:0;height:20px;width:1px;background:var(--line)}
.video-description{border-radius:12px;background:var(--hover);padding:12px;margin-top:12px;line-height:20px}
.video-description>strong{display:block;margin-bottom:5px}
.description-text{white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.video-description.expanded .description-text{-webkit-line-clamp:unset;display:block}
.description-toggle{font-weight:500;margin-top:8px}
.video-comments{padding:24px 0}
.video-comments h2{font-size:20px;margin:0 0 16px;font-weight:500}
.video-comments p{color:var(--muted)}
.related-header{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.autoplay-control{display:flex;align-items:center;cursor:pointer;margin-left:auto}
.autoplay-control input{position:absolute;opacity:0;width:36px;height:24px;cursor:pointer}
.autoplay-control span{width:34px;height:14px;background:#bbb;border-radius:12px;position:relative;display:block}
.autoplay-control span:after{content:'';height:20px;width:20px;background:#777;border-radius:50%;position:absolute;top:-3px;left:0;transition:left .15s}
.autoplay-control input:checked+span{background:#ffb0b0}
.autoplay-control input:checked+span:after{background:#f00;left:14px}
.autoplay-control input:focus-visible+span{outline:2px solid var(--blue);outline-offset:6px}
.related .video-card{display:flex;gap:8px;margin-bottom:10px}
.related .video-thumb{width:168px;border-radius:8px;flex:none;align-self:flex-start}
.related .video-info{margin:0;gap:0;flex:1;padding-right:12px}
.related .video-info>.channel-avatar{display:none}
.related h3{font-size:14px;line-height:20px;margin-bottom:4px}
.related .video-author,.related .video-stats{font-size:12px;line-height:18px}
.related .video-duration{right:4px;bottom:4px}
.related .thumbnail-actions{display:none}
.player-message{padding:12px 0;line-height:22px;color:var(--muted)}
.player-message a{color:var(--blue)}
.cinema-mode .watch-page{grid-template-columns:minmax(0,1fr) 400px}
.cinema-mode .watch-primary{display:contents}
.cinema-mode .player-container{grid-column:1/-1;aspect-ratio:auto;height:min(70vh,800px);border-radius:0}
.cinema-mode .watch-details{grid-column:1}
.cinema-mode .related{grid-column:2;grid-row:2}
.watch-page.mini-mode{position:fixed;right:16px;bottom:16px;z-index:80;width:400px;margin:0;display:block;box-shadow:var(--shadow);border-radius:12px;overflow:hidden}
.mini-mode .watch-details,.mini-mode .related{display:none}
.mini-mode .player-container{min-height:225px;border-radius:0}
.mini-mode .video-frame{inset:40px 0 0}
.mini-mode .player-container{padding-top:40px;aspect-ratio:auto;height:265px}
.mini-actions{position:absolute;inset:0 0 auto;display:flex;justify-content:flex-end;height:40px;color:white;background:#181818;z-index:1}
.mini-actions button:hover{background:#ffffff26}
.settings-page{max-width:980px;margin:24px auto}
.settings-page>h1{font-size:28px;font-weight:500;margin-bottom:24px}
.settings-section{margin-bottom:28px;border-bottom:1px solid var(--line);padding-bottom:24px}
.settings-section h2{font-size:20px;font-weight:500;margin:0 0 12px}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:14px 0}
.setting-row label,.setting-row>.setting-label{flex:1;min-width:0}
.setting-row p{color:var(--muted);margin:4px 0 0;font-size:12px}
.setting-row select{max-width:220px;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 12px}
.setting-row input[type=checkbox]{width:18px;height:18px;accent-color:#065fd4;cursor:pointer;flex:none}
.settings-buttons{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.account-page{max-width:850px;margin:32px auto}
.account-page h1{font-size:32px;margin:0 0 8px}
.account-profile{display:flex;align-items:center;gap:20px;margin:24px 0}
.account-profile>.user-avatar{width:72px;height:72px;font-size:28px;margin:0}
.account-facts{display:grid;grid-template-columns:180px 1fr;gap:0;border-top:1px solid var(--line);margin:24px 0}
.account-facts dt,.account-facts dd{padding:14px 0;border-bottom:1px solid var(--line);margin:0;overflow-wrap:anywhere}
.account-facts dt{color:var(--muted)}
.account-brand{display:flex;align-items:center;gap:12px;margin:16px 0}
.account-brand>img{width:48px;height:48px;object-fit:contain;border-radius:8px}
.account-banner{display:flex;align-items:center;gap:12px;border-radius:12px;padding:12px 16px;border:1px solid #ff000033;background:#ff00000c;margin:16px 0 4px}
.account-banner>div{flex:1}
.account-banner p{margin:0;color:var(--muted)}
.popover{position:fixed;top:calc(var(--top) + 4px);right:16px;z-index:100;background:var(--raised);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:12px;width:300px;max-height:calc(100vh - var(--top) - 24px);overflow:auto;padding:8px 0}
.account-menu-head{display:flex;gap:12px;align-items:center;padding:12px 16px 16px;border-bottom:1px solid var(--line);margin-bottom:8px}
.account-menu-head .user-avatar{margin:0;width:40px;height:40px}
.popover-item{width:100%;text-align:left;padding:10px 18px;display:flex;gap:16px;align-items:center;line-height:24px}
.popover-item:hover{background:var(--hover)}
.notifications-menu{right:64px;padding:16px}
.notifications-menu h2{font-size:18px;margin:0 0 12px}
.notifications-menu p{color:var(--muted)}
.modal{border:0;border-radius:12px;padding:24px;background:var(--raised);color:var(--text);width:460px;max-width:calc(100% - 32px);box-shadow:var(--shadow);max-height:85vh;overflow:auto}
.modal::backdrop{background:#0008}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.modal-head h2{font-size:20px;font-weight:500;margin:0}
.modal>p{line-height:22px}
.modal input[type=text],.modal textarea{width:100%;background:var(--bg);border:1px solid var(--search-line);border-radius:6px;padding:12px;margin:8px 0 16px;outline-color:var(--blue)}
.dialog-buttons{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}
.playlist-choice{display:flex;align-items:center;gap:12px;padding:10px 0;cursor:pointer}
.playlist-choice input{width:18px;height:18px;accent-color:#065fd4}
.toast{position:fixed;bottom:20px;left:24px;z-index:150;background:#202020;color:#fff;box-shadow:var(--shadow);padding:14px 22px;margin:0;border-radius:6px;max-width:calc(100% - 48px)}
.bottom-nav{display:none}
.page-progress{position:fixed;top:0;left:0;width:75%;height:2px;background:#f00;z-index:200;animation:loading 2s infinite}
@keyframes loading{from{width:5%}to{width:90%}}
.skip-link{position:fixed;top:-60px;left:16px;z-index:300;background:var(--bg);padding:12px;border:1px solid var(--blue)}
.skip-link:focus{top:8px}
.noscript-note{max-width:600px;margin:30px auto;padding:20px;color:var(--muted)}
.auth-page{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;background:#f0f4f9}
.auth-card{width:100%;max-width:450px;background:var(--bg);border:1px solid var(--line);border-radius:28px;padding:36px 40px 32px}
.auth-brand{gap:8px}
.auth-brand .brand-mark{width:40px;height:28px}
.auth-brand .brand-word{font-size:22px;letter-spacing:-.8px}
.auth-title{font-weight:400;font-size:32px;line-height:40px;margin:24px 0 8px}
.auth-sub{font-size:16px;margin:0 0 28px}
.auth-form{display:flex;flex-direction:column;gap:16px}
.field{position:relative;display:block}
.field input{height:56px;width:100%;padding:16px 15px 0;border:1px solid #909090;border-radius:4px;outline:0;background:transparent;font-size:16px}
.field input:focus{border:2px solid #065fd4;padding-left:14px}
.field>span{position:absolute;top:17px;left:13px;padding:0 3px;background:var(--bg);color:var(--muted);font-size:16px;pointer-events:none;transition:top .15s,font-size .15s}
.field input:focus+span,.field input:not(:placeholder-shown)+span{top:-9px;font-size:12px}
.field input:focus+span{color:#065fd4}
.show-password{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}
.show-password input{width:14px;height:14px;margin:0 4px;accent-color:#065fd4}
.auth-note{margin:8px 0 0;color:var(--muted);line-height:20px}
.auth-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}
.form-error{color:#c5221f;margin:0;font-size:14px;line-height:20px}
.signup-card{display:flex;align-items:center;gap:12px;margin-top:28px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;text-align:left;min-height:66px;font-size:14px}
.signup-card>.ic:first-child{color:#065fd4;width:28px;height:28px}
.signup-card>.ic:last-child{margin-left:auto;width:20px;height:20px;color:var(--muted)}
.signup-card:hover{background:var(--hover)}
.auth-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:16px 24px;font-size:12px;color:var(--muted);margin-top:16px;max-width:450px;width:100%}
:root[data-theme=dark] .auth-page{background:#0f0f0f}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .auth-page{background:#0f0f0f}}
@media(min-width:2200px){.video-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1599px){.video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shorts-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1200px){.watch-page{grid-template-columns:minmax(0,1fr) 340px}.related .video-thumb{width:148px}.cinema-mode .watch-page{grid-template-columns:minmax(0,1fr) 340px}.video-actions{gap:4px}.video-actions .pill{padding:0 12px}}
@media(max-width:1099px){.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shorts-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.search-form{margin:0 8px 0 16px}.topbar-start{gap:8px}}
@media(max-width:1000px){body:not(.menu-open) .sidebar{width:72px;padding:0 4px}body:not(.menu-open) .sidebar .nav-group:not(:first-child),body:not(.menu-open) .sidebar-footer{display:none}body:not(.menu-open) .sidebar .nav-group{border:0}body:not(.menu-open) .sidebar .nav-item{flex-direction:column;justify-content:center;gap:5px;height:74px;padding:0;font-size:10px}.main,.mini-guide .main{margin-left:72px}.menu-open .sidebar{width:240px;box-shadow:var(--shadow)}.is-watch .main{margin-left:0}.watch-page,.cinema-mode .watch-page{grid-template-columns:minmax(0,1fr)}.cinema-mode .watch-primary{display:block}.cinema-mode .related{grid-column:auto;grid-row:auto}.cinema-mode .player-container{height:auto;aspect-ratio:16/9}.related .video-thumb{width:220px}.related .video-card{margin-bottom:16px}.related h3{font-size:16px;line-height:22px}.related .video-stats,.related .video-author{font-size:14px;line-height:20px}.watch-meta{align-items:flex-start}}
@media(max-width:700px){.topbar{padding-right:8px;padding-left:8px;gap:8px}.brand-word{font-size:19px}.topbar-start{gap:4px}.topbar-end{min-width:0;gap:0}.topbar-end .user-avatar{margin:0 6px}.search-form{display:none}.mobile-search-open{display:inline-flex}.search-mode .search-form{display:flex;position:absolute;left:0;right:0;top:env(safe-area-inset-top,0px);height:56px;background:var(--bg);padding:0 8px;margin:0;z-index:2}.search-mode .mobile-search-back{display:inline-flex;margin-right:4px}.search-mode .mic-button{margin-left:4px}.search-mode .search-button{width:48px}.suggestions{right:-48px}.main,.mini-guide .main{margin-left:0;padding-left:16px;padding-right:16px;padding-bottom:calc(82px + env(safe-area-inset-bottom,0px))}body .sidebar,body:not(.menu-open) .sidebar{width:240px;padding:0 12px;transform:translateX(-100%)}body.menu-open .sidebar{transform:none}body .sidebar .nav-group:not(:first-child),body:not(.menu-open) .sidebar .nav-group:not(:first-child),body .sidebar .sidebar-footer{display:block}body .sidebar .nav-item,body:not(.menu-open) .sidebar .nav-item{flex-direction:row;justify-content:flex-start;height:40px;gap:24px;padding:0 12px;font-size:14px}.chips-bar{margin:0 -16px 16px;padding:10px 16px;top:var(--top)}.chips{gap:8px}.chips-bar>.icon-button{display:none}.video-grid{gap:28px 12px}.video-card h3{font-size:14px;line-height:20px}.video-info{gap:8px;margin-top:10px}.video-author,.video-stats{font-size:12px;line-height:18px}.video-info>.channel-avatar{width:30px;height:30px}.card-more{opacity:1}.shorts-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.short-card h3{font-size:14px;line-height:20px}.short-card p{font-size:12px}.shorts-page .shorts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-nav{display:flex;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;height:calc(56px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:var(--bg);z-index:55;border-top:1px solid var(--line)}.bottom-nav>a{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;font-size:10px;flex:1}.bottom-nav>a.active{font-weight:500}.bottom-nav>a.active .ic{stroke-width:2.2}.thumbnail-actions{display:none}.page-head{padding:18px 0}.page-head h1{font-size:26px;line-height:34px}.is-watch .main{padding-left:0;padding-right:0}.watch-page{margin-top:0;gap:16px}.player-container{border-radius:0}.watch-details,.related{padding:0 12px}.video-title{font-size:18px;line-height:24px}.watch-meta{gap:16px}.video-actions{overflow:auto;width:100%;padding-bottom:4px}.watch-page.mini-mode{width:min(360px,calc(100% - 24px));right:12px;bottom:calc(70px + env(safe-area-inset-bottom,0px))}.mini-mode .player-container{min-height:240px;height:auto;aspect-ratio:1.5}.mini-mode .watch-details,.mini-mode .related{display:none}.related .video-thumb{width:42%;max-width:220px}.related h3{font-size:14px;line-height:20px}.related .video-stats,.related .video-author{font-size:12px;line-height:18px}.toast{bottom:calc(72px + env(safe-area-inset-bottom,0px));left:16px;max-width:calc(100% - 32px)}.search-results .video-card{gap:10px}.search-results .video-thumb{width:43%;border-radius:8px}.search-results h3{font-size:14px;line-height:20px}.search-results .video-author{margin-top:6px}.channel-header{gap:16px}.channel-header .channel-avatar{width:80px;height:80px;font-size:32px}.channel-header h1{font-size:24px;line-height:30px}.channel-header p{font-size:12px}.settings-page{margin:16px 0}.setting-row{gap:16px}.setting-row select{max-width:150px}.account-facts{grid-template-columns:130px 1fr}.account-page h1{font-size:26px}.account-banner{margin:12px 12px 4px}.popover{right:8px;max-width:calc(100% - 16px)}.notifications-menu{right:8px}.is-watch .sidebar-scrim{top:var(--top)}}
@media(max-width:499px){.video-grid{grid-template-columns:minmax(0,1fr);gap:26px}.video-grid .video-thumb{border-radius:0;margin:0 -16px}.video-grid .video-card h3{font-size:16px;line-height:22px}.video-grid .video-info{gap:12px}.video-grid .video-info>.channel-avatar{width:36px;height:36px}.video-grid .video-stats{font-size:12px}.shorts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.auth-page{justify-content:flex-start;padding:24px 16px;background:var(--bg)}.auth-card{border:0;border-radius:0;padding:16px 8px 24px}.auth-footer{margin-top:auto;padding:24px 0 0;font-size:11px;gap:16px}.search-results .video-author{font-size:12px}.search-results .video-info{padding-right:12px}.search-results .video-card .card-more{right:-10px}.search-results .video-stats{white-space:normal}.channel-header{align-items:flex-start}.channel-header .channel-avatar{width:64px;height:64px}.setting-row{align-items:flex-start}.setting-row select{max-width:128px}.video-channel .channel-identity{max-width:180px}.video-channel{gap:8px}.video-channel .pill{margin-left:auto}.modal{padding:20px}.account-banner{font-size:12px}.account-facts{grid-template-columns:110px 1fr}}
.thumbnail-actions{right:4px;top:4px}
.short-view{grid-template-columns:minmax(260px,480px);justify-content:center}
.short-view .player-container{aspect-ratio:9/16;max-height:78vh;min-height:400px}
.short-view .related{display:none}
.native-pip .topbar,.native-pip .sidebar,.native-pip .bottom-nav,.native-pip #page-content,.native-pip #chips-bar,.native-pip #account-banner,.native-pip .watch-details,.native-pip .related,.native-pip .toast{display:none!important}
.native-pip .main{padding:0!important;margin:0!important;min-height:0}
.native-pip .watch-page{display:block!important;position:fixed!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;max-width:none!important}
.native-pip .watch-primary,.native-pip .player-container{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;aspect-ratio:auto!important;min-height:0!important;max-height:none!important;border-radius:0!important;padding:0!important}
.native-pip .video-frame{inset:0!important}
.native-pip .mini-actions{display:none!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
