/* 동영상 전체화면 모달 스타일 */

.video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.video-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    max-height: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
}

.video-modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-modal-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.video-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.video-control-btn svg {
    width: 16px;
    height: 16px;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        height: 70%;
        border-radius: 8px;
    }

    .video-modal-header {
        padding: 15px;
    }

    .video-modal-title {
        font-size: 16px;
    }

    .video-modal-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .video-modal-controls {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .video-control-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        width: 100%;
        height: 60%;
        border-radius: 0;
    }

    .video-modal-header {
        padding: 12px;
    }

    .video-modal-title {
        font-size: 14px;
    }

    .video-control-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* 전체화면 모드 */
.video-modal.fullscreen .video-modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
}

.video-modal.fullscreen .video-modal-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.video-modal.fullscreen .video-modal-controls {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* 로딩 상태 */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}