
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#000;--accent:#fe2c55;--accent2:#25f4ee;--text:#fff;--muted:rgba(255,255,255,.75);--safe-b:env(safe-area-inset-bottom,0px);--tt-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
html,body,#app{height:100%;overflow:hidden;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Noto Color Emoji','Apple Color Emoji',sans-serif;-webkit-tap-highlight-color:transparent}
.cp-emoji{display:inline-block;vertical-align:middle;object-fit:contain;user-select:none;-webkit-user-drag:none}
.cp-emoji-sm{width:22px!important;height:22px!important}
.cp-emoji-md{width:36px!important;height:36px!important}
.cp-emoji-lg{width:52px!important;height:52px!important}
.cp-emoji-xl{width:72px!important;height:72px!important}
.cp-emoji-glow{filter:drop-shadow(0 2px 8px rgba(255,255,255,.35)) drop-shadow(0 0 16px rgba(254,44,85,.25))}
.cp-emoji-pop{animation:emojiPop .45s cubic-bezier(.34,1.56,.64,1)}
@keyframes emojiPop{0%{transform:scale(.2) rotate(-12deg);opacity:0}70%{transform:scale(1.15) rotate(4deg);opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
.cp-emoji-float{animation:emojiFloat 2.5s ease-in-out infinite}
@keyframes emojiFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.hidden{display:none!important}
#splash{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--bg);z-index:9999;gap:.75rem}
.splash-tagline{color:var(--muted);font-size:1.9rem;margin:0}
.brand-logo{display:block;object-fit:contain;user-select:none;-webkit-user-drag:none}
.brand-logo--splash{width:min(560px,82vw);height:auto;animation:logoPulse 1.8s ease infinite}
.brand-logo--auth{width:min(440px,78vw);height:auto;margin:0 auto 1rem}
@keyframes logoPulse{0%,100%{transform:scale(1);filter:drop-shadow(0 0 0 transparent)}50%{transform:scale(1.03);filter:drop-shadow(0 8px 24px rgba(254,44,85,.25))}}
.landing-screen{position:fixed;inset:0;z-index:9000;overflow-y:auto;background:#fff;color:#161823}
@media(max-width:991px){
  .landing-screen{background:var(--bg);color:var(--text);
    background-image:radial-gradient(ellipse 90% 55% at 50% -15%,rgba(254,44,85,.18),transparent)}
}
.landing-wrap{max-width:1200px;margin:0 auto;padding:1.25rem 1.25rem calc(1.5rem + var(--safe-b));display:grid;gap:1.75rem;align-items:center;min-height:100%;min-height:100dvh}
@media(min-width:820px){.landing-wrap{grid-template-columns:1.1fr .9fr;gap:2.5rem;padding:2rem 2rem 2.5rem}}
.landing-hero{text-align:left}
.brand-logo--landing{width:min(400px,78vw);height:auto;margin-bottom:1rem}
.landing-kicker{font-size:1.56rem;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);margin:0 0 .65rem;font-weight:700}
.landing-title{font-size:clamp(3.3rem,10vw,4.7rem);line-height:1.12;margin:0 0 1.25rem;font-weight:800}
.landing-lead{color:#d1d5db;font-size:1.9rem;line-height:1.5;margin:0 0 1.75rem;max-width:42rem}
.landing-lead strong{color:#fff}
.landing-features{list-style:none;margin:0;padding:0;display:grid;gap:.85rem}
.landing-features li{display:flex;align-items:flex-start;gap:.85rem;font-size:1.76rem;color:var(--muted);line-height:1.35}
.landing-feat-icon{flex-shrink:0;font-size:2.2rem;line-height:1.2}
.landing-auth{display:flex;justify-content:center}
.landing-auth-card{width:100%;max-width:400px;background:#12121a;border:1px solid #2a2a35;border-radius:20px;padding:1.15rem 1.15rem 1rem;box-shadow:0 18px 50px rgba(0,0,0,.45)}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;margin-bottom:.85rem;background:#0a0a0f;border-radius:12px;padding:.3rem}
.auth-tab{border:none;background:transparent;color:var(--muted);padding:.55rem .5rem;border-radius:10px;font-weight:700;font-size:.88rem;cursor:pointer}
.auth-tab.active{background:var(--accent);color:#fff}
.auth-panel-hint{font-size:.82rem;color:var(--muted);margin:0 0 .85rem;line-height:1.4;min-height:2.4em}
.auth-label{display:block;font-size:.78rem;color:var(--muted);margin-bottom:.35rem;text-align:left}
.landing-auth-card input,.landing-auth-card select.auth-gender{width:100%;padding:.85rem 1rem;margin-bottom:.75rem;border:1px solid #333;border-radius:12px;background:#16161f;color:var(--text);font-size:1rem}
.landing-legal{font-size:.7rem;color:#6b7280;margin:.65rem 0 0;line-height:1.35;text-align:center}
.tagline{color:var(--muted);margin-bottom:1.5rem}
.btn-primary{width:100%;padding:.9rem;border:none;border-radius:12px;background:var(--accent);color:#fff;font-size:1rem;font-weight:600;cursor:pointer;margin-bottom:.5rem}
.btn-ghost{width:100%;padding:.75rem;border:1px solid #444;border-radius:12px;background:transparent;color:var(--muted);cursor:pointer}
.btn-danger{padding:.75rem 1.5rem;border:none;border-radius:12px;background:#c00;color:#fff;cursor:pointer}
.error{color:var(--accent);font-size:.85rem;margin-top:.5rem;min-height:1.2em}
.niche-screen{position:fixed;inset:0;z-index:8000;display:flex;flex-direction:column;background:#08080d;
  background-image:radial-gradient(ellipse 70% 50% at 15% -5%,rgba(254,44,85,.2),transparent),radial-gradient(ellipse 55% 40% at 95% 5%,rgba(37,244,238,.08),transparent)}
.niche-head{flex-shrink:0;padding:calc(env(safe-area-inset-top,0px) + 1rem) 1rem .5rem}
.niche-title{margin:0;font-size:1.55rem;font-weight:800;line-height:1.2;letter-spacing:-.02em}
.niche-sub{margin:.45rem 0 .85rem;color:#9ca3af;font-size:.9rem;line-height:1.45}
.niche-progress{display:flex;gap:.55rem;margin-bottom:1rem}
.niche-dot{width:11px;height:11px;border-radius:50%;background:#2a2a36;border:2px solid #3a3a48;transition:all .22s ease}
.niche-dot.on{background:var(--accent);border-color:var(--accent);box-shadow:0 0 14px rgba(254,44,85,.55);transform:scale(1.08)}
.niche-search-box{display:flex;align-items:center;gap:.6rem;padding:.72rem 1rem;border-radius:16px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);backdrop-filter:blur(8px);margin-bottom:.85rem}
.niche-search-icon{font-size:1rem;opacity:.55}
.niche-search-box input{flex:1;border:none;background:transparent;color:var(--text);font-size:1rem;outline:none;min-width:0}
.niche-search-box input::placeholder{color:#6b7280}
.niche-cat-rail{display:flex;gap:.55rem;overflow-x:auto;padding:.15rem .1rem .35rem;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.niche-cat-rail::-webkit-scrollbar{display:none}
.niche-cat-btn{flex:0 0 auto;width:52px;height:52px;border-radius:16px;border:2px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);
  font-size:1.45rem;line-height:1;cursor:pointer;transition:transform .15s,border-color .15s,background .15s,box-shadow .15s}
.niche-cat-btn.active{border-color:var(--accent);background:rgba(254,44,85,.18);box-shadow:0 8px 22px rgba(254,44,85,.22)}
.niche-cat-btn:active{transform:scale(.94)}
.niche-scroll{flex:1;overflow-y:auto;padding:.35rem 1rem 6rem;-webkit-overflow-scrolling:touch}
.niche-card-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}
@media(min-width:520px){.niche-card-grid{grid-template-columns:repeat(3,1fr);gap:.85rem}}
.niche-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;min-height:118px;padding:.85rem .65rem;
  border-radius:20px;border:2px solid rgba(255,255,255,.07);background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
  color:#f3f4f6;text-align:center;cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s,background .18s}
.niche-card:hover{border-color:rgba(255,255,255,.16);background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.03))}
.niche-card.selected{border-color:var(--accent);background:linear-gradient(160deg,rgba(254,44,85,.22),rgba(37,244,238,.06));
  box-shadow:0 10px 28px rgba(254,44,85,.2),inset 0 0 0 1px rgba(254,44,85,.25)}
.niche-card:active{transform:scale(.97)}
.niche-card.hidden-niche{display:none}
.niche-card-check{position:absolute;top:.55rem;right:.55rem;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;
  font-size:.72rem;font-weight:800;line-height:22px;text-align:center;opacity:0;transform:scale(.6);transition:opacity .18s,transform .18s}
.niche-card.selected .niche-card-check{opacity:1;transform:scale(1)}
.niche-card-emoji{font-size:2.15rem;line-height:1;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
.niche-card-label{font-size:.86rem;font-weight:700;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.niche-empty{margin:2rem .5rem 0;text-align:center;color:#6b7280;font-size:.92rem;line-height:1.5}
.niche-bottom{flex-shrink:0;padding:.75rem 1rem calc(.75rem + var(--safe-b));border-top:1px solid rgba(255,255,255,.06);
  background:rgba(8,8,13,.92);backdrop-filter:blur(12px)}
.niche-save-btn{width:100%;padding:1rem;border:none;border-radius:18px;background:#2a2a36;color:#8b8fa0;
  font-size:1.05rem;font-weight:800;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.niche-save-btn:not(:disabled){background:linear-gradient(135deg,var(--accent),#ff4d6d);color:#fff;box-shadow:0 14px 34px rgba(254,44,85,.32)}
.tt-sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;z-index:300;display:flex;flex-direction:column;padding:16px 10px 20px;background:#fff;border-right:1px solid rgba(22,24,35,.12);color:#161823}
.tt-side-logo{display:block;padding:8px 12px 16px}
.tt-side-logo img{height:28px;width:auto;display:block;object-fit:contain}
.tt-side-search{display:flex;align-items:center;gap:8px;margin:0 8px 12px;padding:10px 12px;border-radius:999px;background:#f1f1f2;color:#8a8b91}
.tt-side-search input{flex:1;border:none;background:transparent;color:#161823;font-size:15px;outline:none;min-width:0}
.tt-side-search input::placeholder{color:#8a8b91}
.tt-side-nav{display:flex;flex-direction:column;gap:2px;flex:1;overflow-y:auto}
.tt-side-item{display:flex;align-items:center;gap:14px;width:100%;padding:10px 14px;border:none;border-radius:8px;background:transparent;color:#161823;font-size:18px;font-weight:600;cursor:pointer;text-align:left}
.tt-side-item svg{flex-shrink:0;color:#161823}
.tt-side-item:hover{background:#f8f8f8}
.tt-side-item.active{color:#fe2c55}
.tt-side-item.active svg{color:#fe2c55}
.tt-side-footer{margin-top:auto;padding:12px 14px 0;font-size:12px;color:#8a8b91}
body.tt-logged-in .tt-page{left:0}
@media(min-width:992px){
  body.tt-logged-in .tt-page{left:240px;width:calc(100% - 240px)}
  body.tt-logged-in .tt-sidebar{display:flex}
  .tt-mobile-only{display:none!important}
  .tt-desktop-only{display:flex!important}
}
@media(max-width:991px){
  .tt-sidebar{display:none!important}
  .tt-desktop-only{display:none!important}
  body.tt-logged-in .tt-page{left:0;width:100%}
}
.tt-page{position:fixed;inset:0;display:flex;flex-direction:column;background:#fff;color:#161823}
.tt-app{background:#000}
@media(min-width:992px){.tt-app{background:#fff}}
#main-screen{position:fixed;inset:0;display:flex;flex-direction:column}
.tt-top-bar{position:absolute;top:0;left:0;right:0;z-index:100;display:grid;grid-template-columns:64px 1fr 44px;align-items:center;padding:calc(env(safe-area-inset-top,10px) + 6px) .65rem 10px;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.45),transparent)}
.tt-top-bar>*{pointer-events:auto}
.tt-live-btn{justify-self:start;padding:.28rem .55rem;border:1.5px solid rgba(255,255,255,.85);border-radius:4px;background:transparent;color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.04em;cursor:pointer}
.tt-feed-tabs{display:flex;justify-content:center;gap:1.15rem}
.tab{background:none;border:none;color:rgba(255,255,255,.55);font-size:1.05rem;font-weight:700;cursor:pointer;padding:.35rem .15rem;position:relative;font-family:var(--tt-font)}
.tab.active{color:#fff}
.tab.active::after{content:'';position:absolute;left:50%;bottom:0;width:22px;height:3px;margin-left:-11px;background:#fff;border-radius:2px}
.tt-top-search{justify-self:end;width:40px;height:40px;border:none;border-radius:50%;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tt-stage{flex:1;display:flex;align-items:center;justify-content:center;position:relative;min-height:0;background:#000}
@media(min-width:992px){.tt-stage{background:#fff}}
.tt-player-column{display:flex;align-items:flex-end;justify-content:center;gap:20px;max-width:100%;max-height:100%;padding:16px 0}
.tt-player-frame{position:relative;flex-shrink:0;background:#000;overflow:hidden;border-radius:0;width:100%;height:100%}
@media(min-width:992px){
  .tt-player-frame{width:auto;height:calc(100vh - 32px);max-height:calc(100vh - 32px);aspect-ratio:9/16;max-width:min(692px,calc((100vh - 32px) * 9 / 16));border-radius:12px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
}
#feed-container,.tt-feed{width:100%;height:100%;overflow-y:scroll;scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch;background:#000}
.feed-item{position:relative;width:100%;height:100%;min-height:100%;scroll-snap-align:start;scroll-snap-stop:always;background:#000}
@media(max-width:991px){.feed-item{height:100vh;height:100dvh}}
.feed-item video,.feed-item img{width:100%;height:100%;object-fit:cover}
.feed-media-wrap{position:absolute;inset:0}
.tt-scroll-btns{position:absolute;right:24px;top:50%;transform:translateY(-50%);flex-direction:column;gap:8px;z-index:60}
.tt-scroll-btn{width:40px;height:40px;border-radius:50%;border:1px solid rgba(22,24,35,.12);background:#fff;color:#161823;font-size:14px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.tt-scroll-btn:hover{background:#f8f8f8}
.feed-ad{position:relative;width:100%;height:100%;min-height:100%;scroll-snap-align:start;scroll-snap-stop:always;background:#000;display:flex;flex-direction:column;align-items:center;justify-content:center}
@media(max-width:991px){.feed-ad{height:100vh;height:100dvh}}
.feed-ad iframe{width:100%;height:100%;border:0}
.feed-ad-label{position:absolute;top:calc(env(safe-area-inset-top,12px) + 12px);left:1rem;background:rgba(0,0,0,.7);padding:.35rem .75rem;border-radius:8px;font-size:.75rem;color:var(--muted);z-index:2}
.feed-ad-skip{position:absolute;bottom:calc(90px + var(--safe-b));right:1rem;z-index:2;padding:.6rem 1rem;border:none;border-radius:20px;background:rgba(255,255,255,.2);color:#fff;font-weight:600;cursor:pointer;backdrop-filter:blur(8px)}
.feed-ad-skip:disabled{opacity:.5;cursor:default}
.premium-badge{display:inline-block;background:linear-gradient(135deg,#ffd700,#ff8c00);color:#000;font-size:.7rem;font-weight:700;padding:.15rem .5rem;border-radius:6px;margin-left:.4rem}
#premium-panel{background:#16161f;border-radius:12px;padding:1rem;margin:1rem 0}
#premium-panel ul{margin:.75rem 0 .75rem 1.2rem;font-size:.9rem;color:var(--muted)}
#premium-panel li{margin:.35rem 0}
.tt-feed-info{position:absolute;left:0;right:72px;bottom:calc(58px + var(--safe-b));padding:0 12px 10px;z-index:4;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.35) 30%,rgba(0,0,0,.55));pointer-events:none}
.tt-feed-info *{pointer-events:auto}
.tt-feed-user-row{display:flex;align-items:center;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.tt-feed-username{font-weight:700;font-size:16px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.tt-feed-follow-btn{padding:5px 14px;border:none;border-radius:4px;background:var(--accent);color:#fff;font-size:13px;font-weight:700;cursor:pointer}
.tt-feed-caption{font-size:14px;line-height:1.35;color:#fff;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.tt-feed-tags{font-size:14px;color:#fff;opacity:.95;margin-bottom:8px}
.tt-feed-sound{display:flex;align-items:center;gap:8px;overflow:hidden;max-width:100%}
.tt-sound-icon{font-size:13px;color:#fff;flex-shrink:0}
.tt-sound-marquee{overflow:hidden;white-space:nowrap;flex:1;min-width:0}
.tt-sound-marquee span{display:inline-block;font-size:13px;color:#fff;animation:ttMarquee 12s linear infinite}
@keyframes ttMarquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.feed-author,.feed-caption,.feed-tags{display:none}
.verified{color:var(--accent2)}
.tt-action-bar{position:absolute;right:6px;bottom:calc(52px + var(--safe-b));z-index:50;display:flex;flex-direction:column;align-items:center}
@media(min-width:992px){.tt-action-bar{position:static;bottom:auto;right:auto;padding-bottom:72px}}
.tt-action-stack{display:flex;flex-direction:column;align-items:center;gap:20px}
.tt-action{background:none;border:none;color:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;font-family:var(--tt-font)}
.tt-action span{font-size:12px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.65)}
@media(min-width:992px){.tt-action{color:#161823}.tt-action span{color:#161823;text-shadow:none;font-size:13px}}
.tt-action:active{transform:scale(.9)}
.tt-action--liked .tt-svg{color:var(--accent);filter:drop-shadow(0 0 6px rgba(254,44,85,.6))}
.tt-action--saved .tt-svg{color:var(--accent)}
.tt-action--extra{opacity:.85}
.tt-svg{width:34px;height:34px;display:block;filter:drop-shadow(0 2px 4px rgba(0,0,0,.55))}
@media(min-width:992px){.tt-svg{width:32px;height:32px;filter:none;color:#161823}}
.tt-action-avatar-wrap{position:relative;margin-bottom:4px}
.tt-action-avatar{width:48px;height:48px;border-radius:50%;border:2px solid #fff;padding:0;overflow:hidden;background:#222;cursor:pointer}
.tt-action-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.tt-action-follow{position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);width:22px;height:22px;border-radius:50%;border:none;background:var(--accent);color:#fff;font-size:16px;font-weight:700;line-height:22px;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.tt-disc{width:40px;height:40px;border-radius:50%;border:8px solid #222;border-top-color:#fff;border-right-color:rgba(255,255,255,.35);animation:ttSpin 4s linear infinite;margin-top:4px;overflow:hidden;background:#111}
.tt-disc img{width:100%;height:100%;object-fit:cover;border-radius:50%}
@keyframes ttSpin{to{transform:rotate(360deg)}}
.action-btn,.action-icon,.avatar-ring{display:none}
.tt-bottom-nav{position:absolute;bottom:0;left:0;right:0;z-index:100;display:flex;justify-content:space-around;align-items:flex-end;padding:6px 8px calc(4px + var(--safe-b));background:#000}
.tt-bottom-nav button{background:none;border:none;color:rgba(255,255,255,.55);cursor:pointer;padding:6px 10px;display:flex;align-items:center;justify-content:center;min-width:48px;min-height:44px}
.tt-bottom-nav button.active{color:#fff}
.tt-nav-svg{width:26px;height:26px;display:block}
.tt-create-btn{padding:0 4px 2px!important;min-width:56px!important;background:transparent!important}
.tt-create-outer{display:flex;align-items:center;justify-content:center;width:48px;height:30px;border-radius:8px;background:linear-gradient(135deg,#25f4ee,#fe2c55);padding:2px}
.tt-create-inner{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:6px;background:#000;color:#fff;font-size:22px;font-weight:300;line-height:1}
.tt-sheet .modal-inner{background:#fff;border-radius:12px 12px 0 0;padding:0;max-height:75vh}
.tt-comment-sheet{display:flex;flex-direction:column;max-height:75vh}
.tt-sheet-handle{width:40px;height:4px;border-radius:2px;background:#d9d9d9;margin:10px auto 8px}
.tt-comment-sheet h3{font-size:16px;font-weight:700;text-align:center;margin:0;padding:12px 16px;border-bottom:1px solid #f1f1f2;color:#161823}
.tt-comment-list{flex:1;overflow-y:auto;padding:8px 16px;min-height:200px}
.tt-comment-compose{display:flex;align-items:center;gap:8px;padding:12px 16px calc(12px + var(--safe-b));border-top:1px solid #f1f1f2;background:#fff}
.tt-comment-compose input{flex:1;margin:0;padding:10px 14px;border:1px solid #e8e8e8;border-radius:999px;background:#f1f1f2;color:#161823;font-size:15px}
.tt-comment-send{border:none;background:transparent;color:#fe2c55;font-size:15px;font-weight:700;cursor:pointer;white-space:nowrap;padding:8px}
.tt-comment-send:disabled{color:#b0b0b0}
@media(max-width:991px){
  .tt-sheet .modal-inner{background:#121212}
  .tt-comment-sheet h3{color:#fff;border-bottom-color:#2a2a2a}
  .tt-comment-compose{background:#121212;border-top-color:#2a2a2a}
  .tt-comment-compose input{background:#2a2a2a;border-color:#333;color:#fff}
}
.modal{position:fixed;inset:0;z-index:5000;background:rgba(0,0,0,.85);display:flex;align-items:flex-end;justify-content:center}
.modal-inner{width:100%;max-width:480px;background:#16161f;border-radius:20px 20px 0 0;padding:1.5rem;max-height:85vh;overflow-y:auto}
.modal textarea,.modal input[type=text],#comment-input{width:100%;padding:.75rem;margin:.75rem 0;border:1px solid #333;border-radius:10px;background:#0a0a0f;color:#fff}
.safety-actions{display:flex;flex-direction:column;gap:.5rem;margin:.75rem 0}
.safety-actions button{width:100%;padding:.85rem;border-radius:12px;font-weight:600;cursor:pointer;border:1px solid #333;background:#16161f;color:#fff}
.safety-actions button.danger{border-color:#a00;background:rgba(170,0,0,.2);color:#ff6b6b}
.report-reasons{display:flex;flex-direction:column;gap:.4rem;margin:.75rem 0;max-height:40vh;overflow-y:auto}
.report-reasons label{display:flex;align-items:center;gap:.6rem;padding:.65rem .75rem;border:1px solid #333;border-radius:10px;background:#0a0a0f;cursor:pointer;font-size:.9rem}
.report-reasons input{accent-color:var(--accent)}
.comment-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.comment-report{border:none;background:transparent;color:#888;font-size:1.1rem;cursor:pointer;padding:.15rem .35rem}
.comment-body{font-size:.9rem;line-height:1.4}
.blocked-list{display:flex;flex-direction:column;gap:.5rem;margin:.5rem 0 1rem;max-height:200px;overflow-y:auto}
.blocked-item{display:flex;align-items:center;gap:.65rem;padding:.5rem;border:1px solid #333;border-radius:10px;background:#0a0a0f}
.blocked-item img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.blocked-item .blocked-name{flex:1;font-size:.85rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.blocked-item button{padding:.35rem .65rem;border:1px solid #555;border-radius:8px;background:transparent;color:#ccc;font-size:.75rem;cursor:pointer}
.feed-more-btn{position:absolute;top:calc(env(safe-area-inset-top,12px) + 8px);right:4.5rem;z-index:3;width:36px;height:36px;border:none;border-radius:50%;background:rgba(0,0,0,.45);color:#fff;font-size:1.1rem;cursor:pointer;backdrop-filter:blur(6px)}
#gift-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.65rem;margin:1rem 0}
.gift-item{padding:.85rem .5rem;border:1px solid rgba(255,255,255,.08);border-radius:16px;text-align:center;cursor:pointer;background:linear-gradient(160deg,rgba(255,255,255,.06),rgba(255,255,255,.02));transition:transform .2s,border-color .2s,box-shadow .2s}
.gift-item:hover,.gift-item:active{border-color:var(--accent2);transform:scale(1.04);box-shadow:0 8px 24px rgba(37,244,238,.15)}
.gift-item-label{font-size:.72rem;color:#ddd;margin-top:.35rem;font-weight:600}
.gift-item-coins{font-size:.68rem;color:var(--accent2);margin-top:.15rem}
.gift-item-emoji-wrap{display:flex;align-items:center;justify-content:center;min-height:76px}
.tt-profile{background:#fff;color:#161823}
@media(max-width:991px){.tt-profile{background:#000;color:#fff}}
.tt-inbox{background:#fff;color:#161823}
@media(max-width:991px){.tt-inbox{background:#000;color:#fff}}
#profile-screen{position:fixed;inset:0;z-index:200;background:inherit;overflow-y:auto;display:flex;flex-direction:column}
.profile-btn-follow{border-radius:4px;background:#fe2c55}
.profile-top-bar{display:flex;align-items:center;justify-content:space-between;padding:.65rem 1rem;border-bottom:1px solid #f1f1f2;position:sticky;top:0;background:inherit;z-index:10;color:inherit}
@media(max-width:991px){.profile-top-bar{border-bottom-color:#1a1a22}}
.profile-top-title{font-weight:700;font-size:1rem;flex:1;text-align:center}
.profile-icon-btn{width:40px;height:40px;border:none;border-radius:50%;background:transparent;color:#fff;font-size:1.35rem;cursor:pointer;display:flex;align-items:center;justify-content:center}
.profile-icon-btn:active{background:rgba(255,255,255,.08)}
.profile-body{flex:1;padding:0 1rem 5rem;max-width:1200px;width:100%;margin:0 auto}
#profile-header{padding:1.25rem 0 .75rem}
.profile-hero{display:flex;gap:1.25rem;align-items:flex-start}
.profile-hero-left{flex-shrink:0}
.profile-hero-right{flex:1;min-width:0;padding-top:.25rem}
.profile-display-name{font-size:1.35rem;font-weight:700;margin:0 0 .15rem;line-height:1.2}
.profile-username{color:var(--muted);font-size:.9rem;margin:0 0 .75rem}
.profile-stats{display:flex;gap:1.25rem;margin-bottom:.85rem;flex-wrap:wrap}
.profile-stat{text-align:center;min-width:52px}
.profile-stat strong{display:block;font-size:1.05rem;font-weight:700;color:#fff}
.profile-stat span{display:block;font-size:.72rem;color:var(--muted);margin-top:.1rem}
.profile-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.profile-btn-edit{flex:1;min-width:140px;padding:.55rem 1rem;border:1px solid #444;border-radius:8px;background:#16161f;color:#fff;font-weight:600;font-size:.85rem;cursor:pointer}
.profile-btn-edit:active{background:#222}
.profile-btn-follow{flex:1;min-width:140px;padding:.55rem 1rem;border:none;border-radius:8px;background:var(--accent);color:#fff;font-weight:700;font-size:.85rem;cursor:pointer}
.profile-btn-follow.following{background:#333;border:1px solid #555}
.profile-bio{font-size:.9rem;line-height:1.45;color:#eee;margin:.75rem 0 .35rem;white-space:pre-wrap;word-break:break-word}
.profile-link{display:inline-block;color:var(--accent2);font-size:.85rem;word-break:break-all;text-decoration:none;margin-bottom:.5rem}
.profile-link:hover{text-decoration:underline}
.premium-badge{display:inline-block;font-size:.65rem;font-weight:700;background:linear-gradient(135deg,#ffd700,#ff8c00);color:#000;padding:.15rem .45rem;border-radius:6px;vertical-align:middle;margin-left:.35rem}
.pe-label{display:block;font-size:.75rem;color:var(--muted);margin:.5rem 0 .25rem}
#profile-edit-modal input,#profile-edit-modal textarea{width:100%;padding:.65rem;border:1px solid #333;border-radius:10px;background:#0a0a0f;color:#fff;font-size:.9rem}
#profile-edit-modal textarea{resize:vertical;min-height:88px}
.profile-avatar-wrap{position:relative;width:116px;height:116px}
.profile-avatar-wrap img{width:116px;height:116px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.12);background:#222}
.profile-avatar-wrap.has-intro img{border-color:var(--accent2);cursor:pointer}
.profile-avatar-play{position:absolute;bottom:4px;right:4px;width:34px;height:34px;border-radius:50%;background:var(--accent);border:2px solid #fff;display:flex;align-items:center;justify-content:center;font-size:.8rem;box-shadow:0 2px 8px rgba(0,0,0,.4)}
#profile-intro{margin:0 0 1rem}
.profile-toolbar{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #222;margin-bottom:0;gap:.5rem;flex-wrap:wrap}
@media(min-width:720px){.profile-avatar-wrap,.profile-avatar-wrap img{width:140px;height:140px}.profile-display-name{font-size:1.6rem}#profile-grid{grid-template-columns:repeat(6,1fr)!important}}
.intro-card{position:relative;border-radius:16px;overflow:hidden;background:#16161f;aspect-ratio:9/16;max-height:320px;margin:0 auto;max-width:200px}
.intro-card video,.intro-card img{width:100%;height:100%;object-fit:cover}
.intro-card-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35);font-size:2.5rem;cursor:pointer;border:none;color:#fff}
.intro-actions{display:flex;gap:.5rem;justify-content:center;margin-top:.75rem;flex-wrap:wrap}
.intro-actions button{width:auto;padding:.6rem 1rem;font-size:.85rem}
.intro-locked{text-align:center;color:var(--muted);font-size:.85rem;padding:1rem;background:#16161f;border-radius:12px}
.intro-player-inner{max-width:100%;padding:0;background:#000}
.intro-player-inner video{width:100%;max-height:70vh;border-radius:12px 12px 0 0}
#profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;margin-top:0}
#profile-grid .thumb{aspect-ratio:9/16;background:#16161f;overflow:hidden;cursor:pointer;position:relative}
#profile-grid .thumb img,#profile-grid .thumb video{width:100%;height:100%;object-fit:cover;display:block}
.thumb-views{position:absolute;bottom:6px;left:6px;font-size:.72rem;font-weight:600;color:#fff;text-shadow:0 1px 3px #000;display:flex;align-items:center;gap:.2rem;z-index:2}
.thumb-pin{position:absolute;top:4px;left:4px;font-size:.65rem;background:rgba(0,0,0,.65);padding:2px 6px;border-radius:6px;z-index:2}
#profile-tier{background:#16161f;border-radius:12px;padding:1rem;margin:1rem 0;font-size:.85rem;color:var(--muted)}
#premium-panel h4,#earnings-panel h4{margin:1rem 0 .5rem;font-size:.95rem}
.profile-sort{display:flex;gap:.35rem;font-size:.72rem}
.profile-sort button{background:none;border:none;color:var(--muted);cursor:pointer;padding:.35rem .5rem;font-weight:600}
.profile-sort button.active{color:#fff}
#explore-screen{position:fixed;inset:0;z-index:180;background:var(--bg);display:flex;flex-direction:column;overflow:hidden}
.tt-discover{background:#fff}
@media(max-width:991px){.tt-discover{background:#000}}
.explore-header{display:flex;align-items:center;gap:.5rem;padding:.65rem 1rem;border-bottom:1px solid #f1f1f2;flex-shrink:0;background:#fff;z-index:5;color:#161823}
@media(max-width:991px){.explore-header{background:#000;color:#fff;border-bottom-color:#1a1a22}}
.explore-title{color:inherit}
.explore-search{background:#f1f1f2;border:none;color:#161823}
@media(max-width:991px){.explore-search{background:#16161f;color:#fff}}
.explore-title{font-size:1.05rem;font-weight:700;margin:0;flex-shrink:0}
.explore-search{flex:1;max-width:280px;margin-left:auto;padding:.5rem .75rem;border:1px solid #333;border-radius:999px;background:#16161f;color:#fff;font-size:.85rem}
.explore-search::placeholder{color:var(--muted)}
.explore-categories{display:flex;gap:.4rem;padding:.6rem 1rem;overflow-x:auto;flex-shrink:0;border-bottom:1px solid #1a1a22;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.explore-categories::-webkit-scrollbar{display:none}
.explore-categories button{flex:0 0 auto;padding:.4rem .85rem;border:1px solid #333;border-radius:999px;background:#16161f;color:#ccc;font-size:.78rem;font-weight:600;cursor:pointer;white-space:nowrap;transition:.15s}
.explore-categories button.active{background:var(--accent);border-color:var(--accent);color:#fff}
.explore-categories button:hover:not(.active){border-color:#555;color:#fff}
.explore-grid{flex:1;overflow-y:auto;padding:2px;display:grid;grid-template-columns:repeat(3,1fr);gap:2px;align-content:start}
.explore-card{cursor:pointer;background:#16161f}
.explore-thumb{position:relative;aspect-ratio:9/16;background:#111;overflow:hidden}
.explore-thumb img,.explore-thumb video{width:100%;height:100%;object-fit:cover;display:block}
.explore-views{position:absolute;bottom:6px;left:6px;font-size:.7rem;font-weight:700;color:#fff;text-shadow:0 1px 3px #000;display:flex;align-items:center;gap:.2rem}
.explore-meta{display:flex;align-items:center;gap:.35rem;padding:.4rem .35rem .5rem;min-width:0}
.explore-author-avatar{width:20px;height:20px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#333}
.explore-author-name{font-size:.68rem;color:#ddd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.explore-verified{color:#3b82f6;font-size:.6rem;margin-left:.1rem}
.explore-status{text-align:center;padding:1rem;color:var(--muted);font-size:.8rem}
.explore-empty{grid-column:1/-1;text-align:center;padding:3rem 1rem;color:var(--muted)}
@media(min-width:720px){.explore-grid{grid-template-columns:repeat(4,1fr);padding:4px;gap:3px}}
@media(min-width:1024px){.explore-grid{grid-template-columns:repeat(6,1fr);max-width:1400px;margin:0 auto;width:100%}}
.studio-app{position:fixed;inset:0;z-index:150;background:#0d0d12;display:flex;flex-direction:column;overflow:hidden}
.studio-layout{flex:1;display:flex;min-height:0;overflow:hidden}
.studio-left{width:240px;flex-shrink:0;background:#12121a;border-right:1px solid #1e1e28;display:flex;flex-direction:column;overflow-y:auto;padding:.65rem .5rem}
.studio-left-head{display:flex;align-items:center;gap:.45rem;padding:.35rem .25rem .75rem;border-bottom:1px solid #222;margin-bottom:.5rem}
.studio-back-btn{width:32px;height:32px;border:none;border-radius:8px;background:#1e1e28;color:#fff;font-size:1.2rem;cursor:pointer;flex-shrink:0}
.studio-brand{font-size:.88rem;font-weight:800;margin:0;line-height:1.2}
.studio-badge{display:inline-block;font-size:.58rem;font-weight:700;padding:.12rem .4rem;border-radius:4px;background:linear-gradient(135deg,#ff2d55,#fe2c55);color:#fff;margin-top:.15rem}
.studio-panel{margin-bottom:.5rem;background:#16161f;border-radius:10px;padding:.55rem .6rem;border:1px solid #222}
.studio-panel-grow{flex:1;min-height:0;overflow-y:auto}
.studio-panel-head{display:flex;align-items:center;justify-content:space-between;font-size:.72rem;font-weight:700;color:#aaa;margin-bottom:.45rem;text-transform:uppercase;letter-spacing:.03em}
.studio-icon-btn{width:22px;height:22px;border:none;border-radius:6px;background:#222;color:#fff;font-size:.85rem;cursor:pointer}
.studio-orient{display:flex;gap:.2rem}
.studio-orient button{padding:.25rem .45rem;border:1px solid #333;border-radius:6px;background:#0d0d12;color:#888;font-size:.62rem;font-weight:600;cursor:pointer}
.studio-orient button.active{background:#2a1520;border-color:var(--accent);color:#fff}
.studio-scene-active{display:flex;align-items:center;gap:.4rem;font-size:.78rem;padding:.35rem .4rem;background:#0d0d12;border-radius:8px}
.studio-scene-dot{width:8px;height:8px;border-radius:50%;background:#4ade80}
.studio-sources{list-style:none;margin:0;padding:0}
.studio-sources li{margin-bottom:.25rem}
.studio-source{display:flex;align-items:center;gap:.45rem;width:100%;padding:.4rem .45rem;border:none;border-radius:8px;background:transparent;color:#ccc;font-size:.75rem;cursor:pointer;text-align:left}
.studio-source.active{background:rgba(254,44,85,.15);color:#fff;border:1px solid rgba(254,44,85,.3)}
.studio-source.locked{opacity:.45;cursor:default;padding:.4rem .45rem;display:flex}
.studio-src-icon{width:22px;text-align:center;font-size:.85rem;flex-shrink:0}
.studio-tools-label{font-size:.68rem;color:var(--muted);margin:.65rem 0 .35rem;font-weight:600}
.studio-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:.3rem}
.studio-tool{font-size:.65rem;padding:.35rem .4rem;background:#0d0d12;border:1px solid #2a2a35;border-radius:6px;color:#666;text-align:center}
.studio-tool.locked{opacity:.55}
.studio-tier-box{margin-top:auto;background:#16161f;border-radius:10px;padding:.65rem;font-size:.72rem;color:var(--muted);border:1px solid #222}
.studio-tier-bar{height:5px;background:#222;border-radius:999px;margin:.4rem 0 .3rem;overflow:hidden}
.studio-tier-fill{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent2));border-radius:999px}
.studio-tier-ok{color:#4ade80;font-weight:600}
.studio-center{flex:1;display:flex;flex-direction:column;min-width:0;background:#0a0a0f;padding:.75rem}
.studio-preview-wrap{position:relative;flex:1;min-height:0;margin:0 auto;width:100%;max-width:100%;background:#000;border-radius:12px;overflow:hidden;border:1px solid #2a2a35}
.studio-preview--portrait{max-width:320px;aspect-ratio:9/16}
.studio-preview--landscape{max-width:100%;aspect-ratio:16/9;flex:none;height:auto;max-height:55vh}
.studio-preview-wrap video{width:100%;height:100%;object-fit:cover;display:block}
.studio-preview-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:.35rem}
.studio-preview-icon{font-size:2.2rem;opacity:.5}
.studio-preview-placeholder p{margin:0;font-size:.8rem}
.studio-live-pill{position:absolute;top:.5rem;left:.5rem;background:rgba(255,0,0,.92);color:#fff;padding:.25rem .55rem;border-radius:6px;font-weight:700;font-size:.68rem;z-index:3}
.studio-preview-overlay{position:absolute;bottom:12%;left:50%;transform:translateX(-50%);font-size:1.1rem;font-weight:800;color:#fff;text-shadow:0 2px 12px #000;pointer-events:none;z-index:2;white-space:nowrap}
.studio-controls{flex-shrink:0;padding-top:.65rem;display:flex;flex-direction:column;gap:.55rem}
.studio-src-quick{display:flex;gap:.35rem}
.studio-quick-btn{width:40px;height:36px;border:1px solid #333;border-radius:8px;background:#16161f;color:#fff;font-size:1rem;cursor:pointer}
.studio-quick-btn.active{border-color:var(--accent);background:rgba(254,44,85,.15)}
.studio-mixer{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
.studio-mixer-row{display:flex;flex-direction:column;gap:.25rem;font-size:.68rem;color:var(--muted)}
.studio-mixer-row input[type=range]{width:100%;accent-color:var(--accent)}
.studio-go-row{display:flex;gap:.5rem;align-items:center}
.studio-title-input{flex:1;padding:.6rem .75rem;border:1px solid #333;border-radius:10px;background:#16161f;color:#fff;font-size:.85rem;min-width:0}
.studio-go-live-btn{flex-shrink:0;padding:.65rem 1.35rem;border:none;border-radius:999px;background:linear-gradient(135deg,#ff2d55,#e91e63);color:#fff;font-weight:800;font-size:.88rem;cursor:pointer;white-space:nowrap;box-shadow:0 4px 18px rgba(254,44,85,.4)}
.studio-go-live-btn:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
.studio-resume-btn{flex-shrink:0;padding:.6rem 1rem;border:1px solid var(--accent);border-radius:999px;background:rgba(254,44,85,.1);color:#fff;font-weight:700;font-size:.82rem;cursor:pointer;white-space:nowrap}
.studio-right{width:260px;flex-shrink:0;background:#12121a;border-left:1px solid #1e1e28;display:flex;flex-direction:column;overflow:hidden;padding:.65rem .5rem;gap:.5rem}
.studio-perf-grid{display:grid;grid-template-columns:1fr 1fr;gap:.4rem}
.studio-perf-item{background:#0d0d12;border-radius:8px;padding:.5rem;text-align:center;font-size:.62rem;color:var(--muted)}
.studio-perf-val{display:block;font-size:1rem;font-weight:800;color:#fff;margin-bottom:.1rem}
.studio-activity-list{overflow-y:auto;max-height:180px;display:flex;flex-direction:column;gap:.35rem}
.studio-chat-preview{flex-shrink:0}
.studio-chat-placeholder{font-size:.72rem;color:var(--muted);line-height:1.45;padding:.25rem 0}
.studio-chat-placeholder p{margin:0 0 .5rem}
.studio-chat-sub{font-size:.65rem!important;opacity:.8}
.studio-statusbar{display:flex;align-items:center;gap:1rem;padding:.35rem .85rem;background:#0a0a0f;border-top:1px solid #1e1e28;font-size:.62rem;color:#555;flex-shrink:0}
.studio-status-brand{margin-left:auto;color:#444}
.live-card{display:flex;gap:.5rem;padding:.5rem;background:#0d0d12;border-radius:8px;align-items:center;cursor:pointer;border:1px solid transparent;font-size:.72rem}
.live-card:hover{border-color:rgba(254,44,85,.3)}
.live-card img{width:32px;height:32px;border-radius:50%;object-fit:cover;flex-shrink:0}
.live-dot{color:#f00;font-weight:700;font-size:.65rem}
@media(max-width:960px){
  .studio-left{width:200px}
  .studio-right{display:none}
  .studio-mixer{grid-template-columns:1fr}
}
@media(max-width:720px){
  .studio-layout{flex-direction:column}
  .studio-left{width:100%;max-height:28vh;flex-shrink:0;border-right:none;border-bottom:1px solid #1e1e28}
  .studio-left .studio-panel-grow,.studio-tools-grid,.studio-tier-box{display:none}
  .studio-center{padding:.5rem}
  .studio-preview--portrait{max-width:220px}
  .studio-go-row{flex-wrap:wrap}
  .studio-go-live-btn,.studio-resume-btn{width:100%}
}
#live-broadcast-screen,#live-watch-screen{position:fixed;inset:0;z-index:8500;background:#0a0a0f}
.live-room{display:flex;height:100vh;height:100dvh;overflow:hidden}
.live-suggest-sidebar{display:none;width:220px;flex-shrink:0;border-right:1px solid #1e1e28;padding:1rem .75rem;overflow-y:auto;background:#0a0a0f}
.live-suggest-title{font-size:.8rem;font-weight:700;color:var(--muted);margin-bottom:.75rem;text-transform:uppercase;letter-spacing:.04em}
.live-suggest-item{display:flex;align-items:center;gap:.55rem;padding:.45rem 0;cursor:pointer;border:none;background:none;color:#fff;width:100%;text-align:left}
.live-suggest-item img{width:36px;height:36px;border-radius:50%;object-fit:cover;flex-shrink:0}
.live-suggest-item strong{display:block;font-size:.78rem}
.live-suggest-item span{font-size:.68rem;color:var(--muted)}
.live-stage{flex:1;display:flex;flex-direction:column;min-width:0;background:#000}
.live-stage-header{display:flex;align-items:center;gap:.55rem;padding:.65rem .85rem;background:#0a0a0f;border-bottom:1px solid #1e1e28;flex-shrink:0;z-index:8}
.live-host-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.12);flex-shrink:0}
.live-host-meta{flex:1;min-width:0}
.live-host-meta strong{display:block;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-host-sub{display:block;font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-follow-btn{padding:.4rem 1rem;border:none;border-radius:8px;background:var(--accent);color:#fff;font-weight:700;font-size:.78rem;cursor:pointer;flex-shrink:0}
.live-follow-btn.following{background:#333;border:1px solid #555}
.live-room-close,.live-stage-header .profile-icon-btn{flex-shrink:0}
.live-badge-inline{background:rgba(255,0,0,.9);color:#fff;padding:.25rem .55rem;border-radius:6px;font-weight:700;font-size:.72rem}
.live-stats-inline{font-size:.72rem;color:var(--muted);margin-left:auto;margin-right:.5rem}
.live-end-btn{padding:.4rem .75rem;font-size:.78rem}
.live-stage-main{flex:1;position:relative;min-height:0;display:flex;align-items:center;justify-content:center;background:#111}
.live-video-wrap{position:relative;width:100%;height:100%;max-height:100%;background:#000;overflow:hidden}
.live-video-wrap video,.live-video-wrap img{width:100%;height:100%;object-fit:contain;display:block}
.live-badge-top{position:absolute;top:.75rem;left:.75rem;background:rgba(255,0,0,.85);color:#fff;padding:.3rem .65rem;border-radius:8px;font-weight:700;font-size:.75rem;z-index:5}
.live-gift-footer{display:flex;align-items:center;gap:.5rem;padding:.55rem .75rem calc(.55rem + var(--safe-b));background:#0a0a0f;border-top:1px solid #1e1e28;flex-shrink:0;flex-wrap:wrap}
.live-gift-footer .live-gift-strip{flex:1;min-width:0}
.live-pk-bar{padding:.45rem .65rem;background:linear-gradient(90deg,rgba(254,44,85,.35),rgba(37,244,238,.35));border-bottom:1px solid #333;flex-shrink:0}
.live-pk-bar-inner{display:flex;align-items:center;gap:.5rem;font-size:.78rem;font-weight:700}
.live-pk-host{display:flex;align-items:center;gap:.35rem;min-width:0;flex:1}
.live-pk-host img{width:28px;height:28px;border-radius:50%;object-fit:cover;border:2px solid #fff}
.live-pk-host.right{flex-direction:row-reverse;text-align:right}
.live-pk-score{font-size:1.05rem;min-width:2rem;text-align:center}
.live-pk-timer{min-width:3.2rem;text-align:center;color:#ffe066;font-variant-numeric:tabular-nums}
.live-pk-progress{flex:1;height:8px;background:#222;border-radius:999px;overflow:hidden;display:flex}
.live-pk-progress-a{background:var(--accent);height:100%;transition:width .3s}
.live-pk-progress-b{background:var(--accent2);height:100%;transition:width .3s;margin-left:auto}
.live-video-wrap.live-pk-split{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.live-video-wrap.live-pk-split #live-watch-v,.live-video-wrap.live-pk-split #live-broadcast-v,.live-video-wrap.live-pk-split #live-watch-img{grid-column:1;grid-row:1}
.live-video-wrap.live-pk-split .live-pk-opponent{position:relative;grid-column:2;grid-row:1;display:block!important;width:100%;height:100%;border-left:2px solid #fff}
.live-pk-opponent video,.live-pk-opponent img{width:100%;height:100%;object-fit:cover;display:block}
.live-pk-likes{width:100%;display:flex;gap:.5rem;margin-bottom:.25rem}
.live-pk-like-btn{flex:1;padding:.55rem;border:none;border-radius:10px;background:linear-gradient(135deg,#ff4d6d,#fe2c55);color:#fff;font-weight:700;font-size:.82rem;cursor:pointer}
.live-pk-like-btn:last-child{background:linear-gradient(135deg,#25f4ee,#00c4cc)}
.live-pk-gift-label{display:block;width:100%;font-size:.68rem;color:var(--muted);margin-bottom:.2rem;font-weight:700}
.live-pk-invite{padding:.65rem 1rem;background:#1a1020;border-bottom:1px solid #442255;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.live-pk-invite button{padding:.45rem .85rem;border:none;border-radius:8px;font-weight:700;cursor:pointer}
.live-pk-invite .accept{background:var(--accent);color:#fff}
.live-pk-invite .decline{background:#333;color:#ccc}
.studio-tool-btn{border:1px solid #444;background:#16161f;color:#fff;cursor:pointer;padding:.45rem .55rem;border-radius:8px;font-size:.72rem}
.studio-tool-btn:hover{border-color:var(--accent)}
.live-gift-strip{display:flex;gap:.45rem;overflow-x:auto;padding:.15rem 0;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.live-gift-strip::-webkit-scrollbar{display:none}
.live-gift-chip{flex:0 0 auto;padding:.45rem .55rem;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:linear-gradient(180deg,#1e1e28,#12121a);text-align:center;cursor:pointer;min-width:64px;transition:transform .15s}
.live-gift-chip:active{transform:scale(.95)}
.live-gift-chip .cp-emoji{width:36px!important;height:36px!important}
.live-gift-chip small{display:block;font-size:.62rem;color:var(--accent2);margin-top:.15rem;font-weight:600}
.live-recharge-btn{flex-shrink:0;padding:.45rem .7rem;border:none;border-radius:10px;background:linear-gradient(135deg,#ffd700,#ff8c00);color:#000;font-weight:700;font-size:.72rem;cursor:pointer}
.live-chat-panel{width:300px;flex-shrink:0;display:flex;flex-direction:column;background:#16161f;border-left:1px solid #1e1e28}
.live-chat-top{padding:.65rem .75rem;border-bottom:1px solid #222;flex-shrink:0}
.live-viewer-label{display:block;font-size:.78rem;font-weight:700;margin-bottom:.5rem}
.live-top-gifters{display:flex;gap:.35rem;align-items:center}
.live-top-gifter{position:relative;flex-shrink:0}
.live-top-gifter img{width:32px;height:32px;border-radius:50%;object-fit:cover;border:2px solid #333}
.live-top-gifter .rank{position:absolute;top:-4px;left:-4px;width:16px;height:16px;border-radius:50%;background:var(--accent);color:#fff;font-size:.55rem;font-weight:800;display:flex;align-items:center;justify-content:center}
.live-top-gifter.rank-1 img{border-color:#ffd700}
.live-top-gifter.rank-2 img{border-color:#c0c0c0}
.live-top-gifter.rank-3 img{border-color:#cd7f32}
.live-chat-messages{flex:1;overflow-y:auto;padding:.5rem .65rem;display:flex;flex-direction:column;gap:.35rem;scrollbar-width:thin}
.live-chat-msg{display:flex;gap:.4rem;align-items:flex-start;font-size:.78rem;line-height:1.35;animation:chatIn .25s ease}
.live-chat-msg.system,.live-chat-msg.join{color:var(--muted);font-size:.72rem;padding:.2rem 0}
.live-chat-msg.system .live-chat-body{background:rgba(255,255,255,.06);border-radius:10px;padding:.45rem .55rem}
.live-chat-avatar{width:24px;height:24px;border-radius:50%;object-fit:cover;flex-shrink:0;margin-top:2px;background:#333}
.live-chat-body{min-width:0;word-break:break-word}
.live-chat-name{font-weight:700;margin-right:.25rem}
.live-chat-badge{display:inline-block;font-size:.58rem;font-weight:800;padding:.1rem .3rem;border-radius:4px;margin-right:.2rem;vertical-align:middle;line-height:1.2}
.live-chat-badge.tier{background:#3b82f6;color:#fff}
.live-chat-badge.premium{background:linear-gradient(135deg,#ffd700,#ff8c00);color:#000}
@keyframes chatIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.live-chat-composer{display:flex;align-items:center;gap:.35rem;padding:.55rem .65rem calc(.55rem + var(--safe-b));border-top:1px solid #222;background:#12121a;flex-shrink:0}
.live-chat-composer input{flex:1;padding:.55rem .65rem;border:1px solid #333;border-radius:999px;background:#0a0a0f;color:#fff;font-size:.82rem}
.live-chat-emoji-btn{width:36px;height:36px;border:none;border-radius:50%;background:#222;color:#fff;font-size:1.1rem;cursor:pointer;flex-shrink:0}
.live-chat-send-btn{width:36px;height:36px;border:none;border-radius:50%;background:var(--accent);color:#fff;font-size:1rem;cursor:pointer;flex-shrink:0}
.live-gift-floats{position:absolute;inset:0;pointer-events:none;overflow:hidden;z-index:4}
.live-gift-float{position:absolute;left:.5rem;max-width:75%;animation:liveGiftFly 3s ease-out forwards;z-index:6}
.live-gift-float-card{display:flex;align-items:center;gap:.5rem;background:rgba(0,0,0,.72);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.15);border-radius:14px;padding:.45rem .7rem;box-shadow:0 4px 20px rgba(0,0,0,.4)}
.gift-float-emoji{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,rgba(254,44,85,.25),rgba(37,244,238,.15));flex-shrink:0}
.gift-float-emoji .cp-emoji{width:36px!important;height:36px!important}
.gift-float-meta{display:flex;flex-direction:column;min-width:0}
.gift-float-name{font-size:.78rem;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:140px}
.gift-float-label{font-size:.65rem;color:var(--accent2)}
@keyframes liveGiftFly{0%{opacity:0;transform:translateY(20px) scale(.9)}15%{opacity:1;transform:translateY(0) scale(1)}85%{opacity:1}100%{opacity:0;transform:translateY(-30px)}}
.feed-gift-toast{position:absolute;left:50%;top:45%;transform:translate(-50%,-50%);z-index:120;pointer-events:none}
.feed-gift-toast .live-gift-float-card{transform:scale(1.1)}
.feed-gift-toast.show{animation:feedToastPop 2.8s ease forwards}
@keyframes feedToastPop{0%,78%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-60%) scale(.9)}}
.live-coins-hint{font-size:.7rem;color:var(--muted);flex-shrink:0;white-space:nowrap}
.live-connecting{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);color:#fff;font-size:.95rem;z-index:3;backdrop-filter:blur(4px)}
.live-connecting.hidden{display:none}
@media(min-width:960px){
  .live-suggest-sidebar{display:block}
  .live-chat-panel{width:340px}
  .live-room--host .live-stage-main{max-width:720px;margin:0 auto;width:100%}
}
@media(max-width:719px){
  .live-chat-panel{position:absolute;right:0;top:3.5rem;bottom:5.5rem;width:46%;max-width:210px;background:transparent;border:none;pointer-events:none;z-index:7}
  .live-chat-top,.live-chat-messages{pointer-events:none}
  .live-chat-composer{pointer-events:auto;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);border-radius:12px 0 0 0;margin-left:.25rem}
  .live-chat-messages{-webkit-mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(transparent,#000 12%,#000 88%,transparent)}
  .live-stage-header .live-host-meta{max-width:42%}
}
#inbox-screen{position:fixed;inset:0;z-index:175;background:var(--bg);display:flex;flex-direction:column}
.inbox-header{display:flex;align-items:center;gap:.5rem;padding:.65rem 1rem;border-bottom:1px solid #1a1a22;flex-shrink:0}
.inbox-title{flex:1;font-size:1.05rem;font-weight:700;margin:0}
.inbox-coins-btn{border:none;background:#16161f;border-radius:999px;padding:.35rem .65rem;font-size:.85rem;cursor:pointer;color:#fff}
.inbox-layout{flex:1;display:flex;min-height:0;overflow:hidden}
.inbox-threads{flex:1;overflow-y:auto;padding:.5rem}
.inbox-thread{display:flex;gap:.65rem;padding:.75rem;border-radius:12px;cursor:pointer;border:1px solid transparent;margin-bottom:.35rem}
.inbox-thread:hover,.inbox-thread.active{background:#16161f;border-color:#2a2a35}
.inbox-thread img{width:48px;height:48px;border-radius:50%;object-fit:cover;flex-shrink:0;background:#333}
.inbox-thread-meta{flex:1;min-width:0}
.inbox-thread-meta strong{display:block;font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-thread-preview{font-size:.75rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:.15rem}
.inbox-chat{flex:1;display:flex;flex-direction:column;min-width:0;border-left:1px solid #1a1a22}
.inbox-chat-head{display:flex;align-items:center;gap:.5rem;padding:.65rem 1rem;border-bottom:1px solid #1a1a22;flex-shrink:0}
.inbox-chat-back{display:none}
.inbox-chat-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}
.inbox-messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.5rem}
.inbox-msg{max-width:82%;padding:.55rem .75rem;border-radius:14px;font-size:.88rem;line-height:1.35;word-break:break-word}
.inbox-msg.self{align-self:flex-end;background:var(--accent);color:#fff;border-bottom-right-radius:4px}
.inbox-msg.other{align-self:flex-start;background:#16161f;color:#eee;border-bottom-left-radius:4px}
.inbox-composer{display:flex;gap:.4rem;padding:.65rem 1rem calc(.65rem + var(--safe-b));border-top:1px solid #1a1a22;flex-shrink:0}
.inbox-composer input{flex:1;padding:.6rem .75rem;border:1px solid #333;border-radius:999px;background:#16161f;color:#fff;font-size:.88rem}
.inbox-send-btn{width:40px;height:40px;border:none;border-radius:50%;background:var(--accent);color:#fff;font-size:1.1rem;cursor:pointer;flex-shrink:0}
.inbox-empty{text-align:center;padding:2.5rem 1rem;color:var(--muted);font-size:.88rem}
.coins-balance{font-size:.95rem;margin:.5rem 0 1rem;color:var(--accent2);font-weight:600}
.coins-pack-grid{display:grid;grid-template-columns:1fr 1fr;gap:.65rem;margin:1rem 0}
.coins-pack{padding:1rem;border:1px solid #333;border-radius:14px;background:#16161f;text-align:center;cursor:pointer;transition:border-color .15s,transform .15s}
.coins-pack:hover,.coins-pack.popular{border-color:var(--accent)}
.coins-pack.popular{box-shadow:0 0 0 1px var(--accent)}
.coins-pack-emoji{font-size:1.75rem;margin-bottom:.25rem}
.coins-pack-coins{font-weight:800;font-size:1.1rem}
.coins-pack-price{font-size:.8rem;color:var(--accent2);margin-top:.25rem}
.coins-pack-badge{font-size:.62rem;color:var(--accent);font-weight:700;margin-top:.2rem}
.profile-msg-btn{margin-left:.35rem}
@media(min-width:720px){
  .inbox-layout{max-width:900px;margin:0 auto;width:100%}
  .inbox-threads{width:280px;flex:none;border-right:1px solid #1a1a22}
  .inbox-chat-back{display:none!important}
}
@media(max-width:719px){
  .inbox-threads{width:100%}
  .inbox-chat{position:absolute;inset:0;z-index:2;background:var(--bg)}
  .inbox-chat-back{display:flex!important}
  .inbox-layout.inbox-chat-open .inbox-threads{display:none}
}
#toast{position:fixed;bottom:calc(80px + var(--safe-b));left:50%;transform:translateX(-50%);background:rgba(0,0,0,.85);padding:.6rem 1.2rem;border-radius:20px;font-size:.85rem;z-index:9999;opacity:0;transition:.3s;pointer-events:none}
#toast.show{opacity:1}
.hint{font-size:.8rem;color:var(--muted);margin:.5rem 0}
.comment-item{padding:.6rem 0;border-bottom:1px solid #222;font-size:.9rem}
.comment-author{font-weight:600;font-size:.8rem;color:var(--accent2)}
.profile-tabs{display:flex;gap:.25rem}
.profile-tabs button{background:none;border:none;color:var(--muted);font-weight:600;cursor:pointer;padding:.65rem .75rem;font-size:.85rem;border-bottom:2px solid transparent;margin-bottom:-1px}
.profile-tabs button.active{color:#fff;border-bottom-color:#fff}
.profile-grid-upload{background:#16161f;border:2px dashed #444;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);cursor:pointer;aspect-ratio:9/16;gap:.15rem}
.feed-media-wrap{position:relative;width:100%;height:100%}
.cp-post-overlays{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.cp-post-overlay{position:absolute;white-space:nowrap;font-weight:700;text-shadow:0 1px 4px rgba(0,0,0,.8)}
.cp-post-overlay span{padding:.25rem .6rem;border-radius:8px;display:inline-block}
#cp-editor-screen{position:fixed;inset:0;z-index:9500;background:var(--bg);display:flex;flex-direction:column}
.cp-editor-top{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;padding-top:calc(env(safe-area-inset-top,8px) + .75rem);border-bottom:1px solid #222}
.cp-editor-top span{font-weight:700}
.cp-editor-post-btn{width:auto;padding:.5rem 1rem;font-size:.9rem}
.cp-editor-stage{flex:1;display:flex;align-items:center;justify-content:center;background:#000;overflow:hidden}
.cp-editor-stage .cp-editor-pick{color:#666}
.cp-editor-media-wrap{position:relative;width:100%;max-width:420px;aspect-ratio:9/16;margin:0 auto}
.cp-editor-media-wrap video,.cp-editor-media-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.cp-editor-overlays{position:absolute;inset:0;touch-action:none}
.cp-overlay-item{position:absolute;cursor:grab;user-select:none;touch-action:none;white-space:nowrap;font-weight:700}
.cp-overlay-item span{padding:.3rem .65rem;border-radius:8px;display:inline-block}
.cp-overlay-emoji,.cp-overlay-sticker{filter:drop-shadow(0 3px 10px rgba(0,0,0,.65))}
.cp-overlay-emoji .cp-emoji,.cp-overlay-sticker .cp-emoji{width:48px!important;height:48px!important}
.cp-editor-tools{background:#16161f;border-top:1px solid #222;padding:.75rem 1rem calc(.75rem + var(--safe-b));max-height:42vh;overflow-y:auto}
.cp-editor-tabs{display:flex;gap:.35rem;margin-bottom:.75rem;flex-wrap:wrap}
.cp-editor-tabs button{flex:1;min-width:70px;padding:.45rem .25rem;border:1px solid #333;border-radius:10px;background:#0a0a0f;color:#fff;font-size:.75rem;cursor:pointer}
.cp-editor-tabs button.active{border-color:var(--accent);background:rgba(254,44,85,.15)}
.cp-hook-list{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.5rem;max-height:100px;overflow-y:auto}
.cp-hook-chip{padding:.35rem .55rem;border:1px solid #333;border-radius:999px;background:#0a0a0f;color:#ddd;font-size:.72rem;cursor:pointer}
.cp-hook-list button:hover{border-color:var(--accent2)}
.cp-editor-panel input,.cp-editor-panel textarea,#cp-editor-caption{width:100%;padding:.65rem;margin:.4rem 0;border:1px solid #333;border-radius:10px;background:#0a0a0f;color:#fff;font-size:.9rem}
#cp-editor-caption{min-height:56px;resize:none}
.cp-editor-copyright{margin:.5rem 0;padding:.55rem .65rem;border-radius:10px;background:rgba(254,44,85,.08);border:1px solid rgba(254,44,85,.25);font-size:.78rem;line-height:1.35;color:#ddd}
.cp-editor-copyright strong{color:#fff}
.cp-editor-copyright-warn{color:#ff6b8a;margin-top:.35rem}
.copyright-rules{margin:.35rem 0 .5rem;padding-left:1.1rem;font-size:.82rem;color:var(--muted)}
.copyright-rules li{margin:.2rem 0}
.cp-emoji-grid,.cp-filter-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.45rem;margin:.5rem 0}
.cp-emoji-btn,.cp-filter-btn{padding:.5rem;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:linear-gradient(180deg,#1a1a24,#0e0e14);cursor:pointer;transition:transform .15s,box-shadow .15s}
.cp-emoji-btn .cp-emoji{width:36px!important;height:36px!important}
.cp-emoji-btn:hover{transform:scale(1.08);box-shadow:0 6px 16px rgba(37,244,238,.12)}
.cp-filter-btn{font-size:.7rem}
.cp-filter-btn.active,.cp-emoji-btn:active{border-color:var(--accent)}
.cp-editor-edit-row{display:flex;gap:.5rem;margin:.5rem 0}
.cp-editor-edit-row select{flex:1;padding:.5rem;border-radius:8px;background:#0a0a0f;color:#fff;border:1px solid #333}
