* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;
    scroll-behavior: smooth;
    
}

html {
    width: 100%;
    max-width: 100%;
    
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    
}

    /* DESKTOP */

body {
    background-color: var(--cinzafundo);
    
}

:root {
    --branco: #ffffff;
    --preto: #0e0e0e;
    --cinza: #8a8a8a;
    --cinzaescuro: #292929;
    --cinzafundo: #181818;
}

.Cabeçalho {
   background-color: #0e0e0e;
   max-width: 100%;
   padding: 18px 60px;
   
   border-bottom: 1px solid var(--branco);
}

#animax {
    font-size: 27px;
}

.navegar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    
}

.nav-links > a {
    color: var(--branco);
    text-decoration: none;

    padding: 8px 10px;

    text-decoration: underline;
    text-underline-offset: 10px;

    white-space: nowrap;

    
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}


div.nav-actions {
    display: flex;
    gap: 18px;
}

.search-box {
    display: flex;
    align-items: center;

    width: 360px;
    height: 35px;

    background-color: #1f1f1f;
    border: 1px solid #2b2b2b;
    
    border-radius: 4px;
    padding: 0 8px;
}

.search-box input {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 12px;
}

.search-box input::placeholder {
    color: var(--cinza);
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--cinza);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.search-box button:hover {
    color: var(--branco);
}

.navegar > a {
    color: var(--branco);
    text-decoration: none;
}

.nav-actions > a > .btn-login {
    background-color: var(--preto);
    color: var(--branco);

    border-radius: 6px;
    border: 1px solid var(--cinza);
    height: 34px;
    width: 85px;

    cursor: pointer;
}

.nav-actions > a > .btn-criar {
    background-color: var(--branco);
    color: var(--preto);

    border-radius: 6px;
    
    height: 34px;
    width: 100px;

    cursor: pointer;
}


/* CORPO */

section.destaques {
    height: 395px;
    width: 92%;

    border-right: 1px solid var(--branco);
    border-left: 1px solid var(--branco);
    border-bottom: 1px solid var(--branco);
    

    border-radius: 0px 0px 9px 9px;

    margin: auto;

    position: relative;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}

section.destaques::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.75) 32%,
        rgba(0, 0, 0, 0.35) 65%,
        rgba(0, 0, 0, 0.15) 100%
    );

    z-index: 0;
}

.section.destaques > * {
    position: relative;
    z-index: 1;
}

span.tag {
    color: var(--branco);
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 7px;
    
    padding: 2px 6px;

    position: absolute;
    top: 35px;
    left: 60px;
}

h1#titulo {
    position: absolute;
    top: 70px;
    left: 60px;

    color: white;
    font-size: 32px;
    width: 1000px;
}

.anime-info {
    position: absolute;
    top: 120px;
    left: 64px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: lightgray;
    font-size: 16px;

    flex-wrap: wrap;
    max-width: 430px;
}

.anime-info span {
    position: static;
    color: lightgray;
}

.anime-info span:not(:last-child)::after {
    content: "|";
    margin-left: 8px;
    color: lightgray;
}


div.generos {
    width: fit-content;

    display: flex;
    align-items: center;
    gap: 8px;

    position: absolute;
    top: 155px;
    left: 64px;
}

.genero-item {
    background-color: var(--cinzaescuro);
    color: var(--cinza);

    min-width: 65px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 12px;
    border-radius: 5px;
}

#descricao {

    max-width: 430px;
    

    position: absolute;
    top: 195px;
    left: 64px;

    line-height: 1.7;
    width: 390px;

    color: var(--branco);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

div.botoes {
    position: absolute;
    top: 315px;
    left: 64px;


}

div.botoes {
    display: flex;
    gap: 15px;
}

div.botoes > .btn-primario {
    background-color: var(--branco);
    
    height: 50px;
    width: 150px;

    border-radius: 9px;

    border: none;
    box-shadow: 0px 1px 4px 1px var(--cinza);
    
    outline: none;
    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

}

