



.hero-slider {
    --hero-accent: var(--pc-accent, #e50914);
    --hero-yellow: #f5c518;
    --hero-white: #ffffff;
    --hero-text: rgba(255, 255, 255, .92);
    --hero-text-muted: rgba(255, 255, 255, .55);
    --hero-surface: rgba(255, 255, 255, .12);
    --hero-surface-h: rgba(255, 255, 255, .20);
    --hero-border: rgba(255, 255, 255, .18);
    --hero-radius: 6px;
    --hero-ease: cubic-bezier(.25, .46, .45, .94);
    /* tom escuro do hero derivado do tema: casamento com a cor de fundo da página
       (mantém contraste mesmo em temas claros) */
    --hero-ink: color-mix(in srgb, #050505 78%, var(--pc-bg, #050505));
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    max-height: 720px;
    background: var(--pc-bg, #050505);
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    isolation: isolate;
    margin: 0 calc(clamp(16px, 3vw, 40px) * -1) 10px;
    width: calc(100% + (clamp(16px, 3vw, 40px) * 2));
}

.hero-slider:active {
    cursor: grabbing;
}

.swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    flex-shrink: 0;
    pointer-events: auto;
    
    transform: translate3d(0,0,0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}


.hero-slide:not(.swiper-slide-active):not(.swiper-slide-next):not(.swiper-slide-prev) {
    opacity: 0 !important;
    visibility: hidden;
}

.hero-slide.swiper-slide-active {
    z-index: 5;
    visibility: visible;
}

.hero-slide.swiper-slide-next,
.hero-slide.swiper-slide-prev {
    z-index: 4;
    visibility: visible;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    will-change: transform, opacity;
    transform: translate3d(0,0,0) scale(1.04);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--pc-bg, #050505);
}

.hero-slide.swiper-slide-active .backdrop-img {
    animation: heroZoom 12s var(--hero-ease) forwards;
}

@keyframes heroZoom {
    from { transform: translateZ(0) scale(1.04); }
    to { transform: translateZ(0) scale(1.00); }
}






.hero-backdrop.is-poster-fallback .backdrop-img {
    filter: blur(38px) saturate(1.15) brightness(.55);
    transform: translate3d(0, 0, 0) scale(1.15);
}

.hero-backdrop.is-poster-fallback .backdrop-img,
.hero-slide.swiper-slide-active .hero-backdrop.is-poster-fallback .backdrop-img {
    animation: none;
}

.backdrop-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 42%;
}

@media (max-width: 768px) {
    .backdrop-poster {
        background-position: center 30%;
    }
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(105deg, color-mix(in srgb, var(--hero-ink) 96%, transparent) 0%, color-mix(in srgb, var(--hero-ink) 75%, transparent) 28%, color-mix(in srgb, var(--hero-ink) 25%, transparent) 55%, transparent 72%),
        linear-gradient(to top, var(--pc-bg, #050505) 0%, color-mix(in srgb, var(--hero-ink) 80%, transparent) 16%, color-mix(in srgb, var(--hero-ink) 30%, transparent) 38%, transparent 58%),
        linear-gradient(to bottom, color-mix(in srgb, var(--hero-ink) 65%, transparent) 0%, transparent 22%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 5.5% 72px;
    pointer-events: none;
}

.hero-content > * {
    pointer-events: auto;
}

.hero-info-area {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    transform: translateY(0);
    will-change: opacity, transform;
}

.hero-slide.swiper-slide-active .hero-info-area {
    animation: heroFadeUp 0.8s var(--hero-ease) both;
    animation-delay: 0.2s;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-type-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hero-accent);
    margin-bottom: -2px;
}

.type-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hero-accent);
    flex-shrink: 0;
}

.hero-logo-container {
    display: flex;
    align-items: flex-end;
    min-height: 60px;
}

.hero-logo {
    max-height: 110px;
    max-width: 380px;
    width: auto;
    object-fit: contain;
    object-position: left bottom;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, .85));
}

.hero-text-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--hero-white);
    line-height: 1.14;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .9);
}

.hero-metadata {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--hero-text);
}

.meta-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--hero-yellow);
    font-weight: 700;
    font-size: .88rem;
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--hero-text-muted);
    flex-shrink: 0;
}

.genre-tag {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .80);
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
}

.hero-synopsis {
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    font-size: .92rem;
    font-weight: 700;
    border-radius: var(--hero-radius);
    cursor: pointer;
    transition: all .2s var(--hero-ease);
    white-space: nowrap;
    text-decoration: none;
}

.hero-btn--primary {
    background: var(--hero-white);
    color: #0a0a0a;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}

.hero-btn--primary:hover {
    background: #e8e8e8;
    transform: scale(1.03);
}

.hero-btn--secondary {
    background: var(--hero-surface);
    color: var(--hero-white);
    border: 1px solid var(--hero-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-btn--secondary:hover {
    background: var(--hero-surface-h);
    transform: scale(1.02);
}

.swiper-pagination.hero-pagination {
    bottom: 22px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 20;
    pointer-events: none;
}

.hero-pagination .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, .30);
    border-radius: 50%;
    opacity: 1;
    transition: all .25s ease;
    cursor: pointer;
    pointer-events: auto;
    margin: 0 !important;
}

.hero-pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 3px;
    background: var(--hero-white);
}

@media (max-width: 1024px) {
    .hero-slider { height: 65vh; }
    .hero-info-area { max-width: 500px; }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 72svh;
        min-height: 450px;
        margin: 0 -16px 0;
        width: calc(100% + 32px);
    }
    .hero-content {
        padding: 0 22px 60px;
    }
    .hero-vignette {
        background:
            linear-gradient(to top, var(--pc-bg, #050505) 0%, color-mix(in srgb, var(--hero-ink) 80%, transparent) 22%, color-mix(in srgb, var(--hero-ink) 35%, transparent) 55%, color-mix(in srgb, var(--hero-ink) 65%, transparent) 100%);
    }
    .hero-info-area {
        max-width: 100%;
        width: 100%;
    }
    .hero-logo {
        max-height: 82px;
        max-width: 280px;
    }
    .hero-text-title {
        font-size: 1.8rem;
    }
    .hero-synopsis {
        font-size: .86rem;
        -webkit-line-clamp: 4;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: row;
        width: 100%;
    }
    .hero-btn {
        flex: 1;
        justify-content: center;
        padding: 11px 15px;
        font-size: 0.85rem;
    }
}

.section {
    position: relative;
    z-index: 10;
    margin-top: -20px;
}

@media (max-width: 768px) {
    .section {
        margin-top: -35px;
    }
}
