.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.vignette-overlay.active {
    opacity: 1;
}

.vignette-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vignette-overlay.active .vignette-content {
    transform: scale(1);
}

.vignette-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.vignette-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vignette-close:hover {
    opacity: 0.7;
}

.vignette-ad {
    padding: 30px 20px;
    text-align: center;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.vignette-ad-link {
    display: block;
    text-decoration: none;
    margin-bottom: 20px;
    cursor: pointer;
}

.vignette-ad-link img {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    transition: opacity 0.2s ease;
    object-fit: contain;
}

.vignette-ad-link:hover img {
    opacity: 0.9;
}

.vignette-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    flex-shrink: 0;
}

.vignette-cta {
    flex: 1;
    padding: 14px 20px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.vignette-cta:hover {
    background: #0052a3;
}

.vignette-continue {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vignette-continue:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

@media (max-width: 640px) {
    .vignette-overlay {
        padding: 10px;
    }
    
    .vignette-content {
        max-height: 95vh;
    }
    
    .vignette-title-bar {
        padding: 10px 15px;
        font-size: 11px;
    }
    
    .vignette-ad {
        padding: 20px 15px;
    }
    
    .vignette-ad-link img {
        max-height: 50vh;
    }
    
    .vignette-buttons {
        flex-direction: column;
        padding: 0 15px 15px;
    }
    
    .vignette-cta,
    .vignette-continue {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-height: 600px) {
    .vignette-content {
        max-height: 95vh;
    }
    
    .vignette-ad {
        padding: 15px;
    }
    
    .vignette-ad-link img {
        max-height: 40vh;
    }
}