div.botoes > .btn-secundario {
    background-color: var(--cinzaescuro);
    color: var(--branco);
    
    height: 50px;
    width: 120px;

    border-radius: 9px;

    border: none;
    box-shadow: 0px 1px 4px 1px var(--cinzaescuro);
    outline: none;
    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;

}
/* CARROSSEL CARDS */

.card-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.card-arrow {
    display: none;
}

/* EM ALTA */

section.anime-section-trending {
    color: var(--branco);
    width: 92%;
    margin: 0 auto;

}
/* CARROSSEL EM ALTA */
    .card-carousel {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .carousel-arrow {
        display: none;
    }

/* EM ALTA */

div.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 0px;
    margin: 0;

}

div.section-header > h2 {
    margin: 0;
    padding: 0;

    color: var(--branco);
    margin: 0;
    
    margin-top: 5px;
}

div.section-header a {
    margin: 0;
    padding: 0;

    color: var(--cinza);
    text-decoration: underline var(--branco);
    text-underline-offset: calc(5px);
    
    margin-top: 10px;
}

div.section-header > a:hover {
    color: var(--branco);
}

div.anime-list {
    margin-top: 20px;
   
    width: 100%;
    height: 130px;
    
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;

    border-radius: 5px;

}

.anime-card-trending {
    width: 100%;
    height: 130px;

    background-color: var(--preto);
    border: 2px solid var(--cinza);
    border-radius: 5px;

    position: relative;
    overflow: hidden;

    cursor: pointer;
}


/* LANÇAMENTOS */

section.anime-area-news {
    color: var(--branco);
    width: 92%;
    margin: 0 auto;

}

div.section-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    padding: 0px;
    margin: 0;
}

div.section-news-header > h2 {
    margin: 0;
    padding: 0;

    color: var(--branco);
    margin: 0;
    
    margin-top: 5px;
}

div.section-news-header a {
    margin: 0;
    padding: 0;

    color: var(--cinza);
    text-decoration: underline var(--branco);
    text-underline-offset: calc(5px);
    
    margin-top: 10px;
}

div.section-news-header > a:hover {
    color: var(--branco);
}

div.anime-list-news {
    margin-top: 20px;
    width: 100%;
    


    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.anime-card-launch {
    width: 100%;
    height: 130px;

    background-color: var(--branco);
    border: 2px solid var(--cinza);
    border-radius: 5px;

    cursor: pointer;
}

/* DIVISÃO ENTRE CATEGORIAS */ 

.rate-row {
    position: relative;

    width: 92%;
    margin: 25px auto 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;

    align-items: start;
}

.rate-row::before {
    content: "";
    position: absolute;

    top: 60px;
    left: 50%;
    
    width: 1px;
    height: 160px;
    background-color: var(--cinza);

    transform: translateX(-50%);
    opacity: 0.5;
}

/* MELHORES AVALIADOS + PARECIDOS COM VOCE */


section.anime-area-rate, section.anime-area-parecidos {
    color: var(--branco);

    width: 100%;
    
}

.section-rate-title, .section-simi-title {
    text-align: center;
    width: 100%;
}

.section-rate-title h2,
.section-simi-title h2 {
    color: var(--branco);
    font-size: 24px;
}


.section-rate-link, .section-simi-link {
    width: 100%;
    text-align: center;
    margin-top: 2px;
}

.section-rate-link a, .section-simi-link a {
    color: var(--cinza);
    text-decoration: underline var(--branco);
    text-underline-offset: 5px;
}

.section-rate-link a:hover, .section-simi-link a:hover {
    color: var(--branco);
}

.section-rate-link, .section-simi-link {
    color: var(--branco);
}

div.anime-list-rate, .anime-list-simi, .anime-area-parecidos .anime-list-simi {
    width: 100%;
    height: auto;
    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin-top: 18px;
    margin-left: 0;
}

.anime-card-rated, .anime-card-simi {
    width: 100%;
    height: 130px;

    background-color: var(--branco);
    border: 2px solid var(--cinza);
    border-radius: 5px;

    cursor: pointer;
}

/* Responsividade */

@media (max-width: 768px) {
    /* HEADER */

    .Cabeçalho {
        padding: 16px 24px;
        width: 100%;
        overflow: hidden;
    }

    .navegar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .search-box {
        order: 2;
        width: 100%;
        max-width: 360px;
    }

    .nav-links {
        order: 3;
        width: 100%;

        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .nav-actions {
        order: 4;
        width: 100%;

        display: flex;
        justify-content: center;
        gap: 14px;
    }

    /* BANNER */

/* BANNER MOBILE */

section.destaques {
    width: 100%;
    min-height: 350px;
    height: auto;

    overflow: hidden;

    border-radius: 0;
    border-bottom: 1px solid var(--branco);
    border-right: 0;
    border-left: 0;

    background-position: center;
}

section.destaques::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 0%
    );

    z-index: 0;
}

.content {
    width: 100%;
    max-width: none;

    margin-left: 0;
    padding: 35px 24px 40px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

span.tag {
    position: static;

    font-size: 18px;
    margin-bottom: 20px;
}

h1#titulo {
    position: static;

    font-size: 34px;
    line-height: 1.15;

    max-width: 100%;
    margin-bottom: 18px;
}

.anime-info {
    position: static;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    max-width: 100%;
    margin-bottom: 22px;

    color: var(--cinza);
    font-size: 16px;
}

.anime-info span {
    position: static;
    color: var(--cinza);
}

.anime-info span:not(:last-child)::after {
    content: "|";
    margin-left: 8px;
}

div.generos {
    position: static;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    width: 100%;
    margin-bottom: 45px;
}

.genero-item {
    min-width: auto;
    height: 36px;

    padding: 0 14px;
    font-size: 16px;
}

#descricao {
    display: none;
}

