/*
Theme Name: Estanislao XReels
Author: Estanislao
Description: Tema WordPress ligero para videos y Shorts verticales. Compatible con entradas existentes y AutoSEO XReels PRO. No convierte ni modifica contenido al activarse.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: estanislao-xreels
*/

:root{--exr-accent:#8b5cf6;--exr-max:1280px;--exr-cols:4;--exr-text:#16161a;--exr-muted:#777781;--exr-soft:#f5f5f7;--exr-line:#e9e9ed;--exr-card:#fff;--exr-black:#0d0d10;--exr-radius:16px;--exr-shadow:0 8px 30px rgba(18,18,25,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.estanislao-xreels{margin:0;background:#fff;color:var(--exr-text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased}body.estanislao-xreels a{color:inherit;text-decoration:none}body.estanislao-xreels img{max-width:100%}body.estanislao-xreels button,body.estanislao-xreels input,body.estanislao-xreels select{font:inherit}.exr-shell{width:min(calc(100% - 36px),var(--exr-max));margin-inline:auto}.exr-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:0 0 auto}

/* Header: compact, white, search-centric */
.exr-header{position:sticky;top:0;z-index:1000;background:#fff;border-bottom:1px solid var(--exr-line)}.exr-header-row{min-height:68px;display:grid;grid-template-columns:auto minmax(360px,1fr) auto;gap:22px;align-items:center}.exr-brand{display:flex;align-items:center;min-width:135px;font-size:25px;font-weight:900;letter-spacing:-1.2px}.exr-brand img{display:block;max-height:42px;width:auto}.exr-wordmark::first-letter{color:var(--exr-accent)}.exr-search{height:44px;max-width:660px;width:100%;justify-self:center;display:flex;align-items:center;background:var(--exr-soft);border:1px solid transparent;border-radius:13px;overflow:hidden;transition:border-color .18s,box-shadow .18s}.exr-search:focus-within{background:#fff;border-color:#d8d8df;box-shadow:0 0 0 3px rgba(139,92,246,.09)}.exr-search-icon{display:flex;margin-left:14px;color:#8c8c96}.exr-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;padding:0 12px;color:var(--exr-text)}.exr-search input::placeholder{color:#9797a1}.exr-search select{height:30px;max-width:110px;border:0;border-left:1px solid #dddde2;background:transparent;padding:0 25px 0 12px;color:#5c5c65;outline:0}.exr-search-submit{display:none}.exr-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.exr-upload,.exr-account{height:42px;padding:0 14px;border-radius:12px;display:inline-flex;gap:8px;align-items:center;white-space:nowrap;font-weight:750}.exr-upload{background:var(--exr-accent);color:#fff;box-shadow:0 5px 16px rgba(139,92,246,.18)}.exr-upload:hover{background:var(--exr-accent);filter:brightness(.9)}.exr-account{border:1px solid var(--exr-line);background:#fff}.exr-account:hover{background:var(--exr-soft)}.exr-account .exr-avatar{width:30px;height:30px}.exr-mobile-menu{display:none;width:42px;height:42px;align-items:center;justify-content:center;border:0;background:transparent;border-radius:10px;color:var(--exr-text)}.exr-category-strip{border-top:1px solid #f3f3f5}.exr-chips{height:43px;display:flex;align-items:center;gap:8px;overflow:auto;scrollbar-width:none}.exr-chips::-webkit-scrollbar{display:none}.exr-chips a{flex:0 0 auto;padding:7px 12px;border-radius:10px;font-size:13px;font-weight:700;color:#686872}.exr-chips a:hover,.exr-chips .is-all{background:#f0f0f3;color:#17171b}.exr-mobile-panel{display:none}

.exr-main{padding:22px 0 0;min-height:65vh}.exr-section{margin:0 0 40px}.exr-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}.exr-section-head h1,.exr-section-head h2{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.55px}.exr-section-head h1{font-size:27px}.exr-all-link{display:flex;align-items:center;gap:4px;color:#6d6d77;font-weight:750;font-size:14px}.exr-all-link .exr-icon{width:16px;height:16px}

/* Playlist & Chill */
.exr-playlist-section{margin-top:4px}.exr-playlist-row{display:grid;grid-auto-flow:column;grid-auto-columns:190px;gap:13px;overflow-x:auto;overscroll-behavior-inline:contain;padding:1px 1px 8px;scroll-snap-type:x proximity;scrollbar-width:thin}.exr-playlist-card{scroll-snap-align:start;min-width:0}.exr-playlist-media{position:relative;display:block;aspect-ratio:16/10;border-radius:15px;overflow:hidden;background:linear-gradient(135deg,#e9e3ff,#f2e9fb)}.exr-playlist-media img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.exr-playlist-card:hover .exr-playlist-media img{transform:scale(1.035)}.exr-playlist-media:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.25),transparent 45%)}.exr-playlist-media b{position:absolute;z-index:2;right:10px;bottom:9px;width:34px;height:34px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 5px 20px rgba(0,0,0,.17)}.exr-playlist-media b .exr-icon{width:16px;height:16px;stroke-width:2.4}.exr-playlist-placeholder{display:block;width:100%;height:100%;background:linear-gradient(135deg,#ece7ff 0%,#f8e7f4 50%,#e7f4ff 100%)}.exr-playlist-card>strong{display:block;margin-top:9px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exr-playlist-card>small{display:block;margin-top:1px;color:var(--exr-muted);font-size:12px}

/* Sort tabs */
.exr-feed-head{align-items:flex-end}.exr-sort{display:flex;gap:4px;padding:3px;background:#f3f3f5;border-radius:11px}.exr-sort a{padding:7px 11px;border-radius:8px;color:#72727c;font-size:13px;font-weight:750}.exr-sort a:hover{color:#222}.exr-sort a.is-active{background:#fff;color:#111;box-shadow:0 1px 4px rgba(0,0,0,.08)}

/* XFree-like reel feed cards */
.exr-reel-grid{display:grid;grid-template-columns:repeat(var(--exr-cols),minmax(0,1fr));gap:30px 17px}.exr-reel-card{min-width:0}.exr-reel-media{position:relative;display:block;width:100%;aspect-ratio:2/3;border-radius:15px;overflow:hidden;background:#ececf0;isolation:isolate}.exr-reel-card:not(.is-short) .exr-reel-media{aspect-ratio:4/5}.exr-reel-media>img,.exr-reel-media>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center}.exr-reel-media>img{display:block;background:#ececf0}.exr-reel-media>video{z-index:1;background:#111}.exr-media-empty{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(145deg,#eeeef1,#dedee5);color:#9c9ca5}.exr-media-empty .exr-icon{width:42px;height:42px}.exr-view-pill,.exr-duration,.exr-quality{position:absolute;z-index:3;display:flex;align-items:center;gap:4px;background:rgba(10,10,12,.73);color:#fff;font-size:11px;font-weight:800;border-radius:7px;padding:5px 7px}.exr-view-pill{left:9px;bottom:9px}.exr-view-pill .exr-icon{width:14px;height:14px}.exr-duration{right:9px;bottom:9px}.exr-quality{right:9px;top:9px;background:rgba(255,255,255,.93);color:#19191d}.exr-reel-body{padding-top:10px}.exr-creator-row{display:flex;align-items:center;gap:8px;min-width:0}.exr-creator{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.exr-avatar{display:block;border-radius:50%;object-fit:cover;background:#ececf1}.exr-creator span{min-width:0;display:flex;flex-direction:column}.exr-creator strong{font-size:13px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exr-creator small{margin-top:3px;color:#8a8a94;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.exr-role{flex:0 0 auto;border:1px solid #e2e2e7;background:#fafafa;border-radius:999px;padding:3px 7px;color:#777781;font-size:10px;font-weight:800}.exr-reel-title{font-size:14px;line-height:1.32;margin:9px 0 4px;font-weight:800;letter-spacing:-.1px}.exr-reel-title a:hover{color:var(--exr-accent)}.exr-reel-copy{margin:0;color:#696973;font-size:12.5px;line-height:1.42;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.exr-tags{margin-top:5px;display:flex;flex-wrap:wrap;gap:2px 6px}.exr-tags a{font-size:12px;color:#7962b4;font-weight:650}.exr-tags a:hover{text-decoration:underline}.exr-home-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;color:#777781;font-size:11px;font-weight:700}.exr-home-card-meta a{color:var(--exr-accent)}.exr-home-card-meta span{display:inline-flex;align-items:center;gap:4px}.exr-home-card-meta .exr-icon{width:14px;height:14px}

/* Shorts: separate TikTok-style 9:16 strip. CSS scroll-snap, no slider JavaScript. */
.exr-shorts-section{padding-top:3px;border-top:1px solid var(--exr-line)}.exr-short-grid{display:grid!important;grid-auto-flow:column;grid-auto-columns:clamp(170px,18vw,220px);grid-template-columns:none!important;gap:14px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:1px 1px 10px}.exr-short-card{min-width:0;scroll-snap-align:start}.exr-short-media{aspect-ratio:9/16!important;border-radius:16px}.exr-short-overlay{position:absolute;z-index:4;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:3px;padding:48px 10px 11px;color:#fff;background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,.2) 58%,transparent);pointer-events:none}.exr-short-overlay small{font-size:11px;font-weight:800;opacity:.9}.exr-short-overlay strong{font-size:12.5px;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-shadow:0 1px 3px rgba(0,0,0,.5)}

/* Generic archives */
.exr-archive-head{margin:4px 0 24px}.exr-archive-head h1{font-size:30px;letter-spacing:-.7px;margin:0 0 7px}.exr-archive-head p,.exr-tax-desc{color:#72727c;max-width:850px}.exr-pagination{margin:35px 0;display:flex;justify-content:center}.exr-pagination .nav-links{display:flex;flex-wrap:wrap;gap:7px}.exr-pagination a,.exr-pagination span{min-width:37px;height:37px;padding:0 10px;display:grid;place-items:center;border:1px solid #e0e0e5;border-radius:9px;font-weight:700}.exr-pagination .current{background:#111;color:#fff;border-color:#111}

/* Single reel / video */
.exr-watch{max-width:1120px;margin:4px auto 36px;display:grid;grid-template-columns:minmax(0,720px) minmax(300px,1fr);gap:25px;align-items:start}.exr-watch.is-vertical{grid-template-columns:minmax(390px,590px) minmax(310px,1fr);max-width:1000px}.exr-watch-media{position:relative;min-width:0;border-radius:17px;overflow:hidden;background:#08080a;box-shadow:0 10px 40px rgba(0,0,0,.09)}.exr-watch-media>video,.exr-watch-media>iframe{display:block;width:100%;border:0;aspect-ratio:16/9;background:#08080a}.exr-watch.is-vertical .exr-watch-media>video,.exr-watch.is-vertical .exr-watch-media>iframe{aspect-ratio:9/16;max-height:calc(100vh - 108px);object-fit:contain}.exr-watch-media .et-pro-player,.exr-watch-media .et-pro-embed{width:100%;margin:0!important}.exr-watch.is-vertical .et-pro-player,.exr-watch.is-vertical .et-pro-embed{aspect-ratio:9/16!important;max-height:calc(100vh - 108px);margin-inline:auto!important}.exr-watch.is-vertical .et-pro-player video{object-fit:contain!important}.exr-close{position:absolute;z-index:20;left:11px;top:11px;width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.9);color:#111;box-shadow:0 3px 14px rgba(0,0,0,.18)}.exr-close .exr-icon{width:18px;height:18px}.exr-watch-info{padding:4px 0}.exr-single-creator{display:flex;align-items:center;gap:9px}.exr-creator-large .exr-avatar{width:50px;height:50px}.exr-creator-large strong{font-size:15px}.exr-follow{height:35px;border:0;border-radius:10px;padding:0 14px;background:#111;color:#fff;font-weight:800;cursor:pointer}.exr-follow:hover{background:var(--exr-accent)}.exr-follow.is-active{background:#efeff2;color:#333}.exr-single-stats{margin:17px 0 7px;display:flex;gap:15px;color:#75757f;font-size:13px}.exr-single-stats span{display:flex;align-items:center;gap:5px}.exr-single-stats .exr-icon{width:17px;height:17px}.exr-watch-info h1{font-size:26px;line-height:1.17;letter-spacing:-.55px;margin:7px 0 10px}.exr-single-copy p{color:#5f5f68;margin:0;font-size:14px}.exr-single-tags{margin-top:10px}.exr-single-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:19px}.exr-single-actions button,.exr-single-actions>a{min-height:40px;border:1px solid #e0e0e5;background:#fff;border-radius:11px;padding:0 12px;display:inline-flex;align-items:center;gap:7px;font-weight:750;cursor:pointer}.exr-single-actions button:hover,.exr-single-actions>a:hover{background:#f3f3f5}.exr-single-actions button.is-active{color:#fff;background:var(--exr-accent);border-color:var(--exr-accent)}.exr-single-actions .exr-icon{width:18px;height:18px}.exr-sharebox{display:none;margin-top:9px}.exr-sharebox.is-open{display:block}.exr-sharebox input{width:100%;height:40px;border:1px solid #dddde2;border-radius:9px;padding:0 10px;color:#555}.exr-comment-jump{margin-top:15px;font-weight:700;color:#676771}

/* Creator profile */
.exr-profile{border-bottom:1px solid var(--exr-line);padding:8px 0 28px;margin-bottom:28px}.exr-profile-main{display:flex;align-items:center;gap:19px}.exr-profile-avatar .exr-avatar{width:104px;height:104px}.exr-profile-info{flex:1;min-width:0}.exr-profile-info h1{font-size:29px;line-height:1.1;margin:0 0 4px;letter-spacing:-.6px}.exr-profile-handle{color:#85858f;font-weight:650}.exr-profile-bio{max-width:680px;margin:10px 0 0;color:#62626b}.exr-profile-actions{display:flex;align-items:center;gap:8px}.exr-profile-stats{display:flex;gap:26px;margin:20px 0 0 123px}.exr-profile-stats span{display:flex;flex-direction:column}.exr-profile-stats b{font-size:17px}.exr-profile-stats small{color:#85858f;margin-top:2px}.exr-external{color:var(--exr-accent);font-weight:700}

/* Playlist/tax header */
.exr-term-hero{display:flex;gap:22px;align-items:center;margin:3px 0 28px}.exr-term-image{width:220px;aspect-ratio:16/10;border-radius:16px;overflow:hidden;background:#ececf1}.exr-term-image img{width:100%;height:100%;object-fit:cover}.exr-term-info{flex:1}.exr-term-info h1{font-size:31px;margin:0 0 8px;letter-spacing:-.7px}.exr-term-info p{margin:0;color:#6d6d76;max-width:760px}.exr-term-buttons{display:flex;gap:8px;margin-top:14px}.exr-term-buttons a{display:inline-flex;align-items:center;gap:7px;height:39px;padding:0 13px;border-radius:10px;background:#111;color:#fff;font-weight:800}.exr-term-buttons .exr-icon{width:17px;height:17px}

/* Comments/content */
.exr-comments{max-width:900px;margin:30px auto}.exr-comments h2{font-size:21px}.comment-list{padding:0;list-style:none}.comment-list .comment{border-top:1px solid #ececf0;padding:17px 0}.comment-meta{font-size:12px;color:#888}.comment-content{margin-left:0}.comment-respond textarea{width:100%;min-height:120px;border:1px solid #dddde2;border-radius:12px;padding:12px}.comment-respond input[type=text],.comment-respond input[type=email],.comment-respond input[type=url]{width:100%;height:42px;border:1px solid #dddde2;border-radius:10px;padding:0 10px}.comment-respond input[type=submit]{border:0;background:#111;color:#fff;border-radius:10px;height:40px;padding:0 16px;font-weight:800}.exr-page{max-width:920px;margin:10px auto 45px}.exr-page h1{font-size:32px}.exr-page-content{font-size:16px}.exr-page-content img{border-radius:14px}

/* Ad slots: no markup is printed when a slot is empty. */
.exr-ad-slot{max-width:100%;margin:18px 0 30px;text-align:center;overflow:hidden}.exr-ad-slot .exr-widget{overflow:hidden}.exr-ad-slot .exr-widget h3{font-size:14px;color:#777}.exr-ad-infeed{grid-column:1/-1;margin:6px 0}.exr-header-ad,.exr-footer-ad{width:min(calc(100% - 36px),var(--exr-max));margin:18px auto}.exr-single-top-ad,.exr-single-bottom-ad{margin:18px auto 26px}

/* Optional lightweight blocks below the home video section */
.exr-home-category-list{display:flex;flex-wrap:wrap;gap:9px}.exr-home-category-list a{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--exr-line);border-radius:11px;background:#fff;font-size:13px}.exr-home-category-list a:hover{border-color:#d3c7f7;background:#faf8ff}.exr-home-category-list span{color:#91919a;font-size:11px}.exr-home-seo{max-width:920px}.exr-home-seo h2{font-size:23px;margin:0 0 10px}.exr-home-seo-copy{color:#62626b;font-size:14px;line-height:1.65}.exr-home-seo-copy p:first-child{margin-top:0}.exr-home-seo-copy p:last-child{margin-bottom:0}

/* Core pages restyled light; logic remains in plugin */
.estanislao-xreels .et-form-card,.estanislao-xreels .et-account-card,.estanislao-xreels .et-messages-shell,.estanislao-xreels .et-channel-card{background:#fff!important;color:#17171b!important;border:1px solid #e7e7eb!important;box-shadow:none!important}.estanislao-xreels .et-form-card input,.estanislao-xreels .et-form-card textarea,.estanislao-xreels .et-form-card select{background:#fafafa!important;color:#17171b!important;border-color:#dddde3!important}.estanislao-xreels .et-btn,.estanislao-xreels button.et-btn{border-radius:10px!important}.estanislao-xreels .et-muted{color:#777!important}

/* Footer */
.exr-footer{margin-top:55px;border-top:1px solid var(--exr-line);background:#fafafa}.exr-footer-inner{padding:34px 0 38px}.exr-footer-top{display:grid;grid-template-columns:1fr 1.6fr;gap:45px}.exr-footer-brand .exr-wordmark{font-size:24px;font-weight:900}.exr-footer-brand p{color:#74747e;max-width:360px;font-size:13px}.exr-footer-cats{display:flex;flex-wrap:wrap;gap:8px}.exr-footer-cats a{padding:7px 10px;background:#fff;border:1px solid #e5e5e9;border-radius:9px;font-size:12px;font-weight:700}.exr-faq{margin-top:27px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.exr-faq details{background:#fff;border:1px solid #e5e5e9;border-radius:12px;padding:13px 15px}.exr-faq summary{cursor:pointer;font-weight:800}.exr-faq p{color:#6d6d76;font-size:13px}.exr-footer-bottom{border-top:1px solid #e5e5e9;margin-top:26px;padding-top:19px;display:flex;justify-content:space-between;gap:15px;color:#81818b;font-size:12px}.exr-footer-menu{display:flex;gap:14px;flex-wrap:wrap}

/* UX / Core Web Vitals */
.exr-page-content img,.comment-content img{height:auto}
body.estanislao-xreels a:focus-visible,body.estanislao-xreels button:focus-visible,body.estanislao-xreels input:focus-visible,body.estanislao-xreels select:focus-visible,body.estanislao-xreels textarea:focus-visible{outline:3px solid var(--exr-accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.exr-playlist-media img,.exr-search{transition:none!important}.exr-playlist-card:hover .exr-playlist-media img{transform:none!important}}

/* Responsive */
@media (max-width:1180px){.exr-short-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.exr-header-row{grid-template-columns:auto 1fr auto;gap:13px}.exr-brand{min-width:auto}.exr-actions .exr-account span{display:none}.exr-reel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.exr-watch,.exr-watch.is-vertical{grid-template-columns:minmax(0,1.35fr) minmax(290px,.65fr)}}
@media (max-width:860px){.exr-short-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 10px}.exr-shell{width:min(calc(100% - 24px),var(--exr-max))}.exr-header-row{min-height:60px;grid-template-columns:auto auto 1fr auto;gap:7px}.exr-mobile-menu{display:inline-flex}.exr-brand{font-size:21px}.exr-search{justify-self:end;width:44px;height:40px;border-radius:11px;background:transparent}.exr-search input,.exr-search select,.exr-search-icon{display:none}.exr-search-submit{display:grid;place-items:center;width:40px;height:40px;border:0;background:#f4f4f6;border-radius:10px}.exr-upload{width:40px;padding:0;justify-content:center}.exr-upload span{display:none}.exr-account{width:40px;padding:0;justify-content:center;border:0}.exr-account .exr-avatar{width:34px;height:34px}.exr-category-strip{display:none}.exr-mobile-panel{position:absolute;left:0;right:0;top:60px;background:#fff;border-top:1px solid var(--exr-line);border-bottom:1px solid var(--exr-line);padding:12px 18px 18px;box-shadow:0 18px 30px rgba(0,0,0,.08)}.exr-mobile-panel.is-open{display:flex;flex-direction:column;gap:4px}.exr-mobile-panel>a,.exr-mobile-nav a{display:block;padding:11px 8px;border-bottom:1px solid #f1f1f3;font-weight:700}.exr-mobile-nav{list-style:none;padding:0;margin:0}.exr-reel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 12px}.exr-reel-card:not(.is-short) .exr-reel-media{aspect-ratio:2/3}.exr-watch,.exr-watch.is-vertical{display:block;max-width:680px}.exr-watch-info{padding:17px 2px}.exr-watch.is-vertical .exr-watch-media{max-width:520px;margin-inline:auto}.exr-watch.is-vertical .exr-watch-media>video,.exr-watch.is-vertical .exr-watch-media>iframe,.exr-watch.is-vertical .et-pro-player,.exr-watch.is-vertical .et-pro-embed{max-height:none}.exr-profile-main{align-items:flex-start}.exr-profile-stats{margin-left:0}.exr-footer-top{grid-template-columns:1fr}.exr-faq{grid-template-columns:1fr}.exr-feed-head{align-items:flex-start;flex-direction:column}.exr-sort{max-width:100%;overflow:auto}}
@media (max-width:540px){.exr-short-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 9px}.exr-main{padding-top:16px}.exr-section{margin-bottom:31px}.exr-section-head h1{font-size:23px}.exr-section-head h2{font-size:21px}.exr-playlist-row{grid-auto-columns:155px;gap:10px}.exr-reel-grid{gap:22px 9px}.exr-reel-media{border-radius:12px}.exr-reel-body{padding-top:8px}.exr-creator-row{gap:5px}.exr-creator{gap:6px}.exr-creator .exr-avatar{width:31px;height:31px}.exr-role{display:none}.exr-creator strong{font-size:11.5px}.exr-creator small{font-size:9.5px}.exr-reel-title{font-size:12.2px;margin-top:7px}.exr-reel-copy{font-size:11px;-webkit-line-clamp:2}.exr-tags{display:none}.exr-view-pill,.exr-duration,.exr-quality{font-size:9px;padding:4px 5px}.exr-profile-main{gap:12px}.exr-profile-avatar .exr-avatar{width:76px;height:76px}.exr-profile-info h1{font-size:24px}.exr-profile-actions{margin-top:10px}.exr-profile-stats{gap:17px;justify-content:space-between}.exr-term-hero{display:block}.exr-term-image{width:100%;max-width:320px;margin-bottom:15px}.exr-footer-bottom{flex-direction:column}.exr-watch-info h1{font-size:23px}.exr-single-creator .exr-role{display:none}.exr-single-actions button,.exr-single-actions>a{padding:0 10px}}
@media (max-width:390px){.exr-short-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exr-reel-grid{grid-template-columns:1fr}.exr-reel-media,.exr-reel-card:not(.is-short) .exr-reel-media{aspect-ratio:4/5}.exr-reel-copy{font-size:12px}.exr-tags{display:flex}.exr-creator strong{font-size:13px}.exr-creator small{font-size:11px}.exr-role{display:block}.exr-profile-stats{display:grid;grid-template-columns:1fr 1fr}}
.exr-archive-head>img{width:190px;aspect-ratio:16/10;object-fit:cover;border-radius:15px;margin-bottom:14px}.exr-archive-description{color:#72727c;max-width:850px}.exr-content-player{padding:18px;color:#fff}.exr-footer-ad{margin-top:20px}.exr-term-buttons>span{display:inline-flex;align-items:center;height:39px;padding:0 11px;border:1px solid #e1e1e6;border-radius:10px;color:#73737d;font-weight:750}.exr-footer-brand{display:block}.exr-footer-brand img{max-height:42px}.exr-feed-section{min-height:300px}

/* XReels 1.2 responsive Shorts overrides */
.exr-short-grid{grid-template-columns:none!important}.exr-short-media{aspect-ratio:9/16!important}
@media(max-width:860px){.exr-short-grid{grid-template-columns:none!important;grid-auto-columns:min(31vw,205px);gap:11px}}
@media(max-width:540px){.exr-short-grid{grid-template-columns:none!important;grid-auto-columns:min(44vw,190px);gap:9px}.exr-short-overlay{padding:42px 8px 9px}.exr-short-overlay strong{font-size:11.5px}.exr-short-overlay small{font-size:10px}.exr-header-ad,.exr-footer-ad{width:min(calc(100% - 24px),var(--exr-max))}}
@media(max-width:390px){.exr-short-grid{grid-template-columns:none!important;grid-auto-columns:min(46vw,176px)}.exr-short-media{aspect-ratio:9/16!important}}

/* ========================================================================== */
/* XReels 1.3 · Paletas, TikTok Shorts, SEO/UX y rendimiento                 */
/* ========================================================================== */
:root{--exr-accent2:#ec4899;--exr-bg:#fff}
body.estanislao-xreels{background:var(--exr-bg);color:var(--exr-text)}
.exr-header{background:color-mix(in srgb,var(--exr-card) 94%,transparent);border-color:var(--exr-line);backdrop-filter:saturate(145%) blur(10px)}
.exr-search,.exr-search-submit{background:var(--exr-soft)}
.exr-search:focus-within{background:var(--exr-card);border-color:var(--exr-line);box-shadow:0 0 0 3px color-mix(in srgb,var(--exr-accent) 18%,transparent)}
.exr-search input{color:var(--exr-text)}.exr-search select{color:var(--exr-muted);border-color:var(--exr-line)}
.exr-upload{background:linear-gradient(135deg,var(--exr-accent),var(--exr-accent2));box-shadow:0 7px 20px color-mix(in srgb,var(--exr-accent) 24%,transparent)}
.exr-upload:hover{filter:brightness(.94)}
.exr-account,.exr-sort a.is-active,.exr-home-category-list a,.exr-footer-cats a,.exr-faq details{background:var(--exr-card);border-color:var(--exr-line)}
.exr-account:hover,.exr-chips a:hover,.exr-chips .is-all,.exr-sort{background:var(--exr-soft)}
.exr-reel-title a:hover,.exr-home-card-meta a,.exr-tags a{color:var(--exr-accent)}
.exr-footer{background:var(--exr-soft);border-color:var(--exr-line)}
.exr-footer-bottom,.exr-category-strip{border-color:var(--exr-line)}
.exr-mobile-panel{background:var(--exr-card);border-color:var(--exr-line)}
.exr-archive-description,.exr-home-seo-copy,.exr-reel-copy,.exr-term-info p,.exr-footer-bottom{color:var(--exr-muted)}
.exr-role{background:var(--exr-soft);border-color:var(--exr-line);color:var(--exr-muted)}
.exr-pagination .page-numbers{background:var(--exr-card);border-color:var(--exr-line)}
.exr-pagination .page-numbers.current{background:var(--exr-accent);border-color:var(--exr-accent);color:#fff}

/* Home Shorts: tarjetas 9:16 visualmente diferentes a los videos normales. */
.exr-shorts-section{position:relative;border-top:0;padding:22px 0 4px}
.exr-shorts-section:before{content:"";position:absolute;inset:0 calc(50% - 50vw);z-index:-1;background:linear-gradient(180deg,color-mix(in srgb,var(--exr-accent) 5%,var(--exr-bg)),var(--exr-bg))}
.exr-short-grid{grid-auto-columns:clamp(205px,20vw,265px);gap:16px;padding:2px 2px 15px;scroll-padding-inline:2px}
.exr-short-card{position:relative;border-radius:19px;transform:translateZ(0)}
.exr-short-media{border-radius:19px;background:#0d0d10;box-shadow:0 9px 28px rgba(0,0,0,.14)}
.exr-short-media:after{content:"";position:absolute;z-index:2;inset:0;background:linear-gradient(to top,rgba(0,0,0,.78) 0%,rgba(0,0,0,.08) 46%,rgba(0,0,0,.03) 100%);pointer-events:none}
.exr-short-play{position:absolute;z-index:5;left:50%;top:50%;width:52px;height:52px;display:grid;place-items:center;border-radius:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.42);color:#fff;backdrop-filter:blur(4px);transition:transform .18s ease,background .18s ease}
.exr-short-play .exr-icon{width:24px;height:24px;fill:currentColor;stroke:currentColor}
.exr-short-card:hover .exr-short-play{transform:translate(-50%,-50%) scale(1.08);background:color-mix(in srgb,var(--exr-accent) 82%,#000)}
.exr-short-overlay{z-index:6;padding:78px 54px 13px 12px;background:none;gap:7px}
.exr-short-overlay strong{font-size:13px;line-height:1.3;-webkit-line-clamp:2}
.exr-short-author{display:flex;align-items:center;gap:7px;min-width:0}.exr-short-author .exr-avatar{width:28px;height:28px;border:2px solid rgba(255,255,255,.86)}.exr-short-author b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exr-short-rail{position:absolute;z-index:7;right:8px;bottom:12px;display:flex;flex-direction:column;gap:10px;color:#fff;pointer-events:none}
.exr-short-rail>span{display:flex;flex-direction:column;align-items:center;gap:2px;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.exr-short-rail .exr-icon{width:21px;height:21px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.45))}.exr-short-rail b{font-size:9px}

/* Feed TikTok: una pieza por viewport; videos bajo demanda con IntersectionObserver. */
.exr-short-archive{max-width:820px;margin-inline:auto}.exr-short-archive .exr-archive-head{text-align:center;margin-bottom:8px}.exr-short-feed-hint{text-align:center;color:var(--exr-muted);font-size:12px;margin:0 0 12px}
.exr-tiktok-feed{height:min(78vh,820px);min-height:560px;overflow-y:auto;overscroll-behavior-y:contain;scroll-snap-type:y mandatory;scrollbar-width:none;border-radius:24px;background:#08080b;box-shadow:0 18px 60px rgba(0,0,0,.18)}
.exr-tiktok-feed::-webkit-scrollbar{display:none}.exr-tiktok-item{height:100%;min-height:560px;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center;padding:10px}
.exr-tiktok-stage{position:relative;height:100%;width:min(100%,470px);aspect-ratio:9/16;max-height:100%;overflow:hidden;border-radius:22px;background:#0b0b0d;color:#fff;isolation:isolate}
.exr-tiktok-media-link,.exr-tiktok-player{position:absolute;inset:0;display:block;background:#0b0b0d}.exr-tiktok-media-link img,.exr-tiktok-video,.exr-tiktok-player>video,.exr-tiktok-player>iframe,.exr-tiktok-player>img,.exr-tiktok-player .et-pro-player,.exr-tiktok-player .et-pro-embed{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;border:0!important;background:#000}
.exr-tiktok-stage:after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.72),transparent 42%),linear-gradient(to right,transparent 68%,rgba(0,0,0,.15))}
.exr-tiktok-copy{position:absolute;z-index:5;left:14px;right:70px;bottom:18px}.exr-tiktok-author{display:inline-flex;align-items:center;gap:8px;margin-bottom:8px;color:#fff}.exr-tiktok-author .exr-avatar{width:36px;height:36px;border:2px solid #fff}.exr-tiktok-author b{font-size:12px}.exr-tiktok-copy h2,.exr-tiktok-copy h1{margin:0;color:#fff;font-size:15px;line-height:1.3;text-shadow:0 1px 4px rgba(0,0,0,.7)}.exr-tiktok-copy h1{font-size:17px}.exr-tiktok-copy p{margin:7px 0 0;font-size:12px;color:#f1f1f3;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.exr-tiktok-actions{position:absolute;z-index:6;right:10px;bottom:17px;display:flex;flex-direction:column;align-items:center;gap:12px}.exr-tiktok-actions button,.exr-tiktok-actions>a,.exr-tiktok-view{appearance:none;border:0;background:rgba(20,20,24,.62);color:#fff;width:48px;min-height:48px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px;cursor:pointer;backdrop-filter:blur(6px)}.exr-tiktok-actions .exr-icon{width:20px;height:20px}.exr-tiktok-actions span,.exr-tiktok-actions b{font-size:8.5px;line-height:1}.exr-tiktok-actions button:hover,.exr-tiktok-actions>a:hover{background:color-mix(in srgb,var(--exr-accent) 78%,#111)}.exr-tiktok-actions button.is-active .exr-icon{fill:#ff315f;stroke:#ff315f}.exr-tiktok-tags{margin-top:8px}.exr-tiktok-tags a{color:#fff;font-size:11px;text-shadow:0 1px 3px #000}
.exr-tiktok-video{opacity:.97}.exr-tiktok-video.is-playing{opacity:1}

/* Short individual: centra el player vertical en lugar del layout horizontal normal. */
.exr-tiktok-single{max-width:520px;margin:8px auto 36px}.exr-tiktok-stage-single{width:100%;height:auto;aspect-ratio:9/16;max-height:82vh;box-shadow:0 18px 60px rgba(0,0,0,.22)}.exr-tiktok-copy-single{right:74px}.exr-tiktok-actions-single{bottom:20px}.exr-related-shorts{margin-top:42px}

/* Pequeñas mejoras de Core Web Vitals y accesibilidad. */
.exr-reel-img{content-visibility:auto}.exr-reel-card,.exr-short-card{contain:layout paint style}.exr-section{content-visibility:auto;contain-intrinsic-size:1px 600px}.exr-feed-section,.exr-shorts-section:first-of-type{content-visibility:visible;contain-intrinsic-size:auto}
.exr-reel-media,.exr-short-media,.exr-tiktok-stage{background-color:#111}.exr-reel-media>img,.exr-short-media>img{transition:transform .2s ease}.exr-reel-card:hover .exr-reel-media>img,.exr-short-card:hover .exr-short-media>img{transform:scale(1.015)}

@media(max-width:860px){
  .exr-header{backdrop-filter:none}.exr-short-grid{grid-auto-columns:min(38vw,225px)}
  .exr-tiktok-feed{height:calc(100svh - 88px);min-height:520px;border-radius:18px}.exr-tiktok-item{min-height:520px;padding:7px}.exr-tiktok-stage{border-radius:17px}
}
@media(max-width:540px){
  .exr-shorts-section{margin-inline:-12px;padding-inline:12px}.exr-short-grid{grid-auto-columns:min(66vw,245px);gap:12px}.exr-short-overlay strong{font-size:12px}.exr-short-play{width:46px;height:46px}
  .exr-short-archive{margin-inline:-12px}.exr-short-archive .exr-archive-head{padding-inline:12px}.exr-tiktok-feed{height:calc(100svh - 72px);min-height:500px;border-radius:0;box-shadow:none}.exr-tiktok-item{padding:0;min-height:500px}.exr-tiktok-stage{width:100%;border-radius:0;max-height:none}.exr-tiktok-stage-single{max-height:none}.exr-tiktok-single{margin-inline:-12px;max-width:none}.exr-tiktok-copy{left:12px;right:68px;bottom:16px}.exr-tiktok-actions{right:8px}.exr-tiktok-actions button,.exr-tiktok-actions>a,.exr-tiktok-view{width:44px;min-height:44px}
}
@media(max-width:390px){.exr-short-grid{grid-auto-columns:min(72vw,235px)}}
@media(prefers-reduced-motion:reduce){.exr-reel-media>img,.exr-short-media>img,.exr-short-play{transition:none!important}.exr-reel-card:hover .exr-reel-media>img,.exr-short-card:hover .exr-short-media>img{transform:none!important}}

/* Palette coverage for secondary components. */
.exr-watch-info,.exr-profile,.exr-page,.exr-comments,.exr-term-info{color:var(--exr-text)}
.exr-single-copy p,.exr-profile-bio,.exr-profile-handle,.exr-profile-stats small,.exr-comment-jump,.exr-term-buttons>span{color:var(--exr-muted)}
.exr-single-actions button,.exr-single-actions>a,.exr-sharebox input,.comment-respond textarea,.comment-respond input[type=text],.comment-respond input[type=email],.comment-respond input[type=url]{background:var(--exr-card);color:var(--exr-text);border-color:var(--exr-line)}
.exr-single-actions button:hover,.exr-single-actions>a:hover{background:var(--exr-soft)}
.exr-follow{background:var(--exr-accent);color:#fff}.exr-follow.is-active{background:var(--exr-soft);color:var(--exr-text)}
.exr-term-buttons a,.comment-respond input[type=submit]{background:var(--exr-accent);color:#fff}
.estanislao-xreels .et-form-card,.estanislao-xreels .et-account-card,.estanislao-xreels .et-messages-shell,.estanislao-xreels .et-channel-card{background:var(--exr-card)!important;color:var(--exr-text)!important;border-color:var(--exr-line)!important}
.estanislao-xreels .et-form-card input,.estanislao-xreels .et-form-card textarea,.estanislao-xreels .et-form-card select{background:var(--exr-soft)!important;color:var(--exr-text)!important;border-color:var(--exr-line)!important}
.exr-tiktok-mute{position:absolute;z-index:7;right:12px;top:12px;width:38px;height:38px;border:0;border-radius:50%;display:grid;place-items:center;background:rgba(20,20,24,.58);color:#fff;cursor:pointer;backdrop-filter:blur(6px)}.exr-tiktok-mute .exr-icon{width:18px;height:18px}.exr-tiktok-mute.is-unmuted{background:color-mix(in srgb,var(--exr-accent) 78%,#111)}
