/*
Theme Name: XXXBrits Portal
Author: Portal Custom
Description: Diseño de portal oscuro con cabecera, menú lateral contraíble y cuadrículas para videos, shorts e imágenes.
Version: 2.3.0
Requires PHP: 8.0
*/
:root{--red:#e60012;--bg:#000;--panel:#151515;--line:#262626;--muted:#858585;--text:#fff;--side:232px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.45 Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}a:hover{color:#f33}button,input{font:inherit}.xb-strip{height:36px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:800;background:#090909;border-bottom:1px solid #202020}.xb-live-dot{width:8px;height:8px;border-radius:50%;background:#22dd77;box-shadow:0 0 7px #24c26b}.xb-header{height:69px;background:#050505;display:flex;align-items:center;gap:18px;padding:0 25px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}.xb-hamb{cursor:pointer;flex:none;background:transparent;color:#fff;font-size:30px;border:0;padding:0 5px;line-height:1}.xb-logo{font-size:31px;font-weight:1000;letter-spacing:-1.5px;white-space:nowrap}.xb-logo span{color:var(--red)}.xb-search{display:flex;width:min(610px,45vw);height:38px;margin:auto;position:relative}.xb-search input{background:#141414;border:1px solid #292929;color:#fff;border-radius:24px;padding:0 55px 0 20px;width:100%;outline:none}.xb-search button{position:absolute;right:9px;top:0;bottom:0;background:none;color:var(--red);border:0;font-weight:900;font-size:32px;cursor:pointer}.xb-account{display:flex;align-items:center;gap:7px;white-space:nowrap}.xb-pill{background:#111;padding:12px 23px;border-radius:25px;font-weight:800;font-size:12px}.xb-pill-red,.xb-form button,.xb-button{background:var(--red);color:white;border:0}.xb-upload{font-weight:800;font-size:13px;padding:8px}.xb-secondary{background:#121212;display:grid;grid-template-columns:repeat(3,1fr);min-height:38px;border-bottom:1px solid #272727}.xb-secondary a{border-right:1px solid #292929;text-align:center;padding:10px 5px;font-weight:800;font-size:12px}.xb-shell{display:grid;grid-template-columns:var(--side) minmax(0,1fr);align-items:start;min-height:75vh}.xb-sidebar{position:sticky;top:69px;height:calc(100vh - 69px);overflow-y:auto;background:#151515;border-radius:0 15px 15px 0;padding:16px 9px}.xb-side-nav{display:grid;gap:3px}.xb-side-link{min-width:0;display:flex;align-items:center;gap:15px;border-radius:24px;padding:11px 15px;font-weight:700;font-size:13px}.xb-side-link:hover,.xb-side-link.is-current{background:#29070a;color:#ff2435;outline:1px solid #ba0917}.xb-side-icon{font-size:21px;width:25px;text-align:center;flex:none}.xb-side-label{overflow:hidden;text-overflow:ellipsis}.xb-side-terms{margin:22px 8px 0;padding-top:15px;border-top:1px solid #303030}.xb-side-terms h3{font-size:17px;margin:0 0 10px}.xb-side-terms a{display:flex;justify-content:space-between;gap:5px;padding:11px 7px;font-weight:650;font-size:13px}.xb-side-terms small,.xb-side-terms p{color:var(--muted)}.xb-body{min-width:0;padding:0 25px}.xb-chips{display:flex;align-items:center;gap:9px;overflow-x:auto;white-space:nowrap;padding:17px 0 12px;scrollbar-width:thin}.xb-chip{border:1px solid #292929;border-radius:22px;padding:8px 17px;color:#a7a7a7;font-weight:600;font-size:13px}.xb-chip-active{background:#f6f6f6;color:#141414;border-color:#f6f6f6}.xb-main{min-width:0;padding:25px 0 55px}.xb-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 16px}.xb-heading h1,.xb-heading h2{font-size:24px;line-height:1.25;margin:0;font-weight:800}.xb-heading a{color:#aaa;font-size:13px}.xb-section{margin-bottom:45px}.xb-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:27px 17px;min-width:0}.xb-card{min-width:0;overflow:hidden}.xb-thumb{width:100%;aspect-ratio:16/9;background:#161616;position:relative;border-radius:10px;overflow:hidden}.xb-thumb img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .15s}.xb-card:hover img{transform:scale(1.035)}.xb-short .xb-thumb{aspect-ratio:9/16}.xb-no-thumb{width:100%;height:100%;display:grid;place-items:center;font-size:48px;color:#494949}.xb-duration,.xb-hd,.xb-likes{position:absolute;bottom:8px;background:#000b;color:white;border-radius:8px;padding:3px 7px;font-size:11px;font-weight:800}.xb-duration{left:8px}.xb-hd{left:55px;background:#d22}.xb-likes{right:8px}.xb-card h3{font-size:13px;line-height:1.3;font-weight:700;margin:8px 0 5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.xb-card-sub{color:#818181;font-size:11px;display:flex;gap:5px;flex-wrap:wrap}.xb-dot{color:#e11}.xb-empty{grid-column:1/-1;min-width:0;width:100%;padding:25px;border:1px dashed #323232;background:#101010;border-radius:10px;color:#aaa}.xb-pagination{display:flex;gap:7px;flex-wrap:wrap;margin:25px 0}.xb-pagination a,.xb-pagination span{padding:8px 12px;background:#171717;border-radius:5px}.xb-pagination .current{background:#bd0715}.xb-single{max-width:1190px;margin:auto}.xb-single h1{font-size:28px}.xb-player,.xb-media video,.xb-media iframe{width:100%;max-height:75vh;background:black;border-radius:10px}.xb-media{margin-bottom:19px}.xb-meta{display:flex;gap:15px;flex-wrap:wrap;color:#aaa;margin:15px 0}.xb-copy{line-height:1.7;overflow-wrap:anywhere}.xb-tags a{display:inline-block;background:#1c1c1c;border-radius:5px;padding:6px 9px;margin:3px}.xb-photos img{max-width:min(100%,850px);width:auto;height:auto;display:block;margin:0 auto 15px}.xb-form{max-width:650px;display:grid;gap:15px}.xb-form label{display:grid;gap:6px}.xb-form input,.xb-form textarea,.xb-form select,#loginform input{width:100%;padding:12px;border:1px solid #444;background:#191919;color:#fff;border-radius:7px}.xb-form button{padding:11px 16px;border-radius:7px;cursor:pointer;justify-self:start}.xb-footer{background:#090909;border-top:1px solid #202020;text-align:center;padding:25px;color:#999}.xb-collapsed{--side:70px}.xb-collapsed .xb-side-label,.xb-collapsed .xb-side-terms{display:none}.xb-collapsed .xb-sidebar{padding:14px 5px}.xb-collapsed .xb-side-link{padding:11px;justify-content:center}.xb-collapsed .xb-side-icon{width:auto}
@media(max-width:1500px){.xb-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){:root{--side:76px}.xb-side-label,.xb-side-terms{display:none}.xb-side-link{justify-content:center;padding:12px 5px}.xb-side-icon{width:auto}.xb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.xb-body{padding:0 16px}.xb-account .xb-upload{display:none}}@media(max-width:740px){.xb-header{padding:0 12px;gap:10px;height:64px}.xb-logo{font-size:22px}.xb-search{min-width:60px;width:auto;flex:1}.xb-account .xb-pill{padding:9px 10px;font-size:10px}.xb-account .xb-pill:not(.xb-pill-red){display:none}.xb-secondary a{font-size:10px}.xb-shell{display:block}.xb-sidebar{display:none;position:fixed;z-index:45;left:0;top:64px;bottom:0;width:235px;height:auto;overflow-y:auto;box-shadow:8px 0 35px #0009}.xb-collapsed .xb-sidebar{display:block}.xb-collapsed .xb-side-label,.xb-collapsed .xb-side-terms{display:block}.xb-collapsed .xb-side-link{justify-content:flex-start;padding:11px 15px}.xb-body{padding:0 12px}.xb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 9px}.xb-main{padding-top:15px}.xb-heading h1,.xb-heading h2{font-size:21px}.xb-chip{padding:7px 10px}}@media(max-width:390px){.xb-logo{font-size:18px}.xb-account .xb-pill-red{font-size:9px;padding:8px}.xb-card h3{font-size:12px}}

/* v2.1.0: Play rojo central y shorts deslizantes */
.xb-media .xb-play-shell{position:relative;width:100%;background:#000;border-radius:10px;overflow:hidden}
.xb-media .xb-play-shell video{display:block;width:100%;max-height:75vh;background:#000}
.xb-center-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;width:86px;height:86px;border:2px solid #fff9;border-radius:50%;display:grid;place-items:center;background:#e60012;color:#fff;cursor:pointer;box-shadow:0 8px 35px #0009;transition:transform .18s,opacity .18s}
.xb-center-play svg{width:39px;height:39px;margin-left:5px;fill:currentColor}
.xb-center-play:hover{transform:translate(-50%,-50%) scale(1.09);background:#fb1225}
.xb-play-shell.is-playing .xb-center-play,.xb-short-slide.is-playing .xb-center-play{opacity:0;pointer-events:none}
.xb-play-shell.is-paused .xb-center-play,.xb-short-slide.is-paused .xb-center-play{opacity:1;pointer-events:auto}
.xb-short-heading{max-width:510px;margin:0 auto 12px}
.xb-short-feed{height:min(82dvh,850px);height:min(82vh,850px);overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:thin;max-width:510px;margin:0 auto;background:#080808;border-radius:15px;scroll-behavior:smooth}
.xb-short-slide{scroll-snap-align:start;scroll-snap-stop:always;height:100%;min-height:100%;position:relative;background:#050505;display:flex;align-items:center;justify-content:center;overflow:hidden}
.xb-short-slide video{width:100%;height:100%;object-fit:contain;background:#000;display:block}
.xb-short-slide .xb-center-play{width:76px;height:76px}
.xb-short-caption{position:absolute;bottom:60px;left:16px;right:75px;z-index:3;text-shadow:0 2px 8px #000;background:linear-gradient(transparent,#0007);padding:16px 4px;pointer-events:none}
.xb-short-caption a{pointer-events:auto}.xb-short-caption h2{font-size:18px;margin:0 0 8px;color:white}.xb-short-caption p{margin:0;color:#ddd;font-size:12px}
.xb-short-actions{position:absolute;bottom:90px;right:12px;display:grid;gap:13px;z-index:4}.xb-short-actions a,.xb-short-actions button{display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:50%;background:#232323bd;color:white;font-size:24px;cursor:pointer}
.xb-short-actions button:hover,.xb-short-actions a:hover{background:#e60012}
.xb-short-muted{font-size:12px;color:#bbb;text-align:center;margin:8px auto 20px}
.xb-short-slide .xb-short-embed{width:100%;height:100%;display:grid;place-items:center}.xb-short-slide iframe{width:100%;height:100%;border:0}
@media(max-width:740px){.xb-short-feed{max-width:100%;height:calc(100dvh - 205px);min-height:420px;border-radius:4px}.xb-center-play{width:70px;height:70px}.xb-short-slide .xb-center-play{width:68px;height:68px}}
@media(prefers-reduced-motion:reduce){.xb-short-feed{scroll-behavior:auto}}

/* 2.2.0: short nativo 9:16 en feed, sin barras negras horizontales */
body.single-short .xb-body,body.post-type-archive-short .xb-body{min-width:0}
.xb-short-stage{display:flex;justify-content:center;width:100%;min-width:0}
.xb-short-feed{width:min(440px,100%);max-width:440px;height:min(78dvh,780px);min-height:520px;aspect-ratio:9/16;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;scroll-snap-stop:always;scrollbar-width:none;overscroll-behavior-y:contain;background:#080808;position:relative;border-radius:14px;scroll-behavior:smooth}
.xb-short-feed::-webkit-scrollbar{display:none}
.xb-short-slide{height:100%;min-height:100%;width:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative;overflow:hidden;background:#080808}
.xb-short-slide video{display:block;width:100%;height:100%;object-fit:cover;background:transparent;border:0;max-height:none!important;border-radius:0!important}
.xb-short-slide .xb-center-play{background:#e60012;color:#fff;border:2px solid #ffffff88;z-index:7}
.xb-short-slide.is-playing .xb-center-play{opacity:0}
.xb-short-slide .xb-short-caption{bottom:16px;left:16px;right:68px;z-index:5;padding:35px 5px 8px;background:linear-gradient(transparent,#0009);pointer-events:none}
.xb-short-slide .xb-short-caption a{pointer-events:auto}
.xb-short-slide .xb-short-actions{bottom:65px;right:10px;z-index:6}
.xb-short-slide .xb-short-embed{width:100%;height:100%}
.xb-short-slide .xb-short-embed iframe{width:100%;height:100%;border:0}
.xb-short-caption h2{font-size:16px}
.xb-short-heading{text-align:center;margin:0 auto 12px}
.xb-short-muted{text-align:center}
.xb-short-feed:focus-visible{outline:2px solid #e60012}
@media(max-width:740px){body.single-short .xb-main,body.post-type-archive-short .xb-main{padding-top:4px}.xb-short-feed{width:min(100%,440px);height:min(calc(100dvh - 210px),780px);min-height:360px;border-radius:12px}.xb-short-caption{bottom:12px}}

/* v2.3 reproductor horizontal personalizado */
.xb-media .xb-play-shell{aspect-ratio:16/9;max-height:76vh;border-radius:5px;display:flex;align-items:center;justify-content:center}
.xb-media .xb-play-shell video{width:100%;height:100%;max-height:none;object-fit:contain;border-radius:0}
.xb-video-controls{position:absolute;z-index:5;bottom:0;left:0;right:0;min-height:57px;display:flex;align-items:center;gap:13px;padding:18px 15px 9px;background:linear-gradient(transparent,#000d);color:#fff}
.xb-video-controls button{background:none;color:#fff;border:0;font-size:20px;cursor:pointer;min-width:28px;padding:3px}
.xb-video-controls button:hover{color:var(--red)}
.xb-video-controls .xb-control-clock{white-space:nowrap;font-size:12px;font-weight:700}
.xb-control-seek{flex:1;min-width:30px;accent-color:var(--red);cursor:pointer}
.xb-related{margin-top:30px}
.xb-related .xb-heading h2{font-size:20px}
.xb-play-shell:fullscreen{max-height:none;aspect-ratio:auto}
.xb-play-shell:fullscreen video{height:100vh}
@media(max-width:600px){.xb-video-controls{gap:5px;padding:18px 6px 5px}.xb-video-controls button{font-size:17px}.xb-video-controls .xb-control-clock{font-size:10px}.xb-single h1{font-size:22px}}
