/*
Theme Name: CineDoble Version Gratis (Digital Core VIP Edition)
Description: Theme optimizado para peliculas con diseño Premium Dark/Neon. Ampliado para 5 pósters.
Author: Rayden (Modificado por TeamHD)
Version: 2.1
*/

@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

body {
    color: #e2e8f0;
    font: 13px 'Segoe UI', Verdana, sans-serif;
    background: #0b0e14; /* Fondo oscuro Digital Core */
}
* { margin:0; padding:0; }

.clear {clear:both;}
img {border:0;}
a {color: #00e0ff; text-decoration:none; transition: 0.3s;}
a:hover {color: #00b4db; text-decoration:none; text-shadow: 0 0 8px rgba(0, 224, 255, 0.4);}
ul {list-style: none;}
textarea, input {outline: none; font-family: 'Segoe UI', sans-serif;}

.alignnone {margin: 5px 20px 20px 0;}
.aligncenter, div.aligncenter {display:block; margin: 5px auto 5px auto;}
.alignright {float:right; margin: 5px 0 20px 20px;}
.alignleft {float:left; margin: 5px 20px 20px 0;}
a img.alignright {float:right; margin: 5px 0 20px 20px;}
a img.alignnone {margin: 5px 20px 20px 0;}
a img.alignleft {float:left; margin: 5px 20px 20px 0;}
a img.aligncenter {display: block; margin-left: auto; margin-right: auto;}

.wp-caption {
    background: #11151c; 
    border: 1px solid #232b38;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
    border-radius: 8px;
}
.wp-caption.alignnone {margin: 5px 20px 20px 0;}
.wp-caption.alignleft {margin: 5px 20px 20px 0;}
.wp-caption.alignright {margin: 5px 0 20px 20px;}
.wp-caption img {border: 0 none; height: auto; margin:0; max-width: 98.5%; padding:0; width: auto; border-radius: 5px;}
.wp-caption p.wp-caption-text {font-size:11px; line-height:17px; margin:0; padding:0 4px 5px; color: #cbd5e1;}

/* ajustes (Rediseñados para Digital Core) */
#menu, .mwidget, h3.widgetitulo, .wp-pagenavi a, .wp-pagenavi span, #caja, .marco-filas, .sinopsis, h3#titulocomemt, #respond input#enviar {
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
}
#footer a, h3.widgetitulo, .wp-pagenavi a, .wp-pagenavi span, .sinopsis h3, .texto, #sidebar ul li a, .mwidget p, .mwidget a, .mwidget {
    color: #e2e8f0;
}

/* header (Ajustado ancho principal a 1420px para que quepan 5 pósters) */
#marco { margin:0 auto; width:1420px; }
#cabeza { height: 140px; }
#logo h1 a {
    text-indent: -9999px;
    width:100%;
    float:none;
    display:block;
    height: 152px;
    background: url('/img/market.png') center center no-repeat !important;
}
.banner-top {
    margin-top: 35px;
    display: none !important;
    width: 728px;
    height: 90px;
    float: right;
}

#menu {
    background: linear-gradient(180deg, #1d2432 0%, #11151c 100%);
    border: 1px solid #232b38;
    border-bottom: 2px solid #00e0ff;
    text-align:center;
    margin: 15px auto;
    height: 45px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
#menu li {border-right: 1px solid #232b38; display:inline; list-style-type:none; margin:0; padding:0;}
#menu li:last-child {border-right: none;}
#menu ul {margin:0; padding:0;}
#menu ul li a {
    text-transform: uppercase;
    line-height: 45px;
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
    text-decoration: none;
    padding: 0 20px;
    display: inline-block;
    transition: all 0.3s ease;
}
#menu ul li a:hover {
    color: #00e0ff;
    background: #171c25;
    text-shadow: 0 0 8px rgba(0, 224, 255, 0.4);
}

#estrenos ul > li {position: relative; float: left; list-style: none; margin: 0 20px 20px 0; font-size: 10px; z-index: 1;}
#estrenos ul li img { display: block; position: relative; z-index: -1; border-radius: 8px;}
#estrenos ul a:hover:after, #estrenos ul a:focus:after {
    content: attr(title);
    color: #00e0ff;
    position: absolute;
    bottom: 20px;
    padding: 8px 0;
    min-height: 15px;
    line-height: 15px;
    text-align: center;
    width: 130px;
    background: rgba(17, 21, 28, 0.9);
    border-top: 2px solid #00b4db;
    display: block;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
}
#estrenos {margin: 30px 0 0;}

