/*
 * Offline mirror: navigation-app header is deferred (#header stays empty).
 * Prod PEP CSS anchors body backer at 67px to sit below syndicated nav.
 */
body.interior-pep #header:empty {
    display: block;
    min-height: 67px;
}

body.home.pep-unified-chrome {
    background: #fff;
}

body.home.pep-unified-chrome .pep-layout-desktop #burst-desktop {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
}

body.home.pep-unified-chrome .pep-layout-desktop #burst-desktop > .container {
    position: relative;
    width: 100%;
    min-width: 0;
}

body.landing-generic.pep-unified-chrome .pep-layout-desktop #feature-media-desktop img {
    display: block;
    width: 100%;
    height: auto;
}

body.au.pep-unified-chrome.landing-generic .pep-layout-desktop #feature-media-desktop #mediaIcon {
    display: inline-block;
    position: relative;
    top: -92px;
    left: 25px;
    width: 67px;
    height: 67px;
    background: url("https://cdn1.parksmedia.wdprapps.disney.com/media/disneyparksjapan-prod/disneyparksjapan_v0001/1/0.2.0-208/static/images/play_button.png") no-repeat 0 0 transparent;
}

body.au.pep-unified-chrome.landing-generic .pep-layout-desktop #feature-media-desktop #mediaIcon:hover,
body.au.pep-unified-chrome.landing-generic .pep-layout-desktop #feature-media-desktop #mediaIcon:focus,
body.au.pep-unified-chrome.landing-generic .pep-layout-desktop #feature-media-desktop #mediaIcon:active {
    background-image: url("https://cdn1.parksmedia.wdprapps.disney.com/media/disneyparksjapan-prod/disneyparksjapan_v0001/1/0.2.0-208/static/images/play_button_hover.png");
}

@media screen and (min-width: 565px) {
    body.au.pep-unified-chrome #mobile-container {
        display: block !important;
        overflow: visible !important;
    }

    body.au.pep-unified-chrome #window-container {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        min-height: 0 !important;
        overflow: visible !important;
        z-index: 5;
    }

    body.au.pep-unified-chrome #nav-container {
        min-height: 0 !important;
    }

    body.au.pep-unified-chrome.landing-generic .pep-layout-desktop #feature-media-desktop {
        height: 360px;
        margin-bottom: 20px;
    }

    body.au.pep-unified-chrome.landing-generic .pep-layout-desktop #feature-media-desktop #mediaIcon {
        display: inline-block;
        position: relative;
        top: -92px;
        left: 25px;
        width: 67px;
        height: 67px;
        background: url("https://cdn1.parksmedia.wdprapps.disney.com/media/disneyparksjapan-prod/disneyparksjapan_v0001/1/0.2.0-208/static/images/play_button.png") no-repeat 0 0 transparent;
    }

    body.au.pep-unified-chrome.landing-generic .pep-layout-desktop #feature-media-desktop #mediaIcon:hover,
    body.au.pep-unified-chrome.landing-generic .pep-layout-desktop #feature-media-desktop #mediaIcon:focus,
    body.au.pep-unified-chrome.landing-generic .pep-layout-desktop #feature-media-desktop #mediaIcon:active {
        background-image: url("https://cdn1.parksmedia.wdprapps.disney.com/media/disneyparksjapan-prod/disneyparksjapan_v0001/1/0.2.0-208/static/images/play_button_hover.png");
    }

    body.au.pep-unified-chrome.interior-pep .pep-layout-desktop #burst-desktop {
        padding-top: 0;
    }

    body.au.pep-unified-chrome #content-container {
        display: block;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        overflow: visible !important;
    }
}

body.au.pep-unified-chrome.detail-gift.index.light {
    color: #253b56 !important;
    background: #fff none !important;
}

