#tiktok-mobile-shell {display:none}
@media (max-width:760px) {
  body.tiktok-view-active {--tiktok-mobile-top:calc(52px + env(safe-area-inset-top,0px));--tiktok-mobile-bottom:calc(58px + env(safe-area-inset-bottom,0px));--tiktok-feed-height:calc(var(--tt-mobile-vh,100dvh) - var(--tiktok-mobile-top) - var(--tiktok-mobile-bottom));background:#000;color:#fff;overflow:hidden;overscroll-behavior:none}
  body.tiktok-view-active > .topbar,body.tiktok-view-active > #creator-sidebar,body.tiktok-view-active > .mobile-nav,body.tiktok-view-active > .watch-join-strip {display:none!important}
  body.tiktok-view-active #main {position:static;width:100%;min-height:0;height:0;margin:0;padding:0!important}
  body.tiktok-view-active #main > :not(#tiktok-view) {display:none!important}
  body.tiktok-view-active #tiktok-view {position:fixed!important;inset:auto 0 auto 0;top:calc(var(--tt-mobile-vtop,0px) + var(--tiktok-mobile-top));width:100%;height:var(--tiktok-feed-height);min-height:0;margin:0;padding:0;overflow:hidden;background:#000;scroll-margin:0}
  body.tiktok-view-active.tiktok-live-room-active {--tiktok-mobile-top:0px;--tiktok-mobile-bottom:0px}
  body.tiktok-view-active.tiktok-live-room-active #tiktok-view {--tiktok-feed-height:var(--tt-mobile-vh,100dvh)}
  body.tiktok-live-room-active #tiktok-mobile-shell {display:none!important}
  body.tiktok-view-active #tiktok-mobile-shell:not([hidden]) {display:block;color:#fff;font:14px/1.4 Arial,'Segoe UI',sans-serif}
  #tiktok-mobile-shell [hidden] {display:none!important}
  #tiktok-mobile-shell :is(button,input,a) {-webkit-tap-highlight-color:transparent;font:inherit}
  #tiktok-mobile-shell button {color:inherit;border:0;background:none;cursor:pointer}
  #tiktok-mobile-shell a {color:inherit;text-decoration:none}
  #tiktok-mobile-shell svg {display:block;flex:none;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  #tiktok-mobile-shell .tt-mobile-header {position:fixed;z-index:140;left:0;right:0;top:var(--tt-mobile-vtop,0px);height:var(--tiktok-mobile-top);padding:env(safe-area-inset-top,0px) 8px 0;display:flex;align-items:center;justify-content:space-between;gap:4px;background:#000}
  #tiktok-mobile-shell .tt-mobile-platform {display:flex;align-items:center;gap:2px;min-width:44px;min-height:44px;padding:0 4px}
  #tiktok-mobile-shell .tt-mobile-platform b {color:var(--yellow,#ffd000);font-size:13px;font-weight:900}
  #tiktok-mobile-shell .tt-mobile-tabs {display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}
  #tiktok-mobile-shell .tt-mobile-tabs button {position:relative;min-height:44px;padding:0 2px;color:#bdbdbf;font-size:14px;font-weight:700;white-space:nowrap}
  #tiktok-mobile-shell .tt-mobile-tabs [aria-current='page'] {color:#fff}
  #tiktok-mobile-shell .tt-mobile-tabs [aria-current='page']::after {content:'';position:absolute;left:25%;right:25%;bottom:3px;height:3px;background:#fff;border-radius:2px}
  #tiktok-mobile-shell .tt-mobile-icon {display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;padding:8px}
  #tiktok-mobile-shell .tt-mobile-bottom {position:fixed;z-index:140;left:0;right:0;top:calc(var(--tt-mobile-vtop,0px) + var(--tt-mobile-vh,100dvh) - var(--tiktok-mobile-bottom));height:var(--tiktok-mobile-bottom);padding:3px 12px env(safe-area-inset-bottom,0px);display:flex;justify-content:space-around;align-items:center;background:#080808;border-top:1px solid #ffffff15}
  #tiktok-mobile-shell .tt-mobile-bottom > :is(a,button) {display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;color:#a5a5a8;font-size:10px;font-weight:600}
  #tiktok-mobile-shell .tt-mobile-bottom [aria-current='page'] {color:#fff}
  #tiktok-mobile-shell .tt-mobile-bottom [data-mobile-home][aria-current='page'] svg {fill:currentColor;stroke:#fff}
  #tiktok-mobile-shell .tt-mobile-avatar {display:grid;place-items:center;width:25px;height:25px;border-radius:50%;overflow:hidden}
  #tiktok-mobile-shell .tt-mobile-avatar img {width:100%;height:100%;object-fit:cover}
  #tiktok-mobile-shell .tt-mobile-panel-wrap {position:fixed;z-index:250;left:0;right:0;top:var(--tt-mobile-vtop,0px);height:var(--tt-mobile-vh,100dvh)}
  #tiktok-mobile-shell .tt-mobile-backdrop {position:absolute;inset:0;width:100%;height:100%;background:#0009}
  #tiktok-mobile-shell .tt-mobile-panel {position:absolute;left:0;right:0;background:#111113;color:#fff;max-height:100%;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px calc(20px + env(safe-area-inset-bottom,0px))}
  #tiktok-mobile-shell .tt-mobile-panel header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
  #tiktok-mobile-shell .tt-mobile-panel h2 {margin:0;font-size:19px;font-weight:700}
  #tiktok-mobile-shell .tt-mobile-platform-sheet {bottom:0;border-radius:18px 18px 0 0}
  #tiktok-mobile-shell .tt-mobile-providers {display:grid;gap:4px}
  #tiktok-mobile-shell .tt-mobile-providers button {padding:14px 12px;border-radius:8px;text-align:left;font-weight:600;min-height:48px}
  #tiktok-mobile-shell .tt-mobile-providers [aria-pressed='true'] {background:#29292c;color:var(--yellow,#ffd000)}
  #tiktok-mobile-shell .tt-mobile-site-home {display:flex;align-items:center;gap:12px;min-height:52px;margin-top:12px;border-top:1px solid #333;color:#bfbfc4}
  #tiktok-mobile-shell .tt-mobile-search-panel {inset:0;padding-top:calc(8px + env(safe-area-inset-top,0px));background:#000}
  #tiktok-mobile-shell .tt-mobile-search-field {display:flex;align-items:center;border-radius:24px;background:#202022;padding-left:16px}
  #tiktok-mobile-shell .tt-mobile-search-field input {flex:1;min-width:0;height:46px;border:0;background:none;color:#fff;font-size:16px}
  #tiktok-mobile-shell .tt-mobile-clear {min-height:44px;padding:8px 4px;color:#aaa;text-decoration:underline;font-size:12px}
  #tiktok-mobile-shell .tt-mobile-search-results h3 {font-size:14px;margin:20px 0 8px;color:#aaa}
  #tiktok-mobile-shell .tt-mobile-search-results button {display:block;width:100%;min-height:48px;padding:12px 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
  #tiktok-mobile-shell .tt-mobile-search-results p {margin-top:24px;color:#aaa;line-height:1.6}
}
@media (max-width:360px) {#tiktok-mobile-shell .tt-mobile-tabs {gap:7px}#tiktok-mobile-shell .tt-mobile-tabs button {font-size:12px}}
