/* Affiliate Tools - Popup + Video Blur CSS */
.aff-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
}
.aff-popup-overlay.active {
    display: flex;
}
.aff-popup-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.aff-popup-box img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    display: block;
}
.aff-popup-close {
    position: absolute;
    top: -12px; right: -12px;
    width: 36px; height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
    border: none;
    line-height: 1;
}
.aff-popup-close:hover {
    background: #ff4444;
    color: #fff;
}
.aff-popup-countdown {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

/* Video Blur Overlay */
.aff-video-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}
.aff-video-wrap video {
    width: 100%;
    height: auto;
    display: block;
}
.aff-video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.aff-video-overlay.hidden {
    display: none;
}
.aff-video-overlay .aff-vb-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: grayscale(1) brightness(0.7);
}
.aff-video-overlay .aff-vb-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.aff-video-overlay .aff-vb-subtitle {
    color: #ccc;
    font-size: 15px;
    text-align: center;
    margin-bottom: 20px;
}
.aff-video-overlay .aff-vb-btn {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.aff-video-overlay .aff-vb-btn:hover {
    background: #f6121d;
}
.aff-video-blur-active video {
    filter: blur(15px) brightness(0.3);
    pointer-events: none;
}

/* Fix banner header trên mobile */
@media (max-width: 768px) {
    .site-header .inside-header {
        flex-direction: column !important;
        align-items: center !important;
        padding: 10px 15px !important;
    }
    .site-header .inside-header img,
    .site-header .header-widget img,
    .site-header .wp-block-image img {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    .site-header .header-widget {
        width: 100% !important;
        overflow: hidden !important;
    }
    .site-header .wp-block-image,
    .site-header figure {
        margin: 0 !important;
        width: 100% !important;
    }
    .site-branding {
        text-align: center !important;
        margin-bottom: 10px !important;
    }
}
