.fn-ad-slot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin: 1rem 0;
    max-width: 100%;
    overflow: hidden;
}

.fn-ad-slot--flush { margin: 0; }

.fn-ad-slot--stack {
    flex-direction: column;
    align-items: center;
}

.fn-ad {
    --fn-ad-w: 728px;
    --fn-ad-h: 90px;
    width: min(100%, var(--fn-ad-w));
    max-width: 100%;
}

.fn-ad--responsive {
    --fn-ad-w: 100%;
    --fn-ad-h: 120px;
    width: 100%;
}

.fn-ad__frame {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: var(--fn-ad-h);
    max-height: var(--fn-ad-h);
    overflow: hidden;
    background: #111318;
    border: 1px solid rgba(200, 16, 46, .35);
}

.fn-ad__frame a,
.fn-ad__frame img,
.fn-ad__frame video,
.fn-ad__frame iframe {
    display: block;
    width: 100%;
    height: var(--fn-ad-h);
    max-height: var(--fn-ad-h);
    object-fit: contain;
    border: 0;
}

.fn-ad__demo,
.fn-ad__ph {
    display: grid;
    place-content: center;
    gap: .25rem;
    width: 100%;
    height: 100%;
    padding: .7rem;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(200, 16, 46, .28), transparent 46%),
        repeating-linear-gradient(-45deg, #16181e, #16181e 8px, #12141a 8px, #12141a 16px);
}

.fn-ad__kicker,
.fn-ad__ph em {
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #C8102E;
}

.fn-ad__demo strong,
.fn-ad__ph strong {
    font-size: clamp(12px, 2.2vw, 18px);
}

.fn-ad__demo em,
.fn-ad__ph span {
    font-style: normal;
    font-size: 11px;
    color: rgba(255,255,255,.55);
}

.fn-ad-rail {
    display: none !important;
}

.fn-ad-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: center;
    max-height: 100px;
    overflow: hidden;
    padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom));
    background: rgba(11, 11, 12, .92);
    backdrop-filter: blur(10px);
}

.fn-ad-mobile .fn-ad-slot { margin: 0; }
.fn-ad-mobile .fn-ad { --fn-ad-h: 50px; }

.fn-ad-popup {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .72);
    padding: 1rem;
}

.fn-ad-popup__box {
    position: relative;
    max-width: min(100%, 360px);
    background: #0b0b0c;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.fn-ad-popup__close {
    position: absolute;
    top: .35rem;
    right: .5rem;
    z-index: 2;
    color: #fff;
    font-size: 18px;
    line-height: 1;
}

@media (min-width: 1760px) {
    .fn-ad-rail {
        display: block !important;
        position: fixed;
        top: 8.5rem;
        right: 12px;
        z-index: 15;
        width: 160px;
        max-height: 600px;
        overflow: hidden;
        pointer-events: auto;
    }

    .fn-ad-rail .fn-ad-slot {
        margin: 0;
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .fn-ad-mobile { display: none; }
}

@media print {
    .fn-ad-slot,
    .fn-ad-rail,
    .fn-ad-mobile,
    .fn-ad-popup { display: none !important; }
}
