/* Affichage des miniatures vidéos */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 10px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.video-card {
    position: relative;
    width: 100%;
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s;
}
.video-card:hover {
    transform: scale(1.05);
}
.premium-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: gold;
    color: #111;
    font-weight: bold;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 10;
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 54%; /* ratio 16:9 */
    /*padding-top: 56.25%; /* ratio 16:9 */
    overflow: hidden;
    border-radius: 10px;
    background-color: #000;
}
.video-wrapper img.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    transition: opacity 0.3s ease;
    display: block;
}
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 4;
    display: block;
    border: none;
    background: #000;
}
.hidden {
    opacity: 0;
    pointer-events: none;
}
.video-title {
    padding: 0px;
    font-size: 16px;
    background: #111;
    user-select: text;
}
.description{
    margin-top:-10px;
    font-size: 0.7rem
}
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0,0,0,0.6);*/
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 20;
    border-radius: 10px;
}


.video-meta {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #bbb;
    padding: 4px 8px 10px 8px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
}
.video-meta i {
    font-size: 14px;
    margin-right: 4px;
}

/* Fin affichage des miniatures vidéos */


/* Affichage popup vidéos */

/* Modal */
#videoModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
#videoModal .modal-inner {
    position: relative;
    max-width: 95vw;
}
#videoModal video {
    width: 90vw;
    height: auto;
    max-height: 90vh;
    border-radius: 10px;
    background: #000;
}
#closeModal {
    position: absolute;
    top: -15px;
    right: -15px;
    background: red;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-weight: bold;
    cursor: pointer;
}
/* Responsive */
@media (max-width: 1024px) {
.videos-grid {
    grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
.videos-grid {
    grid-template-columns: 1fr;
    }
}

/* Fin affichage popup vidéos */

/* Bouton like (coeur) */

.like-btn {
    position:absolute;
    bottom:8px;
    right:8px;
    background:rgba(0,0,0,0.6);
    color:#fff;
    border:none;
    border-radius:20px;
    padding:6px 10px;
    cursor:pointer;
    z-index:15;
    font-size:18px;
    line-height:1;
    display:flex;
    align-items:center;
}
.like-btn span.count { 
    margin-left:8px; 
    font-size:14px; 
    color:#fff; 
}
.like-btn.liked { 
    color:#ff5b5b; 
}
.like-btn:not(.liked) { 
    color:#ffffff; 
}

/* Fin Bouton like (coeur) */

/* Affichage durée de la vidéo */

.video-duration {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 15;
    text-shadow: 0 0 2px rgba(0,0,0,0.7);
}

/* Fin affichage durée de la vidéo  */