/* =========================================================
   KoraStats Premium Video Modal
========================================================= */

.ks-video-modal { z-index: 99999999; background: rgba(5, 10, 20, 0.72); backdrop-filter: blur(8px); }

.ks-video-modal .modal-dialog { width: 90vw; max-width: 90vw; height: 88vh; max-height: 88vh; margin: 6vh auto; }

.ks-video-modal__dialog { width: 90vw; max-width: 90vw; height: 88vh; max-height: 88vh; min-height: 0; }

.ks-video-modal__content { height: 88vh; min-height: 0; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px; overflow: hidden; background: radial-gradient(circle at top left, rgba(42, 123, 228, 0.28), transparent 32%), linear-gradient(145deg, #07101f 0%, #101827 48%, #050812 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04); }

.ks-video-modal__header { flex: 0 0 auto; min-height: 82px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); border-bottom: 1px solid rgba(255, 255, 255, 0.10); }

.ks-video-modal__title-block { min-width: 0; padding-right: 16px; }

.ks-video-modal__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 5px; color: #f7c948; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.ks-video-modal__title { margin: 0; color: #ffffff; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ks-video-modal__subtitle { margin-top: 4px; max-width: 900px; color: rgba(255, 255, 255, 0.68); font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ks-video-modal__close { width: 42px; height: 42px; min-width: 42px; border: 0; border-radius: 50%; color: #ffffff; background: rgba(255, 255, 255, 0.10); font-size: 28px; line-height: 38px; cursor: pointer; transition: all 0.18s ease; }

.ks-video-modal__close:hover { background: rgba(246, 78, 96, 0.95); transform: scale(1.04); }

.ks-video-modal__body { flex: 1 1 auto; min-height: 0; height: auto; padding: 16px; display: flex; align-items: stretch; }

.ks-video-modal__body > * { width: 100%; height: 100%; min-height: 0; }

.ks-video-modal .c-video, .ks-video-modal .ks-video-player, .ks-video-modal .video-js, .ks-video-modal video, .ks-video-modal .video, .ks-video-modal iframe { width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: 100% !important; border-radius: 18px; overflow: hidden; background: #020617; object-fit: contain; }

@media (min-width: 1400px) {
    .ks-video-modal .modal-dialog { width: 88vw; max-width: 1480px; }
    .ks-video-modal__dialog { width: 88vw; max-width: 1480px; }
}

@media (max-width: 991.98px) {
    .ks-video-modal .modal-dialog { width: 96vw; max-width: 96vw; height: 90vh; max-height: 90vh; margin: 5vh auto; }
    .ks-video-modal__dialog { width: 96vw; max-width: 96vw; height: 90vh; max-height: 90vh; min-height: 0; }
    .ks-video-modal__content { height: 90vh; min-height: 0; border-radius: 16px; }
    .ks-video-modal__header { min-height: 74px; padding: 14px 16px; }
    .ks-video-modal__title { font-size: 18px; }
    .ks-video-modal__subtitle { max-width: 70vw; }
    .ks-video-modal__body { padding: 10px; }
    .ks-video-modal .c-video, .ks-video-modal .ks-video-player, .ks-video-modal .video-js, .ks-video-modal video, .ks-video-modal .video, .ks-video-modal iframe { border-radius: 12px; }
}

@media (max-width: 575.98px) {
    .ks-video-modal .modal-dialog { width: 98vw; max-width: 98vw; height: 94vh; max-height: 94vh; margin: 3vh auto; }
    .ks-video-modal__dialog { width: 98vw; max-width: 98vw; height: 94vh; max-height: 94vh; }
    .ks-video-modal__content { height: 94vh; border-radius: 12px; }
    .ks-video-modal__header { min-height: 66px; padding: 12px; }
    .ks-video-modal__eyebrow { font-size: 10px; margin-bottom: 3px; }
    .ks-video-modal__title { font-size: 16px; }
    .ks-video-modal__subtitle { font-size: 12px; max-width: 68vw; }
    .ks-video-modal__close { width: 36px; height: 36px; min-width: 36px; font-size: 24px; line-height: 32px; }
    .ks-video-modal__body { padding: 8px; }
}