/* =========================================================
   PÁGINA DE SÉRIE — serie.php
   Arquivo: style-serie.css (exclusivo desta página)
   ========================================================= */

/* =========================================================
   HERO CINEMATOGRÁFICO (diferente do pagina-hero)
   - altura maior
   - cover vertical flutuante à esquerda
   - info ao lado
   - gradiente lateral mais dramático
   ========================================================= */
.serie-hero {
    position: relative;
    width: 100%;
    min-height: 640px;
    padding: 120px 48px 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.serie-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.serie-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.5) saturate(1.1) blur(2px);
    transform: scale(1.08);
}

.serie-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(22, 24, 37, 1) 0%,
            rgba(22, 24, 37, 0.85) 35%,
            rgba(22, 24, 37, 0.55) 60%,
            rgba(22, 24, 37, 0.9) 100%),
        linear-gradient(180deg,
            rgba(22, 24, 37, 0.4) 0%,
            rgba(22, 24, 37, 0.1) 40%,
            rgba(22, 24, 37, 0.95) 100%);
    pointer-events: none;
}

.serie-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 48px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Capa vertical flutuante */
.serie-hero-cover {
    flex: 0 0 auto;
    width: 300px;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 80px rgba(229, 9, 20, 0.15);
    transform: translateY(-20px) rotate(-1.5deg);
    transition: transform 0.5s cubic-bezier(.2,.9,.3,1.2);
}

.serie-hero-cover:hover {
    transform: translateY(-28px) rotate(0deg) scale(1.03);
}

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

/* Coluna de info */
.serie-hero-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 10px;
    max-width: 720px;
}

.serie-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.serie-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid rgba(229, 9, 20, 0.5);
    color: #ff5259;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-radius: 100px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.serie-hero-title {
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 3.6em;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin: 0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.serie-hero-desc {
    color: #d1d3dd;
    font-family: Arial, sans-serif;
    font-size: 1em;
    line-height: 1.65;
    margin: 0;
    max-height: 8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.serie-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9a9caa;
    font-family: Arial, sans-serif;
    font-size: 0.92em;
    font-weight: 600;
    margin-top: 4px;
}

.serie-hero-meta strong {
    color: #fff;
    font-weight: 800;
}

.serie-hero-dot {
    opacity: 0.4;
}

/* =========================================================
   CONTEÚDO — capítulos
   ========================================================= */
.serie-content {
    width: 100%;
    padding: 20px 48px 60px;
    position: relative;
    z-index: 3;
}

/* Container do carrossel de capítulos */
.variable-width.capitulos-carousel {
    gap: 22px;
    padding: 8px 4px 20px;
    align-items: flex-start;
}

/* Reset do slick-track */
.capitulos-carousel .slick-track {
    height: auto !important;
    display: flex !important;
    align-items: stretch;
}

/* Card do capítulo */
.variable-width.capitulos-carousel .card {
    flex: 0 0 auto;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #0e0b14;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
    transition: transform 0.4s cubic-bezier(.2,.9,.3,1.2),
                box-shadow 0.4s ease;
    margin-right: 18px;
}

.variable-width.capitulos-carousel .card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.85),
                0 0 0 2px rgba(229, 9, 20, 0.65);
    z-index: 3;
}

/* Link ocupa 100% */
.capitulo-card > a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

/* Imagem */
.variable-width.capitulos-carousel .card img.img-metro {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.variable-width.capitulos-carousel .card:hover img.img-metro {
    transform: scale(1.08);
}

/* Tamanho — capas MAIORES que o index (280×420) */
.variable-width.capitulos-carousel .capitulo-card {
    width: 280px !important;
    height: 420px !important;
}

/* Overlay */
.capitulo-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(180deg,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.5) 50%,
        rgba(0,0,0,0.94) 100%);
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.capitulo-title {
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.capitulo-cta {
    color: #ff4d55;
    font-family: Arial, sans-serif;
    font-size: 0.8em;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.variable-width.capitulos-carousel .card:hover .capitulo-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Empty state */
.empty-state {
    width: 100%;
    padding: 60px 20px;
    text-align: center;
    color: #9a9caa;
    font-family: Arial, sans-serif;
    font-size: 1em;
    background: rgba(14, 11, 20, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */
@media (max-width: 1399px) {
    .serie-hero        { padding: 110px 36px 50px; min-height: 580px; }
    .serie-hero-cover  { width: 260px; }
    .serie-hero-title  { font-size: 3.1em; }
    .serie-hero-inner  { gap: 36px; }
    .serie-content     { padding: 20px 36px 50px; }
    .variable-width.capitulos-carousel .capitulo-card {
        width: 255px !important;
        height: 383px !important;
    }
}

@media (max-width: 1099px) {
    .serie-hero        { padding: 100px 28px 40px; min-height: 520px; }
    .serie-hero-cover  { width: 220px; }
    .serie-hero-title  { font-size: 2.5em; }
    .serie-hero-desc   { font-size: 0.95em; -webkit-line-clamp: 4; }
    .serie-hero-inner  { gap: 28px; }
    .serie-content     { padding: 20px 28px 40px; }
    .variable-width.capitulos-carousel .capitulo-card {
        width: 220px !important;
        height: 330px !important;
    }
}

@media (max-width: 767px) {
    .serie-hero        { padding: 90px 20px 40px; min-height: auto; }
    .serie-hero-inner  {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }
    .serie-hero-cover  {
        width: 180px;
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    }
    .serie-hero-cover:hover { transform: scale(1.02); }
    .serie-hero-info   { align-items: center; text-align: center; max-width: 100%; }
    .serie-hero-tags   { justify-content: center; }
    .serie-hero-title  { font-size: 2em; letter-spacing: -0.5px; }
    .serie-hero-desc   { font-size: 0.9em; -webkit-line-clamp: 4; }
    .serie-hero-meta   { justify-content: center; font-size: 0.85em; }

    .serie-content     { padding: 16px 18px 40px; }
    .variable-width.capitulos-carousel { gap: 14px; }
    .variable-width.capitulos-carousel .capitulo-card {
        width: 175px !important;
        height: 263px !important;
        margin-right: 12px;
    }
    .capitulo-overlay  { padding: 32px 12px 12px; }
    .capitulo-title    { font-size: 0.85em; }
    .capitulo-cta      { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
    .serie-hero-cover  { width: 155px; }
    .serie-hero-title  { font-size: 1.7em; }
    .serie-hero-desc   { font-size: 0.85em; }
    .serie-hero-inner  { gap: 18px; }
    .serie-content     { padding: 12px 12px 32px; }
    .variable-width.capitulos-carousel .capitulo-card {
        width: 155px !important;
        height: 233px !important;
        margin-right: 10px;
    }
    .capitulo-title    { font-size: 0.78em; }
}