/* ==========================================================================
   Listados públicos (catálogos, tops, géneros, personas, búsqueda, shorts...)
   Mismo lenguaje visual que los listados del panel de administración:
   cabecera compacta, pestañas en píldora con contador, tarjetas con borde fino
   y pie con total y paginación.
   ========================================================================== */

:root {
    --ct-border: rgba(255, 255, 255, 0.07);
    --ct-border-hover: rgba(255, 255, 255, 0.16);
    --ct-surface: var(--bg-card, #151824);
    --ct-muted: var(--text-muted, #9ca3af);
    --ct-accent: var(--primary, #10b981);
    --ct-accent-soft: rgba(16, 185, 129, 0.12);
    --ct-accent-text: #34d399;
    --ct-info: #38bdf8;
    --ct-info-soft: rgba(56, 189, 248, 0.12);
    --ct-info-text: #7dd3fc;
    --ct-video: #c084fc;
    --ct-video-soft: rgba(168, 85, 247, 0.14);
    --ct-short: #fb7185;
    --ct-short-soft: rgba(244, 63, 94, 0.14);
    --ct-gold: #fbbf24;
    --ct-gold-soft: rgba(245, 158, 11, 0.14);
}

.theme-nova {
    --ct-accent-soft: var(--primary-soft, rgba(99, 102, 241, 0.12));
    --ct-accent-text: var(--primary-light, #818cf8);
}

.ct-page {
    padding-top: 1.75rem;
    padding-bottom: 4rem;
    min-height: 60vh;
}

/* --- Migas de pan --- */
.ct-crumbs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
    font-size: 0.8rem;
    color: var(--ct-muted);
}
.ct-crumbs a { color: var(--ct-muted); }
.ct-crumbs a:hover { color: var(--ct-accent-text); }
.ct-crumbs i { font-size: 0.65rem; opacity: 0.5; }
.ct-crumbs span:last-child {
    color: var(--text-white, #fff);
    font-weight: 600;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- Cabecera --- */
.ct-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.ct-head-main { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.ct-head h1 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-white, #fff);
}
.ct-head h1 > i { color: var(--ct-accent); font-size: 1.35rem; }
.ct-head h1 small { font-size: 0.85rem; font-weight: 600; color: var(--ct-muted); }
.ct-head p { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--ct-muted); max-width: 760px; }
.ct-head p strong { color: var(--text-main, #f4f4f5); }
.ct-head-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.ct-avatar {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ct-border-hover);
    background: var(--ct-surface);
}
.ct-avatar-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

/* --- Etiquetas --- */
.ct-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ct-muted);
    vertical-align: middle;
}
.ct-pill-accent { background: var(--ct-accent-soft); color: var(--ct-accent-text); }
.ct-pill-info { background: var(--ct-info-soft); color: var(--ct-info-text); }
.ct-pill-gold { background: var(--ct-gold-soft); color: var(--ct-gold); }
.ct-pill-video { background: var(--ct-video-soft); color: var(--ct-video); }

/* --- Botones --- */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 38px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid var(--ct-border-hover);
    background: transparent;
    color: var(--text-white, #fff);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ct-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.ct-btn-primary { background: var(--ct-accent); border-color: var(--ct-accent); color: #04130d; }
.ct-btn-primary:hover { background: var(--primary-hover, #059669); border-color: var(--primary-hover, #059669); color: #04130d; }
.theme-nova .ct-btn-primary, .theme-nova .ct-btn-primary:hover { color: #fff; }
.ct-btn.is-active { background: var(--ct-accent-soft); border-color: var(--ct-accent); color: var(--ct-accent-text); }
.ct-btn:disabled { opacity: 0.6; cursor: wait; }

/* --- Pestañas (tipo) y chips (orden), como en el panel --- */
.ct-tabs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.ct-tab, .ct-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--ct-border);
    color: var(--ct-muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ct-tab span, .ct-chip span {
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
}
.ct-tab:hover, .ct-chip:hover { border-color: var(--ct-border-hover); color: #fff; }
.ct-tab.active { background: var(--ct-accent-soft); border-color: var(--ct-accent); color: var(--ct-accent-text); }
.ct-chip.active { background: var(--ct-info-soft); border-color: var(--ct-info); color: var(--ct-info-text); }
.ct-tabs-sep { flex: 1; }
.ct-tabs-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ct-muted);
    margin-right: 0.15rem;
}
.ct-letters .ct-chip { min-width: 34px; justify-content: center; padding: 0.38rem 0.55rem; }

/* --- Buscador dentro de un listado --- */
.ct-search { position: relative; flex: 1 1 240px; max-width: 360px; }
.ct-search i { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--ct-muted); font-size: 0.85rem; }
.ct-search input {
    width: 100%;
    height: 38px;
    padding: 0 0.9rem 0 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--ct-border);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
}
.ct-search input:focus { border-color: var(--ct-accent); }

/* --- Secciones dentro de una página --- */
.ct-section { margin-bottom: 2rem; }
.ct-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}
.ct-section-head h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white, #fff);
}
.ct-section-head h2 > i { color: var(--ct-accent); }
.ct-section-head a { font-size: 0.82rem; font-weight: 700; color: var(--ct-accent-text); white-space: nowrap; }
.ct-section-head a:hover { color: #fff; }

/* --- Rejillas --- */
.ct-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 1.25rem 1rem;
}
.ct-grid-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ct-grid-tall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ct-grid + .ct-grid { margin-top: 1.25rem; }

/* --- Tarjeta de contenido --- */
.ct-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.ct-thumb {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--ct-border);
    background: var(--ct-surface);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ct-card-video .ct-thumb { aspect-ratio: 16 / 9; }
.ct-card-short .ct-thumb { aspect-ratio: 9 / 16; }
.ct-thumb img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.ct-thumb-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1b1f2e 0%, #0d0f17 100%);
    color: rgba(255, 255, 255, 0.18);
    font-size: 2.2rem;
}
.ct-card:hover .ct-thumb {
    border-color: var(--ct-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.ct-card:hover .ct-thumb img { transform: scale(1.05); filter: brightness(0.6); }
.ct-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ct-accent);
    color: #04130d;
    font-size: 1.6rem;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 3;
}
.ct-card:hover .ct-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.ct-type, .ct-corner {
    position: absolute;
    z-index: 2;
    padding: 0.12rem 0.45rem;
    border-radius: 5px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}
.ct-type { top: 0.5rem; left: 0.5rem; }
.ct-type-movie { background: rgba(6, 30, 22, 0.82); color: var(--ct-accent-text); }
.ct-type-video { background: rgba(28, 12, 42, 0.82); color: var(--ct-video); }
.ct-type-short { background: rgba(40, 8, 16, 0.82); color: var(--ct-short); }
.ct-type-vip { background: rgba(40, 26, 4, 0.85); color: var(--ct-gold); }
.ct-corner {
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}
.ct-rank {
    position: absolute;
    z-index: 2;
    top: 0.5rem;
    right: 0.5rem;
    min-width: 28px;
    height: 28px;
    padding: 0 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
}
.ct-rank-1 { background: var(--ct-gold); color: #1a1205; }
.ct-rank-2 { background: #cbd5e1; color: #111827; }
.ct-rank-3 { background: #d97706; color: #1a1205; }

.ct-body { padding: 0.6rem 0.15rem 0; min-width: 0; }
.ct-title {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main, #f4f4f5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ct-card:hover .ct-title { color: var(--ct-accent-text); }
.ct-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
    font-size: 0.74rem;
    color: var(--ct-muted);
    font-variant-numeric: tabular-nums;
}
.ct-meta i { font-size: 0.68rem; }
.ct-meta .ct-star { color: var(--ct-gold); }

/* --- Personas (actores / directores) --- */
.ct-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.75rem; }
.ct-person {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--ct-border);
    background: var(--ct-surface);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.ct-person:hover { border-color: var(--ct-accent); background: rgba(255, 255, 255, 0.02); }
.ct-person .ct-avatar { width: 48px; height: 48px; border-width: 1px; }
.ct-person .ct-avatar-initial { font-size: 1.2rem; }
.ct-person-info { min-width: 0; flex: 1; }
.ct-person-name {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ct-person:hover .ct-person-name { color: var(--ct-accent-text); }
.ct-person .ct-meta { margin-top: 0.15rem; }
.ct-person .ct-rank { position: static; flex: 0 0 auto; }
.ct-people-top .ct-person { border-color: rgba(245, 158, 11, 0.25); }

/* --- Pie: total y paginación (igual que el panel) --- */
.ct-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    background: var(--ct-surface);
    font-size: 0.82rem;
    color: var(--ct-muted);
}
.ct-pages { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.ct-pages a, .ct-pages span {
    min-width: 34px;
    height: 34px;
    padding: 0 0.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--ct-muted);
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}
.ct-pages a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.ct-pages a.active { background: var(--ct-accent); color: #04130d; font-weight: 700; }
.theme-nova .ct-pages a.active { color: #fff; }

/* --- Estado vacío --- */
.ct-empty {
    padding: 3.5rem 1.5rem;
    border: 1px dashed var(--ct-border-hover);
    border-radius: 12px;
    background: var(--ct-surface);
    text-align: center;
    color: var(--ct-muted);
}
.ct-empty > i { display: block; margin-bottom: 0.9rem; font-size: 2.6rem; color: var(--ct-accent); opacity: 0.8; }
.ct-empty h2 { margin: 0 0 0.4rem; font-size: 1.15rem; color: #fff; }
.ct-empty p { max-width: 460px; margin: 0 auto; font-size: 0.88rem; }
.ct-empty .ct-btn { margin-top: 1.25rem; }

/* --- Texto SEO al pie de los listados --- */
.ct-seo {
    margin-top: 2.5rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--ct-border);
    border-radius: 12px;
    background: var(--ct-surface);
    font-size: 0.86rem;
    line-height: 1.75;
    color: var(--ct-muted);
}
.ct-seo h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}
.ct-seo h2 i { color: var(--ct-accent); }
.ct-seo p { margin: 0; }
.ct-seo p + p { margin-top: 0.6rem; }
.ct-seo strong { color: var(--text-main, #f4f4f5); }

/* --- Herramientas de administración dentro de páginas públicas --- */
.ct-admin {
    margin-bottom: 1.25rem;
    border: 1px dashed rgba(16, 185, 129, 0.35);
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.03);
}
.ct-admin summary { cursor: pointer; padding: 0.65rem 1rem; font-size: 0.82rem; font-weight: 700; color: var(--ct-accent-text); }
.ct-admin form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; padding: 0 1rem 0.9rem; }
.ct-admin input[type=url], .ct-admin input[type=file] {
    flex: 1 1 220px;
    height: 36px;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    border: 1px solid var(--ct-border);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.8rem;
}

/* --- Aviso flotante --- */
.ct-toast {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: calc(100vw - 3rem);
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--ct-accent);
    background: rgba(13, 14, 18, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
}
.ct-toast i { color: var(--ct-accent-text); }
.ct-toast.show { opacity: 1; transform: none; }
.ct-toast-error { border-color: #ef4444; }
.ct-toast-error i { color: #f87171; }

@media (max-width: 760px) {
    .ct-page { padding-top: 1.1rem; }
    .ct-head h1 { font-size: 1.3rem; }
    .ct-head h1 > i { font-size: 1.1rem; }
    .ct-avatar { width: 60px; height: 60px; }
    .ct-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -1rem; margin-right: -1rem; padding: 0 1rem; }
    .ct-tabs::-webkit-scrollbar { display: none; }
    .ct-tabs-sep { flex: 0 0 0.5rem; }
    .ct-letters { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
    .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; }
    .ct-grid-tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-people { grid-template-columns: 1fr; }
    .ct-foot { justify-content: center; text-align: center; }
    .ct-search { max-width: none; }
    .ct-toast { right: 1rem; left: 1rem; bottom: calc(1rem + 70px); border-radius: 14px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
    .ct-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- Relatos --- */
.ct-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.ct-story {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--ct-border);
    background: var(--ct-surface);
    transition: border-color 0.2s, transform 0.2s;
}
.ct-story:hover { border-color: var(--ct-video); transform: translateY(-3px); }
.ct-story-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0f17; }
.ct-story-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.ct-story:hover .ct-story-cover img { transform: scale(1.04); }
.ct-story-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem; }
.ct-story-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.ct-story h3 { margin: 0 0 0.45rem; font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.ct-story h3 a {
    color: #fff;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ct-story h3 a:hover { color: var(--ct-video); }
.ct-story p {
    flex: 1;
    margin: 0 0 0.9rem;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--ct-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ct-story-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ct-author { display: flex; align-items: center; gap: 0.45rem; min-width: 0; font-size: 0.78rem; font-weight: 600; color: var(--text-main, #e2e8f0); }
.ct-author img, .ct-author-anon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}
.ct-author-anon { display: inline-flex; align-items: center; justify-content: center; background: var(--ct-video-soft); color: var(--ct-video); font-size: 0.8rem; }
.ct-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ct-feature {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.07) 0%, var(--ct-surface) 60%);
}
.ct-feature h2 { margin: 0.6rem 0; font-size: 1.4rem; line-height: 1.3; }
.ct-feature h2 a { color: #fff; }
.ct-feature h2 a:hover { color: var(--ct-video); }
.ct-feature p { margin: 0 0 1.1rem; color: var(--text-main, #cbd5e1); font-size: 0.92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ct-feature-cover { aspect-ratio: 16 / 10; max-height: 240px; overflow: hidden; border-radius: 10px; border: 1px solid var(--ct-border); }
.ct-feature-cover img { width: 100%; height: 100%; object-fit: cover; }
.ct-feature-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.ct-btn-violet { background: #a855f7; border-color: #a855f7; color: #fff; }
.ct-btn-violet:hover { background: #9333ea; border-color: #9333ea; color: #fff; }
.ct-tabs-violet .ct-tab.active { background: var(--ct-video-soft); border-color: var(--ct-video); color: var(--ct-video); }

.ct-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}
.ct-alert-ok { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.ct-alert-err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: #f87171; }

@media (max-width: 760px) {
    .ct-stories { grid-template-columns: 1fr; }
    .ct-feature { grid-template-columns: 1fr; padding: 1.1rem; }
    .ct-feature-cover { order: -1; }
}

/* ==========================================================================
   Portada: banner destacado
   ========================================================================== */

.hero-showcase {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #090a0f;
}

.hero-backdrop-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 68%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
    filter: brightness(0.85);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-showcase:hover .hero-backdrop-layer {
    transform: scale(1.02);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, #090a0f 0%, #090a0f 30%, rgba(9, 10, 15, 0.88) 55%, rgba(9, 10, 15, 0.35) 80%, rgba(9, 10, 15, 0.15) 100%),
                linear-gradient(0deg, #090a0f 0%, rgba(9, 10, 15, 0.4) 30%, transparent 70%);
}

.hero-inner-container {
    position: relative;
    z-index: 3;
    padding-top: 3rem;
    padding-bottom: 2.8rem;
    width: 100%;
}

.hero-content-box {
    max-width: 580px;
}

/* Micro-badge minimalista */
.hero-tag-minimal {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.22rem 0.7rem;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.hero-tag-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.hero-tag-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.65rem;
}

.hero-tag-hd {
    color: #10b981;
    font-weight: 700;
}

/* Título */
.hero-title-minimal {
    font-size: clamp(1.45rem, 3.2vw, 2.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin: 0 0 0.55rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Metadata */
.hero-meta-minimal {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
}

.meta-rating {
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
}

.meta-dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.6rem;
}

.meta-genre {
    color: #cbd5e1;
}

/* Sinopsis */
.hero-overview-minimal {
    font-size: 0.86rem;
    line-height: 1.55;
    color: #94a3b8;
    margin: 0 0 1.25rem 0;
    max-width: 500px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Botones */
.hero-actions-minimal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #10b981;
    color: #032316;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.56rem 1.35rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.hero-btn-primary:hover {
    background: #34d399;
    color: #032316;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.hero-btn-primary i {
    font-size: 1.1rem;
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.54rem 1.15rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hero-showcase {
        min-height: 310px;
        margin-bottom: 1.25rem;
    }
    .hero-backdrop-layer {
        width: 100%;
        opacity: 0.35;
    }
    .hero-gradient-overlay {
        background: linear-gradient(0deg, #090a0f 0%, rgba(9, 10, 15, 0.85) 50%, rgba(9, 10, 15, 0.6) 100%);
    }
    .hero-inner-container {
        padding-top: 2.5rem;
        padding-bottom: 1.6rem;
    }
    .hero-overview-minimal {
        font-size: 0.82rem;
        margin-bottom: 1rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .hero-actions-minimal {
        display: flex;
        width: 100%;
        gap: 0.5rem;
    }
    .hero-btn-primary,
    .hero-btn-secondary {
        flex: 1;
        justify-content: center;
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
    }
}


.ct-home-section { margin-bottom: 2.75rem; }
.ct-section-head p { margin: 0.15rem 0 0; font-size: 0.8rem; color: var(--ct-muted); }
.ct-section-head .ct-head-actions a { color: inherit; }
.ct-section-head h2 .ct-icon-short { color: var(--ct-short); }
.ct-section-head h2 .ct-icon-video { color: var(--ct-video); }
.ct-section-head a.ct-link-short { color: var(--ct-short); }
.ct-section-head a.ct-link-video { color: var(--ct-video); }
.ct-genres { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.ct-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.ct-features div { padding: 1rem; border-radius: 10px; border: 1px solid var(--ct-border); background: rgba(255, 255, 255, 0.02); }
.ct-features h3 { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.4rem; font-family: var(--font-body); font-size: 0.95rem; color: #fff; }
.ct-features h3 i { color: var(--ct-accent); }
.ct-features p { font-size: 0.84rem; }

/* --- Tarjeta dentro de una lista editable --- */
.ct-card-wrap { position: relative; transition: opacity 0.3s ease; }
.ct-card-note { margin-top: 0.2rem; padding: 0 0.15rem; font-size: 0.7rem; font-weight: 600; color: var(--ct-video); }
.ct-card-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 5;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-darkest, #090a0f);
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: transform 0.2s;
}
.ct-card-remove:hover { transform: scale(1.12); }

/* --- Páginas de aviso (404, en revisión, mantenimiento) --- */
.ct-notice-page { display: flex; align-items: center; justify-content: center; min-height: 65vh; padding: 2rem 1rem 4rem; }
.ct-notice {
    width: 100%;
    max-width: 560px;
    padding: 2.5rem 2rem;
    border-radius: 14px;
    border: 1px solid var(--ct-border);
    background: var(--ct-surface);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.ct-notice-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    background: var(--ct-accent-soft);
    color: var(--ct-accent-text);
}
.ct-notice-code { margin-bottom: 0.5rem; font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; line-height: 1; color: #f87171; }
.ct-notice h1 { margin: 0 0 0.75rem; font-size: 1.5rem; font-weight: 800; color: #fff; }
.ct-notice > p { margin: 0 0 1.5rem; font-size: 0.95rem; line-height: 1.6; color: var(--ct-muted); }
.ct-notice-extra { margin: 0 0 1.5rem; padding: 0.9rem 1rem; border-radius: 10px; border: 1px solid var(--ct-border); background: rgba(255, 255, 255, 0.02); text-align: left; font-size: 0.84rem; line-height: 1.5; color: var(--ct-muted); }
.ct-notice-extra strong { display: block; margin-bottom: 0.25rem; color: var(--ct-info-text); }
.ct-notice-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.ct-notice-danger { border-color: rgba(239, 68, 68, 0.25); }
.ct-notice-danger .ct-notice-icon { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.ct-notice-warn .ct-notice-icon { background: var(--ct-gold-soft); color: var(--ct-gold); }