@media screen and (min-width: 565px) {
    body.au.pep-unified-chrome.landing-generic.disneyworld .pep-layout-desktop #card-section .hover-card-content img,
    body.au.pep-unified-chrome.landing-generic.disneyland .pep-layout-desktop #card-section .hover-card-content img {
        width: 175px !important;
        height: 98px;
        margin: 0 20px 5px 0;
    }

    body.au.pep-unified-chrome.landing-generic.disneyworld .pep-layout-desktop #card-section .hover-card-content h2,
    body.au.pep-unified-chrome.landing-generic.disneyworld .pep-layout-desktop #card-section .hover-card-content h3,
    body.au.pep-unified-chrome.landing-generic.disneyland .pep-layout-desktop #card-section .hover-card-content h2,
    body.au.pep-unified-chrome.landing-generic.disneyland .pep-layout-desktop #card-section .hover-card-content h3 {
        margin-left: 0;
    }

    body.au.pep-unified-chrome.landing-generic.disneyworld .pep-layout-desktop #card-section .hover-card-copy,
    body.au.pep-unified-chrome.landing-generic.disneyland .pep-layout-desktop #card-section .hover-card-copy {
        margin: 0;
        max-width: 440px;
    }
}

body.au.pep-unified-chrome > img[data-source="TMS"] {
    position: absolute;
    top: 0;
    left: -9999px;
}

@media screen and (max-width: 564px) {
    body.pep-unified-chrome.interior-pep {
        background-image: none;
    }

    body.pep-unified-chrome.interior-pep .pep-layout-mobile #burst {
        background: url("https://cdn1.parksmedia.wdprapps.disney.com/media/disneyparksjapan-prod/disneyparksjapan_v0001/1/0.2.0-208/static/css/global/images/background-main-center-stars.jpg") no-repeat scroll 0 120px transparent;
        background-size: 100% auto;
    }

    body.pep-unified-chrome.interior-pep.cards-stream .pep-layout-mobile #burst {
        background-position: 0 0;
    }

    .cards-stream #cards-stream-page-mobile {
        margin: 4px 10px 0;
        padding: 0;
    }

    #cards-stream-page-mobile #page-title-mobile,
    #cards-stream-page-mobile .page-description,
    #filter-bar-mobile .filter-separator {
        display: none;
    }

    #cards-stream-page-mobile.no-filters #page-title-mobile {
        display: block;
        padding: 0 0 5px;
        margin: 0;
        font-size: 24px;
        line-height: 30px;
        font-weight: 200;
    }

    #cards-stream-page-mobile #card-section-mobile {
        background: #fff;
        border-radius: 5px;
        margin: 0 0 20px;
        padding: 0;
    }

    #filter-bar-mobile {
        background: #fff;
        border-radius: 5px;
        height: auto;
        margin: 0 0 10px;
        padding: 0;
    }

    #filter-bar-mobile .filter,
    #filter-bar-mobile .filter .filter-title {
        display: block;
    }

    #filter-bar-mobile .filter .filter-title {
        -webkit-appearance: none;
        appearance: none;
        border: 0;
        background: transparent;
        box-sizing: border-box;
        width: 100%;
        font-family: inherit;
        line-height: inherit;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
        font-weight: bold;
        padding: 10px 0;
        font-size: 13px;
        color: #253b56;
    }

    #cards-stream-page-mobile .cards-top-bar {
        padding: 8px 10px 5px;
    }

    #filter-result-text-mobile {
        font-size: 13px;
        line-height: 20px;
    }

    #cards-stream-page-mobile .hover-card {
        margin: 0;
    }

    #card-section-mobile .hover-card > a {
        overflow: hidden;
        display: block;
        height: auto;
        text-decoration: none;
        border: none;
        outline: none;
    }

    #card-section-mobile .hover-card-content {
        position: static;
        width: auto;
        display: block;
        padding-right: 30px;
    }

    #card-section-mobile .hover-card-content h3 {
        position: static;
        width: auto;
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 5px;
    }

    #card-section-mobile .hover-card-copy {
        position: static;
        width: auto;
        font-size: 14px;
        overflow: hidden;
    }

    #cards-stream-page-mobile .list-card-separator {
        background: #dfdfdf;
        height: 1px;
    }

    #card-section-mobile .list-card-separator:first-child {
        display: none;
    }

    #cards-stream-page-mobile .filter-menu.open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #eef6fc;
        z-index: 1001;
    }

    #cards-stream-page-mobile .options {
        width: 100%;
        top: 0;
        background: #eef6fc;
        border-radius: 0;
        box-shadow: none;
    }

    #cards-stream-page-mobile .options .perfect-scroll {
        border: 0;
        padding: 0;
    }

    #filter-bar-mobile .filter-menu .filter-clear li a {
        padding: 10px 15px;
        border-radius: 5px;
        background: linear-gradient(to bottom, #fff 0%, #f5f9fc 100%);
        box-shadow: 0 0 4px 0 #777;
    }
}

