body{
    background: #121119!important;  
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
   font-family: 'Inter', sans-serif;
}


h1, h2, h3, h4, h5, p {
    color: #f1f1f1f7!important;    
}

a{
  color: white !important;
  text-decoration: none !important;
}

.navbar{
    background: #1e1a24!important;
}

.nav-link{
font-size: 1.2rem!important;
margin-right: 1.2rem;
}


.navbar-nav a:hover{
    color: #9b8bb7!important;
  transition: 150ms;
}

.seriesimg img {
    width: 100%;
    height: 100%;
   position: relative;
}

.img-fluid2{
    width: 100%;
    aspect-ratio: 1/1.4;
    border-radius: 0.5rem;
    max-width: 250px;
    background-color: #37434e;
    height: auto;
}

.serieimg{
position: relative;
}

.serieimgficha{
position: relative;
margin: auto;
}

.seriedetails{
padding-top: 0.5rem;
}

.seriedetails h3{
font-size: 1rem;
margin-bottom: 0px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}


.page-item:not(:first-child) .page-link {
    padding: 10px;
    text-align: center;
    width: 55px;
    background-color: #1b242c;
    margin: 0 15px;
    border: none;
    color: #fff;
    font-size: 20px;
    border-radius: 5px;
}

.page-item .page-link {
    padding: 10px;
    text-align: center;
    width: 55px;
    background-color: #6942af;
    margin: 0 15px;
    border: none;
    color: #fff;
    font-size: 20px;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    border-radius: 5px;
}

li.page-item.active span{
background: #6942af !important;
}
li.page-item.disabled span {
    background: #13191e;
    border: none;
}
.pagination {
    flex-wrap: wrap;
    display: flex;
    padding-left: 0;
    list-style: none;
    margin-top: 42px;
    margin-bottom: 72px;
}

li.page-item.active a, .page-link:hover {
    background-color: #6942af!important;  
}


.page-link:hover{
    background-color: #6942af!important;
}


.buscador2{
position: relative;
}


.buscadorsvg{
    position: absolute;
    right: 14px;
    top: 12px;
    color: #ffffff;
}


.footer{
  background: #1e1a24;
  margin-top: auto;
}


li.page-item {
    margin-bottom: 8px;
}

#floatingSelect{
    border: none!important;
}

.form-select {
    -moz-padding-start: calc(.75rem - 3px);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #413751!important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E")!important;
    color:#9b8bb7!important;
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    border: 1px solid #47484d!important;
    border-radius: 0.25rem;
    display: block;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.6;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    width: 100%;
}

.active_page {
    color: #c2a7f3 !important;
    font-weight: 500;
    position: relative;
}


.form-floating > label {
    border: 1px solid transparent!important;
    height: 100%;
    left: 0;
    padding: 1rem 0.75rem;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
    color: white;
}

.form-floating>.form-control, .form-floating>.form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    
}

.form-control{
background: #2c2538!important;
border-style: none!important;
color: white!important;
font-size: 1.2rem!important;
}

.form-floating{
position: relative;
}

  .form-floating:after {
    display: none !important;
}


.info h2, .info h4{
font-size: 1.1rem;
margin-bottom: 0px;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}


.info_cap span{
    position: absolute;
    margin-bottom: 0.5rem;
    color: white;
    font-size: 1rem;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 0.2rem 1rem;
    line-height: 1.2rem;
    border-radius: 0.3rem;
    font-weight: 500;
    bottom: 0;
    right: 1rem;
    pointer-events: none;
    background: linear-gradient(90deg, rgb(0 0 0 / 70%) 50%, rgb(0 0 0 / 70%) 50%);
}

.not {
    position: relative;
}

.span-tiempo{
    color: #07bf67;
    font-size: 0.9rem;
}

