.ap-pdf-audio-ad,
.ap-pdf-audio-ad *,
.ap-pdf-audio-ad *::before,
.ap-pdf-audio-ad *::after {
    box-sizing: border-box;
}

.ap-pdf-audio-ad {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ap-pdf-audio-ad[hidden] {
    display: none !important;
}

.ap-pdf-audio-ad-source {
    display: none !important;
}

/* Large in-report banner */
.ap-pdf-audio-ad--large {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    margin: 18px 0;
    border-radius: 24px;
    padding: 26px;
    color: #ffffff;
    background:
        radial-gradient(circle at 76% 18%, rgba(39, 205, 255, 0.38), transparent 28%),
        radial-gradient(circle at 18% 95%, rgba(22, 128, 255, 0.56), transparent 32%),
        linear-gradient(135deg, #07307a 0%, #006fdc 48%, #003f9d 100%);
    box-shadow: 0 26px 60px rgba(7, 48, 122, 0.22);
    border: 1px solid rgba(139, 207, 255, 0.32);
}

.ap-pdf-audio-ad__shine {
    position: absolute;
    inset: -40% auto -40% -34%;
    width: 42%;
    transform: rotate(14deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    animation: apPdfAudioAdShine 7s ease-in-out infinite;
    z-index: -1;
}

.ap-pdf-audio-ad__orbit {
    position: absolute;
    border-radius: 999px;
    border: 2px dashed rgba(90, 224, 255, 0.24);
    z-index: -1;
    animation: apPdfAudioAdFloat 7s ease-in-out infinite;
}

.ap-pdf-audio-ad__orbit--one {
    width: 220px;
    height: 220px;
    right: -80px;
    top: -58px;
}

.ap-pdf-audio-ad__orbit--two {
    width: 260px;
    height: 260px;
    right: 138px;
    bottom: -150px;
    animation-delay: -2.5s;
}

.ap-pdf-audio-ad__top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ap-pdf-audio-ad__logo {
    display: block;
    width: 112px;
    height: auto;
}

.ap-pdf-audio-ad__pill,
.ap-pdf-audio-ad__small-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 900;
}

.ap-pdf-audio-ad__pill {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(2, 25, 72, 0.34);
    border: 1px solid rgba(186, 226, 255, 0.42);
}

.ap-pdf-audio-ad__pill i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #31e6f4;
    box-shadow: 0 0 18px rgba(49, 230, 244, 0.92);
    animation: apPdfAudioAdPulse 1.8s ease-in-out infinite;
}

.ap-pdf-audio-ad__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 24px;
    align-items: center;
}

.ap-pdf-audio-ad__copy {
    max-width: 500px;
}

.ap-pdf-audio-ad__kicker {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 900;
    color: rgba(218, 241, 255, 0.86);
}

