/* ============================================================
   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 --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

@font-face {
    font-family: BRCandor-Bold;
    src: local('Outfit Bold');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: BRCandor-Medium;
    src: local('Outfit Medium');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: BRCandor-Regular;
    src: local('Outfit Regular');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: BRCandor-SemiBold;
    src: local('Outfit SemiBold');
    font-weight: 600;
    font-style: normal;
}

/* --- BODY --- */
body {
    font-family: 'Outfit', 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% - 80px);
}

.cctv-search-hero .main_search {
    max-width: calc(100% - 200px);
}
.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;
    margin-top: 5px;
}

/* ============================================================
   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%);
}

/* ── Cards horizontales: episodios de estreno ───────────────── */
.cctv-ep-swiper .swiper-slide {
    width: 260px;
}
@media (max-width: 480px) {
    .cctv-ep-swiper .swiper-slide { width: 200px; }
}
.cctv-ep-card .card-inner.cctv-ep-card__still {
    border-radius: 6px;
    overflow: hidden;
}
.cctv-ep-card .card-inner.cctv-ep-card__still img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}
.cctv-ep-card .card-inner .badget.b {
    bottom: 0;
    left: 0;
    top: auto;
}
/* Footer de la card */
.card-f { display: flex; flex-direction: column; }
.card-g {
    flex: 1;
    width: 100%;
    font-size: 12px;
    color: #b6b6b6;
    word-spacing: 1px;
    opacity: 1;
    padding: 0 2px 2px;
    margin-top: -3px;
    display: flex;
    align-items: flex-start;
    justify-content: start;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}
.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%;
    white-space: normal;
    overflow: visible;
    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: 6px 10px; }
.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; fill: #fff; }
.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-ph--cover::before { content: ''; position: absolute; inset: -5px; background-image: var(--ep-cover); background-size: cover; background-position: center; filter: blur(4px); z-index: 0; }
.cctv-ep-ph--cover::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 0; }
.cctv-ep-ph-n { position: relative; z-index: 1; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: .05em; text-shadow: 0 2px 8px rgba(0,0,0,.9), 0 0 24px rgba(0,0,0,.6); }
.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; }

#cctv-galeria .section-content { position: relative; }
#cctv-galeria .--gi { width: 100%; height: 100%; }

/* Wrapper que contiene swiper + barras pegadas a él */
#cctv-galeria .cctv-gal-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

/* Barras de progreso */
#cctv-galeria .progress-bar {
    position: absolute;
    bottom: 13px; left: 0;
    width: 100%; height: 3px;
    background: transparent;
    z-index: 10;
    overflow: hidden;
    pointer-events: none;
}
#cctv-galeria .progress-bar.top {
    bottom: auto; top: 13px;
}
#cctv-galeria .progress-bar .progress {
    height: 100%;
    width: var(--progress, 0%);
    background: var(--main-gradient);
}
/* La barra de arriba corre de derecha a izquierda */
#cctv-galeria .progress-bar.top .progress {
    margin-left: auto;
    margin-right: 0;
}
.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;
}


/* ============================================================
   TRENDING — cards numeradas
   ============================================================ */
.cctv-trending-section { margin-bottom: 2.5rem; }

.cctv-trending-slide {
    position: relative;
    padding-bottom: 0; /* el número se superpone al póster, no ocupa espacio extra */
}

.cctv-trending-num {
    position: absolute;
    bottom: 40px;
    left: 0;
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    z-index: 3;
    pointer-events: none;
    user-select: none;
    /* El gradiente dorado sigue siendo el fondo base del texto */
   background: none;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3px var(--color1);
    paint-order: stroke fill;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.85));
    font-family: BRCandor-Regular, sans-serif;
}

/* Pseudo-elemento que pone el cover POR ENCIMA del gradiente, enmascarado al texto */
.cctv-trending-num::after {
    content: attr(data-num);       /* necesitás pasar el número como data-num también */
    position: absolute;
    inset: 0;
    background-image: var(--cover-img);
    background-size: cover;
    background-position: center top;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* mezcla suave con el gradiente de abajo */
    mix-blend-mode: normal;
    opacity: 1;
    pointer-events: none;
}

/* El .card con margen izquierdo para que el número asome por la izquierda */
.cctv-trending-slide .card {
    position: relative;
    z-index: 2;
    margin-left: 22px; /* el número asoma ~22px desde el borde izquierdo del cover */
}

