/* * Estilos para YouTube Modern Slider & Grid
 * Autor: markhouseoficial
 */

:root {
    --yt-brand-color: #ff0000; /* Se sobreescribe desde el PHP */
    --yt-card-bg: #fff;
    --yt-text-dark: #222;
    --yt-transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.yt-plugin-container {
    width: 100%;
    margin: 2rem 0;
}

/* --- GRID LAYOUT --- */
.yt-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* --- MOSAIC LAYOUT (Estilo Revista) --- */
.yt-mosaic-layout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}

/* El primer video es más grande */
.yt-mosaic-layout .yt-card-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Responsividad para el Mosaico */
@media (max-width: 1024px) {
    .yt-mosaic-layout { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .yt-mosaic-layout { display: block; }
    .yt-mosaic-layout .yt-card-item { margin-bottom: 20px; height: 300px; }
}

/* --- VIDEO CARDS --- */
.yt-card-item {
    background: var(--yt-card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--yt-transition);
}

.yt-card-item a { text-decoration: none; color: inherit; display: block; height: 100%; }

.yt-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.yt-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--yt-transition);
}

/* Overlay de Play */
.yt-overlay-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--yt-transition);
}

.yt-overlay-play span { font-size: 30px; width: 30px; height: 30px; }

/* Info Text */
.yt-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: #fff;
    z-index: 2;
}

.yt-card-content h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

/* --- EFECTOS HOVER CONFIGURABLES --- */

/* Zoom */
.yt-zoom:hover img { transform: scale(1.1); }

/* Lift */
.yt-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Play Icon Appearance */
.yt-card-item:hover .yt-overlay-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- BOTÓN CARGAR MÁS --- */
.yt-action-area {
    text-align: center;
    margin-top: 40px;
}

.yt-load-more-btn {
    background: var(--yt-brand-color);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--yt-transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.yt-load-more-btn:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

/* --- AJUSTES SWIPER --- */
.yt-swiper { padding-bottom: 50px !important; }
.swiper-pagination-bullet-active { background: var(--yt-brand-color) !important; }

.yt-load-more-btn {
    background-color: var(--yt-brand-color, #ff0000);
    color: #ffffff !important; /* Texto siempre blanco */
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Estilos del Lightbox de markhouseoficial */
.yt-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.yt-lightbox-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16/9;
}

.yt-lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.yt-close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
}