.sp-reader-promo {
    max-width: 780px;
    margin: 0 auto;
}

.wuwu-ad-slot.wuwu-reader-floating {
    display: none !important;
}

@media (min-width: 768px) {
    .wuwu-ad-slot.wuwu-reader-floating {
        /* Leave room for the upper rail and the corner's separate close button. */
        height: min(250px, calc(50dvh - 80px));
        width: 300px;
        right: 18px;
    }

    .wuwu-ad-slot[data-ad-slot="pc_reader_corner_popup"].is-ready:not([hidden]) {
        animation: wuwu-reader-corner-enter .9s cubic-bezier(.16, 1, .3, 1) both;
        bottom: 18px;
        display: block !important;
        z-index: 36;
    }

    .wuwu-ad-slot[data-ad-slot="pc_reader_corner_popup"] .wuwu-ad-frame {
        box-shadow: 0 8px 32px rgba(0, 0, 0, .55);
        overflow: visible;
    }

    .wuwu-ad-slot[data-ad-slot="pc_reader_corner_popup"] .wuwu-ad-content {
        border-radius: 8px;
        overflow: hidden;
    }

    .wuwu-ad-slot[data-ad-slot="pc_reader_corner_popup"] .wuwu-ad-close {
        border-radius: 4px;
        font-size: 30px;
        height: 34px;
        right: 0;
        top: -38px;
        width: 34px;
    }
}

@media (min-width: 1140px) {
    body:has(.wuwu-reader-floating.is-ready:not([hidden])) .sp-read-wrap,
    body:has(.wuwu-reader-floating.is-ready:not([hidden])) .sp-reader-promo {
        margin-left: calc((100% - 1104px) / 2);
        margin-right: auto;
    }

    .wuwu-ad-slot.wuwu-reader-floating {
        right: max(18px, calc((100% - 1104px) / 2));
    }

    .wuwu-ad-slot[data-ad-slot="pc_reader_right_rail"].is-ready:not([hidden]) {
        bottom: auto;
        display: block !important;
        top: 80px;
    }
}

@keyframes wuwu-reader-corner-enter {
    0% { opacity: 0; transform: translateX(calc(-100vw - 100%)); }
    80% { opacity: 1; transform: translateX(8px); }
    100% { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .wuwu-ad-slot[data-ad-slot="pc_reader_corner_popup"].is-ready:not([hidden]) {
        animation: none;
    }
}

.wuwu-ad-modal-open .wuwu-ad-slot.wuwu-reader-floating.is-ready:not([hidden]) {
    display: none !important;
}
