/* =========================================================================
   Social Tycoon — TikTok-style consumer theme ("Discover", dark)
   Page #121212 · surfaces #1E1E1E / #2F2F2F · red #FE2C55 · cyan #25F4EE
   ========================================================================= */
:root{
  color-scheme:dark;
  --tt-bg:#121212; --tt-black:#000; --tt-surface:#1E1E1E; --tt-surface-2:#2F2F2F; --tt-surface-3:#3A3A3A;
  --tt-hover:rgba(255,255,255,.06); --tt-hover-2:rgba(255,255,255,.1); --tt-glass:rgba(255,255,255,.12);
  --tt-text:rgba(255,255,255,.9); --tt-white:#fff; --tt-muted:rgba(255,255,255,.5); --tt-muted-2:rgba(255,255,255,.75);
  --tt-border:rgba(255,255,255,.12); --tt-border-2:rgba(255,255,255,.2);
  /* light-able tokens (today's dark values; the light palette re-points them) */
  --tt-ink:#fff; --tt-on-ink:#000; --tt-menu-bg:#252525; --tt-row-hover:#242424; --tt-sel-bg:#221a1c; --tt-quick-hover:#1a1a1a;
  --tt-detail-bg:#000; --tt-bar-bg:#000; --tt-mtop-bg:rgba(18,18,18,.94); --tt-line-soft:rgba(255,255,255,.06); --tt-line-2:rgba(255,255,255,.08);
  --tt-tab-dim:rgba(255,255,255,.62); --tt-glass-hover:rgba(255,255,255,.18); --tt-scroll:rgba(255,255,255,.18);
  --tt-danger-text:#ff6b86; --tt-alert-text:#ff8fa5; --tt-cyan-text:var(--tt-cyan); --tt-yellow-text:var(--tt-yellow); --tt-red-text:var(--tt-red);
  --tt-red:#FE2C55; --tt-red-2:#E5244B; --tt-cyan:#25F4EE; --tt-yellow:#FACE15; --tt-blue:#20D5EC;
  --tt-side:240px; --tt-tabbar:56px; --tt-radius:8px;
  --tt-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --tt-shadow:0 12px 32px rgba(0,0,0,.45);

  /* shared views (settings, dashboard, ads, followers…) */
  --st-bg:var(--tt-bg); --st-surface:var(--tt-surface); --st-surface-2:var(--tt-surface-2); --st-hover:var(--tt-hover);
  --st-text:var(--tt-text); --st-muted:var(--tt-muted); --st-border:var(--tt-border);
  --st-primary:var(--tt-red); --st-on-primary:#fff; --st-danger:var(--tt-red); --st-success:var(--tt-cyan);
  --st-radius:8px; --st-radius-lg:12px; --st-pill:999px; --st-font:var(--tt-font); --st-shadow:none; --st-top:0px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{background:var(--tt-bg)}
body{background:var(--tt-bg);color:var(--tt-text);font:400 15px/1.4 var(--tt-font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  -webkit-tap-highlight-color:transparent;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%}
button{font:inherit;color:inherit;cursor:pointer}
input,select,textarea{font:inherit;color:inherit}
h1,h2,h3,h4,p{margin:0}
::selection{background:rgba(254,44,85,.35)}
:focus-visible{outline:2px solid var(--tt-focus,var(--tt-cyan));outline-offset:2px}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:var(--tt-scroll);border-radius:8px}
::-webkit-scrollbar-track{background:transparent}

/* ---------- Icons & utilities ---------- */
svg{flex:none}
.tt-ic{width:24px;height:24px}
.tt-ic-xs{width:12px;height:12px}
.tt-ic-sm{width:16px;height:16px}
.tt-ic-md{width:20px;height:20px}
.tt-ic-lg{width:32px;height:32px}
.tt-ic-xl{width:48px;height:48px}
/* icon() utility classes used by the shared views */
.w-3{width:.75rem}.h-3{height:.75rem}.w-4{width:1rem}.h-4{height:1rem}.w-5{width:1.25rem}.h-5{height:1.25rem}
.w-6{width:1.5rem}.h-6{height:1.5rem}.w-8{width:2rem}.h-8{height:2rem}.w-10{width:2.5rem}.h-10{height:2.5rem}
.tt-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tt-skip{position:fixed;left:12px;top:-60px;z-index:200;background:var(--tt-red);color:#fff;padding:10px 16px;border-radius:8px;font-weight:700}
.tt-skip:focus{top:12px}
.tt-muted{color:var(--tt-muted)}
.tt-link{display:inline-flex;align-items:center;gap:2px;color:var(--tt-muted-2);font-weight:600;font-size:14px}
.tt-link:hover{color:var(--tt-ink)}
.tt-tag{font-weight:700;color:var(--tt-ink)}
.tt-tag:hover{text-decoration:underline}
.tt-av{border-radius:50%;object-fit:cover;background:var(--tt-surface-2);flex:none}
.tt-verified{flex:none;margin-left:4px;vertical-align:-2px}
.tt-m-only{display:none!important}
.tt-l-short{display:none}
.tt-badge{position:absolute;top:-4px;right:-8px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--tt-red);color:#fff;
  font:700 11px/18px var(--tt-font);text-align:center;border:2px solid var(--tt-bg);box-sizing:content-box}

/* ---------- Logo: the initial as a glitch "note" + the network name ---------- */
.tt-logo{display:inline-flex;align-items:center;gap:8px;color:var(--tt-ink);line-height:1}
.tt-logo-mark{width:36px;height:36px;overflow:visible;filter:drop-shadow(-1.6px -1.6px 0 var(--tt-cyan)) drop-shadow(1.6px 1.6px 0 var(--tt-red))}
.tt-logo-mark path{stroke:var(--tt-ink)}
.tt-logo-mark text{fill:var(--tt-ink);font:900 30px/1 var(--tt-font)}
.tt-logo-name{font:800 23px/1 var(--tt-font);letter-spacing:-.035em;white-space:nowrap}
.tt-logo-sm .tt-logo-mark{width:26px;height:26px;filter:drop-shadow(-1px -1px 0 var(--tt-cyan)) drop-shadow(1px 1px 0 var(--tt-red))}

/* ---------- Buttons & fields ---------- */
.tt-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 18px;border:0;border-radius:8px;
  font:600 16px/1 var(--tt-font);white-space:nowrap;text-decoration:none;transition:background .15s,filter .15s,transform .1s;cursor:pointer}
.tt-btn:active{transform:scale(.98)}
.tt-btn-red{background:var(--tt-red);color:#fff}
.tt-btn-red:hover{background:var(--tt-red-2)}
.tt-btn-grey{background:var(--tt-surface-2);color:var(--tt-text)}
.tt-btn-grey:hover{background:var(--tt-surface-3)}
.tt-btn-sm{height:32px;padding:0 14px;font-size:14px;border-radius:6px}
.tt-btn-lg{height:48px;font-size:16px}
.tt-btn-wide{min-width:164px}
.tt-btn-block{width:100%}
.tt-btn-icon{width:40px;padding:0}
.tt-btn:disabled,.tt-btn[disabled]{opacity:.35;cursor:not-allowed;transform:none}
.tt-btn .tt-ic-sm{margin-left:-2px}
.tt-follow-wrap{display:inline-flex}
.tt-follow-wrap .inline-form,.tt-follow-wrap form{display:inline-flex}
.tt-icon-btn{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;border:0;background:transparent;color:var(--tt-text)}
.tt-icon-btn:hover{background:var(--tt-hover-2)}
.tt-input,.tt-select,.tt-textarea{width:100%;background:var(--tt-surface-2);border:1px solid transparent;border-radius:8px;color:var(--tt-ink);font:400 16px/1.4 var(--tt-font);
  padding:0 14px;height:48px;outline:none;transition:border-color .15s}
.tt-textarea{height:auto;min-height:120px;padding:12px 14px;resize:vertical}
.tt-input::placeholder,.tt-textarea::placeholder{color:var(--tt-muted)}
.tt-input:focus,.tt-select:focus,.tt-textarea:focus{border-color:var(--tt-border-2)}

/* ---------- Sidebar (desktop) ---------- */
.tt-side{position:fixed;inset:0 auto 0 0;z-index:40;width:var(--tt-side);display:flex;flex-direction:column;padding:18px 12px 16px 16px;
  overflow-y:auto;scrollbar-width:none;background:var(--tt-bg)}
.tt-side::-webkit-scrollbar{display:none}
.tt-side>*{flex-shrink:0}
.tt-brand{display:flex;align-items:center;padding:2px 8px 18px}
.tt-search{display:flex;align-items:center;gap:8px;height:40px;margin:0 0 12px;padding:0 14px;border-radius:999px;background:var(--tt-surface-2);color:var(--tt-muted);
  border:1px solid transparent;transition:border-color .15s}
.tt-search:focus-within{border-color:var(--tt-border-2)}
.tt-search input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;color:var(--tt-ink);font-size:15px}
.tt-search input::placeholder{color:var(--tt-muted)}
.tt-search input::-webkit-search-cancel-button{filter:invert(1)}
.tt-nav{display:flex;flex-direction:column;gap:2px}
.tt-nav .tt-nav-search{display:none}
.tt-nav-item{position:relative;display:flex;align-items:center;gap:10px;width:100%;height:48px;padding:0 8px;border:0;border-radius:8px;background:none;
  color:var(--tt-text);font:700 18px/1 var(--tt-font);text-align:left;transition:background .15s}
