body{transition:background-color 0.3s ease,color 0.3s ease;}.bgf,.all,.bkcnpels,.bkpelsalf,.titbkcnt,#ajax_search_results,h1,h2,h3,p,a{transition:background-color 0.3s ease,color 0.3s ease,border-color 0.3s ease;}body.dark-theme{background:#121212 !important;color:#e0e0e0 !important;}body.dark-theme .bgf{background:#1a1a1a !important;}body.dark-theme .all{background:#1a1a1a !important;}body.dark-theme .bkcnpels,body.dark-theme .bkpelsalf{background:#2a2a2a !important;border-color:#333 !important;}body.dark-theme h1,body.dark-theme h2,body.dark-theme h3{color:#fff !important;}body.dark-theme p{color:#bbb !important;}body.dark-theme .titbkcnt{background:#333 !important;color:#fff !important;}body.dark-theme #ajax_search_results{background:#222 !important;border:1px solid #444 !important;}body.dark-theme #ajax_search_results a{color:#ddd !important;}body.dark-theme #ajax_search_results li{border-bottom:1px solid #333 !important;}body.dark-theme #ajax_search_results li:hover{background:#333 !important;}@media screen and (max-width:990px){.w990px{width:100% !important;max-width:100% !important;padding:0 10px;box-sizing:border-box;}#hd{height:auto !important;padding-bottom:20px !important;}.hd_cnt_1{height:auto !important;display:flex;flex-direction:column;align-items:center;}.hd_cnt_2{height:auto !important;padding:15px 0 !important;}#hd .logo{float:none !important;margin-bottom:15px;}.hdrgt{width:100% !important;float:none !important;display:flex;flex-direction:column;align-items:center;}.frmsrch{float:none !important;margin:0 auto 15px auto !important;position:relative !important;right:auto !important;top:auto !important;}.mntop{float:none !important;text-align:center !important;width:100% !important;}.mntop li{display:inline-block !important;float:none !important;margin:0 5px 10px 5px !important;}.swiper-estrenos{width:100% !important;margin-bottom:20px !important;overflow:hidden;}.menu{width:100% !important;display:flex !important;flex-wrap:wrap !important;justify-content:center !important;height:auto !important;padding:10px 0 !important;}.menu li{float:none !important;margin:5px !important;}#cn{width:100% !important;float:none !important;}#sd{width:100% !important;float:none !important;margin-top:20px;}.peliculas{display:flex !important;flex-wrap:wrap !important;justify-content:space-around !important;padding:0 !important;}.peli_bx{width:45% !important;height:auto !important;margin-bottom:15px !important;}.peli_img_img,.peli_img_img a,.peli_img_img img{width:100% !important;height:auto !important;}.peli_txt{display:none !important;}.movie-details-flex{display:flex;flex-direction:column;align-items:center;}.movie-poster-col{width:100%;max-width:250px;margin:0 auto 15px auto;}.movie-info-col{width:100%;}.dtalist li{font-size:13px !important;white-space:normal;word-wrap:break-word;}.pel_tra_bnr,.pel_tra2,.tab_container,.video-cover,.bkcontentint,.content,.intsd{width:100% !important;box-sizing:border-box;}.details .share{display:none !important;}}.bkpelsalf{background:#1e293b !important;border:1px solid #334155 !important;border-radius:12px !important;box-shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06) !important;padding:20px !important;}.bkpelsalf .titcnt{font-size:20px !important;font-weight:600 !important;color:#f8fafc !important;margin-bottom:20px !important;letter-spacing:0.5px !important;text-align:center !important;}.bkpelsalf .bkpelsalf_ul{border:none !important;box-shadow:none !important;background:transparent !important;}.bkpelsalf ul.lstinl{display:flex !important;flex-wrap:wrap !important;justify-content:center !important;gap:8px !important;background:transparent !important;border:none !important;}.bkpelsalf ul.lstinl li{display:block !important;margin:0 !important;}.bkpelsalf ul.lstinl li a{display:flex !important;align-items:center !important;justify-content:center !important;min-width:36px !important;height:36px !important;padding:0 10px !important;background:#334155 !important;color:#f8fafc !important;border-radius:8px !important;font-size:15px !important;font-weight:600 !important;text-decoration:none !important;transition:all 0.2s ease-in-out !important;box-sizing:border-box !important;}.bkpelsalf ul.lstinl li a:hover{background:#3b82f6 !important;color:#ffffff !important;transform:translateY(-2px) !important;box-shadow:0 4px 12px rgba(59,130,246,0.4) !important;}.bkpelsalf ul.lstinl li a:before,.bkpelsalf ul.lstinl li a .before{display:none !important;}body.dark-theme .bkpelsalf{background:#0f172a !important;border-color:#1e293b !important;}body.dark-theme .bkpelsalf ul.lstinl li a{background:#1e293b !important;}body.dark-theme .bkpelsalf ul.lstinl li a:hover{background:#3b82f6 !important;}.btn-home{display:inline-block !important;background:linear-gradient(135deg,#3b82f6,#2563eb) !important;color:#ffffff !important;font-size:16px !important;font-weight:600 !important;padding:12px 28px !important;border-radius:30px !important;text-decoration:none !important;box-shadow:0 4px 14px rgba(37,99,235,0.3) !important;transition:all 0.3s ease !important;letter-spacing:0.5px !important;border:none !important;}.btn-home:hover{transform:translateY(-2px) !important;box-shadow:0 6px 20px rgba(37,99,235,0.4) !important;color:#ffffff !important;}body.dark-theme .btn-home{box-shadow:0 4px 14px rgba(0,0,0,0.4) !important;}.swiper-estrenos{width:100% !important;padding:10px 0 20px 0 !important;overflow:hidden !important;}.swiper-wrapper{align-items:stretch !important;}.swiper-slide{height:auto !important;display:flex !important;justify-content:center !important;}.swiper-slide .peli_img{width:100% !important;display:flex !important;}.swiper-slide .peli_img_img{width:100% !important;display:flex !important;}.swiper-slide .peli_img_img a{width:100% !important;display:block !important;}.swiper-slide .peli_img_img img{width:100% !important;height:auto !important;object-fit:cover !important;aspect-ratio:2 / 3 !important;border-radius:6px !important;display:block !important;}

