/**
 * AnimeHub VAST Video Ad Engine Styles
 * Sleek glassmorphism overlay for HTML5 players
 */

.ah-vast-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #000 !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    user-select: none !important;
    font-family: inherit;
}

.ah-vast-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background: #000;
}

/* Верхняя плашка: бейдж рекламы и управление звуком */
.ah-vast-topbar {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 85;
    pointer-events: none;
}

.ah-vast-badge {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(18, 19, 22, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.ah-vast-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #ff2a5f;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff2a5f;
}

.ah-vast-mute-btn {
    pointer-events: auto;
    cursor: pointer;
    background: rgba(18, 19, 22, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 14px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.ah-vast-mute-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.ah-vast-mute-btn.needs-unmute {
    background: rgba(255, 42, 95, 0.9);
    border-color: #ff2a5f;
    color: #fff;
    animation: ahVastPulse 1.8s infinite;
}

@keyframes ahVastPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 42, 95, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 16px rgba(255, 42, 95, 0.8); }
}

/* Нижняя панель: Переход на сайт и пропуск рекламы */
.ah-vast-bottombar {
    position: absolute;
    bottom: 18px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 85;
    pointer-events: none;
    gap: 12px;
}

.ah-vast-cta-btn {
    pointer-events: auto;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 42, 95, 0.9), rgba(180, 20, 70, 0.9));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 4px 16px rgba(255, 42, 95, 0.35);
    text-decoration: none;
}

.ah-vast-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 42, 95, 0.55);
}

.ah-vast-skip-wrap {
    pointer-events: auto;
    display: flex;
    align-items: center;
}

.ah-vast-skip-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 19, 22, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.ah-vast-skip-btn {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.9), rgba(0, 180, 160, 0.9));
    color: #0b0c10;
    border: 0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 245, 212, 0.4);
}

.ah-vast-skip-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 245, 212, 0.6);
    filter: brightness(1.08);
}

/* Мобильная адаптация */
@media (max-width: 640px) {
    .ah-vast-topbar {
        top: 10px;
        left: 10px;
        right: 10px;
    }
    .ah-vast-bottombar {
        bottom: 12px;
        left: 10px;
        right: 10px;
        gap: 8px;
    }
    .ah-vast-badge,
    .ah-vast-mute-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .ah-vast-cta-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .ah-vast-skip-box,
    .ah-vast-skip-btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Блокирующий экран VPN / AdBlock */
.ah-vast-vpn-block {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 11, 15, 0.94) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    user-select: none !important;
    font-family: inherit;
    animation: ahVpnFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ahVpnFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.ah-vast-vpn-card {
    max-width: 440px;
    width: 100%;
    background: rgba(22, 24, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ah-vast-vpn-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(255, 45, 85, 0.1));
    border: 1px solid rgba(255, 59, 48, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3b30;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(255, 59, 48, 0.25);
}

.ah-vast-vpn-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.ah-vast-vpn-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 24px;
    max-width: 380px;
}

.ah-vast-vpn-retry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff3b30 0%, #ff2d55 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.35);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, filter 0.2s;
}

.ah-vast-vpn-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(255, 59, 48, 0.5);
    filter: brightness(1.08);
}

.ah-vast-vpn-retry-btn:active {
    transform: translateY(0);
}

.ah-vast-vpn-retry-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none !important;
}

@keyframes ahVastSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .ah-vast-vpn-card {
        padding: 24px 20px;
    }
    .ah-vast-vpn-title {
        font-size: 18px;
    }
    .ah-vast-vpn-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .ah-vast-vpn-badge {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }
}


