﻿/**
 * Videos Extensions + Modal
 */
/* ============================================
   VIDEOS EXTENSIONS
   ============================================ */

.fp-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fp-dark) 0%, #4a4a4a 100%);
    color: var(--fp-primary);
    font-size: 3rem;
}

.fp-video-duration {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: var(--fp-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Video Modal */
.fp-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.fp-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.fp-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
}

.fp-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: var(--fp-dark);
    border-radius: var(--fp-radius-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.fp-video-modal.active .fp-video-modal-content {
    transform: scale(1);
}

.fp-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.fp-video-modal-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.fp-video-modal-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

body.modal-open {
    overflow: hidden;
}
