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

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

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

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

    /* 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;
}
div.filtros h4 {
    padding-top: 8px;
}

div.filtros {
    background-color: var(--preto);
    color: var(--branco);
    border-bottom: 1px solid var(--branco);
    border-right: 1px solid var(--branco);
    border-left: 1px solid var(--branco);

    text-align: center;
    margin: auto;

    width: 700px;
    height: 80px;

    border-radius: 0px 0px 8px 8px;
}

div.filtros select {
    background-color: var(--branco);
    color: var(--preto);
    
    height: 20px;
    margin-top: 10px;

    border-radius: 3px;
}

.nenhum-anime {
    color: var(--branco);

    text-align: center;
}

.animes {
    width: 92%;
    max-width: 1200px;
    margin: 40px auto;
}

.anime-list {
    margin-top: 20px;
   
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 200px));
    justify-content: center;
    gap: 24px;

    border-radius: 5px;

}

.card-anime {
    position: relative;

    background-color: var(--preto);
    border: 1px solid var(--branco);
    
    width: 100%;
    height: 300px;
    
    border-radius: 6px;
    cursor: pointer;

    overflow: hidden;

     transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-anime:hover {
    transform: translateY(-8px) scale(1.03);
   box-shadow: 0 0 15px rgba(255, 255, 255, 0.35);

}

.card-info #nota { 
    color: var(--branco);
    
}

.card-info h3 {
    color: var(--branco);

    position: relative;
    top: -5px;
}

.card-img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}

.card-info {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    padding: 50px 12px 12px;

    color: var(--branco);

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95),
        rgba(0, 0, 0, 0.65),
        transparent
    );
}

.card-info #eps {
    color: var(--branco);

}

.card-detalhes {
    display: flex;
    flex-direction: column;
    gap: 3px;
    
    font-size: 15px;
}

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

    gap: 15px;

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

.paginacao button {
    background-color: var(--preto);
    color: var(--branco);

    border: 1px solid var(--branco);
    border-radius: 6px;

    padding: 10px 24px;
    

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition: background 0.2s, color 0.2s;

    width: 120px;
}

.paginacao button:hover {
    background-color: var(--branco);
    color: var(--preto);
}

#numero-pagina {
    width: 45px;
    background-color: var(--preto);
    color: var(--branco);
    border: 1px solid var(--branco);
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 5px;
    margin: 0 5px;
}


#numero-pagina::-webkit-inner-spin-button,
#numero-pagina::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.loading {
    color: var(--branco);

    width: 100%;
    text-align: center;

    margin: 40px auto;
    
    grid-column: 1 / -1;
}



@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;
    }

    .animes {
        width: 100%;
        padding: 0 16px;
        margin: 30px auto;
        
    }

    .anime-list {
        width: 100%;

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

        justify-content: center;
    }

.card-info #nota { 
    color: var(--branco);
}

.card-info h3 {
    color: var(--branco);
    
    position: relative;
    top: -3px;
}


.card-info #eps {
    color: rgb(255, 255, 255);
}

div.filtros {
    width: 299px;
    height: 130px;
}

div.filtros select {
    
    width: 130px;
}

.nenhum-anime {
    position: relative;
    left: 50%;
}

}

/* Mobile */

@media (min-width: 769px) and (max-width: 1190px) {

    html,
    body {
        overflow-x: hidden;
    }

    .Cabeçalho {
        padding: 18px 28px;
        overflow: hidden;
    }

    .navegar {
        width: 100%;

        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "logo search actions"
            "links links links";

        align-items: center;
        gap: 22px 24px;
    }

    #animax {
        grid-area: logo;

        font-size: clamp(32px, 4vw, 46px);
        letter-spacing: 3px;

        white-space: nowrap;
    }

    .search-box {
        grid-area: search;

        width: 100%;
        max-width: 420px;
        height: 50px;

        justify-self: center;
    }

    .search-box input {
        font-size: 17px;
    }

    .search-box button {
        font-size: 22px;
    }

    .nav-actions {
        grid-area: actions;

        display: flex;
        justify-content: flex-end;
        gap: 12px;

        white-space: nowrap;
    }

    .nav-actions > a > .btn-login,
    .nav-actions > a > .btn-criar {
        width: 112px;
        height: 48px;

        font-size: 18px;
    }

    .nav-links {
        grid-area: links;

        width: 100%;

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

        gap: 34px;
    }

    .nav-links > a {
        font-size: 22px;

        padding: 0;
        white-space: nowrap;

        text-underline-offset: 12px;
    }

    
}