.ap-pdf-audio-ad__copy h2 {
    margin: 0;
    max-width: 520px;
    color: #ffffff;
    font-size: clamp(30px, 4.1vw, 52px);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.ap-pdf-audio-ad__copy p:not(.ap-pdf-audio-ad__kicker) {
    margin: 18px 0 0;
    max-width: 440px;
    color: rgba(235, 247, 255, 0.88);
    font-size: 16px;
    line-height: 1.6;
}

.ap-pdf-audio-ad__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    margin-top: 22px;
    padding: 0 24px;
    border-radius: 999px;
    color: #071b3c;
    background: linear-gradient(180deg, #ffe071, #ffc33e);
    text-decoration: none;
    font-size: 15px;
    font-weight: 950;
    box-shadow: 0 14px 34px rgba(255, 195, 62, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.46);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ap-pdf-audio-ad__button:hover,
.ap-pdf-audio-ad__button:focus {
    transform: translateY(-2px);
    color: #071b3c;
    box-shadow: 0 18px 42px rgba(255, 195, 62, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.ap-pdf-audio-ad__visual {
    position: relative;
    min-height: 250px;
    animation: apPdfAudioAdFloat 6.5s ease-in-out infinite;
}

.ap-pdf-audio-ad__doc,
.ap-pdf-audio-ad__score,
.ap-pdf-audio-ad__player {
    position: absolute;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #edf7ff);
    box-shadow: 0 22px 46px rgba(3, 24, 65, 0.25);
}

.ap-pdf-audio-ad__doc {
    right: 62px;
    top: 18px;
    width: 166px;
    height: 150px;
    padding: 28px 24px;
}

.ap-pdf-audio-ad__doc span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 48px;
    border-radius: 12px;
    color: #ffffff;
    background: #ff3f70;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.ap-pdf-audio-ad__doc i {
    display: block;
    height: 10px;
    margin-top: 14px;
    border-radius: 999px;
    background: #c8d9ee;
}

.ap-pdf-audio-ad__doc i:nth-child(2) {
    width: 100%;
}

.ap-pdf-audio-ad__doc i:nth-child(3) {
    width: 82%;
}

.ap-pdf-audio-ad__doc i:nth-child(4) {
    width: 62%;
}

.ap-pdf-audio-ad__score {
    right: 0;
    top: 88px;
    width: 122px;
    height: 136px;
    padding: 22px 18px;
}

.ap-pdf-audio-ad__score small {
    display: block;
    color: #5e7194;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    font-weight: 950;
}

.ap-pdf-audio-ad__score strong {
    display: block;
    margin-top: 6px;
    color: #1179e8;
    font-size: 42px;
    line-height: 1;
    font-weight: 950;
}

.ap-pdf-audio-ad__score em {
    display: inline-flex;
    margin-top: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #128a96;
    background: #d7fbf6;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.ap-pdf-audio-ad__player {
    right: 28px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 236px;
    min-height: 70px;
    padding: 12px 18px;
    border-radius: 999px;
}

.ap-pdf-audio-ad__player b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(180deg, #168cff, #005de8);
    box-shadow: 0 14px 26px rgba(0, 93, 232, 0.28);
    font-size: 16px;
}

.ap-pdf-audio-ad__player span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    flex: 1;
}

.ap-pdf-audio-ad__player span i {
    display: block;
    width: 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #188cff, #35e5f0);
    animation: apPdfAudioAdBars 1.2s ease-in-out infinite;
}

.ap-pdf-audio-ad__player span i:nth-child(1) { height: 13px; animation-delay: 0s; }
.ap-pdf-audio-ad__player span i:nth-child(2) { height: 24px; animation-delay: 0.12s; }
.ap-pdf-audio-ad__player span i:nth-child(3) { height: 17px; animation-delay: 0.24s; }
.ap-pdf-audio-ad__player span i:nth-child(4) { height: 32px; animation-delay: 0.36s; }
.ap-pdf-audio-ad__player span i:nth-child(5) { height: 22px; animation-delay: 0.48s; }

.ap-pdf-audio-ad__player em {
    color: #4f6288;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
}

/* Bottom report bar */
.ap-pdf-audio-ad--bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    width: 100%;
    margin: 20px 0 0;
    padding: 26px 28px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 50%, rgba(18, 113, 255, 0.14), transparent 34%),
        linear-gradient(135deg, #f8fcff 0%, #ecf6ff 100%);
    border: 1px solid #b9d8ff;
    box-shadow: 0 18px 48px rgba(4, 45, 118, 0.08);
}

.ap-pdf-audio-ad__small-pill {
    margin: 0 0 12px;
    padding: 7px 11px;
    color: #075fe6;
    background: rgba(7, 95, 230, 0.07);
    border: 1px solid rgba(7, 95, 230, 0.18);
}

.ap-pdf-audio-ad--bottom h2 {
    margin: 0;
    color: #071b3c;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.ap-pdf-audio-ad--bottom p:not(.ap-pdf-audio-ad__small-pill) {
    margin: 10px 0 0;
    max-width: 720px;
    color: #557095;
    font-size: 15px;
    line-height: 1.55;
}

.ap-pdf-audio-ad__bottom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(180deg, #147cff, #005bd8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 14px 32px rgba(0, 91, 216, 0.26);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ap-pdf-audio-ad__bottom-button:hover,
.ap-pdf-audio-ad__bottom-button:focus {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 91, 216, 0.36);
}

@keyframes apPdfAudioAdBars {
    0%, 100% { transform: scaleY(0.62); opacity: 0.72; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes apPdfAudioAdPulse {
    0%, 100% { transform: scale(1); opacity: 0.82; }
    50% { transform: scale(1.28); opacity: 1; }
}

@keyframes apPdfAudioAdFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes apPdfAudioAdShine {
    0%, 68% { transform: translateX(0) rotate(14deg); opacity: 0; }
    78% { opacity: 1; }
    100% { transform: translateX(360%) rotate(14deg); opacity: 0; }
}

@media (max-width: 900px) {
    .ap-pdf-audio-ad--large {
        padding: 22px;
        border-radius: 20px;
    }

    .ap-pdf-audio-ad__top {
        margin-bottom: 20px;
    }

    .ap-pdf-audio-ad__grid,
    .ap-pdf-audio-ad--bottom {
        grid-template-columns: 1fr;
    }

    .ap-pdf-audio-ad__visual {
        min-height: 230px;
    }

    .ap-pdf-audio-ad__bottom-button,
    .ap-pdf-audio-ad__button {
        width: fit-content;
    }
}

@media (max-width: 620px) {
    .ap-pdf-audio-ad__logo {
        width: 98px;
    }

    .ap-pdf-audio-ad__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .ap-pdf-audio-ad__copy h2 {
        font-size: 34px;
    }

    .ap-pdf-audio-ad__visual {
        min-height: 215px;
    }

    .ap-pdf-audio-ad__doc {
        right: 86px;
        width: 136px;
    }

    .ap-pdf-audio-ad__score {
        right: 0;
    }

    .ap-pdf-audio-ad__player {
        right: 0;
        width: min(100%, 236px);
    }

    .ap-pdf-audio-ad--bottom {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-pdf-audio-ad *,
    .ap-pdf-audio-ad *::before,
    .ap-pdf-audio-ad *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* v0.2.1 blue animated bottom report ad */
.ap-pdf-audio-ad--bottom {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    color: #ffffff !important;
    background:
        radial-gradient(circle at 82% 24%, rgba(39, 205, 255, 0.32), transparent 30%),
        radial-gradient(circle at 16% 100%, rgba(22, 128, 255, 0.54), transparent 34%),
        linear-gradient(135deg, #07307a 0%, #0077df 52%, #003f9d 100%) !important;
    border: 1px solid rgba(139, 207, 255, 0.34) !important;
    box-shadow: 0 24px 58px rgba(7, 48, 122, 0.2) !important;
}

.ap-pdf-audio-ad--bottom::before {
    content: "";
    position: absolute;
    inset: -45% auto -45% -32%;
    width: 38%;
    transform: rotate(14deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
    animation: apPdfAudioAdShine 7s ease-in-out infinite;
    z-index: -1;
}

.ap-pdf-audio-ad--bottom::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    border: 2px dashed rgba(90, 224, 255, 0.22);
    animation: apPdfAudioAdFloat 7s ease-in-out infinite;
    z-index: -1;
}

.ap-pdf-audio-ad--bottom .ap-pdf-audio-ad__small-pill {
    color: #ffffff !important;
    background: rgba(2, 25, 72, 0.34) !important;
    border: 1px solid rgba(186, 226, 255, 0.42) !important;
}

.ap-pdf-audio-ad--bottom h2 {
    color: #ffffff !important;
}

.ap-pdf-audio-ad--bottom p:not(.ap-pdf-audio-ad__small-pill) {
    color: rgba(235, 247, 255, 0.88) !important;
}

.ap-pdf-audio-ad--bottom .ap-pdf-audio-ad__bottom-button {
    color: #071b3c !important;
    background: linear-gradient(180deg, #ffe071, #ffc33e) !important;
    box-shadow: 0 14px 34px rgba(255, 195, 62, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.46) !important;
}

.ap-pdf-audio-ad--bottom .ap-pdf-audio-ad__bottom-button:hover,
.ap-pdf-audio-ad--bottom .ap-pdf-audio-ad__bottom-button:focus {
    color: #071b3c !important;
    box-shadow: 0 18px 42px rgba(255, 195, 62, 0.48), inset 0 0 0 1px rgba(255, 255, 255, 0.58) !important;
}

@media (max-width: 900px) {
    .ap-pdf-audio-ad--bottom {
        grid-template-columns: 1fr !important;
    }
}