.span-slider, .p-slider{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.span-slider{
font-size: 1.6rem;
}

.p-slider{
font-size: 1.1rem;

}

.xd{
    width: 100%;
    background: #2c2538;
    border-style: none;
    line-height: 3rem;
    color: white;

}
button.nostyle {
    background: none;
    border: none;
}
.comentario{
position: relative;
display: flex;
align-items: center;

}

.carousel .carousel-inner{
    height:400px
    }
    
    .carousel-inner .carousel-item img{
    min-height:200px;
    object-fit:cover;
    aspect-ratio: 1.8;
    }
    

    .carousel-item{
     position: initial!important;
    }


.bi.bi-plus-lg{
    color: white;
    right: 20px;
    position: absolute;
}

.series2{

    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0 0px;
    margin-bottom: 25px;
    transition: 0.3s;

}

.btn1{
    font-size: 20px;
    width: 173px;
    padding: 10px 0;
    border-radius: 15px;

}



ul, [class*="-list"] {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.btn {
    background-color: #47484d!important;
    color: #9b8bb7!important;
    min-width: 3rem;
    margin-inline: 1px;
    margin-bottom: 4px;
}


.spaninfo{
    color: white;
    opacity: 0.5;

}

.caph3{

    border-bottom: 1px solid;
    padding-bottom: 10px;

}


.reproductor{
    color: #fff;
    text-align: center;

}

.col-md-12.col-lg-8.seiya {
padding-left: calc(13rem - 3.9vw);
}


.mojon4{
    font-size: calc(0.8rem + .9vw);
    text-align: center;
    text-transform: capitalize;

}


.mojon5{
    font-size: calc(0.8rem + .9vw);
     text-transform: capitalize;
}

.cap_repro{

    list-style: none;
    padding: 0;
    margin: 0;
}


.repro-item {
    display: block;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    margin-right: 5px;
}


ul.cap_repro li a {
    cursor: pointer;   
    color: #fff;
    margin-bottom: 10px;
}

ul.cap_repro li a.active {
    border-bottom: 3px #673ab7 solid;
}

.nxtmainimg{
    width: 100%;
    margin-right: 17px;
    border-radius: 4px;
    height: auto;
    background: black;
    aspect-ratio: 0.7/0.41;
}

.playhover{
    position: absolute;
    right: 0;
    top: 0;
    padding: 2px 5px;
    background-color: rgba(0, 0, 0, 0.54);
    font-size: 13px;
    margin-bottom: 3px;
    color: #fff;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: none;
    transition: all 300ms ease-in;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;

}

.imgrec:hover .playhover{
    opacity: 1;
}

.serieimg:hover .playhover{
opacity: 1;

}

.playhover i{
    position: absolute;
    font-size: 37px;
    color: #fff;
}

.nxtmainimg:hover{
opacity: 50%;
}

ul.cap_repro li a:hover {
    border-bottom: 3px #673ab7 solid;
}

.nxtplaybtn h5{
    font-size: calc(0.2rem + .8vw);
    margin-bottom: .2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nxtplaybtn p{
    font-size: calc(0.2rem + .6vw);
    margin-bottom: .2rem;
    color: #9b9b9b;
    
}

.nxtplaybtn span{
    font-size: calc(0.2rem + .7vw);
}


.controles{
    display: flex;
    justify-content: center;
    }
   

    .controles div a{
        padding: 0 25px;
        line-height: 40px;
        display: block;
        border-radius: 0.25em;
        font-weight: 500;
        color: #e5e5e5!important;
        background-color: #2c2538;
        margin: .5rem;
    }


    .controles div a:hover{     
    background-color: #3e3d40;
    }

    .imagen .bi-play{
        position: absolute;
        right: 0;
        top: 0;
        padding: 2px 5px;
        background-color: rgb(255 0 0 / 54%);
        font-size: 13px;
        margin-bottom: 3px;
        color: #fff;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: all 400ms ease-in;
        z-index: 1;
    }



    .imagen:hover .bi-play{
        display: block;
        transition: 1s;
    }


    .imgrec{
position: relative;
background: #212529;
    }



.descarga2{

display: flex;
justify-content: left;
overflow-x: auto;

}

.descarga2 div a{

    padding: 0 20px;
    line-height: 40px;
    display: inline-flex;
    gap: 0.25em;
    border-radius: 0.25em;
    font-weight: 400;
    color: #e5e5e5!important;
    background-color: #2c2538;
    margin: .5rem;

}


.descarga2 div a:hover{

   color: #9c27b0!important;

}

.btn.buscar{

    width: 100%;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;

}

.logo_div img {
    width: 150px;
    height: 70px;
}

.btn-estado{
width: 100%;
border-radius: 4px;
padding: 5px;
background-color: green;
color: white;
border: none;
box-shadow: 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%), 0px 2px 4px -1px rgb(0 0 0 / 20%);
padding: 10px 5px;
}

.btn-estado.finalizado {
background-color: #811700;
}
.cap-layout{
width: 100%;
background-color: #1e1a24;
color: rgba(255, 255, 255, 0.7);
padding: 1rem;
border-radius: 10px;
margin-bottom: 0.6rem;
border: 1px solid #2b2a2a;
}

.cap-layout:hover{
background-color: #332b42;
}


.bi {
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentcolor;
}

@media (min-width: 1200px){
.col-xl-2 {
    flex: 0 0 auto;
    width: 20%!important;
}
}

.sip-ficha{
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 0.5rem;
}


.populares {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
color: white;
}

.navmovil{
display: none;
}


.boton-user{
border: none;
background-color: transparent;
color: white;
}


.hero-poster{
  
    top: -50px;
    left: 56%;
    width: 400px;
    transform: scale(1.1);
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
}

.hero-cover{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}


.hero-item .hero-poster{

    position: absolute;
    top: 0px;
    width: 400px;
    transform: scale(1.2);
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
}



.hero-item .hero-poster .hero-cover-preview{
    display: inline-block;
    transform: rotate(15deg);
    border: 15px solid #fff;
    box-shadow: 0 30px 30px rgb(0 0 0 / 20%);
}

.character-thumb .character-thumb-img, .hero-cover-preview .preview-image{

    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-cover-preview {
    width: 100%;
    padding-bottom: 114%;
    margin-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: white;
}

.carousel-caption{
    text-align:left!important;
    right: 50%!important;
    bottom: 6.25rem!important;
}

.btn-slider{
    background: #cae962!important;
    color: #111!important;
border: none!important;
    box-shadow: none!important;
    border-radius: 30px;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.btn-estado:hover{
color: #ff4a4a;
}


.modal-content{
background-color: #1e1a24!important;
color: white!important;
border: 2px solid #2b2a2a!important;

}


    .espaciosvg{
margin-right: 0.5rem;

    }


    .dropdown-item{
color: white!important;

    }

    .dropdown-item:hover{
 background-color: #1e1a24!important;

    }

    .dropdown ul li{
     padding: 5px;
    }

    .dropdown-item{
        padding: 10px 10px!important;
    }

  .dropdown-menu.show{
        position: absolute;
        right: 0!important;
        left: auto!important;
        background: #2c2538;
    }


    .mobnextplay2{
        padding-left: 0px!important;
    }

    .btn.pelo{
color: white!important;
background-color: #ef5b5b!important;

    }



/* Medias**/

 @media (max-width: 767px){
    .serieimgficha {
        margin: 0 auto; 
    }
    }

@media(max-width:860px){
        .carousel .carousel-inner{
           height:auto
         }
        }

@media (max-width: 1300px) {
            .col-md-12.col-lg-8.seiya{
                padding-left: calc(10rem - 3.9vw);
        
            }
        }
        
          
@media (max-width: 991px) {
            .serieimgficha{
                 padding-left: 0;
            }
            
            .col-md-12.col-lg-8.seiya {
                padding-right: calc(var(--bs-gutter-x) * .5)!important;
                padding-left: calc(var(--bs-gutter-x) * .5)!important;
            }
        
            .nxtplaybtn h5{
                font-size: calc(0.7rem + .8vw);
                margin-bottom: .2rem;
            }
            
            .nxtplaybtn p{
                font-size: calc(0.8rem + .6vw);
                margin-bottom: .2rem;
                color: #9b9b9b;
            }
        
            .nxtplaybtn span{
                font-size: calc(0.7rem + .7vw);
        
            }
        
        
        
        
            }

@media(max-width:768px){

        .navmovil{
        display: block;
        }
        
        .pepu{
        display: none;
        }
        
        .carousel-caption{bottom: 0rem!important;}
        }


@media(max-width:450px){

            .hero-poster{

                left: 59%;
            }

            .hero-item .hero-poster{
                width: 250px;

            }

            .hero-item .hero-poster .hero-cover-preview{

                border: 5px solid #fff;
            }

            .btn-slider{
                font-size: 0.8rem;

            }

            .carousel-caption{
            padding-bottom: 2.25rem!important;
        }

        .mierda44 {
            display: none!important;
          }

          .info_cap span{
            padding: 2px 7px;
            right: 10px;
            font-size: 0.7rem;
            bottom: 5px;
            margin-bottom: 0rem;
        }
    
        .span-slider{
    font-size: 0.8rem;
    
    
        }
    
        .p-slider{
    font-size: 0.7rem;
    
        }
    
    
        .info h2, .span-tiempo{
    font-size: 0.9rem;
        }

        .controles div{
            display: inline-block;
           }
    
           .controles div a{
            margin: .1rem;
           }

            
            }
            
 .player{position:relative}


 .nav-tabs .nav-link.active{
    background-color: transparent!important;
    /* mierda */
 }

 .bg-calendario{
    background-color: #37294C;
 }
 
 .aspecto {
    aspect-ratio: 1 / 1.4;
}

/* Estilos optimizados para el buscador con historial */

/* Contenedor principal del buscador */
.buscador2 {
    position: relative;
}

/* Contenedor de resultados de búsqueda */
.pcsearchauto {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    background: #1e1a24;
    border: 1px solid #47484d;
    border-radius: 5px;
    z-index: 1000;
    width: 100%;
    top: 40px;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.pcsearchauto.show {
    display: block !important;
}

/* Título del historial */
.historial-titulo {
    color: #9b8bb7;
    font-size: 14px;
    text-align: center;
    padding: 10px 15px;
    border-bottom: 1px solid #37294C;
    margin-bottom: 5px;
    background-color: #2c2538;
}

/* Elementos del historial */
.historial-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid #37294C;
    background-color: #1e1a24;
}

.historial-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.historial-content img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.historial-content span {
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* Botón para eliminar del historial */
.eliminar-historial {
    background: none;
    border: none;
    color: #9b8bb7;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.eliminar-historial:hover {
    color: #fff;
}

/* Resultados de la búsqueda */
.search-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-bottom: 1px solid #37294C;
    background-color: #1e1a24;
}

.search-item:hover {
    background-color: #37294C;
}

.search-item-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-item-content img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.search-item-content span {
    font-size: 14px;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* Estados de la búsqueda */
.buscando, .no-results, .error {
    padding: 15px;
    text-align: center;
    color: #fff;
    font-size: 14px;
}

/* Modal de búsqueda para móvil */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121119;
    z-index: 1100;
    overflow-y: auto;
}

.search-modal.active {
    display: block;
}

.search-modal-content {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.search-input-container {
    display: flex;
    align-items: center;
    background-color: #2c2538;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 5px 10px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    font-size: 16px;
    outline: none;
}

.search-input::placeholder {
    color: #9b8bb7;
}

.search-close {
    background: none;
    border: none;
    color: #9b8bb7;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
}

.search-results {
    flex: 1;
    overflow-y: auto;
}

/* Media query para móvil */
@media (max-width: 768px) {
    /* Estilo del input del buscador en móvil */
    .navmovil form.form_search_ajax input[name="q"] {
        background-color: #2c2538;
        color: white;
        border-radius: 5px;
        padding: 10px 15px;
        width: 100%;
        border: 1px solid #47484d;
    }
    
    /* Ajustes para el modal de búsqueda */
    .search-modal-content {
        padding-top: 20px;
    }
    
    .historial-titulo {
        font-size: 16px;
        padding: 15px;
        background-color: #2c2538;
    }
    
    .historial-content img, 
    .search-item-content img {
        width: 60px;
        height: 80px;
    }
    
    .historial-content span,
    .search-item-content span {
        font-size: 16px;
    }
    
    .eliminar-historial {
        font-size: 20px;
        padding: 0 10px;
    }
    
    /* Sobrescribir estilos para el contenedor de resultados */
    .pcsearchauto.show {
        position: relative;
        top: 0;
        width: 100%;
        max-height: none;
    }
}
