/* ============================================
   📺 AD PLAYER MODAL STYLES
   ============================================ */

.ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.ad-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ad-modal-content {
    position: relative;
    z-index: 1;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 20px;
    padding: 25px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

.ad-close-btn {
    background: rgba(255, 107, 107, 0.2);
    border: none;
    color: #ff6b6b;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ad-close-btn:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: rotate(90deg);
}

#ad-player-container {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    margin-bottom: 15px;
}

.ad-info {
    text-align: center;
    color: var(--text);
}

#ad-status {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

#ad-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(255, 107, 107, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    margin: 0 auto;
    width: fit-content;
}

#ad-timer i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Video.js Customization */
.video-js {
    font-family: 'Cairo', sans-serif;
}

.video-js .vjs-big-play-button {
    background: var(--primary);
    border-radius: 50%;
    border: none;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 2rem;
}

.video-js .vjs-big-play-button:hover {
    background: #e74c3c;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ad-modal-content {
        width: 95%;
        padding: 20px;
    }

    .ad-header h3 {
        font-size: 1rem;
    }

    #ad-player-container video {
        height: 250px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}