/* Frontend Styles for OVH Video Center */

.ovc-video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ovc-video-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s;
}

.ovc-video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ovc-video-thumbnail {
    position: relative;
    cursor: pointer;
}

.ovc-video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.ovc-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.ovc-video-title {
    padding: 10px;
    font-weight: bold;
    text-align: center;
}

.ovc-single-video {
    margin: 20px 0;
}

.ovc-single-video iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Size classes */
.ovc-size-small .ovc-single-video iframe {
    height: 250px;
}

.ovc-size-medium .ovc-single-video iframe {
    height: 450px;
}

.ovc-size-large .ovc-single-video iframe {
    height: 600px;
}

.ovc-size-small .ovc-video-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.ovc-size-large .ovc-video-list {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

/* Modal Styles */
#ovc-video-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.ovc-modal-content {
    position: relative;
    background-color: #000;
    margin: 5% auto;
    padding: 0;
    border: none;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.ovc-modal-content iframe {
    width: 100%;
    height: 450px;
}

.ovc-close {
    color: #fff;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: -40px;
    top: -40px;
    cursor: pointer;
    z-index: 100000;
}

.ovc-close:hover,
.ovc-close:focus {
    color: #ccc;
}

@media (max-width: 768px) {
    .ovc-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .ovc-modal-content iframe {
        height: 250px;
    }
    
    .ovc-close {
        right: 10px;
        top: -40px;
    }
}