/* En móvil los números se reducen */
@media (max-width: 480px) {
    .cctv-trending-num { font-size: 68px; bottom: 54px; }
    .cctv-trending-slide .card { margin-left: 14px; }
    .cctv-trending-slide { padding-bottom: 0; }
}

/* === Espacio extra bajo section-header en descargas y relacionadas === */
.cctv-section-gap .section-header {
    margin-bottom: 1.25rem;
}

/* === Sinopsis leer más/menos === */
.cctv-syn-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-left: .3em;
    font-size: .85em;
    font-weight: 600;
    color: var(--color2, #007aff);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cctv-syn-toggle:hover { opacity: .8; }

/* === Badge temporada x episodio === */
.cctv-ep-badge {
    display: inline-block;
    margin-left: .5rem;
    padding: .15em .55em;
    font-size: .55em;
    font-weight: 700;
    letter-spacing: .03em;
    color: #fff;
    background: var(--color1, rgb(0,43,231));
    border-radius: 4px;
    vertical-align: middle;
    line-height: 1.6;
}

/* === Bloque SEO home === */
.cctv-seo-block {
    background: #0a0a0f;
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 3rem 0 2.5rem;
    margin-top: 3rem;
}
.cctv-seo-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    color: rgba(255,255,255,.55);
    font-size: .875rem;
    line-height: 1.7;
}
.cctv-seo-inner h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,.75);
    margin: 0 0 1rem;
}
.cctv-seo-inner h3 {
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255,255,255,.65);
    margin: 1.5rem 0 .4rem;
}
.cctv-seo-inner p {
    margin: 0 0 .75rem;
}
.cctv-seo-inner a {
    color: var(--color2, #007aff);
    text-decoration: none;
}
.cctv-seo-inner a:hover {
    text-decoration: underline;
}
.cctv-seo-inner dl {
    margin: .5rem 0 0;
}
.cctv-seo-inner dt {
    font-weight: 600;
    color: rgba(255,255,255,.65);
    margin-top: 1rem;
}
.cctv-seo-inner dd {
    margin: .25rem 0 0 0;
}


.cctv-pw-sep {
    width: 1px;
    align-self: stretch;
    background: var(--border, rgba(255,255,255,.12));
    margin: 0 .25rem;
    flex-shrink: 0;
}
.cctv-link-info {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    color: var(--text-muted, #9ca3af);
    white-space: nowrap;
}


/* ── DVD / Blu-ray cover effect ─────────────────────────────── */
/* Fuentes del cover DVD — carga solo si no están ya en el head */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Oswald:wght@600;700&display=swap');

.cctv-dvd {
    position: absolute;
    inset: 0;
    border-radius: 6px;
   /* border: 4px solid var(--dvd-c, #16a34a);*/
    overflow: hidden;
    pointer-events: none;
    z-index: 3;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 8px 24px rgba(0,0,0,0.6);
}

/* Lomo izquierdo */
.cctv-dvd-spine {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 20px;
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--dvd-c, #16a34a) 80%, #000 20%) 0%,
        var(--dvd-c, #16a34a) 55%,
        color-mix(in srgb, var(--dvd-c, #16a34a) 75%, #000 25%) 100%
    );
    box-shadow: 2px 0 8px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 8px 1px;
    gap: 4px;
    z-index: 4;
}
.cctv-dvd-format,
.cctv-dvd-brand {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    /*font-family: 'Anton', 'Oswald', Impact, sans-serif;*/
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: .08em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.cctv-dvd-format { font-size: 13px; margin-top: 25px;}
.cctv-dvd-brand  { font-size: 10px; opacity: 1; letter-spacing: .05em; }

@media (max-width: 767px) {
    .cctv-dvd-format { font-size: 9px; margin-top: 18px; }
    .cctv-dvd-brand  { font-size: 7px; }
}

/* Borde derecho delgado */
.cctv-dvd::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 5px;
    background: var(--dvd-c, #16a34a);
    z-index: 4;
}

/* Barra inferior — llega hasta el borde derecho inclusive */
.cctv-dvd-bottom {
    position: absolute;
    bottom: 0; left: 20px; right: 0;
    height: 7px;
    background: var(--dvd-c, #16a34a);
    border-bottom-right-radius: 6px;
    z-index: 5;
}

/* Banner de resolución curvo — arriba */
.cctv-dvd-res {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 35px;
    z-index: 10;
    pointer-events: none;
}
.cctv-dvd-res svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
}
.cctv-dvd-res-label {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Anton', 'Oswald', Impact, sans-serif;
    font-size: 17px;
   /* font-weight: 900;*/
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
   /* text-shadow: 0 1px 2px rgba(255,255,255,0.3), 0 3px 6px rgba(0,0,0,0.8);*/
    line-height: 1;
    z-index: 2;
    padding-top: 3px;
}

/* Cinta "LAT" — esquina superior derecha */
.cctv-dvd-lat {
    position: absolute;
    top: 30px; right: -15px;
    width: 68px;
    background: linear-gradient(to right, #006847 33%, #fff 33%, #fff 66%, #ce1126 66%);
    font-family: 'Montserrat', 'Arial Black', sans-serif;
    font-size: 8px;
    font-weight: 900;
    text-align: center;
    padding: 3px 0;
    transform: rotate(45deg);
    letter-spacing: .14em;
    line-height: 1.5;
    color: #ce1126;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 2px 4px rgba(0,0,0,0.7);
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  /* z-index: 10;*/
}
/* ─────────────────────────────────────────────────────────── */


/* Cuando el cover DVD está activo: ocultar rating, tipo y calidad */
.card-inner:has(.cctv-dvd) > img {
    padding: 20px 5px 7px 20px;
    box-sizing: border-box;
    border-radius: 6px;
}

.card-inner:has(.cctv-dvd) svg.rating-circle { display: none !important; }
.card-inner:has(.cctv-dvd) .badget.q         { display: none !important; }
.card-inner:has(.cctv-dvd) .badget.b         { display: none !important; }

/* Año → esquina inferior derecha del cover */
.card-inner:has(.cctv-dvd) .badget:not(.q):not(.b) {
    display: none !important;
    position: absolute !important;
    bottom: 7px !important;
    right: 7px !important;
    top: auto !important;
    left: auto !important;
    z-index: 4;
    background: rgba(0,0,0,.60) !important;
    color: #fff !important;
    font-size: 10px !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    backdrop-filter: blur(4px);
}


/* === Botón flotante Telegram === */
#cctv-tg-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #229ED9;
    color: #fff;
    text-decoration: none;
    padding: 10px 16px 10px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(0,0,0,.4);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, bottom .3s ease;
    opacity: 0.92;
    white-space: nowrap;
}
#cctv-tg-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    opacity: 1;
    color: #fff;
    text-decoration: none;
}
@media (max-width: 480px) {
    #cctv-tg-btn span { display: none; }
    #cctv-tg-btn { padding: 12px; border-radius: 50%; bottom: 24px !important; }
}
/* Telegram sube cuando el chat desktop está abierto */
#cctv-tg-btn.chat-open {
   /* bottom: 100px;*/
}
/* === /Botón flotante Telegram === */

/* === Botón chat mobile === */
#cctv-chat-mobile-btn {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0b103a;
    color: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
}
@media (max-width: 768px) {
    #cctv-chat-mobile-btn {
        display: flex;
    }
    #cctv-chat-widget {
        display: none !important;
    }
    #cctv-chat-modal {
        display: none;
    }
    #cctv-chat-modal.open {
        display: flex !important;
    }
}
/* === /Botón chat mobile === */

