.entry-hero-wrapper, .hentry-wrapper, .site-content-wrapper 
{
    width: 100vw; /* Ocupa el ancho completo de la ventana */
    margin-left: calc(-45vw + 50%); /* Centra el contenido al eliminar el margen lateral */
    max-width: 100%; /* Asegura que no haya límite de ancho */
    box-sizing: border-box; /* Incluye los bordes y paddings en el ancho total */
}

/* ==================== CABECERA ==================== */
.header-group { margin-top: 20px; width: 100%; }

#custom-header {
    background-color: #000;
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
    color: white;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

#logo_home {
    max-width: 800px;
    height: auto;
    border-radius: 8px;
}

/* ==================== GALERÍA ==================== */
.video-gallery-section {
    display: grid;
    grid-template-columns: repeat(4, 385px);
    gap: 18px;
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 15px;
    justify-content: center;
}

.video-item {
    width: 385px;
}

/* ==================== CONTENEDORES ==================== */
.iframe-wrapper,
.fullwiththumb-wrapper {
    width: 385px;
    height: 315px;           /* Altura aumentada */
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

/* ==================== BARRA INFERIOR UNIFICADA ==================== */
/* =====================================================
   Pie de cada vídeo (.iframe-info-bar)
   Scrollbar solo visible al hacer hover
   ===================================================== */
.iframe-info-bar {
    height: 108px;
    min-height: 108px;
    max-height: 108px;
    background: #000;
    z-index: 5;
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Ocultar scrollbar por defecto (Firefox) */
    scrollbar-width: none;
}

/* Ocultar scrollbar por defecto (Chrome, Safari, Edge) */
.iframe-info-bar::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Mostrar scrollbar solo al hacer hover */
.iframe-info-bar:hover {
    scrollbar-width: thin; /* Firefox */
}

.iframe-info-bar:hover::-webkit-scrollbar {
    width: 6px; /* Grosor del scrollbar */
}

.iframe-info-bar:hover::-webkit-scrollbar-track {
    background: transparent;
}

.iframe-info-bar:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
}

.iframe-info-bar:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
}

/* Aseguramos que funcione en todos los wrappers */
.iframe-wrapper .iframe-info-bar,
.fullwiththumb-wrapper .iframe-info-bar,
.fullwithoutthumb-wrapper .iframe-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* ==================== TUBES NAMECHEAP ==================== */
.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.iframe-blocker-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15%;
    z-index: 30;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: all;
}

/* ==================== FULLWITH THUMB ==================== */
/* ==================== FULLWITH THUMB ==================== */
.fullwiththumb-wrapper {
    display: flex;
    flex-direction: column;
}

.top-logo-bar {
    height: 36px;                    /* altura fija aumentada */
    min-height: 36px;
    max-height: 36px;
    background: #000;
    display: flex;
    align-items: center;             /* centrado vertical */
    justify-content: flex-start;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    box-sizing: border-box;
}

.mini-logo {
    height: 80%;                     /* 80% de la altura de la barra */
    width: auto;
    max-width: 150px;                /* un poco más de margen por si acaso */
    object-fit: contain;
}

.video-container {
    flex: 1;
    position: relative;
    background: #000;
    display: flex;
    align-items: flex-start;
}

.video-player {
    width: 75%;           /* Reducido como tú hiciste */
    height: 75%;
    object-fit: cover;
    object-position: top center;
}

/* ==================== FULLWITHOUT THUMB ==================== */

.fullwithoutthumb-wrapper {
    width: 385px;
    height: 315px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fullwithoutthumb-wrapper .video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.fullwithoutthumb-wrapper .top-logo-bar {
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    box-sizing: border-box;
}

.fullwithoutthumb-wrapper .mini-logo {
    height: 80%;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.fullwithoutthumb-wrapper .video-container {
    flex: 1;
    position: relative;
}

.fullwithoutthumb-wrapper .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullwithoutthumb-wrapper .iframe-info-bar {
    position: relative;
    height: auto;
    min-height: 85px;
    background: #000;
    padding: 10px 12px;
    color: #fff;
    margin-top: auto;
}

/* ==================== TEXTOS ==================== */

/* Márgenes diferenciados */
.video-title {
    margin: 0 0 2px 0;          /* casi pegado a los actores */
    line-height: 1.25;
}

.video-actors {
    margin: 0 0 7px 0;          /* espacio suficiente debajo para 2 líneas */
    line-height: 1.3;
}

.video-tags {
    margin: 0 0 2px 0;          /* pequeño margen inferior */
    line-height: 1.3;
}

/* Solo actores y tags se ven como enlaces */
.video-actors a,
.video-tags a {
    color: #4da6ff;
    text-decoration: none;
}

.video-actors a:hover,
.video-tags a:hover {
    text-decoration: underline;
}

/* =====================================================
   Título de vídeo — sin apariencia ni comportamiento de enlace
   ===================================================== */
.video-title a {
    color: yellow;
    text-decoration: none;
    cursor: default;
    background: none;
    box-shadow: none;
    outline: none;
    pointer-events: none;       /* quítalo si quieres que el título sea clickable */
}

.video-title a:hover,
.video-title a:focus,
.video-title a:active {
    color: yellow;
    text-decoration: none;
    background: none;
    box-shadow: none;
    outline: none;
}
/* Oculto total */
.hidden-meta {
    display: none;
}

/* Copyright */
.gallery-copyright {
    text-align: center;
    margin: 40px 0 30px 0;
    padding: 20px 15px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid #eee;
}

.gallery-copyright p {
    margin: 6px 0;
}

/* Margen extra al paginador (por si no quieres inline style) */
.pagination {
    margin-bottom: 50px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1580px) {
    .video-gallery-section { 
        grid-template-columns: repeat(3, 385px); 
    }
}

@media (max-width: 1150px) {
    .video-gallery-section { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 770px) {
    .video-gallery-section { 
        grid-template-columns: 1fr; 
    }
    .iframe-wrapper,
    .fullwiththumb-wrapper {
        height: 260px;
    }
}