/* ============================================================
   COMPUCALITV THEME - CSS PRINCIPAL
   Fiel al diseño original de compucalitv.tv
   ============================================================ */

/* --- RESET & BASE --- */
*, *:before, *:after { box-sizing: border-box; }
*, *:focus { margin: 0; outline: none; box-shadow: none; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { border: none; font: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; padding: 0; }
a { text-decoration: none; }
#root, #__next { isolation: isolate; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030616; }
::-webkit-scrollbar-thumb { background: var(--color1); border: 1px solid var(--color2); border-radius: 16px; }
::-webkit-scrollbar-thumb:hover { background: var(--color2); }
svg defs { position: absolute; width: 0; height: 0; pointer-events: none; }

/* --- GRID --- */
.container { width: 100%; position: relative; margin: 0 auto; max-width: 1200px; }
.row { display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.row *[class^=col-] { padding: 10px; }
.col-1  { flex: 0 0 8.3333%;   max-width: 8.3333%; }
.col-2  { flex: 0 0 16.6667%;  max-width: 16.6667%; }
.col-3  { flex: 0 0 25%;       max-width: 25%; }
.col-4  { flex: 0 0 33.3333%;  max-width: 33.3333%; }
.col-5  { flex: 0 0 41.6667%;  max-width: 41.6667%; }
.col-6  { flex: 0 0 50%;       max-width: 50%; }
.col-7  { flex: 0 0 58.3333%;  max-width: 58.3333%; }
.col-8  { flex: 0 0 66.6667%;  max-width: 66.6667%; }
.col-9  { flex: 0 0 75%;       max-width: 75%; }
.col-10 { flex: 0 0 83.3333%;  max-width: 83.3333%; }
.col-11 { flex: 0 0 91.6667%;  max-width: 91.6667%; }
.col-12 { flex: 0 0 100%;      max-width: 100%; }

@media (max-width: 479.98px) {
    .col-xs-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-xs-12 { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 480px) and (max-width: 767.98px) {
    .col-sm-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
    .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

/* --- GRID ARCHIVO (réplica referencia: 2/3/4/6 columnas) --- */
.col-xs-6 { flex: 0 0 50%; max-width: 50%; }
@media (min-width: 480px) {
    .col-sm-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}
@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
}
@media (min-width: 1200px) {
    .col-xl-2 { flex: 0 0 16.6667%; max-width: 16.6667%; }
}

/* --- CSS VARIABLES --- */
:root {
    --text-color: #e9ebee;
    --color1: rgb(0, 43, 231);
    --color2: #007aff;
    --color3: #F24E17;
    --grad: 90deg;
    --main-gradient: linear-gradient(var(--grad), var(--color1) 0%, var(--color2) 100%);
    --universe-gradient: radial-gradient(1600px at 70% 120%, #030616 10%, #020409 100%);
    --body-background: #030616;
    --body-main-color: #e9ebee;
    --navbar-background: linear-gradient(to bottom, rgb(0 0 0 / 30%), transparent);
    --input-background: #030616;
    --input-border: 1px solid #181b20;
    --input-placeholder-color: #999;
    --document-brightness: .85;
    --transition: cubic-bezier(.5, 2.5, .7, .7);
}

/* --- TIPOGRAFIA --- */
@font-face {
    font-family: BRCandor-Bold;
    src: url('../fonts/BRCandor-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: BRCandor-Medium;
    src: url('../fonts/BRCandor-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: BRCandor-Regular;
    src: url('../fonts/BRCandor-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: BRCandor-SemiBold;
    src: url('../fonts/BRCandor-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* --- BODY --- */
body {
    font-family: BRCandor-Regular, sans-serif;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body-main-color);
    text-align: left;
    background-color: var(--body-background);
    opacity: var(--document-brightness);
}
button, a { transition: all .6s cubic-bezier(.5, 2.5, .7, .7); }
a:hover, button:hover { color: var(--text-color); filter: brightness(1.1); }
a:active, button:active { transform: scale(.96); }

/* --- LAYOUT --- */
.section, .main_container { width: 100%; max-width: 1200px; margin: 0 auto; }

/* ============================================================
   HEADER
   ============================================================ */
header {
    display: block;
    position: relative;
    width: 100%;
    background: var(--navbar-background);
    padding: 15px;
    z-index: 9;
}
header .main_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* BRAND / LOGO */
.footer .brand, header .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 215px;
    height: 36px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.footer .lgb, header .lgb {
    width: 40px;
    height: 60px;
    position: relative;
}
@keyframes hdo {
    0% { margin-top: 5px; }
    50% { margin-top: 8px; }
    to { margin-top: 5px; }
}
.footer .lgb canvas, header .lgb canvas {
    z-index: 1;
    width: 40px;
    height: 60px;
    position: relative;
    display: block;
}
.footer .lgb .arrow, header .lgb .arrow {
    width: 25px;
    height: auto;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 2px;
    animation: hdo 1s linear infinite;
    z-index: 0;
}
/* BRAND LOGO IMG */
.brand img.cctv-logo { height: 38px; width: auto; max-width: 230px; object-fit: contain; }
.brand span {
    flex: 1;
    font-size: 30px;
    text-transform: capitalize;
    letter-spacing: 1px;
    color: var(--text-color);
    text-shadow: -1px 0, 0 1px, 1px 0, 0 -1px, -1px -1px, 1px 1px, -1px 1px, 1px -1px;
    font-weight: 100;
}

/* USER MENU */
.user_menu { display: flex; align-items: center; gap: 10px; }
/* Header single: nav dentro de .main_menu junto al brand (réplica referencia) */
header .main_menu { flex: 1; gap: 28px; }
header .main_menu nav ul { justify-content: flex-start; }
.user_menu .btnlink {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.user_menu .btnlink span { font-size: 15px; line-height: 17px; }
.user_menu .btnlink svg { width: auto; height: 26px; }

/* MV MENU (hamburguesa móvil) */
.mv-menu { display: none; }
.mv-menu svg { width: auto; height: 32px; cursor: pointer; }

/* ============================================================
   HERO / SUBMENU
   ============================================================ */
iframe.hero {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    background: transparent;
    display: block;
}
.submenu {
    margin-top: -70px;
    position: relative;
    height: calc(25vh + 70px);
    margin-bottom: 20px;
    min-height: 340px;
}
.submenu-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: end;
    justify-content: end;
    flex-direction: column;
}
.submenu-overlay .main_container.ov {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}

/* BUSCADOR */
.main_search {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 40px;
    width: 530px;
    max-width: calc(100% - 15px);
}
.main_search input {
    background: var(--input-background);
    border: var(--input-border);
    padding: 10px 15px;
    width: 100%;
    color: var(--text-color);
    border-radius: 4rem;
}
.main_search input::placeholder { color: var(--input-placeholder-color); }
.main_search button {
    position: absolute;
    right: -2px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main_search button svg { width: auto; height: 28px; }
.search_title {
    color: var(--text-color);
    text-align: center;
    display: block;
    margin-bottom: 20px;
}

/* ============================================================
   NAVEGACIÓN / MENÚ
   ============================================================ */
.main_menu {
    display: flex;
    align-items: center;
    justify-content: start;
    position: relative;
}
.main_menu nav, .submenu-overlay nav {
    position: relative;
    width: 100%;
    display: block;
    padding: 0 15px;
}
.main_menu nav ul, .submenu-overlay nav ul {
    display: flex;
    position: relative;
    gap: 5px;
    width: 100%;
    margin: 0; padding: 0;
    justify-content: center;
}
.main_menu nav ul { gap: 20px; }
.main_menu nav ul li, .submenu-overlay nav ul li {
    position: relative;
    padding: 8px;
    display: block;
}
.main_menu nav ul li { padding: 2px; }
.main_menu nav ul li a, .submenu-overlay nav ul li a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

/* Efecto subrayado menú */
.menu-item { position: relative; overflow: hidden; }
.menu-item:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    width: 0;
    height: 2px;
    background: var(--color1);
    border-radius: 2rem;
    bottom: 0;
}
@keyframes bb { to { width: calc(100% - 5px); } }
.submenu-overlay nav ul li.menu-item:hover a,
.submenu-overlay nav ul li.menu-item.--active a {
    filter: brightness(1.5) !important;
    color: var(--color1);
}
.submenu-overlay nav ul li.menu-item:hover:before,
.menu-item.--active:before {
    animation: bb .6s var(--transition) forwards;
}

/* ============================================================
   WRAPPER / SECCIONES
   ============================================================ */
.wrapper { /*padding: 30px 15px;*/ min-height: 600px; }
.section {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    margin-bottom: 1rem;
    margin-top: 1rem;
}
.swiper-section { margin-bottom: 3rem; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-header h2 {
    font-size: 18px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header h2 svg { width: auto; height: 28px; }
.section-header h2 svg path { stroke: url(#gradient1); fill: url(#gradient1); }
.section-content { margin: 0; margin-top: -.5rem; position: relative; }

/* Botones prev/next swiper */
.section .prev, .section .next { background: none; border: none; cursor: pointer; padding: 0; }
.section .prev svg, .section .next svg { width: auto; height: 35px; fill: url(#gradient1); }
.section .prev svg { transform: scaleX(-1); }
.section-nav { display: flex; align-items: center; justify-content: end; }
.-shm {
    background: var(--color1);
    color: var(--text-color);
    border-radius: 4px;
    border: none;
    font-size: 14px;
    text-transform: capitalize;
    cursor: pointer;
    padding: 2px 8px;
    margin: 0 0 0 10px;
}

/* ============================================================
   CARDS DE PELÍCULAS
   ============================================================ */
.card { display: flex; flex-direction: column; gap: 5px; width: 100%; position: relative; }
.card-inner { position: relative; width: 100%; height: auto; display: block; }

/* Rating circle */
.card-inner svg.rating-circle {
    width: 35px !important;
    position: absolute;
    top: 0; right: 0;
    border-radius: 50%;
    margin: 2px 0 5px 5px;
    z-index: 1;
}

/* Imagen poster */
.card img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    object-fit: cover;
}
/* Placeholder SVG para cuando no hay imagen */
.card .card-poster-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 6px;
    background: linear-gradient(135deg, #0b0e24 0%, #131836 50%, #0e1226 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #3a4570;
    font-size: 11px;
    text-align: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
}
.card .card-poster-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--grad), rgba(0,43,231,0.08) 0%, rgba(0,122,255,0.05) 100%);
}
.card .card-poster-placeholder svg {
    width: 36px;
    height: 36px;
    opacity: 0.25;
    fill: var(--color2);
}
.card .card-poster-placeholder span {
    opacity: 0.5;
    font-size: 10px;
    line-height: 14px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges */
.card-inner .badget {
    position: absolute;
    top: 0; left: 0;
    font-size: 10px;
    font-weight: 700;
    margin: 5px;
    border-radius: 5px;
    color: var(--text-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    height: 20px;
    letter-spacing: .5px;
    background: var(--color1);
    z-index: 1;
}
.card-inner .badget.q { top: 25px; }
.card-inner .badget.b {
    top: auto;
    bottom: 0;
    background: linear-gradient(to right, var(--color1) 42%, var(--color3) 55%);
}

/* Footer de la card */
.card-f { display: flex; flex-direction: column; }
.card-g {
    flex: 1;
    width: 100%;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: pre;
    font-size: 12px;
    color: #b6b6b6;
    word-spacing: 1px;
    opacity: 1;
    padding: 0 2px 2px;
    margin-top: -3px;
    display: flex;
    align-items: center;
    justify-content: start;
}
.card a h3, .card h3 {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
    padding: 5px 5px 5px 2px;
    line-height: 18px;
    display: block;
    width: 100%;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-top: 7px;
}
.--s { display: block; margin: 0 6px; opacity: .5; transform: scaleY(-.4); }

/* Overlay hover play */
.cdiov {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0,0,0,.25);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    overflow: hidden;
    border-radius: 6px;
    opacity: 0;
    z-index: 0;
    transition: all .3s ease;
}
.card:hover .cdiov { opacity: 1; }
.card:hover img, .card:hover .card-poster-placeholder { transform: scale(1.01); opacity: .8; filter: blur(4px); }

/* Botón play animado */
.badgetplay {
    position: relative;
    width: 60px; height: 60px;
    display: block;
    border-radius: 50%;
}
.badgetplay:after, .badgetplay:before {
    background: linear-gradient(90deg, var(--color1), #097edf, var(--color3), #fff, #4bee03);
    background-size: 200%;
    border-radius: 50%;
    content: "";
    display: block;
    height: 100%; left: 0;
    position: absolute; top: 0; width: 100%;
}
@keyframes _rt { to { transform: rotate(1turn); } }
.badgetplay:after, .badgetplay:before { animation: _rt 3s linear infinite; }
.badgetplay:after { filter: blur(1.5rem); opacity: .65; z-index: 0; }
.bpc {
    background: #070e26;
    position: absolute;
    right: 0; bottom: 0;
    width: calc(100% - 5px);
    height: calc(100% - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
}
.bpc svg { height: 40px; width: auto; fill: var(--color1); transform: translate(2px); }

/* ============================================================
   SWIPER (slider horizontal)
   ============================================================ */
.swiper { overflow: hidden; width: 100%; }
.swiper-wrapper { display: flex; width: 100%; padding: 1rem 0; }
.swiper-slide { flex-shrink: 0; }
.toph { cursor: grab; }
.toph:active { cursor: grabbing; }

/* ============================================================
   SECCIÓN KOFI (promos / "Te puede interesar")
   ============================================================ */
.kofi {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-right: 0; border-left: 0;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.kofx {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--text-color);
    font-size: 22px;
    gap: 10px;
}
.kofx svg { width: 32px; height: auto; }
.kofi .card-f h3 { font-size: 18px; }
.kofi .container { position: relative; z-index: 1; }
.kofi iframe.hero { background: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #030616; position: relative; z-index: 21; }
.footer .container { padding-top: 20px; padding-bottom: 20px; letter-spacing: .02px; }
.footer-colours { width: 100%; height: 4px; background-color: var(--body-background); }
.footer-colors {
    width: 100%;
    height: 4px;
    background-color: var(--body-background);
    background-position: 0 0;
    background-repeat: repeat;
    background-image: repeating-linear-gradient(
        to right,
        #0b0c27, #0b0c27 50px,
        #1a1c3c 50px, #1a1c3c 100px,
        #252b45 100px, #252b45 150px,
        #33415c 150px, #33415c 200px,
        #405573 200px, #405573 250px,
        #56698c 250px, #56698c 300px,
        #404873 300px, #404873 350px
    );
    animation: animate-colors 200s infinite linear;
}
.colors-shadow {
    position: absolute;
    left: 0; right: 0; top: 2px;
    height: 30px;
    filter: blur(5px);
    opacity: .2;
}
@keyframes animate-colors {
    0% { background-position: 0 0; }
    to { background-position: 7000px 0; }
}
.copyright { line-height: 1.5; font-size: 14px; text-align: center; color: var(--text-color); }
.row.links { margin: 1rem auto; }
.row.links a {
    background: #091223;
    padding: 6px 15px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 100;
    color: var(--text-color);
    border-radius: 4px;
    width: 100%;
    display: block;
    text-align: center;
}
.footer-honour {
    background-color: #ffffff05;
    border-radius: 10px;
    width: 600px;
    max-width: calc(100% - 30px);
    margin: 15px auto 0;
}
.footer-honour .a-item { width: auto; flex-grow: 1; display: flex; justify-content: center; }
.footer-honour .item-wrap {
    display: flex;
    text-align: center;
    color: #69696f;
    position: relative;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.vfree {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-5px, 5px);
    font-weight: 600;
}
.lb.bdiv svg { width: auto; height: 40px; }
.rb.bdiv svg { width: auto; height: 40px; transform: scaleX(-1); }

/* ============================================================
   SIDEMENU MÓVIL
   ============================================================ */
.sidemenu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.5);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    z-index: 9999;
}
.sidemenu-overlay.open { opacity: 1; visibility: visible; }
.sidemenu {
    position: fixed;
    top: 0; left: 0;
    width: 300px; height: 100%;
    background: var(--body-background);
    box-shadow: 2px 0 5px rgba(0,0,0,.1);
    transform: translate(-100%);
    transition: transform .3s ease;
}
.sidemenu-overlay.open .sidemenu { transform: translate(0); }
.sidemenu-head {
    height: 65px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}
.sidemenu-content { height: calc(100vh - 65px); overflow-y: auto; padding: 15px; }
.sidemenu-content .user_menu.--fc,
.sidemenu-content .main_menu.--fc nav,
.sidemenu-content .main_menu.--fc {
    display: flex !important;
    flex-direction: column;
    align-items: baseline;
    gap: 0;
}
.sidemenu-content .main_menu.--fc nav ul { gap: 0; flex-direction: column; }
.sidemenu-content .main_menu.--fc nav ul li a { padding: 10px 15px; justify-content: flex-start; }
.sidemenu-content hr { opacity: .2; margin: 1rem 0; }
.sidemenu-content .user_menu.--fc .btnlink { width: 100%; padding: 10px 15px; }

/* ============================================================
   ARCHIVO (filtros Género/Año/Orden — réplica referencia)
   ============================================================ */
.--archive { padding-top: 6px; }
.cctv-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 4px; }
.cctv-filter { position: relative; }
.cctv-filter > button {
    background: transparent;
    border: 1px solid #2a3358;
    color: #dfe3ee;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cctv-filter > button svg { height: 12px; width: auto; fill: #8a93a8; }
.cctv-filter > button:hover { border-color: var(--color2); color: #fff; }
.cctv-filter-plain > button { border: none; padding: 8px 4px; font-weight: 400; color: #8a93a8; }
.cctv-filter-plain > button strong { color: #dfe3ee; font-weight: 600; }
.cctv-filter-drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    max-width: 260px;
    max-height: 300px;
    overflow-y: auto;
    background: #070b1e;
    border: 1px solid #1a2240;
    border-radius: 8px;
    z-index: 60;
    flex-direction: column;
    padding: 6px;
    box-shadow: 0 14px 40px rgba(0,0,0,.55);
}
.cctv-filter.open .cctv-filter-drop { display: flex; }
.cctv-filter-drop a {
    padding: 8px 12px;
    font-size: 13px;
    color: #c6cbd8;
    border-radius: 6px;
    white-space: nowrap;
}
.cctv-filter-drop a:hover { background: rgba(0,122,255,.15); color: #fff; }
.cctv-filter-drop a.--active { background: rgba(0,122,255,.25); color: #fff; font-weight: 700; }
.cctv-arch-count { font-size: 13px; color: #8a93a8; margin: 2px 0 12px; }

/* ============================================================
   BUSCADOR / HISTORIAL / MÁS VISTOS
   ============================================================ */
.cctv-search-hero { position: relative; margin-top: -70px; padding: 120px 15px 40px; overflow: hidden; background: var(--body-background); text-align: center; }
.cctv-search-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cctv-search-inner .search_title { font-size: 22px; margin-bottom: 14px; }
.cctv-search-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.cctv-search-tabs button {
    background: none; border: none; color: var(--text-color); opacity: .65;
    display: flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px;
    position: relative;
}
.cctv-search-tabs button svg { height: 20px; width: auto; }
.cctv-search-tabs button.--active { opacity: 1; color: var(--color2); }
.cctv-search-tabs button.--active:after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 0; width: calc(100% - 10px); height: 2px; background: var(--color1); border-radius: 2rem;
}
.cctv-search-hero .main_search { margin-bottom: 0; }
.cctv-page-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 1rem; }
.cctv-page-head h2 { font-size: 18px; color: var(--text-color); display: flex; align-items: center; gap: 10px; }
.cctv-ptabs { display: flex; gap: 8px; justify-content: center; margin-bottom: .5rem; flex-wrap: wrap; }
.cctv-ptabs a {
    color: var(--text-color); opacity: .65; padding: 6px 16px; font-size: 15px;
    position: relative; border-radius: 4px;
}
.cctv-ptabs a.--active { opacity: 1; background: var(--main-gradient); }
.cctv-empty { text-align: center; padding: 3rem 1rem; color: #8a93a8; }
.cctv-empty svg { width: 64px; height: 64px; margin: 0 auto 1rem; opacity: .25; }
.cctv-empty h2 { font-size: 17px; color: #c6cbd8; margin-bottom: .5rem; }
.cctv-empty p { font-size: 14px; }

/* ============================================================
   PÁGINAS ESTÁTICAS (.cctv-article — réplica referencia)
   ============================================================ */
.cctv-article { background: #0a0e23; padding: 20px 18px; font-size: 14px; color: #e9ebee; border-radius: 10px; width: 800px; max-width: 100%; margin: 1rem auto 2rem; }
.cctv-article h1 { color: var(--color1); font-size: 22px; line-height: 26px; padding-bottom: 10px; margin-bottom: 10px; margin-top: 6px; filter: brightness(1.6); }
.cctv-article h2 { color: var(--color1); font-size: 19px; line-height: 24px; padding-bottom: 6px; margin-top: 22px; margin-bottom: 8px; filter: brightness(1.6); }
.cctv-article h3 { color: var(--text-color); font-size: 16px; margin-top: 16px; margin-bottom: 6px; }
.cctv-article p, .cctv-article li { color: #b6cbdd; font-size: 14px; line-height: 22px; margin-bottom: 10px; }
.cctv-article ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.cctv-article a { color: var(--color3); }

/* ============================================================
   PAGINACIÓN
   ============================================================ */
.pagination {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    -webkit-user-select: none; user-select: none;
    font-weight: 600;
}
.pagination__link { flex-grow: 1; flex-shrink: 1; padding: 10px; color: inherit; text-align: center; }
.pagination__link.pagination__link--disabled { opacity: .4; pointer-events: none; }
.pagination__link.pagination__link--active { color: var(--color1); }
.pagination__link.pagination__link--ellipsis { pointer-events: none; opacity: .6; }
.pagination__link.prev svg, .pagination__link.next svg { width: auto; height: 28px; }
.pagination__link.next svg { transform: scaleX(-1); }

/* ============================================================
   GRAD (decorativo)
   ============================================================ */
.grad { background: var(--color1); background: var(--main-gradient); color: var(--text-color); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .user_menu { display: none; }
    .mv-menu { display: block; }
}
@media (max-width: 768px) {
    .main_menu nav, .user_menu { display: none; }
    .mv-menu { display: block; }
    .wrapper { padding: 0 15px 30px; }
    .wrapper.p-home { padding-top: 0; }
}
.--mv { display: none; }
.--pc { display: inline-block; }

@media (max-width: 479.98px) {
    .user_menu { display: none; }
    .mv-menu { display: block; }
    .submenu-overlay .main_container nav ul li.menu-item { padding: 5px 10px; }
    .submenu-overlay .main_container nav ul li.menu-item a {
        display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 0;
    }
    .--mv { display: flex; }
    .--pc { display: none; }
    .section-header h2 span { font-size: 16px; line-height: 20px; }
}

/* ============================================================
   SINGLE PELÍCULA — réplica compucalitv.tv/peliculas/*
   ============================================================ */
.cctv-breadcrumbs { max-width: 1200px; margin: 0 auto; padding: 14px 15px 0; font-size: 13px; color: #8a93a8; }
.cctv-breadcrumbs a { color: #b6b6b6; }
.cctv-breadcrumbs a:hover { color: var(--color2); }
.cctv-breadcrumbs .sep { margin: 0 6px; opacity: .5; }

/* HERO */
.cctv-hero { position: relative; margin-top: -70px; padding: 110px 15px 26px; overflow: hidden; background: var(--body-background); }
.cctv-hero-bg { position: absolute; inset: 0; z-index: 0; }
.cctv-hero-bg iframe.hero { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; background: transparent; display: block; }
.cctv-hero-inner { position: relative; z-index: 1; display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; }
.cctv-hero-main { display: flex; gap: 0; flex: 1; min-width: 0; flex-direction: row; }
/* Poster: 33.333% en mobile, 240px fijos desde 768px (réplica referencia) */
.cctv-hero-poster { flex: 0 0 33.3333%; width: 33.3333%; }
.cctv-hero-poster img#cctv-cover { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.cctv-hero-info { flex: 1; min-width: 0; padding-left: 15px; }
/* Título: 22px mobile, 20px ≤480px, 28px ≥768px (réplica) */
.cctv-hero-title { font-size: 22px; line-height: 26px; color: #fff; font-weight: 600; margin-bottom: 12px; }
.cctv-genres { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cctv-genres .btgb { background: var(--color2); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 4px; letter-spacing: .3px; }
.cctv-genres .btgb:hover { filter: brightness(1.2); color: #fff; }
.cctv-synopsis p { color: #c6cbd8; font-size: 15px; line-height: 1.65; max-width: 640px; }
.cctv-info-box { margin-top: 12px; max-width: 640px; font-size: 14px; }
.cctv-info-title { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #fff; margin-bottom: 10px; }
.cctv-info-title svg { height: 20px; width: auto; fill: url(#gradient1); }
.cctv-info-box ul { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.cctv-info-box li .k { color: #8a93a8; }
.cctv-info-box li span:last-child { color: #dfe3ee; }

/* Side: logo + rating + QR */
/* Side: panel claro translúcido como la referencia */
.cctv-hero-side { flex: 0 0 230px; width: 230px; background: rgb(199 199 199 / 15%); border-radius: 10px; padding: 15px; margin-top: 5px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cctv-side-logo { max-width: 170px; max-height: 90px; object-fit: contain; }
.cctv-side-rating { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cctv-tmdb-label { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 1.5px; color: #8a93a8; text-transform: uppercase; }
.cctv-tmdb-label svg { height: 16px; width: auto; }
.cctv-side-rating svg.rating-circle { width: 60px !important; }
.cctv-side-qr img { border-radius: 6px; background: #fff; padding: 4px; }
.cctv-side-qr p { font-size: 12px; color: #8a93a8; margin-top: 6px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* GRID cuerpo */
.wrapper.p-single { padding-top: 10px; }
.cctv-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cctv-single-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cctv-single-side { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cctv-muted { color: #8a93a8; font-size: 14px; }

/* ============================================================
   TRÁILER + MODAL (réplica referencia)
   ============================================================ */
.cctv-trailer { position: relative; border-radius: 10px; overflow: hidden; background: #000; margin-bottom: 6px; aspect-ratio: 21/9; max-height: 230px; }
.cctv-trailer img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; }
.cctv-trailer .fWrNhH.trailer {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: 6px; font-size: 14px; cursor: pointer;
    text-transform: uppercase;
}
.cctv-trailer .fWrNhH.trailer .t { font-weight: 700; }
.cctv-trailer .fWrNhH.trailer svg { height: 16px; width: auto; }
.cctv-portal {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,.85); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    padding: 20px;
}
.cctv-portal[hidden] { display: none; }
.cctv-portal-close { display: flex; align-items: center; gap: 8px; color: #fff; cursor: pointer; margin-bottom: 10px; width: 100%; max-width: 1100px; justify-content: flex-end; }
.cctv-portal-close svg { height: 28px; width: auto; }
.cctv-portal-close .esc { font-size: 12px; letter-spacing: 1px; opacity: .7; }
.cctv-portal-box { width: 100%; max-width: 1100px; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.cctv-portal-frame { width: 100%; height: 100%; border: none; }

/* ============================================================
   DESCARGAS */
.cctv-season[hidden] { display: none !important; }
.cctv-season .section-header { margin-bottom: 1rem; }
.cctv-season-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 16px; }
.cctv-season-title span { color: var(--text-color); font-weight: 600; }
#cctv-season-select {
    background: #0a0f24; color: #fff; border: 1px solid var(--color1);
    border-radius: 6px; padding: 8px 12px; font-size: 14px; max-width: 100%;
}
.cctv-eps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 1rem; }
.cctv-ep { position: relative; display: flex; flex-direction: column; gap: 4px; border-radius: 8px; }
.cctv-ep-media { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: rgb(199 199 199 / 15%); }
.cctv-ep-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cctv-ep-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8a93a8; font-size: 13px; }
.cctv-ep-media .cdiov { border-radius: 8px; }
.cctv-ep:hover .cdiov { opacity: 1; }
.cctv-ep-tt { color: var(--text-color); font-size: 14px; text-transform: lowercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cctv-ep-l { color: #8a93a8; font-size: 12px; }

/* Episodio sin descargas — no clickeable */
.cctv-ep--proximamente { cursor: default; opacity: .65; }
.cctv-ep-soon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .6);
    color: #fff; font-size: 13px; font-weight: 500;
    text-align: center; padding: 8px;
    border-radius: 8px;
}


@media (max-width: 480px) {
    .cctv-eps-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cctv-season-title { flex-direction: column; align-items: start; width: 100%; }
    #cctv-season-select { width: 100%; }
}

/* ============================================================
   DESCARGAS */
.cctv-dl-list { display: flex; flex-direction: column; gap: 14px; }
.cctv-dl-card { display: flex; gap: 16px; background: #070b1e; border: 1px solid #1a2240; border-radius: 10px; padding: 16px; }
.cctv-dl-icon { flex: 0 0 64px; display: flex; align-items: flex-start; justify-content: center; }
.cctv-dl-icon svg { width: 56px; height: 56px; fill: #8a93a8; }
.cctv-dl-body { flex: 1; min-width: 0; }
.cctv-dl-body h3 { font-size: 15px; color: #fff; margin-bottom: 10px; }
.cctv-dl-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.cctv-dl-meta > div { background: #0a0f24; border: 1px solid #1a2240; border-radius: 6px; padding: 6px 4px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.cctv-dl-meta .v { font-size: 12.5px; font-weight: 700; color: #fff; }
.cctv-dl-meta .l { font-size: 10.5px; color: #8a93a8; }
.cctv-dl-links { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
/* Filas de enlace estilo referencia: servidor | peso | botón descargar */
.--tr-g { background: var(--color1); background: var(--main-gradient); padding: 1px; border-radius: 4px; width: 100%; }
.--tr { display: flex; flex-direction: row; width: 100%; padding: 6px 5px; background: #0a0f24; font-size: 14px; border-radius: 4px; align-items: center; }
.--tr-s { width: 110px; text-overflow: ellipsis; white-space: nowrap; display: block; overflow: hidden; padding: 5px; color: var(--text-color); }
.--tr-p { width: 70px; text-overflow: ellipsis; white-space: nowrap; display: block; overflow: hidden; padding: 5px; color: #8a93a8; font-size: 12px; }
.--tr-l { flex: 1; width: 100%; display: flex; justify-content: end; }
.--tr-dw { background: var(--color1); background: var(--main-gradient); color: var(--text-color); width: 100px; display: flex; align-items: center; justify-content: space-between; padding: 4px 5px; border-radius: 4px; font-weight: 100; font-size: 13px; }
.--tr-dw:hover { color: #fff; filter: brightness(1.2); }
.--tr-dw svg { width: 20px; height: auto; }

/* GALERÍA + RELACIONADAS */
#cctv-galeria .swiper { border-radius: 10px; overflow: hidden; }
#cctv-galeria img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.cctv-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

@media (min-width: 768px) {
    .cctv-hero-poster { flex-basis: 240px; width: 240px; }
    .cctv-hero-info { padding-left: 25px; }
    .cctv-hero-title { font-size: 28px; line-height: 32px; }
    .cctv-hero-side { padding: 25px; margin-top: 0; }
}
@media (max-width: 992px) {
    .cctv-hero-inner { flex-direction: column; }
    .cctv-hero-side { width: 100%; flex: none; }
    .cctv-single-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .cctv-single-grid { padding: 0 15px; }
    .cctv-genres { margin-top: 5px; margin-bottom: 5px; }
    .cctv-synopsis p { font-size: 15px !important; line-height: 18px; }
    .cctv-dl-icon { display: none; }
    .cctv-dl-body h3 { text-align: center; }
    .cctv-dl-meta { grid-template-columns: 1fr 1fr; }
    .cctv-dl-card { gap: 10px; padding: 12px; }
}
@media (max-width: 480px) {
    .cctv-hero-title { font-size: 20px; }
    .cctv-info-box { display: none; }
    .wrapper.p-single { padding: 0; }
}


/* ── Barra contraseña descargas ───────────────────────────── */
.cctv-password-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    margin: 0 0 16px;
    flex-wrap: wrap;
}
.cctv-pw-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--color2, #007aff);
    white-space: nowrap;
    font-weight: 600;
}
.cctv-pw-value {
    font-family: monospace;
    font-size: .95rem;
    color: #fff;
    background: rgba(255,255,255,.08);
    padding: 3px 10px;
    border-radius: 5px;
    letter-spacing: .04em;
    user-select: all;
}
.cctv-pw-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border: 1px solid var(--color2, #007aff);
    background: transparent;
    color: var(--color2, #007aff);
    border-radius: 6px;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.cctv-pw-copy:hover {
    background: var(--color2, #007aff);
    color: #fff;
}
