/* gpXtream - experiencia premium v1.6.0 (1.6.0: WEB-35 temporadas y capítulos; desde la tanda 1: WEB-15, WEB-16, WEB-17, WEB-20, WEB-22; 1.4.0: WEB-27 tráiler; 1.5.0: WEB-28, WEB-29, WEB-30 portada; 1.5.1: etiqueta del carrusel) */
:root{--gpx-red:#e50914;--gpx-cyan:#7cf5ff;--gpx-bg:#080a0d}

/* Botones y chips comunes */
.gpx-btn{appearance:none;display:inline-flex;align-items:center;gap:.4em;min-height:44px;padding:0 1.15em;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:rgba(20,24,30,.72);color:#fff;font:inherit;font-weight:700;cursor:pointer;backdrop-filter:blur(6px)}
.gpx-btn:hover,.gpx-btn:focus-visible,.gpx-btn:focus{outline:3px solid var(--gpx-cyan);outline-offset:2px}
.gpx-btn-primary{background:var(--gpx-red);border-color:var(--gpx-red)}
.gpx-btn[disabled]{opacity:.45;cursor:default}
.gpx-chip{display:inline-flex;align-items:center;height:1.7em;padding:0 .6em;border-radius:6px;border:1px solid rgba(255,255,255,.45);font-size:.82em;font-weight:800;letter-spacing:.02em;color:#fff;background:rgba(255,255,255,.08)}
.gpx-chip[data-chip="4K"],.gpx-chip[data-chip="Dolby Vision"],.gpx-chip[data-chip="HDR"]{border-color:#ffd166;color:#ffd166}
.gpx-chip[data-chip="Castellano"]{border-color:#7cf5ff;color:#7cf5ff}
.gpx-chip[data-chip="VOSE"]{border-color:#c6a7ff;color:#c6a7ff}
.gpx-age,[data-gpx-age]{display:inline-flex!important;align-items:center;justify-content:center;min-width:1.9em;height:1.7em;padding:0 .45em!important;border-radius:6px!important;border:0!important;font-weight:900;color:#101010!important;background:#9aa4ad}
.gpx-age[data-age="tp"],[data-gpx-age="tp"]{background:#2ecc71}
.gpx-age[data-age="7"],[data-gpx-age="7"]{background:#a3e048}
.gpx-age[data-age="12"],[data-gpx-age="12"]{background:#ffd166}
.gpx-age[data-age="16"],[data-gpx-age="16"]{background:#ff9f43}
.gpx-age[data-age="18"],[data-gpx-age="18"]{background:#ff4757;color:#fff!important}

/* Menú principal */
#gpx-premium-home{padding:0 0 .5em}
#gpx-premium-home[hidden]{display:none}
.gpx-hero{position:relative;margin:0 3.3% 1.4em;border-radius:18px;overflow:hidden;min-height:clamp(260px,46vh,560px);background:#11151b;box-shadow:0 18px 50px rgba(0,0,0,.55)}
.gpx-hero-slide{position:absolute;inset:0;background-size:cover;background-position:center 25%;animation:gpx-fade .6s ease both}
.gpx-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,10,13,.95) 0%,rgba(8,10,13,.75) 38%,rgba(8,10,13,.1) 75%),linear-gradient(0deg,rgba(8,10,13,.85) 0%,rgba(8,10,13,0) 45%)}
.gpx-hero-copy{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:.55em;height:100%;min-height:inherit;box-sizing:border-box;max-width:min(640px,62%);padding:clamp(18px,3.4vw,48px)}
.gpx-hero-kicker{align-self:flex-start;padding:.2em .7em;border-radius:999px;background:var(--gpx-red);color:#fff;font-size:.78em;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.gpx-hero-logo{max-width:min(420px,100%);max-height:120px;object-fit:contain;object-position:left bottom}
.gpx-hero-title{margin:0;color:#fff;font-size:clamp(1.6rem,3.4vw,3rem);line-height:1.05}
.gpx-hero-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5em;margin:0;color:rgba(255,255,255,.85);font-weight:600}
.gpx-hero-overview{margin:0;color:rgba(255,255,255,.82);line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.gpx-hero-actions{display:flex;flex-wrap:wrap;gap:.6em;margin-top:.4em}
.gpx-hero-dots{position:absolute;right:18px;bottom:16px;display:flex;gap:6px}
.gpx-hero-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.35)}
.gpx-hero-dots span.on{background:#fff;width:22px;border-radius:4px}
.gpx-row{margin:0 0 1.1em}
.gpx-row-title{margin:0 3.3% .45em;color:#fff;font-size:1.25em;font-weight:700}
.gpx-row-hint{color:rgba(255,255,255,.5);font-size:.7em;font-weight:500}
.gpx-row-scroller{display:flex;gap:14px;overflow-x:auto;overflow-y:hidden;padding:6px 3.3% 10px;scroll-snap-type:x proximity;scrollbar-width:thin}
.gpx-card{appearance:none;flex:0 0 auto;width:clamp(118px,11vw,190px);padding:0;border:0;background:none;color:#fff;font:inherit;text-align:left;cursor:pointer;scroll-snap-align:start}
.gpx-card-img{position:relative;display:block;aspect-ratio:2/3;border-radius:10px;background:#1b2028 center/cover no-repeat;box-shadow:0 6px 18px rgba(0,0,0,.45);transition:transform .18s ease}
.gpx-card:hover .gpx-card-img,.gpx-card:focus .gpx-card-img{transform:scale(1.04);outline:3px solid var(--gpx-cyan);outline-offset:2px}
.gpx-card:focus{outline:none}
.gpx-card-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:10px;text-align:center;font-weight:700}
.gpx-card-name{display:block;margin-top:.45em;font-size:.9em;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gpx-card-sub{display:block;color:rgba(255,255,255,.55);font-size:.8em}
.gpx-badge{position:absolute;top:7px;left:7px;padding:.12em .5em;border-radius:5px;background:var(--gpx-red);color:#fff;font-size:.7em;font-weight:900;letter-spacing:.04em;box-shadow:0 2px 6px rgba(0,0,0,.4)}
.gpx-badge+.gpx-badge{left:auto;right:7px}
.gpx-badge[data-badge="4K"]{background:#ffd166;color:#111}

/* Ficha */
#gpx-detail-backdrop{position:fixed;inset:0;z-index:0;pointer-events:none;background:var(--gpx-bg) center 20%/cover no-repeat;animation:gpx-fade .5s ease both}
#gpx-detail-backdrop::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,10,13,.97) 0%,rgba(8,10,13,.86) 45%,rgba(8,10,13,.55) 100%),linear-gradient(0deg,rgba(8,10,13,1) 0%,rgba(8,10,13,0) 60%)}
html[data-gpx-backdrop="on"] .mainAnimatedPages{position:relative;z-index:1}
html[data-gpx-backdrop="on"] #itemDetailPage,html[data-gpx-backdrop="on"] #itemDetailPage .detailPageContent{background:transparent!important}
.gpx-premium-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.45em;margin:.6em 0 .2em}
.gpx-saga-link{margin-left:.3em;padding:.3em .8em;border-radius:999px;background:rgba(124,245,255,.12);border:1px solid rgba(124,245,255,.5);color:#7cf5ff!important;font-weight:700;text-decoration:none}
.gpx-saga-link:hover,.gpx-saga-link:focus{outline:3px solid var(--gpx-cyan);outline-offset:2px}

/* Sorpréndeme */
#gpx-surprise{position:fixed;inset:0;z-index:100001;display:flex;align-items:center;justify-content:center;padding:max(16px,3vw);background:rgba(0,0,0,.72);backdrop-filter:blur(4px);animation:gpx-fade .25s ease both}
.gpx-surprise-panel{display:flex;flex-direction:column;gap:14px;width:min(960px,100%);max-height:100%;padding:clamp(14px,2.2vw,28px);box-sizing:border-box;border-radius:20px;border:1px solid rgba(124,245,255,.35);background:#0b0f15;box-shadow:0 24px 70px rgba(0,0,0,.7);color:#fff;overflow:auto}
.gpx-surprise-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.gpx-surprise-head h2{margin:0;font-size:1.4em}
.gpx-surprise-filters{display:flex;flex-wrap:wrap;gap:8px}
.gpx-surprise-filters select{min-height:40px;padding:0 .7em;border-radius:10px;border:1px solid rgba(255,255,255,.3);background:#151b23;color:#fff;font:inherit}
.gpx-surprise-filters select:focus{outline:3px solid var(--gpx-cyan)}
.gpx-surprise-stage{position:relative;min-height:240px;border-radius:14px;overflow:hidden;background:#11151b}
.gpx-surprise-bg{position:absolute;inset:0;background:center/cover no-repeat;opacity:.35}
.gpx-surprise-card{position:relative;display:flex;gap:18px;padding:18px}
.gpx-surprise-poster{flex:0 0 auto;width:clamp(110px,18vw,180px);aspect-ratio:2/3;object-fit:cover;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.6)}
.gpx-surprise-copy h3{margin:0 0 .3em;font-size:clamp(1.3rem,2.4vw,2rem)}
.gpx-surprise-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.45em;margin:0 0 .6em;color:rgba(255,255,255,.85)}
.gpx-surprise-star{color:#ffd166;font-weight:700}
.gpx-surprise-overview{margin:0;line-height:1.45;color:rgba(255,255,255,.85);display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.gpx-surprise-wait{position:relative;margin:0;padding:48px 18px;text-align:center;color:rgba(255,255,255,.75)}
.gpx-surprise-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
html.gpx-surprise-open{overflow:hidden}

/* Películas y Series (home-categories v17.24): insignias, Novedades, Sagas y Sorpréndeme */
#borisgp-categories-v9 .bgp-content-poster{position:relative}
#borisgp-categories-v9 .bgp-row[hidden]{display:none!important}
#borisgp-categories-v9 .bgp-special-card{cursor:default}
#borisgp-categories-v9 .bgp-special-icon{display:none}
#borisgp-categories-v9 .bgp-special-card .bgp-category-name small{display:inline;margin-left:.6em;font-size:.55em;font-weight:600;color:rgba(255,255,255,.6)}
#borisgp-categories-v9 .bgp-surprise-chip{background:rgba(229,9,20,.2)!important;border-color:rgba(229,9,20,.75)!important}

@keyframes gpx-fade{from{opacity:0}to{opacity:1}}

/* Pantallas pequeñas y TV */
@media (max-width:700px){
  .gpx-hero{margin:0 12px 1em;min-height:320px}
  .gpx-hero-copy{max-width:100%}
  .gpx-hero-shade{background:linear-gradient(0deg,rgba(8,10,13,.97) 0%,rgba(8,10,13,.6) 55%,rgba(8,10,13,.15) 100%)}
  .gpx-hero-overview{-webkit-line-clamp:2}
  .gpx-row-title{margin:0 12px .4em}
  .gpx-row-scroller{padding:6px 12px 10px;gap:10px}
  .gpx-surprise-card{flex-direction:column}
  .gpx-surprise-poster{width:120px}
  .gpx-surprise-actions .gpx-btn{flex:1 1 auto;justify-content:center}
}
@media (max-height:800px) and (min-width:901px){.gpx-hero{min-height:clamp(220px,42vh,340px)}.gpx-hero-logo{max-height:90px}.gpx-hero-overview{-webkit-line-clamp:2}}
html.layout-tv .gpx-hero,html[data-bgp-tv-client="on"] .gpx-hero{margin-left:max(3.5vw,24px);margin-right:max(3.5vw,24px)}
html.layout-tv .gpx-btn,html[data-bgp-tv-client="on"] .gpx-btn{font-size:max(.95rem,1.05vw)}
@media (prefers-reduced-motion:reduce){.gpx-hero-slide,#gpx-detail-backdrop,#gpx-surprise{animation:none}.gpx-card-img{transition:none}}

/* ---------- Tanda 2 (v1.1.0): WEB-14, WEB-18, WEB-21 ---------- */
.gpx-btn-small{min-height:36px;padding:0 .9em;font-size:.88em}
.gpx-detail-actions{display:inline-flex;flex-wrap:wrap;gap:.45em;margin-left:.3em}
.gpx-detail-actions .gpx-btn[data-together="1"]{border-color:#2ecc71;color:#2ecc71}
#gpx-watch-with{position:fixed;inset:0;z-index:100001;display:flex;align-items:center;justify-content:center;padding:max(16px,3vw);background:rgba(0,0,0,.72);backdrop-filter:blur(4px)}
.gpx-watch-panel{width:min(640px,100%)}
.gpx-watch-panel h2{margin:0;font-size:1.3em}
.gpx-watch-steps{margin:0;padding-left:1.3em;line-height:1.55;color:rgba(255,255,255,.88)}
.gpx-watch-status{min-height:1.4em;margin:0;color:#7cf5ff;font-weight:600}
/* «¿Quién va a ver?»: avatares más grandes y centrados */
html:root body #loginPage .visualLoginForm #divUsers .card.card{width:clamp(110px,12vw,210px)!important}
html:root body #loginPage .visualLoginForm #divUsers .card .cardText{font-size:clamp(16px,1.6vw,24px)!important}
html.layout-tv:root body #loginPage .visualLoginForm #divUsers .card.card,html[data-bgp-tv-client="on"]:root body #loginPage .visualLoginForm #divUsers .card.card{width:clamp(140px,13vw,240px)!important}
.gpx-account-selector .gpx-access-account-profiles button img{width:clamp(110px,12vw,200px)!important;height:clamp(110px,12vw,200px)!important}
/* Modo infantil */
html.gpx-kids [data-gpx-kids-hide]{display:none!important}
html.gpx-kids #borisgp-categories-v9{--bgp-poster-width:clamp(170px,14vw,240px)!important}
html.gpx-kids #borisgp-categories-v9 .bgp-year-range,html.gpx-kids #borisgp-categories-v9 .bgp-year-summary{display:none!important}
html.gpx-kids .gpx-card{width:clamp(150px,15vw,240px)}
html.gpx-kids .gpx-hero-overview,html.gpx-kids .gpx-hero-actions [data-hero="info"]{display:none}
html.gpx-kids .gpx-row-title{font-size:1.5em}
/* Editor de horario e idioma (access-qr 2.8.0) */
.gpx-profile-prefs strong{flex-basis:100%;font-size:15px}
.gpx-profile-prefs select{min-width:0!important}
.gpx-profile-prefs select[hidden]{display:none!important}

/* ---------- Tanda 3 (v1.2.0): WEB-19, WEB-23, WEB-24, WEB-25 ---------- */
.gpx-requests-body{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;margin:0 3.3%}
.gpx-req-list{list-style:none;margin:0 3.3%;padding:0;display:grid;gap:8px;flex:1 1 320px}
.gpx-requests-body .gpx-req-list{margin:0}
.gpx-req-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-radius:12px;background:rgba(255,255,255,.06);color:#fff}
.gpx-req-list small{color:rgba(255,255,255,.65)}
.gpx-req-status{padding:.15em .6em;border-radius:999px;font-size:.82em;font-weight:800;background:#9aa4ad;color:#111}
.gpx-req-status[data-status="coming"]{background:#ffd166}
.gpx-req-status[data-status="added"]{background:#2ecc71}
.gpx-req-status[data-status="unavailable"]{background:#ff4757;color:#fff}
.gpx-req-actions{display:flex;flex-wrap:wrap;gap:6px}
.gpx-btn.gpx-on{border-color:var(--gpx-cyan);color:var(--gpx-cyan)}
.gpx-req-form{width:min(560px,100%)}
.gpx-req-form h2{margin:0}
.gpx-req-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.gpx-req-form input,.gpx-req-form select,.gpx-req-form textarea{min-height:42px;padding:8px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.3);background:#151b23;color:#fff;font:inherit}
.gpx-req-form input:focus,.gpx-req-form select:focus,.gpx-req-form textarea:focus{outline:3px solid var(--gpx-cyan)}
.gpx-req-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gpx-year-card{appearance:none;display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0 3.3%;padding:18px 22px;width:min(560px,calc(100% - 6.6%));border-radius:16px;border:1px solid rgba(255,209,102,.6);background:linear-gradient(120deg,rgba(229,9,20,.35),rgba(124,245,255,.18));color:#fff;font:inherit;font-size:1.05em;text-align:left;cursor:pointer}
.gpx-year-card span{color:rgba(255,255,255,.75);font-size:.85em}
.gpx-year-card:focus,.gpx-year-card:hover{outline:3px solid var(--gpx-cyan);outline-offset:2px}
.gpx-year-panel{width:min(760px,100%)}
.gpx-year-panel h2,.gpx-year-panel h3{margin:0}
.gpx-year-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.gpx-year-grid div{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:12px;background:rgba(255,255,255,.06)}
.gpx-year-grid b{font-size:1.5em;color:#ffd166}
.gpx-year-grid span{color:rgba(255,255,255,.7);font-size:.85em}
#gpx-screensaver{position:fixed;inset:0;z-index:100002;background:#000;cursor:none}
.gpx-saver-slide{position:absolute;inset:0;background:center/cover no-repeat;animation:gpx-saver 10s ease both}
.gpx-saver-caption{position:absolute;left:4vw;bottom:5vh;padding:.4em .9em;border-radius:10px;background:rgba(0,0,0,.45);color:#fff;font-size:clamp(1rem,1.6vw,1.6rem)}
@keyframes gpx-saver{0%{opacity:0;transform:scale(1.04)}8%{opacity:1}92%{opacity:1}100%{opacity:1;transform:scale(1)}}
#gpx-service-status{position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 64px);transform:translateX(-50%);z-index:100003;width:min(640px,calc(100vw - 24px));padding:12px 16px;box-sizing:border-box;border-radius:14px;border:1px solid #ffd166;background:rgba(20,16,4,.95);color:#ffd166;font-weight:700;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.6)}
.gpx-playback-help{margin-top:.8em;color:#ffd166}
@media (max-width:700px){.gpx-req-grid{grid-template-columns:1fr}.gpx-requests-body{margin:0 12px}.gpx-year-card{margin:0 12px;width:calc(100% - 24px)}}
@media (prefers-reduced-motion:reduce){.gpx-saver-slide{animation:none}}
.gpx-requests-admin > p.gpx-row-hint{margin:0 3.3%}
/* 1.2.2: filas sin barra; se arrastran con el ratón, el dedo o el mando */
.gpx-row-scroller{scrollbar-width:none;cursor:grab;user-select:none;-webkit-user-select:none;touch-action:pan-x pan-y}
.gpx-row-scroller::-webkit-scrollbar{display:none;width:0;height:0}
.gpx-row-scroller.gpx-dragging{cursor:grabbing;scroll-snap-type:none}
.gpx-row-scroller.gpx-dragging .gpx-card{pointer-events:none}
.gpx-card-img{-webkit-user-drag:none}

/* 1.3.0: Próximamente (WEB-26) */
.gpx-row-title .gpx-btn-small{margin-left:.6em;vertical-align:middle}
.gpx-badge-soon{background:#7cf5ff!important;color:#06121a!important}
.gpx-up-empty{margin:0}
.gpx-up-bg{opacity:.28;filter:blur(2px)}
.gpx-up-overview{-webkit-line-clamp:9}
.gpx-btn-soon{cursor:default;letter-spacing:.06em;background:linear-gradient(90deg,#e50914,#b0060f);box-shadow:0 0 0 1px rgba(255,255,255,.15) inset}
.gpx-btn-soon:hover{filter:none}
.gpx-up-results{list-style:none;margin:0;padding:0;display:grid;gap:8px;max-height:46vh;overflow:auto}
.gpx-up-results li{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:12px;padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.06)}
.gpx-up-results small{color:rgba(255,255,255,.65)}
.gpx-up-thumb{display:block;width:46px;aspect-ratio:2/3;border-radius:6px;background:#1b2028 center/cover no-repeat}
/* 1.3.1: filas alineadas con las de Jellyfin (mismo margen, tamaño de carátula, separación y títulos) */
.gpx-row{margin:0 0 .4em}
.gpx-row-title{font-size:1.5em;font-weight:400;margin-bottom:.35em}
.gpx-row-title .gpx-row-hint{font-size:.55em}
.gpx-row-scroller{gap:var(--gpx-card-gap,18px);scroll-padding-inline:3.3%;padding-top:4px;padding-bottom:12px}
.gpx-card{width:var(--gpx-card-w,clamp(118px,14.2vw,240px))}
.gpx-card-name{font-size:1em}
@media (max-width:700px){.gpx-row-scroller{scroll-padding-inline:12px}}
html.gpx-kids .gpx-card{width:calc(var(--gpx-card-w,clamp(118px,14.2vw,240px)) * 1.15)}

/* WEB-27 (1.4.0): tráiler de «Próximamente», a pantalla completa por encima de la ficha */
.gpx-btn-trailer{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.55)}
.gpx-trailer-status:empty{display:none}
html.gpx-trailer-open{overflow:hidden}
#gpx-trailer-player{position:fixed;inset:0;z-index:100003;display:flex;flex-direction:column;background:#000;animation:gpx-fade .2s ease both}
.gpx-trailer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(10px,env(safe-area-inset-top)) max(16px,2vw) 10px;background:linear-gradient(#000,rgba(0,0,0,.6))}
.gpx-trailer-title{color:#fff;font-weight:700;font-size:clamp(14px,1.6vw,20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gpx-trailer-bar .gpx-btn:focus-visible,.gpx-trailer-bar .gpx-btn:focus{outline:3px solid var(--gpx-cyan);outline-offset:2px}
.gpx-trailer-frame{flex:1;width:100%;border:0;background:#000}
@media (prefers-reduced-motion:reduce){#gpx-trailer-player{animation:none}}

/* ===== 1.5.0: portada «pro» (WEB-28, WEB-29, WEB-30) ===== */
/* Marcas para el mando de la app de TV: anula los estilos de Jellyfin para .itemsContainer (display:flex; margin:0 auto). */
#gpx-premium-home .itemsContainer{margin:0}
#gpx-premium-home .gpx-row-scroller.itemsContainer{display:flex}
#gpx-premium-home .gpx-requests-body.itemsContainer{display:flex;margin:0 3.3%}
#gpx-premium-home .gpx-year-wrap.itemsContainer{display:block}
.gpx-hide-recent{display:none!important}
.gpx-card-probe{position:absolute!important;left:-10000px!important;top:0!important;width:100%!important;height:0!important;overflow:hidden!important;visibility:hidden!important;pointer-events:none!important}

/* Carrusel: abre la página, a toda la anchura, y se funde con el fondo. */
#gpx-premium-home .gpx-hero{display:block;position:relative;margin:0 0 1.1em;border-radius:0;min-height:clamp(340px,70vh,780px);background:#0b0d10;box-shadow:none;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.gpx-hero-bg{position:absolute;inset:0;background:center 22%/cover no-repeat;opacity:0;transition:opacity .9s ease}
.gpx-hero-bg.prev{z-index:1}
.gpx-hero-bg.on{z-index:2}
.gpx-hero-bg.gpx-img-in:is(.on,.prev){opacity:1}
#gpx-premium-home .gpx-hero-shade{z-index:3;background:linear-gradient(90deg,rgba(8,10,13,.92) 0%,rgba(8,10,13,.62) 34%,rgba(8,10,13,0) 68%),linear-gradient(0deg,#101010 0%,rgba(16,16,16,.75) 16%,rgba(16,16,16,0) 46%),linear-gradient(180deg,rgba(8,10,13,.55) 0%,rgba(8,10,13,0) 22%)}
#gpx-premium-home .gpx-hero-copy{position:absolute;z-index:4;left:0;bottom:clamp(96px,15vh,160px);display:flex;flex-direction:column;gap:.6em;height:auto;min-height:0;max-width:min(700px,56%);padding:0 3.3%;box-sizing:border-box;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
#gpx-premium-home .gpx-hero-title{font-size:clamp(2rem,4.4vw,4.2rem);text-shadow:0 4px 24px rgba(0,0,0,.6)}
#gpx-premium-home .gpx-hero-logo{max-height:clamp(80px,15vh,170px);max-width:min(480px,100%);filter:drop-shadow(0 6px 22px rgba(0,0,0,.55));opacity:0;transition:opacity .5s ease}
#gpx-premium-home .gpx-hero-logo.gpx-img-in{opacity:1}
#gpx-premium-home .gpx-hero-overview{font-size:clamp(.95rem,1.15vw,1.15rem);text-shadow:0 2px 10px rgba(0,0,0,.6)}
#gpx-premium-home .gpx-hero-actions{position:absolute;z-index:5;left:3.3%;right:3.3%;bottom:clamp(30px,5.4vh,62px);display:flex;flex-wrap:wrap;align-items:center;gap:.65em;margin:0;pointer-events:none}
#gpx-premium-home .gpx-hero-actions > *{pointer-events:auto}
#gpx-premium-home .gpx-hero .gpx-btn{min-height:48px;font-size:1.02em;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
#gpx-premium-home .gpx-hero .gpx-btn-primary{background:#fff;color:#0b0d10;border-color:#fff}
.gpx-hero-navs{display:inline-flex;gap:.45em;margin-left:.4em}
.gpx-hero-nav{appearance:none;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0 0 4px;border-radius:50%;border:1px solid rgba(255,255,255,.45);background:rgba(10,12,16,.5);color:#fff;font:inherit;font-size:1.9em;line-height:1;cursor:pointer;backdrop-filter:blur(6px);transition:transform .2s ease,background .2s ease,box-shadow .2s ease}
.gpx-hero-nav:hover{background:rgba(255,255,255,.18)}
#gpx-premium-home .gpx-hero :is(.gpx-btn,.gpx-hero-nav):is(:hover,:focus-visible,.bgp-tv-focused){transform:scale(1.06);box-shadow:0 0 0 3px var(--gpx-cyan),0 10px 26px rgba(0,0,0,.5)!important;outline:none!important}
#gpx-premium-home .gpx-hero-dots{position:absolute;z-index:5;right:3.3%;bottom:clamp(44px,6.6vh,76px);display:flex;gap:8px}
.gpx-hero-dot{appearance:none;position:relative;width:30px;height:4px;padding:0;border:0;border-radius:2px;background:rgba(255,255,255,.3);overflow:hidden;cursor:pointer}
.gpx-hero-dot i{position:absolute;inset:0;background:#fff;transform:scaleX(0);transform-origin:left}
.gpx-hero-dot.on i{transform:scaleX(1)}
.gpx-anim .gpx-hero.gpx-run .gpx-hero-dot.on i{animation:gpx-progress 12s linear both}
.gpx-hero-dragging .gpx-hero-copy{transform:translateX(var(--gpx-drag,0));transition:none!important}
.gpx-hero-dragging{cursor:grabbing}

/* Efectos (solo con animaciones activas; en TV sin zoom continuo para no cargar el Chromecast). */
.gpx-anim:not(.gpx-tv) .gpx-hero-bg.gpx-img-in:is(.on,.prev){animation:gpx-kenburns 16s ease-out both}
.gpx-anim .gpx-hero-copy.gpx-copy-in > *{animation:gpx-rise .7s cubic-bezier(.2,.8,.2,1) both}
.gpx-anim .gpx-hero-copy.gpx-copy-in > :nth-child(2){animation-delay:.06s}
.gpx-anim .gpx-hero-copy.gpx-copy-in > :nth-child(3){animation-delay:.12s}
.gpx-anim .gpx-hero-copy.gpx-copy-in > :nth-child(4){animation-delay:.18s}
.gpx-anim .gpx-row.gpx-row-in{animation:gpx-rise .65s cubic-bezier(.2,.8,.2,1) both}
@keyframes gpx-kenburns{from{transform:scale(1.02)}to{transform:scale(1.1) translate3d(-1.2%,-1%,0)}}
@keyframes gpx-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes gpx-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes gpx-shimmer{from{background-position:150% 0}to{background-position:-50% 0}}

/* Carátulas: hueco con brillo mientras carga, imagen con fundido y realce al enfocar. */
#gpx-premium-home .gpx-row-scroller{padding-top:12px;padding-bottom:18px;margin-top:-8px}
#gpx-premium-home .gpx-card-img{overflow:hidden;background:#1b2028;transition:transform .25s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease}
.gpx-card-art{position:absolute;inset:0;border-radius:inherit;background:center/cover no-repeat;opacity:0;transition:opacity .45s ease}
.gpx-card-art.gpx-img-in{opacity:1}
.gpx-anim .gpx-card-img::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.08) 50%,transparent 70%) 0 0/200% 100%;animation:gpx-shimmer 1.4s linear infinite}
.gpx-anim .gpx-card-img:has(.gpx-img-in)::before{content:none}
#gpx-premium-home .gpx-card:is(:hover,:focus-visible,.bgp-tv-focused) .gpx-card-img{transform:scale(1.06);outline:none;box-shadow:0 0 0 3px var(--gpx-cyan),0 14px 30px rgba(0,0,0,.6)}
#gpx-premium-home .gpx-card:focus .gpx-card-img{outline:none}
#gpx-premium-home .gpx-card:is(:hover,:focus-visible,.bgp-tv-focused) .gpx-card-name{color:var(--gpx-cyan)}
html[data-bgp-tv-client="on"] #gpx-premium-home .gpx-card.bgp-tv-focused{outline:none!important;box-shadow:none!important}
html[data-bgp-tv-client="on"] #gpx-premium-home .gpx-year-card.bgp-tv-focused,
html[data-bgp-tv-client="on"] #gpx-premium-home .gpx-requests-body .gpx-btn.bgp-tv-focused{outline:3px solid var(--gpx-cyan)!important;outline-offset:2px!important}

@media (max-width:700px){
  #gpx-premium-home .gpx-hero{min-height:max(420px,64vh)}
  #gpx-premium-home .gpx-hero-copy{max-width:100%;padding:0 16px;bottom:118px}
  #gpx-premium-home .gpx-hero-shade{background:linear-gradient(0deg,#101010 0%,rgba(16,16,16,.85) 34%,rgba(16,16,16,.2) 70%,rgba(8,10,13,.5) 100%)}
  #gpx-premium-home .gpx-hero-overview{-webkit-line-clamp:2}
  #gpx-premium-home .gpx-hero-actions{left:16px;right:16px;bottom:22px;gap:.5em}
  #gpx-premium-home .gpx-hero .gpx-btn{min-height:44px;padding:0 .95em;font-size:.95em}
  #gpx-premium-home .gpx-hero-actions [data-hero="info"]{display:none}
  .gpx-hero-navs{display:none}
  #gpx-premium-home .gpx-hero-dots{right:16px;bottom:auto;top:16px}
  #gpx-premium-home .gpx-requests-body.itemsContainer{margin:0 12px}
}
@media (prefers-reduced-motion:reduce){.gpx-hero-bg,.gpx-card-art,#gpx-premium-home .gpx-card-img,#gpx-premium-home .gpx-hero-logo{transition:none}}

/* ===== 1.5.1: carrusel con estilo de plataforma (WEB-29, referencia del usuario del 28-11-2026) ===== */
/* Bajo el logo o el título de la película, centrado y separado de él y de los datos: el rótulo, que entra en blanco y se queda en rojo. */
#gpx-premium-home .gpx-hero-head{display:inline-flex;flex-direction:column;align-items:center;align-self:flex-start;gap:0;margin-bottom:.2em}
#gpx-premium-home .gpx-hero-head .gpx-hero-logo{object-position:center bottom}
#gpx-premium-home .gpx-hero-head .gpx-hero-title{text-align:center}
.gpx-hero-tag{display:block;margin:1.05em 0 1em;color:#ff2a3a;font-size:clamp(1.02rem,1.32vw,1.3rem);font-weight:800;letter-spacing:.26em;text-transform:uppercase;line-height:1;
  text-shadow:0 2px 10px rgba(0,0,0,.75),0 0 18px rgba(255,42,58,.4)}
/* Al entrar cada portada: aparece en blanco, hace dos fundidos a rojo y se queda en rojo hasta la siguiente (no cansa). */
.gpx-anim .gpx-hero-tag{animation:gpx-tag-intro 6.8s ease-in-out both}
@keyframes gpx-tag-intro{
  0%{color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.75)}
  25%{color:#ff2a3a;text-shadow:0 2px 10px rgba(0,0,0,.75),0 0 18px rgba(255,42,58,.45)}
  50%{color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.75)}
  78%,100%{color:#ff2a3a;text-shadow:0 2px 10px rgba(0,0,0,.75),0 0 18px rgba(255,42,58,.4)}}

/* Botones: «Ver ahora» blanco; el resto, gris translúcido sin borde. */
#gpx-premium-home .gpx-hero .gpx-btn:not(.gpx-btn-primary),#gpx-premium-home .gpx-hero-nav{border-color:transparent;background:rgba(255,255,255,.16);backdrop-filter:blur(10px)}
#gpx-premium-home .gpx-hero .gpx-btn:not(.gpx-btn-primary):hover,#gpx-premium-home .gpx-hero-nav:hover{background:rgba(255,255,255,.26)}
#gpx-premium-home .gpx-hero .gpx-btn{border-radius:12px}
#gpx-premium-home .gpx-hero-nav{border-radius:12px}

/* La primera fila se monta sobre la parte baja de la imagen grande. */
#gpx-premium-home .gpx-hero{min-height:clamp(380px,76vh,840px);isolation:isolate}
#gpx-premium-home .gpx-hero-copy{bottom:clamp(190px,26vh,280px)}
#gpx-premium-home .gpx-hero-actions{bottom:clamp(120px,16vh,180px)}
#gpx-premium-home .gpx-hero-dots{bottom:clamp(134px,17.5vh,196px)}
#gpx-premium-home .gpx-hero-shade{background:linear-gradient(90deg,rgba(8,10,13,.94) 0%,rgba(8,10,13,.7) 30%,rgba(8,10,13,.05) 64%),linear-gradient(0deg,#101010 0%,rgba(16,16,16,.92) 12%,rgba(16,16,16,.35) 30%,rgba(16,16,16,0) 50%),linear-gradient(180deg,rgba(8,10,13,.5) 0%,rgba(8,10,13,0) 20%)}
#gpx-premium-home .gpx-hero + .gpx-row{position:relative;z-index:2;margin-top:clamp(-110px,-11vh,-70px)}
#gpx-premium-home .gpx-hero-bg{background-position:72% 25%}
@media (max-width:700px){
  #gpx-premium-home .gpx-hero{min-height:max(460px,70vh)}
  #gpx-premium-home .gpx-hero-copy{bottom:150px}
  #gpx-premium-home .gpx-hero-actions{bottom:84px}
  #gpx-premium-home .gpx-hero + .gpx-row{margin-top:-56px}
  .gpx-hero-tag{font-size:.86rem;letter-spacing:.2em;margin:.8em 0 .75em}
}
/* La marca se escribe siempre «gpXtream», también dentro de textos en mayúsculas. */
.gpx-brand{font-style:normal;text-transform:none!important;letter-spacing:.04em}

/* WEB-35 (1.6.0): temporadas y capítulos en la ficha de la serie. Sustituye a las tarjetas de temporada de Jellyfin. */
#itemDetailPage[data-gpx-episodes="on"] #listChildrenCollapsible{display:none!important}
.gpx-episodes{margin:1.4em 0 .8em}
.gpx-episodes .gpx-episodes-title{margin:0 0 .55em}
.gpx-season-tabs{display:flex;flex-wrap:wrap;gap:.5em;margin:0 0 1em}
.gpx-season-tab{appearance:none;display:inline-flex;align-items:center;gap:.45em;min-height:40px;padding:0 1.1em;border-radius:999px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);color:#fff;font:inherit;font-size:.95em;cursor:pointer;transition:background .15s,color .15s}
.gpx-season-tab[aria-selected="true"]{background:#fff;color:#0b0d10;border-color:#fff;font-weight:700}
.gpx-season-count{font-size:.8em;font-weight:600;opacity:.6}
.gpx-season-tab:hover,.gpx-season-tab:focus-visible{outline:3px solid var(--gpx-cyan);outline-offset:2px}
.gpx-episode-list{list-style:none;margin:0;padding:0;display:grid;gap:.6em}
.gpx-episode{appearance:none;display:flex;align-items:flex-start;gap:1em;width:100%;padding:.6em;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#fff;font:inherit;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
.gpx-episode:hover,.gpx-episode:focus-visible{background:rgba(255,255,255,.1);outline:3px solid var(--gpx-cyan);outline-offset:1px}
.gpx-episode-next{border-color:rgba(229,9,20,.75)}
.gpx-episode-thumb{position:relative;flex:0 0 auto;width:12.5em;height:7.03em;border-radius:8px;overflow:hidden;background:#1a1d22 center/cover no-repeat}
.gpx-episode-play{position:absolute;left:.45em;bottom:.45em;display:flex;align-items:center;justify-content:center;width:2em;height:2em;border-radius:50%;background:rgba(0,0,0,.6);font-size:.8em;opacity:0;transition:opacity .15s}
.gpx-episode:hover .gpx-episode-play,.gpx-episode:focus .gpx-episode-play,.gpx-episode.gpx-zone-focus .gpx-episode-play{opacity:1}
.gpx-episode-check{position:absolute;top:.4em;right:.4em;display:flex;align-items:center;justify-content:center;width:1.6em;height:1.6em;border-radius:50%;background:rgba(0,0,0,.65);color:#7ee787;font-size:.8em;font-weight:700}
.gpx-episode-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.3)}
.gpx-episode-bar>span{display:block;height:100%;background:var(--gpx-red)}
.gpx-episode-body{display:flex;flex-direction:column;gap:.25em;min-width:0;padding-top:.1em}
.gpx-episode-name{font-weight:700;font-size:1.02em;line-height:1.25}
.gpx-episode-played .gpx-episode-name{opacity:.8}
.gpx-episode-meta{display:flex;align-items:center;gap:.5em;font-size:.85em;opacity:.75}
.gpx-episode-tag{padding:.1em .5em;border-radius:4px;background:var(--gpx-red);color:#fff;font-size:.82em;font-weight:700;opacity:1}
.gpx-episode-overview{font-size:.86em;line-height:1.35;opacity:.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gpx-episode-empty{padding:.8em 0;opacity:.7}
@media (max-width:700px){
  /* Muchas temporadas: una sola fila que se desliza de lado. */
  .gpx-season-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:3px 3px 6px}
  .gpx-season-tabs::-webkit-scrollbar{display:none}
  .gpx-season-tab{flex:0 0 auto}
  .gpx-episode{gap:.7em;padding:.45em}
  .gpx-episode-thumb{width:8.5em;height:4.78em}
  .gpx-episode-name{font-size:.95em}
  .gpx-episode-overview{-webkit-line-clamp:2;font-size:.8em}
}
