:root{--bg:#0f0f0f;--surface:#181818;--surface2:#202020;--line:#2a2a2a;--text:#fff;--muted:#aaa;--shadow:0 8px 24px rgba(0,0,0,.45)}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%}
header{position:sticky;top:0;z-index:100;background:rgba(15,15,15,.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.topbar{height:56px;display:flex;align-items:center;gap:10px;padding:0 12px}
.brand{font-weight:900;min-width:120px}
.searchbar{flex:1;display:flex;max-width:720px;margin:0 auto}
.searchbar input{width:100%;padding:10px 12px;border:1px solid var(--line);border-right:0;border-radius:999px 0 0 999px;background:#121212;color:#fff;outline:none}
.searchbar button{padding:10px 14px;border:1px solid var(--line);border-radius:0 999px 999px 0;background:var(--surface2);color:#fff}
.icon-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:center}
.chipbar{position:sticky;top:56px;z-index:99;background:rgba(15,15,15,.95);border-bottom:1px solid var(--line);overflow:hidden}
.chipbar::before,.chipbar::after{content:"";position:absolute;top:0;width:26px;height:100%;pointer-events:none}
.chipbar::before{left:0;background:linear-gradient(90deg, rgba(15,15,15,1), rgba(15,15,15,0))}
.chipbar::after{right:0;background:linear-gradient(270deg, rgba(15,15,15,1), rgba(15,15,15,0))}
.chips{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;white-space:nowrap!important;gap:10px;padding:10px 12px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto!important;white-space:nowrap!important;padding:8px 14px;border-radius:999px;background:var(--surface2);font-size:14px;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.chip.active{background:#fff;color:#000}
main{padding:14px 12px 88px}
.section-title{font-size:20px;margin:8px 0 14px;display:flex;align-items:center;justify-content:space-between}
.section-title a{font-size:13px;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
/* Mobile / small screens */
@media (max-width: 500px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card{background:var(--surface);border-radius:14px;overflow:hidden;box-shadow:var(--shadow);transition:transform .15s ease}
.card:active{transform:scale(.98)}
.thumb{aspect-ratio:16/9;background:#000}
.thumb img{width:100%;height:100%;object-fit:cover}
.card-body{padding:10px}.title{font-size:14px;font-weight:650;line-height:1.3}.meta{font-size:12px;color:var(--muted);margin-top:4px}
.yt-player{position:relative;width:100%;max-width:980px;margin:0 auto 16px;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden}
.yt-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.yt-player.shorts{max-width:420px;aspect-ratio:9/16}
.video-page{max-width:1100px;margin:0 auto}.video-title{font-size:22px;margin:10px 0 6px;font-weight:900}.video-meta{font-size:13px;color:var(--muted);margin-bottom:12px}
.video-actions{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 16px}
.video-actions button{background:var(--surface2);border:1px solid var(--line);padding:8px 12px;border-radius:999px;color:#fff}
.video-desc{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px;color:#ddd;line-height:1.55}
.shorts-shell{height:calc(100vh - 56px)}.shorts-track{height:100%;overflow-y:auto;scroll-snap-type:y mandatory}
.short-item{height:100%;scroll-snap-align:start;display:flex;align-items:center;justify-content:center;padding:10px 0 70px}
.short-item .yt-player{max-width:460px;width:100%;border-radius:18px;aspect-ratio:9/16}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:60px;background:rgba(15,15,15,.95);backdrop-filter:blur(10px);border-top:1px solid var(--line);display:flex;z-index:120}
.bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;color:var(--muted)}
.bottom-nav a.active{color:#fff}
@media(min-width:900px){main{max-width:1200px;margin:auto}.grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}.bottom-nav{display:none}}
@media(max-width:480px){.brand{min-width:auto}.yt-player{border-radius:0;max-width:100%}.yt-player.shorts{max-width:100%}.short-item{padding:0 0 70px}}