/* === Chat Chatango flotante === */
#cctv-chat-widget {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 9999;
    width: 100px;
    max-width: calc(100vw - 2rem);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #040511;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Estado expandido */
#cctv-chat-widget.cctv-chat-expanded {
    width: 250px;
    height: 430px;
}

/* Estado colapsado: solo el header visible */
#cctv-chat-widget.cctv-chat-collapsed {
    width: 100px;
    height: 38px;
}
#cctv-chat-widget.cctv-chat-collapsed #cctv-chat-header {
    width: 100px;
    padding: 6px 8px;
}
#cctv-chat-widget.cctv-chat-collapsed .cctv-chat-header-left span {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 40px;
}

#cctv-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    cursor: pointer;
    background: #0a0f35;
    flex-shrink: 0;
    user-select: none;
    min-height: 38px;
    width: 250px;
}

.cctv-chat-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f3f4f6;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

#cctv-chat-toggle {
    background: none;
    border: none;
    color: #f3f4f6;
    cursor: pointer;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    line-height: 1;
}

#cctv-chat-arrow {
    transition: transform 0.3s ease;
    /* Colapsado: flecha apunta arriba (invitando a abrir) */
    transform: rotate(180deg);
}

/* Expandido: flecha apunta abajo (invitando a cerrar) */
#cctv-chat-widget.cctv-chat-expanded #cctv-chat-arrow {
    transform: rotate(0deg);
}

