

         *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --red:     #DA384E;
            --red-dk:  #a82538;
            --yellow:  #FFD22F;
            --dark:    #0e0e0e;
            --dark2:   #1a1a1a;
            --dark3:   #242424;
            --dark4:   #2e2e2e;
            --light:   #e8e8e8;
            --muted:   #888;
            --radius:  8px;
        }

        body {
            font-family: 'DM Sans', sans-serif;
            background-color: var(--dark);
            color: var(--light);
            line-height: 1.5;
            background-image: url(/assets/img/monster-patron.avif);
        }
                .header-badge, header h1, .season-index a .s-num, .info-box h2, .episodes-title, .season-num  {
            font-family: 'Bebas Neue', sans-serif;
                }
                a {
                    color: unset;
                }
        /* ── HEADER ── */
        header {
            background: var(--dark2);
            border-bottom: 3px solid var(--red);
            padding: 1.5rem 2rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-badge {
            background: var(--red);
            color: #fff;
            font-size: 1rem;
            letter-spacing: 0.05em;
            padding: 0.3rem 0.7rem;
            border-radius: 4px;
            white-space: nowrap;
        }
        header h1 {
            font-size: 1.8rem;
            letter-spacing: 0.04em;
            color: #fff;
        }
        header p {
            font-size: 0.85rem;
            color: var(--muted);
            margin-top: 0.1rem;
        }
        .header-text {
            flex: 1;
            text-align: center;
            margin: 2em auto;
        }
        .site-header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--color-bg, #0f0f0f);
            border-bottom: 1px solid var(--color-border, rgba(255,255,255,.08));
        }

        .main-nav {
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            margin: 0 auto;
            padding: 0 1.5rem;
            height: 70px;
            width: auto;
            gap: 10em;
        }

        /* ── Logo ──────────────────────────────────────────── */
        .header-logo a { display: flex; align-items: center; }
        .header-logo img { display: block; max-width: 50vw;    height: auto;}

        /* ── Menú desktop ──────────────────────────────────── */
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 2rem;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .nav-menu a {
            text-decoration: none;
            color: var(--color-text, #e0e0e0);
            font-size: .95rem;
            font-weight: 500;
            letter-spacing: .02em;
            transition: color .2s;
        }

        .nav-menu a:hover {
            color: var(--red);
        }

        /* ── Hamburguesa ───────────────────────────────────── */
        .nav-hamburger {
            display: none;
            flex-direction: column;
                justify-content: center;
                gap: 5px;
                width: 36px;
                height: 36px;
                padding: 4px;
                background: none;
                border: none;
                cursor: pointer;
                z-index: 101;
                right: 5px;
                top: 105px;
            }
            .nav-hamburger.is-open{
                position: fixed;
            }


        .nav-hamburger span {
            display: block;
            width: 100%;
            height: 2px;
            background: var(--color-text, #e0e0e0);
            border-radius: 2px;
            transition: transform .3s ease, opacity .2s ease;
            transform-origin: center;
        }

        /* Animación X al abrir */
        .nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
        .nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


        /* ── Mobile ────────────────────────────────────────── */
        @media (max-width: 1300px) {
            .main-nav {
                display: flex;
                gap: 0px;
                min-width: 350px;
                align-items: flex-end;
                justify-content: space-between;
                width: 50%;
            }

            .nav-hamburger {
                display: flex;
            }

            .nav-menu {
            position: fixed;
                    top: 100px;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    flex-direction: column;
                    justify-content: flex-start;
                    gap: 0;
                    padding: 1rem 0;
                    background: #0f0f0ffa;
                    border-top: 5px solid var(--red);
                            height: fit-content;

                /* Oculto por defecto */
                opacity: 0;
                pointer-events: none;
                transform: translateY(-8px);
                transition: opacity .25s ease, transform .25s ease;
            }

            .nav-menu.is-open {
                opacity: 1;
                pointer-events: all;
                transform: translateY(0);
            }

            .nav-menu li {
                width: 100%;
                border-bottom: 1px solid var(--color-border, rgba(255,255,255,.06));
            }

            .nav-menu a {
                display: block;
                padding: 1rem 1.5rem;
                font-size: 1.1rem;
            }
        }

        /* ── LAYOUT ── */
        article.global-ep-list {
            display: flex;
            flex-direction: column-reverse;
        }
        li.ep-list {
            position: relative;
        }
        .page-wrap {
            max-width: 1280px;
            margin: 0 auto;
            padding: 2rem 1.5rem;
            display: grid;
            grid-template-columns: 220px 1fr;
            gap: 2rem;
            align-items: start;
        }
        .resalt {
            border-bottom: 2px solid var(--red);
            font-weight: 700;
            font-size: 18px;
        }

        /* ── SIDEBAR ── */
        .sidebar {
            position: sticky;
            top: 160px;
        }
        .sidebar-title {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            color: var(--muted);
            margin-bottom: 0.75rem;
            padding-left: 0.5rem;
        }
        .season-index {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }
        a.authors-link {
            color: var(--light);
        }
        img.fotojuntos {
            margin: auto;
            position: relative;
            display: block;
            max-height: 50vh;
        }
        .season-index a {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            color: var(--light);
            text-decoration: none;
            font-size: 0.88rem;
            font-weight: 500;
            padding: 0.5rem 0.75rem;
            border-radius: 6px;
            transition: background 0.15s, color 0.15s;
            border-left: 2px solid transparent;
        }
        .season-index a:hover {
            background: var(--dark3);
            border-left-color: var(--red);
            color: #fff;
        }
        .season-index a .s-num {
            background: var(--yellow);
            color: var(--dark);
            font-size: 0.75rem;
            padding: 0.1rem 0.4rem;
            border-radius: 3px;
            min-width: 22px;
            text-align: center;
        }
        .season-index a .s-count {
            margin-left: auto;
            color: var(--muted);
            font-size: 0.78rem;
        }

        /* ── MAIN ── */
        .main-col { min-width: 0; }

        /* ── VIDEO ── */
        .video-wrap {
            background: var(--dark2);
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 1.5rem;
        }
        .video-ratio {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
        }
        .video-ratio iframe {
            position: absolute;
            inset: 0;
            width: 100%; height: 100%;
            border: none;
        }

        /* ── INFO BOX ── */
        .info-box {
            background: var(--dark2);
            border-radius: var(--radius);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--dark4);
        }
        .info-box h2 {
            font-size: 1.4rem;
            letter-spacing: 0.04em;
            color: var(--yellow);
            margin-bottom: 0.75rem;
        }
        .info-box p { color: #aaa; font-size: 0.92rem; margin-bottom: 1rem; }

        .badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
        .badge {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            background: var(--dark3);
            border: 1px solid var(--dark4);
            padding: 0.5rem 0.85rem;
            border-radius: 20px;
            font-size: 0.83rem;
            color: var(--light);
        }
        .badge .icon { font-size: 1rem; }

        .cta-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--red);
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            padding: 0.65rem 1.2rem;
            border-radius: 6px;
            transition: background 0.2s;
        }
        .cta-button:hover { background: var(--red-dk); }
        .cta-button::before { content: "▶"; font-size: 0.75rem; }

        .cta-andalu-seo{
            background:#3db159;
        }
        .cta-andalu-seo:hover { background: #0e1b4d; }
        .cta-andalu-seo::before { content: ""; font-size: 0.75rem; }
        
        .cache-meta {
            margin-top: 1rem;
            font-size: 0.75rem;
            color: var(--muted);
        }

        /* ── EPISODES SECTION ── */
        .episodes-title {
            font-size: 1.6rem;
            letter-spacing: 0.05em;
            color: #fff;
            margin-bottom: 1rem;
            text-align: center;
        }
        .ep-description a {
            color: var(--red);
        }
        /* ── DETAILS / SUMMARY ── */
        details {
            background: var(--dark2);
            border: 1px solid var(--dark4);
            border-radius: var(--radius);
            margin-bottom: 1rem;
            overflow: hidden;
        }
        details[open] summary { border-bottom: 1px solid var(--dark4); }

        summary {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.25rem;
            cursor: pointer;
            list-style: none;
            user-select: none;
        }
        summary::-webkit-details-marker { display: none; }
        summary:hover { background: var(--dark3); }

        .summary-chevron {
            color: var(--muted);
            font-size: 0.75rem;
            transition: transform 0.2s;
            flex-shrink: 0;
        }
        details[open] .summary-chevron { transform: rotate(90deg); }

        .summary-body { flex: 1; display: flex; align-items: center; gap: 0.75rem; }
        .season-num {
            background: var(--yellow);
            color: var(--dark);
            font-size: 0.85rem;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
        }
        .season-name {
            font-weight: 600;
            font-size: 1rem;
            color: #fff;
        }
        .season-ep-count {
            font-size: 0.8rem;
            color: var(--muted);
            margin-left: auto;
            white-space: nowrap;
        }

        /* ── EPISODE LIST ── */
        .episode-list {
            list-style: none;
            padding: 0.5rem 0;
        }
        .episode-list li {
            display: flex;
            align-items: center;
            gap: 0.9rem;
            padding: 0.55rem 1.25rem;
            border-radius: 0;
            transition: background 0.12s;
        }
        .episode-list li:hover { background: var(--dark3); }

        .ep-num {
            font-size: 0.75rem;
            color: var(--muted);
            width: 1.5rem;
            text-align: right;
            flex-shrink: 0;
        }
        .ep-thumb {
            width: 100px;
            height: 56px;
            object-fit: cover;
            border-radius: 4px;
            flex-shrink: 0;
            background: var(--dark4);
        }
        .ep-thumb-placeholder {
            width: 100px;
            height: 56px;
            flex-shrink: 0;
            background: var(--dark4);
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--dark3);
            font-size: 1.2rem;
        }
        .ep-info { flex: 1; min-width: 0; }
        .ep-info a {
            display: block;
            color: var(--light);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            /*
            white-space: nowrap;
            text-overflow: ellipsis;
            */
            overflow: hidden;
            transition: color 0.15s;
        }
        .ep-info a:hover { color: var(--red); }
        .ep-date {
            display: block;
            font-size: 0.75rem;
            color: var(--muted);
            margin-top: 0.2rem;
        }

        /* ── ERROR ── */
        .error-box {
            background: #2a0a0e;
            border: 1px solid var(--red);
            border-radius: var(--radius);
            padding: 1rem 1.25rem;
            color: #f88;
            font-size: 0.9rem;
        }
        *{
            scroll-margin-top: 120px;
        }

        /* ── FOOTER ── */
        footer {
            text-align: center;
            padding: 2rem 1rem;
            color: var(--muted);
            font-size: 0.82rem;
            border-top: 1px solid var(--dark3);
            margin-top: 3rem;
        }
        footer strong { color: var(--red); }
        nav.footer-links {
            margin: 2em auto;
        }
        /* ── RESPONSIVE ── */
        @media (max-width: 820px) {
            .page-wrap {
                grid-template-columns: 1fr;
                padding: 1rem;
                gap: 0em;
            }
            .sidebar {
                position: static;
                order: -1;
            }
            .season-index {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: space-around;
            }
            .season-index a { font-size: 0.8rem; padding: 0.4rem 0.6rem; }
            header { padding: 1rem; }
            header h1 { font-size: 1.3rem; }
            .ep-thumb, .ep-thumb-placeholder { width: 72px; height: 40px; }
                .episode-list {
                    overflow-x: auto;
                    -webkit-overflow-scrolling: touch;
                }

                .episode-list li {
                    width: fit-content;
                }
        }

        /* ── PÁGINA DE EPISODIO ───────────────────────────────────────── */
