/*
Theme Name: DramaStream Child
Theme URI: https://themesia.com/dramastream-wordpress-theme
Author: Themesia
Author URI: https://themesia.com
Description: child theme for dramastream.
Template: dramastream
Version: 1.2.4
Tags: black, yellow, blue, purple, light, two-columns, right-sidebar, custom-header, custom-menu, featured-images
Text Domain: dramastream-child
*/


/* Estilos para el diseño de tres columnas */
.three-column-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px; /* Ajusta según el ancho máximo que necesites */
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Barra lateral izquierda */
.sidebar-left {
    width: 25%;
    float: left;
    position: relative;
    z-index: 1;
}

.sidebar-left .section {
    margin-right: 15px;
    background: #fff;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    margin-bottom: 18px;
    box-shadow: 1px 3px 8px rgba(49,49,49,0.1);
}

.sidebar-left .section ul,
.sidebar-left .section .widgetephis {
    margin: 0;
    padding: 0;
    font-family: 'Fira Sans', sans-serif;
    font-size: 13px;
}

.sidebar-left .section>ul>li, 
.sidebar-left .section .widgetephis li {
    padding: 7px 15px;
    text-overflow: unset;
    white-space: unset;
    overflow: hidden;
    border-bottom: 1px solid #ececec;
    position: relative;
    line-height: 160%;
}

.sidebar-left .section>ul>li .post-date, 
.sidebar-left .section .widgetephis li .post-date {
    font-size: 12px;
    font-style: italic;
    margin-left: 5px;
    color: #999;
}

.sidebar-left .section .widgetephis li .post-date {
    display: block;
    margin: 0;
}

.sidebar-left .section .textwidget {
    padding: 5px 15px;
    padding-bottom: 15px;
    line-height: 21px;
    font-size: 13px;
}

.sidebar-left .section ul.genre {
    overflow: hidden;
    list-style: none;
    position: relative;
    padding: 5px 0 15px;
    font-size: inherit;
}

.sidebar-left .section ul.genre li {
    float: left;
    width: 33.33%;
    padding: 0;
    border-bottom: 0;
}

.sidebar-left .section ul.genre li a {
    font-size: 13px;
    padding: 5px 15px;
    display: inline-block;
}

.sidebar-left .section .releases {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #ececec;
    padding: 8px 15px;
}

.sidebar-left .section .releases h3 {
    font-size: 1.1em;
    color: #333;
    line-height: 20px;
    font-weight: 600;
    margin: 0;
    position: relative;
}

/* Contenido central - ajustado para diseño de tres columnas */
.postbody {
    flex: 1;
    min-width: 0; /* Permite que el contenido se reduzca correctamente */
    padding: 0 10px;
}
#pembed{
	height:100% !important;
}


/* Estilos responsivos */
@media screen and (max-width: 1200px) {
    .three-column-wrapper {
        flex-direction: column;
    }
    
    .sidebar-left,
    .postbody,
    .sidebar {
        width: 100%;
        padding: 10px;
    }
    
    .sidebar-left {
        order: 2;
    }
    
    .postbody {
        order: 1;
    }
    
    .sidebar {
        order: 3;
    }
}






/* ============================================================
   FIX CLS: Reservar espacio para imágenes sin dimensiones
   Evita layout shift en móvil (Core Web Vitals)
   ============================================================ */

/* Portadas de películas/series - ratio 2:3 */
.ts-post-image,
img.wp-post-image,
.film-poster img,
.poster img {
    aspect-ratio: 2 / 3;
    width: 100%;
    height: auto;
}

/* Imágenes del blog - ratio 16:9 */
.blog-post img.ts-post-image,
.entry-content img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

/* ============================================================
   HOMEPAGE REDESIGN v2 (2026-04)
   Layout 2 columnas + Hero + Carrusel Generos + SEO
   ============================================================ */

/* -- Layout 3 columnas full-width -- */
.gnhd-home-wrapper {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.gnhd-home-wrapper > .sidebar-left {
    width: 300px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
/* Override parent #sidebar styles en sidebar izquierdo */
.gnhd-home-wrapper > .sidebar-left#sidebar {
    width: 300px !important;
    float: none !important;
}
.gnhd-home-wrapper > main.postbody {
    flex: 1;
    min-width: 0;
    padding: 0 10px;
}
.gnhd-home-wrapper > .gnhd-sidebar-right {
    width: 300px;
    flex-shrink: 0;
}
/* Override parent #sidebar styles en sidebar derecho */
.gnhd-home-wrapper > .gnhd-sidebar-right > #sidebar {
    width: 100% !important;
    float: none !important;
}
.gnhd-home-wrapper > .gnhd-sidebar-right > #sidebar .section {
    margin-left: 0;
}

/* -- Posters: 8 por fila en homepage full-width -- */
.gnhd-home-wrapper .bs.styleegg {
    width: 12.5%;
}
.gnhd-home-wrapper .bs {
    width: 12.5%;
}
.gnhd-home-wrapper .bs.styleegg .bsx {
    margin: 5px;
}
.gnhd-home-wrapper > .gnhd-sidebar-right > #sidebar {
    width: 100%;
    float: none;
}

