:root{
  --bg:#0f0f0f;--surface:#212121;--surface2:#272727;--surface3:#3f3f3f;--hover:#272727;--text:#f1f1f1;--muted:#aaa;--muted2:#717171;--accent:#ff0033;--line:#303030;--top:56px;--side:240px;--side-compact:72px;color-scheme:dark;font-family:Roboto,Arial,Helvetica,sans-serif
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Roboto,Arial,Helvetica,sans-serif}body{overflow-x:hidden}button,input{font:inherit}button{color:inherit}.hidden{display:none!important}svg{display:block;width:100%;height:100%;fill:currentColor}.app-shell{min-height:100vh}
.topbar{position:fixed;z-index:50;top:0;left:0;right:0;height:var(--top);display:grid;grid-template-columns:240px minmax(260px,720px) 240px;align-items:center;gap:16px;background:rgba(15,15,15,.98);padding:0 16px}.top-left,.top-actions,.top-center{display:flex;align-items:center}.top-left{gap:4px}.top-center{justify-content:center;gap:10px;min-width:0}.top-actions{justify-content:flex-end;gap:8px}.icon-btn,.avatar-btn,.brand,.nav-item,.mobile-tab,.chip,.plain-btn,.action-btn{border:0;background:none;cursor:pointer}.icon-btn{position:relative;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;padding:8px}.icon-btn:hover,.icon-btn:focus-visible{background:var(--hover);outline:0}.icon-btn svg{width:24px;height:24px}.brand{display:flex;align-items:center;gap:7px;height:40px;padding:0 8px 0 4px}.brand-mark{width:30px;height:22px;color:#f00;display:grid;place-items:center}.brand-mark svg{width:30px;height:22px}.brand-mark .brand-play{fill:#fff}.brand-text{font-family:Arial,Helvetica,sans-serif;font-size:17px;font-weight:800;letter-spacing:-.6px;white-space:nowrap}.searchbar{display:flex;flex:1;max-width:640px;height:40px;margin:0}.search-input-wrap{flex:1;min-width:0;border:1px solid #303030;background:#121212;border-radius:21px 0 0 21px;display:flex;align-items:center;overflow:hidden}.search-input-wrap:focus-within{border-color:#1c62b9;box-shadow:inset 1px 0 #1c62b9}.searchbar input{width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--text);padding:0 16px;font-size:16px}.searchbar input::placeholder{color:#888}.search-btn{width:64px;border:1px solid #303030;border-left:0;border-radius:0 21px 21px 0;background:#222;display:grid;place-items:center;cursor:pointer;padding:0}.search-btn:hover{background:#2a2a2a}.search-btn svg{width:24px;height:24px}.mic-btn{background:#181818}.avatar-btn{width:32px;height:32px;border-radius:50%;background:#3f51b5;font-size:15px;font-weight:700;display:grid;place-items:center;margin-left:2px}.badge{position:absolute;right:1px;top:0;min-width:16px;height:16px;border:2px solid var(--bg);border-radius:9px;background:#cc0000;color:#fff;font-size:10px;line-height:12px;display:grid;place-items:center;padding:0 3px}.mobile-search{display:none}
.sidebar{position:fixed;z-index:40;top:var(--top);bottom:0;left:0;width:var(--side);overflow-y:auto;overflow-x:hidden;padding:12px;background:var(--bg);transition:width .15s ease}.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-thumb{background:transparent;border-radius:8px}.sidebar:hover::-webkit-scrollbar-thumb{background:#555}.sidebar nav{display:flex;flex-direction:column}.nav-group{display:flex;flex-direction:column}.nav-item{height:40px;border-radius:10px;display:flex;align-items:center;gap:24px;padding:0 12px;text-align:left;width:100%;font-size:14px}.nav-item:hover{background:var(--hover)}.nav-item.active{background:#272727}.nav-item.active b{font-weight:700}.nav-item b{font-size:14px;font-weight:400;white-space:nowrap}.nav-icon{width:24px;height:24px;flex:0 0 24px}.nav-icon svg{width:24px;height:24px}.nav-sep{height:1px;background:#3f3f3f;margin:12px 0}.nav-heading{height:36px;display:flex;align-items:center;gap:8px;padding:0 12px;font-weight:700;font-size:16px}.sidebar.compact{width:var(--side-compact);padding:4px}.sidebar.compact .nav-item{height:64px;flex-direction:column;justify-content:center;gap:5px;padding:0;border-radius:10px}.sidebar.compact .nav-item b{display:block;font-size:10px;font-weight:400;max-width:62px;overflow:hidden;text-overflow:ellipsis}.sidebar.compact .nav-heading,.sidebar.compact .nav-sep{display:none}
.content{min-height:100vh;padding:calc(var(--top) + 8px) 24px 80px calc(var(--side-compact) + 24px)}.sidebar.compact~.content{padding-left:calc(var(--side-compact) + 24px)}.sidebar:not(.compact){box-shadow:10px 0 24px rgba(0,0,0,.35)}.page-title{font-size:24px;font-weight:700;margin:16px 0 20px}.chips{position:sticky;z-index:25;top:var(--top);display:flex;flex-wrap:wrap;gap:8px;overflow:visible;padding:12px 0;background:var(--bg)}.chip{height:32px;white-space:nowrap;border-radius:8px;background:#272727;padding:0 12px;font-size:14px;font-weight:600}.chip:hover{background:#3f3f3f}.chip.active{background:#f1f1f1;color:#0f0f0f}.section-row{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px}.section-row h2{margin:0;font-size:20px;font-weight:700}.plain-btn,.action-btn{border:0;background:#272727;border-radius:18px;padding:8px 14px;font-weight:600;cursor:pointer}.plain-btn:hover,.action-btn:hover{background:#3f3f3f}.action-btn.primary{background:#fff;color:#0f0f0f}.action-btn.primary:hover{background:#e5e5e5}.action-btn.danger{background:#3b171c;color:#ff8d9f}.danger-soft{background:#2d1b1f;color:#ff9aad}
.video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:16px;row-gap:34px}.video-card{min-width:0;cursor:pointer}.thumb{position:relative;width:100%;aspect-ratio:16/9;background:#222;border-radius:12px;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.thumb .duration,.thumb .live{position:absolute;bottom:5px;border-radius:4px;color:#fff;font-size:12px;font-weight:600}.thumb .duration{right:5px;background:rgba(0,0,0,.78);padding:2px 4px}.thumb .live{left:6px;background:#cc0000;padding:3px 6px}.card-body{display:grid;grid-template-columns:36px minmax(0,1fr) 32px;gap:10px;padding-top:10px}.card-avatar{width:36px;height:36px;border-radius:50%;background:#2b2b2b;display:grid;place-items:center;font-weight:700;font-size:14px;color:#ddd}.card-copy{min-width:0}.card-title{font-weight:600;font-size:15px;line-height:1.35;color:#f1f1f1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.card-meta{color:var(--muted);font-size:13px;line-height:1.4;margin-top:4px}.more-btn{border:0;background:none;border-radius:50%;height:32px;width:32px;cursor:pointer;color:var(--text);font-size:23px;display:grid;place-items:center;padding:0}.more-btn:hover{background:var(--hover)}.h-scroll{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 16px;padding-bottom:10px;overflow:visible}.h-scroll>.video-card{min-width:0}.short-card .thumb{aspect-ratio:9/16}.short-card .card-avatar{display:none}.short-card .card-body{grid-template-columns:minmax(0,1fr) 32px}
.skeleton{background:linear-gradient(90deg,#1b1b1b,#2a2a2a,#1b1b1b);background-size:200% 100%;animation:sk 1.1s linear infinite;border-radius:12px}@keyframes sk{to{background-position:-200% 0}}.loading-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px 16px}.loading-card .skeleton:first-child{aspect-ratio:16/9}.loading-card .line{height:14px;margin-top:10px}.empty,.error{min-height:45vh;display:grid;place-items:center;text-align:center;color:var(--muted)}.error b{color:#ff6683}
.player-page{max-width:1700px;margin:0 auto}.player-layout{display:grid;grid-template-columns:minmax(0,1fr) 402px;gap:24px;align-items:start}.player-main{min-width:0}.player-stage{position:relative;background:#000;aspect-ratio:16/9;max-height:calc(100vh - 90px);overflow:hidden;display:grid;place-items:center;user-select:none}.player-stage video,.player-stage iframe{width:100%;height:100%;border:0;background:#000;object-fit:contain}.player-page .player-stage{border-radius:12px}.player-stage.controls-hidden{cursor:none}.player-stage.controls-hidden .yt-controls,.player-stage.controls-hidden .player-center-play{opacity:0;pointer-events:none}.player-gradient{position:absolute;left:0;right:0;bottom:0;height:120px;background:linear-gradient(transparent,rgba(0,0,0,.82));pointer-events:none}.yt-controls{position:absolute;z-index:12;left:0;right:0;bottom:0;padding:0 12px 8px;opacity:1;transition:opacity .18s ease;background:linear-gradient(transparent,rgba(0,0,0,.65));color:#fff}.yt-progress-wrap{position:relative;height:18px;display:flex;align-items:center;cursor:pointer}.yt-progress-buffer{position:absolute;left:0;right:0;height:3px;background:linear-gradient(to right,#777 var(--buffer,0%),rgba(255,255,255,.25) var(--buffer,0%));pointer-events:none}.yt-progress{position:relative;z-index:2;width:100%;height:4px;appearance:none;-webkit-appearance:none;background:linear-gradient(to right,#f00 var(--progress,0%),transparent var(--progress,0%));cursor:pointer;margin:0}.yt-progress::-webkit-slider-runnable-track{height:3px;background:linear-gradient(to right,#f00 var(--progress,0%),transparent var(--progress,0%))}.yt-progress::-moz-range-track{height:3px;background:linear-gradient(to right,#f00 var(--progress,0%),transparent var(--progress,0%))}.yt-progress::-webkit-slider-thumb{-webkit-appearance:none;width:13px;height:13px;border-radius:50%;background:#f00;margin-top:-5px;opacity:0}.yt-progress::-moz-range-thumb{width:13px;height:13px;border:0;border-radius:50%;background:#f00;opacity:0}.yt-progress-wrap:hover .yt-progress::-webkit-slider-thumb,.yt-progress:focus::-webkit-slider-thumb{opacity:1}.yt-progress-wrap:hover .yt-progress::-moz-range-thumb,.yt-progress:focus::-moz-range-thumb{opacity:1}.yt-progress-wrap:hover .yt-progress,.yt-progress:focus{height:5px}.yt-progress-wrap:hover .yt-progress-buffer{height:5px}.yt-control-row{height:44px;display:flex;align-items:center;justify-content:space-between}.yt-left,.yt-right{display:flex;align-items:center;min-width:0}.yt-control-btn{width:42px;height:42px;border:0;background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;padding:9px;border-radius:3px}.yt-control-btn:hover,.yt-control-btn:focus-visible{background:rgba(255,255,255,.12);outline:0}.yt-control-btn svg{width:25px;height:25px;filter:drop-shadow(0 1px 1px #000)}.yt-control-btn.cc-on{background:rgba(255,255,255,.2)}.yt-volume-group{display:flex;align-items:center}.yt-volume{width:0;opacity:0;transition:width .16s ease,opacity .16s ease;appearance:none;-webkit-appearance:none;height:3px;background:#fff;cursor:pointer}.yt-volume-group:hover .yt-volume,.yt-volume:focus{width:64px;opacity:1}.yt-volume::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#fff}.yt-volume::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:#fff}.yt-time{font-size:13px;white-space:nowrap;margin:0 8px;text-shadow:0 1px 2px #000}.yt-live-badge{font-size:12px;font-weight:700;padding:3px 7px;background:#f00;border-radius:3px;margin-left:6px}.yt-settings{position:absolute;right:12px;bottom:58px;z-index:20;width:min(330px,calc(100% - 24px));max-height:70%;overflow:auto;background:rgba(28,28,28,.97);border-radius:12px;box-shadow:0 6px 30px #000c;padding:8px 0}.yt-settings-title{padding:10px 14px;font-size:14px;font-weight:700;border-bottom:1px solid #444}.yt-setting-row{width:100%;min-height:42px;border:0;background:none;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 14px;text-align:left;cursor:pointer;font-size:14px}.yt-setting-row:hover,.yt-setting-row:focus-visible{background:#3b3b3b;outline:0}.yt-setting-row small{color:#bbb;font-size:12px}.yt-setting-check{width:20px;text-align:center}.player-center-play{position:absolute;z-index:10;inset:0;display:grid;place-items:center;pointer-events:none;transition:opacity .18s}.player-center-play button{pointer-events:auto;width:68px;height:48px;border:0;border-radius:12px;background:rgba(0,0,0,.65);color:#fff;display:grid;place-items:center;cursor:pointer}.player-center-play button svg{width:30px;height:30px}.player-center-play.playing{opacity:0}.player-toast{position:absolute;z-index:15;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.62);border-radius:50%;width:72px;height:72px;display:grid;place-items:center;font-size:22px;font-weight:700;pointer-events:none}.player-page.theater{max-width:none;margin:-8px -24px 0 calc(-1 * (var(--side-compact) + 24px))}.sidebar.compact~.content .player-page.theater{margin-left:calc(-1 * (var(--side-compact) + 24px))}.player-page.theater .player-layout{display:block}.player-page.theater .player-stage{border-radius:0;max-height:none;height:min(75vh,calc(100vw * .5625));aspect-ratio:auto}.player-page.theater .player-main,.player-page.theater .player-side{max-width:1500px;margin:0 auto;padding-left:24px;padding-right:24px}.player-page.theater .player-main{padding-top:16px}.video-title{font-size:20px;line-height:1.4;font-weight:600;margin:14px 0 10px}.video-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.channel-row{display:flex;align-items:center;gap:10px;flex:1;min-width:280px}.channel-avatar{width:40px;height:40px;border-radius:50%;background:#333;display:grid;place-items:center;font-weight:700}.channel-name{font-weight:600;font-size:14px}.sub-btn{background:#fff;color:#111;border:0;border-radius:18px;padding:9px 16px;font-weight:600;cursor:pointer}.sub-btn.on{background:#272727;color:#fff}.description{background:#272727;border-radius:12px;padding:12px;margin-top:12px;font-size:14px;white-space:pre-wrap;line-height:1.5}.player-side{min-width:0}.related{display:flex;flex-direction:column;gap:8px}.related-card{display:grid;grid-template-columns:168px minmax(0,1fr);gap:8px;cursor:pointer}.related-card .thumb{border-radius:8px}.related-card .card-title{font-size:14px;line-height:1.3}.related-card .card-meta{font-size:12px}.comment-list{margin-top:24px}.comment-list h2{font-size:18px}.comment{display:grid;grid-template-columns:40px 1fr;gap:12px;margin:20px 0}.comment-avatar{width:40px;height:40px;border-radius:50%;background:#333;overflow:hidden}.comment-avatar img{width:100%;height:100%;object-fit:cover}.comment-author{font-size:13px;font-weight:700}.comment-text{margin-top:5px;white-space:pre-wrap;line-height:1.45;font-size:14px}
.shorts-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px 12px}.shorts-viewer{height:calc(100vh - var(--top) - 20px);display:grid;place-items:center}.shorts-stage{height:min(82vh,800px);aspect-ratio:9/16;background:#000;border-radius:16px;overflow:hidden;position:relative}.shorts-stage video,.shorts-stage iframe{width:100%;height:100%;border:0;object-fit:contain}.shorts-stage .yt-control-row{height:40px}.shorts-stage .yt-control-btn{width:38px;height:38px}.shorts-stage .yt-time{display:none}.shorts-info{position:absolute;z-index:6;bottom:58px;left:14px;right:14px;text-shadow:0 1px 4px #000;pointer-events:none}
.subscription-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 18px}.subscription-card{display:flex;flex-direction:column;align-items:center;text-align:center;cursor:pointer;padding:12px;border-radius:12px}.subscription-card:hover{background:#1c1c1c}.subscription-avatar{width:min(140px,70%);aspect-ratio:1;border-radius:50%;background:#272727;display:grid;place-items:center;font-size:40px;font-weight:600}.subscription-card h3{font-size:14px;margin:12px 0 4px}.profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:900px}.profile-tile{background:#181818;border-radius:12px;padding:18px;cursor:pointer;border:1px solid #282828}.profile-tile:hover{background:#222}.profile-tile span{font-size:24px}.settings{max-width:900px}.setting-card{background:#181818;border-radius:12px;padding:18px;margin:12px 0;border:1px solid #282828}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px}.setting-row h3{margin:0 0 6px}.setting-row p{margin:0;color:var(--muted);font-size:14px;line-height:1.45}.toggle{width:44px;height:24px;border-radius:20px;background:#555;border:0;padding:3px;cursor:pointer}.toggle::after{content:"";display:block;width:18px;height:18px;border-radius:50%;background:#ddd;transition:.16s}.toggle.on{background:#3ea6ff}.toggle.on::after{transform:translateX(20px);background:#fff}.import-box{border:1px solid #3f3f3f;border-radius:12px;padding:18px;text-align:center;margin-top:14px}.import-box input{display:none}.import-status{margin-top:10px;color:var(--muted);font-size:13px}.login-card{max-width:430px;margin:8vh auto;background:#181818;padding:28px;border-radius:12px;border:1px solid #303030}.login-card h2{margin-top:0}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0}.field input{height:44px;border-radius:8px;border:1px solid #444;background:#111;color:#fff;padding:0 12px}.login-card .action-btn{width:100%;margin-top:8px}.blocked-list{display:grid;gap:8px;margin-top:14px}.blocked-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#242424;border-radius:10px;padding:10px 12px}.blocked-row>div{min-width:0}.blocked-row b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.blocked-row small{display:block;color:var(--muted);margin-top:3px}
.toast{position:fixed;z-index:120;left:50%;bottom:26px;transform:translateX(-50%);background:#fff;color:#111;padding:10px 16px;border-radius:4px;box-shadow:0 6px 30px #0009;max-width:min(90vw,600px);font-size:14px}.modal-backdrop{position:fixed;z-index:100;inset:0;background:#0009;display:grid;place-items:center;padding:20px}.modal{background:#242424;border-radius:12px;max-width:520px;width:100%;max-height:90vh;overflow:auto;padding:20px}.modal h3{margin-top:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.block-choice{display:grid;gap:10px;margin-top:16px}.menu-pop{position:fixed;z-index:90;background:#282828;border-radius:12px;padding:8px 0;min-width:250px;box-shadow:0 8px 30px #000b}.menu-pop button{display:flex;align-items:center;width:100%;border:0;background:none;color:#fff;text-align:left;padding:11px 16px;cursor:pointer;font-size:14px}.menu-pop button:hover{background:#3e3e3e}.mobile-bottom{display:none}
@media(max-width:1400px){.video-grid,.loading-grid,.h-scroll{grid-template-columns:repeat(3,1fr)}.shorts-grid{grid-template-columns:repeat(5,1fr)}.topbar{grid-template-columns:220px minmax(260px,640px) 180px}.player-layout{grid-template-columns:minmax(0,1fr) 360px}}
@media(max-width:1100px){.video-grid,.loading-grid,.h-scroll{grid-template-columns:repeat(3,1fr)}.player-layout{grid-template-columns:1fr}.player-side{margin-top:18px}.related{display:grid;grid-template-columns:repeat(2,1fr)}.topbar{grid-template-columns:200px minmax(240px,1fr) 140px}.subscription-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){:root{--top:56px}.desktop-only,.sidebar{display:none!important}.topbar{grid-template-columns:auto 1fr auto;padding:0 8px;gap:6px}.top-left{min-width:0}.brand{padding-left:0}.brand-text{font-size:16px}.top-center{display:none}.mobile-search{display:grid}.content,.sidebar.compact~.content{padding:calc(var(--top) + 4px) 12px 78px}.mobile-bottom{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;z-index:55;bottom:0;left:0;right:0;height:62px;padding-bottom:env(safe-area-inset-bottom);background:rgba(15,15,15,.98);border-top:1px solid #292929}.mobile-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#fff;font-size:12px}.mobile-tab span{width:24px;height:24px}.mobile-tab small{font-size:10px}.video-grid,.loading-grid,.h-scroll{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}.player-page{margin:0 -12px}.player-page .player-stage{border-radius:0}.player-main>*:not(.player-stage),.player-side{margin-left:12px;margin-right:12px}.player-page.theater{margin:-4px -12px 0}.player-page.theater .player-main,.player-page.theater .player-side{padding-left:12px;padding-right:12px}.related{grid-template-columns:repeat(2,1fr)}.related-card{display:block}.subscription-grid{grid-template-columns:repeat(3,1fr)}.shorts-grid{grid-template-columns:repeat(3,1fr)}.profile-grid{grid-template-columns:1fr 1fr}.yt-settings{right:8px;bottom:54px}.yt-volume-group:hover .yt-volume{width:48px}}
@media(max-width:560px){.brand-text{font-size:15px}.top-actions{gap:0}.video-grid,.loading-grid,.h-scroll{grid-template-columns:1fr}.video-card{margin:0 -12px}.video-card .thumb{border-radius:0}.video-card .card-body{padding-left:12px;padding-right:8px}.chips{margin:0 -12px;padding-left:12px;padding-right:12px}.h-scroll{margin-right:0}.h-scroll .video-card{margin:0}.h-scroll .video-card .thumb{border-radius:10px}.related{grid-template-columns:1fr}.related-card{display:grid;grid-template-columns:150px 1fr}.subscription-grid{grid-template-columns:repeat(2,1fr)}.profile-grid{grid-template-columns:1fr}.shorts-grid{grid-template-columns:repeat(2,1fr)}.short-card{margin:0}.short-card .thumb{border-radius:10px}.setting-row{align-items:flex-start}.page-title{font-size:22px}.video-title{font-size:18px;padding-right:4px}.channel-row{min-width:100%;flex-wrap:wrap}.yt-control-btn{width:38px;height:38px;padding:8px}.yt-control-btn.next-btn,.yt-control-btn.pip-btn,.yt-control-btn.theater-btn{display:none}.yt-time{font-size:11px;margin:0 4px}.yt-controls{padding:0 6px 5px}.yt-settings{width:min(300px,calc(100% - 12px));right:6px;bottom:50px}.yt-volume-group:hover .yt-volume,.yt-volume:focus{width:0;opacity:0}.player-center-play button{width:58px;height:42px}.shorts-stage{height:calc(100vh - var(--top) - 72px);max-height:none;border-radius:0}.shorts-viewer{height:calc(100vh - var(--top) - 68px);margin:0 -12px}.shorts-info{left:10px;right:10px}.toast{bottom:76px}}
@media(pointer:coarse){.yt-control-btn{min-width:44px;min-height:44px}.chip{min-height:36px}.nav-item{min-height:44px}}

/* V5: no horizontal page shifting/rails */
.app-shell,.content,#content{max-width:100%;overflow-x:clip}.video-grid,.h-scroll,.loading-grid{width:100%;min-width:0}.sidebar{will-change:width}.sidebar:not(.compact){z-index:60}.topbar{z-index:70}

/* V6 - current YouTube-style navigation, subscriptions and real channel artwork */
.create-btn{height:36px;border:0;border-radius:18px;background:#272727;color:#fff;display:flex;align-items:center;gap:7px;padding:0 13px;cursor:pointer;font-size:14px}.create-btn:hover{background:#3f3f3f}.create-btn span{font-size:22px;line-height:1;font-weight:300}.create-btn b{font-weight:600}
.compact-only{display:none}.sidebar.compact .expanded-only{display:none!important}.sidebar.compact .compact-only{display:flex}.nav-heading-btn{border:0;background:none;color:inherit;cursor:pointer;width:100%;text-align:left}.nav-heading-btn:hover{background:var(--hover);border-radius:10px}.simple-icon{display:grid;place-items:center;font-size:20px;font-weight:500}
.sidebar-subs{display:flex;flex-direction:column}.sidebar-sub{height:40px;width:100%;border:0;background:none;color:inherit;border-radius:10px;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:24px;padding:0 12px;text-align:left;cursor:pointer}.sidebar-sub:hover{background:var(--hover)}.sidebar-sub>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}.sidebar-sub-avatar{width:24px;height:24px;border-radius:50%;overflow:hidden;background:#333;display:grid;place-items:center;font-size:10px;font-weight:700}.sidebar-sub-avatar img,.card-avatar img,.channel-avatar img,.subscription-row-avatar img{width:100%;height:100%;object-fit:cover;display:block}.sidebar-more-icon{width:24px;text-align:center;font-size:18px}.sidebar-sub-loading{padding:8px 12px;color:var(--muted);font-size:12px;line-height:1.4}
.card-avatar{overflow:hidden}.card-avatar span,.channel-avatar span,.subscription-row-avatar span{display:grid;place-items:center;width:100%;height:100%}.card-channel{display:block;border:0;background:none;color:var(--muted);padding:0;margin-top:5px;font-size:13px;line-height:1.3;text-align:left;cursor:pointer;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-channel:hover{color:#fff}.card-meta{margin-top:2px}.video-card .card-body{align-items:start}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.page-head .page-title{margin-right:auto}.subscription-manager{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px;padding:10px 0 24px;border-bottom:1px solid var(--line);margin-bottom:24px}.subscription-row{height:48px;border:0;border-radius:10px;background:none;color:#fff;display:flex;align-items:center;gap:12px;padding:4px 10px;cursor:pointer;text-align:left;min-width:0}.subscription-row:hover{background:var(--hover)}.subscription-row>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.subscription-row-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;overflow:hidden;background:#333;display:grid;place-items:center;font-size:12px;font-weight:700}
.playlist-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 16px}.playlist-card{min-width:0}.playlist-thumb{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#222}.playlist-thumb img{width:100%;height:100%;object-fit:cover}.playlist-thumb span{position:absolute;right:6px;bottom:6px;background:#000c;border-radius:4px;padding:3px 6px;font-size:12px}.playlist-card h3{font-size:14px;line-height:1.35;margin:9px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.you-links{max-width:760px;display:flex;flex-direction:column}.you-row{border:0;background:none;color:#fff;display:flex;flex-direction:column;align-items:flex-start;padding:14px 16px;border-radius:10px;cursor:pointer;text-align:left}.you-row:hover{background:var(--hover)}.you-row b{font-size:15px}.you-row span{font-size:13px;color:var(--muted);margin-top:3px}
.channel-page{max-width:1280px;margin:0 auto}.channel-banner{width:100%;aspect-ratio:6.2/1;max-height:210px;border-radius:12px;overflow:hidden;background:#181818}.channel-banner img{width:100%;height:100%;object-fit:cover}.channel-header{display:flex;align-items:center;gap:24px;padding:24px 16px 18px}.channel-header-avatar{width:160px;height:160px;flex:0 0 160px;border-radius:50%;overflow:hidden;background:#242424;display:grid;place-items:center;font-size:54px;font-weight:700}.channel-header-avatar img{width:100%;height:100%;object-fit:cover}.channel-header-copy{min-width:0}.channel-header-copy h1{font-size:36px;line-height:1.2;margin:0 0 8px}.channel-stats{font-size:14px;color:var(--muted)}.channel-header-copy p{max-width:760px;color:#ddd;font-size:14px;line-height:1.45;margin:9px 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.channel-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--line);padding:0 8px}.channel-tab{height:48px;border:0;border-bottom:3px solid transparent;background:none;color:#aaa;padding:0 14px;font-size:14px;font-weight:600;cursor:pointer}.channel-tab:hover{color:#fff}.channel-tab.active{color:#fff;border-bottom-color:#fff}.channel-content{padding-top:24px}
.quick-menu{display:flex;flex-direction:column;gap:2px}.quick-row{border:0;background:none;color:#fff;text-align:left;padding:12px 14px;border-radius:8px;cursor:pointer}.quick-row:hover{background:#3b3b3b}
.mobile-plus{width:32px!important;height:32px!important;border:1px solid #aaa;border-radius:50%;display:grid!important;place-items:center;font-size:25px;line-height:1}.mobile-create small{margin-top:1px}
.channel-avatar{overflow:hidden}.channel-avatar img{border-radius:50%}
@media(max-width:1400px){.playlist-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.subscription-manager{grid-template-columns:repeat(2,minmax(0,1fr))}.channel-header-avatar{width:132px;height:132px;flex-basis:132px}.channel-header-copy h1{font-size:30px}}
@media(max-width:900px){.mobile-bottom{grid-template-columns:repeat(5,1fr)}.playlist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.channel-page{margin:0 -12px}.channel-banner{border-radius:0}.channel-header{padding:18px 16px}.channel-header-avatar{width:92px;height:92px;flex-basis:92px;font-size:34px}.channel-header-copy h1{font-size:24px}.channel-tabs{padding:0 8px}.channel-content{padding:18px 12px 0}}
@media(max-width:560px){.subscription-manager{grid-template-columns:1fr}.playlist-grid{grid-template-columns:1fr}.channel-header{align-items:flex-start;gap:14px}.channel-header-avatar{width:72px;height:72px;flex-basis:72px}.channel-header-copy h1{font-size:21px}.channel-header-copy p{display:none}.channel-tab{height:42px;padding:0 9px;font-size:13px}.create-btn b{display:none}}


/* V8 - responsive sidebar reflow + HD thumbnail pipeline */
html,body,.app-shell{width:100%;max-width:100%;overflow-x:hidden}
img{max-width:100%}
.topbar{grid-template-columns:minmax(176px,240px) minmax(0,1fr) minmax(150px,240px);width:100%;max-width:100vw;overflow:hidden}
.top-left,.top-center,.top-actions,.searchbar,.search-input-wrap{min-width:0}
.content,.sidebar.compact~.content{width:100%;max-width:100vw;min-width:0;padding-left:calc(var(--side-compact) + 20px);padding-right:20px;overflow-x:hidden;transition:padding-left .16s ease}
.sidebar:not(.compact)~.content{padding-left:calc(var(--side) + 20px)}
.video-grid,.h-scroll,.loading-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:32px 16px;width:100%;min-width:0;overflow:visible}
.video-card{min-width:0;max-width:100%;content-visibility:auto;contain-intrinsic-size:300px 260px}
.thumb{contain:layout paint;background:#181818}.thumb img{image-rendering:auto;transform:translateZ(0);backface-visibility:hidden}
.card-title,.card-meta,.card-channel{overflow-wrap:anywhere}
.chips{max-width:100%;overflow:hidden}.chip{flex:0 0 auto}
.sidebar.compact{overflow-y:auto;scrollbar-width:none}.sidebar.compact::-webkit-scrollbar{display:none}.sidebar.compact .nav-item{height:66px}.sidebar.compact .nav-item b{font-size:10px;line-height:1.1;text-align:center;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:64px}
.sidebar.compact .compact-only{display:flex}
@media(max-width:1250px) and (min-width:901px){.topbar{grid-template-columns:200px minmax(0,1fr) 190px;gap:10px;padding:0 10px}.create-btn b{display:none}.content,.sidebar.compact~.content{padding-left:86px;padding-right:14px}.sidebar:not(.compact)~.content{padding-left:calc(var(--side) + 14px)}.video-grid,.h-scroll,.loading-grid{grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:28px 14px}}
@media(max-width:1050px) and (min-width:901px){.brand-text{font-size:15px}.topbar{grid-template-columns:175px minmax(0,1fr) 150px}.video-grid,.h-scroll,.loading-grid{grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}.mic-btn{display:none!important}}
@media(max-width:900px){.content,.sidebar.compact~.content,.sidebar:not(.compact)~.content{width:100%;max-width:100vw;padding-left:12px;padding-right:12px}.video-grid,.h-scroll,.loading-grid{grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr))}}
@media(max-width:620px){.video-grid,.h-scroll,.loading-grid{grid-template-columns:1fr}.video-card{content-visibility:visible}}
/* V9: official Cast control + YouTube-style action/download menu */
google-cast-launcher.yt-cast-launcher{display:block;width:42px;height:42px;box-sizing:border-box;padding:9px;cursor:pointer;--connected-color:#fff;--disconnected-color:#fff}
google-cast-launcher.yt-cast-launcher:not(:defined){display:none}
.action-btn.icon-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 13px;border-radius:18px;white-space:nowrap}
.action-btn.icon-action svg{width:20px;height:20px;flex:0 0 20px}
.download-pop{max-height:min(70vh,460px);overflow:auto}
.download-pop-title{padding:10px 16px 8px;font-size:15px;font-weight:700;border-bottom:1px solid #3b3b3b;margin-bottom:4px}
.download-section-label{padding:9px 16px 5px;color:#aaa;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.45px}.download-section-label:not(:first-of-type){border-top:1px solid #343434;margin-top:5px;padding-top:11px}
.download-pop button{gap:12px}
.download-pop button>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.download-pop button b{font-size:14px;font-weight:600}
.download-pop button small{font-size:12px;color:#aaa}
.download-row-icon{width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px}
.download-row-icon svg{width:22px;height:22px}
.download-empty{padding:16px;color:#aaa;font-size:13px;line-height:1.4}
@media(max-width:560px){google-cast-launcher.yt-cast-launcher{width:38px;height:38px;padding:8px}.action-btn.icon-action{padding:7px 11px}.video-actions{gap:8px}}
/* V10: keresési találatok mindig a legfrissebb ismert publikálási idő szerint */
.search-page-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.search-page-head .page-title{margin-right:0}.search-order-note{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:8px;background:#272727;color:#aaa;font-size:12px;font-weight:600}
