.container_playlist {
    margin: 0;
    padding: 20px;
    background: transparent!important;
    color: #333;
}

.h2_playlist {
    text-align: center;
    margin: 20px 0;
}

.playlist {
    max-width: 1100px;
    margin: auto;
}

/* Video destacado */
.featured-video {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.featured-video iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 10px;
    border: none;
}

/* Carrusel */
.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.video-card {
    flex: 0 0 100%; /* móvil: un video */
    padding: 10px;
    box-sizing: border-box;
}

.video-card iframe {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    border: none;
}

.video-info {
    text-align: center;
    margin-top: 5px;
}

.arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;      /* hace el botón redondo */
    width: 40px;             /* ancho fijo */
    height: 40px;            /* alto fijo */
    display: flex;           /* centra la flecha */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.arrow-left { left: -5px; }
.arrow-right { right: -5px; }


/* Desktop: más de un video a la vez */
@media (min-width: 768px) {
    .video-card { flex: 0 0 50%; } /* 2 videos */
}

@media (min-width: 1024px) {
    .video-card { flex: 0 0 33.33%; } /* 3 videos */
}