:root{color-scheme:dark;font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif;color:#fff;background:#161823;font-synthesis:none;--sidebar:160px;--header:56px;--pink:#fe2c55;--muted:rgba(255,255,255,.55)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{border:0;padding:0;background:none;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid #fff;outline-offset:3px}button:disabled{opacity:.35;cursor:default}input{min-width:0;border:0;outline:none;color:inherit}input::placeholder{color:rgba(255,255,255,.38)}input::-webkit-search-cancel-button{cursor:pointer}img{display:block;max-width:100%}[hidden]{display:none!important}
.icon{display:inline-block;flex:none;width:24px;height:24px;background-color:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat;vertical-align:middle;pointer-events:none}.icon-button{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;position:relative;color:rgba(255,255,255,.72);flex:none}.icon-button .icon{width:32px;height:32px}.icon-button:hover,.text-control:hover,.header-tool:hover{color:#fff}
.application{height:100%;background:#161823}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);z-index:30;background:#161823}.brand{display:block;position:relative;overflow:hidden;width:160px;height:56px}.nav-list{padding:2px 16px 0;display:flex;flex-direction:column;gap:2px}.nav-item{height:40px;display:flex;align-items:center;gap:12px;padding:0 16px;border-radius:12px;font-size:16px;font-weight:400;color:rgba(255,255,255,.7);white-space:nowrap;text-align:left}.nav-item:hover{background:rgba(255,255,255,.045);color:#fff}.nav-item.active{color:#fff;background:#30323c}.nav-item .icon{width:24px;height:24px}.nav-divider{height:1px;min-height:1px;margin:10px 8px;background:rgba(255,255,255,.06)}.nav-sprite{display:inline-block;flex:none;width:24px;height:24px;background-image:url("assets/graphics/sidebar.png");background-repeat:no-repeat;background-size:1152px auto}.featured{background-position:0 0}.recommend{background-position:-72px 0}.following{background-position:-144px 0}.friends{background-position:-192px 0}.mine{background-position:-816px 0}.live{background-position:-240px 0}.cinema{background-position:-288px 0}.drama{background-position:-960px 0}.games{background-position:-336px 0}.sidebar-bottom{position:absolute;left:16px;right:16px;bottom:10px}.site-subtitle{display:block;margin-bottom:16px;color:rgba(255,255,255,.34);font-size:12px}.utility-row{display:flex;gap:8px}.utility-row .icon-button{width:24px;height:24px}.utility-row .icon{width:24px;height:24px;color:rgba(255,255,255,.55)}
.topbar{position:fixed;z-index:25;top:0;right:0;left:var(--sidebar);height:var(--header);background:#161823}.search-form{position:absolute;top:7px;left:calc(50% - 54px);transform:translateX(-50%);width:476px;height:42px;display:flex;align-items:center;border:1px solid rgba(255,255,255,.12);background:#383942;border-radius:10px;overflow:hidden}.search-form:focus-within{border-color:rgba(255,255,255,.5)}.search-form input{background:none;height:100%;flex:1;padding:0 12px;font-size:16px}.search-form>button{display:flex;align-items:center;justify-content:center;gap:5px;flex:none;width:76px;height:24px;border-left:1px solid rgba(255,255,255,.12);font-size:16px}.search-form .icon{width:18px;height:18px}.header-tools{position:absolute;right:16px;top:4px;height:48px;display:flex;gap:16px;align-items:center}.header-tool{width:24px;height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:rgba(255,255,255,.6);font-size:10px;white-space:nowrap}.header-tool .icon{width:23px;height:23px}.header-avatar{height:32px;width:32px;border-radius:50%;margin-left:8px;background:#30323c;display:grid;place-items:center;overflow:hidden}
.main-content{position:fixed;left:var(--sidebar);right:12px;top:var(--header);bottom:12px;min-width:0}.player-layout{height:100%;position:relative;display:flex;min-width:0}.player-shell{position:relative;flex:1;min-width:0;height:100%;overflow:hidden;border-radius:16px;background:#000}.video-surface{position:absolute;inset:0 0 48px;overflow:hidden;cursor:pointer;background:#0c0d12}.video-backdrop{position:absolute;inset:-10%;background-position:center;background-size:cover;filter:blur(45px) brightness(.34);transform:scale(1.08);pointer-events:none}.video-surface video{position:relative;display:block;width:100%;height:100%;object-fit:contain;background:transparent}.video-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.54),transparent 28%);pointer-events:none}.center-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);opacity:.75}.center-play .icon{width:88px;height:88px}.video-buffering,.video-error{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;font-size:14px;color:rgba(255,255,255,.8)}.video-buffering{padding:10px 16px;background:rgba(0,0,0,.4);border-radius:6px}.video-error{width:min(280px,80%)}.video-error p{margin:0 0 16px}.video-error button{background:#30323c;padding:8px 20px;border-radius:6px}.heart-burst{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none;color:var(--pink);animation:heart-pop .75s ease-out both}.heart-burst .icon{width:110px;height:110px}@keyframes heart-pop{0%{transform:translate(-50%,-50%) scale(.3);opacity:0}30%{transform:translate(-50%,-50%) scale(1.1);opacity:1}70%{opacity:1}100%{transform:translate(-50%,-70%) scale(1.25);opacity:0}}
.video-info{position:absolute;left:16px;bottom:99px;z-index:4;max-width:calc(100% - 116px);font-size:14px;line-height:22px;text-shadow:0 1px 3px rgba(0,0,0,.45);pointer-events:none}.video-info button{pointer-events:auto}.author-name{font-size:16px;font-weight:600;line-height:24px}.video-separator,.video-sequence{color:rgba(255,255,255,.7);font-size:12px}.video-caption{margin:4px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.video-tags{margin:0;font-size:13px}.video-tags button{line-height:22px}.video-tags button:hover,.author-name:hover{text-decoration:underline}.video-actions{position:absolute;z-index:6;right:15px;bottom:70px;width:52px;display:flex;flex-direction:column;align-items:center;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.35)}.ai-button{height:40px;width:40px;display:grid;place-items:center;background:rgba(0,0,0,.2);border-radius:10px;margin-bottom:12px}.ai-button .icon{width:32px;height:32px}.author-avatar-wrap{height:72px;width:52px;position:relative;padding-top:5px}.author-avatar{width:50px;height:50px;overflow:hidden;border-radius:50%;border:1px solid rgba(255,255,255,.8);background:#30323c}.author-avatar img{width:100%;height:100%;object-fit:cover}.follow-button{position:absolute;top:42px;left:14px;width:24px;height:25px}.follow-button img{width:24px;height:25px}.follow-button[aria-pressed=true]{opacity:.92}.follow-button[aria-pressed=true] img{transform:rotate(45deg)}.action-button{width:52px;height:74px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:14px;white-space:nowrap}.action-button .icon{width:34px;height:34px}.action-button:hover .icon{opacity:.8;transform:scale(1.05)}#likeButton .icon{width:28px;height:28px}#commentButton .icon{width:26px;height:26px}#shareButton .icon{width:35px;height:35px}.listen-button .icon{width:32px;height:32px}.more-button{height:36px}.more-button .icon{width:36px;height:36px}#likeButton[aria-pressed=true]{color:var(--pink)}#collectButton[aria-pressed=true]{color:#f4c36b}.player-shell.clear-mode .video-info,.player-shell.clear-mode .video-actions{display:none}.video-switcher{position:absolute;right:80px;top:44%;z-index:8;display:grid;gap:10px;transform:translateY(-50%);opacity:0;transition:opacity .15s}.player-layout:hover .video-switcher,.video-switcher:focus-within{opacity:1}.video-switcher button{width:38px;height:38px;display:grid;place-items:center;background:rgba(30,31,39,.5);border-radius:50%;color:rgba(255,255,255,.8)}.video-switcher button:hover{background:rgba(60,61,70,.8);color:#fff}.video-switcher .icon{width:16px;height:16px}.up-icon{transform:rotate(-90deg)}.down-icon{transform:rotate(90deg)}
.player-bottom{position:absolute;inset:auto 0 0;height:48px;z-index:10;background:linear-gradient(0deg,rgba(0,0,0,.95),rgba(0,0,0,.65))}.seek-bar{position:absolute;left:0;top:-3px;width:100%;height:6px;margin:0;background:transparent;cursor:pointer;accent-color:#fff;appearance:none;-webkit-appearance:none;z-index:1}.seek-bar::-webkit-slider-runnable-track{height:3px;background:linear-gradient(to right,rgba(255,255,255,.9) 0 var(--progress,0%),rgba(255,255,255,.25) var(--progress,0%) 100%)}.seek-bar::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:5px;height:5px;border-radius:50%;margin-top:-1px;background:#fff}.seek-bar:hover::-webkit-slider-thumb{width:9px;height:9px;margin-top:-3px}.seek-bar::-moz-range-track{height:3px;background:rgba(255,255,255,.25)}.seek-bar::-moz-range-progress{height:3px;background:#fff}.seek-bar::-moz-range-thumb{width:6px;height:6px;border:0;background:#fff;border-radius:50%}.player-controls{height:48px;display:flex;align-items:center;gap:8px;padding:0 8px;color:rgba(255,255,255,.63);white-space:nowrap}.time-display{font-size:13px;min-width:96px;font-variant-numeric:tabular-nums}.text-control{height:32px;font-size:14px;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none}.danmaku-toggle{width:32px;font-size:20px}.danmaku-toggle[aria-pressed=false]{opacity:.35}.danmaku-form{height:34px;display:flex;align-items:center;gap:8px;border-radius:20px;background:rgba(255,255,255,.14);padding:0 3px 0 12px;flex:1 1 280px;max-width:580px;min-width:120px;margin-left:32px;color:rgba(255,255,255,.8)}.danmaku-form .icon{width:20px;height:20px}.danmaku-form input{width:100%;flex:1;background:none;font-size:14px}.danmaku-form button{height:30px;padding:0 18px;background:rgba(255,255,255,.18);border-radius:18px;color:#fff;font-size:14px}.controls-right{display:flex;align-items:center;gap:9px;margin-left:auto;flex:none}.toggle-control{gap:4px}.toggle-track{width:24px;height:14px;display:block;border-radius:8px;background:rgba(255,255,255,.2);position:relative}.toggle-track:after{content:"";position:absolute;width:11px;height:11px;left:2px;top:1.5px;border-radius:50%;background:rgba(255,255,255,.4)}.toggle-control[aria-pressed=true] .toggle-track{background:var(--pink)}.toggle-control[aria-pressed=true] .toggle-track:after{left:11px;background:#fff}.mute-mark{position:absolute;right:0;bottom:-5px;font-size:9px;line-height:13px;border-radius:3px;background:#30323c;padding:0 2px;color:rgba(255,255,255,.8)}.speed-wrap{position:relative}.popover{position:absolute;background:#30313b;border:1px solid rgba(255,255,255,.06);border-radius:10px;box-shadow:0 8px 30px #0005;color:#fff;z-index:40}.speed-menu{bottom:42px;left:50%;transform:translateX(-50%);min-width:90px;padding:8px}.speed-menu button{display:block;width:100%;padding:8px 12px;font-size:14px;border-radius:5px}.speed-menu button:hover{background:rgba(255,255,255,.08)}.speed-menu .selected{color:var(--pink)}.share-popover{right:78px;bottom:185px;width:290px;padding:18px}.share-popover p{margin:0 0 14px;font-size:16px}.share-popover input{width:100%;height:36px;padding:0 10px;background:#20212a;border-radius:5px;font-size:12px}.share-popover>button{display:block;width:100%;height:36px;background:var(--pink);border-radius:5px;margin-top:10px;font-size:14px}.danmaku-layer{position:absolute;inset:12px 0 160px;z-index:3;overflow:hidden;pointer-events:none}.danmaku-item,.danmaku{position:absolute;white-space:nowrap;font-size:22px;font-weight:500;text-shadow:1px 1px 2px #000,-1px -1px 1px #000;animation:danmaku-move 9s linear forwards}@keyframes danmaku-move{from{transform:translateX(0)}to{transform:translateX(calc(-100vw - 100%))}}
.comments-panel{width:360px;flex:none;height:100%;background:#1e202b;border-radius:0 16px 16px 0;display:flex;flex-direction:column;overflow:hidden;z-index:15;border-left:1px solid rgba(255,255,255,.03)}.comments-open .player-shell{border-radius:16px 0 0 16px}.comments-open .video-switcher{right:440px}.panel-header{height:54px;flex:none;display:flex;justify-content:space-between;align-items:center;padding:0 14px;border-bottom:1px solid rgba(255,255,255,.06)}.panel-tabs{display:flex;align-items:center;gap:26px;height:100%}.panel-tabs button{height:100%;position:relative;color:rgba(255,255,255,.55);font-size:14px;white-space:nowrap}.panel-tabs button.active{color:#fff}.panel-tabs .active:after{content:"";position:absolute;bottom:0;height:3px;background:var(--pink);left:0;right:0;border-radius:2px}.close-button{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;color:rgba(255,255,255,.6);flex:none}.close-button .icon{width:22px;height:22px}.close-button:hover{color:#fff}.panel-body{flex:1;overflow:auto;padding:20px 16px;scrollbar-width:thin;scrollbar-color:#353640 transparent}.panel-body p{overflow-wrap:anywhere}.panel-empty{font-size:14px;color:var(--muted);line-height:1.8;padding:34px 8px;text-align:center}.panel-details{font-size:14px;line-height:1.8}.panel-details h2{font-size:16px;margin:0 0 12px}.panel-details img{width:56px;height:56px;border-radius:50%;object-fit:cover;margin-bottom:16px}.comment-item{display:flex;gap:12px;margin-bottom:26px;font-size:14px;line-height:22px}.comment-avatar{flex:none;width:40px;height:40px;object-fit:cover;border-radius:50%;background:#30323c;display:grid;place-items:center;color:var(--muted)}.comment-content{flex:1;min-width:0}.comment-author{font-size:12px;color:rgba(255,255,255,.5);margin:0 0 3px}.comment-text{margin:0;color:rgba(255,255,255,.9);overflow-wrap:anywhere}.comment-time{font-size:12px;color:rgba(255,255,255,.45);margin-top:4px}.comment-form{display:flex;align-items:center;gap:8px;margin:0 16px 16px;flex:none;height:44px;padding:0 10px;border-radius:12px;background:#3a3b45}.comment-form input{flex:1;min-width:0;background:none;font-size:13px}.comment-form button{display:grid;place-items:center;width:28px;height:28px;color:var(--muted)}
.grid-view{height:100%;overflow:auto;padding:22px 24px 30px;scrollbar-width:thin;scrollbar-color:#353640 transparent}.grid-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.grid-header h1{font-size:22px;font-weight:600;margin:0}.grid-header button{font-size:14px;color:var(--muted)}.grid-header button:hover{color:#fff}.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px}.grid-card{min-width:0;display:block;text-align:left;overflow:hidden;cursor:pointer}.grid-card>img,.grid-card .grid-cover,.grid-card video{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:10px;background:#23252e;transition:filter .15s}.grid-card:hover>img{filter:brightness(1.08)}.grid-card-title{font-size:15px;line-height:23px;margin:10px 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.grid-card-meta{font-size:12px;color:var(--muted)}.empty-state{padding:100px 10px;text-align:center;color:var(--muted);font-size:14px}
.toast{position:fixed;left:calc(50% + var(--sidebar)/2);bottom:100px;transform:translateX(-50%);z-index:200;max-width:calc(100vw - 40px);padding:12px 22px;border-radius:8px;background:rgba(51,52,62,.96);box-shadow:0 5px 24px #0004;font-size:14px;line-height:22px;text-align:center}.info-dialog{width:min(420px,calc(100vw - 32px));padding:28px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:#252731;color:#fff;line-height:1.8;max-height:80vh}.info-dialog::backdrop{background:rgba(0,0,0,.6)}.info-dialog>form{position:absolute;right:12px;top:12px}.info-dialog h2{font-size:19px;font-weight:600;margin:0 0 18px;padding-right:20px}.info-dialog p{font-size:14px;color:rgba(255,255,255,.7)}.info-dialog kbd{padding:2px 6px;background:#3a3c47;border-radius:3px;font-size:12px}.page-fullscreen.main-content,.page-fullscreen .main-content,.player-layout.page-fullscreen{position:fixed;inset:0;z-index:80}.page-fullscreen .player-shell,.player-shell:fullscreen{border-radius:0}.player-shell:fullscreen{width:100vw;height:100vh}.player-layout:fullscreen{position:fixed;inset:0;display:flex;width:100vw;height:100dvh;background:#161823}.player-layout:fullscreen .player-shell,.player-layout:fullscreen .comments-panel{border-radius:0}
.loading-gate{position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#161823;color:#fff}.gate-logo{width:160px;height:68px;object-fit:contain;margin-bottom:18px}.gate-title{font-size:18px;margin:0;color:rgba(255,255,255,.88)}.gate-number{display:flex;align-items:baseline;justify-content:center;gap:8px;margin:25px 0 23px;font-variant-numeric:tabular-nums}.gate-number strong{font-size:56px;line-height:1;font-weight:600}.gate-number span{color:var(--muted);font-size:16px}.loading-gate progress{display:block;appearance:none;-webkit-appearance:none;border:0;width:240px;height:4px;border-radius:3px;overflow:hidden;background:#363741}.loading-gate progress::-webkit-progress-bar{background:#363741}.loading-gate progress::-webkit-progress-value{background:var(--pink);transition:width .3s linear}.loading-gate progress::-moz-progress-bar{background:var(--pink)}.gate-hint{font-size:13px;color:rgba(255,255,255,.4);margin:18px 0 0}
.grid-card-meta{display:block}.author-videos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.comment-summary{margin:0 0 20px;font-size:14px}.danmaku-message{position:absolute;left:100%;white-space:nowrap;font-size:22px;font-weight:500;text-shadow:1px 1px 2px #000,-1px -1px 1px #000;animation:danmaku-move 9s linear forwards}
@media(max-width:1250px){.search-form{width:420px;left:calc(50% - 100px)}.header-tools{gap:12px}.controls-right{gap:5px;margin-left:8px}.danmaku-form{max-width:350px}.time-display{min-width:91px}.comments-open .danmaku-form{display:none}.comments-open .controls-right{margin-left:auto}}
@media(max-width:1100px){:root{--sidebar:72px}.brand{width:72px}.nav-list{padding:2px 8px 0;gap:2px}.nav-item{height:56px;padding:0;flex-direction:column;justify-content:center;gap:3px;border-radius:10px;font-size:11px}.nav-item>span:last-child{font-size:11px}.nav-divider{margin:7px 8px}.sidebar-bottom{left:12px;right:12px}.site-subtitle{font-size:10px;text-align:center;white-space:nowrap}.utility-row{flex-wrap:wrap;justify-content:center;gap:12px}.search-form{width:400px;left:calc(50% - 100px)}.header-tools{gap:12px}.header-tool:nth-child(3){display:none}.video-grid{gap:22px 16px}.danmaku-form{min-width:130px}.controls-right{gap:4px}.toggle-control{font-size:12px}.toggle-track{width:20px}.toggle-control[aria-pressed=true] .toggle-track:after{left:7px}.comments-panel{width:330px}.comments-open .video-switcher{right:410px}}
@media(max-width:850px){.search-form{width:calc(100% - 185px);left:14px;transform:none}.header-tool:nth-child(2),.header-tool:nth-child(4){display:none}.header-tools{gap:14px}.danmaku-form{display:none}.controls-right{margin-left:auto;gap:7px}.optional-control{display:none}.video-info{max-width:calc(100% - 100px)}.comments-open .controls-right .toggle-control,.comments-open #qualityButton{display:none}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.comments-panel{width:310px}.comments-open .video-switcher{right:390px}}
@media(max-height:740px){.nav-item{height:36px}.nav-list{gap:1px}.nav-divider{margin-top:5px;margin-bottom:5px}.sidebar-bottom .site-subtitle{margin-bottom:9px}.video-actions{bottom:66px}.ai-button{display:none}.author-avatar-wrap{height:62px}.action-button{height:56px;gap:2px}.more-button{height:30px}.listen-button{display:none}.video-info{bottom:76px}.video-tags{font-size:12px}.video-caption{-webkit-line-clamp:1}}
@media(max-width:600px){:root{--sidebar:72px}.sidebar{width:72px}.brand{width:72px}.nav-list{padding:2px 8px 0;gap:1px}.nav-item{height:56px;font-size:11px;gap:2px;border-radius:8px}.nav-item>span:last-child{font-size:11px}.nav-item .icon,.nav-sprite{width:24px;height:24px}.nav-divider{margin:5px 6px}.sidebar-bottom{left:4px;right:4px}.site-subtitle{font-size:9px;margin-bottom:12px}.utility-row{gap:8px}.utility-row .icon-button{width:22px;height:22px}.utility-row .icon{width:21px;height:21px}.topbar{height:56px}.search-form{left:8px;right:52px;width:auto;top:10px;height:36px;border-radius:8px}.search-form input{font-size:12px;padding:0 8px}.search-form>button{width:48px;gap:0;font-size:12px}.search-form>button .icon{width:16px;height:16px}.search-form>button>span:last-child{display:none}.header-tools{right:9px;top:12px;height:32px}.secondary-tool{display:none!important}.header-avatar{width:28px;height:28px;margin:0}.main-content{right:6px;bottom:6px}.player-shell{border-radius:12px}.video-surface{bottom:52px}.player-bottom{height:52px}.player-controls{height:52px;padding:0 3px;gap:2px}.player-controls>.icon-button{width:30px}.time-display{min-width:0;width:80px;font-size:10px}.danmaku-toggle{display:none}.controls-right{gap:1px;margin-left:auto}.controls-right .toggle-control,#qualityButton,.optional-control{display:none}.controls-right .text-control{font-size:12px;width:30px}.controls-right .icon-button{width:29px}.controls-right .icon{width:29px;height:29px}.mute-mark{font-size:8px;bottom:-3px}.video-info{left:12px;bottom:84px;max-width:calc(100% - 78px);font-size:12px;line-height:19px}.author-name{font-size:14px;line-height:20px}.video-separator,.video-sequence{font-size:10px}.video-caption{margin-top:3px;-webkit-line-clamp:2}.video-tags,.video-tags button{font-size:11px;line-height:18px}.video-actions{bottom:70px;right:8px;width:44px}.ai-button{display:none}.author-avatar-wrap{width:44px;height:58px;padding-top:2px}.author-avatar{width:42px;height:42px}.follow-button{top:33px;left:11px;width:22px;height:23px}.follow-button img{width:22px;height:23px}.action-button{height:56px;width:44px;font-size:11px;gap:3px}.action-button .icon{width:30px;height:30px}#likeButton .icon{width:26px;height:26px}#commentButton .icon{width:25px;height:25px}#shareButton .icon{width:31px;height:31px}.listen-button{display:none}.more-button{height:30px}.more-button .icon{width:32px;height:32px}.video-switcher{opacity:1;right:62px;top:43%;gap:8px}.video-switcher button{width:30px;height:30px}.video-switcher .icon{width:13px;height:13px}.center-play .icon{width:64px;height:64px}.comments-panel{position:absolute;inset:0;width:auto;height:100%;border-radius:12px;background:#1e202b}.comments-open .video-switcher{display:none}.comments-open .player-shell{border-radius:12px}.panel-header{padding:0 12px}.panel-tabs{gap:23px}.panel-body{padding:18px 12px}.comment-form{margin:0 12px 12px}.share-popover{width:calc(100% - 28px);right:14px;bottom:150px;padding:14px}.grid-view{padding:18px 10px}.grid-header{margin-bottom:18px;gap:8px}.grid-header h1{font-size:18px}.grid-header button{font-size:11px}.video-grid{gap:20px 10px}.grid-card-title{font-size:12px;line-height:19px;margin-top:7px}.grid-card-meta{font-size:10px}.grid-card>img,.grid-card .grid-cover{border-radius:7px}.toast{left:calc(50% + 36px);max-width:calc(100vw - 80px);font-size:12px;padding:10px 14px}.danmaku-item,.danmaku{font-size:17px}.info-dialog{padding:24px}.gate-title{font-size:17px}}
@media(max-width:600px) and (max-height:740px){.nav-item{height:44px}}
@media(max-width:360px){.video-grid{grid-template-columns:1fr}.controls-right .text-control{width:26px}.controls-right .icon-button{width:26px}.time-display{width:72px;font-size:9px}.video-info{left:9px}.video-actions{right:5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}.heart-burst{animation-duration:.15s}.danmaku-item,.danmaku{animation-duration:18s}}

/* Language text follows its reading direction; video/control positions stay stable. */
.i18n-pending body{visibility:hidden}
.application,.player-layout,.player-controls,.controls-right,.topbar,.nav-list,.video-actions,.video-info,.video-switcher,.time-display,.video-sequence{direction:ltr}
[dir=rtl] [data-i18n],[dir=rtl] .video-caption,[dir=rtl] .panel-body,[dir=rtl] .comment-form,[dir=rtl] .info-dialog,[dir=rtl] .share-popover,[dir=rtl] .grid-header,[dir=rtl] .grid-card-title,[dir=rtl] .gate-title,[dir=rtl] .gate-hint{direction:rtl}
[dir=rtl] .panel-body,[dir=rtl] .grid-card-title,[dir=rtl] .video-caption,[dir=rtl] .share-popover{text-align:right}
.video-tags{display:flex;flex-wrap:wrap;gap:0 8px}.video-tags button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-item>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:normal;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.nav-item{overflow:hidden}
.site-subtitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.action-button>span:last-child{max-width:70px;overflow:hidden;text-overflow:ellipsis;font-size:12px;white-space:normal;overflow-wrap:anywhere;line-height:1.1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.panel-tabs{gap:12px;min-width:0;flex:1}.panel-tabs button{min-width:0;overflow:hidden;text-overflow:ellipsis}.panel-header .close-button{margin-left:8px}
.danmaku-toggle{width:auto;padding:0 4px;font-size:13px}.danmaku-form{margin-left:8px;min-width:90px}
.player-controls{gap:6px}.controls-right{gap:8px}.text-control{max-width:110px;overflow:hidden;text-overflow:ellipsis}
.header-tool{width:auto;min-width:24px;max-width:68px}.header-tool>span:last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis}.header-tools{gap:12px}
.search-form>button{width:auto;min-width:76px;max-width:130px;padding:0 8px}.search-form>button>span:last-child{overflow:hidden;text-overflow:ellipsis}
.gate-title,.gate-hint{text-align:center;max-width:calc(100vw - 40px);overflow-wrap:anywhere}
.grid-header h1{overflow-wrap:anywhere;min-width:0}.grid-header button{flex:none;max-width:42%;white-space:normal}
.speed-wrap .text-control{min-width:42px;width:auto}.speed-menu{direction:ltr}
.video-tags{max-height:44px;overflow:hidden}
@media(min-width:851px){.search-form{left:24px;transform:none;width:min(38%,476px)}.danmaku-form{flex-basis:150px}.comments-open .danmaku-form{display:none}.comments-open #qualityButton{display:none}}
@media(max-width:1100px){.nav-item>span:last-child{max-width:100%;font-size:10px}.danmaku-toggle{display:none}.controls-right .toggle-control{display:none}.header-tools{gap:9px}}
@media(max-width:600px){.search-form>button{min-width:42px;width:42px;padding:0}.player-controls{gap:2px}.controls-right{gap:1px}.speed-wrap .text-control{min-width:0;width:44px;max-width:44px;font-size:10px}.action-button>span:last-child{max-width:64px;font-size:10px}.video-tags{max-height:36px}.panel-tabs{gap:12px}.panel-tabs button{font-size:12px}.comments-panel{min-height:0}.sidebar .utility-row{flex-wrap:wrap}.nav-item>span:last-child{font-size:9px}}

/* Keep touch controls clear of iPhone notches, the home indicator and keyboard. */
@media(pointer:coarse),(max-width:850px){
  :root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
  body{height:var(--app-height,100dvh);position:relative;overscroll-behavior:none}
  .application{height:var(--app-height,100dvh)}
  .sidebar{top:calc(var(--viewport-top,0px) + var(--safe-top));left:var(--safe-left);bottom:auto;height:calc(var(--app-height,100dvh) - var(--safe-top) - var(--safe-bottom));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
  .sidebar-bottom{position:static;margin:18px 4px 10px}.nav-list{padding-bottom:0}
  .topbar{top:calc(var(--viewport-top,0px) + var(--safe-top));left:calc(var(--sidebar) + var(--safe-left));right:var(--safe-right)}
  .main-content{top:calc(var(--viewport-top,0px) + var(--safe-top) + var(--header));left:calc(var(--sidebar) + var(--safe-left));right:calc(6px + var(--safe-right));bottom:auto;height:calc(var(--app-height,100dvh) - var(--safe-top) - var(--safe-bottom) - var(--header) - 6px)}
  .page-fullscreen .main-content{top:calc(var(--viewport-top,0px) + var(--safe-top));left:var(--safe-left);right:var(--safe-right);height:calc(var(--app-height,100dvh) - var(--safe-top) - var(--safe-bottom))}
  .search-form input,.comment-form input,.danmaku-form input,.share-popover input{font-size:16px}
  .video-surface{touch-action:pan-x pinch-zoom}
  .seek-bar{top:-13px;height:26px;touch-action:pan-x}
  .seek-bar::-webkit-slider-runnable-track{height:3px}
  .player-layout:fullscreen{height:100dvh;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
}
[dir=rtl] input:placeholder-shown{direction:rtl;text-align:right}
@media(max-width:1100px){}
@media(pointer:coarse),(max-width:850px){.nav-item{min-height:52px}}
@media(max-width:600px){
  .nav-item{min-height:52px}.nav-item>span:last-child{font-size:11px}.action-button>span:last-child{font-size:11px}
  .player-controls{gap:0;padding:0 2px}.player-controls>.icon-button,.controls-right .icon-button{width:44px;height:44px}
  .controls-right{gap:0}.speed-wrap .text-control{width:44px;max-width:44px;height:44px;font-size:11px}
  .time-display{width:84px;min-width:62px;flex:1;font-size:10px}
  .video-switcher button{width:44px;height:44px}.panel-header .close-button{width:44px;height:44px}
  .follow-button:before{content:"";position:absolute;inset:-10px}
}
@media(max-height:500px) and (orientation:landscape){
  .video-actions{bottom:58px;right:10px}
  .video-actions .action-button{height:42px}
  .video-actions .action-button .icon{width:23px;height:23px}
  .video-actions .more-button{height:26px}
  .author-avatar-wrap{height:46px;width:36px}
  .author-avatar{width:34px;height:34px}
  .follow-button{top:26px;left:10px;width:18px;height:19px}
  .follow-button img{width:18px;height:19px}
  .video-actions .listen-button{display:none}
  .video-actions .action-button>span:last-child{font-size:10px;-webkit-line-clamp:1;white-space:nowrap;max-width:70px}
}
.action-button>span:last-child{width:max-content;flex:none}
.nav-item>span:last-child{overflow-wrap:anywhere}
@media(min-width:1101px){html:not([lang^="zh"]){--sidebar:208px}}

/* Genuine TikTok wordmark and compact icon. */
.brand{display:flex;align-items:center;justify-content:flex-start;width:var(--sidebar);height:56px;padding:0 16px}
.brand .brand-wordmark{display:block;position:static;width:128px;height:auto;max-width:none;clip-path:none}
.brand .brand-mark{display:none;position:static;width:36px;height:36px;max-width:none;clip-path:none}
.gate-logo{width:160px;height:48px;object-fit:contain}
@media(max-width:1100px){.brand{justify-content:center;padding:0}.brand .brand-wordmark{display:none}.brand .brand-mark{display:block}}

/* A visible, localized return path remains reachable above the panel content. */
.panel-header{height:auto;min-height:100px;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:4px 12px 0}
.panel-back-button{display:inline-flex;align-items:center;align-self:flex-start;gap:8px;min-height:44px;max-width:100%;padding:4px 8px 4px 0;font-size:14px;font-weight:600;line-height:20px;color:#fff;text-align:start}
.panel-back-button .panel-back-arrow{width:18px;height:18px;transform:rotate(180deg)}
.panel-back-button>span:last-child{min-width:0;overflow-wrap:anywhere}
.panel-header .panel-tabs{flex:0 0 48px;width:100%;height:48px;gap:12px;justify-content:space-between}
.panel-header .panel-tabs button{flex:1;font-size:13px}
.panel-body{min-height:0;overscroll-behavior:contain}

/* Keep the translated modal dismissal in its own row, clear of long titles. */
.info-dialog>form{position:static;display:flex;justify-content:flex-end;margin:0 0 12px;max-width:100%}
.info-dialog .dialog-close-button{width:auto;min-width:44px;max-width:100%;height:auto;min-height:44px;padding:8px 12px;border-radius:8px;background:#353741;color:#fff;font-size:14px;line-height:20px;text-align:center;white-space:normal;overflow-wrap:anywhere}
.info-dialog .dialog-close-button:hover{background:#454751}
.info-dialog h2{padding-right:0;overflow-wrap:anywhere}
.comment-form button{width:44px;min-width:44px;height:44px;flex:0 0 44px}
