:root{
  --pink:#fe2c55;--ink:#161823;--muted:#73757c;--line:#e6e6e8;--white:#fff;
  --mobile-bottom:72px;--safe-bottom:env(safe-area-inset-bottom,0px);
  --overlay-title-size:clamp(14px,4.3vw,19px);--overlay-head:48px
}
*{box-sizing:border-box}
html,body{margin:0;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
body{background:#fff;color:var(--ink);overflow:hidden}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.app-shell{height:100dvh;background:#fff}
.desktop-sidebar,.desktop-top-actions{display:none}
.bare-icon{border:0;background:none;padding:0;display:grid;place-items:center;color:inherit}
.ui-icon{width:26px;height:26px;display:block;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* Mobile TikTok-like top bar */
.mobile-top{position:fixed;z-index:35;top:0;left:0;right:0;height:58px;padding-top:env(safe-area-inset-top,0);display:flex;align-items:center;justify-content:center;color:#fff;text-shadow:0 1px 5px #000}
.mobile-tabs{display:flex;align-items:center;gap:30px}
.mobile-tabs button{border:0;background:none;color:#ddd;font-size:19px;font-weight:750;padding:12px 2px;position:relative;text-shadow:inherit;white-space:nowrap;writing-mode:horizontal-tb}
.mobile-tabs button.active{color:#fff}
.mobile-tabs button.active:after{content:"";position:absolute;left:50%;bottom:3px;width:25px;height:3px;border-radius:4px;background:#fff;transform:translateX(-50%)}
.mobile-top>.bare-icon{position:absolute;right:17px;top:calc(15px + env(safe-area-inset-top,0));width:32px;height:32px}
.mobile-top>.bare-icon .ui-icon{width:27px;height:27px}

/* Feed */
.feed{height:100dvh;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:none;background:#000}
.feed::-webkit-scrollbar{display:none}
.video-card{height:100dvh;position:relative;scroll-snap-align:start;scroll-snap-stop:always;background:#000;overflow:hidden}
.video-card video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000}
.video-overlay{position:absolute;inset:0;pointer-events:none;background:linear-gradient(transparent 48%,rgba(0,0,0,.04) 60%,rgba(0,0,0,.72) 100%)}
.video-meta{position:absolute;z-index:8;left:14px;right:74px;bottom:calc(var(--mobile-bottom) + 16px + var(--safe-bottom));color:#fff;text-shadow:0 1px 4px #000;pointer-events:none}
.creator{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:850;margin-bottom:7px}
.video-title{font-size:16px;line-height:1.4;margin:0 0 5px;font-weight:750}
.video-summary{font-size:14px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.video-summary:empty{display:none}
.tags{display:flex;gap:6px;flex-wrap:wrap;font-size:14px;margin-top:5px;font-weight:650}
.music-line{font-size:13px;margin-top:7px}

/* Right action rail: compact enough for phones */
.action-rail{position:absolute;z-index:10;right:5px;bottom:calc(var(--mobile-bottom) + 12px + var(--safe-bottom));display:flex;flex-direction:column;align-items:center;gap:7px;color:#fff}
.action{width:56px;min-height:47px;border:0;background:none;color:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;text-decoration:none;padding:0}
.action .bubble{width:42px;height:38px;display:grid;place-items:center}
.action .bubble .ui-icon{width:28px;height:28px;filter:drop-shadow(0 2px 3px #0008)}
.action small{font-size:11px;line-height:14px;font-weight:750;text-shadow:0 1px 4px #000;white-space:nowrap}
.action.creator-action{margin-bottom:5px}
.action.creator-action .bubble{width:46px;height:46px;border-radius:50%;background:#fff;border:2px solid #fff;overflow:visible;position:relative}
.action.creator-action img{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#eee}
.action.creator-action .follow-dot{position:absolute;width:19px;height:19px;border-radius:50%;background:var(--pink);color:#fff;display:grid;place-items:center;bottom:-8px;left:12px;font-size:16px;font-weight:900;font-style:normal;line-height:1}
.action.creator-action.following .follow-dot{background:#20c56b;color:#fff;border:1px solid #20c56b;font-size:12px}
.action.like.active{color:var(--pink)}
.action.like.active .ui-icon{fill:currentColor}
.action.favorite.active{color:#ffd642}
.action.favorite.active .ui-icon{fill:currentColor}
.play-state{position:absolute;z-index:9;left:50%;top:50%;transform:translate(-50%,-50%);min-width:68px;min-height:68px;border-radius:50%;background:#0007;color:#fff;display:grid;place-items:center;font-size:28px;opacity:0;pointer-events:none}
.play-state-icon{display:block;line-height:1}
.play-state-hint{display:none;position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);font-size:14px;font-weight:700;line-height:1;white-space:nowrap;color:#fff;text-shadow:0 1px 5px #000}
.video-card.paused .play-state{opacity:1}
.video-card.needs-activation .play-state{opacity:1}
.video-card.needs-activation .play-state-hint{display:block}
.progress{--seek:0%;position:absolute;z-index:20;left:0;right:0;bottom:calc(var(--mobile-bottom) + var(--safe-bottom));height:16px;background:transparent;display:flex;align-items:center;cursor:pointer;touch-action:none}
.progress::before{content:"";position:absolute;left:0;right:0;top:50%;height:3px;transform:translateY(-50%);background:#ffffff45;border-radius:999px}
.progress i{position:absolute;left:0;top:50%;display:block;width:0;height:3px;transform:translateY(-50%);background:#fff;border-radius:999px;pointer-events:none}
.seekbar{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;appearance:none;-webkit-appearance:none;pointer-events:none}
.progress:hover::before{height:5px}.progress:hover i{height:5px}

/* Mobile bottom nav */
.mobile-nav{position:fixed;z-index:40;left:0;right:0;bottom:0;height:calc(var(--mobile-bottom) + var(--safe-bottom));padding-bottom:var(--safe-bottom);display:flex;align-items:center;background:#090a0d;color:#fff;border-top:1px solid #ffffff18}
.mobile-nav button{flex:1;height:100%;border:0;background:none;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 0;white-space:nowrap;writing-mode:horizontal-tb;text-orientation:mixed}
.mobile-nav .ui-icon{width:27px;height:27px}
.mobile-nav b{font-size:15px;line-height:1;font-weight:650;white-space:nowrap;writing-mode:horizontal-tb}
.mobile-nav button.active b{font-weight:850}
.mobile-upload i{width:48px;height:30px;border-radius:8px;background:linear-gradient(90deg,#25f4ee 0 18%,#fff 18% 82%,#fe2c55 82%);display:grid;place-items:center;color:#111}
.mobile-upload i .ui-icon{width:21px;height:21px}

/* Drawer */
.drawer{position:fixed;z-index:80;inset:0}
.drawer-backdrop{position:absolute;inset:0;background:#0007}
.drawer-panel{position:absolute;left:0;right:0;bottom:0;background:#fff;color:#161823;border-radius:22px 22px 0 0;max-height:88dvh;min-height:260px;padding:8px 16px calc(20px + var(--safe-bottom));overflow:auto}
.drawer-head{height:var(--overlay-head);display:flex;align-items:center;justify-content:center;position:sticky;top:-8px;margin:0 -16px;width:calc(100% + 32px);padding:0 8px;background:#fff;z-index:3;border-bottom:1px solid #f0f0f2}
.drawer-head h2{width:100%;margin:0;padding:0 32px;text-align:center;font-size:var(--overlay-title-size);line-height:1.2;font-weight:800;letter-spacing:-.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-head>.bare-icon{position:absolute;right:0;top:50%;width:32px;height:32px;transform:translateY(-50%);z-index:2}
.drawer-head .ui-icon{width:24px;height:24px}
.search-box{display:flex;gap:8px;margin-top:12px}
.search-box input,.form-field input,.form-field textarea{width:100%;border:1px solid #d9d9dd;background:#f7f7f8;border-radius:9px;padding:12px;color:#161823}
.primary{border:0;border-radius:8px;background:var(--pink);color:#fff;font-weight:800;padding:11px 16px}
.secondary{border:1px solid #d8d8dc;background:#fff;border-radius:8px;padding:10px 14px;font-weight:700}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px;align-items:center}
.chip{border:0;background:#f2f2f4;border-radius:999px;padding:9px 13px;color:#34353b;white-space:nowrap;writing-mode:horizontal-tb;text-orientation:mixed}
.trend-chips{align-content:flex-start}
.trend-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.trend-chips{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-height:44px;margin-bottom:16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.trend-chips::-webkit-scrollbar{display:none}.trend-chip{flex:0 0 auto}}
@media(min-width:901px){.trend-chips{overflow:hidden}}
.results{display:grid;gap:8px}
.result-row{display:grid;grid-template-columns:94px minmax(0,1fr) auto;gap:11px;align-items:center;color:#161823;padding:9px 0;border-bottom:1px solid #eee;writing-mode:horizontal-tb}
.result-row>img{width:94px;height:72px;object-fit:cover;border-radius:8px;background:#eee}
.result-row>a{min-width:0;text-decoration:none;color:inherit;writing-mode:horizontal-tb}
.result-row h4{margin:0 0 5px;font-size:14px;white-space:normal;line-height:1.35;writing-mode:horizontal-tb}
.result-row p{margin:2px 0;color:#74767d;font-size:12px;white-space:normal;writing-mode:horizontal-tb}
.result-download{display:flex;align-items:center;gap:5px;text-decoration:none;white-space:nowrap}.result-download .ui-icon{width:18px;height:18px}
.comment-row{padding:10px 0;border-bottom:1px solid #eee}.comment-row p{margin:6px 0;line-height:1.5}.comment-row small{color:#777}

/* Mobile discovery/search is a full-height, clean horizontal layout */
.drawer[data-kind="search"] .drawer-panel{top:0;bottom:0;max-height:none;border-radius:0;padding:calc(6px + env(safe-area-inset-top,0)) 15px calc(20px + var(--safe-bottom))}
.drawer[data-kind="search"] .drawer-head{top:calc(-6px - env(safe-area-inset-top,0));margin-left:-15px;margin-right:-15px;width:calc(100% + 30px);padding-top:env(safe-area-inset-top,0);height:calc(var(--overlay-head) + env(safe-area-inset-top,0))}
.drawer[data-kind="search"] .drawer-head>.bare-icon{top:calc(env(safe-area-inset-top,0) + 24px)}
.discover-search,.discover-search *{writing-mode:horizontal-tb;text-orientation:mixed}
.discover-searchbar{height:48px;border-radius:24px;background:#f1f1f2;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;padding:0 6px 0 13px;gap:4px;margin:10px 0 18px;border:1px solid transparent}
.discover-searchbar:focus-within{background:#fff;border-color:#d5d5da;box-shadow:0 0 0 3px #1618230b}
.discover-searchbar>span{display:grid;place-items:center;color:#74767d}.discover-searchbar .ui-icon{width:21px;height:21px}
.discover-searchbar input{border:0;outline:0;background:transparent;min-width:0;font-size:16px;height:100%;padding:0 5px;color:#161823}
.discover-searchbar button{border:0;background:var(--pink);color:#fff;border-radius:19px;padding:8px 15px;font-weight:800;white-space:nowrap}
.discover-section{margin:10px 0 20px}.discover-section h3{font-size:17px;margin:0 0 9px;white-space:nowrap}

/* Profile/auth */
.profile-hero{display:flex;align-items:center;gap:14px;padding:12px 0}.profile-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;background:#f1f1f2}.profile-hero h3{margin:0 0 5px;font-size:19px}.profile-hero p{margin:0;color:#777}
.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.profile-stats div{text-align:center;background:#f7f7f8;border-radius:10px;padding:10px 4px}.profile-stats b{display:block;font-size:18px}.profile-stats small{font-size:11px;color:#777}
.profile-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.profile-actions button{border:1px solid #e3e3e6;background:#fff;border-radius:10px;padding:12px 5px;display:grid;place-items:center;gap:5px}.profile-actions .ui-icon{width:25px;height:25px}.profile-results{margin-top:14px}
.auth-tabs{display:flex;gap:8px;margin:10px 0}.auth-tabs button{flex:1;border:0;background:#f1f1f2;border-radius:8px;padding:10px}.auth-tabs button.active{background:#161823;color:#fff}
.form-stack{display:grid;gap:10px}.form-field{display:grid;gap:5px}.form-field label{font-size:12px;color:#777}.upload-drop{border:1px dashed #bfc0c5;border-radius:12px;padding:22px;text-align:center;background:#fafafa}.upload-drop input{max-width:100%}
.toast{position:fixed;z-index:199;left:50%;bottom:96px;transform:translateX(-50%);background:#161823;color:#fff;border-radius:10px;padding:10px 14px;font-size:13px;box-shadow:0 8px 30px #0004;white-space:nowrap}
.empty{padding:28px;text-align:center;color:#777}.feed-empty{padding-top:30vh;color:#bbb}

/* No-following suggestions */
.following-empty{height:100dvh;min-height:100%;scroll-snap-align:start;background:#fff;color:#161823;display:flex;align-items:center;justify-content:center;padding:78px 18px 96px;overflow:auto}
.following-empty-inner{width:min(760px,100%);text-align:center}.following-empty h2{font-size:22px;margin:0 0 7px}.following-empty p{color:#777;margin:0 0 24px}
.follow-suggestions{display:grid;grid-template-columns:repeat(3,minmax(82px,112px));justify-content:center;gap:26px 24px;margin:auto}.follow-suggestions.few{justify-content:center}
.follow-suggestion{width:112px;display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;transition:opacity .18s ease,transform .18s ease}.follow-suggestion.is-followed{opacity:.48;transform:scale(.96)}.follow-suggestion-avatar{position:relative;width:76px;height:76px}.follow-suggestion img{width:76px;height:76px;border-radius:50%;object-fit:cover;background:#f1f1f2;border:1px solid #e6e6e8}.follow-suggestion b{font-size:14px;margin-top:10px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.follow-suggestion small{font-size:11px;color:#888;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.follow-suggestion-btn{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);width:23px;height:23px;border:1px solid var(--pink);background:var(--pink);color:#fff;border-radius:50%;padding:0;display:grid;place-items:center;font-size:17px;line-height:1;font-weight:900}.follow-suggestion-btn.active{background:#20c56b;border-color:#20c56b;color:#fff;font-size:13px}

/* Detail/SEO pages */
.detail-body{overflow:auto;min-height:100dvh;background:#fff}.detail-head{height:64px;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid #eee}.brand{display:flex;align-items:center;gap:8px;color:#161823;text-decoration:none;font-weight:900}.brand img{width:34px;height:34px}.seo-detail{max-width:1100px;margin:30px auto;padding:0 20px;display:grid;grid-template-columns:minmax(300px,520px) 1fr;gap:34px}.seo-player video{width:100%;max-height:78dvh;background:#000;border-radius:10px}.seo-detail p{line-height:1.7;color:#555}.seo-meta{color:#888}.seo-tags a,.source-link{color:#146be8;text-decoration:none}

/* Fullscreen feed: keep original ratio, remove all normal UI */
.fullscreen-exit{display:none;position:fixed;z-index:220;right:12px;top:12px;width:38px;height:38px;border:0;border-radius:50%;background:#0005;color:#fff;place-items:center;opacity:.36;transition:opacity .15s}.fullscreen-exit:hover,.fullscreen-exit:focus{opacity:.95}.fullscreen-exit .ui-icon{width:23px;height:23px}
.feed-fullscreen body{background:#000}.feed-fullscreen .desktop-sidebar,.feed-fullscreen .desktop-top-actions,.feed-fullscreen .mobile-top,.feed-fullscreen .mobile-nav,.feed-fullscreen .video-overlay,.feed-fullscreen .video-meta,.feed-fullscreen .action-rail,.feed-fullscreen .play-state{display:none!important}.feed-fullscreen .fullscreen-exit{display:grid}.feed-fullscreen .feed{position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;width:100vw!important;height:100dvh!important;background:#000!important}.feed-fullscreen .video-card{width:100vw!important;height:100dvh!important;padding:0!important;background:#000!important;overflow:hidden!important}.feed-fullscreen .video-card video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border-radius:0!important;object-fit:contain!important;box-shadow:none!important;transform:none!important}
.feed-fullscreen .progress{
  position:absolute!important;
  z-index:230!important;
  left:max(12px,env(safe-area-inset-left))!important;
  right:max(12px,env(safe-area-inset-right))!important;
  bottom:max(8px,env(safe-area-inset-bottom))!important;
  width:auto!important;
  height:24px!important;
  margin:0!important;
  transform:none!important;
}
.feed-fullscreen .progress::before{
  left:0!important;
  right:0!important;
  height:3px!important;
  background:#ffffff66!important;
}
.feed-fullscreen .progress i{
  height:3px!important;
  max-width:100%!important;
}
.feed-fullscreen .seekbar{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:24px!important;
}


@media(min-width:900px){
  body{background:#fff;color:#161823}.app-shell{display:block;background:#fff}.mobile-top,.mobile-nav{display:none}
  .desktop-sidebar{display:flex;position:fixed;z-index:50;left:0;top:0;bottom:0;width:258px;padding:28px 20px 18px;border-right:1px solid #ededf0;background:#fff;flex-direction:column}
  .side-logo{height:50px;display:flex;align-items:center;gap:7px;color:#111;text-decoration:none;font-size:31px;letter-spacing:-1.2px}.side-logo img{width:40px;height:40px}
  .desktop-search{margin:22px 0 18px;width:100%;height:48px;border:1px solid #ececf0;background:#f5f5f7;border-radius:24px;color:#6f7077;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:0 17px;text-align:left;box-shadow:0 1px 0 rgba(22,24,35,.02) inset;transition:.18s ease}
  .desktop-search:hover{background:#efeff2;border-color:#e2e2e6;color:#4f5158}.desktop-search:focus-visible{outline:0;border-color:#c8c9cf;box-shadow:0 0 0 3px rgba(22,24,35,.07)}.desktop-search .ui-icon{width:21px;height:21px;flex:none}.desktop-search span:last-child{font-size:15.5px;line-height:1}
  .desktop-menu{display:grid;gap:6px}.desktop-menu button{height:52px;border:0;background:#fff;border-radius:9px;display:flex;align-items:center;gap:16px;padding:0 10px;color:#161823;text-align:left}.desktop-menu button .ui-icon{width:25px;height:25px;flex:none}.desktop-menu button b{font-size:18px;line-height:1;font-weight:750}.desktop-menu button.active,.desktop-menu button:hover{background:#f7f7f8}.desktop-menu button.active{color:var(--pink)}
  .desktop-copyright{margin-top:auto;padding:16px 10px 4px;border-top:1px solid #ededf0;color:#8a8b91;font-size:13px}
  .desktop-top-actions{display:flex;position:fixed;z-index:45;right:26px;top:22px;align-items:center;gap:12px}.desktop-top-actions .bare-icon{width:38px;height:38px;color:#161823}.desktop-top-actions .ui-icon{width:24px;height:24px}.top-login{height:40px;padding:0 26px;border:0;border-radius:6px;background:var(--pink);color:#fff;font-weight:800}
  .feed{position:fixed;left:258px;right:0;top:0;bottom:0;height:100dvh;background:#fff;scroll-padding:16px}
  .video-card{height:100dvh;background:#fff;overflow:visible;display:flex;align-items:center;justify-content:center;padding:16px 180px 16px 48px}
  .video-card video{position:relative;inset:auto;width:min(31vw,445px);height:calc(100dvh - 32px);max-height:820px;border-radius:10px;object-fit:cover;background:#000;box-shadow:0 1px 2px #0001}
  .video-overlay{left:50%;top:16px;bottom:16px;width:min(31vw,445px);height:auto;right:auto;transform:translateX(calc(-50% - 66px));border-radius:10px;background:linear-gradient(transparent 58%,rgba(0,0,0,.68) 100%)}
  .video-meta{left:50%;right:auto;width:min(31vw,445px);bottom:34px;padding:0 18px;transform:translateX(calc(-50% - 66px));color:#fff}.creator{font-size:16px}.video-title{font-size:16px}.video-summary{font-size:14px}
  .action-rail{right:auto;left:calc(50% + min(15.5vw,222px) - 43px);bottom:29px;color:#161823;gap:6px}.action{width:64px;min-height:49px;color:#161823;text-shadow:none}.action .bubble{width:50px;height:39px;border-radius:50%;background:#f1f1f2}.action .bubble .ui-icon{width:25px;height:25px;filter:none}.action small{color:#444;font-size:11px;text-shadow:none}.action.creator-action{margin-bottom:5px}.action.creator-action .bubble{background:#fff;border:1px solid #ddd;width:52px;height:52px}.action.creator-action img{width:48px;height:48px}.action.creator-action .follow-dot{bottom:-7px;left:15px;color:#fff}
  .play-state{left:50%;top:50%;transform:translate(calc(-50% - 66px),-50%);background:#0008;color:#fff}.progress{left:50%;right:auto;width:min(31vw,445px);bottom:16px;transform:translateX(calc(-50% - 66px));height:3px;border-radius:3px;background:#ffffff55}.progress i{background:var(--pink)}
  .drawer-panel{left:auto;right:0;top:0;bottom:0;width:min(540px,44vw);max-height:none;border-radius:0;padding:12px 20px;box-shadow:-15px 0 50px #0002}.drawer-head{top:-12px;margin-left:-20px;margin-right:-20px;width:calc(100% + 40px)}.drawer[data-kind="search"] .drawer-panel{left:auto;right:0;width:min(580px,48vw);padding:12px 20px}.drawer[data-kind="search"] .drawer-head{top:-12px;margin-left:-20px;margin-right:-20px;width:calc(100% + 40px);height:var(--overlay-head);padding-top:0}.drawer[data-kind="search"] .drawer-head>.bare-icon{top:50%}
  .toast{bottom:30px}.profile-actions{grid-template-columns:repeat(4,1fr)}
  .following-empty{padding:70px 40px}.following-discovery .following-empty-inner{width:min(720px,100%)}.follow-suggestion{width:112px}.follow-suggestion-avatar,.follow-suggestion img{width:82px;height:82px}
}
@media(min-width:1280px){.video-card{padding-right:180px}}
@media(max-width:899px) and (orientation:landscape){.mobile-nav{height:56px;--mobile-bottom:56px}.video-meta{bottom:70px}.action-rail{bottom:62px}}
@media(max-width:680px){.seo-detail{grid-template-columns:1fr;margin-top:16px}.result-row{grid-template-columns:82px minmax(0,1fr) auto}.result-row>img{width:82px;height:64px}.result-download span{display:none}.result-download{padding:9px}.follow-suggestions{grid-template-columns:repeat(3,minmax(74px,92px));gap:22px 12px}.follow-suggestion{width:92px}.follow-suggestion-avatar,.follow-suggestion img{width:68px;height:68px}}
@media(max-height:690px) and (max-width:899px){.action-rail{gap:3px}.action{min-height:42px}.action .bubble{height:34px}.action .bubble .ui-icon{width:25px;height:25px}.action.creator-action .bubble{width:42px;height:42px}.action.creator-action img{width:38px;height:38px}.action.creator-action .follow-dot{left:10px}.video-meta{right:68px}}



/* V1.4.7 关注列表管理 */
.following-manage-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #eee}
.following-manage-main{display:flex;align-items:center;gap:10px;min-width:0;color:#161823;text-decoration:none}
.following-manage-main img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#f1f1f2;border:1px solid #e6e6e8;flex:0 0 auto}
.following-manage-main span{display:grid;min-width:0}.following-manage-main b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.following-manage-main small{font-size:12px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.following-manage-actions{display:flex;gap:6px;align-items:center}.following-manage-actions a,.following-manage-actions button{border-radius:7px;padding:7px 9px;font-size:12px;text-decoration:none;white-space:nowrap}
.following-manage-actions .secondary{border:1px solid #ddd;color:#161823;background:#fff}.danger-lite{border:1px solid #ff4d67;background:#fff;color:#fe2c55}
@media(max-width:520px){.following-manage-row{grid-template-columns:1fr}.following-manage-actions{justify-content:flex-end}.following-manage-main img{width:44px;height:44px}}


/* V1.4.12 Mobile action rail clearance
   整列上移约一个操作按钮距离：47px 按钮 + 7px 间距 = 54px。
   进度条仍停留在底部导航上方，两者保持独立，不发生遮挡。 */
@media(max-width:899px){
  .action-rail{
    bottom:calc(var(--mobile-bottom) + 66px + var(--safe-bottom))!important;
  }
}
@media(max-width:899px) and (orientation:landscape){
  .action-rail{
    bottom:calc(56px + 66px + var(--safe-bottom))!important;
  }
}


/* V1.4.14 PC 视频信息区取消底部灰黑渐变 */
@media(min-width:900px){
  .video-overlay{background:none!important}
}

/* 兼容既有全屏测试，同时使用新版 36px 可拖动进度条 */
.feed-fullscreen .progress{display:flex!important}
.feed-fullscreen .progress{
  position:fixed!important;
  z-index:260!important;
  left:max(14px,env(safe-area-inset-left))!important;
  right:max(14px,env(safe-area-inset-right))!important;
  bottom:max(10px,env(safe-area-inset-bottom))!important;
  width:auto!important;
  height:36px!important;
  margin:0!important;
  transform:none!important;
  align-items:center!important;
  pointer-events:auto!important;
  touch-action:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.feed-fullscreen .progress::before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:50%!important;
  height:4px!important;
  transform:translateY(-50%)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.36)!important;
  pointer-events:none!important;
}
.feed-fullscreen .progress i{
  position:absolute!important;
  left:0!important;
  top:50%!important;
  height:4px!important;
  transform:translateY(-50%)!important;
  border-radius:999px!important;
  background:#fff!important;
  pointer-events:none!important;
  max-width:100%!important;
}
.feed-fullscreen .seekbar{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  width:100%!important;
  height:36px!important;
  margin:0!important;
  opacity:0!important;
  cursor:pointer!important;
  pointer-events:none!important;
  touch-action:none!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}

/* 全屏暂停时仍显示中央播放按钮 */
.feed-fullscreen .play-state{
  display:grid!important;
  position:fixed!important;
  z-index:250!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  pointer-events:none!important;
}
.feed-fullscreen .video-card:not(.paused) .play-state{opacity:0!important}
.feed-fullscreen .video-card.paused .play-state{opacity:1!important}


/* V1.4.15 fullscreen seek handle */
.feed-fullscreen .progress i::after{
  content:"";
  position:absolute;
  right:-6px;
  top:50%;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#fff;
  transform:translateY(-50%);
  box-shadow:0 1px 4px rgba(0,0,0,.35);
}
@media(max-width:899px){
  .progress{pointer-events:auto!important;touch-action:none!important}
}


/* V1.4.18 Fullscreen current-card isolation */

/* 非当前视频的全屏进度条全部隐藏，避免多条 fixed 进度条叠在一起 */
.feed-fullscreen .video-card:not(.is-current) .progress{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

/* 只有当前视频显示唯一进度条 */
.feed-fullscreen .video-card.is-current .progress{
  display:flex!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

/* 全屏时默认隐藏所有播放状态图标 */
.feed-fullscreen .play-state{
  display:none!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* 只有当前视频真正暂停时才显示中央播放按钮 */
.feed-fullscreen .video-card.is-current.paused .play-state{
  display:grid!important;
  opacity:1!important;
  position:fixed!important;
  z-index:250!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
}

/* 当前视频播放中强制不显示播放按钮 */
.feed-fullscreen .video-card.is-current:not(.paused) .play-state{
  display:none!important;
  opacity:0!important;
}

/* 非当前视频不显示拖动圆点 */
.feed-fullscreen .video-card:not(.is-current) .progress i::after{
  display:none!important;
}

/* 当前视频只显示一个拖动圆点 */
.feed-fullscreen .video-card.is-current .progress i::after{
  display:block!important;
}

/* V1.4.26 PC: 播放按钮严格按视频中心定位；账号信息与视频左/下边缘保持约18px等距。 */
@media(min-width:900px){.video-meta .creator{margin-left:0}.follow-suggestion-avatar{border-radius:50%;overflow:visible}.follow-suggestion img{display:block;border-radius:50%}}

.help-feedback-form textarea{min-height:140px;resize:vertical}.help-feedback-form .primary{min-height:44px}
@media(max-width:420px){.profile-actions{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.profile-actions button{padding:10px 2px;font-size:12px}}

/* V1.4.33 creator profile + private messages */
.creator-profile-link{pointer-events:auto;appearance:none;border:0;background:transparent;color:inherit;padding:0;margin:0;font:inherit;cursor:pointer;text-align:left}.creator-profile-link:hover{text-decoration:underline}
.creator-profile-page{max-width:900px;margin:26px auto;padding:0 20px 40px}.creator-profile-head{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:20px 0 24px;border-bottom:1px solid #eee;margin-bottom:20px}.creator-profile-avatar{width:92px;height:92px;border-radius:50%;object-fit:cover;background:#f1f1f2}.creator-profile-copy h1{margin:0 0 4px;font-size:26px}.creator-profile-copy p{margin:0 0 8px;color:#777}.creator-profile-bio{white-space:pre-wrap;line-height:1.6;color:#444}.creator-message-btn{border:0;border-radius:999px;padding:11px 18px;background:#111;color:#fff;font-weight:700;cursor:pointer}.creator-message-btn:hover{opacity:.88}.creator-profile-section-title{display:flex;align-items:center;justify-content:space-between;margin:8px 0 12px}.creator-profile-section-title h2{font-size:18px;margin:0}.creator-profile-section-title span{color:#888;font-size:13px}.private-message-dialog{width:min(520px,calc(100vw - 28px));border:0;border-radius:16px;padding:0;box-shadow:0 20px 70px rgba(0,0,0,.22)}.private-message-dialog::backdrop{background:rgba(0,0,0,.48)}.private-message-form{padding:18px}.private-message-head{position:relative;min-height:var(--overlay-head);display:flex;align-items:center;justify-content:center;margin-bottom:12px}.private-message-head b{display:block;width:100%;padding:0 36px;text-align:center;font-size:var(--overlay-title-size);line-height:1.2;font-weight:800;letter-spacing:-.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.private-message-head button{position:absolute;right:0;top:50%;width:32px;height:32px;transform:translateY(-50%);display:grid;place-items:center;border:0;background:transparent;font-size:26px;line-height:1;cursor:pointer}.private-message-form textarea{width:100%;min-height:140px;border:1px solid #ddd;border-radius:12px;padding:12px;resize:vertical;font:inherit;box-sizing:border-box}.private-message-status{min-height:22px;font-size:13px;color:#666;margin-top:6px}.private-message-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.message-list{display:grid;gap:10px}.message-row{border:1px solid #e7e7ea;border-radius:12px;padding:12px;background:#fff}.message-row.received{background:#fafafa}.message-meta{display:flex;justify-content:space-between;gap:10px;align-items:center}.message-meta small{color:#888}.message-body{white-space:pre-wrap;line-height:1.55;margin:8px 0}.message-direction{font-size:11px;color:#888}.result-main{min-width:0;flex:1}.result-creator-link{font-size:13px;color:#555;text-decoration:none}.result-creator-link:hover{text-decoration:underline}
@media(max-width:640px){.creator-profile-page{padding:0 14px 30px;margin-top:16px}.creator-profile-head{grid-template-columns:auto 1fr;gap:12px}.creator-profile-avatar{width:72px;height:72px}.creator-profile-copy h1{font-size:21px}.creator-message-btn{grid-column:1/-1;width:100%}.message-meta{align-items:flex-start;flex-direction:column;gap:3px}}

.video-detail-creator{color:inherit;text-decoration:none}.video-detail-creator:hover{text-decoration:underline}


/* V1.4.43 mobile feed horizontal navigation */
@keyframes ones-following-edge-bounce{
  0%{transform:translateX(0)}
  38%{transform:translateX(-14px)}
  68%{transform:translateX(5px)}
  100%{transform:translateX(0)}
}
@media(max-width:899px){
  .app-shell.following-edge-bounce .feed,
  .app-shell.following-edge-bounce .mobile-top,
  .app-shell.following-edge-bounce .mobile-nav{
    animation:ones-following-edge-bounce .30s cubic-bezier(.2,.75,.25,1);
  }
}
@media(prefers-reduced-motion:reduce){
  .app-shell.following-edge-bounce .feed,
  .app-shell.following-edge-bounce .mobile-top,
  .app-shell.following-edge-bounce .mobile-nav{animation-duration:.01ms}
}

/* V1.4.46 unified overlay title system: all drawer/auth/search titles share the same metric. */

/* V1.4.47 overlay close alignment + comment title rollback.
   Drawer close buttons align with the content/input right edge instead of the outer panel edge.
   Comment title intentionally keeps the original left-aligned treatment. */
.drawer-head h2{padding-left:52px;padding-right:52px}
.drawer-head>.bare-icon{right:16px}
.drawer[data-kind="search"] .drawer-head>.bare-icon{right:15px}
.drawer[data-kind="comments"] .drawer-head{justify-content:flex-start}
.drawer[data-kind="comments"] .drawer-head h2{text-align:left;padding-left:16px;padding-right:56px}
@media(min-width:900px){
  .drawer-head>.bare-icon{right:20px}
  .drawer[data-kind="search"] .drawer-head>.bare-icon{right:20px}
  .drawer[data-kind="comments"] .drawer-head h2{padding-left:20px;padding-right:60px}
}

