:root{
  --bg:#0f0f0f;
  --panel:#181818;
  --panel2:#212121;
  --panel3:#272727;
  --text:#f1f1f1;
  --muted:#aaa;
  --dim:#717171;
  --line:#303030;
  --brand:#ff0033;
  --brand2:#ff5a5f;
  --good:#3ea6ff;
  --shadow:0 12px 35px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
img{max-width:100%}
.yt-page{min-height:100vh;background:var(--bg)}
.yt-topbar{position:sticky;top:0;z-index:80;height:64px;display:grid;grid-template-columns:230px minmax(260px,720px) auto;align-items:center;gap:22px;padding:0 24px;background:rgba(15,15,15,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.yt-brand{display:flex;align-items:center;min-width:0}
.brand-text{margin:0;font-size:20px;line-height:1.1;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.yt-search{display:flex;height:40px;min-width:0}
.yt-search input{flex:1;min-width:0;padding:0 15px;border:1px solid #3a3a3a;border-right:0;background:#121212;color:var(--text);outline:0;border-radius:20px 0 0 20px}
.yt-search input:focus{border-color:#1c62b9}
.yt-search button{width:58px;border:1px solid #3a3a3a;background:#222;color:#fff;border-radius:0 20px 20px 0;cursor:pointer}
.yt-search button i{position:relative;display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-radius:50%;vertical-align:middle}
.yt-search button i:after{content:"";position:absolute;right:-6px;bottom:-3px;width:7px;height:2px;background:currentColor;transform:rotate(45deg);transform-origin:left center}
.yt-hot{display:flex;justify-content:flex-end;gap:12px;color:var(--muted);font-size:13px;overflow:hidden;white-space:nowrap}
.yt-hot a:hover{color:#fff}
.yt-menu-toggle{display:none;width:40px;height:38px;border:0;background:#242424;color:#fff;border-radius:19px}
.yt-menu-toggle i{display:block;width:18px;height:2px;margin:4px auto;background:currentColor}
.yt-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:calc(100vh - 64px)}
.yt-sidebar{position:sticky;top:64px;height:calc(100vh - 64px);overflow:auto;padding:14px 12px;background:var(--bg);border-right:1px solid var(--line)}
.side-group{padding:8px 0;border-bottom:1px solid var(--line)}
.side-link,.side-parent{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border-radius:10px;color:#e6e6e6}
.side-link:hover,.side-parent:hover,.side-link.active,.side-parent.active{background:#272727;color:#fff}
.side-icon{width:22px;color:var(--muted);text-align:center}
.side-parent span:first-child{display:flex;align-items:center;gap:12px}
.side-caret{color:var(--dim)}
.side-sub{display:none;padding:4px 0 6px 42px}
.side-item.has-sub:hover .side-sub,.side-item.open .side-sub{display:grid;gap:2px}
.side-sub a{padding:7px 10px;border-radius:8px;color:var(--muted);font-size:13px}
.side-sub a:hover,.side-sub a.active{background:#242424;color:#fff}
.side-note{padding:14px 12px;color:var(--dim);font-size:12px;line-height:1.75}
.side-host{display:block;max-width:100%;overflow-wrap:anywhere;word-break:break-word;color:#cfcfcf}
.yt-content{min-width:0;padding:22px 28px 56px}
.chip-row{display:flex;gap:10px;overflow:auto;padding:0 0 18px;scrollbar-width:none}
.chip-row::-webkit-scrollbar{display:none}
.chip{flex:0 0 auto;padding:7px 13px;border-radius:999px;background:#272727;color:#f1f1f1;font-weight:700}
.chip:hover,.chip.active{background:#fff;color:#111}
.content-topline{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;color:var(--muted)}
.content-topline strong{color:#fff}
.tube-section{margin-bottom:36px}
.detail-layout + .tube-section,.tube-section + .tube-section{margin-top:30px}
.tube-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:16px}
.tube-head h1,.tube-head h2{margin:0;font-size:24px;line-height:1.2}
.tube-kicker{display:block;margin-bottom:3px;color:var(--brand2);font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.tube-desc{margin:5px 0 0;color:var(--muted)}
.tube-head>a{color:var(--good);font-weight:800}
.hero-feed{display:grid;grid-template-columns:minmax(0,1.15fr) 360px;gap:22px;align-items:start}
.top-mini-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 12px}
.rank-panel{padding:16px;background:var(--panel);border:1px solid var(--line)}
.rank-panel ol{margin:0;padding:0;list-style:none;counter-reset:item}
.rank-panel li{counter-increment:item;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.rank-panel li:last-child{border-bottom:0}
.rank-panel li:before{content:counter(item);width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#2b2b2b;color:#fff;font-weight:900}
.rank-panel a{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.rank-panel a:hover{color:var(--brand2)}
.video-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px 12px}
.tube-card{min-width:0;max-width:100%;overflow:hidden}
.thumb-link{position:relative;display:block;aspect-ratio:3/4;background:#222;overflow:hidden}
.thumb-link img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease,filter .25s ease}
.tube-card:hover .thumb-link img{transform:scale(1.045);filter:brightness(.78)}
.duration,.score-tag{position:absolute;right:6px;bottom:6px;padding:2px 5px;border-radius:4px;background:rgba(0,0,0,.86);font-size:12px;font-weight:800;color:#fff}
.score-tag{left:6px;right:auto;background:var(--brand)}
.tube-card-body{display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;padding-top:8px;min-width:0;max-width:100%;overflow:hidden}
.tube-card-body>*{min-width:0}
.tube-card-info{min-width:0;max-width:100%;overflow:hidden}
.avatar-dot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#303030;color:#fff;font-size:12px;font-weight:900}
.tube-card h3{margin:0 0 3px;font-size:14px;line-height:1.32;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tube-card h3 a:hover{color:#fff}
.tube-card p{display:block;width:100%;min-width:0;max-width:100%;margin:0;color:var(--muted);font-size:11px;line-height:1.45;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tube-card .card-actor{display:none}
.channel-row{display:grid;grid-template-columns:160px minmax(0,1fr);gap:18px;margin-bottom:34px}
.channel-label{padding:16px;background:linear-gradient(180deg,#242424,#171717);border:1px solid var(--line)}
.channel-label h2{margin:4px 0 10px;font-size:21px}
.channel-label a{color:var(--good);font-weight:800}
.crumb{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 18px;color:var(--muted)}
.crumb a:hover{color:#fff}
.filter-box{margin-bottom:24px;padding:14px;background:var(--panel);border:1px solid var(--line)}
.filter-row{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.filter-row:last-child{border-bottom:0}
.filter-row strong{color:#fff}
.filter-row div{display:flex;flex-wrap:wrap;gap:9px}
.filter-row a{padding:5px 10px;border-radius:999px;background:#252525;color:var(--muted)}
.filter-row a:hover,.filter-row a.selected{background:#fff;color:#111}
.pagination{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:34px}
.pagination a,.pagination span{min-width:38px;height:36px;padding:0 12px;display:grid;place-items:center;border:1px solid var(--line);border-radius:18px;background:#202020;color:#ddd}
.pagination a:hover,.pagination .active{background:#fff;color:#111}
.pagination .disabled{opacity:.45;pointer-events:none}
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:28px;align-items:stretch;min-width:0}
.detail-mainbox{min-width:0;background:var(--panel);border:1px solid var(--line)}
.detail-media{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;padding:20px}
.detail-poster-wrap{display:block;aspect-ratio:2/3;background:#222;overflow:hidden}
.detail-poster-wrap img{width:100%;height:100%;display:block;object-fit:cover}
.detail-copy{min-width:0;padding:4px 4px 4px 0}
.detail-copy h1{margin:8px 0 10px;font-size:38px;line-height:1.1}
.detail-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0 0 16px;color:var(--muted)}
.detail-meta span{display:inline-flex;align-items:center;min-height:30px}
.detail-meta b{display:inline-flex;align-items:center;margin-right:4px;color:#fff;font-size:28px;line-height:1}
.description{margin:14px 0 18px;color:#ddd;line-height:1.9;white-space:normal;word-break:break-word}
.cast{margin:8px 0;color:var(--muted)}
.cast-links{overflow:hidden;overflow-wrap:anywhere;word-break:break-word}
.cast-links a{display:inline-block;max-width:100%;margin:0 9px 4px 0;color:var(--good);vertical-align:top;overflow:hidden;text-overflow:ellipsis}
.cast-links a:hover{color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:0;border-radius:999px;font-weight:900;cursor:pointer}
.btn-primary{background:#fff;color:#111}
.btn-ghost{background:#272727;color:#fff}
.detail-side{min-width:0;position:sticky;top:86px;padding:16px;background:var(--panel);border:1px solid var(--line)}
.detail-layout .detail-side{height:100%;display:flex;flex-direction:column}
.detail-layout .detail-side .rank-panel{flex:1;display:flex;flex-direction:column}
.detail-layout .detail-side .rank-panel ol{flex:1}
.play-source{margin-top:14px;padding:14px;background:var(--panel);border:1px solid var(--line)}
.play-source h3{margin:0 0 12px}
.episode-list{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.episode-list a{padding:8px 7px;border-radius:6px;background:#252525;color:#ddd;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.episode-list a:hover,.episode-list a.current{background:#fff;color:#111}
.empty-source{padding:24px;color:var(--muted);text-align:center}
.player-shell{position:relative;width:100%;aspect-ratio:16/9;background:#000;border:1px solid var(--line)}
.player-shell iframe{position:absolute;inset:0;width:100%;height:100%}
.play-info{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0 24px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.play-info h1{margin:0;font-size:22px}
.play-info p{margin:4px 0 0;color:var(--muted)}
.comment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.comment-item{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;padding:14px;background:var(--panel);border:1px solid var(--line)}
.comment-avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,var(--brand),#7c3aed);color:#fff;font-weight:900}
.comment-body{min-width:0}
.comment-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}
.comment-meta strong{color:#fff;font-size:14px}
.comment-body p{margin:7px 0 0;color:#ddd;line-height:1.7}
.article-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.article-list{display:grid;grid-template-columns:1fr;gap:16px}
.article-card{display:grid;grid-template-columns:138px minmax(0,1fr);gap:16px;min-width:0;padding:14px;background:var(--panel);border:1px solid var(--line);overflow:hidden}
.article-card-pic{display:block;aspect-ratio:4/3;background:#222;overflow:hidden}
.article-card-pic img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .25s ease,filter .25s ease}
.article-card:hover .article-card-pic img{transform:scale(1.04);filter:brightness(.82)}
.article-card-main{min-width:0}
.article-card h3{margin:4px 0 7px;font-size:18px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-card h3 a:hover{color:#fff}
.article-card p{margin:0;color:var(--muted);line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.article-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:10px;color:var(--dim);font-size:12px}
.article-detail{max-width:920px;margin:0 auto}
.article-detail-head{padding:28px;background:var(--panel);border:1px solid var(--line)}
.article-detail-head h1{margin:6px 0 12px;font-size:38px;line-height:1.18}
.article-detail-head p{max-width:760px;margin:12px 0 0;color:var(--muted);line-height:1.8}
.article-cover{margin:18px 0;background:#222;border:1px solid var(--line);overflow:hidden}
.article-cover img{width:100%;max-height:480px;display:block;object-fit:cover}
.article-content{padding:26px 30px;background:var(--panel);border:1px solid var(--line);color:#e8e8e8;font-size:16px;line-height:2}
.article-content h2{margin:28px 0 10px;font-size:24px}
.article-content p{margin:0 0 18px}
.article-content a{color:var(--good);font-weight:800}
.article-content a:hover{color:#fff}
.article-related-vod{margin-top:30px}
.site-footer{padding:28px;border-top:1px solid var(--line);background:#0b0b0b;color:var(--muted)}
.site-footer .brand{color:#fff;font-weight:900}
.site-footer p{margin:9px 0 0;font-size:12px}
.site-footer a:hover{color:#fff}
.site-stat{display:none}
.back-top{position:fixed;right:20px;bottom:22px;width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#111;opacity:0;pointer-events:none}
.back-top.show{opacity:1;pointer-events:auto}
.search-result-block{padding-top:4px}

@media(max-width:1280px){
  .video-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .hero-feed{grid-template-columns:1fr}
  .top-mini-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .rank-panel ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
}
@media(max-width:980px){
  .yt-topbar{grid-template-columns:auto minmax(0,1fr) auto;padding:0 14px;gap:12px}
  .yt-hot{display:none}
  .yt-menu-toggle{display:block}
  .yt-shell{display:block}
  .yt-sidebar{position:fixed;left:0;top:64px;bottom:0;z-index:70;width:260px;height:auto;transform:translateX(-105%);transition:transform .22s ease;background:#0f0f0f;box-shadow:var(--shadow)}
  .yt-sidebar.open{transform:translateX(0)}
  .yt-content{padding:18px 16px 46px}
  .video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .channel-row{grid-template-columns:1fr}
  .detail-layout{grid-template-columns:1fr}
  .detail-side{position:static;height:auto}
  .episode-list{grid-template-columns:repeat(5,minmax(0,1fr))}
  .comment-list{grid-template-columns:1fr}
  .article-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .yt-topbar{height:auto;grid-template-columns:auto auto;grid-template-areas:"brand menu" "search search";padding:10px 12px}
  .yt-brand{grid-area:brand}
  .yt-menu-toggle{grid-area:menu;justify-self:end}
  .yt-search{grid-area:search;width:100%}
  .yt-sidebar{top:102px}
  .brand-text{font-size:18px;max-width:220px}
  .content-topline{display:block}
  .video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
  .top-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
  .tube-card-body{grid-template-columns:1fr}
  .avatar-dot{display:none}
  .rank-panel ol{display:block}
  .detail-media{display:block;padding:14px}
  .detail-poster-wrap{width:132px;margin:0 14px 10px 0;float:left}
  .detail-copy{padding:0}
  .detail-copy h1{font-size:28px}
  .cast-links{clear:both;display:block;max-height:6.2em;line-height:1.9;overflow:hidden}
  .cast-links a{white-space:normal}
  .detail-layout,.detail-mainbox,.detail-side,.tube-section,.video-grid,.tube-card{max-width:100%;min-width:0;overflow:hidden}
  .detail-side{margin-top:18px}
  .rank-panel a,.tube-card h3,.tube-card p{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
  .detail-layout + .tube-section,.tube-section + .tube-section{margin-top:28px}
  .episode-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .filter-row{grid-template-columns:1fr}
  .article-card{grid-template-columns:108px minmax(0,1fr);gap:12px;padding:12px}
  .article-card h3{font-size:16px}
  .article-detail-head{padding:18px}
  .article-detail-head h1{font-size:28px}
  .article-content{padding:18px;font-size:15px}
}

/* local watch history */
.watch-history-toggle{height:36px;padding:0 13px;border:1px solid var(--line,#d8dee6);background:var(--panel,#fff);color:var(--text,#222);font-weight:800;cursor:pointer;white-space:nowrap}
.watch-history-toggle:hover{background:var(--accent,var(--brand,#111));border-color:var(--accent,var(--brand,#111));color:#fff}
.watch-history-panel{position:fixed;inset:0;z-index:9999;display:none}
.watch-history-panel.open{display:block}
.watch-history-mask{position:absolute;inset:0;background:rgba(0,0,0,.48)}
.watch-history-box{position:absolute;right:24px;top:76px;width:min(390px,calc(100vw - 28px));max-height:calc(100vh - 104px);display:flex;flex-direction:column;background:var(--panel,#fff);border:1px solid var(--line,#d8dee6);box-shadow:0 18px 44px rgba(0,0,0,.22);overflow:hidden;color:var(--text,#222)}
.watch-history-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border-bottom:1px solid var(--line,#d8dee6)}
.watch-history-head h2{margin:0;font-size:22px;line-height:1.2}
.history-kicker{display:block;margin-bottom:4px;color:var(--accent,var(--brand,#111));font-size:12px;font-weight:900;letter-spacing:.14em}
.history-close{width:34px;height:34px;border:1px solid var(--line,#d8dee6);background:transparent;color:inherit;font-size:24px;line-height:1;cursor:pointer}
.watch-history-list{padding:10px;overflow:auto}
.history-empty{padding:28px 12px;color:var(--muted,#777);text-align:center}
.history-item{display:grid;grid-template-columns:58px minmax(0,1fr);gap:12px;padding:10px;border-bottom:1px solid var(--line,#e5e7eb);color:inherit;text-decoration:none}
.history-item:hover{background:rgba(127,127,127,.10)}
.history-pic{display:block;width:58px;aspect-ratio:3/4;background:rgba(127,127,127,.12);border:1px solid var(--line,#e5e7eb);overflow:hidden}
.history-pic img{width:100%;height:100%;display:block;object-fit:cover}
.history-info{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px}
.history-info strong{font-size:14px;color:inherit;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.history-info em{font-style:normal;color:var(--accent,var(--brand,#111));font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.history-info small{color:var(--muted,#777);font-size:12px}
.watch-history-actions{padding:12px 16px;border-top:1px solid var(--line,#d8dee6)}
.history-clear{width:100%;height:38px;border:1px solid var(--line,#d8dee6);background:transparent;color:inherit;cursor:pointer}
.history-clear:hover{background:var(--accent,var(--brand,#111));border-color:var(--accent,var(--brand,#111));color:#fff}
@media(max-width:780px){.watch-history-toggle{width:38px;height:38px;padding:0;overflow:hidden}.watch-history-toggle span{display:none}.watch-history-toggle:before{content:"◴";font-size:18px}.watch-history-box{right:14px;top:76px;width:calc(100vw - 28px);max-height:calc(100vh - 96px)}}

/* Orbit: warm editorial gallery treatment. */
:root{--bg:#f3efe6;--panel:#fffdfa;--panel2:#f8f0e2;--panel3:#ead9bb;--text:#29231d;--muted:#776c5e;--dim:#9c907f;--line:#ded2be;--brand:#b7472a;--brand2:#d68143;--good:#496b61;--shadow:0 14px 34px rgba(71,50,26,.12)}
.yt-page{background:radial-gradient(circle at 92% 0,#ead9bd 0,transparent 29rem),var(--bg)}
.yt-topbar{height:76px;grid-template-columns:minmax(140px,230px) minmax(220px,520px) minmax(150px,1fr) auto auto;gap:14px;padding:0 28px;background:rgba(255,253,250,.92);border-bottom:1px solid var(--line)}
.yt-brand{padding-left:13px;border-left:4px solid var(--brand)}
.brand-text{font-family:Georgia,"Songti SC",serif;font-size:25px;letter-spacing:.04em}
.yt-search{max-width:520px;width:100%;height:38px}.yt-search input{background:#fffaf1;border-color:var(--line);border-radius:4px 0 0 4px;color:var(--text)}.yt-search button{width:46px;background:var(--brand);border-color:var(--brand);border-radius:0 4px 4px 0}
.orbit-linkwheel{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;overflow:hidden;white-space:nowrap;font-size:12px}.orbit-linkwheel span{color:var(--muted);font-weight:800}.orbit-linkwheel a{max-width:180px;overflow:hidden;text-overflow:ellipsis;padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:#fff7e9;color:var(--good);font-weight:900}.orbit-linkwheel a:hover{background:var(--good);border-color:var(--good);color:#fff}
.yt-menu-toggle{background:var(--brand);border-radius:4px}.watch-history-toggle{border-color:var(--line);background:transparent;color:var(--text);border-radius:4px}.watch-history-toggle:hover{background:var(--brand);border-color:var(--brand)}
.yt-shell{grid-template-columns:220px minmax(0,1fr)}.yt-sidebar{top:76px;height:calc(100vh - 76px);padding:20px 13px;background:transparent;border-right:1px solid var(--line)}.side-group{border-bottom-color:var(--line)}.side-link,.side-parent{border-radius:4px;color:var(--text)}.side-link:hover,.side-parent:hover,.side-link.active,.side-parent.active{background:var(--panel3);color:var(--text)}.side-icon{color:var(--brand)}.side-sub{padding-left:29px}.side-sub a{border-left:1px solid var(--line);border-radius:0;color:var(--muted)}.side-sub a:hover,.side-sub a.active{background:transparent;color:var(--brand)}.side-note{color:var(--muted)}
.yt-content{padding:32px 42px 60px}.chip-row{gap:0;padding-bottom:22px;border-bottom:1px solid var(--line)}.chip{padding:5px 14px;border-radius:0;background:transparent;color:var(--muted);border-right:1px solid var(--line)}.chip:hover,.chip.active{background:transparent;color:var(--brand)}
.tube-section{margin-bottom:46px}.tube-head{padding-bottom:10px;border-bottom:2px solid var(--text)}.tube-head h1,.tube-head h2{font-family:Georgia,"Songti SC",serif;font-size:30px}.tube-kicker{color:var(--brand);letter-spacing:.18em}.tube-desc{color:var(--muted)}
.hero-feed{grid-template-columns:minmax(0,1fr) 300px;gap:28px}.rank-panel,.filter-box,.detail-mainbox,.play-source,.detail-side,.article-card,.comment-item{background:var(--panel);border-color:var(--line);box-shadow:none}.rank-panel{border-top:4px solid var(--brand)}.rank-panel li{border-bottom-color:var(--line)}.rank-panel li:before{border-radius:0;background:var(--panel3);color:var(--brand)}.rank-panel a:hover{color:var(--brand)}
.video-grid{gap:28px 16px}.top-mini-grid{gap:22px 14px}.thumb-link{border-radius:0;background:#e5d6bd}.tube-card{padding-bottom:9px;border-bottom:1px solid var(--line)}.tube-card:hover{border-color:var(--brand)}.duration{border-radius:0;background:rgba(41,35,29,.85)}.score-tag{border-radius:0;background:var(--brand)}.tube-card-body{grid-template-columns:1fr}.avatar-dot{display:none}.tube-card h3{font-family:Georgia,"Songti SC",serif;font-size:16px}.tube-card h3 a:hover{color:var(--brand)}.tube-card p{color:var(--muted)}
.channel-row{grid-template-columns:180px minmax(0,1fr);padding-top:10px;border-top:1px solid var(--line)}.channel-label{background:var(--panel2);border-color:var(--line)}.channel-label h2{font-family:Georgia,"Songti SC",serif}.channel-label a,.tube-head>a{color:var(--good)}.filter-row{align-items:center;border-bottom-color:var(--line)}.filter-row strong{display:flex;align-items:center;min-height:32px;color:var(--text)}.filter-row div{align-items:center}.filter-row a{display:inline-flex;align-items:center;min-height:32px;padding:4px 11px;background:var(--panel2);color:var(--muted)}.filter-row a:hover,.filter-row a.selected{background:var(--brand);color:#fff}
.pagination a,.pagination span{border-color:var(--line);border-radius:0;background:var(--panel);color:var(--text)}.pagination a:hover,.pagination .active{background:var(--brand);color:#fff}.detail-copy h1,.article-detail-head h1{font-family:Georgia,"Songti SC",serif}.btn-primary{border-radius:4px;background:var(--brand);color:#fff}.btn-ghost{border-radius:4px;background:var(--panel3);color:var(--text)}.episode-list a{border-radius:0;background:var(--panel2);color:var(--text)}.episode-list a:hover,.episode-list a.current{background:var(--brand);color:#fff}.site-footer{background:#2b2721;border-top-color:#51483d;color:#d7cbb7}.site-footer .brand{color:#fff}
@media(max-width:1180px){.yt-topbar{grid-template-columns:minmax(130px,220px) minmax(210px,480px) minmax(130px,1fr) auto auto}.orbit-linkwheel a{max-width:115px}.yt-content{padding:28px 26px}}
@media(max-width:980px){.yt-topbar{grid-template-columns:auto minmax(0,1fr) minmax(120px,1fr) auto auto}.yt-sidebar{top:76px;height:calc(100vh - 76px);background:var(--bg)}.orbit-linkwheel{justify-content:flex-start}.yt-content{padding:24px 18px 50px}}
@media(max-width:700px){.yt-topbar{height:auto;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand history menu" "search search search" "wheel wheel wheel";gap:9px;padding:11px 12px}.yt-brand{grid-area:brand}.yt-search{grid-area:search;max-width:none}.watch-history-toggle{grid-area:history}.yt-menu-toggle{grid-area:menu}.orbit-linkwheel{grid-area:wheel;width:100%;justify-content:flex-start;padding:4px 0;overflow-x:auto;scrollbar-width:none}.orbit-linkwheel::-webkit-scrollbar{display:none}.orbit-linkwheel span,.orbit-linkwheel a{flex:0 0 auto}.yt-sidebar{top:151px;height:calc(100vh - 151px)}.brand-text{font-size:21px}.tube-head h1,.tube-head h2{font-size:26px}.tube-card h3{font-size:15px}.filter-row{grid-template-columns:1fr}.filter-row strong{min-height:24px}.filter-row a{min-height:30px}.channel-row{grid-template-columns:1fr}.yt-content{padding:18px 14px 44px}}
/* watch history layout fixes */
.yt-topbar{grid-template-columns:230px minmax(260px,720px) auto auto}.yt-topbar .watch-history-toggle{justify-self:end}@media(max-width:980px){.yt-topbar{grid-template-columns:auto minmax(0,1fr) auto auto}.yt-topbar .watch-history-toggle{width:38px;height:38px;padding:0}.yt-topbar .watch-history-toggle span{display:none}.yt-topbar .watch-history-toggle:before{content:"◴";font-size:18px}}@media(max-width:700px){.yt-topbar{grid-template-columns:auto auto auto;grid-template-areas:"brand history menu" "search search search"}.yt-brand{grid-area:brand}.yt-search{grid-area:search}.watch-history-toggle{grid-area:history}.yt-menu-toggle{grid-area:menu}}
/* watch history contrast fixes */
.yt-topbar .watch-history-toggle{background:#fff!important;border-color:#fff!important;color:#111!important}.yt-topbar .watch-history-toggle:hover{background:var(--brand)!important;border-color:var(--brand)!important;color:#fff!important}

/* mobile: place history button beside search */
@media(max-width:700px){
  .yt-topbar{grid-template-columns:minmax(0,1fr) 42px!important;grid-template-areas:"brand menu" "search history"!important;gap:10px 8px!important}
  .yt-brand{grid-area:brand!important}
  .yt-menu-toggle{grid-area:menu!important;justify-self:end!important}
  .yt-search{grid-area:search!important;width:100%!important}
  .yt-topbar .watch-history-toggle{grid-area:history!important;justify-self:end!important;width:42px!important;height:40px!important;border-radius:20px!important}
}
/* seeded comments empty state */
.comment-empty{grid-column:1/-1;padding:18px;border:1px dashed var(--line,#333);color:var(--muted,#888);text-align:center}

/* Orbit readability fixes */
.yt-page .content-topline{margin-top:14px;padding-top:16px;color:var(--muted)}
.yt-page .content-topline strong{color:var(--brand)}
.yt-page .yt-topbar .watch-history-toggle{background:#fff7e9!important;border-color:#d9b994!important;color:var(--brand)!important}
.yt-page .yt-topbar .watch-history-toggle:hover{background:var(--brand)!important;border-color:var(--brand)!important;color:#fff!important}
