/* 🎠 Videos Carrusel — Component reutilizable (SPRINT "Videos Upload Component · Carrusel", ago 2026).
   Sin ninguna clase de Bootstrap 4 o 5: debe verse igual de bien en un host BS4 (ideofolio_ver_artista.php)
   que en uno BS5 (q-Studio) o en legacy sin Bootstrap. Responsive vía flex/gap + scroll horizontal en la
   tira — el componente nunca asume el ancho del host (ver docs/04-ui.md § T). */

.videosCarrusel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.videosCarrusel--vacio {
    display: none;
}

.videosCarruselPantallaContenedor {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.videosCarruselPantalla {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.videosCarruselPantallaVacia {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0.75;
}

.videosCarruselTira {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    /* 🚫 Scrollbar oculta — el scroll horizontal sigue funcionando (mouse/trackpad/touch/teclado), solo
       no se dibuja la barra. scrollbar-width para Firefox, ::-webkit-scrollbar para Chrome/Safari/Edge —
       entre las dos cubren todos los navegadores relevantes sin ninguna librería adicional. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.videosCarruselTira::-webkit-scrollbar {
    display: none;
}

.videosCarruselMiniatura {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
    width: 96px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.videosCarruselMiniatura:disabled {
    cursor: default;
    opacity: 0.85;
}

.videosCarruselMiniaturaImgWrap {
    position: relative;
    width: 100%;
    height: 64px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}

.videosCarruselMiniatura--activa .videosCarruselMiniaturaImgWrap {
    border-color: #0d6efd;
}

.videosCarruselMiniaturaImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.videosCarruselMiniaturaTitulo {
    /* 📏 Hasta 2 líneas, con ellipsis en la segunda si no entra — line-clamp está soportado en todos los
       navegadores relevantes hoy (incluye Firefox desde 2023) sin prefijo -webkit- obligatorio, pero se
       deja el prefijo igual por compatibilidad con Safari/iOS más viejos que todavía lo requieren. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.25;
    color: inherit;
    text-overflow: ellipsis;
}

.videosCarruselMiniaturaPlaceholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
}

.videosCarruselSpinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: videosCarruselGirar 0.8s linear infinite;
}

@keyframes videosCarruselGirar {
    to { transform: rotate(360deg); }
}

.videosCarruselMiniaturaEstado {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px 4px;
    font-size: 0.65rem;
    line-height: 1.2;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 📱 Mobile: miniaturas un poco más chicas — el host decide el ancho disponible, esto solo ajusta el
   tamaño de cada item dentro del scroll horizontal. */
@media (max-width: 480px) {
    .videosCarruselMiniatura {
        width: 80px;
    }

    .videosCarruselMiniaturaImgWrap {
        height: 54px;
    }
}
