.xproject-video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0px auto; /* Centrer les tuiles */
    gap: 10px;
    padding-top: 10px;
}

.xproject-video-tile {  
    flex-basis: 14%;
    flex-grow: 1;
    margin-bottom: 0px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre douce */
    transition: all 0.3s ease-in-out;
    height: 235px;  
    min-width: 150px;  
    max-width: 358px;
}

.xproject-video-tile:hover {
    transform: scale(1.03); /* Effet de zoom au survol */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Légère augmentation de l'ombre au survol */
}

.xproject-video-thumbnail {
    width: 100%;
    color: var(--main-orange-color);
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre complètement le conteneur */
    border-radius: 8px; /* Coins arrondis */
    filter:blur(0em);
    min-height: 100%;
}

.xproject-video-default-thumbnail {
    fill: var(--main-orange-color);
    position: absolute;
    width: 150px;
    margin-left: calc(50% - 75px);
    margin-top: 1em;
    opacity: 0.7;
}

.xproject-video-container.loading { /* image blur when popup present */
    filter:blur(0.5em);
    transition: all 0.3s ease-in-out;
}

.xproject-video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
    transition: all 0.3s ease-in-out;
}

.xproject-video-title {  
    font-size: 13px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff; /* Texte blanc */
}

.removbtn {  
    position: absolute;
  left: 5px;
  top: -70px;
  width: 25px;
  font-size: 1em !important;
  color: white !important;
  border-radius: 5px;
}

.xpr_video_list_filter select, .relation_ajax_trigger {
    cursor: pointer;
    color : #cacaca;
    border-width: 2px;
    appearance: auto;
    background: #0e0e0e !important;
    border-color: transparent;
}

.xpr_video_list_filter select:focus {
    border-color: var(--main-orange-color);
    border-width: 2px;
}

.xpr_video_list_filter.hided_filters{
    display: none;
}

.refresh_video_list {  
    transition: all 0.3s ease-in-out;
    padding: 7px 20px;
    cursor: pointer;
    border-radius: 4px;
    background-color: rgba(0,0,0,0.5);
    max-height: 40px;
    margin-bottom: 0;
}

.refresh_video_list .dashicons {
    transition: all 0.3s ease-in-out;
    vertical-align: middle;
    color: var(--main-orange-color);
}

.refresh_video_list:hover {
    background-color: var(--main-orange-color);
}

.refresh_video_list:hover .dashicons {
    color: white;
}

.xproject-video-tile:hover .xproject-video-info {
    background:linear-gradient(to bottom, rgba(19, 17, 17, 0.58), #000);
    transition: all 0.3s ease-in-out;
}

.xproject-video-metadata {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.xproject-video-metadata .quality {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
    padding: 2px 5px;
    bottom: 0;
    font-size: 0.7em;
    position: absolute;
    right: 0px;
}
.xproject-video-metadata .quality .dashicons {
    font-size: 10px;
    margin-top: 4px;
}

.xproject-video-badge {
    background-color: #3498db; /* Couleur de fond du badge */
    color: #fff; /* Texte blanc */
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
}

.xproject-video-stats {
    display: flex;
    flex-wrap: wrap;
}
.xproject-video-stats>span {
  font-size: 10px;
  margin-bottom: 2px;
  margin-right: 2px;
  color: var(--main-orange-color);
  background: rgba(0,0,0,0.5);
  padding: 0px 0px 0px 6px;
}

.xproject-video-stats .dashicons {
    font-size: 13px;
    vertical-align: bottom;
    padding-top: 4px;
    margin-left: 1px;
}

@media (max-width: 1200px) {
    .xproject-video-tile {
        flex-basis: 27%;
    }
}
@media (max-width: 600px) {
    .xproject-video-tile {
        flex-basis: 40%;
    }
}
