/* Normal-flow detail layout: no dependency on the removed photographic hero. */
/* Only the decorative back control, never OS/remote back or playback controls. */
html[data-gpx-home="on"] body #bgp-global-back,html:has(#indexPage.homePage:not(.hide)) body #bgp-global-back,html:has(#videoOsdPage:not(.hide)) body #bgp-global-back,html:has(.videoPlayerContainer-onTop) body #bgp-global-back{display:none!important;pointer-events:none!important}
/* Remove decorative navigation edges from native video OSD/loading fullscreen. */
html:has(#videoOsdPage:not(.hide)) body .MuiAppBar-root,html:has(#videoOsdPage:not(.hide)) body .skinHeader,html:has(.videoPlayerContainer-onTop) body .MuiAppBar-root,html:has(.videoPlayerContainer-onTop) body .skinHeader,html[data-bgp-mobile="on"]:has(.videoPlayerContainer-onTop) body .MuiAppBar-root,html[data-bgp-mobile="on"]:has(.videoPlayerContainer-onTop) body .skinHeader{border:0!important;box-shadow:none!important}
html:has(#videoOsdPage:not(.hide)) body .MuiAppBar-root::after,html:has(#videoOsdPage:not(.hide)) body .skinHeader::after,html:has(.videoPlayerContainer-onTop) body .MuiAppBar-root::after,html:has(.videoPlayerContainer-onTop) body .skinHeader::after,html[data-bgp-mobile="on"]:has(.videoPlayerContainer-onTop) body .MuiAppBar-root::after,html[data-bgp-mobile="on"]:has(.videoPlayerContainer-onTop) body .skinHeader::after{content:none!important;display:none!important;box-shadow:none!important;background:none!important}
html body #itemDetailPage[data-gpx-detail] .detailPageWrapperContainer{display:block!important;margin:0!important;min-height:0!important}
html body #itemDetailPage[data-gpx-detail] .detailPagePrimaryContainer{display:grid!important;grid-template-columns:clamp(200px,24vw,330px) minmax(0,1fr);grid-template-rows:auto 1fr;gap:22px clamp(24px,4vw,70px);align-items:start;padding:clamp(24px,3vw,48px) 3.3% 28px!important;box-sizing:border-box;position:relative!important}
html body #itemDetailPage[data-gpx-detail] .gpx-detail-heading{grid-column:2;grid-row:1;min-width:0}
html body #itemDetailPage[data-gpx-detail] .gpx-detail-art{grid-column:1;grid-row:1 / 3;min-width:0;width:100%;margin:0}
html body #itemDetailPage[data-gpx-detail] .gpx-detail-copy{grid-column:2;grid-row:2;min-width:0}
html body #itemDetailPage[data-gpx-detail] .detailLogo:not(.hide){display:block!important;position:static!important;inset:auto!important;width:min(100%,520px)!important;height:clamp(90px,12vw,165px)!important;margin:0 0 18px!important;background-position:left center!important;background-size:contain!important;pointer-events:none}
html body #itemDetailPage[data-gpx-detail] .nameContainer{display:block!important;padding:0!important;margin:0!important}
html body #itemDetailPage[data-gpx-detail] .nameContainer .itemName{font-size:clamp(23px,2.2vw,34px)!important;line-height:1.25!important;margin:0!important;overflow-wrap:anywhere;color:#f6f7fa}
html body #itemDetailPage[data-gpx-detail] .nameContainer .originalTitle{font-size:14px!important;margin-top:8px!important;color:#abb2bf}
/* Artwork already supplies the movie/series title; retain its H1 for screen readers.
   Episode headings with parent-series links stay visible below series artwork. */
html body #itemDetailPage[data-gpx-detail][data-gpx-title-artwork="on"] .nameContainer:not(:has(.parentName)){position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important}
html body #itemDetailPage[data-gpx-detail] .detailRibbon{display:block!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;position:static!important;inset:auto!important;transform:none!important}
html body #itemDetailPage[data-gpx-detail] .infoWrapper{padding:0!important;margin:0!important;width:100%!important;position:static!important}
html body #itemDetailPage[data-gpx-detail] .infoWrapper>.detailImageContainer{display:none!important}
html body #itemDetailPage[data-gpx-detail] .itemMiscInfo{justify-content:flex-start!important;align-items:center!important;text-align:left!important;gap:6px 0;font-size:16px!important;line-height:1.5;color:#c3c9d4}
html body #itemDetailPage[data-gpx-detail] .detailPagePrimaryContent{padding:16px 0 0!important;margin:0!important;position:static!important;min-width:0}
html body #itemDetailPage[data-gpx-detail] .gpx-detail-art>.detailImageContainer{display:block!important;width:100%!important;position:static!important;margin:0!important;padding:0!important}
html body #itemDetailPage[data-gpx-detail] .gpx-detail-art .detailImageContainer .card{float:none!important;position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:100%!important;max-height:none!important;margin:0!important;filter:none!important}
html body #itemDetailPage[data-gpx-detail] .gpx-detail-art .cardBox{margin:0!important;box-shadow:0 12px 30px #0005;border-radius:14px;overflow:hidden}
html body #itemDetailPage[data-gpx-detail] .mainDetailButtons:not(.hide){display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:10px;margin:18px 0 0!important;padding:0!important;width:100%;font-size:16px!important}
html body #itemDetailPage[data-gpx-detail] .mainDetailButtons .gpx-primary-action:not(.hide){display:flex!important;flex:1 1 100%;width:100%!important;min-height:48px!important;height:auto!important;margin:0!important;padding:12px 15px!important;box-sizing:border-box;border:1px solid #ffffff30!important;border-radius:10px!important;color:#f4f6fa!important;background:#ffffff09!important;box-shadow:none!important;transform:none!important}
html body #itemDetailPage[data-gpx-detail] .mainDetailButtons .btnPlay:not(.hide){background:linear-gradient(125deg,#e62230,#a90d25)!important;border-color:#ff68706b!important;box-shadow:0 0 16px #ff20281c!important}
html body #itemDetailPage[data-gpx-detail] .gpx-primary-action .detailButton-content{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start!important;gap:12px;width:100%;padding:0!important;min-width:0}
html body #itemDetailPage[data-gpx-detail] .gpx-primary-action .detailButton-icon{font-size:23px!important;line-height:1!important;height:24px!important;width:24px!important;margin:0!important;padding:0!important;flex:0 0 24px}
html body #itemDetailPage[data-gpx-detail] .gpx-detail-label{font-size:16px!important;font-weight:650;line-height:1.35;text-transform:none;white-space:normal;text-align:left}
html body #itemDetailPage[data-gpx-detail] .mainDetailButtons .detailButton:not(.gpx-primary-action):not(.hide){height:44px!important;min-width:44px!important;width:44px!important;margin:2px 0 0!important;padding:8px!important;border-radius:10px!important;border:1px solid #ffffff17!important;background:#ffffff06!important;transform:none!important}
html body #itemDetailPage[data-gpx-detail] .mainDetailButtons button:hover{filter:brightness(1.12);border-color:#ff646c!important}
html body #itemDetailPage[data-gpx-detail] .mainDetailButtons button:focus-visible,html[data-bgp-tv-client="on"] body #itemDetailPage[data-gpx-detail] .mainDetailButtons button:focus{outline:2px solid #ff545b!important;outline-offset:3px!important}
html body #itemDetailPage[data-gpx-detail] .overview{font-size:17px!important;line-height:1.65!important;margin:14px 0 22px!important;max-width:85ch;color:#ced3dc}
html body #itemDetailPage[data-gpx-detail] .tagline{font-size:18px!important;line-height:1.5!important;color:#f2d0d4;margin:18px 0 8px!important;font-weight:500}
html body #itemDetailPage[data-gpx-detail] .trackSelections{display:flex!important;flex-wrap:wrap;gap:8px 16px;margin:8px 0 18px!important;font-size:14px!important;max-width:100%;padding:16px 0;border-top:1px solid #ffffff10;border-bottom:1px solid #ffffff10}
html body #itemDetailPage[data-gpx-detail] .trackSelections.hide{display:none!important}
html body #itemDetailPage[data-gpx-detail] .trackSelectionFieldContainer:not(.hide){display:flex!important;align-items:center;width:100%;max-width:100%;min-width:0;margin:0!important}
html body #itemDetailPage[data-gpx-detail] .selectLabel{min-width:80px;color:#a9b2c0;font-size:13px}
html body #itemDetailPage[data-gpx-detail] .detailTrackSelect{min-width:0;max-width:100%;background:#111620!important;color:#e7eaf0;border:1px solid #ffffff1c!important;border-radius:8px!important;padding:8px 30px 8px 10px!important;font-size:14px!important}
html body #itemDetailPage[data-gpx-detail] .itemDetailsGroup,html body #itemDetailPage[data-gpx-detail] .itemExternalLinks{font-size:15px!important;line-height:1.7}
html body #itemDetailPage[data-gpx-detail] .itemTags{font-size:12px!important;color:#8992a1;line-height:1.6}
html body #itemDetailPage[data-gpx-detail] .detailPageSecondaryContainer{padding-top:28px!important;margin-top:0!important;border-top:1px solid #ffffff0b}
/* A season/series logo is intentionally large. Keep its episode rail in a
   separate vertical band so the first chapter never sits over title artwork. */
html body #itemDetailPage[data-gpx-detail][data-gpx-title-artwork="on"] .gpx-detail-copy .nextUpItems{position:relative!important;clear:both!important;margin-top:clamp(72px,6.2vw,120px)!important}
html[data-bgp-tv-client="on"] body #itemDetailPage[data-gpx-detail] .gpx-detail-label,html[data-bgp-tv-client="on"] body #itemDetailPage[data-gpx-detail] .itemMiscInfo{font-size:19px!important}
html[data-bgp-tv-client="on"] body #itemDetailPage[data-gpx-detail] .overview{font-size:19px!important}
html[data-bgp-tv-client="on"] body #itemDetailPage[data-gpx-detail] .detailPagePrimaryContainer{grid-template-columns:clamp(200px,18vw,240px) minmax(0,1fr);padding-top:24px!important;gap:18px 40px}
html[data-bgp-tv-client="on"] body #itemDetailPage[data-gpx-detail] .detailLogo:not(.hide){height:110px!important;max-width:440px!important;margin-bottom:12px!important}
@media(max-width:700px){
 html body #itemDetailPage[data-gpx-detail] .detailPagePrimaryContainer{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;gap:24px;padding:24px 5% 28px!important}
 html body #itemDetailPage[data-gpx-detail] .gpx-detail-heading{grid-column:1;grid-row:1;text-align:center}
 html body #itemDetailPage[data-gpx-detail] .gpx-detail-art{grid-column:1;grid-row:2;width:min(100%,330px);justify-self:center;display:flex;flex-direction:column;align-items:center}
 html body #itemDetailPage[data-gpx-detail] .gpx-detail-art>.detailImageContainer{width:min(52vw,210px)!important}
 html body #itemDetailPage[data-gpx-detail] .gpx-detail-copy{grid-column:1;grid-row:3}
 html body #itemDetailPage[data-gpx-detail] .detailLogo:not(.hide){width:min(100%,300px)!important;height:100px!important;margin:0 auto 16px!important;background-position:center!important}
 html body #itemDetailPage[data-gpx-detail] .nameContainer .itemName{font-size:24px!important}
 html body #itemDetailPage[data-gpx-detail] .overview{font-size:16px!important}
 html body #itemDetailPage[data-gpx-detail] .itemMiscInfo{justify-content:center!important;text-align:center!important;font-size:15px!important}
 html body #itemDetailPage[data-gpx-detail] .detailPagePrimaryContent{padding-top:8px!important}
 html body #itemDetailPage[data-gpx-detail][data-gpx-title-artwork="on"] .gpx-detail-copy .nextUpItems{margin-top:24px!important}
}