/* ==========================================================================
   Modern Movie Detail (ver.tpl) 
   ========================================================================== */
.movie-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #0f1115;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.movie-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    filter: blur(15px) brightness(0.4);
    transform: scale(1.1);
    z-index: 0;
}

.movie-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 30px;
    padding: 30px;
    align-items: stretch;
    background: linear-gradient(to right, rgba(15,17,21,0.95) 0%, rgba(15,17,21,0.7) 100%);
}

.movie-poster {
    flex-shrink: 0;
    width: 220px;
}

.movie-poster img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    display: block;
}

.movie-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.movie-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.movie-title a {
    color: #fff !important;
    text-decoration: none;
}

.movie-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.movie-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-pill.quality {
    background: #007bff;
    border-color: #007bff;
}

.movie-pill.imdb {
    background: #f5c518;
    color: #000;
    border-color: #f5c518;
    text-shadow: none;
}

.movie-synopsis {
    font-size: 15px;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.btn-modern {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-download {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 65, 108, 0.6);
}

.btn-trailer {
    background: rgba(255,255,255,0.1);
    color: white !important;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.btn-trailer:hover {
    background: rgba(255,255,255,0.2);
}

.movie-crew {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.crew-member {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1c23;
    padding: 8px 15px 8px 8px;
    border-radius: 40px;
    border: 1px solid #2a2d35;
}

.crew-member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.crew-info {
    display: flex;
    flex-direction: column;
}

.crew-role {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: bold;
}

.crew-name {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .movie-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .movie-poster {
        width: 160px;
    }
    
    .movie-pills {
        justify-content: center;
    }
    
    .movie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .movie-synopsis {
        -webkit-line-clamp: 4;
    }
}

/* ========================================== */
/* 🚀 MEJORAS VISUALES CONSERVADORAS CSS3 🚀 */
/* ========================================== */

/* 1. Suavizar bordes (Modernizar sin romper) */
.bgdeg1, .bgdeg2, .menu a, .btn_g, .btn_r, .bkcnpels, .bkcnt, .bkcnt2, .intsd, .bk_tit, .titbkcnt {
    border-radius: 8px !important;
}

/* === REDISEÑO DE TARJETAS DE PELÍCULAS (Netflix Style) === */
.peliculas {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !important;
}
.peli_bx {
    background: #111 !important;
    border: none !important;
    padding: 0 !important;
    width: 175px !important;
    height: 268px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 0 15px 0 !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
}

.peli_bx:hover {
    transform: scale(1.06) translateY(-4px) !important;
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

/* La imagen cubre todo */
.peli_bx .peli_img_img, .peli_bx .peli_img_img a, .peli_bx .peli_img_img a img {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    margin: 0 !important;
}

/* El título flotante en la parte inferior */
.peli_bx .titpeli {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 30px 15px 12px 15px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%) !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.peli_bx .titpeli a {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Quitar icono molesto de antes de los titulos */
.peli_bx .titpeli:before, .peli_bx .titpeli .before, .peli_bx::after, .peli_bx .after {
    display: none !important;
}

/* Ocultar el panel blanco raro de hover original */
.peli_txt {
    display: none !important;
}

/* 3. Botones más limpios */
.frmsrch .bginptxt .inp_txt {
    border-radius: 20px;
    padding: 0 10px;
}
.frmsrch .inpbtnp .inp_btn {
    border-radius: 20px;
    background: linear-gradient(180deg, #319BE0 0%, #1e70a6 100%) !important;
    color: #e2e8f0 !important;
}
body.dark-theme .bgf, body.dark-theme .all {
    background: transparent !important;
}
body.dark-theme .bkcnpels, body.dark-theme .bkpelsalf {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3) !important;
}
body.dark-theme .titbkcnt {
    background: #0f172a !important;
    color: #f8fafc !important;
}
body.dark-theme .menu a {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-theme .menu a:hover {
    background: #3b82f6 !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
body.dark-theme .btn_g {
    border: 1px solid #2a2d35;
}

.crew-member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.crew-info {
    display: flex;
    flex-direction: column;
}

.crew-role {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: bold;
}

.crew-name {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .movie-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .movie-poster {
        width: 160px;
    }
    
    .movie-pills {
        justify-content: center;
    }
    
    .movie-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .movie-synopsis {
        -webkit-line-clamp: 4;
    }
}

/* ========================================== */
/* 🚀 MEJORAS VISUALES CONSERVADORAS CSS3 🚀 */
/* ========================================== */

/* 1. Suavizar bordes (Modernizar sin romper) */
.bgdeg1, .bgdeg2, .menu a, .btn_g, .btn_r, .bkcnpels, .bkcnt, .bkcnt2, .intsd, .bk_tit, .titbkcnt {
    border-radius: 8px !important;
}

/* === REDISEÑO DE TARJETAS DE PELÍCULAS (Netflix Style) === */
.peliculas {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 15px !important;
}
.peli_bx {
    background: #111 !important;
    border: none !important;
    padding: 0 !important;
    width: calc(25% - 11.25px) !important;
    height: auto !important;
    aspect-ratio: 175 / 268 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 0 15px 0 !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1) !important;
}

.peli_bx:hover {
    transform: scale(1.06) translateY(-4px) !important;
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
}

/* La imagen cubre todo */
.peli_bx .peli_img_img, .peli_bx .peli_img_img a, .peli_bx .peli_img_img a img {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    margin: 0 !important;
}

/* El título flotante en la parte inferior */
.peli_bx .titpeli {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 30px 15px 12px 15px !important;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%) !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.peli_bx .titpeli a {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Quitar icono molesto de antes de los titulos */
.peli_bx .titpeli:before, .peli_bx .titpeli .before, .peli_bx::after, .peli_bx .after {
    display: none !important;
}

/* Ocultar el panel blanco raro de hover original */
.peli_txt {
    display: none !important;
}

/* 3. Botones más limpios */
.frmsrch .bginptxt .inp_txt {
    border-radius: 20px;
    padding: 0 10px;
}
.frmsrch .inpbtnp .inp_btn {
    border-radius: 20px;
    background: linear-gradient(180deg, #319BE0 0%, #1e70a6 100%) !important;
    color: transparent !important;
}
.frmsrch .inpbtnp { position: relative; }
.frmsrch .inpbtnp::after {
    content: "BUSCAR" !important;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: white; font-size: 13px; font-weight: bold; pointer-events: none;
}

/* 4. Efectos Glassmorphism (Header) eliminados a peticion del usuario */

/* === MODO OSCURO MEJORADO (Slate/Azul noche) === */
body.dark-theme {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}
body.dark-theme .bgf, body.dark-theme .all {
    background: transparent !important;
}
body.dark-theme .bkcnpels, body.dark-theme .bkpelsalf {
    background: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3) !important;
}
body.dark-theme .titbkcnt {
    background: #0f172a !important;
    color: #f8fafc !important;
}
body.dark-theme .menu a {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}
body.dark-theme .menu a:hover {
    background: #3b82f6 !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
body.dark-theme .btn_g {
    background: #3b82f6 !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
body.dark-theme .btn_g:hover {
    background: #2563eb !important;
}

/* Fix title colors in light/dark mode */
.tit_cnt {
    color: #1e293b !important;
}
body.dark-theme .tit_cnt {
    color: #f8fafc !important;
}

/* Make legal container text white to contrast with dark blue background */
.legal-container, .legal-container h1, .legal-container h2, .legal-container h3, .legal-container strong {
    color: #fff !important;
}

/* Containers in Dark Mode */
body.dark-theme .bkcnpels, body.dark-theme .bkcnt, body.dark-theme .bkcnt2, body.dark-theme .bkcontentint {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3) !important;
}
body.dark-theme .bkcnpels h1, body.dark-theme .bkcnpels h2, body.dark-theme .bkcnpels h3 {
    color: #f8fafc !important;
}

/* Eliminar imagen de fondo del header original */
#hd { background: transparent !important; }

/* Breadcrumb / Ruta de navegación */
.breadcrumb-nav {
    font-size: 14px;
    margin-bottom: 15px;
    color: #64748b;
    margin-left: 5px;
}
.breadcrumb-nav a {
    color: #3b82f6 !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.breadcrumb-nav a:hover {
    color: #60a5fa !important;
}
.breadcrumb-nav span {
    color: #94a3b8;
}
body.dark-theme .breadcrumb-nav {
    color: #94a3b8;
}
body.dark-theme .breadcrumb-nav span:last-child {
    color: #f8fafc;
    font-weight: 500;
}
