.video-player--gateway {
    position: relative;
}

.video-gateway-unlock {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.72);
    pointer-events: auto;
}

/* Trial ended — transparent mask, centered copy (no card popup) */
.video-gateway-unlock--trial-end {
    background: rgba(0, 0, 0, 0.52);
}

.video-gateway-unlock__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(100%, 420px);
    padding: 0 12px;
    text-align: center;
    color: #fff;
}

.video-gateway-unlock--trial-end .video-gateway-unlock__hint {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.video-gateway-unlock--trial-end .video-gateway-unlock__btn {
    width: auto;
    min-width: 132px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.video-gateway-unlock[hidden] {
    display: none !important;
}

.video-gateway-unlock__inner {
    width: min(100%, 380px);
    padding: 20px 22px;
    text-align: center;
    background: rgba(15, 15, 28, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.video-gateway-unlock__hint {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.video-gateway-unlock__price {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.88;
}

.video-gateway-unlock__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.video-gateway-unlock__btn {
    min-width: 140px;
}

.video-player--gateway.is-preview-ended #mainVideo,
.video-player--gateway.is-preview-ended .fluid_video_wrapper {
    filter: brightness(0.55);
}

.video-player--gateway.is-preview-ended [class*="fluid_control"] {
    visibility: hidden !important;
    pointer-events: none !important;
}

.video-player--locked-fullscreen {
    width: 100%;
    height: 100%;
}

.video-player--locked .video-gateway-unlock {
    position: absolute;
    inset: 0;
}

.gallery-load-error {
    margin: 16px 0;
}

@media (max-width: 640px) {
    .video-gateway-unlock {
        padding: 12px;
    }

    .video-gateway-unlock__inner {
        padding: 18px 16px;
    }

    .video-gateway-unlock__hint {
        font-size: 14px;
    }

    .video-gateway-unlock__inner .video-gateway-unlock__btn {
        width: 100%;
    }

    .video-gateway-unlock--trial-end .video-gateway-unlock__hint {
        font-size: 14px;
    }
}