/* -- H1 SEO compacto (visible para Google, discreto visualmente) -- */
.gnhd-h1-seo {
    font-size: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* -- Mejoras generales homepage -- */

/* Secciones con bordes mas limpios */
.gnhd-home-wrapper .bixbox {
    margin-bottom: 8px;
}

/* Section headers mas premium */
.gnhd-home-wrapper .releases.latesthome {
    border-radius: 4px 4px 0 0;
    letter-spacing: 0.3px;
}

/* Hover en posters */
.gnhd-home-wrapper .bs.styleegg .bsx {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 6px;
    overflow: hidden;
}
.gnhd-home-wrapper .bs.styleegg .bsx:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    z-index: 5;
    position: relative;
}

/* Titulos de poster mas legibles */
.gnhd-home-wrapper .bs.styleegg .tt h2 {
    font-size: 11px;
    line-height: 1.3;
    padding: 4px 6px;
}

/* Slider mas integrado */
.gnhd-home-wrapper .owl-carousel-full {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

/* Sidebars mas pulidos */
.gnhd-home-wrapper .sidebar-left .section,
.gnhd-home-wrapper .gnhd-sidebar-right .section {
    border-radius: 6px;
    overflow: hidden;
}

/* Widget tabs mas compactos */
.gnhd-home-wrapper #sidebar .section .releases {
    padding: 6px 12px;
}
.gnhd-home-wrapper #sidebar .section h3 {
    font-size: 1em;
}

/* -- Banderas de idioma (global, todas las paginas) -- */
.caratula-flags-badge {
    position: absolute;
    bottom: 42px;
    left: 6px;
    display: flex;
    gap: 3px;
    z-index: 2;
}
.caratula-flag-img {
    height: 16px;
    border-radius: 2px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
    transition: transform 0.15s ease;
}
.caratula-flag-img:hover {
    transform: scale(1.15);
}

/* -- Fix: h2 en .releases.latesthome (parent solo apunta a h3) -- */
.releases.latesthome h2 {
    color: #FFF;
}

/* -- Carrusel de generos -- */
.gnhd-genres-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 15px 15px 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.gnhd-genres-carousel::-webkit-scrollbar {
    height: 4px;
}
.gnhd-genres-carousel::-webkit-scrollbar-track {
    background: transparent;
}
.gnhd-genres-carousel::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
}
.gnhd-genre-card {
    min-width: 150px;
    scroll-snap-align: start;
    border-radius: 10px;
    padding: 20px 16px;
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}
.gnhd-genre-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    color: #fff;
}
.gnhd-genre-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
.gnhd-genre-count {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 500;
}

/* -- Bloque SEO texto -- */
.gnhd-seo-text {
    padding: 20px 15px;
    margin-top: 10px;
}
.gnhd-seo-text h2 {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
}
.gnhd-seo-text p {
    font-size: 13.5px;
    line-height: 1.75;
    color: #666;
    margin: 0 0 10px;
}
.gnhd-seo-text a {
    color: #c1440e;
    text-decoration: none;
    border-bottom: 1px solid rgba(193,68,14,0.3);
    transition: border-color 0.2s;
}
.gnhd-seo-text a:hover {
    border-bottom-color: #c1440e;
}
.gnhd-seo-genres {
    font-size: 12.5px !important;
    color: #888 !important;
}

/* -- Dark Mode Overrides -- */
.darkmode .gnhd-home-wrapper .bs.styleegg .bsx:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.darkmode .gnhd-seo-text h2 {
    color: #ddd;
}
.darkmode .gnhd-seo-text p {
    color: #999;
}
.darkmode .gnhd-seo-text a {
    color: #e8763c;
}
.darkmode .gnhd-genre-card {
    filter: brightness(0.85);
}
.darkmode .gnhd-genres-carousel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
}
.darkmode .caratula-flags-badge {
    filter: none;
}

/* -- Responsive -- */
@media screen and (max-width: 1400px) {
    .gnhd-home-wrapper .bs.styleegg,
    .gnhd-home-wrapper .bs {
        width: 16.66%;
    }
}
@media screen and (max-width: 1200px) {
    .gnhd-home-wrapper {
        flex-direction: column;
    }
    .gnhd-home-wrapper > .sidebar-left {
        width: 100%;
        order: 2;
        padding: 10px;
    }
    .gnhd-home-wrapper > main.postbody {
        width: 100%;
        order: 1;
        padding: 10px;
    }
    .gnhd-home-wrapper > .gnhd-sidebar-right {
        width: 100%;
        order: 3;
    }
    .gnhd-home-wrapper .bs.styleegg,
    .gnhd-home-wrapper .bs {
        width: 20%;
    }
}
@media screen and (max-width: 695px) {
    .gnhd-genre-card {
        min-width: 130px;
        padding: 14px 12px;
    }
    .gnhd-home-wrapper .bs.styleegg .bsx {
        margin: 3px;
    }
}
@media screen and (max-width: 500px) {
    .gnhd-hero {
        padding: 1rem 0.8rem;
    }
    .gnhd-meta-pills {
        gap: 5px;
    }
    .gnhd-genre-card {
        min-width: 115px;
        padding: 12px 10px;
    }
    .gnhd-genre-name {
        font-size: 13px;
    }
}
