/* --- CONFIGURAÇÕES GERAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #2b2b2b;
    line-height: 1.6;
}

/* --- TOPO / MENU DE NAVEGAÇÃO --- */
.site-header {
    background-color: #111111; /* Fundo escuro elegante */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.site-header .logo {
    color: #e50914; /* Vermelho vibrante estilo corrida */
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    margin-left: 25px;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

.nav-menu a:hover, 
.nav-menu a.active {
    color: #e50914; /* Destaque vermelho ao passar o mouse */
    font-weight: 700;
}

/* --- CONTEÚDO PRINCIPAL --- */
.content-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* --- BANNER EM DOIS LADOS (IMAGEM + TEXTO) --- */
.movie-banner {
    display: flex;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    align-items: center;
}

.banner-image {
    flex: 1;
    max-width: 400px;
    display: flex;
}

.banner-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.banner-text {
    flex: 2;
    padding: 50px;
}

.banner-text h1 {
    font-size: 2.5rem;
    color: #111111;
    margin-bottom: 20px;
    font-weight: 700;
    border-left: 5px solid #e50914;
    padding-left: 15px;
    text-transform: capitalize;
}

.banner-text p {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 15px;
    text-align: justify;
}

/* --- RESPONSIVIDADE PARA CELULARES --- */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-menu a {
        margin: 0 10px;
    }

    .movie-banner {
        flex-direction: column;
    }

    .banner-image {
        max-width: 100%;
    }

    .banner-text {
        padding: 30px 20px;
    }

    .banner-text h1 {
        font-size: 1.8rem;
    }
}

/* --- Configurações Gerais e Reset --- */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #141414; /* Fundo escuro estilo cinema/Netflix */
    color: #f5f5f5;
    padding-bottom: 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 2rem;
    margin: 40px 0 20px 0;
    border-left: 5px solid #e50914; /* Detalhe vermelho esportivo */
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Barra de Navegação (Navbar) --- */
.navbar {
    background-color: #000;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    color: #aaa;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s, border-bottom 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: #fff;
    border-bottom: 2px solid #e50914;
}

/* --- Estrutura da Roleta / Carrossel CSS --- */
.carousel-container {
    width: 100%;
    overflow: hidden; /* Esconde os elementos que saem da tela */
    background: #1f1f1f;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
    position: relative;
}

/* Adiciona um efeito de sombra nas pontas da roleta */
.carousel-container::before,
.carousel-container::after {
    content: "";
    height: 100%;
    width: 150px;
    position: absolute;
    top: 0;
    z-index: 2;
    pointer-events: none;
}
.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, #1f1f1f, transparent);
}
.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, #1f1f1f, transparent);
}

/* Linha que segura os cards e se move */
.carousel-track {
    display: flex;
    width: max-content; /* Garante que a largura se adapte aos cards inline */
}

/* Animações específicas para cada roleta (movimento infinito simulado) */
.production-track {
    animation: roulette-move 25s linear infinite;
}

.actors-track {
    animation: roulette-move 25s linear infinite;
    animation-delay: 2s; /* Descompassa um pouco para ficar dinâmico */
}

/* Pausa a roleta quando o usuário passa o mouse por cima */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* --- Card Individual da Roleta --- */
.carousel-card {
    width: 320px;
    background: #2a2a2a;
    border-radius: 8px;
    margin: 0 20px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.carousel-card:hover {
    transform: scale(1.03);
    background: #333;
}

.carousel-card img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Ajusta a foto para não distorcer */
    border-bottom: 3px solid #e50914;
}

.card-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #fff;
}

.card-info p {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.4;
}

/* --- Animação da Roleta via Keyframes --- */
@keyframes roulette-move {
    0% {
        transform: translateX(0);
    }
    50% {
        /* Move a lista para a esquerda até o final */
        transform: translateX(-50%); 
    }
    100% {
        /* Retorna suavemente */
        transform: translateX(0);
    }
}
.video-container {
    max-width: 640px; 
    margin: 0 auto;
    position: relative;
    padding-bottom: 36%; /* Mantém a proporção de cinema compacta */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
