/* Barra superiore */

#box-ricerca {
    position: fixed;
    display: grid;
    grid-template-columns: 1fr 150px;
    width: 100%;
    padding: 10px;
    background: #ffffffcc;
    backdrop-filter: blur(5px);
    border-bottom: 1px #00000018 solid;
    z-index: 999;
}

#ricerca {
    padding: 10px;
    width: 100%;
    background: #ffffff;
    border: 1px #00000033 solid;
    outline: none;
    color: #000000;
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
    padding-left: 20px;
    font-size: 14pt;
}

#f-genere {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    border: 1px #00000033 solid;
    text-align: center;
    background: #fff;
    border-left: none;
}

#f-genere option:nth-child(1) {
    color: #000;
    font-weight: bold;
}

/* Pagina */

#page {
    padding: 10px;
    padding-top: 64px;
}


/* Lista */

#lista,
#lista li {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

#lista,
#lista ul,
#lista ul li,
#lista ul li a {
    width: 100%;
    min-width: 320px;
}

#lista {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-top: 15px;
}

/* Elementi */

#lista li a {
    display: block;
    text-decoration: none;
    cursor: pointer;
    border-radius: 5px;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: box-shadow 0.1s ease-in-out;
}

#lista li a:hover {
    box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);
}

#lista li a b {
    color: #000000;
    font-weight: normal;
    font-family: LatoRegular;
}

#lista li a > span {
    align-items: center;
}

#lista li a .titolo {
    display: flex;
    gap:10px;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

#lista li a .titolo * {
    color: var(--primary-color);
}

#lista li a .titolo b {
    font-family: LatoRegular;
    font-size: 12pt;
}

#lista li a .poster {
        position: relative;
}

#lista li a .poster,
#lista li a .poster > img {
    width: 100%;
    aspect-ratio: 6 / 9;
}

#lista li a .poster .voto-rt {
    display: none;
}

#lista li a .poster .voto-rt img {
        filter: drop-shadow(0px 0px 5px #ffffff);
}

#lista li a .video-data {
    display: grid;
    gap: 3px;
    padding: 15px;
}

#lista li a .video-data > * {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



@media screen and (max-width: 480px)
{
    .no-smartphone {
        display: none;
    }

    #page #lista {
        display: grid;
        gap: 15px;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    #lista li {
        aspect-ratio: 6 / 9;
    }
    
    #page #lista .video-data {
        display: none;
    }

    #lista li a .poster .voto-rt {
        position: absolute;
        display: block;
        bottom: 5px;
        right: 5px;
    }
}