:root{color-scheme:dark;--bg:#111116;--panel:#1c1c24;--muted:#9999a7;--accent:#ffd551}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f4f4f7;font-family:system-ui,"Microsoft YaHei",sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.site-header{height:78px;display:flex;align-items:center;justify-content:space-between;max-width:1160px;padding:0 28px;margin:auto}.brand{font-size:23px;font-weight:800;display:flex;gap:12px;align-items:center}.brand-mark{color:#161616;background:var(--accent);border-radius:12px;font-size:17px;padding:8px 11px}.short-link{color:var(--accent);font-size:14px}.search{max-width:720px;display:flex;margin:18px auto 28px;padding:0 24px;gap:8px}.search input{min-width:0;flex:1;padding:15px 18px;background:var(--panel);border:1px solid #31313c;color:white;border-radius:12px}.search button,.feed-retry{background:var(--accent);border:0;padding:12px 24px;border-radius:12px;cursor:pointer;color:#161616}.categories{display:flex;gap:12px;overflow:auto;max-width:1160px;margin:0 auto 28px;padding:0 28px}.categories a{white-space:nowrap;background:var(--panel);border-radius:20px;padding:9px 18px;font-size:14px}main{max-width:1160px;margin:auto;padding:0 28px 100px}.section-heading span{font-size:12px;letter-spacing:4px;color:var(--accent)}h1{font-size:28px;margin:10px 0 24px;font-weight:700}.video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px}.poster{position:relative;aspect-ratio:16/10;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,#292935,#1d1d26);display:grid;place-items:center}.poster img{width:100%;height:100%;object-fit:cover}.poster-placeholder{font-size:34px;color:#4d4d60}.badge{position:absolute;bottom:9px;right:9px;background:#000a;border-radius:5px;padding:4px 7px;font-size:11px}.video-card h2{font-size:15px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:12px 0 5px}.video-card p{font-size:12px;color:var(--muted);margin:0}.empty{text-align:center;padding:80px 20px;color:var(--muted)}.empty h1,.empty h2{color:#fff}.empty a{color:var(--accent)}.pagination{display:flex;justify-content:center;gap:24px;margin:44px 0;color:var(--muted);font-size:14px}.pagination a{color:var(--accent)}.bottom-nav{position:fixed;bottom:0;width:100%;display:flex;justify-content:center;gap:100px;padding:20px 24px calc(20px + env(safe-area-inset-bottom));background:#191920ed;border-top:1px solid #2b2b34;z-index:10;font-size:14px}.back{color:var(--muted);font-size:13px}.video-detail{max-width:900px;margin:auto}.video-detail h1{margin-top:24px}.video-detail video{width:100%;max-height:65vh;border-radius:14px;background:#000}.video-detail h2{font-size:18px;margin-top:32px}.description{color:var(--muted);line-height:1.9}.episodes{display:flex;gap:10px;flex-wrap:wrap}.episodes a{padding:10px 16px;border:1px solid #383844;border-radius:8px;font-size:14px}.empty-hint,#player-state{color:var(--muted);font-size:14px}.short-page .site-header{position:fixed;top:0;left:0;right:0;height:62px;z-index:5;background:linear-gradient(#000b,transparent);max-width:none}.short-page .short-link{display:none}.short-page .brand{font-size:18px}.short-page .brand-mark{font-size:12px;padding:7px 9px}.short-page main{padding:0;max-width:none}.short-feed{height:calc(100dvh - 65px - env(safe-area-inset-bottom));overflow-y:auto;scroll-snap-type:y mandatory;background:#000}.short-item{height:100%;min-height:300px;scroll-snap-align:start;scroll-snap-stop:always;position:relative;display:flex;justify-content:center;align-items:center;background:#08080b}.short-item video{height:100%;width:100%;object-fit:contain;max-width:760px}.short-info{position:absolute;bottom:30px;left:max(24px,calc((100vw - 700px)/2));right:115px;pointer-events:none;text-shadow:0 2px 7px #000}.short-info h2{font-size:19px;line-height:1.5;margin:10px 0}.short-info p{font-size:13px;line-height:1.6;color:#ddd}.short-actions{position:absolute;right:max(18px,calc((100vw - 740px)/2));bottom:60px;display:flex;flex-direction:column;gap:14px}.short-actions button,.short-actions a{background:#20202bcf;border:1px solid #ffffff30;border-radius:50%;width:56px;height:56px;display:grid;place-items:center;color:#fff;font-size:12px;cursor:pointer}.feed-state{position:fixed;top:90px;text-align:center;left:24px;right:24px;font-size:13px;pointer-events:none;color:#ddd;text-shadow:0 2px 8px #000;z-index:4}.feed-retry{position:fixed;top:140px;left:50%;transform:translateX(-50%);z-index:5}.short-status{position:absolute;top:45%;left:20px;right:20px;text-align:center;color:#fff;pointer-events:none;font-size:14px}.short-page .bottom-nav{height:65px;padding:20px 24px calc(20px + env(safe-area-inset-bottom))}@media(max-width:760px){.site-header{height:68px;padding:0 20px}.brand{font-size:20px}.short-link{font-size:13px}main{padding:0 20px 100px}.categories{padding:0 20px;gap:8px}.categories a{padding:8px 15px}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 13px}.section-heading h1{font-size:24px}.search{margin:12px auto 24px;padding:0 20px}.search button{padding:12px 19px}.bottom-nav{gap:65px}.video-detail h1{font-size:22px}}

.poster img:not([src]){display:none}.poster img{position:absolute;inset:0}.poster img[src]+.poster-placeholder{display:none}[hidden]{display:none!important}.short-page .bottom-nav{height:calc(65px + env(safe-area-inset-bottom))}

.category-block{margin-top:48px}.category-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.category-heading h1{margin:10px 0 0}.category-heading h2{font-size:24px;margin:0}.category-heading a{color:var(--accent);font-size:14px;white-space:nowrap}@media(max-width:760px){.category-block{margin-top:36px}.category-heading h2{font-size:21px}}

/* 统一中文系统字体与文字层级，不依赖远程字体 */
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei UI","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65;font-weight:400;letter-spacing:.01em;-webkit-font-smoothing:antialiased}button,input{font-family:inherit;letter-spacing:inherit}.site-header{gap:18px}.brand{min-width:0;font-size:20px;font-weight:600;line-height:1.35;letter-spacing:.01em}.brand-mark{flex-shrink:0}.short-link{flex-shrink:0;white-space:nowrap;font-size:13px;font-weight:500;line-height:1.4}.section-heading span{font-size:12px;letter-spacing:2px}.category-heading h1{font-size:26px;font-weight:500;line-height:1.4;letter-spacing:.01em}.category-heading h2{font-size:22px;font-weight:500;line-height:1.45;letter-spacing:.015em}.category-heading a{font-size:13px;font-weight:500;line-height:1.5;letter-spacing:.015em}.video-card h2{font-size:14px;font-weight:500;line-height:1.55;margin-top:10px}.video-card p{font-size:12px;line-height:1.6}.categories a,.bottom-nav a{font-size:13px;font-weight:500;line-height:1.5}.search input,.search button{font-size:14px;line-height:1.5}.short-info h2{font-size:18px;font-weight:500;line-height:1.55}.short-info p{font-size:13px;line-height:1.7}.short-actions button,.short-actions a{font-size:12px;font-weight:500;line-height:1.3}@media(max-width:760px){.brand{font-size:18px}.category-heading h1{font-size:23px}.category-heading h2{font-size:20px}.section-heading span{font-size:11px}}

