/* ==========================================
   Modal System
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 20, 30, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
}

.modal-content {
    width: min(100%, 520px);
    max-height: min(85vh, 760px);
    overflow: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    animation: modalIn 0.22s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: min(100%, 100%);
        border-radius: 22px;
        padding: 18px;
    }
}

@media (max-width: 560px) {
    .modal-content {
        padding: 16px;
    }
}

.modal-overlay--priority {
    z-index: 2005;
}

.modal-content--scrollable {
    max-height: 80vh;
}

.modal-icon--xl {
    font-size: 3rem;
}

.modal-icon--warning {
    color: #f97316;
}

.modal-title {
    font-size: 1.4rem;
}

.modal-title--warning {
    color: #f97316;
}

.btn--danger-solid {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.btn--warning-solid {
    background: #f97316;
    color: #ffffff;
    border-color: #f97316;
}









.video-modal__loading {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.video-modal__countdown {
    color: var(--primary);
    font-weight: 700;
}
