/* WStream — Adblock detector modal */

.wstrm-adblock-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    place-items: center;
    padding: 1rem;
}

.wstrm-adblock-modal.is-open {
    display: grid;
}

.wstrm-adblock-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 6, 14, 0.72);
    backdrop-filter: blur(12px) brightness(0.45);
    -webkit-backdrop-filter: blur(12px) brightness(0.45);
}

.wstrm-adblock-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
    padding: 2rem 1.75rem 1.35rem;
    text-align: center;
    color: var(--text-color, #fff);
    background: var(--wrapper-color, #1f1d2b);
    border: 1px solid rgba(var(--primary-color-rgb, 221, 51, 51), 0.55);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(var(--primary-color-rgb, 221, 51, 51), 0.18),
        0 0 28px rgba(var(--primary-color-rgb, 221, 51, 51), 0.22),
        0 24px 56px rgba(0, 0, 0, 0.55);
    animation: wstrm-adblock-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wstrm-adblock-modal__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--primary-color, #dd3333);
    color: var(--primary-color, #dd3333);
    background: rgba(var(--primary-color-rgb, 221, 51, 51), 0.08);
    box-shadow: 0 0 18px rgba(var(--primary-color-rgb, 221, 51, 51), 0.25);
    animation: wstrm-adblock-pulse 2.6s ease-in-out infinite;
}

.wstrm-adblock-modal__icon i {
    font-size: 1.15rem;
    line-height: 1;
}

.wstrm-adblock-modal__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.2rem, 3.5vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-color, #fff);
}

.wstrm-adblock-modal__text {
    margin: 0 0 1.35rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

.wstrm-adblock-modal__text strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.wstrm-adblock-modal__btn {
    display: block;
    width: 100%;
    margin: 0 0 1.1rem;
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color, #dd3333);
    box-shadow: 0 10px 24px rgba(var(--primary-color-rgb, 221, 51, 51), 0.35);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.wstrm-adblock-modal__btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(var(--primary-color-rgb, 221, 51, 51), 0.42);
}

.wstrm-adblock-modal__btn:active {
    transform: translateY(0);
}

.wstrm-adblock-modal__note {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.38);
}

.wstrm-adblock-modal__langs {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
}

.wstrm-adblock-modal__langs button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.15s ease;
}

.wstrm-adblock-modal__langs button:hover,
.wstrm-adblock-modal__langs button.is-active {
    color: var(--primary-color, #dd3333);
}

body.wstrm-adblock-open {
    overflow: hidden;
}

body.wstrm-adblock-open > *:not(.wstrm-adblock-modal):not(script):not(style):not(link) {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

@keyframes wstrm-adblock-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wstrm-adblock-pulse {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 0 18px rgba(var(--primary-color-rgb, 221, 51, 51), 0.25);
    }
    50% {
        transform: translateY(-2px);
        box-shadow: 0 0 26px rgba(var(--primary-color-rgb, 221, 51, 51), 0.4);
    }
}

@media (max-width: 480px) {
    .wstrm-adblock-modal__dialog {
        padding: 1.65rem 1.25rem 1.2rem;
    }
}
