* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --red: #e5092e;
    --bg: #08080d;
    --card: #17171f;
}

body {
    background: var(--bg);
    color: white;
    min-height: 100vh;
}

/* CABEÇALHO */
header {
    background: linear-gradient(110deg, #c40000, #65000b);
    padding: 25px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-titulo {
    font-size: 38px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-titulo span {
    color: #ffb5c2;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 15px;
    border-radius: 6px;
    transition: 0.3s;
}

nav a:hover,
nav a.ativo {
    background: rgba(255,255,255,0.18);
    color: #ffd4dc;
}

/* BANNER */
.banner {
    padding: 55px 7%;
    min-height: 260px;
    background:
        linear-gradient(90deg, rgba(0,0,0,.95), rgba(0,0,0,.35)),
        url("../imagens/acao.jpg") center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner h1 {
    color: var(--vermelho);
    font-size: clamp(30px, 5vw, 52px);
    margin-bottom: 12px;
}

.banner p {
    max-width: 620px;
    line-height: 1.7;
    font-size: 16px;
}

/* LISTA DE FILMES */
.conteudo {
    padding: 35px 5%;
}

/* TÍTULO DA LISTA */
.secao {
    padding: 35px 5% 55px;
}

.secao h2 {
    font-size: 27px;
    margin-bottom: 10px;
    border-left: 5px solid var(--red);
    padding-left: 13px;
}

.subtitulo {
    color: #aaa;
    margin: 18px 0 28px;
}

/* CARDS */
.filmes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.filme {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #29232b;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.filme:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px rgba(229,9,46,0.2);
    border-color: var(--red);
}

.filme img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
    background: #222;
}

.filme-info {
    padding: 17px;
}

.filme h3 {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.filme .genero {
    color: #ff5474;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.filme p {
    color: #bbb;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-detalhes {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: var(--red);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-detalhes:hover {
    background: #b90025;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
}

.modal.aberto {
    display: flex;
}

.modal-conteudo {
    background: #15151d;
    border: 1px solid #39303a;
    border-radius: 14px;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    position: relative;
    margin: auto;
}

.fechar {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 38px;
    height: 38px;
    background: #33303a;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
    z-index: 2;
}

.fechar:hover {
    background: var(--red);
}

.detalhe-topo {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
    margin: 20px 0 25px;
}

.detalhe-topo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    background: #25252d;
}

.categoria-detalhe {
    color: #ff5474;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.detalhe-info h2 {
    font-size: 28px;
    margin: 12px 0;
}

.detalhe-info p {
    color: #c8c4ca;
    line-height: 1.8;
    font-size: 14px;
}

.bloco {
    border-top: 1px solid #37313a;
    padding-top: 20px;
    margin-top: 20px;
}

.bloco h3 {
    margin-bottom: 12px;
    color: white;
}

.bloco p {
    color: #c8c4ca;
    line-height: 1.8;
    font-size: 14px;
}

/* AVALIAÇÃO */
.estrelas {
    display: flex;
    gap: 7px;
    margin: 10px 0;
}

.estrela {
    background: none;
    border: none;
    color: #666;
    font-size: 32px;
    cursor: pointer;
}

.estrela.selecionada {
    color: #ffc107;
}

.nota {
    color: #bbb;
    font-size: 13px;
}

/* BOTÃO TRAILER */
.btn-trailer {
    display: inline-block;
    background: var(--red);
    color: white;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 7px;
    font-weight: bold;
    margin-top: 15px;
}

.btn-trailer:hover {
    background: #b90025;
}

/* RODAPÉ */
footer {
    background: #111016;
    border-top: 1px solid #29232b;
    text-align: center;
    padding: 25px 15px;
    color: #999;
    font-size: 13px;
}

footer strong {
    color: #ff5474;
}

/* RESPONSIVIDADE */
@media (max-width: 1000px) {
    .filmes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    header {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 700px) {
    .filmes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .filme img {
        height: 250px;
    }

    .logo-titulo {
        font-size: 31px;
    }

    .banner {
        padding: 45px 6%;
    }

    .detalhe-topo {
        grid-template-columns: 1fr;
    }

    .detalhe-topo img {
        max-width: 220px;
        height: 280px;
    }

    .modal-conteudo {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .filmes {
        grid-template-columns: 1fr;
    }

    .filme img {
        height: 360px;
    }

    nav a {
        padding: 9px;
        font-size: 12px;
    }
}