.tt-nav-item:hover{background:var(--tt-hover)}
.tt-nav-item.is-active{color:var(--tt-red)}
.tt-nav-ic{position:relative;display:grid;place-items:center;width:32px;height:32px;flex:none}
.tt-nav-ic .tt-ic{width:26px;height:26px}
.tt-nav-ic .tt-badge{top:-7px;right:-13px;min-width:14px;height:16px;padding:0 4px;font-size:10px;line-height:16px}
.tt-nav-av{width:30px;height:30px}
.tt-nav-item.is-active .tt-nav-av{box-shadow:0 0 0 2px var(--tt-red)}
.tt-nav-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-more{position:relative}
.tt-side-sec{margin:14px 0 0;padding:16px 8px 4px;border-top:1px solid var(--tt-border)}
.tt-side-h{font:600 14px/1.2 var(--tt-font);color:var(--tt-muted);margin:0 0 8px}
.tt-side-user{display:flex;align-items:center;gap:10px;padding:6px 6px;margin:0 -6px;border-radius:8px}
.tt-side-user:hover{background:var(--tt-hover)}
.tt-side-user-main{display:flex;flex-direction:column;min-width:0}
.tt-side-user-main strong{display:flex;align-items:center;font:700 15px/1.25 var(--tt-font);color:var(--tt-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-side-user-main small{font-size:12px;color:var(--tt-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-side-more{display:inline-block;margin:6px 0 0;font:600 14px var(--tt-font);color:var(--tt-red-text)}
.tt-side-foot{margin-top:auto;padding:18px 8px 6px;border-top:1px solid var(--tt-border);color:var(--tt-muted);font:600 12px/1.6 var(--tt-font)}
.tt-side-foot div{display:flex;flex-wrap:wrap;gap:4px 10px;margin-bottom:6px}
.tt-side-foot small{font-size:12px;font-weight:400}

/* Menus (sidebar More, profile …) */
.tt-menu-wrap{position:relative;display:inline-flex}
.tt-menu{position:absolute;z-index:80;min-width:230px;padding:8px 0;border-radius:10px;background:var(--tt-menu-bg);border:1px solid var(--tt-border);box-shadow:var(--tt-shadow)}
.tt-menu-side{position:fixed;left:16px;bottom:80px;width:max-content;min-width:212px;max-width:320px;max-height:calc(100vh - 16px);overflow-y:auto}
.tt-menu-right{right:0;top:calc(100% + 8px);width:max-content;max-width:calc(100vw - 24px)}
.tt-menu-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 18px;border:0;background:none;color:var(--tt-text);font:600 15px/1.2 var(--tt-font);text-align:left}
.tt-menu-item:hover{background:var(--tt-hover)}
.tt-menu-form{margin:0;display:block;border-top:1px solid var(--tt-border);padding-top:6px;margin-top:6px}
/* "More" → Language: a second panel with the languages (tiktok.js flips .is-lang) */
.tt-menu-grow{flex:1;min-width:0}
.tt-menu-val{color:var(--tt-muted);font:500 14px/1.2 var(--tt-font);white-space:nowrap}
.tt-menu-item>.tt-ic-sm{color:var(--tt-muted);margin-right:-4px}
.tt-menu-lang{display:none}
.tt-menu.is-lang .tt-menu-main{display:none}
.tt-menu.is-lang .tt-menu-lang{display:block}
.tt-menu-back{display:flex;align-items:center;gap:10px;width:100%;padding:6px 14px 12px;margin:0 0 6px;border:0;border-bottom:1px solid var(--tt-border);
  background:none;color:var(--tt-ink);font:700 16px/1.2 var(--tt-font);text-align:left}
.tt-menu-back:hover{color:var(--tt-muted-2)}
.tt-lang-opt{justify-content:space-between;min-width:200px}
.tt-lang-opt.is-active{color:var(--tt-ink)}
.tt-lang-opt.is-active::after{content:"";flex:none;width:6px;height:12px;margin:-4px 4px 0 12px;border:solid var(--tt-red);border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}

/* ---------- Main + page scaffolding ---------- */
.tt-main{margin-left:var(--tt-side);min-height:100vh;min-width:0}
.tt-page{max-width:1240px;margin:0 auto;padding:28px 36px 64px}
.tt-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}
.tt-page-title{font:800 26px/1.2 var(--tt-font);letter-spacing:-.02em;color:var(--tt-ink)}
.tt-sec{margin:0 0 28px}
.tt-sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.tt-sec-title{display:flex;align-items:center;gap:8px;font:700 20px/1.2 var(--tt-font);color:var(--tt-ink);margin:0 0 12px}
.tt-sec-head .tt-sec-title{margin:0}
.tt-grid-note{display:flex;align-items:center;gap:6px;color:var(--tt-muted);font-size:14px;margin:0 0 14px}
.tt-mtop,.tt-tabbar,.tt-feed-top,.tt-msearch,.tt-stage-m{display:none}
.tt-note-box{display:flex;align-items:center;gap:12px;padding:16px;border-radius:12px;background:var(--tt-surface);color:var(--tt-muted-2);margin:0 0 28px}

/* =========================================================================
   For You / Following feed — full-viewport snap scrolling
   ========================================================================= */
.tt-l-feed .tt-main{height:100vh;overflow:hidden}
.tt-feed{position:relative;height:100vh;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;outline:none}
.tt-feed::-webkit-scrollbar{display:none}
.tt-item{position:relative;height:100vh;display:flex;align-items:center;justify-content:center;padding:20px 96px 20px 0;scroll-snap-align:start;scroll-snap-stop:always}
.tt-item-inner{position:relative;display:flex;align-items:flex-end;gap:16px;height:100%;max-width:100%}
.tt-player{position:relative;height:100%;aspect-ratio:9/16;max-width:calc(100vw - var(--tt-side) - 200px);border-radius:16px;overflow:hidden;background:#000;flex:none;
  isolation:isolate;user-select:none}
.tt-player .tt-media{position:absolute;inset:0;width:100%;height:100%;z-index:1;background:transparent}
.tt-backdrop{position:absolute;inset:-48px;width:calc(100% + 96px);height:calc(100% + 96px);max-width:none;object-fit:cover;filter:blur(36px) brightness(.5) saturate(1.2);z-index:0}
.tt-textcard{position:absolute;inset:0;display:grid;place-items:center;padding:36px 28px 120px;z-index:1}
.tt-textcard p{font:800 26px/1.3 var(--tt-font);color:#fff;text-align:center;letter-spacing:-.01em;overflow-wrap:anywhere;text-shadow:0 2px 12px rgba(0,0,0,.2)}
.tt-player .st-heart-burst svg,.tt-stage .st-heart-burst svg{fill:var(--tt-red)}
.tt-player .st-heart-burst,.tt-stage .st-heart-burst{z-index:6;filter:drop-shadow(0 6px 18px rgba(0,0,0,.35))}

/* Info overlay */
.tt-info{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:96px 16px 16px;color:#fff;pointer-events:none;
  background:linear-gradient(to bottom,transparent,rgba(0,0,0,.2) 40%,rgba(0,0,0,.62));text-shadow:0 1px 1px rgba(0,0,0,.25)}
.tt-info a,.tt-info button{pointer-events:auto}
.tt-info-repost{display:inline-flex;align-items:center;gap:6px;margin:0 0 8px;padding:4px 10px 4px 8px;border-radius:6px;background:rgba(0,0,0,.35);
  font:600 13px/1.2 var(--tt-font);color:var(--tt-yellow)}
.tt-info-who{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;margin:0 0 4px}
.tt-info-user{font:700 16px/1.3 var(--tt-font);color:#fff}
.tt-info-user:hover{text-decoration:underline}
.tt-info-time{font-size:14px;color:rgba(255,255,255,.75)}
.tt-cap{font:400 15px/1.4 var(--tt-font);color:#fff;max-height:2.8em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tt-cap-text{white-space:pre-line;overflow-wrap:anywhere}
.tt-cap.is-open{max-height:40vh;overflow-y:auto;-webkit-line-clamp:unset;display:block;scrollbar-width:none}
.tt-cap-more{display:none;border:0;background:none;padding:2px 0 0;color:#fff;font:700 14px var(--tt-font)}
.tt-cap.can-more+.tt-cap-more,.tt-cap.is-open+.tt-cap-more{display:inline-block}
.tt-sound{display:flex;align-items:center;gap:6px;margin-top:8px;max-width:75%;font:600 14px/1.3 var(--tt-font);color:#fff}
.tt-marquee{overflow:hidden;white-space:nowrap;min-width:0;text-overflow:ellipsis}
.tt-marquee-in{display:inline-flex}
.tt-marquee.is-long{-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 88%,transparent)}
.tt-marquee.is-long .tt-marquee-in{padding-left:4px;animation:tt-marquee var(--tt-marquee-s,9s) linear infinite}
.tt-marquee.is-long .tt-marquee-in>span{padding-right:44px}
@keyframes tt-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* Video chrome */
.tt-mute{position:absolute;top:16px;right:16px;z-index:4;width:40px;height:40px;border:0;border-radius:50%;background:rgba(0,0,0,.32);color:#fff;
  display:grid;place-items:center;backdrop-filter:blur(6px);transition:background .15s}
.tt-mute:hover{background:rgba(0,0,0,.5)}
.tt-mute span{display:grid}
.tt-when-sound{display:none!important}
html[data-muted="0"] .tt-when-sound{display:grid!important}
html[data-muted="0"] .tt-when-muted{display:none!important}
.tt-paused{position:absolute;left:50%;top:50%;z-index:2;width:80px;height:80px;margin:-40px 0 0 -40px;display:grid;place-items:center;color:rgba(255,255,255,.88);
  opacity:0;transform:scale(1.25);transition:opacity .18s,transform .18s;pointer-events:none;filter:drop-shadow(0 4px 12px rgba(0,0,0,.35))}
.is-paused .tt-paused{opacity:1;transform:scale(1)}
.tt-progress{position:absolute;left:0;right:0;bottom:0;z-index:4;height:12px;cursor:pointer}
.tt-progress::before,.tt-progress i{content:"";position:absolute;left:0;bottom:0;height:3px;transition:height .15s}
.tt-progress::before{right:0;background:rgba(255,255,255,.22)}
.tt-progress i{width:0;background:rgba(255,255,255,.92);transition:width .25s linear,height .15s}
.tt-progress:hover::before,.tt-progress:hover i{height:5px}
.tt-stage .tt-progress{z-index:5}

/* Action rail */
.tt-rail{display:flex;flex-direction:column;align-items:center;gap:8px;width:56px;flex:none;padding-bottom:2px}
.tt-rail form{margin:0}
.tt-rail-av{position:relative;margin:0 0 14px}
.tt-rail-av .tt-av{width:48px;height:48px;border:1px solid var(--tt-border-2)}
.tt-follow-plus-form{position:absolute;left:50%;bottom:-11px;transform:translateX(-50%);margin:0}
.tt-follow-plus{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:0;padding:0;background:var(--tt-red);color:#fff;
  transition:transform .2s,background .2s,opacity .3s}
.tt-follow-plus:hover{transform:scale(1.12)}
.tt-follow-done{display:none}
.is-done .tt-follow-plus{background:#fff;color:var(--tt-red)}
.is-done .tt-follow-plus .tt-follow-done{display:block}
.is-done .tt-follow-plus svg:first-child{display:none}
.is-gone{opacity:0;transform:translateX(-50%) scale(.4);transition:opacity .3s,transform .3s}
.tt-act{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;border:0;background:none;color:var(--tt-text);text-decoration:none}
.tt-act-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--tt-glass);color:var(--tt-ink);transition:background .15s,transform .15s}
.tt-act:hover .tt-act-ic{background:var(--tt-glass-hover)}
.tt-act:active .tt-act-ic{transform:scale(.92)}
.tt-act-ic .tt-ic{width:24px;height:24px}
.tt-act strong{font:700 12px/1 var(--tt-font);color:var(--tt-muted-2);min-height:12px;white-space:nowrap}
.tt-act-like.is-on .tt-act-ic,.tt-pact-like.is-on .tt-pact-ic{color:var(--tt-red)}
.tt-act-fav.is-on .tt-act-ic,.tt-pact-fav.is-on .tt-pact-ic{color:var(--tt-yellow)}
.tt-act-share.is-on .tt-act-ic,.tt-pact-share.is-on .tt-pact-ic{color:var(--tt-cyan)}
.tt-act-like.is-on .tt-act-ic svg,.tt-pact-like.is-on .tt-pact-ic svg{animation:tt-pop .35s ease}
@keyframes tt-pop{0%{transform:scale(1)}40%{transform:scale(1.28)}100%{transform:scale(1)}}
.tt-disc{display:grid;place-items:center;width:48px;height:48px;margin-top:6px;border-radius:50%;
  background:radial-gradient(circle,#2a2a2a 0 27%,#111 28% 34%,#1d1d1d 35% 45%,#111 46% 56%,#1b1b1b 57% 70%,#0c0c0c 71%);
  box-shadow:0 0 0 1px rgba(255,255,255,.08);animation:tt-spin 5s linear infinite}
.tt-disc-in{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;overflow:hidden}
.tt-disc-in img,.tt-disc-in .tt-av{width:26px;height:26px;object-fit:cover;border-radius:50%}
.tt-item:not(.is-active) .tt-disc,.is-paused .tt-disc,.tt-item:not(.is-active) .tt-marquee-in,.is-paused .tt-marquee-in{animation-play-state:paused}
@keyframes tt-spin{to{transform:rotate(360deg)}}

/* Up / down arrows at the right edge */
.tt-feed-nav{position:fixed;right:28px;top:50%;z-index:20;display:flex;flex-direction:column;gap:14px;transform:translateY(-50%)}
.tt-feed-nav-btn{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:0;background:var(--tt-surface-2);color:var(--tt-ink);transition:background .15s,opacity .15s}
.tt-feed-nav-btn:hover{background:var(--tt-surface-3)}
.tt-feed-nav-btn:disabled{opacity:.3;cursor:default}
.tt-feed-more{display:flex;align-items:center;justify-content:center;gap:10px;height:80px;color:var(--tt-muted);font-weight:600}
.tt-spin{width:18px;height:18px;border-radius:50%;border:2px solid var(--tt-surface-3);border-top-color:var(--tt-red);animation:tt-spin .8s linear infinite}
.tt-feed-end{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;height:60vh;scroll-snap-align:end;color:var(--tt-muted);text-align:center;padding:0 24px}
.tt-feed-end strong{color:var(--tt-ink);font-size:20px}
.tt-feed-end .tt-ic-lg{color:var(--tt-cyan)}
.tt-feed-empty{min-height:100vh;padding:40px 96px 40px 24px;scroll-snap-align:start}

/* =========================================================================
   Grids & tiles
   ========================================================================= */
.tt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:20px 14px}
.tt-grid-meta{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:26px 16px}
.tt-grid-mini{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.tt-grid-more{grid-column:1/-1;justify-self:center;margin:8px 0}
.tt-cell{min-width:0}
.tt-tile{position:relative;display:block;aspect-ratio:3/4;border-radius:8px;overflow:hidden;background:#000;isolation:isolate}
.tt-thumb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.tt-tile:hover .tt-thumb{transform:scale(1.03)}
.tt-thumb-text{display:grid;place-items:center;padding:14px}
.tt-thumb-text>span{font:800 15px/1.3 var(--tt-font);color:#fff;text-align:center;overflow:hidden;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.tt-tile::after{content:"";position:absolute;left:0;right:0;bottom:0;height:42%;background:linear-gradient(transparent,rgba(0,0,0,.55));pointer-events:none;z-index:1}
.tt-tile-views{position:absolute;left:10px;bottom:9px;z-index:2;display:flex;align-items:center;gap:4px;font:700 14px/1 var(--tt-font);color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.4)}
.tt-hover-vid{z-index:0}
.tt-cell-meta{padding:10px 2px 0}
.tt-cell-cap{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:500 15px/1.35 var(--tt-font);color:var(--tt-ink);overflow-wrap:anywhere;margin:0 0 8px}
.tt-cell-by{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--tt-muted-2);font-size:14px}
.tt-cell-user{display:flex;align-items:center;gap:6px;min-width:0}
.tt-cell-user span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-cell-user .tt-av{width:22px;height:22px}
.tt-cell-user:hover span{text-decoration:underline}
.tt-cell-likes{display:inline-flex;align-items:center;gap:4px;flex:none}

/* Compact row card (dashboard, boost embeds) */
.tt-rowcard{display:flex;gap:14px;padding:12px;border-radius:12px;background:var(--tt-surface);border:1px solid var(--tt-border);margin:0 0 10px;color:var(--tt-text)}
.tt-rowcard:hover{background:var(--tt-row-hover)}
.tt-rowcard-thumb{position:relative;width:72px;aspect-ratio:3/4;border-radius:6px;overflow:hidden;background:#000;flex:none}
.tt-rowcard-thumb .tt-thumb-text>span{font-size:9px;-webkit-line-clamp:4}
.tt-rowcard-main{display:flex;flex-direction:column;gap:4px;min-width:0;justify-content:center}
.tt-rowcard-user{display:flex;align-items:center;font-weight:700;color:var(--tt-ink)}
.tt-rowcard-cap{font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.tt-rowcard-stats{display:flex;flex-wrap:wrap;gap:4px 14px;color:var(--tt-muted);font-size:13px}
.tt-rowcard-stats span{display:inline-flex;align-items:center;gap:4px}

/* =========================================================================
   Profile
   ========================================================================= */
.tt-profile{max-width:1300px}
.tt-prof-head{display:flex;gap:28px;align-items:flex-start;padding:4px 0 24px}
.tt-prof-av .tt-av{width:116px;height:116px;border:1px solid var(--tt-border)}
.tt-prof-id{min-width:0;flex:1}
.tt-prof-names{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
.tt-prof-user{display:flex;align-items:center;font:800 30px/1.15 var(--tt-font);letter-spacing:-.02em;color:var(--tt-ink);overflow-wrap:anywhere}
.tt-prof-name{font:600 18px/1.3 var(--tt-font);color:var(--tt-text)}
.tt-profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:16px 0 18px}
.tt-profile-actions form{margin:0}
.tt-prof-stats{display:flex;flex-wrap:wrap;gap:6px 22px;font-size:16px;color:var(--tt-muted)}
.tt-prof-stats>a,.tt-prof-stats>span{display:inline-flex;align-items:baseline;gap:6px}
.tt-prof-stats strong{font:700 17px var(--tt-font);color:var(--tt-ink)}
.tt-prof-stats a:hover span{text-decoration:underline}
.tt-prof-bio{margin:12px 0 0;max-width:640px;color:var(--tt-text);font-size:16px;line-height:1.45;overflow-wrap:anywhere}
.tt-prof-link{display:inline-flex;align-items:center;gap:6px;margin:8px 0 0;font:700 15px var(--tt-font);color:var(--tt-ink)}
.tt-prof-link:hover{text-decoration:underline}
.tt-prof-tabs{display:flex;border-bottom:1px solid var(--tt-border);margin:0 0 18px;overflow-x:auto;scrollbar-width:none}
.tt-prof-tab{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-width:150px;height:46px;padding:0 24px;
  font:600 18px/1 var(--tt-font);color:var(--tt-muted);white-space:nowrap;transition:color .15s}
.tt-prof-tab:hover{color:var(--tt-muted-2)}
.tt-prof-tab.is-active{color:var(--tt-ink)}
.tt-prof-tab.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--tt-ink)}
.tt-prof-tab-ic{display:none}

/* =========================================================================
   Video detail: stage (left) + panel (right)
   ========================================================================= */
.tt-l-detail,.tt-l-detail .tt-solo{background:var(--tt-detail-bg)}
.tt-detail{display:flex;height:100vh;overflow:hidden}
.tt-stage{position:relative;flex:1;min-width:0;display:grid;place-items:center;overflow:hidden;background:#000;isolation:isolate;user-select:none}
.tt-stage .tt-backdrop{filter:blur(40px) brightness(.4) saturate(1.2)}
.tt-stage-media{position:absolute;inset:0;z-index:1;width:100%;height:100%;max-width:none;background:transparent}
.tt-stage.is-text .tt-stage-text{position:relative;inset:auto;width:min(460px,80%);aspect-ratio:9/16;max-height:86vh;border-radius:16px;padding:32px;display:grid;place-items:center}
.tt-stage-text p{font-size:24px}
.tt-stage-btn{position:absolute;z-index:4;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(84,84,84,.5);color:#fff;border:0}
.tt-stage-btn:hover{background:rgba(84,84,84,.75)}
.tt-stage-close{left:20px;top:20px}
.tt-stage .tt-mute{top:20px;right:20px}
.tt-panel{width:520px;flex:none;display:flex;flex-direction:column;min-height:0;background:var(--tt-bg);border-left:1px solid var(--tt-border)}
.tt-panel-scroll{flex:1;min-height:0;overflow-y:auto;padding:24px 28px 8px}
.tt-pcard{padding:16px;border-radius:12px;background:var(--tt-hover)}
.tt-pcard-repost{display:flex;align-items:center;gap:6px;margin:0 0 10px;font:600 13px var(--tt-font);color:var(--tt-yellow-text)}
.tt-pcard-repost a{color:var(--tt-ink)}
.tt-pcard-head{display:flex;align-items:center;gap:12px}
.tt-pcard-av .tt-av{width:40px;height:40px}
.tt-pcard-who{flex:1;min-width:0}
.tt-pcard-user{display:flex;align-items:center;font:700 18px/1.25 var(--tt-font);color:var(--tt-ink)}
.tt-pcard-user:hover{text-decoration:underline}
.tt-pcard-sub{font-size:14px;color:var(--tt-muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-pcard-cap{margin:14px 0 0;font-size:16px;line-height:1.45;color:var(--tt-ink);overflow-wrap:anywhere}
.tt-pcard-sound{max-width:100%;margin-top:12px;color:var(--tt-text)}
.tt-pacts{display:flex;align-items:center;gap:22px;margin:18px 0 14px}
.tt-pacts form{margin:0}
.tt-pact{display:flex;align-items:center;gap:8px;padding:0;border:0;background:none;color:var(--tt-text);font:700 13px var(--tt-font)}
.tt-pact-ic{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--tt-glass);color:var(--tt-ink);transition:background .15s}
.tt-pact-ic .tt-ic{width:20px;height:20px}
.tt-pact:hover .tt-pact-ic{background:var(--tt-glass-hover)}
.tt-pact strong{font:700 13px var(--tt-font);color:var(--tt-muted-2)}
.tt-copy{display:flex;align-items:center;height:40px;border-radius:8px;background:var(--tt-hover);border:1px solid var(--tt-border);overflow:hidden}
.tt-copy-url{flex:1;min-width:0;height:100%;padding:0 12px;border:0;background:none;color:var(--tt-muted-2);font-size:14px;outline:none;text-overflow:ellipsis}
.tt-copy-btn{height:100%;padding:0 16px;border:0;border-left:1px solid var(--tt-border);background:none;color:var(--tt-ink);font:700 14px var(--tt-font)}
.tt-copy-btn:hover{background:var(--tt-hover)}
.tt-dtabs{margin-top:18px}
.tt-dtabs-bar{display:flex;border-bottom:1px solid var(--tt-border);position:sticky;top:-24px;background:var(--tt-bg);z-index:2}
.tt-dtab{position:relative;flex:1 1 auto;min-width:0;height:46px;padding:0 10px;border:0;background:none;color:var(--tt-muted);font:600 16px var(--tt-font);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-dtab.is-active{color:var(--tt-ink)}
.tt-dtab.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--tt-ink)}
.tt-dpanel{padding:10px 0 0}
.tt-dpanel .tt-grid-mini{padding-top:8px}
.tt-cempty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:44px 16px;color:var(--tt-muted);text-align:center}
.tt-cempty strong{color:var(--tt-ink);font-size:16px}

/* Comments */
.tt-cmt-row{display:flex;gap:12px;padding:10px 0}
.tt-cmt-av{flex:none}
.tt-cmt-main{flex:1;min-width:0}
.tt-cmt-head{display:flex;align-items:center;gap:6px;min-width:0}
.tt-cmt-user{font:600 14px/1.3 var(--tt-font);color:var(--tt-muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-cmt-user:hover{text-decoration:underline}
.tt-creator{flex:none;padding:1px 6px;border-radius:3px;background:rgba(254,44,85,.16);color:var(--tt-red-text);font:700 11px/1.5 var(--tt-font)}
.tt-cmt-text{margin:3px 0 6px;font-size:16px;line-height:1.4;color:var(--tt-text);overflow-wrap:anywhere}
.tt-cmt-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px;font-size:14px;color:var(--tt-muted)}
.tt-cmt-meta form{margin:0}
.tt-cmt-btn{padding:0;border:0;background:none;color:var(--tt-muted);font:600 14px var(--tt-font)}
.tt-cmt-btn:hover{color:var(--tt-muted-2)}
.tt-cmt-like-form{margin:0;flex:none}
.tt-cmt-like{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:32px;padding:4px 0 0;border:0;background:none;color:var(--tt-muted);font:400 13px var(--tt-font)}
.tt-cmt-like .tt-when-on{display:none}
.tt-cmt-like.is-on{color:var(--tt-red)}
.tt-cmt-like.is-on .tt-when-on{display:block}
.tt-cmt-like.is-on .tt-when-off{display:none}
.tt-cmt-like span{display:block}
.tt-cmt-like [data-c="clikes"]{min-height:16px}
.tt-replies{padding-left:52px}
.tt-cmt.is-reply .tt-cmt-row{padding:8px 0}
.tt-replies-fold summary{display:inline-flex;align-items:center;gap:4px;margin:0 0 4px 52px;list-style:none;cursor:pointer;color:var(--tt-muted);font:600 14px var(--tt-font)}
.tt-replies-fold summary::-webkit-details-marker{display:none}
.tt-replies-fold summary::before{content:"";width:24px;height:1px;background:var(--tt-border-2);margin-right:8px}
.tt-replies-fold[open] summary svg{transform:rotate(180deg)}
.tt-cmt.is-new{animation:tt-flash 1.2s ease}
@keyframes tt-flash{from{background:rgba(254,44,85,.14)}to{background:transparent}}

/* Sticky comment bar */
.tt-cform{flex:none;margin:0;padding:14px 28px 18px;border-top:1px solid var(--tt-border);background:var(--tt-bg)}
.tt-cform-replying{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;font-size:13px;color:var(--tt-muted)}
.tt-cform-replying strong{color:var(--tt-ink)}
.tt-cform-x{display:grid;place-items:center;width:24px;height:24px;border:0;border-radius:50%;background:var(--tt-surface-2);color:var(--tt-ink)}
.tt-cform-row{display:flex;align-items:center;gap:12px}
.tt-cform-box{flex:1;display:flex;align-items:center;gap:8px;min-width:0;height:44px;padding:0 12px 0 14px;border-radius:8px;background:var(--tt-surface-2);border:1px solid transparent;cursor:text}
.tt-cform-box:focus-within{border-color:var(--tt-border-2)}
.tt-cform-input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;color:var(--tt-ink);font-size:15px}
.tt-cform-input::placeholder{color:var(--tt-muted)}
.tt-cform-ic{display:flex;gap:10px;color:var(--tt-muted-2)}
.tt-cform-post{border:0;background:none;padding:6px 2px;color:var(--tt-red);font:700 15px var(--tt-font)}
.tt-cform:has(.tt-cform-input:placeholder-shown) .tt-cform-post{color:var(--tt-muted);cursor:default}

/* Comments sheet (feed): right-hand drawer on desktop, bottom sheet on phones */
.tt-sheet{position:fixed;inset:0 0 0 auto;margin:0;padding:0;width:min(480px,100vw);height:100vh;max-width:100vw;max-height:100vh;border:0;border-left:1px solid var(--tt-border);
  background:var(--tt-bg);color:var(--tt-text);display:flex;flex-direction:column;overflow:hidden;animation:tt-drawer .22s ease}
.tt-sheet:not([open]){display:none}
.tt-sheet::backdrop{background:rgba(0,0,0,.45)}
@keyframes tt-drawer{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}
.tt-sheet-head{position:relative;flex:none;display:flex;align-items:center;justify-content:center;height:56px;border-bottom:1px solid var(--tt-border)}
.tt-sheet-head h2{font:700 16px var(--tt-font);color:var(--tt-ink)}
.tt-sheet-x{position:absolute;right:12px;top:10px;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;background:var(--tt-surface-2);color:var(--tt-ink)}
.tt-sheet-body{flex:1;min-height:0;display:flex;flex-direction:column}
.tt-sheet-scroll{flex:1;min-height:0;overflow-y:auto;padding:6px 20px 12px}
.tt-sheet-loading{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--tt-muted)}
.tt-sheet .tt-cform{padding:12px 16px 16px}

/* =========================================================================
   Explore · search · sound & hashtag pages
   ========================================================================= */
.tt-chips{display:flex;gap:10px;margin:0 0 24px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.tt-chips::-webkit-scrollbar{display:none}
.tt-chip{flex:none;display:inline-flex;align-items:center;height:36px;padding:0 16px;border-radius:8px;background:var(--tt-surface-2);color:var(--tt-text);font:600 15px var(--tt-font);transition:background .15s}
.tt-chip:hover{background:var(--tt-surface-3)}
.tt-chip.is-active{background:var(--tt-ink);color:var(--tt-on-ink)}
.tt-sounds{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,1fr);gap:12px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.tt-sounds::-webkit-scrollbar{display:none}
.tt-soundcard{position:relative;display:flex;align-items:center;gap:12px;padding:10px 12px 10px 10px;border-radius:12px;background:var(--tt-surface);transition:background .15s}
.tt-soundcard:hover{background:var(--tt-row-hover)}
.tt-soundcard-cover{position:relative;width:64px;height:64px;border-radius:8px;overflow:hidden;background:var(--tt-surface-2);flex:none}
.tt-soundcard-cover img{width:100%;height:100%;object-fit:cover}
.tt-soundcard-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(0,0,0,.28)}
.tt-soundcard-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.tt-soundcard-main strong{font:700 15px/1.25 var(--tt-font);color:var(--tt-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-soundcard-main small{font-size:13px;color:var(--tt-muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-soundcard-main .tt-soundcard-uses{color:var(--tt-muted)}
.tt-soundcard-rank{position:absolute;right:12px;top:10px;font:800 13px var(--tt-font);color:var(--tt-red)}
.tt-hero{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:28px;align-items:center;margin:4px 0 28px}
.tt-hero>.tt-hero-cover{grid-row:1 / span 2}
.tt-hero>.tt-hero-main{align-self:end}
.tt-hero-cover{position:relative;display:grid;place-items:center;width:184px;height:184px;border-radius:8px;overflow:hidden;background:var(--tt-surface-2);flex:none}
.tt-hero-cover img{width:100%;height:100%;object-fit:cover}
.tt-hero-cover-tag{border-radius:50%;background:radial-gradient(circle at 30% 25%,#3a3a3a,#1a1a1a);color:#fff}
.tt-hero-cover-tag .tt-ic-xl{width:72px;height:72px;filter:drop-shadow(-2px -2px 0 var(--tt-cyan)) drop-shadow(2px 2px 0 var(--tt-red))}
.tt-hero-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:rgba(0,0,0,.25)}
.tt-hero-glyph{color:var(--tt-muted-2)}
.tt-hero-main{min-width:0}
.tt-hero-title{font:800 32px/1.15 var(--tt-font);letter-spacing:-.02em;color:var(--tt-ink);overflow-wrap:anywhere}
.tt-hero-sub{margin:8px 0 0;font:600 18px var(--tt-font)}
.tt-hero-author{color:var(--tt-ink)}
a.tt-hero-author:hover{text-decoration:underline}
.tt-hero-count{margin:6px 0 0;color:var(--tt-muted-2);font-size:15px}
.tt-hero-actions{grid-column:2;align-self:start;display:flex;gap:10px;margin:18px 0 0}
.tt-subtabs{display:flex;gap:4px;border-bottom:1px solid var(--tt-border);margin:0 0 20px;overflow-x:auto;scrollbar-width:none}
.tt-subtab{position:relative;display:inline-flex;align-items:center;height:44px;padding:0 20px;color:var(--tt-muted);font:600 16px var(--tt-font);white-space:nowrap}
.tt-subtab:hover{color:var(--tt-muted-2)}
.tt-subtab.is-active{color:var(--tt-ink)}
.tt-subtab.is-active::after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:2px;background:var(--tt-ink)}
.tt-bigsearch{display:flex;align-items:center;gap:12px;max-width:720px;margin:0 0 22px}
.tt-bigsearch-box{flex:1;display:flex;align-items:center;gap:10px;height:46px;padding:0 16px;border-radius:999px;background:var(--tt-surface-2);color:var(--tt-muted);border:1px solid transparent;min-width:0}
.tt-bigsearch-box:focus-within{border-color:var(--tt-border-2)}
.tt-bigsearch-box input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;color:var(--tt-ink);font-size:16px}
.tt-bigsearch-go{height:46px;padding:0 22px;border:0;border-radius:999px;background:var(--tt-red);color:#fff;font:700 15px var(--tt-font)}
.tt-bigsearch-back{display:grid;place-items:center;width:32px;height:40px;color:var(--tt-ink)}
.tt-trends{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:4px 24px}
.tt-trend{display:flex;align-items:center;gap:14px;padding:10px 8px;border-radius:8px}
.tt-trend:hover{background:var(--tt-hover)}
.tt-trend-n{width:22px;text-align:center;font:800 18px var(--tt-font);color:var(--tt-muted)}
.tt-trend-n.is-top{color:var(--tt-red)}
.tt-trend-main{flex:1;display:flex;flex-direction:column;min-width:0}
.tt-trend-main strong{font:700 16px var(--tt-font);color:var(--tt-ink)}
.tt-trend-main small{font-size:13px;color:var(--tt-muted)}
.tt-trend-hot{display:inline-flex;align-items:center;gap:4px;font:700 12px var(--tt-font);color:var(--tt-red)}
.tt-list{display:flex;flex-direction:column}
.tt-list-card{padding:4px 16px;border-radius:12px;background:var(--tt-surface);margin:0 0 28px}
.tt-tagchips{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.tt-taglist{display:flex;flex-direction:column;gap:2px}
.tt-tagrow{display:flex;align-items:center;gap:14px;padding:10px;border-radius:10px}
.tt-tagrow:hover{background:var(--tt-hover)}
.tt-tagchips .tt-tagrow{background:var(--tt-surface)}
.tt-tagrow-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--tt-surface-2);color:var(--tt-ink);flex:none;overflow:hidden}
.tt-tagrow-cover{border-radius:8px}
.tt-tagrow-cover img{width:100%;height:100%;object-fit:cover}
.tt-tagrow-main{display:flex;flex-direction:column;min-width:0}
.tt-tagrow-main strong{font:700 16px var(--tt-font);color:var(--tt-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-tagrow-main small{font-size:13px;color:var(--tt-muted)}

/* =========================================================================
   People
   ========================================================================= */
.tt-user-row{display:flex;align-items:center;gap:14px;padding:12px 0}
.tt-user-row+.tt-user-row{border-top:1px solid var(--tt-line-soft)}
.tt-user-av .tt-av{width:56px;height:56px}
.tt-user-main{flex:1;min-width:0}
.tt-user-name{display:flex;align-items:center;font:700 17px/1.3 var(--tt-font);color:var(--tt-ink)}
.tt-user-name:hover{text-decoration:underline}
.tt-user-sub{font-size:14px;color:var(--tt-muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-user-sub strong{color:var(--tt-ink)}
.tt-user-bio{font-size:14px;color:var(--tt-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.tt-user-btns{display:flex;gap:8px;flex:none}
.tt-user-btns form{margin:0}
.st-card .tt-user-row{padding:12px 16px}
.tt-suggest-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.tt-suggest{position:relative;aspect-ratio:3/4;border-radius:10px;overflow:hidden;background:var(--tt-surface);isolation:isolate}
.tt-suggest-bg{position:absolute;inset:0;z-index:0}
.tt-suggest-bg .tt-thumb{transition:transform .4s}
.tt-suggest:hover .tt-suggest-bg .tt-thumb{transform:scale(1.04)}
.tt-suggest::after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(0,0,0,.05) 30%,rgba(0,0,0,.78));z-index:0;pointer-events:none}
.tt-suggest-body{position:absolute;left:0;right:0;bottom:0;z-index:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:0 14px 16px;text-align:center}
.tt-suggest-av .tt-av{width:56px;height:56px;border:2px solid #fff;margin-bottom:6px}
.tt-suggest-name{display:flex;align-items:center;justify-content:center;max-width:100%;font:700 17px/1.3 var(--tt-font);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-suggest-user{font-size:14px;color:var(--tt-muted-2);margin-bottom:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tt-suggest .tt-follow-wrap,.tt-suggest .tt-follow-wrap form{width:100%}

/* Empty states & 404 */
.tt-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:64px 20px;color:var(--tt-muted)}
.tt-empty-ic{display:grid;place-items:center;width:92px;height:92px;margin:0 0 16px;border-radius:50%;color:var(--tt-muted-2);background:var(--tt-hover)}
.tt-empty-ic .tt-ic-xl{width:44px;height:44px}
.tt-empty h3{font:700 22px/1.25 var(--tt-font);color:var(--tt-ink);margin:0 0 6px}
.tt-empty p{max-width:380px;font-size:15px;line-height:1.45}
.tt-empty-act{margin-top:18px}
.tt-404{display:flex;flex-direction:column;align-items:center;text-align:center;padding-top:10vh}
.tt-404-art{font:900 150px/1 var(--tt-font);color:var(--tt-ink);letter-spacing:-.04em;text-shadow:-5px -5px 0 var(--tt-cyan),5px 5px 0 var(--tt-red);margin:0 0 24px}
.tt-404-art span{display:inline-block;transform:rotate(-12deg)}
.tt-404-title{font:800 26px var(--tt-font);color:var(--tt-ink);margin:0 0 8px}
.tt-404-sub{color:var(--tt-muted);max-width:420px;margin:0 0 24px}

/* =========================================================================
   Activity
   ========================================================================= */
.tt-activity{max-width:760px}
.tt-pills{display:flex;gap:8px;margin:0 0 18px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.tt-pills::-webkit-scrollbar{display:none}
.tt-pill{flex:none;display:inline-flex;align-items:center;height:34px;padding:0 16px;border-radius:999px;background:var(--tt-surface-2);color:var(--tt-text);font:600 14px var(--tt-font)}
.tt-pill:hover{background:var(--tt-surface-3)}
.tt-pill.is-active{background:var(--tt-ink);color:var(--tt-on-ink)}
.tt-note-group{margin:0 0 14px}
.tt-note-h{font:700 16px var(--tt-font);color:var(--tt-ink);margin:14px 0 6px}
.tt-note{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:0 -12px;border-radius:10px;transition:background .15s}
.tt-note:hover{background:var(--tt-hover)}
.tt-note.is-unread{background:rgba(254,44,85,.07)}
.tt-note-av .tt-av{width:48px;height:48px}
.tt-note-sys{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--tt-surface-2)}
.tt-note-main{flex:1;min-width:0;font-size:15px;line-height:1.35;color:var(--tt-text);overflow-wrap:anywhere}
.tt-note-main strong{color:var(--tt-ink);font-weight:700;margin-right:4px}
.tt-note-time{display:inline-block;margin-left:6px;color:var(--tt-muted);font-size:14px;white-space:nowrap}
.tt-note-thumb{width:48px;height:64px;border-radius:4px;overflow:hidden;background:#000;flex:none}
.tt-note-thumb img,.tt-note-thumb video{width:100%;height:100%;object-fit:cover}
.tt-inbox-row{display:flex;align-items:center;gap:12px;padding:12px;margin:0 0 14px;border-radius:12px;background:var(--tt-surface);position:relative}
.tt-inbox-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,var(--tt-cyan),#1a8cff);color:#fff;flex:none}
.tt-inbox-main{flex:1;display:flex;flex-direction:column;min-width:0}
.tt-inbox-main strong{color:var(--tt-ink);font-size:16px}
.tt-inbox-main small{color:var(--tt-muted);font-size:13px}
.tt-inbox-row .tt-badge{position:static;border:0}

/* =========================================================================
   Messages
   ========================================================================= */
.tt-l-full .tt-main{height:100vh;overflow:hidden}
.tt-dm{display:grid;grid-template-columns:minmax(300px,380px) 1fr;height:100vh;max-width:1400px;border-right:1px solid var(--tt-border)}
.tt-dm-list{display:flex;flex-direction:column;min-height:0;overflow-y:auto;border-right:1px solid var(--tt-border);background:var(--tt-bg)}
.tt-dm-list-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:22px 16px 14px 24px;background:var(--tt-bg)}
.tt-dm-list-head h1{font:800 24px var(--tt-font);color:var(--tt-ink)}
.tt-dm-none{padding:24px;color:var(--tt-muted)}
.tt-dm-item{display:flex;align-items:center;gap:12px;padding:12px 24px;transition:background .15s}
.tt-dm-item:hover{background:var(--tt-hover)}
.tt-dm-item.is-active{background:var(--tt-hover-2)}
.tt-dm-item .tt-av{width:56px;height:56px}
.tt-dm-item-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.tt-dm-item-name{display:flex;align-items:center;font:600 16px var(--tt-font);color:var(--tt-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-dm-item-prev{display:flex;gap:8px;font-size:14px;color:var(--tt-muted);min-width:0}
.tt-dm-item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.tt-dm-item-time{flex:none}
.tt-dm-item.is-unread .tt-dm-item-text{color:var(--tt-ink);font-weight:600}
.tt-dm-dot{width:10px;height:10px;border-radius:50%;background:var(--tt-red);flex:none}
.tt-dm-thread{display:flex;flex-direction:column;min-width:0;min-height:0}
.tt-dm-blank{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:var(--tt-muted)}
.tt-dm-blank-ic{display:grid;place-items:center;width:96px;height:96px;border-radius:50%;border:2px solid var(--tt-border-2);color:var(--tt-ink);margin-bottom:8px}
.tt-dm-blank h2{font:700 22px var(--tt-font);color:var(--tt-ink)}
.tt-dm-thead{display:flex;align-items:center;gap:8px;height:80px;padding:0 20px;border-bottom:1px solid var(--tt-border);flex:none}
.tt-dm-back{display:none}
.tt-dm-who{display:flex;align-items:center;gap:12px;min-width:0}
.tt-dm-who .tt-av{width:48px;height:48px}
.tt-dm-who>span{display:flex;flex-direction:column;min-width:0}
.tt-dm-who strong{display:flex;align-items:center;font:700 17px var(--tt-font);color:var(--tt-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tt-dm-who small{font-size:14px;color:var(--tt-muted)}
.tt-dm-body{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:16px 24px}
.tt-dm-intro{display:flex;flex-direction:column;align-items:center;gap:4px;padding:18px 0 26px;text-align:center}
.tt-dm-intro .tt-av{width:72px;height:72px;margin-bottom:6px}
.tt-dm-intro strong{font:700 18px var(--tt-font);color:var(--tt-ink)}
.tt-dm-intro small{color:var(--tt-muted);margin-bottom:10px}
.tt-dm-time{align-self:center;margin:12px 0 6px;font-size:12px;color:var(--tt-muted)}
.tt-msg{display:flex;align-items:flex-end;gap:8px;max-width:min(72%,560px)}
.tt-msg.is-mine{align-self:flex-end}
.tt-msg-av .tt-av{width:32px;height:32px}
.tt-msg-bubble{padding:10px 14px;border-radius:8px;background:var(--tt-surface-2);color:var(--tt-text);font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.tt-msg.is-mine .tt-msg-bubble{background:var(--tt-red);color:#fff}
.tt-msg.is-mine .tt-msg-bubble a{color:#fff;text-decoration:underline}
.tt-dm-compose{display:flex;align-items:center;gap:12px;padding:14px 20px 18px;border-top:1px solid var(--tt-border);margin:0;flex:none}
.tt-dm-field{flex:1;display:flex;align-items:center;gap:8px;height:46px;padding:0 14px;border-radius:8px;background:var(--tt-surface-2);border:1px solid transparent;min-width:0}
.tt-dm-field:focus-within{border-color:var(--tt-border-2)}
.tt-dm-input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;color:var(--tt-ink);font-size:15px}
.tt-dm-input::placeholder{color:var(--tt-muted)}
.tt-dm-emoji{color:var(--tt-muted-2);display:flex}
.tt-dm-send{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:0;background:var(--tt-red);color:#fff;transition:opacity .15s}
.tt-dm-compose:has(.tt-dm-input:placeholder-shown) .tt-dm-send{opacity:.35}

/* =========================================================================
   Upload
   ========================================================================= */
.tt-upload-page{max-width:1180px}
.tt-upload{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;align-items:start;margin:0}
.tt-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:340px;padding:40px 24px;
  border:2px dashed var(--tt-border-2);border-radius:12px;background:var(--tt-surface);text-align:center;cursor:pointer;transition:border-color .15s,background .15s}
.tt-drop:hover,.tt-drop.is-over{border-color:var(--tt-red);background:var(--tt-sel-bg)}
.tt-drop-ic{display:grid;place-items:center;width:84px;height:84px;margin:0 0 8px;border-radius:50%;background:var(--tt-hover);color:var(--tt-muted-2)}
.tt-drop-title{font:700 20px var(--tt-font);color:var(--tt-ink)}
.tt-drop-sub{color:var(--tt-muted);font-size:15px;margin:0 0 14px}
.tt-drop-btn{pointer-events:none;min-width:200px}
.tt-drop-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.tt-drop-file{display:none;align-items:center;gap:8px;margin-top:10px;max-width:100%;font:600 14px var(--tt-font);color:var(--tt-cyan);overflow-wrap:anywhere}
.has-file .tt-drop{min-height:0;padding:18px 20px;flex-direction:row;justify-content:flex-start;gap:14px;text-align:left;border-style:solid;border-color:var(--tt-border)}
.has-file .tt-drop-ic{width:48px;height:48px;margin:0}
.has-file .tt-drop-ic .tt-ic-xl{width:26px;height:26px}
.has-file .tt-drop-title,.has-file .tt-drop-sub{display:none}
.has-file .tt-drop-file{display:flex;flex:1;margin:0}
.has-file .tt-drop-btn{min-width:0;order:3;background:var(--tt-surface-2);color:var(--tt-text)}
.has-file .tt-drop-specs{display:none}
.tt-drop-specs{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tt-drop-specs li{display:flex;gap:10px;color:var(--tt-muted);font-size:13px;line-height:1.4}
.tt-drop-specs li svg{color:var(--tt-muted-2);margin-top:1px}
.tt-drop-specs strong{display:block;color:var(--tt-text);font-size:14px;margin-bottom:2px}
.tt-upload-details{margin-top:28px}
.tt-field{margin:0 0 20px}
.tt-field-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}
.tt-field-head label,.tt-field-label{display:block;font:700 16px var(--tt-font);color:var(--tt-ink);margin:0 0 8px}
.tt-field-head label{margin:0}
.tt-counter{font-size:13px;color:var(--tt-muted)}
.tt-counter.is-over{color:var(--tt-red)}
.tt-field-tools{display:flex;gap:18px;margin-top:8px;color:var(--tt-muted-2);font:600 14px var(--tt-font)}
.tt-select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--tt-muted-2) 50%),linear-gradient(135deg,var(--tt-muted-2) 50%,transparent 50%);
  background-position:calc(100% - 20px) 21px,calc(100% - 15px) 21px;background-size:5px 5px;background-repeat:no-repeat;padding-right:40px;max-width:360px}
.tt-soundpick{display:flex;align-items:center;gap:12px;max-width:420px;padding:10px 12px;border-radius:10px;background:var(--tt-surface)}
.tt-soundpick img{width:44px;height:44px;border-radius:6px;object-fit:cover}
.tt-soundpick span{flex:1;display:flex;flex-direction:column;min-width:0}
.tt-soundpick strong{display:flex;align-items:center;gap:6px;color:var(--tt-ink)}
.tt-soundpick small{color:var(--tt-muted)}
.tt-soundpick-x{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--tt-surface-2)}
.tt-upload-progress{display:flex;align-items:center;gap:12px;margin:0 0 18px;color:var(--tt-muted-2);font-size:14px}
.tt-upload-bar{flex:1;height:6px;border-radius:6px;background:var(--tt-surface-2);overflow:hidden}
.tt-upload-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--tt-cyan),var(--tt-red));transition:width .2s}
.tt-upload-btns{display:flex;gap:12px;padding-top:8px}
.tt-upload-side{position:sticky;top:28px}
.tt-phone{position:relative;width:280px;aspect-ratio:9/18.5;border-radius:36px;border:9px solid #0b0b0b;box-shadow:0 0 0 2px #333,var(--tt-shadow);background:#000;overflow:hidden}
.tt-phone-screen{position:absolute;inset:0;z-index:1}
.tt-phone-screen .st-preview-media{width:100%;height:100%;max-height:none;object-fit:cover;border-radius:0}
.tt-phone-empty{position:absolute;inset:0 48px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:var(--tt-muted);font-size:13px;text-align:center;z-index:0}
.tt-phone-ui{position:absolute;inset:0;z-index:2;pointer-events:none;color:#fff}
.tt-phone-top{position:absolute;top:18px;left:0;right:0;display:flex;justify-content:center;gap:14px;font:600 13px var(--tt-font);color:rgba(255,255,255,.7)}
.tt-phone-top strong{color:#fff;border-bottom:2px solid #fff;padding-bottom:3px}
.tt-phone-rail{position:absolute;right:10px;bottom:70px;display:flex;flex-direction:column;align-items:center;gap:16px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.4))}
.tt-phone-rail .tt-av{width:34px;height:34px;border:1px solid #fff}
.tt-phone-rail .tt-ic{width:26px;height:26px}
.tt-phone-info{position:absolute;left:12px;right:56px;bottom:16px;display:flex;flex-direction:column;gap:3px;font-size:12px;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.tt-phone-info strong{font-size:13px}
.tt-phone-info span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.tt-phone-info small{display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden}
.is-uploading .tt-drop{pointer-events:none;opacity:.6}

/* =========================================================================
   Auth
   ========================================================================= */
.tt-l-auth{background:radial-gradient(1200px 600px at 10% -10%,rgba(37,244,238,.08),transparent 60%),radial-gradient(900px 600px at 110% 110%,rgba(254,44,85,.1),transparent 60%),var(--tt-bg)}
.tt-l-auth .tt-solo{min-height:100vh;display:grid;place-items:center;padding:32px 16px}
.tt-auth{width:100%;max-width:460px}
.tt-auth-card{padding:36px 40px 30px;border-radius:16px;background:var(--tt-surface);border:1px solid var(--tt-border);box-shadow:var(--tt-shadow)}
.tt-auth-logo{display:flex;justify-content:center;margin:0 0 22px}
.tt-auth-logo .tt-logo-mark{width:46px;height:46px;filter:drop-shadow(-2px -2px 0 var(--tt-cyan)) drop-shadow(2px 2px 0 var(--tt-red))}
.tt-auth-logo .tt-logo-name{font-size:30px}
.tt-auth-title{font:800 30px/1.2 var(--tt-font);color:var(--tt-ink);text-align:center;letter-spacing:-.02em}
.tt-auth-lead{margin:8px 0 22px;color:var(--tt-muted);text-align:center;font-size:15px}
.tt-auth-form{display:flex;flex-direction:column;gap:10px}
.tt-auth-label{font:700 15px var(--tt-font);color:var(--tt-ink);margin:0 0 2px}
.tt-auth-forgot{align-self:flex-start;padding:0;border:0;background:none;color:var(--tt-muted-2);font:600 13px var(--tt-font);margin:0 0 8px}
.tt-auth-forgot:hover{color:var(--tt-ink);text-decoration:underline}
.tt-auth-legal{font-size:12px;color:var(--tt-muted);line-height:1.45;margin:4px 0 8px}
.tt-auth-sep{display:flex;align-items:center;gap:12px;margin:22px 0 14px;color:var(--tt-muted);font-size:13px}
.tt-auth-sep::before,.tt-auth-sep::after{content:"";flex:1;height:1px;background:var(--tt-border)}
.tt-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tt-quick form{margin:0}
.tt-quick-user{display:flex;flex-direction:column;align-items:center;gap:3px;width:100%;padding:12px 6px;border-radius:12px;border:1px solid var(--tt-border);background:var(--tt-bg);transition:border-color .15s,background .15s}
.tt-quick-user:hover{border-color:var(--tt-red);background:var(--tt-quick-hover)}
.tt-quick-user .tt-av{width:56px;height:56px;margin-bottom:4px}
.tt-quick-user strong{font:700 14px var(--tt-font);color:var(--tt-ink)}
.tt-quick-user small{font-size:12px;color:var(--tt-muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tt-auth-hint{margin:14px 0 0;text-align:center;font-size:12px;color:var(--tt-muted)}
.tt-auth-hint strong{color:var(--tt-muted-2)}
.tt-auth-foot{margin:16px 0 0;padding:18px;border-radius:12px;background:var(--tt-surface);border:1px solid var(--tt-border);text-align:center;color:var(--tt-muted-2)}
.tt-auth-foot a{color:var(--tt-red);font-weight:700}
.tt-alert{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:12px 14px;border-radius:8px;background:rgba(254,44,85,.12);color:var(--tt-alert-text);font-size:14px}
.tt-alert-info{background:rgba(37,244,238,.1);color:var(--tt-cyan-text)}
/* Language picker under the card (TikTok's footer select) */
.tt-auth-lang{display:flex;align-items:center;gap:8px;margin:14px 6px 0;color:var(--tt-muted);font-size:13px}
.tt-auth-lang select{appearance:none;height:32px;padding:0 30px 0 10px;border:1px solid var(--tt-border);border-radius:6px;color:var(--tt-text);font:600 13px var(--tt-font);cursor:pointer;
  background-color:var(--tt-surface);background-image:linear-gradient(45deg,transparent 50%,var(--tt-muted-2) 50%),linear-gradient(135deg,var(--tt-muted-2) 50%,transparent 50%);
  background-position:calc(100% - 16px) 13px,calc(100% - 11px) 13px;background-size:5px 5px;background-repeat:no-repeat}
.tt-auth-lang select:focus{border-color:var(--tt-border-2);outline:none}
.tt-auth-lang-go{height:32px;padding:0 12px;border:0;border-radius:6px;background:var(--tt-surface-2);color:var(--tt-ink);font:600 13px var(--tt-font)}
.tt-auth-copy{margin-left:auto}

/* =========================================================================
   Shared components (settings, dashboard, ads, followers…) in the dark look
   ========================================================================= */
.tt-main>.st-wrap{padding-top:28px;padding-bottom:64px}
.st-card{background:var(--tt-surface);border-color:var(--tt-border);box-shadow:none}
.st-h1{color:var(--tt-ink)}
.st-h2{color:var(--tt-ink)}
.st-btn{border-color:transparent;background:var(--tt-surface-2);color:var(--tt-text);border-radius:8px;font-weight:600}
.st-btn:hover{filter:none;background:var(--tt-surface-3)}
.st-btn-primary{background:var(--tt-red);border-color:var(--tt-red);color:#fff}
.st-btn-primary:hover{background:var(--tt-red-2)}
.st-btn-danger{background:transparent;border-color:var(--tt-red);color:var(--tt-red-text)}
.st-input,.st-textarea,.st-select{background:var(--tt-surface-2);border-color:transparent;color:var(--tt-ink)}
.st-input:focus,.st-textarea:focus,.st-select:focus{border-color:var(--tt-border-2);box-shadow:none}
.st-tab.is-active,.st-tab[aria-selected=true]{border-bottom-color:var(--tt-ink);color:var(--tt-ink)}
.st-chip{background:var(--tt-surface-2);border-color:transparent}
.st-chip-check span{border-color:var(--tt-border-2)}
.st-status-green{background:rgba(37,244,238,.12);color:var(--tt-cyan-text)}
.st-status-amber{background:rgba(250,206,21,.14);color:var(--tt-yellow-text)}
.st-status-slate{background:var(--tt-surface-2);color:var(--tt-muted-2)}
.st-status-red{background:rgba(254,44,85,.14);color:var(--tt-alert-text)}
.st-link{color:var(--tt-red-text)}
.st-empty-ic{background:var(--tt-hover)}
.st-stat-v{color:var(--tt-ink)}
.st-stats>.st-card+.st-card,.st-grid>.st-card+.st-card,.st-grid-2>.st-card+.st-card{margin-top:0}
.st-reach-track{background:var(--tt-surface-2)}

/* Toasts: dark pill at the top centre */
.st-toasts{top:24px;bottom:auto}
.st-toast,.st-toast-success{background:rgba(58,58,58,.96);color:#fff;border-radius:8px;font:600 15px/1.35 var(--tt-font);padding:12px 18px;box-shadow:var(--tt-shadow)}
.st-toast-error{background:var(--tt-red)}
.st-toast-hide{transform:translateY(-8px)}

/* =========================================================================
   Share panels (your own video · ads) and the tip panel
   ========================================================================= */
.tt-sheet.tt-share{inset:0;margin:auto;width:min(440px,calc(100vw - 32px));height:fit-content;max-height:min(640px,86vh);border:1px solid var(--tt-border);border-radius:14px;
  animation:tt-pop-in .18s ease}
.tt-sheet.tt-share::backdrop{background:rgba(0,0,0,.55)}
@keyframes tt-pop-in{from{transform:scale(.97);opacity:0}to{transform:none;opacity:1}}
.tt-share-body{flex:1;min-height:0;overflow-y:auto;padding:18px 18px 22px}
.tt-share-row{display:flex;flex-wrap:wrap;gap:14px 10px}
.tt-share-row>form{margin:0}
.tt-share-act{display:flex;flex-direction:column;align-items:center;gap:8px;width:84px;padding:0;border:0;background:none;color:var(--tt-text);font:500 12.5px/1.25 var(--tt-font);text-align:center;cursor:pointer;text-decoration:none}
.tt-share-ic{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--tt-surface-2);color:var(--tt-ink);transition:background .15s}
.tt-share-act:hover .tt-share-ic{background:var(--tt-surface-3)}
.tt-share-ic-red{background:var(--tt-red)}
.tt-share-act:hover .tt-share-ic-red{background:var(--tt-red-2)}
.tt-share-ic-danger{color:var(--tt-danger-text)}
.tt-share-back{display:flex;align-items:center;gap:8px;width:100%;padding:0 0 12px;margin:0 0 6px;border:0;border-bottom:1px solid var(--tt-border);background:none;color:var(--tt-ink);font:700 16px/1.2 var(--tt-font);text-align:left;cursor:pointer}
.tt-share-lead{margin:6px 0 10px;color:var(--tt-muted-2);font-size:14px}
.tt-share-list{display:flex;flex-direction:column}
.tt-share-list form{margin:0}
.tt-share-reason{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:13px 4px;border:0;border-bottom:1px solid var(--tt-line-soft);background:none;
  color:var(--tt-text);font:500 15px/1.3 var(--tt-font);text-align:left;cursor:pointer}
.tt-share-reason:hover{color:var(--tt-ink)}
.tt-share-reason svg{color:var(--tt-muted)}
.tt-share-whohead{display:flex;align-items:center;gap:12px;margin:8px 0 12px}
.tt-share-whohead span{display:flex;flex-direction:column}
.tt-share-whohead small{color:var(--tt-muted);font-size:13px}
.tt-share-why{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:10px}
.tt-share-why li{display:flex;gap:10px;align-items:flex-start;color:var(--tt-text);font-size:14px;line-height:1.4}
.tt-share-why li svg{color:var(--tt-cyan);margin-top:2px}
.tt-menu-danger{color:var(--tt-danger-text)}
.tt-pcard-more{margin-left:auto}

/* Sponsored videos (For You / Following) */
.tt-ad-tag{display:inline-flex;align-self:flex-start;margin:6px 0 0;padding:2px 7px;border-radius:4px;background:rgba(255,255,255,.18);color:#fff;font:600 12px/1.4 var(--tt-font);
  text-shadow:none;pointer-events:none}
.tt-ad-info .tt-info-user{font-size:16px}
.tt-ad-cta{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;max-width:360px;height:44px;margin:12px 0 2px;padding:0 14px;border-radius:4px;
  background:rgba(255,255,255,.92);color:#161823!important;font:700 15px/1 var(--tt-font);text-shadow:none;text-decoration:none!important;transition:background .45s,color .45s}
.tt-ad-cta:hover{background:#fff}
.tt-ad-cta.is-hot{background:var(--tt-red);color:#fff!important}
.tt-ad-cta.is-hot:hover{background:var(--tt-red-2)}
.tt-ad .tt-info{padding-bottom:18px}
.tt-ad-gone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:min(420px,100%);height:100%;margin:0 auto;padding:24px;text-align:center;
  border-radius:16px;background:var(--tt-surface);color:var(--tt-muted-2)}
.tt-ad-gone strong{color:var(--tt-ink);font-size:17px}
.tt-ad-gone-ic{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:rgba(37,244,238,.12);color:var(--tt-cyan-text)}
.tt-item .tt-ad-gone{width:auto;aspect-ratio:9/16;max-width:calc(100vw - var(--tt-side) - 200px);margin:0;flex:none}
.tt-cell .tt-ad-gone{height:auto;aspect-ratio:3/4;border-radius:8px;font-size:13px}
.tt-cell .tt-ad-gone strong{font-size:14px}

/* Sponsored tiles (search) */
.tt-tile-ad{position:absolute;left:8px;top:8px;z-index:2;padding:2px 7px;border-radius:4px;background:rgba(0,0,0,.55);color:#fff;font:700 11.5px/1.4 var(--tt-font)}
.tt-cell-more{display:grid;place-items:center;width:28px;height:28px;margin-right:-6px;border:0;border-radius:50%;background:none;color:var(--tt-muted-2);cursor:pointer;flex:none}
.tt-cell-more:hover{background:var(--tt-hover-2);color:var(--tt-ink)}
.tt-ad-cta-sm{display:flex;align-items:center;justify-content:center;height:32px;margin-top:8px;border-radius:4px;background:var(--tt-red);color:#fff!important;font:700 13px/1 var(--tt-font)}
.tt-ad-cta-sm:hover{background:var(--tt-red-2)}

/* Tips */
.tt-tip-who{display:flex;flex-direction:column;align-items:center;gap:6px;margin:0 0 16px;text-align:center}
.tt-tip-who .tt-av{width:56px;height:56px}
.tt-tip-who strong{color:var(--tt-ink);font-size:17px}
.tt-tip-who small{color:var(--tt-muted);font-size:13px}
.tt-tip-form{display:grid;gap:14px;margin:0}
.tt-tip-amounts{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.tt-tip-amt{position:relative;display:block}
.tt-tip-amt>input{position:absolute;opacity:0;pointer-events:none}
.tt-tip-amt>span{display:grid;place-items:center;height:48px;border-radius:10px;background:var(--tt-surface-2);border:1px solid transparent;color:var(--tt-ink);font:700 16px/1 var(--tt-font);cursor:pointer}
.tt-tip-amt>input:checked+span{border-color:var(--tt-red);background:var(--tt-sel-bg)}
.tt-tip-amt>input:focus-visible+span{outline:2px solid var(--tt-focus,var(--tt-cyan));outline-offset:2px}
.tt-tip-other{grid-column:1/-1}
.tt-tip-other>span{padding:0 8px}
.tt-tip-other input[type=number]{width:100%;height:100%;border:0;background:none;color:var(--tt-ink);font:700 16px/1 var(--tt-font);text-align:center;outline:none}
.tt-tip-other input[type=number]::placeholder{color:var(--tt-muted);font-weight:600}
.tt-tip-off{display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px;border-radius:8px;background:rgba(250,206,21,.1);color:var(--tt-yellow-text);font-size:13.5px}

/* =========================================================================
   Narrow desktops / tablets: icon-only sidebar
   ========================================================================= */
@media (max-width:1099px) and (min-width:701px){
  :root{--tt-side:76px}
  .tt-side{padding:18px 10px;align-items:center}
  .tt-brand{padding:2px 0 18px}
  .tt-logo-name,.tt-nav-label,.tt-side-sec,.tt-side-foot,.tt-search{display:none}
  .tt-nav .tt-nav-search{display:flex}
  .tt-nav-item{justify-content:center;padding:0;width:52px}
  .tt-side{overflow:visible}
  .tt-menu-side{min-width:230px}
  .tt-dtab{font-size:15px}
  .tt-item{padding-right:84px}
  .tt-panel{width:420px}
  .tt-drop-specs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tt-upload{grid-template-columns:minmax(0,1fr) 240px;gap:24px}
  .tt-phone{width:240px}
  .tt-page{padding:24px 24px 56px}
}
@media (max-width:1200px) and (min-width:701px){
  .tt-player{max-width:calc(100vw - var(--tt-side) - 180px)}
}

/* =========================================================================
   Phones (≤700px): full-screen feed, bottom tab bar
   ========================================================================= */
@media (max-width:700px){
  :root{--tt-tabbar:56px}
  body.tt{--st-preview-bottom:calc(var(--tt-tabbar) + env(safe-area-inset-bottom) + 10px)}
  .tt-m-only{display:flex!important}
  .tt-side,.tt-feed-nav{display:none}
  .tt-main{margin-left:0;padding-bottom:calc(var(--tt-tabbar) + env(safe-area-inset-bottom));min-height:100dvh}
  .tt-page{padding:14px 14px 28px}
  .tt-page-head{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .st-wrap .st-h1{display:none}
  .tt-main>.st-wrap{padding:12px 12px 28px}
  /* Settings → Language: the (longer) Romanian hint above a full-width select */
  .st-wrap form.st-row:has(#st-lang){flex-wrap:wrap;gap:8px}
  .st-wrap #st-lang{max-width:none!important;width:100%}

  /* Tab bar */
  .tt-tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:60;height:calc(var(--tt-tabbar) + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);background:var(--tt-bar-bg);border-top:1px solid var(--tt-line-2)}
  .tt-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--tt-tab-dim);font:600 10px/1 var(--tt-font)}
  .tt-tab.is-active{color:var(--tt-ink)}
  .tt-tab-ic{position:relative;display:grid;place-items:center}
  .tt-tab-ic .tt-ic{width:25px;height:25px}
  .tt-tab .tt-badge{top:-5px;right:-10px;border-color:var(--tt-bar-bg);font-size:10px}
  .tt-plus{position:relative;display:grid;place-items:center;width:46px;height:30px}
  .tt-plus::before,.tt-plus::after{content:"";position:absolute;top:0;bottom:0;width:40px;border-radius:9px}
  .tt-plus::before{left:0;background:var(--tt-cyan)}
  .tt-plus::after{right:0;background:var(--tt-red)}
  .tt-plus svg{position:relative;z-index:1;box-sizing:content-box;width:20px;height:20px;padding:5px 10px;border-radius:8px;background:var(--tt-ink);color:var(--tt-on-ink)}

  /* Title bar */
  .tt-mtop{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;position:sticky;top:0;z-index:30;height:50px;padding:0 4px;
    background:var(--tt-mtop-bg);backdrop-filter:blur(10px);border-bottom:1px solid var(--tt-line-2)}
  .tt-mtop-btn{display:grid;place-items:center;width:44px;height:44px;color:var(--tt-ink)}
  .tt-mtop-title{font:700 17px/1 var(--tt-font);color:var(--tt-ink);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tt-mtop-menu{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;color:var(--tt-ink);padding:0}
  .tt-mtop .tt-menu-right{top:calc(100% + 2px);right:4px}

  /* Feed: true full screen */
  .tt-l-feed .tt-main{height:100dvh;padding-bottom:0}
  body.tt-l-feed{--st-preview-bottom:calc(100dvh - 60px)}
  .tt-l-feed .st-preview-menu{bottom:auto;top:calc(100% + 8px)}
  .tt-feed{height:calc(100dvh - var(--tt-tabbar) - env(safe-area-inset-bottom))}
  .tt-item{height:calc(100dvh - var(--tt-tabbar) - env(safe-area-inset-bottom));padding:0;background:#000}
  .tt-item-inner{width:100%;height:100%;gap:0}
  .tt-player{width:100%;height:100%;max-width:none;aspect-ratio:auto!important;border-radius:0}
  .tt-item .tt-ad-gone{width:100%;height:100%;max-width:none;aspect-ratio:auto;border-radius:0}
  .tt-player.is-wide .tt-media{object-fit:contain!important}
  .tt-rail{position:absolute;right:6px;bottom:18px;z-index:5;gap:10px;width:60px}
  .tt-act-ic,.tt-act:hover .tt-act-ic{background:none;width:44px;height:40px;filter:drop-shadow(0 1px 3px rgba(0,0,0,.45))}
  .tt-act-ic .tt-ic{width:33px;height:33px}
  .tt-act strong{color:#fff;font-size:12px;text-shadow:0 1px 2px rgba(0,0,0,.5)}
  .tt-rail-av .tt-av{border:1.5px solid #fff}
  .tt-info{padding:120px 84px 16px 14px}
  .tt-info-user{font-size:16px}
  .tt-cap{font-size:14px}
  .tt-sound{font-size:13px;max-width:100%}
  .tt-mute{top:auto;bottom:auto;top:58px;right:12px;width:36px;height:36px}
  .tt-feed-top{display:flex;position:fixed;left:0;right:0;top:0;z-index:30;justify-content:center;align-items:center;gap:18px;height:56px;
    padding-top:env(safe-area-inset-top);background:linear-gradient(rgba(0,0,0,.35),transparent);pointer-events:none}
  .tt-feed-top a{pointer-events:auto}
  .tt-ftab{position:relative;padding:8px 2px;color:rgba(255,255,255,.68);font:700 17px/1 var(--tt-font);text-shadow:0 1px 2px rgba(0,0,0,.35)}
  .tt-ftab.is-active{color:#fff}
  .tt-ftab.is-active::after{content:"";position:absolute;left:50%;bottom:-2px;width:26px;height:3px;border-radius:2px;background:#fff;transform:translateX(-50%)}
  .tt-feed-search{position:absolute;right:12px;top:calc(8px + env(safe-area-inset-top));display:grid;place-items:center;width:40px;height:40px;color:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.4))}
  .tt-feed-empty{padding:72px 14px 24px;min-height:100%}
  .tt-textcard{padding:80px 88px 150px 22px}
  .tt-textcard p{font-size:22px}

  /* Grids */
  .tt-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
  .tt-grid-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 8px}
  .tt-tile{border-radius:2px}
  .tt-grid-meta .tt-tile{border-radius:6px}
  .tt-tile-views{left:6px;bottom:6px;font-size:12px}
  .tt-cell-cap{font-size:14px}
  .tt-suggest-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tt-suggest-name{font-size:15px}

  /* Profile: centred like the app */
  .tt-profile{padding:18px 0 28px}
  .tt-prof-head{flex-direction:column;align-items:center;text-align:center;gap:12px;padding:0 14px 14px}
  .tt-prof-av .tt-av{width:96px;height:96px}
  .tt-prof-names{flex-direction:column;align-items:center;gap:2px}
  .tt-prof-user{font-size:20px;justify-content:center}
  .tt-prof-name{font-size:15px;color:var(--tt-muted-2)}
  .tt-prof-id{display:flex;flex-direction:column;align-items:center;width:100%}
  .tt-prof-stats{order:-1;justify-content:center;gap:0;margin:12px 0 0;font-size:13px}
  .tt-prof-stats>a,.tt-prof-stats>span{flex-direction:column;align-items:center;gap:2px;padding:0 18px;position:relative}
  .tt-prof-stats>*+*::before{content:"";position:absolute;left:0;top:25%;height:50%;width:1px;background:var(--tt-border-2)}
  .tt-prof-names{order:-2}
  .tt-profile-actions{justify-content:center;flex-wrap:nowrap;gap:6px;margin:14px 0 10px;max-width:100%}
  .tt-profile-actions .tt-btn{height:38px;padding:0 12px;font-size:15px;min-width:0}
  .tt-profile-actions .tt-btn-icon{width:38px;padding:0;flex:none}
  .tt-profile-actions .tt-btn-wide{min-width:132px}
  .tt-l-long{display:none}
  .tt-l-short{display:inline}
  .tt-prof-bio{margin:0;font-size:14px}
  .tt-prof-tabs{margin:6px 0 2px}
  .tt-prof-tab{flex:1;min-width:0;padding:0;height:44px}
  .tt-prof-tab-label{display:none}
  .tt-prof-tab-ic{display:grid}
  .tt-prof-tab-lock{position:absolute;margin-left:28px;margin-top:-12px;width:12px;height:12px}
  .tt-profile .tt-grid-note{padding:8px 14px 4px;margin:0}
  .tt-profile .tt-empty{padding:48px 20px}

  /* Detail: full-screen player with the rail, comments below, sticky input */
  .tt-detail{display:block;height:auto;overflow:visible}
  body.tt-l-detail{--st-preview-bottom:calc(100dvh - 110px)}
  .tt-l-detail .st-preview-menu{bottom:auto;top:calc(100% + 8px)}
  .tt-stage{height:calc(100dvh - 64px - env(safe-area-inset-bottom))}
  .tt-stage.is-tall .tt-stage-media{object-fit:cover!important}
  .tt-stage-m{display:block}
  .tt-stage-m .tt-info{z-index:3}
  .tt-stage .tt-mute{top:16px;right:12px}
  .tt-stage-close{left:12px;top:12px}
  .tt-stage.is-text .tt-stage-text{position:absolute;inset:0;width:auto;max-height:none;border-radius:0;aspect-ratio:auto;padding:80px 88px 150px 22px}
  .tt-panel{width:auto;border:0;display:block}
  .tt-panel-scroll{overflow:visible;padding:8px 14px calc(80px + env(safe-area-inset-bottom))}
  .tt-pcard,.tt-pacts,.tt-copy{display:none}
  .tt-dtabs{margin-top:4px}
  .tt-dtabs-bar{top:0}
  .tt-dtab{font-size:14px}
  .tt-l-detail .tt-cform{position:fixed;left:0;right:0;bottom:0;z-index:50;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--tt-bar-bg)}
  .tt-sheet{inset:auto 0 0 0;width:100vw;height:74dvh;max-height:74dvh;border:0;border-radius:14px 14px 0 0;animation:tt-sheet-up .25s ease}
  .tt-sheet.tt-share{inset:auto 0 0 0;margin:0;width:100vw;height:auto;max-height:86dvh;border:0;border-radius:14px 14px 0 0;animation:tt-sheet-up .25s ease}
  .tt-share-body{padding:16px 14px calc(18px + env(safe-area-inset-bottom))}
  .tt-share-row{gap:14px 4px}
  .tt-share-act{width:76px}
  .tt-ad-cta{max-width:none;height:42px}
  .tt-sheet .tt-cform{padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--tt-bar-bg)}
  .tt-sheet-scroll{padding:4px 14px 10px}
  .tt-replies{padding-left:44px}
  .tt-replies-fold summary{margin-left:52px}

  /* Explore / search */
  .tt-msearch{display:flex;align-items:center;gap:8px;height:40px;margin:0 0 14px;padding:0 14px;border-radius:8px;background:var(--tt-surface-2);color:var(--tt-muted)}
  .tt-msearch input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;color:var(--tt-ink);font-size:16px}
  .tt-chips{margin:0 -14px 18px;padding:2px 14px}
  .tt-chip{height:32px;padding:0 14px;font-size:14px}
  .tt-sounds{grid-auto-columns:minmax(230px,78%);margin:0 -14px;padding:0 14px 4px}
  .tt-sec-title{font-size:17px}
  .tt-hero{grid-template-columns:112px minmax(0,1fr);column-gap:16px;margin:4px 0 18px}
  .tt-hero>.tt-hero-cover{grid-row:1}
  .tt-hero>.tt-hero-main{align-self:center}
  .tt-hero-cover{width:112px;height:112px}
  .tt-hero-cover-tag .tt-ic-xl{width:48px;height:48px}
  .tt-hero-title{font-size:22px}
  .tt-hero-sub{font-size:15px;margin-top:4px}
  .tt-hero-actions{grid-column:1 / -1;margin-top:14px}
  .tt-hero-actions .tt-btn-wide{min-width:0;flex:1}
  .tt-subtabs{margin:0 -14px 14px;padding:0 6px}
  .tt-subtab{padding:0 12px;font-size:15px}
  .tt-bigsearch{gap:6px;margin:-4px -4px 12px}
  .tt-bigsearch-box{height:40px;border-radius:8px}
  .tt-bigsearch-go{height:40px;padding:0 12px;background:none;color:var(--tt-red)}
  .tt-trends{grid-template-columns:1fr}
  .tt-user-btns .tt-btn-sm{padding:0 12px}
  .tt-user-bio{display:none}

  /* Activity / messages */
  .tt-pills{margin:0 -14px 12px;padding:2px 14px}
  .tt-note{margin:0 -6px;padding:10px 6px}
  .tt-l-full .tt-main{height:auto;overflow:visible}
  .tt-dm{display:block;height:auto;min-height:calc(100dvh - var(--tt-tabbar));border:0}
  .tt-dm-list{border:0;overflow:visible}
  .tt-dm-list-head{position:sticky;top:0;padding:4px 8px;height:50px;justify-content:space-between;border-bottom:1px solid var(--tt-line-2)}
  .tt-dm-list-head h1{font-size:17px;position:absolute;left:50%;transform:translateX(-50%)}
  .tt-dm-item{padding:10px 14px}
  .tt-dm:not(.has-open) .tt-dm-thread{display:none}
  .tt-dm.has-open .tt-dm-list{display:none}
  body.tt-dm-open .tt-mtop,body.tt-dm-open .tt-tabbar{display:none}
  body.tt-dm-open .tt-main{padding-bottom:0}
  body.tt-dm-open{--st-preview-bottom:calc(100dvh - 120px)}
  body.tt-dm-open .st-preview-menu{bottom:auto;top:calc(100% + 8px)}
  .tt-dm.has-open{height:100dvh;display:flex;flex-direction:column}
  .tt-dm.has-open .tt-dm-thread{flex:1;min-height:0}
  .tt-dm-thead{height:60px;padding:0 8px;gap:4px}
  .tt-dm-back{display:grid}
  .tt-dm-who .tt-av{width:40px;height:40px}
  .tt-dm-body{padding:12px 14px}
  .tt-msg{max-width:82%}
  .tt-dm-compose{padding:10px 12px calc(10px + env(safe-area-inset-bottom))}

  /* Upload */
  .tt-upload{grid-template-columns:1fr;gap:18px}
  .tt-upload-side{position:static;order:-1;display:none}
  .has-file .tt-upload-side{display:flex;justify-content:center}
  .tt-phone{width:min(240px,70vw)}
  .tt-drop{min-height:260px}
  .tt-drop-specs{grid-template-columns:1fr 1fr;gap:12px}
  .tt-upload-btns .tt-btn-wide{min-width:0;flex:1}

  /* Auth, 404 */
  .tt-l-auth .tt-solo{padding:16px 12px;align-items:start}
  .tt-auth-card{padding:28px 18px 22px}
  .tt-auth-title{font-size:24px}
  .tt-404-art{font-size:96px}
  .tt-empty{padding:48px 16px}
  .st-toasts{top:12px}
}

@keyframes tt-sheet-up{from{transform:translateY(60px);opacity:.4}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){
  .tt-disc,.tt-marquee.is-long .tt-marquee-in,.tt-spin{animation:none}
  .tt-feed{scroll-behavior:auto}
  *{transition-duration:.01ms!important}
}

/* =========================================================================
   Appearance — TikTok's light mode (the dark above is the default). html[data-theme=light] forces it;
   data-appearance="device" follows the device (appearance_attr()). The video column, players, the
   upload phone preview and the mobile For You feed stay black with white text, like tiktok.com.
   ========================================================================= */
:root[data-theme=light]{color-scheme:light;
  --tt-bg:#fff; --tt-surface:#f8f8f8; --tt-surface-2:#f1f1f2; --tt-surface-3:#e3e3e4;
  --tt-hover:rgba(22,24,35,.04); --tt-hover-2:rgba(22,24,35,.06); --tt-glass:rgba(22,24,35,.06); --tt-glass-hover:rgba(22,24,35,.1);
  --tt-text:#161823; --tt-ink:#161823; --tt-on-ink:#fff; --tt-muted:rgba(22,24,35,.6); --tt-muted-2:rgba(22,24,35,.75);
  --tt-border:rgba(22,24,35,.12); --tt-border-2:rgba(22,24,35,.2); --tt-line-soft:rgba(22,24,35,.06); --tt-line-2:rgba(22,24,35,.12);
  --tt-menu-bg:#fff; --tt-row-hover:#f1f1f2; --tt-sel-bg:#fff1f4; --tt-quick-hover:#f8f8f8; --tt-detail-bg:#fff;
  --tt-bar-bg:#fff; --tt-mtop-bg:rgba(255,255,255,.94); --tt-tab-dim:rgba(22,24,35,.6); --tt-scroll:rgba(22,24,35,.18);
  --tt-danger-text:#d61f47; --tt-alert-text:#c4153a; --tt-cyan-text:#0b7f7c; --tt-yellow-text:#806300; --tt-red-text:#d0103a; --tt-focus:#0b7f7c;
  --tt-shadow:0 2px 12px rgba(0,0,0,.12),0 0 0 1px rgba(22,24,35,.06); --st-surface:#fff;}
@media (prefers-color-scheme:light){:root[data-appearance=device]{color-scheme:light;
    --tt-bg:#fff; --tt-surface:#f8f8f8; --tt-surface-2:#f1f1f2; --tt-surface-3:#e3e3e4;
    --tt-hover:rgba(22,24,35,.04); --tt-hover-2:rgba(22,24,35,.06); --tt-glass:rgba(22,24,35,.06); --tt-glass-hover:rgba(22,24,35,.1);
    --tt-text:#161823; --tt-ink:#161823; --tt-on-ink:#fff; --tt-muted:rgba(22,24,35,.6); --tt-muted-2:rgba(22,24,35,.75);
    --tt-border:rgba(22,24,35,.12); --tt-border-2:rgba(22,24,35,.2); --tt-line-soft:rgba(22,24,35,.06); --tt-line-2:rgba(22,24,35,.12);
    --tt-menu-bg:#fff; --tt-row-hover:#f1f1f2; --tt-sel-bg:#fff1f4; --tt-quick-hover:#f8f8f8; --tt-detail-bg:#fff;
    --tt-bar-bg:#fff; --tt-mtop-bg:rgba(255,255,255,.94); --tt-tab-dim:rgba(22,24,35,.6); --tt-scroll:rgba(22,24,35,.18);
    --tt-danger-text:#d61f47; --tt-alert-text:#c4153a; --tt-cyan-text:#0b7f7c; --tt-yellow-text:#806300; --tt-red-text:#d0103a; --tt-focus:#0b7f7c;
    --tt-shadow:0 2px 12px rgba(0,0,0,.12),0 0 0 1px rgba(22,24,35,.06); --st-surface:#fff;}}
:root[data-theme=light] .tt-search input::-webkit-search-cancel-button{filter:none}
@media (prefers-color-scheme:light){:root[data-appearance=device] .tt-search input::-webkit-search-cancel-button{filter:none}}
/* Always dark: video players, the detail stage, the phone preview, suggested-account cards (a no-op in dark) */
.tt-player,.tt-stage,.tt-phone,.tt-suggest{color-scheme:dark;--tt-ink:#fff;--tt-on-ink:#000;--tt-text:rgba(255,255,255,.9);--tt-muted:rgba(255,255,255,.5);
  --tt-muted-2:rgba(255,255,255,.75);--tt-glass:rgba(255,255,255,.12);--tt-glass-hover:rgba(255,255,255,.18);--tt-border:rgba(255,255,255,.12);
  --tt-border-2:rgba(255,255,255,.2);--tt-surface:#1E1E1E;--tt-surface-2:#2F2F2F;--tt-hover:rgba(255,255,255,.06);--tt-hover-2:rgba(255,255,255,.1);
  --tt-bar-bg:#000;--tt-tab-dim:rgba(255,255,255,.62);--tt-line-2:rgba(255,255,255,.08);--tt-focus:var(--tt-cyan);--tt-cyan-text:var(--tt-cyan)}
@media (max-width:700px){
  .tt-item,.tt-l-feed .tt-tabbar{color-scheme:dark;--tt-ink:#fff;--tt-on-ink:#000;--tt-text:rgba(255,255,255,.9);--tt-muted:rgba(255,255,255,.5);
  --tt-muted-2:rgba(255,255,255,.75);--tt-glass:rgba(255,255,255,.12);--tt-glass-hover:rgba(255,255,255,.18);--tt-border:rgba(255,255,255,.12);
  --tt-border-2:rgba(255,255,255,.2);--tt-surface:#1E1E1E;--tt-surface-2:#2F2F2F;--tt-hover:rgba(255,255,255,.06);--tt-hover-2:rgba(255,255,255,.1);
  --tt-bar-bg:#000;--tt-tab-dim:rgba(255,255,255,.62);--tt-line-2:rgba(255,255,255,.08);--tt-focus:var(--tt-cyan);--tt-cyan-text:var(--tt-cyan)}
}

/* The "Dark mode" row in the More menu: a TikTok-style switch */
.tt-menu-ap{margin:0;display:block}
.tt-menu-switch{cursor:pointer}
.tt-switch{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:44px;height:24px;margin:0;border-radius:999px;background:var(--tt-surface-3);
  cursor:pointer;transition:background .2s}
.tt-switch::after{content:"";position:absolute;left:2px;top:2px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
.tt-switch:checked{background:var(--tt-cyan-text)}
.tt-switch:checked::after{transform:translateX(20px)}
