/* Same transparent assets and lightweight surfaces on web, TV and mobile. */
html body .splashLogo{display:none!important;background:none!important;animation:none!important}
html,html body,html body .backgroundContainer,html body #borisgp-categories-v9{background:radial-gradient(ellipse at 50% 12%,#26101666,transparent 48%),#080a0d!important}
/* Jellyfin inserts video before the page background, then drops its onTop
   class when the OSD opens. Respect the native transparent playback state;
   never raise video above subtitles, controls or dialogs. */
html.transparentDocument,html body.transparentDocument,html.transparentDocument body,
html body .backgroundContainer.backgroundContainer-transparent:not(.withBackdrop){background:transparent!important}
html:has(#videoOsdPage:not(.hide)),html:has(#videoOsdPage:not(.hide)) body,
html:has(#videoOsdPage:not(.hide)) body .backgroundContainer{background:transparent!important}
html body::before,html body .backdropContainer,html body #itemDetailPage .itemBackdrop{display:none!important;background:none!important}
html body #itemDetailPage .detailPagePrimaryContainer,html body #itemDetailPage .detailPageSecondaryContainer,html body #itemDetailPage .detailRibbon,html body #itemDetailPage .detailPageWrapperContainer{background:transparent!important}
html body .MuiAppBar-root,html body .skinHeader{background:#080c10!important;border-bottom:1px solid #ff2028!important;box-shadow:0 1px 5px #ff2028b3,0 3px 12px #ff182640!important;backdrop-filter:none!important}
html body .MuiAppBar-root::after,html body .skinHeader::after{content:""!important;position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(180deg,#ff9a97,#ff2028)!important;box-shadow:none!important;pointer-events:none}
html[data-gpx-login="on"]:has(#loginPage .manualLoginForm.hide) .MuiAppBar-root,html[data-gpx-login="on"]:has(#loginPage .manualLoginForm.hide) .skinHeader,html[data-gpx-login="on"]:has(#loginPage .manualLoginForm.hide) #bgp-global-back{display:none!important}
html body #loginPage:has(.manualLoginForm.hide){top:0!important;min-height:100dvh!important}
html body #bgp-home-branding,html body #bgp-login-branding{background:transparent!important;border:0!important;box-shadow:none!important;pointer-events:none!important}
html body .bgp-branding img{mix-blend-mode:normal!important;filter:none!important;object-fit:contain!important;background:transparent!important}
html body #bgp-home-branding{padding:18px 16px 22px!important;margin-bottom:8px!important}
html body #bgp-home-branding img{width:clamp(150px,18vw,300px)!important;height:auto!important;max-width:41vw!important;max-height:190px!important}
html body #bgp-login-branding img{width:clamp(170px,25vw,360px)!important;height:auto!important;max-width:65vw!important;max-height:230px!important}
html body #bgp-login-branding .bgp-logo-x-track{display:none!important}
html body #borisgp-categories-v9 .bgp-row{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
html body #borisgp-categories-v9 .bgp-category-card{box-sizing:border-box!important;width:100%!important;aspect-ratio:auto!important;min-height:44px!important;height:auto!important;padding:6px 8px!important;border:0!important;border-radius:0!important;background:none!important;display:flex!important;align-items:center!important;text-align:left!important}
html body #borisgp-categories-v9 .bgp-category-shade{display:none!important}
html body #borisgp-categories-v9 .bgp-category-name{position:static!important;inset:auto!important;font-size:clamp(22px,2vw,30px)!important;line-height:1.25!important;text-shadow:none!important}
html body .MuiDrawer-paper{background:linear-gradient(160deg,#101822,#080b10 65%)!important;color:#edf0f4!important;box-shadow:6px 0 24px #0008!important;border-right:1px solid #ffffff12!important}
html body .MuiDrawer-paper .MuiListItemButton-root.Mui-selected,html body .MuiDrawer-paper .MuiMenuItem-root.Mui-selected{background:#7d15282e!important;border-left:2px solid #ce253d}
html body .MuiDrawer-paper .gpx-drawer-logo{object-fit:contain!important;width:72px!important;height:54px!important;background:transparent!important;border:0!important}
html body .MuiDrawer-paper a[href^="#/boxsets"]{display:none!important}
html body #borisProfileTransition{background:#080a0d!important;opacity:1!important;animation:none!important;transition:none!important;backdrop-filter:none!important}
html body #borisProfileTransition .profileAvatar,html body #borisProfileTransition .profileName{display:none!important}
html body #borisProfileTransition .enterText{opacity:1!important;transition:none!important;color:#fff!important;font-size:20px!important}
html body #borisProfileTransition:not(.error) .enterText::after{content:none!important}
html body #borisgp-categories-v9,html body #borisgp-categories-v9 *{backdrop-filter:none!important}
html body #borisgp-categories-v9.bgp-view-leaving{filter:none!important}
html body #bgp-profile-electric{inset:0!important}
html body #bgp-profile-electric .bgp-electric-beam,html body #bgp-profile-electric .bgp-electric-point{animation:none!important}
html[data-gpx-entering="on"] body>:not(#gpx-home-cover){visibility:hidden!important}
#gpx-home-cover{position:fixed;inset:0;background:#080a0d;z-index:2147483647;pointer-events:auto;opacity:1;transition:opacity 2000ms cubic-bezier(.22,.61,.36,1)}
/* Identical portrait stage across navigation; compositor effects only. */
html body #borisProfileTransition[data-gpx-profile="on"],.gpx-profile-stage{box-sizing:border-box;position:fixed;inset:0;width:100vw;height:100vh;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:26px;padding:24px;z-index:2147483647}
html body #borisProfileTransition[data-gpx-profile="on"]{background:rgba(8,10,13,0)!important;transition:background-color 480ms ease!important;pointer-events:auto}
html body #borisProfileTransition[data-gpx-profile="on"].active{background:#080a0d!important}
html body #borisProfileTransition[data-gpx-profile="on"] .profileAvatar,html body .gpx-profile-stage .gpx-profile-avatar{display:block!important;position:static!important;flex:0 0 auto;width:min(clamp(144px,22vw,230px),32vh)!important;height:min(clamp(144px,22vw,230px),32vh)!important;border:1px solid #ffffff40!important;border-radius:50%!important;background-size:cover!important;background-position:center!important;box-shadow:none!important;opacity:1!important;filter:none!important;animation:none!important;box-sizing:border-box;margin:0!important}
html body #borisProfileTransition[data-gpx-profile="on"] .profileAvatar{transform:translate(var(--gpx-avatar-x,0px),var(--gpx-avatar-y,0px)) scale(var(--gpx-avatar-scale,1))!important;transition:none!important}
html body #borisProfileTransition[data-gpx-profile="on"].active .profileAvatar{transform:translate(0,0) scale(1)!important;transition:transform 650ms cubic-bezier(.22,.7,.2,1)!important}
html body #borisProfileTransition[data-gpx-profile="on"] .profileName{display:none!important}
html body #borisProfileTransition[data-gpx-profile="on"] .enterText,html body .gpx-loading-line{display:flex!important;align-items:baseline;justify-content:center;gap:3px;position:static!important;font-size:clamp(18px,1.6vw,24px)!important;font-weight:500!important;color:#f5f6f8!important;margin:0!important;line-height:1.5!important;transform:none!important;opacity:1!important;letter-spacing:.01em}
html body #borisProfileTransition[data-gpx-profile="on"] .enterText::after{content:none!important;display:none!important}
/* Override the native legacy :not(.error) rule that zeroes the loading font. */
html body #borisProfileTransition[data-gpx-profile="on"]:not(.error) .enterText{font-size:clamp(18px,1.6vw,24px)!important}
html body #borisProfileTransition[data-gpx-profile="on"] .gpx-loading-label{opacity:0;transition:opacity 350ms 220ms ease}
html body #borisProfileTransition[data-gpx-profile="on"].active .gpx-loading-label{opacity:1}
.gpx-loading-dots{display:inline-flex;width:20px;gap:2px}
.gpx-loading-dots>span{animation:gpx-loading-dot 1200ms ease-in-out infinite;opacity:.25}
.gpx-loading-dots>span:nth-child(2){animation-delay:160ms}.gpx-loading-dots>span:nth-child(3){animation-delay:320ms}
@keyframes gpx-loading-dot{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){html body #borisProfileTransition[data-gpx-profile="on"],html body #borisProfileTransition[data-gpx-profile="on"] .profileAvatar,html body #borisProfileTransition[data-gpx-profile="on"] .gpx-loading-label{transition:none!important;transform:none!important;opacity:1}.gpx-loading-dots>span{animation:none;opacity:1}}
@media(max-width:599px){html body #bgp-global-back{display:none!important}html body #bgp-home-branding img{width:clamp(110px,32vw,170px)!important;max-height:108px!important}html body #bgp-login-branding img{width:clamp(105px,27.5vw,200px)!important;max-height:90px!important}}
@media(prefers-reduced-motion:reduce){#gpx-home-cover{transition:none!important}}
/* Native countdown, start/hide handlers and hide transitions remain untouched. */
html body .upNextContainer.upNextDialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px);padding:clamp(20px,2vw,30px)!important;margin:0 clamp(16px,2.5vw,40px) clamp(16px,2.5vw,40px) 0!important;border:1px solid #ff303838!important;border-radius:18px!important;background:linear-gradient(140deg,#181015fa,#080a0dfa)!important;box-shadow:0 18px 60px #0009,0 0 18px #ff202812!important;backdrop-filter:none!important;color:#f4f6fa}
html body .upNextContainer.upNextDialog::before{content:"";position:absolute;top:0;left:24px;right:24px;height:1px;background:linear-gradient(90deg,transparent,#ff2028,#ff8e8a,#ff2028,transparent);box-shadow:0 0 8px #ff2028a6;pointer-events:none}
html body .upNextDialog>.flex{min-width:0;width:100%}
html body .upNextDialog-nextVideoText{font-size:clamp(16px,1.2vw,20px)!important;line-height:1.5;color:#c4cad4;margin:0 0 14px!important}
html body .upNextDialog-nextVideoText::before{content:"A CONTINUACIÓN";display:block;color:#f16c75;font-size:11px;font-weight:700;letter-spacing:.18em;margin-bottom:12px}
html body .upNextDialog-countdownText{display:block;color:#ff545b!important;text-shadow:0 0 12px #ff202838;font-size:clamp(24px,2vw,32px)!important;font-weight:650;font-variant-numeric:tabular-nums}
html body .upNextDialog-title{width:auto!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;font-size:clamp(16px,1.1vw,20px)!important;line-height:1.45;margin:0 0 12px!important}
html body .upNextDialog-mediainfo{flex-wrap:wrap;gap:4px 8px;color:#b8c0cd;font-size:14px;line-height:1.6}
html body .upNextDialog-buttons{width:100%!important;gap:10px;flex-wrap:wrap;margin-top:24px!important}
html body .upNextDialog .upNextDialog-button{box-sizing:border-box;min-height:46px;min-width:110px;border:1px solid #ffffff2e;border-radius:10px;background:#ffffff10!important;color:#f8f9fc;font:inherit;font-size:16px;font-weight:600;padding:12px 18px;margin:0!important;box-shadow:none!important}
html body .upNextDialog .btnStartNow{background:linear-gradient(135deg,#e7232d,#a50e23)!important;border-color:#ff545b80;box-shadow:0 0 12px #ff20281f!important}
html body .upNextDialog .upNextDialog-button:hover{border-color:#ff686f!important;filter:brightness(1.12)}
html body .upNextDialog .upNextDialog-button:focus{outline:2px solid #ff545b!important;outline-offset:3px;box-shadow:0 0 0 5px #ff20281f!important}
html[data-bgp-tv-client="on"] body .upNextDialog .upNextDialog-button,html[data-bgp-tv-client="on"] body .upNextDialog-mediainfo{font-size:18px!important}
@media(max-width:560px){html body .upNextContainer.upNextDialog{margin:0 16px 16px 0!important;border-radius:16px!important}html body .upNextDialog .upNextDialog-button{flex:1 1 auto;min-width:100px}}
