 /*  css/scrollytelling.js*/

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #111827;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header, footer {
    padding: 40px 20px;
    text-align: center;
    background-color: #1f2937;
    position: relative;
    z-index: 10;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
}

.movie-group {
    width: 100%;
    max-width: 96%;
    min-height: 380px;
    /* ATUALIZAÇÃO: Margem vertical reduzida de 3rem para 1.5rem para aproximar os grupos */
    margin: 0 1rem ;
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.movie-group h2 {
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    text-align: left;
    color: #ffffff;
    transition: opacity 0.5s ease;
    /* Adiciona um pequeno espaço entre o ícone e o texto */
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.movie-list {
    display: flex;
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
}

.movie-poster {
    width: 180px;
    height: 270px;
    background-color: #374151;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Efeito de fade-in para imagens carregadas com LazyLoad */
img.lazy[data-src] {
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}
img.lazy.loaded {
	opacity: 1;
}

.movie-poster:hover {
    transform: scale(1.05);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- ESTADOS DA ANIMAÇÃO --- */

.is-active {
    filter: blur(0px);
    transform: scale(1);
    opacity: 1;
    mask-image: none; 
}
.is-active h2 {
    opacity: 1;
}

.is-below, .is-above {
    filter: blur(8px);
    transform: scale(0.9);
    opacity: 0.5;
}
.is-below h2, .is-above h2 {
    opacity: 0;
}

.is-below {
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.is-above {
    -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
    mask-image: linear-gradient(to top, black 40%, transparent 100%);
}