/* 首页标题与更多入口按文字基线对齐 */
.category-heading h1{margin:0}.latest-heading{align-items:baseline}

.brand-logo{display:block;width:auto;max-width:112px;height:40px;object-fit:contain;flex-shrink:0}.brand-title{min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.short-page .brand-logo{height:32px;max-width:96px}@media(max-width:760px){.brand-logo{height:36px;max-width:96px}}

/* 分类标签按可用宽度自动换行，随内容向下扩展 */
.categories{flex-wrap:wrap;overflow:visible;align-items:center;row-gap:10px}.categories a{flex:0 0 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}

/* 主导航位于 LOGO 下方、搜索框上方 */
.primary-nav{display:flex;align-items:center;justify-content:space-around;gap:12px;width:calc(100% - 56px);max-width:1104px;margin:0 auto 16px;padding:10px 20px;background:var(--panel);border:1px solid #2b2b34;border-radius:12px}.primary-nav a{flex:1;min-width:0;display:block;padding:4px 10px;text-align:center;font-size:14px;font-weight:500;line-height:1.5;white-space:nowrap}.primary-nav a:hover{color:var(--accent)}.browse-page main{padding-bottom:40px}.short-page .site-header{position:relative;inset:auto;width:100%;height:62px;background:var(--bg)}.short-page .primary-nav{height:52px;min-height:52px;width:100%;max-width:none;margin:0;padding:6px 20px;border-radius:0}.short-page .short-feed{height:calc(100vh - 114px);height:calc(100dvh - 114px)}.short-page .feed-state{top:134px}.short-page .feed-retry{top:178px}@media(max-width:760px){.primary-nav{width:calc(100% - 40px);gap:8px;padding:10px 12px}.primary-nav a{font-size:13px}.short-page .primary-nav{width:100%;padding:6px 20px}}