/* carrusel */
.marco-filas { margin: 0 auto; background: #11151c; border: 1px solid #232b38; height: 250px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); display: none !important; }
.jcarousel-container-horizontal { height: 220px; padding: 15px; margin-left:130px; position:relative; display: none !important; }
.marco-cinta .jcarousel-clip { overflow: hidden; display: none !important; }
.marco-cinta .jcarousel-item { width: 150px; height: 230px; }
.marco-cinta .jcarousel-next-horizontal { position: absolute; top: 25px; left: -83px; width: 60px; height: 60px; cursor: pointer; background: transparent url(images/next-horizontal.png) no-repeat; }
.marco-cinta .jcarousel-prev-horizontal { position: absolute; bottom: 20px; left: -83px; width: 60px; height: 60px; cursor: pointer; background: transparent url(images/prev-horizontal.png) no-repeat; }
.panel{margin:10px 0;}
/* Fin carrusel */

#caja { margin:30px auto; background-color: #11151c; border: 1px solid #232b38; box-shadow: 0 10px 25px rgba(0,0,0,0.5); }

/* index (Ajustado a 1060px para que quepan 5 pósters exactos) */
#contenido { width:1060px; margin:10px; float:left; }

.pelicula {
    color: #e2e8f0;
    width: 190px;
    height: auto; /* Altura dinámica para que el texto nunca se salga */
    min-height: 330px;
    padding-bottom: 10px; 
    margin: 10px !important;
    float: left;
    position: relative;
    background: #11151c;
    border: 1px solid #232b38;
    border-radius: 8px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}
.pelicula:hover {
    transform: translateY(-5px);
    border-color: #00b4db;
    box-shadow: 0 10px 25px rgba(0, 180, 219, 0.2);
}
.poster { width: 190px; }
.poster img, #portadas img { width: 190px; height: 270px; border-radius: 8px 8px 0 0; object-fit: cover;}
.poster h2 { text-align: center; padding: 10px 5px; margin: 0; }
.poster h2 a:link, .poster h2 a:visited {
    font-size: 12px;
    line-height: 14px;
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
}
.poster h2 a:hover { color: #00e0ff; }

.sinopsis {
    background: rgba(17, 21, 28, 0.95);
    border: 1px solid #00b4db;
    display: none;
    position: absolute;
    right: -315px;
    top: 0;
    width: 300px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 180, 219, 0.2);
    border-radius: 8px;
}
.sinopsis h3 {
    border-bottom: 1px solid #232b38;
    color: #00e0ff;
    font-size: 16px;
    margin: 5px;
    padding: 8px;
    text-transform: uppercase;
}
.texto { padding: 10px; line-height: 1.5; font-size: 12px; float: left; color: #cbd5e1; }
/* fin index */

/* Estilo para Plugin Wp-Pagenavi */
.wp-pagenavi { clear: both; font-weight: 700; font-size: 14px; line-height: 50px; text-align: center; padding: 20px 0;}
.wp-pagenavi a, .wp-pagenavi span {
    text-decoration: none;
    margin: 4px;
    padding: 10px 15px;
    background: #171c25;
    border: 1px solid #232b38;
    color: #e2e8f0;
    transition: 0.3s;
}
.wp-pagenavi a:hover {
    background: #00b4db;
    border-color: #00e0ff;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
}
.wp-pagenavi span.current {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    border-color: #005c7a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 180, 219, 0.3);
}
/* fin estilo pagenavi */

/* post */
#marco-post { width:1060px; margin-top:25px; float:left; }
.titulo {
    padding-left: 20px;
    font-size: 38px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    color: #ffffff;
    border-left: 4px solid #00e0ff;
    margin-bottom: 20px;
}
.post {
    margin: 10px auto;
    color: #e2e8f0;
    padding: 20px;
    background: #11151c;
    border: 1px solid #232b38;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    width: 1010px; /* Adaptado al nuevo ancho */
    box-sizing: border-box;
}
.post a:link, .post a:visited { color: #00e0ff; font-weight: bold; }
.post a:hover { color: #00b4db; text-shadow: 0 0 5px rgba(0,224,255,0.4); }
.post p { padding: 10px; line-height: 1.6; word-wrap: break-word; font-size: 14px;}

.mposter { float:left; margin: 10px 20px 10px 0; padding:0; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.5); border: 1px solid #232b38;}
.mposter img { width: 220px; height: auto; display: block;}

.sipno { margin-top: 10px; text-align: justify; color: #cbd5e1; line-height: 1.6;}
.sipno h3 { text-align: left; color: #00e0ff; border-bottom: 1px solid #232b38; padding-bottom: 8px; margin-bottom: 15px; font-size: 20px;}

#mcardtable {
    padding: 15px;
    background: #171c25;
    border: 1px solid #232b38;
    border-radius: 8px;
    text-align: left;
    margin-top: 20px;
}
#mcardtable td { height: 35px; color: #e2e8f0; border-bottom: 1px solid #1a202b;}
#mcardtable td strong { color: #00e0ff; }

.linea { background: #232b38; margin-top: 25px; height: 1px; width: 100%; }

.generos { margin: 20px 0; font-weight: bold; }
.generos a {
    display: inline-block;
    margin: 0 8px 10px 0;
    padding: 6px 14px;
    background: #171c25;
    color: #00e0ff;
    border: 1px solid #232b38;
    border-radius: 20px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.generos a:hover {
    background: #00e0ff;
    color: #11151c;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.4);
}
/* post */

/* sidebar */
#sidebar { width: 310px; float: right; margin: 10px; }
#sidebar li { width: 100%; font-size:13px; color:#e2e8f0; list-style:none; margin-bottom: 8px;}
#sidebar ul li a {
    padding: 8px 10px 8px 30px;
    background: #11151c;
    border: 1px solid #232b38;
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 13px;
    display: block;
    transition: 0.3s;
    position: relative;
}
#sidebar ul li a::before {
    content: "▸";
    position: absolute;
    left: 10px;
    color: #00e0ff;
    font-weight: bold;
}
#sidebar ul li a:hover {
    background: #171c25;
    color: #00e0ff;
    border-color: #00b4db;
    padding-left: 35px;
}

h3.widgetitulo, h3#titulocomemt {
    background: linear-gradient(135deg, #1d2432 0%, #151a24 100%);
    border: 1px solid #232b38;
    border-left: 4px solid #00e0ff;
    font-size: 16px;
    margin-bottom: 15px;
    padding: 12px 15px;
    font-family: 'Segoe UI', sans-serif;
    text-align: left;
    text-transform: uppercase;
    color: #ffffff;
    border-radius: 6px;
}

.mwidget {
    background: #11151c;
    border: 1px solid #232b38;
    margin-bottom: 20px;
    padding: 15px !important;
    width: 278px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.tagcloud, .textwidget { padding: 5px; color: #cbd5e1;}
.page_item { width:100%; float: none; }
/* Fin sidebar */

/* footer */
#footer { padding: 40px 0; color: #64748b; font-size: 12px; text-align: center; border-top: 1px solid #232b38; margin-top: 40px; background: #0b0e14;}
#footer a { color: #00e0ff; font-weight: bold;}
/* Fin footer */

/* Comentarios */
.tinota { float: left; margin-left: 50px; padding-top: 10px; }
.notab { float: left; margin: 10px 0 0 50px; }
.bgnota { background: #171c25; padding: 15px; border-radius: 8px; border: 1px solid #232b38; display: inline-block; color: #e2e8f0;}
.notaav {
    font-style: italic;
    font-size: 13px;
    color: #00e0ff;
    float: right;
    margin-top: 5px;
    padding: 15px;
    width: 40%;
    background: #11151c;
    border: 1px solid #232b38;
    border-left: 3px solid #00e0ff;
    border-radius: 6px;
}
.comentarios { margin: 40px auto; width: 1010px; box-sizing: border-box; } /* Adaptado ancho */
h3#titulocomemt { color: #ffffff; }

ol.listacomentarios { clear:both; list-style:none; margin:0; }
ol.listacomentarios li {
    line-height: 1.6;
    background: #11151c;
    border: 1px solid #232b38;
    border-radius: 8px;
    margin: 15px 0;
    padding: 20px;
}
ol.listacomentarios li .comment-author a:link, ol.listacomentarios li .comment-author a:visited { color:#00e0ff; font-weight:700; font-size: 15px;}
cite.fn { font-style:normal; }
ol.listacomentarios li .comment-author .avatar { float:right; border-radius: 50%; border: 2px solid #00e0ff; box-shadow: 0 0 10px rgba(0,224,255,0.3); }
ol.listacomentarios li .comment-meta .commentmetadata { color: #64748b; font-size: 11px;}
ol.listacomentarios li p { color: #cbd5e1; font-size: 13px; margin-top: 10px;}

ol.listacomentarios li .reply { margin-top: 15px; }
ol.listacomentarios li .reply a {
    background: #171c25;
    color: #00e0ff;
    border: 1px solid #232b38;
    border-radius: 4px;
    font-size: 11px;
    padding: 6px 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}
ol.listacomentarios li .reply a:hover { background: #00e0ff; color: #11151c; }

ol.listacomentarios li ul.children { list-style:none; text-indent:0; margin: 15px 0 0 0; padding-left: 20px; border-left: 2px solid #232b38;}

#respond {
    margin: 20px 0;
    padding: 25px;
    background: #11151c;
    border: 1px solid #232b38;
    border-radius: 10px;
}
#respond h3 { font-size:18px; color: #ffffff; font-weight: bold; padding-bottom: 15px; border-bottom: 1px solid #232b38; margin-bottom: 20px;}
#commentform { padding: 0; }
#respond label { display:block; color: #a0aec0; font-weight: 600; padding: 5px 0; font-size: 12px;}
#respond input {
    background: #0b0e14;
    border: 1px solid #232b38;
    color: #e2e8f0;
    margin: 0 0 15px 0;
    padding: 10px;
    border-radius: 5px;
    transition: 0.3s;
}
#respond input:focus { border-color: #00e0ff; box-shadow: 0 0 8px rgba(0, 224, 255, 0.2); }
#commentform input { width: 50%; }

#respond input#enviar {
    width: auto;
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
    color: white;
    border: 1px solid #005c7a;
    padding: 10px 25px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
#respond input#enviar:hover { filter: brightness(1.2); box-shadow: 0 4px 15px rgba(0, 180, 219, 0.4); }

textarea#comenta {
    background: #0b0e14;
    border: 1px solid #232b38;
    width: 96%;
    color: #e2e8f0;
    margin: 5px 0 15px;
    padding: 12px;
    border-radius: 5px;
    transition: 0.3s;
}
textarea#comenta:focus { border-color: #00e0ff; box-shadow: 0 0 8px rgba(0, 224, 255, 0.2); }

ol.listacomentarios li ul.children li.depth-2, 
ol.listacomentarios li ul.children li.depth-3, 
ol.listacomentarios li ul.children li.depth-4, 
ol.listacomentarios li ul.children li.depth-5 { margin: 0 0 0 20px; }
/* Fin comentarios */

/* ======================== */
/* Buscador (Reparado y conectado al HTML real) */
/* ======================== */
#searchform {
    margin-top: -5px; /* AQUI LO SUBES O BAJAS. Usa números negativos para subirlo (ej: -10px, -20px) */
    display: flex; /* Esto obliga al botón y a la barra a estar perfectamente pegados */
    align-items: center;
    width: 100%;
}
#s {
    width: 200px;
    background: #11151c;
    padding: 0 15px;
    height: 38px;
    border: 1px solid #232b38;
    border-right: none;
    color: #e2e8f0;
    border-radius: 20px 0 0 20px;
    box-sizing: border-box;
    margin: 0; /* Mata márgenes fantasmas */
}
#s:focus { border-color: #00e0ff; }
#searchsubmit {
    background: #00b4db;
    color: white;
    width: 65px; /* Ancho ajustado para que quepa la palabra "Buscar" */
    height: 38px;
    cursor: pointer;
    border: none;
    border-radius: 0 20px 20px 0;
    font-weight: bold;
    transition: 0.3s;
    box-sizing: border-box;
    margin: 0;
}
#searchsubmit:hover { background: #00e0ff; }
/* Fin Buscador */

.trela {
    font-weight: 700;
    color: #ffffff;
    font-size: 22px;
    text-align: left;
    padding: 15px 20px;
    background: linear-gradient(135deg, #1d2432 0%, #151a24 100%);
    border: 1px solid #232b38;
    border-left: 4px solid #00e0ff;
    border-radius: 8px 8px 0 0;
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
}
#relacion {
    padding: 20px;
    width: 1010px; /* Adaptado al nuevo ancho */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #11151c;
    border: 1px solid #232b38;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: flex;
    gap: 15px;
    box-sizing: border-box;
}
#relacion img {
    height: 220px;
    width: 145px;
    border-radius: 6px;
    border: 1px solid #232b38;
    transition: 0.3s;
}
#relacion img:hover {
    border-color: #00e0ff;
    box-shadow: 0 5px 15px rgba(0, 224, 255, 0.3);
    transform: translateY(-5px);
}
.relp {
    font-size: 18px;
    text-align: left;
    padding: 15px 0;
    color: #00e0ff;
    border-bottom: 1px solid #232b38;
    margin-bottom: 15px;
}
.tpost {
    width: 145px;
    float: left;
}
.tpost h2 {
    text-align: center;
    margin-top: 10px;
}
.tpost h2 a {
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}
.tpost h2 a:hover { color: #00e0ff; }