/* Galería de Videos Widget - Estilos */
.oraleandreu-video-widget {
    width: 100%;
    margin: 20px 0;
}

/* Filter Tabs */
.video-filter-tabs {
    text-align: center;
    margin-bottom: 30px;
    padding: 15px;
    background: #16213e;
    border-radius: 10px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e94560;
    color: #fff;
    padding: 10px 25px;
    margin: 5px;
    cursor: pointer;
    font-size: 0.95em;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    background: #e94560;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 69, 96, 0.4);
}

.filter-btn.active {
    background: #e94560;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.6);
}

/* Video Grid */
.video-grid {
    display: grid;
    gap: 25px;
    margin-top: 20px;
}

/* Columnas dinámicas según configuración */
.oraleandreu-video-widget[data-columns="2"] .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.oraleandreu-video-widget[data-columns="3"] .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.oraleandreu-video-widget[data-columns="4"] .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.video-card {
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-10px);
    border-color: #e94560;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.video-card.hidden {
    display: none;
}

/* Thumbnail */
.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.1);
}

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(233, 69, 96, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-card:hover .play-button {
    background: #e94560;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

/* Video Info */
.video-info {
    padding: 20px;
}

.video-category {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8em;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.video-title {
    font-size: 1.1em;
    margin: 10px 0;
    color: #fff;
    line-height: 1.3;
}

.video-description {
    color: #aaa;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 10px 0;
}

.video-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    color: #666;
    font-size: 0.85em;
}

/* Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    z-index: 1000000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: #e94560;
    transform: rotate(90deg);
}

.modal-video {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85em;
        margin: 3px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button::after {
        border-left: 15px solid white;
        border-top: 9px solid transparent;
        border-bottom: 9px solid transparent;
    }
    
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .video-filter-tabs {
        padding: 10px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* Platform Badge */
.platform-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.7em;
    font-weight: 600;
    z-index: 3;
}

.platform-youtube { background: #ff0000; }
.platform-tiktok { background: #000000; }
.platform-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-vimeo { background: #1ab7ea; }

/* Modal Video Container */
.modal-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

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

/* Widget Sidebar - Ajustes para cuando está en sidebar */
.widget .oraleandreu-video-widget .video-grid {
    grid-template-columns: 1fr !important;
}

.widget .video-filter-tabs {
    padding: 10px;
}

.widget .filter-btn {
    padding: 8px 15px;
    font-size: 0.85em;
    display: block;
    width: 100%;
    margin: 5px 0;
}