/* =====================================================================
   Z3T — Estilo "Nebula" (inicio nuevo + barra inferior)
   Todo va limitado a html[data-style="nebula"]; el estilo Z clásico
   no cambia. Las reglas de .sty-* (selector de estilos) valen para ambos.
   ===================================================================== */

/* ---------- selector de estilos (ajustes) ---------- */
.sty-modal{max-width:440px}
.sty-hint{font-size:.8rem;color:var(--ash);margin:0 0 .9rem}
.sty-grid{display:grid;gap:.8rem}
.sty-card{position:relative;display:flex;gap:.9rem;align-items:center;width:100%;text-align:left;padding:.7rem;border-radius:16px;border:1.5px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:inherit;cursor:pointer;font:inherit}
.sty-card.on{border-color:#a78bfa;box-shadow:0 0 0 3px rgba(167,139,250,.25)}
.sty-prev{flex:0 0 96px;height:110px;border-radius:12px;overflow:hidden;position:relative;border:1px solid rgba(255,255,255,.12)}
.sty-prev-z{background:linear-gradient(160deg,#1b0f26,#0a0713 70%)}
.sty-prev-z::before{content:"Z";position:absolute;inset:0;display:grid;place-items:center;font:700 2rem 'IBM Plex Mono',monospace;color:rgba(255,255,255,.75)}
.sty-prev-n{background:#020005 url(nebula/planet-orbit.webp) 70% 28%/150% no-repeat}
.sty-prev-n::after{content:"";position:absolute;left:8px;right:8px;bottom:8px;height:12px;border-radius:7px;border:1px solid rgba(139,61,255,.7);background:rgba(40,14,90,.6)}
.sty-txt b{display:block;font-size:.98rem;margin-bottom:.15rem}
.sty-txt small{display:block;font-size:.76rem;color:var(--ash);line-height:1.35}
.sty-check{position:absolute;top:.55rem;right:.7rem;width:1.3rem;height:1.3rem;border-radius:50%;background:#8b5cf6;color:#fff;display:none;place-items:center;font-size:.8rem}
.sty-card.on .sty-check{display:grid}

/* ---------- Nebula: solo con el estilo activo ---------- */
.nb-home{display:none}

html[data-style="nebula"]{--nb-violet:#8b3dff;--nb-violet2:#b184ff;--nb-ink:#f4f0ff;--nb-muted:#a79bc9;--nb-line:rgba(139,61,255,.5);--nb-glass:linear-gradient(135deg,rgba(60,24,120,.35),rgba(10,4,24,.7))}

/* orden del inicio: hero, en vivo, videos, anuncios, círculos, publicaciones */
html[data-style="nebula"] #panel-list.active{display:flex;flex-direction:column}
html[data-style="nebula"] #panel-list>.home-star-field,
html[data-style="nebula"] #panel-list>.meet-widget,
html[data-style="nebula"] #panel-list>.feed-shortcut-row{display:none!important}
html[data-style="nebula"] #panel-list>#nbHome{order:0}
html[data-style="nebula"] #panel-list>#announcementsStrip{order:1}
html[data-style="nebula"] #panel-list>#topCommunitiesStrip{order:2}
html[data-style="nebula"] #panel-list>#exploreCirclesStrip{order:3}
html[data-style="nebula"] #panel-list>#tabs{order:4}
html[data-style="nebula"] #panel-list>#threadList{order:5}
html[data-style="nebula"] #panel-list>#emptyState{order:6}

/* pestañas del feed como pastillas brillantes */
html[data-style="nebula"] .feed-sort-tabs{gap:.45rem}
html[data-style="nebula"] .feed-sort-tabs .tab{border-radius:999px;border:1px solid rgba(139,61,255,.35);background:radial-gradient(circle at 50% 30%,rgba(60,24,120,.45),rgba(6,2,14,.85));color:var(--nb-muted)}
html[data-style="nebula"] .feed-sort-tabs .tab.active{color:var(--nb-ink);border-color:var(--nb-violet);box-shadow:0 0 14px rgba(139,61,255,.55),inset 0 0 10px rgba(139,61,255,.35)}

/* ---------- encabezado ---------- */
html[data-style="nebula"] .app-topbar{justify-content:space-between;gap:.4rem}
html[data-style="nebula"] .app-topbar #btnDrawer,
html[data-style="nebula"] .app-topbar .username-label,
html[data-style="nebula"] .app-topbar #btnStore,
html[data-style="nebula"] .app-topbar #btnInstallApp,
html[data-style="nebula"] .app-topbar>.app-search{display:none!important}
html[data-style="nebula"] .app-topbar .user-chip{background:none;border:0;padding:0;backdrop-filter:none;-webkit-backdrop-filter:none;position:relative}
html[data-style="nebula"] .app-topbar .user-chip .avatar{width:44px;height:44px;box-shadow:0 0 0 2px var(--nb-violet),0 0 14px rgba(139,61,255,.75)}
html[data-style="nebula"] .app-topbar .user-chip::after{content:"";position:absolute;right:-1px;bottom:1px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid #0a0713;box-shadow:0 0 6px #22c55e}
html[data-style="nebula"] .app-topbar::after{content:"Z3T";position:absolute;left:50%;top:calc(50% + env(safe-area-inset-top,0px)/2);transform:translate(-50%,-50%);padding-left:30px;font:400 17px Michroma,'Outfit',sans-serif;letter-spacing:.03em;color:var(--nb-ink);background:url(nebula/spark-md.webp) left center/22px no-repeat;pointer-events:none}
html[data-style="nebula"] .app-topbar .app-actions{margin-left:auto;display:flex;gap:2px}
html[data-style="nebula"] .app-topbar #btnGlobalSearch,
html[data-style="nebula"] .app-topbar #btnNotif{width:42px;height:42px;padding:0;border:0;border-radius:0;background:url(nebula/btn-search.webp) center/contain no-repeat;backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-style="nebula"] .app-topbar #btnNotif{background-image:url(nebula/btn-bell.webp)}
html[data-style="nebula"] .app-topbar #btnGlobalSearch svg,
html[data-style="nebula"] .app-topbar #btnNotif svg{display:none}
html[data-style="nebula"] .app-topbar #notifBadge{top:3px;right:3px;width:8px;height:8px;min-width:0;padding:0;font-size:0;border-radius:50%;background:var(--nb-violet);box-shadow:0 0 8px var(--nb-violet)}

/* ---------- bloque de inicio ---------- */
html[data-style="nebula"] .nb-home{display:block;position:relative;isolation:isolate;overflow:hidden;font-family:'Outfit',system-ui,sans-serif;color:var(--nb-ink);margin:0 calc(-1*clamp(1rem,3vw,2.2rem)) 1rem;padding:0 0 .4rem}
.nb-home::before{content:"";position:absolute;left:0;right:0;top:0;height:480px;z-index:-3;background:linear-gradient(rgba(2,0,5,0),#020005 14%,#020005 65%,rgba(2,0,5,0));pointer-events:none}
.nb-bg{position:absolute;inset:0 0 auto 0;height:430px;z-index:-2;background:url(nebula/bg-space.webp) center top/cover no-repeat;opacity:.55;-webkit-mask-image:linear-gradient(#000 40%,transparent);mask-image:linear-gradient(#000 40%,transparent);pointer-events:none}
.nb-planet{position:absolute;right:-76px;top:6px;width:347px;max-width:none;z-index:-1;pointer-events:none}
.nb-hero{padding:74px 22px 14px}
.nb-hero h1{font-weight:300;font-size:27px;line-height:1.1;letter-spacing:-.01em;margin:0}
.nb-hero h1 b{display:block;font-weight:600;color:var(--nb-violet)}
.nb-hero p{margin:8px 0 0;color:var(--nb-muted);font-size:12px;line-height:1.25}
.nb-cta-row{display:flex;align-items:center;gap:10px;margin-top:16px}
.nb-cta{width:176px;height:46px;border:0;color:var(--nb-ink);font:400 14px 'Outfit',sans-serif;background:url(nebula/button.webp) center/100% 100% no-repeat;cursor:pointer}
.nb-cta span{display:block;padding-left:20px}
.nb-bottle{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px 0 9px;border-radius:999px;border:1px solid var(--nb-line);background:var(--nb-glass);color:var(--nb-violet2);font:400 11.5px 'Outfit',sans-serif;cursor:pointer;box-shadow:0 0 14px rgba(139,61,255,.25);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.nb-bottle svg{width:17px;height:17px}
.nb-bottle:active{transform:scale(.96)}

.nb-sec{display:flex;align-items:center;justify-content:space-between;padding:0 18px;margin:20px 0 10px}
.nb-sec h2{display:flex;align-items:center;gap:9px;font-weight:400;font-size:16px;margin:0}
.nb-sec h2 u{width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#c9a4ff,var(--nb-violet));box-shadow:0 0 10px var(--nb-violet);text-decoration:none}
.nb-sec h2 svg{width:18px;height:18px;color:var(--nb-violet)}

/* ---------- en vivo: carrusel de gente buscando Meet ---------- */
.nb-live{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.nb-live-track{display:flex;gap:10px;width:max-content;padding:2px 14px;animation:nbMarquee var(--nb-dur,24s) linear infinite}
.nb-live[data-static="1"] .nb-live-track{animation:none}
.nb-live:active .nb-live-track{animation-play-state:paused}
@keyframes nbMarquee{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 5px))}}
.nb-live-card{display:flex;align-items:center;gap:11px;flex:0 0 auto;width:272px;padding:8px 12px;border-radius:22px;border:1px solid var(--nb-line);background:var(--nb-glass);color:inherit;font:inherit;text-align:left;cursor:pointer}
.nb-live-card .avatar{width:52px;height:52px;box-shadow:0 0 0 2px var(--nb-violet),0 0 12px rgba(139,61,255,.7);flex:0 0 auto}
.nb-live-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.nb-chip{align-self:flex-start;display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border-radius:10px;background:rgba(139,61,255,.3);font-size:10px;color:var(--nb-violet2)}
.nb-chip::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--nb-violet2);animation:nbPulse 1.4s ease-in-out infinite}
@keyframes nbPulse{50%{opacity:.25}}
.nb-live-t b{font-weight:400;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nb-live-t small{color:var(--nb-muted);font-size:11.5px}
.nb-wave{display:flex;align-items:center;gap:3px;height:28px;flex:0 0 auto}
.nb-wave s{width:2px;border-radius:2px;background:linear-gradient(var(--nb-violet2),var(--nb-violet));animation:nbWave 1.1s ease-in-out infinite alternate}
.nb-wave s:nth-child(3n){animation-delay:.25s}.nb-wave s:nth-child(3n+1){animation-delay:.5s}
@keyframes nbWave{from{transform:scaleY(.45)}to{transform:scaleY(1)}}
.nb-go{width:28px;height:28px;flex:0 0 auto;border-radius:50%;border:1px solid var(--nb-line);background:rgba(10,4,24,.8);display:grid;place-items:center}
.nb-go svg{width:14px;height:14px}
.nb-live-empty{width:calc(100% - 28px);margin:0 14px}
.nb-live[data-static="1"] .nb-live-track{padding:2px 0}

/* ---------- tendencias: videos en scroll vertical ---------- */
.nb-videos{position:relative;height:min(70vh,540px);margin:0 14px;overflow-y:auto;scroll-snap-type:y mandatory;border-radius:20px;border:1px solid var(--nb-line);background:#05020d;scrollbar-width:none;overscroll-behavior-y:auto}
.nb-videos::-webkit-scrollbar{display:none}
.nb-vid{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;background:#000;overflow:hidden}
.nb-vid video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.nb-vid.nb-portrait video{object-fit:cover}
.nb-vid-shade{position:absolute;inset:0;background:linear-gradient(transparent 55%,rgba(2,0,5,.88));pointer-events:none}
.nb-vid-play{position:absolute;inset:0;display:none;place-items:center;pointer-events:none}
.nb-vid.paused .nb-vid-play{display:grid}
.nb-vid-play i{width:58px;height:58px;border-radius:50%;background:rgba(10,4,24,.6);border:1px solid var(--nb-line);display:grid;place-items:center}
.nb-vid-play svg{width:24px;height:24px;color:#fff}
.nb-vid-sound{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:50%;border:1px solid var(--nb-line);background:rgba(10,4,24,.65);color:#fff;display:grid;place-items:center;cursor:pointer}
.nb-vid-sound svg{width:19px;height:19px}
.nb-vid-info{position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.nb-vid-user{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;color:#fff;text-shadow:0 1px 4px #000}
.nb-vid-user .avatar{width:32px;height:32px;box-shadow:0 0 0 2px var(--nb-violet)}
.nb-vid-user span.n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nb-vid-open{flex:0 0 auto;padding:7px 13px;border-radius:999px;border:1px solid var(--nb-line);background:rgba(60,24,120,.55);color:#fff;font:400 12px 'Outfit',sans-serif;cursor:pointer}
.nb-vid-hint{position:absolute;left:0;right:0;top:10px;text-align:center;font-size:11px;color:rgba(255,255,255,.7);pointer-events:none;text-shadow:0 1px 3px #000}
.nb-videos-empty{display:grid;place-items:center;height:100%;padding:1.5rem;text-align:center;color:var(--nb-muted);font-size:13px}

/* ---------- barra inferior ---------- */
html[data-style="nebula"] .bottom-nav{left:50%!important;right:auto!important;transform:translateX(-50%);width:min(380px,calc(100% - 24px));height:60px;padding:0!important;display:grid!important;grid-template-columns:1fr 1fr 70px 1fr 1fr;align-items:center;justify-content:normal;border-radius:30px;border:1px solid rgba(139,61,255,.5)!important;background:linear-gradient(180deg,rgba(40,14,90,.55),rgba(6,2,14,.92))!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 0 26px rgba(139,61,255,.22)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 10px)!important}
html[data-style="nebula"] .bottom-nav button{position:relative;background:none!important;border:0;box-shadow:none;border-radius:0;padding:0;gap:2px;color:#a79bc9;font:400 10px 'Outfit',sans-serif;letter-spacing:0}
html[data-style="nebula"] .bottom-nav button .nav-icon{display:none!important}
html[data-style="nebula"] .bottom-nav button::before{content:"";width:22px;height:22px;background:#b184ff;-webkit-mask:var(--nbi) center/contain no-repeat;mask:var(--nbi) center/contain no-repeat}
html[data-style="nebula"] .bottom-nav button.bn-active{color:var(--nb-ink);background:none!important}
html[data-style="nebula"] .bottom-nav button.bn-active::before{background:#9d5cff;filter:drop-shadow(0 0 5px rgba(139,61,255,.9))}
html[data-style="nebula"] .bottom-nav button[data-action="home"]{--nbi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E")}
html[data-style="nebula"] .bottom-nav button[data-action="categories"]{--nbi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E")}
html[data-style="nebula"] .bottom-nav button[data-action="messages"]{--nbi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 8.6 8.6 0 0 1-3.6-.8L3 21l1.9-5.2A8.3 8.3 0 0 1 3 11.5 8.5 8.5 0 0 1 12 3a8.5 8.5 0 0 1 9 8.5z'/%3E%3C/svg%3E")}
html[data-style="nebula"] .bottom-nav button[data-action="store"]{--nbi:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 12H6zM9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E")}
html[data-style="nebula"] .bottom-nav .bottom-nav-fab{align-self:start;margin-top:-16px;width:70px;height:70px;justify-self:center;border-radius:0;background:url(nebula/orb.webp) center/contain no-repeat!important}
html[data-style="nebula"] .bottom-nav .bottom-nav-fab::before{display:none}
html[data-style="nebula"] .nb-nav-badge{position:absolute;top:5px;left:calc(50% + 4px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--nb-violet);color:#fff;font:500 10px 'Outfit',sans-serif;display:grid;place-items:center;box-shadow:0 0 8px rgba(139,61,255,.7)}
.nb-nav-badge[hidden]{display:none!important}
.nb-nav-badge{display:none}
html[data-style="nebula"] .nb-nav-badge:not([hidden]){display:grid}

@media (prefers-reduced-motion:reduce){.nb-live-track{animation:none}.nb-wave s,.nb-chip::before{animation:none}}

/* ===================== v111 ===================== */
/* fondo negro (si no hay tema personalizado) */
html[data-style="nebula"]:not(.custom-theme),html[data-style="nebula"]:not(.custom-theme) body{background:#000!important}
html[data-style="nebula"]:not(.custom-theme) #scene{background:#000!important;background-image:none!important}
html[data-style="nebula"]:not(.custom-theme) #scene canvas{display:none!important}
html[data-style="nebula"]:not(.custom-theme) .view-app,html[data-style="nebula"]:not(.custom-theme) .app-content,html[data-style="nebula"]:not(.custom-theme) .panel.active{background:#000!important}
html[data-style="nebula"] .nb-home::before{background:linear-gradient(rgba(0,0,0,0),#000 14%,#000 65%,rgba(0,0,0,0))}
html[data-style="nebula"].custom-has-bg .nb-home::before{display:none}

/* sin temas Z dentro de Nebula: solo Personalizado y Nebula normal */
html[data-style="nebula"] #themeGrid,html[data-style="nebula"] #panel-themes>.sc-tap-hint{display:none!important}
html[data-style="nebula"] #panel-theme-custom .tc-block:has(#tcPickLogo){display:none!important}
html[data-style="nebula"] #btnProfileMenuAppIcons{display:none}
.nb-normal-card{display:none}
html[data-style="nebula"] .nb-normal-card{display:flex;align-items:center;gap:.8rem;width:calc(100% - 2rem);margin:.6rem 1rem;padding:.8rem;border-radius:16px;border:1.5px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:inherit;text-align:left;cursor:pointer;font:inherit}
html[data-style="nebula"] .nb-normal-card.active{border-color:#a78bfa;box-shadow:0 0 0 3px rgba(167,139,250,.25)}
html[data-style="nebula"] .nb-normal-card i{width:44px;height:44px;border-radius:12px;background:#000 url(nebula/planet-orbit.webp) 70% 30%/180% no-repeat;border:1px solid rgba(139,61,255,.6)}
html[data-style="nebula"] .nb-normal-card small{display:block;opacity:.7;font-size:.75rem}

/* personalizado: todo recolorea con el acento */
html[data-style="nebula"].custom-theme{--nb-violet:var(--c500);--nb-violet2:var(--c400);--nb-ink:var(--bone);--nb-muted:var(--ash);--nb-line:rgba(var(--c500-rgb),.5);--nb-glass:linear-gradient(135deg,rgba(var(--c700-rgb),.35),rgba(0,0,0,.7))}
html[data-style="nebula"].custom-theme .nb-cta,
html[data-style="nebula"].custom-theme .app-topbar #btnGlobalSearch,
html[data-style="nebula"].custom-theme .app-topbar #btnNotif{filter:hue-rotate(var(--nb-hue,0deg))}
html[data-style="nebula"].custom-theme .bottom-nav{border-color:var(--nb-line)!important;background:linear-gradient(180deg,rgba(var(--c700-rgb),.55),rgba(0,0,0,.92))!important;box-shadow:0 0 26px rgba(var(--c500-rgb),.25)!important}
html[data-style="nebula"].custom-theme .bottom-nav button::before{background:var(--c400)}
html[data-style="nebula"].custom-theme .bottom-nav button.bn-active::before{background:var(--c500);filter:drop-shadow(0 0 5px var(--c500))}
html[data-style="nebula"].custom-theme .feed-sort-tabs .tab{border-color:var(--nb-line);background:rgba(var(--c900-rgb),.5)}
html[data-style="nebula"].custom-theme .feed-sort-tabs .tab.active{box-shadow:0 0 14px rgba(var(--c500-rgb),.55),inset 0 0 10px rgba(var(--c500-rgb),.35)}
html[data-style="nebula"].custom-theme .nb-bottle,html[data-style="nebula"].custom-theme .nb-vid-open{border-color:var(--nb-line);background:rgba(var(--c700-rgb),.45)}

/* barra inferior: solo en las pestañas principales; se oculta en chats, comentarios, publicaciones, videos… */
html[data-style="nebula"] body[data-panel]:not([data-panel="panel-list"]):not([data-panel="panel-messages"]):not([data-panel="panel-communities"]):not([data-panel="panel-circles"]):not([data-panel="panel-store"]) .bottom-nav,
html[data-style="nebula"] body.community-immersive .bottom-nav,
html[data-style="nebula"] body.profile-open .bottom-nav,
html[data-style="nebula"] body.frame-immersive .bottom-nav,
html[data-style="nebula"] body.z3t-reels-open .bottom-nav{display:none!important}

/* ===== Reels (pantalla completa tipo TikTok) ===== */
.rl-root{position:fixed;inset:0;z-index:70;background:#000;color:#fff;font-family:'Outfit',system-ui,sans-serif}
.rl-top{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top,0px) + 10px) 14px 10px;background:linear-gradient(rgba(0,0,0,.6),transparent)}
.rl-top h3{margin:0;font:600 17px 'Outfit',sans-serif}
.rl-topbtn{width:40px;height:40px;border:0;background:none;color:#fff;display:grid;place-items:center;cursor:pointer}
.rl-topbtn svg{width:24px;height:24px}
.rl-pager{position:absolute;inset:0;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain}
.rl-pager::-webkit-scrollbar{display:none}
.rl-item{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;background:#000;overflow:hidden}
.rl-item video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.rl-item.rl-portrait video{object-fit:cover}
.rl-tap{position:absolute;inset:0}
.rl-item.paused::after{content:"";position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px;border-radius:50%;background:rgba(0,0,0,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/50% no-repeat;pointer-events:none}
.rl-heartpop{position:absolute;left:50%;top:50%;width:96px;height:96px;margin:-48px;color:#ff3b6b;opacity:0;pointer-events:none}
.rl-heartpop svg{width:100%;height:100%;fill:currentColor}
.rl-heartpop.go{animation:rlPop .7s ease-out}
@keyframes rlPop{0%{opacity:0;transform:scale(.4)}25%{opacity:1;transform:scale(1.15)}100%{opacity:0;transform:scale(1)}}
.rl-rail{position:absolute;right:8px;bottom:calc(env(safe-area-inset-bottom,0px) + 90px);display:flex;flex-direction:column;align-items:center;gap:16px;z-index:3}
.rl-av{position:relative;width:56px;height:62px}
.rl-avbtn{border:0;background:none;padding:0;cursor:pointer}
.rl-av .avatar{width:56px;height:56px;border:2px solid #fff}
.rl-plus{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:22px;height:22px;border-radius:50%;border:2px solid #fff;background:#5b4be0;color:#fff;font:700 15px/1 sans-serif;display:grid;place-items:center;padding:0;cursor:pointer}
.rl-btn{border:0;background:none;color:#fff;display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;padding:0;font:500 13px 'Outfit',sans-serif;text-shadow:0 1px 3px #000}
.rl-btn i{width:34px;height:34px;display:grid;place-items:center}
.rl-btn svg{width:32px;height:32px}
.rl-like.on svg{fill:#ff3b6b;stroke:#ff3b6b}
.rl-info{position:absolute;left:14px;right:84px;bottom:calc(env(safe-area-inset-bottom,0px) + 22px);z-index:3;text-shadow:0 1px 4px #000}
.rl-user b{font-size:17px}
.rl-user em{font-style:normal;opacity:.7;margin-left:6px;font-size:13px}
.rl-title{margin:4px 0 0;font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rl-views{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:13px;opacity:.75}
.rl-views svg{width:16px;height:16px}
.rl-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(255,255,255,.2);z-index:4}
.rl-bar i{display:block;height:100%;width:0;background:#fff}
.rl-empty{height:100%;display:grid;place-items:center;text-align:center;color:#aaa;padding:2rem}
.rl-sheet-wrap{position:absolute;inset:0;z-index:10}
.rl-sheet-wrap[hidden]{display:none}
.rl-scrim{position:absolute;inset:0;background:rgba(0,0,0,.35)}
.rl-sheet{position:absolute;left:0;right:0;bottom:0;max-height:80%;overflow-y:auto;background:#0f0f1c;border-radius:24px 24px 0 0;padding:8px 18px calc(env(safe-area-inset-bottom,0px) + 14px);transform:translateY(100%);transition:transform .18s ease}
.rl-sheet-wrap.open .rl-sheet{transform:none}
.rl-sheet-tall{height:72%;display:flex;flex-direction:column;overflow:hidden}
.rl-grab{display:block;width:44px;height:5px;border-radius:3px;background:#555;margin:4px auto 10px}
.rl-row{display:flex;align-items:center;gap:18px;width:100%;padding:14px 4px;border:0;background:none;color:#eee;text-align:left;cursor:pointer;font:inherit}
.rl-row i{width:28px;height:28px;color:#bbb;flex:0 0 auto}
.rl-row i svg{width:28px;height:28px}
.rl-row b{display:block;font-weight:400;font-size:17px}
.rl-row small{display:block;color:#777;font-size:13px;margin-top:2px}
.rl-row.warn i{color:#f5a524}
.rl-chead{text-align:center;font-weight:600;padding:6px 0 12px;border-bottom:1px solid #26263a}
.rl-clist{flex:1;overflow-y:auto;padding:10px 0}
.rl-cempty{text-align:center;color:#888;padding:3rem 1rem;font-size:14px}
.rl-c{display:flex;gap:10px;padding:8px 0}
.rl-c .avatar{width:36px;height:36px;flex:0 0 auto}
.rl-c b{font-size:13px}.rl-c em{font-style:normal;color:#777;font-size:12px;margin-left:6px}
.rl-c p{margin:2px 0 0;font-size:14px;word-break:break-word}
.rl-cform{display:flex;gap:8px;padding-top:10px;border-top:1px solid #26263a}
.rl-cform input{flex:1;border:0;border-radius:999px;background:#1b1b2e;color:#fff;padding:11px 16px;font:inherit;font-size:15px;outline:0}
.rl-cform button{width:42px;height:42px;border:0;border-radius:50%;background:#5b4be0;color:#fff;display:grid;place-items:center;cursor:pointer}
.rl-cform button svg{width:20px;height:20px}
