:root{color-scheme:dark;--bg:#090909;--panel:#141414;--panel2:#1c1c1c;--line:#292929;--text:#f5f5f5;--muted:#929292;--accent:#fff;font-family:Inter,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}button,input{font:inherit}button{color:inherit;cursor:pointer}.topbar{height:70px;position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:28px;padding:0 28px;background:#090909ed;border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}.brand{display:flex;align-items:center;gap:9px;color:var(--text);text-decoration:none;min-width:190px}.brand strong{font-size:20px;letter-spacing:-1px}.brand-sub{color:var(--muted);font-size:14px;margin-left:-5px}.brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f5f5f5;color:#080808;font-size:13px}.search{display:flex;max-width:650px;width:min(55vw,650px);margin:auto;border:1px solid #333;border-radius:999px;background:#141414;overflow:hidden}.search input{flex:1;min-width:0;background:none;border:0;outline:0;padding:12px 18px;color:var(--text)}.search button{width:58px;border:0;border-left:1px solid #333;background:#202020;font-size:24px}.icon-btn{border:1px solid var(--line);background:var(--panel);border-radius:50%;width:40px;height:40px;font-size:17px}.settings{position:absolute;z-index:8;right:28px;top:62px;width:min(370px,calc(100vw - 30px));padding:18px;background:#171717;border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 50px #0009}.settings div{display:flex;justify-content:space-between;gap:12px}.settings span,.settings p{color:var(--muted);font-size:12px}.settings p{line-height:1.6;margin-bottom:0}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 70px)}.sidebar{position:sticky;top:70px;height:calc(100vh - 70px);padding:24px 14px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:15px;padding:12px 14px;background:transparent;border:0;border-radius:10px;text-align:left;color:#aaa;font-size:14px}.nav-item span{width:18px;text-align:center;font-size:19px}.nav-item:hover,.nav-item.active{background:#202020;color:#fff}.nav-sep{height:1px;background:var(--line);margin:12px 4px}.sidebar-foot{margin-top:auto;padding:14px;color:#aaa;font-size:12px;letter-spacing:2px}.sidebar-foot span{display:block;margin-top:6px;letter-spacing:0;color:#666;font-size:11px}main{min-width:0;padding:22px 30px 60px}.chips{display:flex;gap:10px;overflow:auto;padding:0 0 22px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{white-space:nowrap;border:1px solid var(--line);background:#191919;border-radius:8px;padding:9px 14px;font-size:12px;color:#ccc}.chip.selected,.chip:hover{background:#f4f4f4;color:#090909;border-color:#f4f4f4}.feed-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:8px 0 20px}.feed-head h1{font-size:21px;margin:0;letter-spacing:-.6px}.feed-head span{font-size:12px;color:var(--muted)}.video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:28px 18px}.video-card{min-width:0}.thumb{position:relative;display:block;width:100%;aspect-ratio:16/9;padding:0;border:0;border-radius:12px;overflow:hidden;background:#202020}.thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}.thumb:hover img{transform:scale(1.035)}.play-hint{position:absolute;inset:0;display:grid;place-items:center;background:#0000;opacity:0;transition:.2s;font-size:38px}.thumb:hover .play-hint{opacity:1;background:#0005}.video-info{display:grid;grid-template-columns:36px minmax(0,1fr) 30px;gap:10px;padding-top:12px}.avatar{width:36px;height:36px;border-radius:50%;background:#262626;display:grid;place-items:center;font-weight:700;color:#ddd}.video-title{display:block;padding:0;border:0;background:none;text-align:left;font-size:13px;line-height:1.45;font-weight:600;color:#eee;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.video-meta{font-size:11px;color:var(--muted);margin-top:5px}.save-btn{background:none;border:0;color:#888;font-size:19px;align-self:start}.save-btn:hover{color:white}.empty{grid-column:1/-1;color:var(--muted);padding:55px 10px;text-align:center}.load-more{display:block;margin:34px auto 0;padding:11px 24px;border:1px solid var(--line);border-radius:9px;background:#1a1a1a}.player{position:fixed;inset:0;z-index:20;background:#000e;display:grid;place-items:center;padding:22px}.player-panel{width:min(1050px,100%);background:#111;border:1px solid #333;border-radius:16px;padding:16px}.player-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.player-head strong{display:block;font-size:14px}.player-head span{display:block;color:var(--muted);font-size:11px;margin-top:4px}.close-btn{border:1px solid #333;background:#202020;border-radius:8px;width:36px;height:36px}.stage{width:100%;aspect-ratio:16/9;background:#000;border-radius:10px;overflow:hidden}.stage iframe,.stage video{width:100%;height:100%;border:0;display:block;background:#000}.playback-loading{height:100%;display:grid;place-items:center;color:#aaa;font-size:13px}.player-actions{display:flex;gap:10px;margin-top:13px}.player-actions button{background:#202020;border:1px solid #333;border-radius:8px;padding:9px 13px;font-size:12px}.player-actions button:hover{background:#303030}[hidden]{display:none!important}@media(max-width:760px){.topbar{height:62px;padding:0 13px;gap:12px}.brand{min-width:auto}.brand strong{font-size:17px}.brand-mark{width:27px;height:27px}.search{width:auto;flex:1}.search input{padding:10px 12px;font-size:13px}.search button{width:42px}.icon-btn{flex:none;width:35px;height:35px}.layout{display:block;min-height:calc(100vh - 62px)}.sidebar{position:fixed;z-index:6;top:auto;bottom:0;left:0;right:0;height:60px;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);background:#0b0b0bf2;display:flex;flex-direction:row;justify-content:space-around;gap:3px}.nav-item{flex:1;display:flex;flex-direction:column;justify-content:center;gap:1px;padding:4px 2px;font-size:9px;text-align:center}.nav-item span{font-size:17px}.nav-sep,.sidebar-foot{display:none}main{padding:16px 13px 90px}.chips{padding-bottom:15px}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 11px}.video-info{grid-template-columns:28px minmax(0,1fr) 24px;gap:7px;padding-top:8px}.avatar{width:28px;height:28px;font-size:11px}.video-title{font-size:11px}.video-meta{font-size:10px}.thumb{border-radius:9px}.feed-head{margin:5px 0 14px}.feed-head h1{font-size:18px}.feed-head span{font-size:10px}.player{padding:10px}.player-panel{padding:10px}.player-actions button{font-size:11px}.settings{top:57px;right:10px}}@media(max-width:380px){.video-grid{grid-template-columns:1fr}.video-info{grid-template-columns:36px minmax(0,1fr) 30px}.avatar{width:36px;height:36px}.video-title{font-size:13px}}

/* YouTube-inspired feed refinements */
.topbar{height:64px;padding:0 24px;gap:32px;border-bottom:0;background:#0f0f0ff2}
.brand{min-width:205px;gap:10px}
.brand-mark{border-radius:9px;width:34px;height:26px;background:#f5f5f5;color:#090909;font-size:14px}
.brand strong{font-size:21px;letter-spacing:-1.1px}
.search{max-width:720px;width:min(58vw,720px);height:42px;background:#121212;border-color:#303030}
.search input{padding:0 20px;font-size:15px}
.search button{width:64px;background:#222;border-left:1px solid #303030;font-size:22px}
.layout{grid-template-columns:232px minmax(0,1fr);min-height:calc(100vh - 64px)}
.sidebar{top:64px;height:calc(100vh - 64px);padding:16px 12px;border-right:0;gap:4px}
.nav-item{min-height:46px;border-radius:10px;padding:0 16px;font-size:14px;gap:22px;color:#eee}
.nav-item span{font-size:20px}
.nav-item.active{background:#272727;font-weight:650}
.nav-sep{margin:12px 4px}
main{padding:22px 28px 64px}
.chips{position:sticky;top:64px;z-index:3;background:#0f0f0f;padding:0 0 20px;gap:12px}
.chip{border:0;border-radius:8px;background:#272727;color:#f1f1f1;padding:9px 13px;font-size:13px;font-weight:550}
.chip.selected,.chip:hover{background:#f1f1f1;color:#0f0f0f}
.feed-head{margin:5px 0 22px}
.feed-head h1{font-size:22px;font-weight:700;letter-spacing:-.5px}
.video-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:34px 18px}
.video-card{min-width:0}
.thumb{border-radius:12px;aspect-ratio:16/9;background:#272727}
.video-info{grid-template-columns:40px minmax(0,1fr) 28px;gap:12px;padding-top:12px}
.avatar{width:40px;height:40px;background:#303030}
.video-title{font-size:14px;line-height:1.4;font-weight:600;color:#f1f1f1}
.video-meta{font-size:12px;margin-top:5px;color:#aaa}
.save-btn{font-size:20px}
.player{background:#000e;padding:24px}
.player-panel{width:min(1120px,100%);border:0;border-radius:14px;background:#181818;padding:18px}
.player-head{margin-bottom:16px}
.player-head strong{font-size:16px}
.player-head span{font-size:12px}
.stage{border-radius:12px}
.player-actions button{border-radius:20px;padding:10px 16px;font-size:13px;background:#292929}
@media(max-width:900px){.layout{grid-template-columns:190px minmax(0,1fr)}.brand{min-width:165px}.video-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
@media(max-width:760px){
.topbar{height:58px;padding:0 12px;gap:10px}.brand{min-width:auto;gap:7px}.brand strong{font-size:17px}.brand-sub{font-size:12px}.brand-mark{width:28px;height:22px}
.search{height:36px}.search input{font-size:13px;padding:0 12px}.search button{width:42px}
.layout{display:block;min-height:calc(100vh - 58px)}.sidebar{top:auto;bottom:0;height:60px;padding:5px 8px calc(5px + env(safe-area-inset-bottom));}
main{padding:14px 13px 90px}.chips{top:58px;padding-bottom:14px;gap:8px}
.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 11px}
.video-info{grid-template-columns:28px minmax(0,1fr) 24px;gap:7px;padding-top:8px}
.avatar{width:28px;height:28px;font-size:11px}.video-title{font-size:12px}.video-meta{font-size:10px}
.player{padding:10px}.player-panel{padding:10px}.player-actions button{font-size:11px}
}

/* Small creator credit beside the NERO Tube logo */
.brand-credit{margin-left:5px;padding-left:12px;border-left:1px solid #333;color:#777;font-size:10px;font-weight:500;letter-spacing:0;white-space:nowrap}
@media(max-width:760px){.brand-credit{font-size:9px;margin-left:1px;padding-left:7px}}
@media(max-width:390px){.brand-credit{display:none}}

/* NERO shared Lucide icon system */
.brand-mark svg{width:18px;height:18px;stroke-width:2.2}
.search button svg{width:20px;height:20px;vertical-align:middle}
.icon-btn svg{width:18px;height:18px;vertical-align:middle}
.nav-item>svg{width:19px;height:19px;flex:0 0 19px;stroke-width:1.8}
.close-btn svg{width:18px;height:18px;vertical-align:middle}
.player-actions svg,.save-btn svg{width:16px;height:16px;vertical-align:middle}
.save-btn{display:grid;place-items:center}
.play-icon{width:24px;height:24px;fill:currentColor;stroke-width:1.5}

/* Channel profile pictures in the video feed */
.avatar{overflow:hidden;flex-shrink:0}.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}


/* NERO Tube #0f0f0f theme and larger YouTube brand mark */
:root{--bg:#0f0f0f;--panel:#0f0f0f;--panel2:#191919;--line:#292929}
body{background:#0f0f0f}
.topbar{background:#0f0f0ff2}
.sidebar{background:#0f0f0f}
.chips{background:#0f0f0f}
.settings{background:#0f0f0f}
.brand-mark{width:44px;height:34px;background:transparent}
.brand-mark .youtube-brand-icon{width:30px;height:30px;stroke-width:0}
@media(max-width:760px){.brand-mark{width:36px;height:28px}.brand-mark .youtube-brand-icon{width:25px;height:25px}}


/* Let the YouTube mark fill its brand area without a light tile behind it */
.brand-mark{width:48px;height:40px;background:transparent!important;border-radius:0;padding:0;}
.brand-mark .youtube-brand-icon{display:block;width:46px;height:46px;max-width:none;overflow:visible;}
@media(max-width:760px){.brand-mark{width:40px;height:34px;background:transparent!important}.brand-mark .youtube-brand-icon{width:38px;height:38px}}


/* Video length badge on the thumbnail */
.video-duration{position:absolute;right:7px;bottom:7px;z-index:2;padding:3px 5px;border-radius:4px;background:#000d;color:#fff;font-size:11px;font-weight:600;line-height:1.2;letter-spacing:.2px;pointer-events:none;font-variant-numeric:tabular-nums}


/* Full YouTube-inspired watch page */
.player{position:fixed;inset:0;z-index:20;display:block;overflow:auto;padding:0;background:#0f0f0f}
.watch-shell{min-height:100vh;background:#0f0f0f}
.watch-sidebar{position:fixed;left:0;top:0;bottom:0;width:232px;padding:16px 12px;border-right:1px solid #272727;background:#0f0f0f;display:flex;flex-direction:column;gap:5px}
.watch-back,.watch-nav-item{display:flex;align-items:center;gap:18px;min-height:44px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:#eee;font-size:14px;text-align:left}
.watch-back{margin-bottom:14px;background:#222}
.watch-back svg,.watch-nav-item svg{width:20px;height:20px}
.watch-nav-item.active,.watch-nav-item:hover{background:#272727}
.watch-nav-sep{height:1px;background:#303030;margin:12px 5px}
.watch-main{margin-left:232px;padding:22px 28px 50px;display:grid;grid-template-columns:minmax(0,2fr) minmax(290px,1fr);gap:24px;align-items:start;max-width:1700px}
.watch-primary{min-width:0}
.stage{width:100%;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden}
.stage iframe{width:100%;height:100%;border:0}
.watch-title{font-size:21px;line-height:1.35;margin:14px 0 16px;font-weight:700}
.watch-channel-row{display:flex;align-items:center;gap:12px;min-height:48px;margin-bottom:14px;flex-wrap:wrap}
.watch-channel{display:flex;align-items:center;gap:11px}
.watch-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#303030;overflow:hidden;font-weight:700}
.watch-avatar img{width:100%;height:100%;object-fit:cover}
.watch-channel strong,.watch-channel span{display:block}
.watch-channel strong{font-size:14px}
.watch-channel span{font-size:11px;color:#aaa;margin-top:4px}
.subscribe-btn{border:0;border-radius:22px;background:#f1f1f1;color:#111;padding:10px 17px;font-weight:650;font-size:13px}
.subscribe-btn.subscribed{background:#303030;color:#eee}
.watch-spacer{flex:1}
.watch-action{display:flex;align-items:center;gap:7px;border:0;border-radius:22px;background:#272727;color:#eee;padding:10px 15px;font-size:13px}
.watch-action svg{width:17px;height:17px}
.watch-description{background:#272727;border-radius:12px;padding:14px 15px;font-size:13px;line-height:1.55}
.watch-description strong{font-size:13px}
.watch-description p{margin:8px 0 4px;color:#eee}
.watch-description button{border:0;background:none;padding:4px 0;color:#fff;font-weight:650}
.watch-description p:not(.expanded){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.up-next{min-width:0}
.up-next-head{display:flex;justify-content:space-between;align-items:center;margin:3px 0 16px;font-size:14px}
.up-next-head label{display:flex;align-items:center;gap:8px;color:#aaa;font-size:12px;cursor:pointer}
.up-next-head input{accent-color:#3ea6ff;width:17px;height:17px}
.up-next-list{display:flex;flex-direction:column;gap:12px}
.up-next-item{display:grid;grid-template-columns:minmax(110px,42%) minmax(0,1fr);gap:9px;width:100%;padding:0;border:0;background:transparent;text-align:left}
.up-next-thumb{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:8px;background:#272727}
.up-next-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.up-next-info{min-width:0;display:flex;flex-direction:column;gap:6px}
.up-next-info strong{font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#f1f1f1}
.up-next-info>span{font-size:11px;color:#aaa}
.up-next-item:hover .up-next-info strong{color:#fff}
.up-next-empty{color:#999;font-size:13px}
@media(max-width:1000px){.watch-sidebar{width:190px}.watch-main{margin-left:190px;padding:18px;grid-template-columns:minmax(0,1fr)}.up-next-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.watch-sidebar{display:none}.watch-main{margin:0;padding:0 0 28px;display:flex;flex-direction:column;gap:18px}.watch-primary,.up-next{width:100%;padding:0 12px}.stage{border-radius:0;aspect-ratio:16/9}.watch-title{font-size:17px;margin:12px 0}.watch-channel-row{gap:8px}.watch-action{padding:9px 11px;font-size:12px}.watch-spacer{display:none}.watch-description{border-radius:9px}.up-next-list{display:flex}.up-next-head{padding-top:2px}.up-next-item{grid-template-columns:42% minmax(0,1fr)}}


/* Alternative player controls */
.player-fallback{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 2px;color:#aaa;font-size:12px}.player-fallback button,.player-fallback a{border:1px solid #383838;border-radius:18px;background:#222;color:#eee;padding:7px 12px;font:inherit;text-decoration:none;cursor:pointer}.player-fallback button:hover,.player-fallback a:hover{background:#303030;color:#fff}#player-source-count{color:#777}

/* Fullscreen control for the embedded YouTube player */
#fullscreen-video{display:inline-flex;align-items:center;gap:7px}#fullscreen-video svg{width:15px;height:15px}#stage:fullscreen{width:100vw;height:100vh;max-width:none;aspect-ratio:auto;border-radius:0;background:#000}#stage:fullscreen iframe{width:100%;height:100%}