/* Merged cards-stream desktop: keep CDN global.css filter bar layout (inline-block, no float). */
body.au.pep-unified-chrome .pep-layout-desktop #filter-bar > div {
    display: inline-block;
}

body.au.pep-unified-chrome .pep-layout-desktop #filter-bar .filter,
body.au.pep-unified-chrome .pep-layout-desktop #filter-bar .filter-separator {
    float: none;
}

body.au.pep-unified-chrome .pep-layout-desktop #filter-bar .filter-separator {
    display: inline-block;
    vertical-align: middle;
}

/*
 * global-r.css (565px+) duplicates legacy .hover-card absolute layout with
 * margin-left:190px / margin-top:18px on copy. CDN global.css #card-section
 * resets position only — merged pages need margin reset to match prod.
 */
body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #card-section .hover-card a h2,
body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #card-section .hover-card a h3 {
    margin-left: 0;
}

body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #card-section .hover-card a .hover-card-copy {
    margin: 0;
    max-width: 440px;
}

/*
 * global-r.css (565px+) fixes .hover-card at 95px with absolute img; CDN global.css
 * uses auto height + float img inside .hover-card-content for cards-stream list cards.
 */
@media screen and (min-width: 565px) {
    body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #card-section .hover-card {
        margin: 0 20px;
        padding: 23px 0;
        height: auto;
    }

    body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #card-section .hover-card > a {
        overflow: hidden;
        display: block;
        height: auto;
    }

    body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #card-section .hover-card-content {
        display: block;
        width: auto;
        padding-right: 25px;
        vertical-align: baseline;
    }

    body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #card-section .hover-card-content img {
        float: left;
        margin: 0 20px 5px 0;
        position: static;
        left: auto;
        top: auto;
        width: 175px !important;
        height: 98px;
        display: inline-block;
    }

    /* CDN #cards-stream-page list titles (not generic #card-section 16px) */
    body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #cards-stream-page #card-section .hover-card-content h2,
    body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #cards-stream-page #card-section .hover-card-content h3 {
        position: static;
        width: auto;
        margin: 0 0 5px 0;
        font-size: 22px;
        line-height: 26px;
    }

    body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #card-section .hover-card-copy {
        position: static;
        width: auto;
        overflow: hidden;
    }

    body.au.pep-unified-chrome.cards-stream .pep-layout-desktop #card-section .hover-card-arrow {
        position: absolute;
        right: 0;
        top: 50%;
        vertical-align: baseline;
        display: block;
        margin: 0;
        margin-top: -12px;
    }
}

/* Home hero (mobile panel): desktop global.css loads at all widths; undo .home .container absolute + min-width (same as kr/css/kr-pep-merge.css). */
@media screen and (max-width: 564px) {
    body.home.pep-unified-chrome #content-container {
        width: 100% !important;
        max-width: 100%;
        display: block !important;
        height: auto !important;
    }
    body.home.pep-unified-chrome .pep-layout-mobile .container {
        position: relative !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    body.home.pep-unified-chrome {
        min-width: 0 !important;
    }
}

/* Home carousel caption (mobile panel): desktop global.css .slideTitle.top (top:50px, 30px font, !important) loads at all widths and the
   Media Engine theme adds a translucent white bar. Prod mobile: caption at the top of each slide, no background, slide's own light/dark colour. */
@media screen and (max-width: 564px) {
    body.home.pep-unified-chrome .pep-layout-mobile .me-theme-homepage .mediaEngineContainer .slideTitle.top {
        top: 15px !important;
        line-height: 30px !important;
        font-size: 15px !important;
        background: none !important;
        padding: 0;
        text-shadow: none;
    }
    body.home.pep-unified-chrome .pep-layout-mobile .me-theme-homepage .mediaEngineContainer .slide .slideTitle a {
        margin-left: 0;
    }
    body.home.pep-unified-chrome .pep-layout-mobile .me-theme-homepage .mediaEngineContainer .slideTitle a strong {
        font-size: 100%;
    }
}