div.botoes {
    position: static;

    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

div.botoes > .btn-primario,
div.botoes > .btn-secundario {
    height: 52px;
    font-size: 16px;
}

div.botoes > .btn-primario {
    width: 150px;
}

div.botoes > .btn-secundario {
    width: 130px;
}

    /* DIVISORIA */

    .rate-row {
    width: 92%;
    margin: 25px auto 0;

    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.rate-row::before {
    display: none;
}


/* CARDS */
section.anime-section-trending, section.anime-area-news {
    width: 92%;
}

div.anime-list, div.anime-list-news {
    display: flex;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    padding: 0px;
    height: 130px;
}

div.anime-list::-webkit-scrollbar, div.anime-list-news::-webkit-scrollbar {
    display: none;
}

.anime-card-trending, .anime-card-launch {
    
    max-width: 53%;
    height: 115px;

    flex-shrink: 0;

    scroll-snap-type: start;
}


/* CARROSSEL (EM ALTA) */

div.anime-list,
div.anime-list-news {
    display: flex;
    gap: 12px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scrollbar-width: none;

    padding: 0;
    height: 130px;
}

div.anime-list::-webkit-scrollbar,
div.anime-list-news::-webkit-scrollbar {
    display: none;
}

.anime-card-trending,
.anime-card-launch {
    flex: 0 0 53%;
    max-width: 49%;
    height: 130px;
}

.carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 34px;
    height: 55px;

    border: none;
    border-radius: 8px;

    background-color: rgba(0, 0, 0, 0.45);
    color: var(--branco);

    font-size: 32px;
    cursor: pointer;

    z-index: 30;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.75);
}
/* MELHORES AVALIADOS + PARECIDOS COM VOCÊ */

.anime-area-rate, .anime-area-parecidos {
    position: relative;
}

.section-rate-title, .section-simi-title {
    text-align: left;
    width: auto;
}

.section-rate-title h2, .section-simi-title h2 {
    font-size: 24px;
    text-align: left;
    white-space: nowrap;
}

.section-rate-link {
    position: absolute;
    top: 6px;
    right: 0;

    width: auto;
    margin-top: 0;
    text-align: right;
}
.section-simi-link {
position: absolute;
    top: 6px;
    right: 0;

    width: auto;
    margin-top: 0;
    text-align: right;
}

.section-rate-link a, .section-simi-link a {
    font-size: 17px;
        }


    .section-news-header h2,
    .section-header h2 {
        font-size: 22px;
    }

    .section-news-header a,
    .section-header a {
        font-size: 17px;
    }
}
    
