
:root{
  color-scheme:dark;
  --bg:#0f0f10;
  --panel:#171719;
  --soft:#222225;
  --line:#2c2c31;
  --text:#f6f6f7;
  --muted:#a6a6ad;
  --accent:#e43236;
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button{font:inherit}
.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:rgba(15,15,16,.94);border-bottom:1px solid var(--line);backdrop-filter:blur(18px)}
.brand{display:flex;align-items:center;gap:8px;background:none;border:0;color:var(--text);padding:0}
.brandmark{width:34px;height:24px;border-radius:8px;background:var(--accent);display:grid;place-items:center}
.brandplay{width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:10px solid #fff;margin-left:2px}
.brandword{font-weight:800;letter-spacing:.08em;font-size:15px}
.top-actions{display:flex;align-items:center;gap:6px}
.icon-btn,.round-btn{border:0;background:transparent;color:var(--text);width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:22px}
.icon-btn:active,.round-btn:active{background:var(--soft)}
.mini-avatar{width:32px;height:32px;border-radius:50%}
main{max-width:1150px;margin:0 auto}
.banner{width:100%;aspect-ratio:16/5;object-fit:cover;display:block}
.channel-head{display:flex;gap:20px;padding:18px 18px 14px}
.avatar{width:112px;height:112px;border-radius:50%;object-fit:cover;flex:0 0 auto}
.channel-copy{min-width:0}
.title-row{display:flex;align-items:center;gap:8px}
.title-row h1{font-size:30px;margin:0;letter-spacing:-.02em}
.verified{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#aeb1b7;color:#111;font-size:12px;font-weight:900}
.handle,.stats,.bio{margin:5px 0;color:var(--muted)}
.bio{color:#d9d9dd;max-width:720px}
.actions{display:flex;gap:8px;margin-top:12px}
.subscribe{border:0;background:#fff;color:#111;border-radius:999px;padding:10px 20px;font-weight:750}
.subscribe.subscribed{background:var(--soft);color:var(--text)}
.round-btn{background:var(--soft);font-size:17px}
.tabs{display:flex;gap:6px;overflow-x:auto;padding:0 12px;border-bottom:1px solid var(--line);scrollbar-width:none}
.tab{border:0;background:none;color:var(--muted);padding:13px 12px;white-space:nowrap;border-bottom:2px solid transparent}
.tab.active{color:var(--text);border-bottom-color:var(--text)}
.panel{display:none;padding:18px}
.panel.active{display:block}
.featured-card{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(240px,.8fr);gap:18px;background:var(--panel);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.featured-card img{width:100%;height:100%;min-height:270px;object-fit:cover}
.featured-copy{padding:28px 22px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.eyebrow{font-size:11px;letter-spacing:.14em;color:#c9c9cf;font-weight:800}
.featured-copy h2{font-size:26px;margin:10px 0 4px}
.featured-copy p{color:var(--muted)}
.watch-btn{margin-top:12px;border:0;background:var(--accent);color:#fff;border-radius:999px;padding:10px 18px;font-weight:750}
.section-head{display:flex;align-items:end;justify-content:space-between;margin:28px 2px 14px;gap:12px}
.section-head h2{margin:0;font-size:21px}
.section-head p{margin:4px 0 0;color:var(--muted);font-size:14px}
.text-btn{border:0;background:none;color:#d9d9df}
.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.video-card{cursor:pointer}
.thumb-wrap{position:relative;overflow:hidden;border-radius:13px;background:var(--panel)}
.thumb-wrap img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;transition:transform .22s ease}
.video-card:active .thumb-wrap img{transform:scale(.985)}
.duration{position:absolute;right:7px;bottom:7px;background:rgba(0,0,0,.82);padding:3px 6px;border-radius:5px;font-size:12px}
.video-card h3{margin:9px 0 3px;font-size:16px;line-height:1.25}
.video-card p{margin:0;color:var(--muted);font-size:13px}
.shorts-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(150px,190px);gap:12px;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x mandatory}
.short-card{position:relative;aspect-ratio:9/16;border-radius:14px;overflow:hidden;background:var(--panel);scroll-snap-align:start;cursor:pointer}
.short-card img{width:100%;height:100%;object-fit:cover}
.short-overlay{position:absolute;inset:auto 0 0;padding:50px 12px 12px;background:linear-gradient(transparent,rgba(0,0,0,.82))}
.short-overlay strong{display:block;font-size:15px}
.short-overlay span{color:#d1d1d6;font-size:12px}
.shorts-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.community-card,.about-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:14px}
.community-user{display:flex;gap:10px;align-items:center}
.community-user img{width:42px;height:42px;border-radius:50%}
.community-user span{display:block;color:var(--muted);font-size:13px;margin-top:2px}
.community-card>p{font-size:18px;line-height:1.5}
.poll{display:grid;gap:8px}
.poll button{border:1px solid #4a4a50;border-radius:999px;background:transparent;color:var(--text);padding:10px}
.community-meta{color:var(--muted);font-size:13px;margin-top:13px}
.about-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:14px}
.about-card h2{margin-top:0}
.muted{color:var(--muted)}
footer{max-width:1150px;margin:0 auto;padding:22px 18px 34px;display:flex;justify-content:space-between;color:#77777f;font-size:11px;border-top:1px solid var(--line)}
.concept-label{font-size:9px;letter-spacing:.04em;opacity:.7}
dialog{width:min(900px,94vw);border:1px solid #34343a;border-radius:18px;background:#101012;color:var(--text);padding:0;overflow:hidden}
dialog::backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(10px)}
dialog img{width:100%;max-height:58vh;object-fit:cover;display:block}
.viewer-copy{padding:18px}
.viewer-copy h2{margin:8px 0}
.viewer-copy p{color:#d6d6dc;font-size:17px;line-height:1.45}
.viewer-stats{display:flex;gap:18px;color:var(--muted);font-size:13px}
.close-btn{position:absolute;right:10px;top:10px;border:0;border-radius:50%;width:36px;height:36px;background:rgba(0,0,0,.64);color:#fff;font-size:26px}
@media(max-width:780px){
  .banner{aspect-ratio:16/6}
  .channel-head{align-items:flex-start}
  .avatar{width:84px;height:84px}
  .title-row h1{font-size:24px}
  .featured-card{grid-template-columns:1fr}
  .featured-card img{min-height:unset;aspect-ratio:16/9}
  .featured-copy{padding:18px}
  .video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shorts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .channel-head{gap:12px;padding:14px 12px}
  .avatar{width:72px;height:72px}
  .title-row h1{font-size:21px}
  .bio{font-size:14px}
  .video-grid{grid-template-columns:1fr}
  .shorts-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .panel{padding:14px 12px}
}
