
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #e5092e;
    --bg: #08080d;
    --card: #17171f;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: white;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

/* CABEÇALHO */

header {
    padding: 22px 5%;
    background: linear-gradient(100deg, #c40000, #65000b);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 29px;
    font-weight: 900;
}

.logo span {
    color: #ff9bab;
}

.menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.menu a {
    background: white;
    color: #111;
    padding: 12px 17px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    transition: .3s;
}

.menu a:hover {
    background: #26040a;
    color: white;
    transform: translateY(-2px);
}

.voltar {
    font-size: 13px;
    font-weight: bold;
}

/* BANNER */

.banner {
    min-height: 350px;
    padding: 65px 7%;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, #08080d 10%, #250610 65%, #650014);
    position: relative;
    overflow: hidden;
}

.banner::after {
    content: "CINEWORLD";
    position: absolute;
    right: -20px;
    bottom: -35px;
    font-size: clamp(70px, 15vw, 190px);
    font-weight: 900;
    color: rgba(255,255,255,.035);
    pointer-events: none;
}

.banner-conteudo {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.etiqueta {
    color: #ff4968;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: bold;
}

.banner h1 {
    font-size: clamp(42px, 6vw, 70px);
    margin: 18px 0;
}

.banner h1 span {
    color: var(--red);
}

.banner p {
    color: #ccc;
    line-height: 1.8;
    max-width: 500px;
}

.botao {
    display: inline-block;
    margin-top: 23px;
    padding: 15px 20px;
    background: var(--red);
    border-radius: 7px;
    font-size: 12px;
    font-weight: bold;
    transition: .3s;
}

.botao:hover {
    background: #ff2449;
    transform: translateY(-3px);
}

/* CATÁLOGO */

.catalogo {
    padding: 45px 5% 70px;
}

.titulo-secao {
    margin-bottom: 28px;
}

.titulo-secao small {
    color: #ff4968;
    letter-spacing: 2px;
    font-weight: bold;
}

.titulo-secao h2 {
    font-size: 30px;
    margin-top: 10px;
}

.filmes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.filme {
    background: var(--card);
    border: 1px solid #29202a;
    border-radius: 13px;
    overflow: hidden;
    cursor: pointer;
    transition: .3s;
}

.filme:hover {
    transform: translateY(-7px);
    border-color: var(--red);
    box-shadow: 0 10px 30px #e5092e20;
}

.capa {
    height: 230px;
    position: relative;
    overflow: hidden;
    background: #252530;
}

.capa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.filme:hover img {
    transform: scale(1.06);
}

.selo {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    padding: 7px 9px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
}

.info {
    padding: 17px;
}

.info h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.info p {
    color: #aaaab6;
    font-size: 13px;
    line-height: 1.6;
}

.ver-mais {
    display: inline-block;
    margin-top: 15px;
    color: #ff4968;
    font-size: 12px;
    font-weight: bold;
}

/* MODAL DE DETALHES */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.88);
    padding: 20px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal.aberto {
    display: flex;
}

.modal-conteudo {
    width: 100%;
    max-width: 850px;
    background: #15151d;
    border: 1px solid #3b2029;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: auto;
    animation: aparecer .25s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fechar {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;
    background: #08080ddd;
    border: 1px solid #555;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 19px;
}

.fechar:hover {
    background: var(--red);
}

.detalhe-topo {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(120deg, #330713, #15151d 75%);
}

.detalhe-topo img {
    width: 100%;
    height: 290px;
    object-fit: cover;
    border-radius: 9px;
    background: #29202a;
}

.detalhe-info {
    align-self: center;
}

.detalhe-info .categoria {
    color: #ff4968;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.detalhe-info h2 {
    font-size: 32px;
    margin: 14px 0;
}

.detalhe-info p {
    color: #ccc;
    line-height: 1.8;
    font-size: 14px;
}

.metadados {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.metadados span {
    border: 1px solid #49303a;
    background: #24151d;
    padding: 8px 10px;
    border-radius: 5px;
    color: #eee;
    font-size: 12px;
}

.trailer {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: var(--red);
    padding: 13px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    margin-top: 5px;
}

.trailer:hover {
    background: #ff2449;
}

/* AVALIAÇÃO */

.detalhe-corpo {
    padding: 25px 30px 30px;
}

.detalhe-corpo h3 {
    margin-bottom: 13px;
}

.detalhe-corpo h3 i {
    color: #ffc400;
}

.estrelas {
    display: flex;
    gap: 9px;
    margin: 15px 0;
}

.estrelas button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 30px;
    color: #555;
    transition: .2s;
}

.estrelas button.selecionada {
    color: #ffc400;
}

.estrelas button:hover {
    color: #ffc400;
    transform: scale(1.15);
}

.nota-texto {
    color: #bbb;
    font-size: 13px;
    line-height: 1.7;
}

.avaliacao-media {
    color: #ffc400;
    margin-top: 12px;
    font-size: 14px;
}

/* RODAPÉ */

.rodape {
    background: #030307;
    border-top: 1px solid #32101a;
    padding: 35px 20px;
    text-align: center;
    color: #aaa;
}

.rodape .logo {
    display: inline-block;
    color: white;
}

.rodape p {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.7;
}

.links-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 23px 0;
    font-size: 12px;
}

.links-footer a:hover {
    color: #ff4968;
}

/* RESPONSIVIDADE */

@media (max-width: 800px) {
    .filmes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    header {
        justify-content: center;
    }

    .menu {
        justify-content: center;
    }
}

@media (max-width: 550px) {
    .filmes {
        grid-template-columns: 1fr;
    }

    .banner {
        padding: 45px 22px;
    }

    .detalhe-topo {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .detalhe-topo img {
        width: 160px;
        height: 220px;
    }

    .detalhe-info h2 {
        font-size: 26px;
        padding-right: 25px;
    }

    .detalhe-corpo {
        padding: 22px;
    }

    .titulo-secao h2 {
        font-size: 25px;
    }

    .menu a {
        padding: 10px 12px;
        font-size: 11px;
    }

    .modal {
        padding: 10px;
    }
}