#cctv-chat-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 250px;
}

#cctv-chat-iframe-wrap {
    position: absolute;
    top: -15px;
    left: 0;
    width: 250px;
    height: 424px;
}

#cctv-chat-loader {
    position: absolute;
    inset: 0;
    background: #0b103a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,.7);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
    transition: opacity .4s ease;
}

#cctv-chat-loader.hidden {
    opacity: 0;
}

#cctv-chat-loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,.15);
    border-top-color: rgba(255,255,255,.7);
    border-radius: 50%;
    animation: cctv-spin .7s linear infinite;
}

@keyframes cctv-spin {
    to { transform: rotate(360deg); }
}

#cctv-chat-iframe-wrap script,
#cctv-chat-iframe-wrap iframe {
    width: 250px !important;
    height: 410px !important;
    display: block;
}

/* En mobile */
@media (max-width: 480px) {
    #cctv-chat-widget {
        right: 14px;
        bottom: 14px;
    }
    #cctv-chat-widget.cctv-chat-expanded {
        width: calc(100vw - 2rem);
        height: 420px;
    }
    #cctv-chat-widget.cctv-chat-collapsed {
        width: 90px;
    }
    #cctv-chat-header,
    #cctv-chat-body,
    #cctv-chat-iframe-wrap,
    #cctv-chat-iframe-wrap iframe {
        width: calc(100vw - 2rem) !important;
    }
}

/* === /Chat Chatango flotante === */


/* ── Banner Telegram ─────────────────────────────────────────── */
.cctv-tg-notice {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.1rem;
    margin-bottom: .75rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(100deg, #1a3a5c 0%, #2b6cb0 45%, #229ed9 100%);
    border: 1px solid rgba(34, 158, 217, .35);
    box-shadow: 0 2px 12px rgba(34, 158, 217, .18);
    transition: filter .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
}
.cctv-tg-notice::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,.06) 0%, transparent 60%);
    pointer-events: none;
}
.cctv-tg-notice:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 18px rgba(34, 158, 217, .32);
}
.cctv-tg-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #7dd3fc;
}
.cctv-tg-text {
    flex: 1;
    line-height: 1.35;
}
.cctv-tg-cta {
    flex-shrink: 0;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 6px;
    padding: .25rem .65rem;
    font-size: .8rem;
    white-space: nowrap;
    transition: background .2s;
}
.cctv-tg-notice:hover .cctv-tg-cta {
    background: rgba(255,255,255,.22);
}
@media (max-width: 520px) {
    .cctv-tg-cta { display: none; }
}


/* ============================================================
   BOTONES COMPARTIR EN CARDS DE DESCARGA
   ============================================================ */
.cctv-share-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding-bottom: .85rem;
    margin-bottom: .15rem;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.cctv-share-label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.cctv-share-label svg {
    flex-shrink: 0;
    opacity: .7;
}
.cctv-share-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex-wrap: wrap;
}
.cctv-sbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    color: var(--text-color, #e9ebee);
    cursor: pointer;
    transition: background .25s ease, transform .18s ease, border-color .25s ease;
    text-decoration: none;
    flex-shrink: 0;
}
.cctv-sbtn:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.22);
    color: #fff;
    filter: none;
}
.cctv-sbtn:active { transform: scale(.93); }