.ep-page-wrap {
    grid-template-columns: 1fr;   /* sin sidebar */
    max-width: 860px;
}

.ep-back {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
    font-size: .85rem;
}
.ep-back-link {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
}
.ep-back-link:hover { color: var(--light); }
.ep-back-sep { color: var(--dark4); }

.ep-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: .04em;
    color: #fff;
    margin-bottom: .4rem;
    line-height: 1.15;
}

.ep-meta-date {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.ep-video-wrap {
    margin-bottom: 2rem;
}

/* Descripción */
.ep-description {
    background: var(--dark2);
    border: 1px solid var(--dark4);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.ep-desc-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: .06em;
    color: var(--yellow);
    margin-bottom: .75rem;
}
.ep-desc-body {
    font-size: .9rem;
    color: #aaa;
    line-height: 1.7;
    word-break: break-word;
}

.ep-quality-hint {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .5rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    justify-content: flex-end;
}
.ep-quality-arrow {
    font-size: 1rem;
    color: var(--red);
    flex-shrink: 0;
}
/* ── Navegación anterior / siguiente ─────────────────────────── */
.ep-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
}
.ep-nav-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--dark2);
    border: 1px solid var(--dark4);
    border-radius: var(--radius);
    padding: .85rem 1.1rem;
    text-decoration: none;
    color: var(--light);
    transition: border-color .15s, background .15s;
    max-width: 48%;
    min-width: 0;
}
.ep-nav-btn:hover {
    background: var(--dark3);
    border-color: var(--red);
}
.ep-nav-next { margin-left: auto; text-align: right; }
.ep-nav-arrow {
    font-size: 1.2rem;
    color: var(--red);
    flex-shrink: 0;
}
.ep-nav-label {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ep-nav-hint {
    font-size: .7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ep-nav-title {
    font-size: .85rem;
    font-weight: 500;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
/* Tags */
.ep-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}
.ep-tag {
    background: var(--dark3);
    border: 1px solid var(--dark4);
    color: var(--muted);
    font-size: .75rem;
    padding: .25rem .65rem;
    border-radius: 20px;
}

.ep-yt-link {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

        /* ─── Cookie Banner ───────────────────────────────────────────── */
#cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(580px, calc(100vw - 2rem));
    background: var(--surface-elevated, #1e1e1e);
    border: 1px solid var(--border, rgba(255,255,255,.12));
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    display: flex;
    flex-direction: column;
    gap: .85rem;
    z-index: 9999;
    animation: banner-in .3s ease;
}

#cookie-banner.hidden {
    display: none;
}

@keyframes banner-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner__text {
    font-size: .88rem;
    line-height: 1.6;
    color: var(--muted, #aaa);
    margin: 0;
}

.cookie-banner__text a {
    color: var(--accent, #f0a500);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner__actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: .5rem 1.1rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .15s;
    white-space: nowrap;
}
.cookie-btn:hover { opacity: .85; }

.cookie-btn--accept {
    background: var(--accent, #f0a500);
    color: #000;
}

.cookie-btn--reject {
    background: transparent;
    color: var(--muted, #aaa);
    border: 1px solid var(--border, rgba(255,255,255,.2));
}
/* ── Buscador ────────────────────────────────────────────────── */
.search-box {
    margin: 1.5rem auto;
    position: relative;
    width: 50%;
    min-width: fit-content;
    max-width: 100%;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border, #d1d5db);
    border-radius: 10px;
    background: var(--bg-card, #fff);
    overflow: hidden;
    transition: border-color .2s;
}
.search-input-wrap:focus-within {
    border-color: var(--accent, #e63946);
}
.search-icon {
    padding: 0 .75rem;
    color: var(--muted);
    font-size: 1.1rem;
    pointer-events: none;
    flex-shrink: 0;
}
.search-input {
    flex: 1;
    padding: .7rem .5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text, #111);
    outline: none;
        width: 50%;
    min-width: 200px;
}
.search-clear-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 .85rem;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
    display: none;
    flex-shrink: 0;
}
.search-clear-btn.visible { display: block; }
 
/* Contador de resultados */
.search-status {
    font-size: .82rem;
    color: var(--muted);
    margin-top: .5rem;
    min-height: 1.2em;
}
.search-status strong { color: var(--text, #111); }
 
/* Resaltar coincidencia */
mark {
    background: var(--red);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}
 
/* Episodio oculto por el filtro */
.ep-list.hidden-by-search { display: none !important; }
 
/* Temporada vacía por el filtro */
details.season-empty > summary { opacity: .4; pointer-events: none; }
details.season-empty .episode-list { display: none; }
 
/* Mensaje sin resultados */
#search-no-results {
    display: none;
    color: var(--muted);
    padding: 1.5rem 0;
    font-size: .95rem;
    text-align: center;
}
#search-no-results.visible { display: block; }


.ep-search-snippet {
    font-size: .78rem;
    color: var(--muted);
    margin: .25rem 0 0;
    line-height: 1.4;
}
.ep-search-snippet mark {
    background: var(--red);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}
/* ── Badge NUEVO ── */
.ep-badge-new {
    background: var(--red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}

/* Episodio pinneado: ligero separador visual */
.ep-list--pinned {
    background: color-mix(in srgb, var(--red) 6%, var(--dark2));
    border-bottom: 1px solid var(--dark4);
}
.ep-list--pinned:hover {
    background: color-mix(in srgb, var(--red) 12%, var(--dark3));
}
.ep-info a::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
html {
    background: var(--dark);
}
body {
    margin: auto;
}
*{
max-width: 2200px;
}

html {
    overflow-x: hidden;
}
        @media (max-width: 400px) {
            nav.main-nav {
    display: flex;
    min-width: auto;
    margin: inherit;
    padding: inherit;
    width: 100%;
}
        }