body {
    font-family: Arial, sans-serif;
    background: #00050d;
    margin: 0;
    padding: 0;
    display: flex;

    flex-direction: column;
}

.video-container:hover {
    outline: 3px solid rgb(255, 255, 255); /* Añade un borde amarillo */
    transform: scale(1.05); /* Efecto de escala al pasar el mouse */
}

/* Para controlar la salida rápida */
.video-container:not(:hover) {
    transition: transform 0.02s ease-out; /* Transición rápida al salir */
}

.video-container {
    outline: none; /* Por defecto, sin borde */
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.video-container {
    background-color: #000;
    margin: 12px;
    width: calc(24% - 20px);
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    transform: scale(1); /* Aseguramos que por defecto no tenga transformación */
    transition: transform 0.2s ease-in; /* Transición lenta por defecto al entrar */
}

.search-container {
    text-align: center;
    margin: 20px 0;
}

.search-wrapper {
    position: relative;
    display: inline-block;
}

#search-input {
    padding: 10px;
    border: 1px solid #ccc;
    padding-right: 30px; /* Espacio para la 'X' */
}

#clear-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 12px;
    color: #fff; /* Color blanco para el icono */
    background-color: #000; /* Fondo negro */
    border-radius: 50%; /* Hace que la 'X' sea circular */
    width: 20px; /* Tamaño del botón */
    height: 20px; /* Tamaño del botón */
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#clear-button.visible {
    display: inline-flex; /* Usamos flexbox para centrar la 'X' */
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
}


/* Cambiar a diseño horizontal si el ancho de la pantalla es mayor */
@media (max-width: 768px) {
    .gallery {
        flex-direction: column;
        align-items: center;
    }
    .video-container {
        width: calc(80% - 20px);
    }
}

.video-container:hover {
    transform: scale(1.05);
}

.video {
    position: relative;
}

.video img.poster {
    max-width: 100%;
    height: auto;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    border: none;
    width: 5vw;
    height: 5vw;
    cursor: pointer;
    border-radius: 50%;
    background-image: url('play.png');
    background-size: 128%;
    background-repeat: no-repeat;
    background-position: center;
    display: ;
    transition: background-color 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .play-button {
       
        width: 18vw;
        height: 18vw;

    }
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.description {
    background-color: rgb(15, 15, 15);
    color: #fff;
    padding: 10px;
    font-size: 16px;
    text-align: center;
}

.description h2 {
    font-weight: bold;
    font-size: 15px;
    margin: 10px 0;
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, rgba(255, 0, 150, 0.8), rgba(0, 229, 255, 0.8));
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 6px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 3;
    font-family: 'Roboto', sans-serif; /* Fuente Roboto */
    font-weight: 700; /* Negrita */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.duration::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shimmer 2.5s infinite;
    z-index: -1;
}

@keyframes shimmer {
    0% {
        left: -150%;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 1268px) {
    .duration {
        font-size: 0.5rem;
        border-radius: 5px;
    }
}

@media (max-width: 768px) {
    .duration {
        font-size: 0.8rem;
    }
}

.social-box {
    background-color: #000;
    display: flex;
    justify-content: space-around;
    padding: 10px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.video-container:hover .social-box {
    transform: translateY(0);
    opacity: 1;
}

.social-button {
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.social-button:hover {
    transform: scale(1.1);
}

.social-button img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Estilo de los botones de redes sociales */
.social-button:nth-child(1) img { background-color: #1877f2; }
.social-button:nth-child(2) img { background-color: #25d366; }
.social-button:nth-child(3) img { background-color: #1da1f2; }
.social-button:nth-child(4) img { background-color: #0088cc; }
