/* Palette, typography and focus treatment adapted from FACEVORO app/style.css. */
:root{color-scheme:dark;--text:#faf7ff;--muted:#c5bddd;--edge:#ffffff20;--pink:#ff4c94;--blue:#5086ff;--violet:#a653ff;--base:#131025;--panel:#201a33;--gradient:linear-gradient(115deg,var(--pink),var(--violet) 62%,var(--blue));font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:var(--text);background:var(--base)}
*{box-sizing:border-box}
body{margin:0;min-width:280px;min-height:100svh;background:radial-gradient(ellipse at 65% 2%,#342044 0,transparent 45rem),var(--base)}
a,button,input,textarea{-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{cursor:pointer;color:inherit}
button:disabled{opacity:.55;cursor:wait}
:focus-visible{outline:2px solid #a995ff;outline-offset:4px}
[hidden]{display:none!important}
svg{width:1.35rem;height:1.35rem;flex:none}
.shell{max-width:1350px;margin:auto;display:grid;grid-template-columns:218px minmax(340px,1fr) 280px;min-height:100svh;gap:clamp(18px,3.5vw,58px);padding:0 26px}
.rail{position:sticky;top:0;height:100svh;padding:34px 16px 30px 0;display:flex;flex-direction:column;border-right:1px solid var(--edge)}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.06em}
.brand>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--gradient);font-size:1.55rem;box-shadow:0 5px 24px #a653ff45}
.brand strong{white-space:nowrap}
.brand small{display:inline-block;font-size:.72rem;color:#fab6e3;letter-spacing:.08em;margin-left:6px}
nav{display:grid;gap:8px;margin-top:45px}
nav a{display:flex;gap:12px;align-items:center;padding:13px 15px;border:1px solid transparent;border-radius:13px;color:var(--muted);font-weight:650}
nav a:hover,nav a[aria-current]{background:#a653ff22;border-color:#a653ff38;color:#fff}
nav a[aria-current] svg{color:#efa2ff}
.lab-note{margin-top:auto;color:var(--muted);font-size:.875rem;padding-left:14px}
main{width:100%;max-width:660px;justify-self:center;padding:30px 0 50px;min-width:0}
.page-head p{margin:2px 0 5px;color:#e2a6ee;font-size:.875rem;font-weight:800;letter-spacing:.105em}
h1{font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:-.045em;line-height:1.01;margin:0 0 22px}
h2{font-size:1.15rem;margin:0}
.tabs{display:flex;gap:8px;margin:0 0 16px}
.tabs button,.follow,.plain{border:1px solid var(--edge);background:#151020ab;border-radius:999px;padding:8px 14px;font-size:.875rem;font-weight:700}
.tabs button[aria-pressed=true],.follow[aria-pressed=true]{background:#663579;color:#fff;border-color:#e59dff55}
.clips{display:grid;gap:22px;justify-items:center}
.clip{position:relative;width:min(100%,430px);aspect-ratio:9/16;overflow:hidden;isolation:isolate;border:1px solid var(--edge);border-radius:25px;background:#100d20;box-shadow:0 14px 55px #0805125c}
.clip>video{width:100%;height:100%;display:block;object-fit:contain}
.clip-caption{position:absolute;inset:auto 0 49px;padding:48px 76px 13px 18px;background:linear-gradient(transparent,#0e071ce8);pointer-events:none}
.clip-caption a{pointer-events:auto}
.clip-caption p{overflow-wrap:anywhere;margin:10px 0 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.creator{display:inline-flex;gap:10px;align-items:center;min-width:0;text-align:left}
.creator strong,.creator small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.creator small,#comment-list small,.side-cta small{color:#d9ccec;font-size:.875rem}
.avatar{width:39px;height:39px;flex:none;border-radius:50%;display:grid;place-items:center;font-weight:800;background:linear-gradient(150deg,#bd3281,#5933ba);border:1px solid #ffdcff63}
.avatar.blue{background:linear-gradient(150deg,#3d62da,#6734b8)}
.clip-actions{position:absolute;bottom:86px;right:12px;display:grid;justify-items:center;gap:14px}
.clip-actions button:not(.follow){display:grid;justify-items:center;gap:4px;border:0;background:#151020df;border-radius:20px;min-width:46px;min-height:50px;padding:7px;font-weight:750}
.clip-actions button[aria-pressed=true]:not(.follow) svg{color:#ff6cac;fill:#ff6cac}
.clip-actions .follow{padding:7px 9px}
.side{position:sticky;top:0;align-self:start;padding-top:47px;display:grid;gap:14px}
.side-panel,.side-cta,.panel{background:#211a34e8;border:1px solid var(--edge);border-radius:20px;padding:18px}
.side-panel h2{margin-bottom:16px}
.side-panel>div{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:13px}
.side-panel>div:last-child{margin:0}
.side-panel .follow{padding:6px 9px}
.side-cta{display:flex;gap:12px;align-items:center;background:linear-gradient(130deg,#50204b,#272046)}
.side-cta small{display:block;margin-top:3px}
.panel{max-width:550px;padding:22px}
#upload,.field,#profile-form{display:grid;gap:12px}
.drop{border:1px dashed #c991e57b;border-radius:15px;padding:24px 15px;display:grid;justify-items:center;gap:10px;text-align:center;background:#ad61dc15}
.drop svg,.live svg{width:34px;height:34px;color:#f7a6e2}
.drop span,.form-status,.live p,.empty{color:var(--muted)}
.drop input{max-width:100%}
#upload-preview{width:100%;max-height:320px;border-radius:14px;background:#100c1d}
input:not([type=file]),textarea{width:100%;min-width:0;border-radius:12px;border:1px solid var(--edge);background:#120e22;color:#fff;padding:12px}
textarea{resize:vertical}
.accent{width:fit-content;min-height:42px;border:0;border-radius:12px;padding:10px 18px;font-weight:800;background:linear-gradient(115deg,#a8216a,#6a2bb5)}
.form-status:empty{display:none}
.search{display:flex;gap:10px;align-items:center;margin-bottom:18px;color:#eeade4}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tile{aspect-ratio:9/14;position:relative;border-radius:14px;overflow:hidden;background:#1e1632}
.tile img,.tile video{width:100%;height:100%;object-fit:cover}
.tile span{position:absolute;inset:auto 0 0;background:#0b0716d9;display:flex;align-items:center;gap:4px;padding:7px;font-size:.875rem;overflow-wrap:anywhere}
.profile-top,.stats{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.profile-top .avatar{width:52px;height:52px}
.stats{margin:20px 0;color:var(--muted)}
.stats strong{color:#fff}
.section-title{margin:23px 0 12px}
.live{display:grid;justify-items:start;gap:12px}
.live p{margin:0}
.empty{text-align:center;padding:20px}
dialog{width:min(100% - 22px,460px);border:1px solid var(--edge);border-radius:19px;background:#231b36;color:var(--text);padding:18px;max-height:80svh}
dialog::backdrop{background:#080615bb}
dialog header{display:flex;align-items:center;justify-content:space-between}
#comment-list{min-height:120px;max-height:46svh;overflow:auto;margin:15px 0}
#comment-list article{display:flex;gap:12px;padding:8px 0}
#comment-list small{margin-left:5px}
#comment-list p{margin:6px 0;overflow-wrap:anywhere}
#comment-form{display:flex;gap:8px}
#toast:not(:empty){position:fixed;z-index:9;right:18px;bottom:18px;padding:12px 18px;border:1px solid var(--edge);border-radius:14px;background:#332047}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1000px){.shell{grid-template-columns:180px minmax(0,1fr)}.side{display:none}}
@media(max-width:600px){
  .shell{display:block;padding:0 12px}
  .rail{position:static;height:auto;padding:13px 5px 9px;border:0}
  .brand>span{width:34px;height:34px;border-radius:10px;font-size:1.25rem}
  .lab-note{display:none}
  nav{position:fixed;inset:auto 0 0;z-index:5;display:grid;grid-template-columns:repeat(5,1fr);gap:0;margin:0;padding:5px 4px calc(7px + env(safe-area-inset-bottom));background:#151026f7;border-top:1px solid var(--edge)}
  nav a{min-height:50px;justify-content:center;flex-direction:column;gap:3px;padding:3px 1px;font-size:.875rem;border-radius:8px}
  main{padding:5px 0 calc(83px + env(safe-area-inset-bottom));margin:auto}
  h1{margin-bottom:12px}
  .page-head p{font-size:.875rem;margin:0 0 3px}
  .tabs{margin-bottom:10px}
  .clip{border-radius:18px;width:min(100%,calc((100svh - 205px) * 9 / 16));min-width:min(100%,280px)}
  .clip-actions{bottom:74px}
  #toast:not(:empty){bottom:calc(70px + env(safe-area-inset-bottom))}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
body.feed-view{overflow:hidden;background:#131025}
.feed-view .shell{height:100vh;height:100dvh;min-height:0}
.feed-view main{height:100%;display:flex;flex-direction:column;padding-bottom:0}
.feed-view .clips{overflow-y:auto;scroll-snap-type:y mandatory;flex:1;min-height:0;overscroll-behavior-y:contain;scrollbar-width:none}
.feed-view .clip{scroll-snap-align:start;scroll-snap-stop:always;max-width:none;width:auto;height:100%;aspect-ratio:9/16}
.feed-view .clip>video{object-fit:cover}
.feed-view .community-shortcut{position:absolute;top:12px;right:8px}
.clip-actions button{touch-action:manipulation}
.clip-toggle{position:absolute;inset:20% 25%;background:transparent;border:0}
.clip-toggle span{font-size:3rem;text-shadow:0 3px 15px #000}
.clip-caption{pointer-events:none}
.clip-caption a{pointer-events:auto}
@media(max-width:600px){
 .feed-view .shell{padding:0;display:block}
 .feed-view .rail{padding:0;height:0}
 .feed-view .brand{display:none}
 .feed-view main{max-width:none;padding:0;position:relative}
 .feed-view .page-head{display:none}
 .feed-view .feed-top{position:absolute;z-index:3;top:0;left:0;right:0;padding:calc(env(safe-area-inset-top) + 10px) 12px 25px;text-align:center;background:linear-gradient(#100b1caf,transparent);pointer-events:none}
 .feed-top strong{letter-spacing:.08em;text-shadow:0 2px 8px #100717}
 .feed-top .tabs{justify-content:center;margin:5px 0 0;pointer-events:auto}
 .feed-view .tabs button{background:transparent;border:0;border-radius:0;padding:8px 10px;color:white;text-shadow:0 2px 6px #100717}
 .feed-view .tabs button[aria-pressed=true]{border-bottom:3px solid #b86dff}
 .feed-view .clips{display:block;margin:0;gap:0;height:100%;width:100%}
 .feed-view .clip{width:100%;min-width:0;height:100%;border:0;border-radius:0;box-shadow:none;aspect-ratio:9/16}
 .feed-view .clip-caption{bottom:0;padding:80px calc(86px + env(safe-area-inset-right)) calc(75px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));background:linear-gradient(transparent,#090612df)}
 .feed-view .clip-actions{bottom:calc(105px + env(safe-area-inset-bottom));right:calc(12px + env(safe-area-inset-right));z-index:2}
 .feed-view nav{background:linear-gradient(transparent,#0d091ccd 36%);border:0;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
 .feed-view nav a[aria-current]{background:transparent;border-color:transparent;color:white}
 .feed-view nav a[href="#crear"] svg{background:#8f4bdd;border-radius:7px;width:32px;height:25px;padding:3px;color:white}
 .feed-view .clips>.empty{padding-top:140px}
}
@media(min-width:601px){.feed-top>strong{display:none}}
.community-shortcut{display:inline-block;margin:0 0 12px}
.social-list,.social-form,.room-grid,.live-chat{display:grid;gap:12px;margin:12px 0}
.social-list>article,.social-form,.live-chat{background:#211a34;border:1px solid var(--edge);border-radius:15px;padding:14px}
.social-list article p,.live-chat p{overflow-wrap:anywhere;white-space:pre-wrap}
.community-image{height:95px;width:100%;object-fit:cover;border-radius:12px}
.social-form select{font:inherit;padding:10px;border:1px solid var(--edge);border-radius:10px;background:#151025;color:white;max-width:100%}
.room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.room-grid video{width:100%;aspect-ratio:3/4;object-fit:cover;background:#110a20;border-radius:11px}
.live-chat-log{max-height:250px;overflow:auto}
.live-chat-log p{margin:3px 0 9px}
.social-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.feed-view .clips{grid-auto-rows:100%}
.tile figcaption{position:absolute;inset:auto 0 0;padding:6px;background:#0b0716d9;pointer-events:none}
figure.tile{margin:0}
#room-chat-form{display:flex;gap:8px}
#room-chat-form button{flex:none}
/* Social controls sit above the existing full-height video surface. */
.feed-quick{display:flex;gap:6px;position:absolute;top:4px;right:0;pointer-events:auto}
.feed-quick a{display:grid;place-items:center;width:39px;height:39px;border-radius:50%;background:#191027b0;border:1px solid #ffffff33}
.feed-top{position:relative}
.feed-top .tabs{padding-right:92px}
.clip-actions .report-clip{min-height:39px!important}
.admin-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:10px;margin:10px 0}
.admin-metrics section{background:var(--panel);border:1px solid var(--edge);border-radius:14px;padding:12px}
.admin-metrics strong,.admin-metrics small{display:block}
.admin-metrics strong{font-size:1.5rem}.admin-metrics small{margin-top:3px;color:var(--muted)}
.thread>article{max-width:85%;width:fit-content}
.thread>article.mine{justify-self:end;background:#482861}
.thread p{white-space:pre-wrap;margin:0 0 6px}
.report-link{display:inline-grid;place-items:center;background:#151020df;border-radius:20px;min-width:39px;min-height:39px}
@media(max-width:600px){
 .feed-view .feed-quick{top:calc(env(safe-area-inset-top) + 6px);right:calc(env(safe-area-inset-right) + 8px)}
 .feed-view .feed-top .tabs{padding-right:0}
 .feed-quick a{width:32px;height:32px}
 .feed-quick svg{width:17px;height:17px}
 .feed-view .clip-actions{gap:8px}
}
.feed-quick .has-notices::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--pink);position:absolute;right:3px;top:3px}
.signed-out{background:#0b0910}
.signed-out .shell{display:block;max-width:none;padding:0}
.signed-out .rail,.signed-out .side{display:none}
.signed-out main{margin:auto;padding-inline:20px}
main.access-view{
  display:grid;place-items:center;margin:auto;width:100%;max-width:none;
  min-height:100vh;min-height:100dvh;
  padding:max(24px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right))
    max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
}
.access-card{
  width:min(100%,388px);padding:30px 28px 26px;border-radius:24px;text-align:center;
  background:#121019;border:1px solid #272032;box-shadow:0 20px 68px #07050a80;
}
.access-logo{
  display:grid;place-items:center;width:64px;height:64px;margin:0 auto 17px;border-radius:19px;
  background:linear-gradient(155deg,#9949ff,#6e2cdf);box-shadow:inset 0 1px #dfbbff50;
}
.access-logo svg{width:34px;height:36px}
.access-card h1{font-size:1.4rem;line-height:1.2;letter-spacing:-.025em;margin:0 0 16px}
.access-slogan{color:#caaaff;font-size:.9rem;margin:0 0 19px}
.access-options{display:grid;gap:12px}
.access-provider{
  display:flex;align-items:center;justify-content:center;gap:10px;position:relative;width:100%;min-height:49px;
  padding:11px 8px;border:1px solid transparent;border-radius:13px;font-size:.9rem;font-weight:650;
}
.access-provider img,.access-provider svg{width:18px;height:18px;object-fit:contain;flex:none}
.access-provider small{font-size:.65rem}
.access-provider[aria-disabled]{cursor:default}
button.access-provider:hover,a.access-provider:hover{filter:brightness(1.12)}
.provider-google{background:#fff;color:#222128}
.provider-apple{background:#000;border-color:#5e5967;color:#fff;padding-block:4px}
.provider-apple img{width:min(210px,68%);height:auto}
.provider-facebook{background:#0768dc;color:#fff}
.provider-email{background:#171320;border-color:#675581;color:#fbf7ff}
.access-unavailable,.access-footer,.access-error{font-size:.77rem;line-height:1.55}
.access-unavailable{color:#c4b3d7;margin:13px 0 0}
.access-footer{color:#c8bfd4;max-width:30ch;margin:13px auto 0}
.access-card a:not(.access-provider){color:#dbbcff;text-decoration:underline;text-underline-offset:3px}
.access-error{color:#ffc2d9;margin:12px 0 0}
.access-card .social-form{text-align:left;margin:0}
.access-card .social-form .accent{width:100%;min-height:46px;background:#773ce3;color:#fff;border-radius:12px}
.access-card .form-status:empty{display:none}
.access-card .field{font-size:.875rem;line-height:1.45}
.access-card .field input{font-size:1rem}
.access-consent{display:grid;gap:11px;margin:1px 0 6px;font-size:.82rem;line-height:1.5}
.access-consent label{display:block}
.access-consent input{width:1.05rem;height:1.05rem;vertical-align:middle;margin:0 5px 2px 0;accent-color:#8d51ee}
.access-links{display:flex;justify-content:center;gap:8px 12px;flex-wrap:wrap;margin-top:16px}
.access-links .plain{background:transparent;border:0;padding:4px 0;font-weight:500;font-size:.8rem}
.access-legal{text-align:left;color:#e3dbe9;font-size:.88rem;line-height:1.6}
@media(max-width:480px){
  .signed-out:has(.access-view){background:#121019}
  .access-card{width:min(100%,350px);padding:16px 2px;border:0;box-shadow:none}
}
