body {
    background: #181818;
    color: #fff;
    padding-bottom: 110px; /* espaço para o rodapé fixo */
}

header, .navbar {
    background: #e50914 !important;
    color: #fff !important;
    box-shadow: none;
}

.navbar .navbar-brand span.fw-bold {
    color: #fff !important;
    font-size: 2rem !important;
    letter-spacing: 2px;
}

.navbar .material-icons {
    color: #fff !important;
}

h1 {
    color: #fff;
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.carousel-item img {
    object-fit: cover;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card {
    background: #232323;
    color: #fff;
    border: none;
    box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

#btnSugerir {
    background: #e50914;
    background: linear-gradient(90deg, #e50914 0%, #b81d24 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229,9,20,0.15);
    transition: background 0.2s;
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
}

#btnSugerir:hover {
    background: #b81d24;
}

#sugestaoFilme {
    margin-top: 2rem;
    animation: fadeIn 0.5s;
    border-radius: 16px;
}

#sugestaoFilme .card-title {
    color: #e50914;
    font-weight: 700;
    font-size: 1.4rem;
}

#sugestaoFilme .badge {
    background: #e50914;
    font-size: 1rem;
}

footer {
    background: #e50914 !important;
    border-top: none;
    font-size: 1.1rem;
    min-height: 90px;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
    width: 100vw;
    left: 0;
    position: fixed;
    bottom: 0;
    z-index: 100;
    box-shadow: 0 -2px 16px rgba(229,9,20,0.15);
}

footer span.ms-2 {
    color: #fff !important;
    font-size: 1.35rem;
    font-weight: bold;
    letter-spacing: 1px;
}

::-webkit-scrollbar {
    background: #232323;
    width: 10px;
}
::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    h1, .navbar .navbar-brand span.fw-bold {
        font-size: 1.2rem !important;
    }
    #sugestaoFilme {
        margin-top: 1rem;
    }
    /* Ajustes na centralização e tamanho mínimo da seção filmes-por-genero em telas menores */
    .filmes-por-genero {
        margin-left: 0;
        padding: 24px 4px 100px 4px;
        min-height: 70vh;
    }
    /* Ajustes responsivos para todos.html: cards, imagens e paginação */
    .filmes-por-genero .card {
        max-width: 98vw !important;
        min-width: 0 !important;
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    .filmes-por-genero .card img {
        max-width: 120px !important;
        min-width: 80px !important;
        max-height: 120px !important;
        height: auto !important;
        margin: 0 auto !important;
    }
    .filmes-por-genero .card-body {
        padding: 0.75rem 0.5rem !important;
    }
    .filmes-por-genero .row {
        flex-direction: column !important;
        align-items: center !important;
    }
    .filmes-por-genero .col-md-4, .filmes-por-genero .col-md-8 {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .pagination {
        flex-wrap: wrap;
        font-size: 1rem;
        gap: 2px;
    }
    .pagination .page-link {
        padding: 0.4rem 0.7rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    h1, .navbar .navbar-brand span.fw-bold {
        font-size: 1rem !important;
    }
    .card-body {
        padding: 1rem;
    }
    #btnSugerir {
        font-size: 1rem;
        padding: 0.5rem 1.2rem;
    }
    .navbar {
        padding: 0.5rem 1rem;
    }
    footer {
        font-size: 0.95rem;
        min-height: 60px;
        padding-top: 16px !important;
        padding-bottom: 16px !important;
        background: #e50914 !important;

    }
    footer span.ms-2 {
        font-size: 1.1rem;
    }
    body {
        padding-bottom: 70px;
    }
}

/* Garante que o carrossel e sugestão fiquem centralizados e bonitos em telas pequenas */
.carousel-inner, #sugestaoFilme {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.carousel.slide.flex-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 500px;
    justify-content: center;
}

.carousel-inner.flex-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 400px;
    align-items: center;
}

.carousel-item {
    width: 100% !important;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-control-prev, .carousel-control-next {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    z-index: 2;
}

.carousel-control-prev {
    top: 10px;
    bottom: unset;
}

.carousel-control-next {
    bottom: 10px;
    top: unset;
}

/* Centraliza .filmes-por-genero no centro da tela, ignorando a sidebar */
.filmes-por-genero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 32px 16px 120px 16px;
}
@media (max-width: 991.98px) {
    .filmes-por-genero {
        padding: 24px 4px 100px 4px;
        min-height: 70vh;
    }
}

@media (max-width: 600px) {
  #adsenseDireita {
    display: none !important;
  }
}