/* Colores de red social al hover */
.cctv-sbtn--fb:hover { background: #1877f2; border-color: #1877f2; }
.cctv-sbtn--tw:hover { background: #000;    border-color: #555; }
.cctv-sbtn--tg:hover { background: #229ed9; border-color: #229ed9; }
.cctv-sbtn--wa:hover { background: #25d366; border-color: #25d366; }
.cctv-sbtn--cp:hover { background: var(--color1, rgb(0,43,231)); border-color: var(--color1, rgb(0,43,231)); }

@media (max-width: 480px) {
    .cctv-share-row { gap: .45rem; }
    .cctv-sbtn { width: 30px; height: 30px; border-radius: 6px; }
}
/* ============================================================
   /BOTONES COMPARTIR EN CARDS DE DESCARGA
   ============================================================ */


   /* ================================================
   WATCHLIST — botón "Descargar más tarde" + página
   ================================================ */

/* Botón bajo el cover */
.cctv-watchlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 12px;
    padding: 9px 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cctv-watchlist-btn:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--color2);
    color: #fff;
    filter: none;
}
.cctv-wl-icon-check { display: none; color: #4bee03; }
.cctv-wl-icon-add   { display: inline-block; }

.cctv-watchlist-btn.--saved {
    background: rgba(75,238,3,.12);
    border-color: #4bee03;
    color: #4bee03;
}
.cctv-watchlist-btn.--saved .cctv-wl-icon-add   { display: none; }
.cctv-watchlist-btn.--saved .cctv-wl-icon-check { display: inline-block; }
.cctv-watchlist-btn.--saved .cctv-wl-label::after {
    content: ' ✓';
}

/* Aviso en la página de pendientes */
.cctv-watchlist-notice {
    font-size: 13px;
    color: rgba(233,235,238,.55);
    margin: -10px 0 18px;
    padding: 8px 12px;
    border-left: 3px solid var(--color2);
    background: rgba(255,255,255,.04);
    border-radius: 0 4px 4px 0;
}

/* Botón eliminar en tarjeta de pendientes */
.cctv-wl-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
    padding: 5px 0;
    background: rgba(255,60,60,.08);
    border: 1px solid rgba(255,60,60,.25);
    border-radius: 0 0 6px 6px;
    color: #ff6b6b;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.cctv-wl-remove:hover {
    background: rgba(255,60,60,.22);
    border-color: #ff6b6b;
    color: #fff;
    filter: none;
}

/* Mobile: botón más compacto */
@media (max-width: 767px) {
    .cctv-watchlist-btn {
        font-size: 12px;
        padding: 8px 10px;
        gap: 5px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    .cctv-wl-label {
        display: block;
    }
}


/* Evita el flash de imagen grande antes de que Swiper inicialice */
.swiper-wrapper:not(.swiper-initialized) .swiper-slide {
    width: 163px;
    flex-shrink: 0;
}



.--top-movies {
    text-align: center;
    margin-bottom: 1.5rem;
}
.--top-movies h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 6px;
}
.--top-movies h1 svg.rstar {
    width: auto;
    height: 80px;
    color: var(--color1);
}
.--top-movies span {
    display: block;
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.55;
}


/* ══════════════════════════════════════
   SISTEMA DE REPORTES — Botón + Modal
   ══════════════════════════════════════ */

.cctv-btn-reportar {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .55em 1.2em;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.18);
    border-radius: 8px;
    color: rgba(255,255,255,.55);
    font-size: .82rem;
    font-family: inherit;
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}
.cctv-btn-reportar:hover {
    color: #f97316;
    border-color: #f97316;
    background: rgba(249,115,22,.08);
}

.cctv-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cctv-modal-box {
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 480px;
    position: relative;
    color: #e2e8f0;
}
.cctv-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255,255,255,.45);
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color .2s;
}
.cctv-modal-close:hover { color: #fff; }

.cctv-modal-box h3 {
    display: flex;
    align-items: center;
    gap: .4em;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 20px;
    color: #f97316;
}
.cctv-report-label {
    display: block;
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    margin-bottom: 6px;
    margin-top: 16px;
}
.cctv-report-select {
    width: 100%;
    padding: .55em .8em;
    border-radius: 8px;
    border: 1.5px solid rgba(255,255,255,.12);
    background: #0f1420;
    color: #e2e8f0;
    font-size: .9rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
}
.cctv-report-select:focus { border-color: rgba(249,115,22,.5); }

#cctv-report-step-3 { margin-top: 16px; }
#cctv-report-step-3 .cctv-report-label { margin-top: 0; }

.cctv-report-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: .65em 2em;
    background: #f97316;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    opacity: .5;
}
.cctv-report-send-btn:not(:disabled) { opacity: 1; }
.cctv-report-send-btn:not(:disabled):hover { background: #ea6c0a; }
.cctv-report-send-btn:disabled { cursor: not-allowed; }

@media (max-width: 480px) {
    .cctv-modal-box { padding: 22px 18px 20px; }
}