.pad-video-ad {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: "Poppins", sans-serif;
}

.pad-video-ad[hidden] { display: none; }

body.pad-video-ad-open { overflow: hidden; }

.pad-video-ad__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 15, 42, .82);
    backdrop-filter: blur(9px);
}

.pad-video-ad__panel {
    position: relative;
    width: min(94vw, 920px);
    max-height: 94vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 28px;
    background: linear-gradient(145deg, #1972f9 0%, #075ccc 48%, #0b2757 100%);
    box-shadow: 0 30px 90px rgba(0, 19, 64, .55);
    color: #fff;
}

.pad-video-ad__panel::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -150px;
    right: -90px;
    border-radius: 50%;
    background: rgba(114, 220, 255, .28);
    pointer-events: none;
}

.pad-video-ad__brand {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 76px 16px 22px;
}

.pad-video-ad__brand img {
    width: 92px;
    height: auto;
    object-fit: contain;
}

.pad-video-ad__brand strong,
.pad-video-ad__brand span { display: block; }

.pad-video-ad__brand strong {
    font-size: clamp(.92rem, 2vw, 1.15rem);
    line-height: 1.25;
}

.pad-video-ad__brand span {
    margin-top: 3px;
    color: #d9ecff;
    font-size: .75rem;
}

.pad-video-ad__close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.pad-video-ad__close:disabled,
.pad-video-ad__skip:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.pad-video-ad__media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    max-height: calc(94vh - 158px);
    background: #020b1e;
}

.pad-video-ad__media video,
.pad-video-ad__media iframe {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(94vh - 158px);
    object-fit: contain;
    background: #020b1e;
    border: 0;
}

.pad-video-ad__sound {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background: rgba(4, 20, 48, .78);
    color: #fff;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
}

.pad-video-ad__footer {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
}

.pad-video-ad__countdown {
    color: #d9ecff;
    font-size: .8rem;
}

.pad-video-ad__skip {
    flex: 0 0 auto;
    padding: 11px 20px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0b5fe8;
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 26, 82, .22);
}

@media (max-width: 600px) {
    .pad-video-ad { padding: 10px; }
    .pad-video-ad__panel { width: 100%; max-height: 96vh; border-radius: 22px; }
    .pad-video-ad__brand { min-height: 72px; padding: 12px 64px 12px 16px; gap: 11px; }
    .pad-video-ad__brand img { width: 72px; }
    .pad-video-ad__close { top: 14px; right: 14px; width: 40px; height: 40px; }
    .pad-video-ad__media,
    .pad-video-ad__media video,
    .pad-video-ad__media iframe {
        width: 100% !important;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: calc(96vh - 142px);
    }
    .pad-video-ad__footer { min-height: 70px; padding: 12px 14px; }
    .pad-video-ad__countdown { font-size: .7rem; }
    .pad-video-ad__skip { padding: 10px 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .pad-video-ad__backdrop { backdrop-filter: none; }
}
