/* ============================================================
   SEASON PAGE — GENERAL LAYOUT (THEMED)
   ============================================================ */

body {
    background: var(--color-bg) !important;
    color: var(--color-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.season-page {
    padding-bottom: 2.5rem;
}

/* ============================================================
   HERO
   ============================================================ */

.season-hero {
    position: relative;
    width: 100%;
    padding: 3.5rem 1rem 2.8rem;
    margin-bottom: 2.5rem;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    isolation: isolate;
}

.season-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px) brightness(0.70);
    transform: scale(1.12);
    z-index: -2;
}

.season-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top left,
            rgba(var(--primary-color-rgb), 0.50),
            transparent 65%
        ),
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.78),
            rgba(0,0,0,0.96)
        );
    z-index: -1;
}

.season-hero-inner {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.4rem;
    align-items: flex-end;
}

/* POSTER */

.season-poster-card {
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid var(--color-border);
    padding: 0.6rem;
    box-shadow: 0 22px 55px rgba(0,0,0,0.85);
}

.season-poster-card img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    display: block;
}

/* HERO TEXT */

.season-hero-text {
    padding-bottom: 0.5rem;
}

.season-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 0.4rem;
}

.season-original-title {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.season-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.season-meta-dot::before {
    content: "• ";
    opacity: 0.75;
}

.season-overview-short {
    font-size: 0.95rem;
    color: var(--color-text);
    max-width: 780px;
    line-height: 1.55rem;
    margin-bottom: 1.5rem;
}

.season-cta-primary {
    display: inline-flex;
    padding: 0.7rem 1.7rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.7);
}

.season-cta-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

/* ============================================================
   LAYOUT CONTENT
   ============================================================ */

.season-content-wrapper {
    max-width: 1250px;
    margin: 0 auto 3.5rem;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr);
    gap: 2.2rem;
}

.season-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ============================================================
   EPISODES — PREMIUM LIST
   ============================================================ */

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: 0.5rem;
}

.episode-card {
    display: flex;
    gap: 1.2rem;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    text-decoration: none;
    color: var(--color-text);
    transition: 0.2s ease;
    box-shadow: 0 14px 32px rgba(0,0,0,0.6);
}

.episode-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    background: var(--color-surface-alt);
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.episode-thumb {
    width: 150px;
    min-width: 150px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    background: #020617;
    flex-shrink: 0;
}

.episode-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.episode-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.episode-header-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.episode-number {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    background: var(--primary-color);
    border-radius: 999px;
    color: #fff;
}

.episode-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
}

.episode-overview {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 750px;
    line-height: 1.45;
}

/* ============================================================
   ASIDE — DETALLES DE LA TEMPORADA
   ============================================================ */

.season-aside {
    min-width: 0;
}

.season-aside-card {
    background: radial-gradient(circle at top,
                rgba(15,23,42,1),
                rgba(15,23,42,0.95));
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.2rem 1.1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.75);
}

.season-aside-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.season-details-list {
    display: grid;
    gap: 0.9rem;
}

.season-detail-label {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.season-detail-value {
    font-size: 0.92rem;
    color: var(--color-text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .season-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .season-poster-card {
        max-width: 230px;
        margin: 0 auto;
    }

    .season-overview-short {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 900px) {
    .season-content-wrapper {
        grid-template-columns: minmax(0,1fr);
    }

    .season-aside {
        order: -1;
    }
}

@media (max-width: 640px) {
    .episode-card {
        flex-direction: column;
    }

    .episode-thumb {
        width: 100%;
        min-width: 0;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .season-section-title {
        font-size: 1rem;
    }

    .episode-thumb {
        height: 160px;
    }
}

/* fix performance -> lazy images */
img[loading="lazy"] {
    content-visibility: auto;
}
