/* pengaturan bagian popular */

.gendre-nav a {
    padding: 5px 10px;
    width: 800px;
    border-radius: 10px;
    background-color: brown;
    color: white;
}


.gendre-nav {
    display: flex;
    align-items: center;
    gap: 50px;
    overflow-x: scroll;
    overflow-y: hidden;
    height: 50px;
}

.gendre-nav::-webkit-scrollbar {
    height: 5px;
    background-color: aquamarine;
}

.big-title {
    font-size: 40px;
    text-transform: uppercase;
    color: rgb(247, 247, 247);
    padding: 20px;
    background-color: rgba(127, 147, 167, 0.501);
    margin: 20px 0;
}

.contain {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    align-items: center;
    width: 100%;
    gap: 40px;
    background: linear-gradient(to top, rgb(110, 0, 0), blue, rgba(255, 255, 255, 0.273));
    padding: 20px;
}

.contain figure {
    width: 300px;
    height: 400px;
    flex: 0 0 auto;
    border-radius: 10px;
    background-size: cover;
    overflow: hidden;
}

.contain figure figcaption {
    width: 100%;
    height: 50px;
    padding: 10px;
    text-align: start;

    >a {
        color: aliceblue;
    }
}

.contain figure:hover {
    transform: scale(1.02);

    >figcaption {
        transition: 2s;
        background: linear-gradient(to bottom, rgba(51, 51, 51, 0.823), rgba(255, 255, 255, 0.135));
    }
}

/* pengaturan slider */

main header {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

header .upcoming {
    width: 100%;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    margin: auto;
}

.slide {
    min-width: 100%;
    height: 45vw;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    margin: auto;
}

.slide figcaption {
    display: flex;
    flex-direction: column-reverse;
    position: relative;
    padding: 30px;
    bottom: 0;
    left: 0;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.993), rgba(255, 255, 255, 0.12));
}

.slide figcaption h1 {
    color: rgb(255, 0, 0);
    font-size: 4vw;
    font-weight: 700;
    text-transform: uppercase;
}

.slide figcaption p {
    margin-top: 20px;
    color: rgb(204, 204, 204);
    text-transform: capitalize;
    width: 50%;
    font-size: 1vw;
    font-weight: 700;
}

figcaption .coming-title {
    color: red;
    font-size: 4vw;
}

.slide figcaption .date-release {
    color: rgb(191, 229, 0);
}

/* pengaturan top rated */
.contain-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
}

.contain-top figure {
    width: 15vw;
    height: 20vw;
    margin: auto;
    border: 2px solid white;
    border-radius: 20px;
}

.contain-top figure .title{
    padding: 10px;
}

@media (max-width:1200px) {
    .contain-top {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width:1000px) {
    .contain-top {
        grid-template-columns: repeat(3, 1fr);

    }

    .contain-top figure {
        width: 25vw;
        height: 30vw;
    }
}

@media (max-width:820px) {
    .contain-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .contain {
        width: 100%;
        height: 200px;
        gap: 10px;

        >figure {
            width: 130px;
            height: 100%;
            background-size: contain;
            background-position: 0;
            font-size: 2vw;
            border-radius: 10px;

            >figcaption {
                width: 100%;
                padding: 4px;
                height: 20px;
            }
        }
    }
    .big-title {
        margin-top: 40px;
        font-size: 5vw;
    }

    .contain-top figure {
        width: 26vw;
        height: 40vw;
    }
}
@media (max-width:550px) {
    .contain-top figure .title{
        font-size:2vw;
    }
}

@media (max-width:430px) {

    /* slider */
    .slide {
        border-radius: 4px;
    }

    .slide figcaption p {
        margin-top: 10px;
        width: 130px;
        font-size: 5px;
    }

    /* title */
    .big-title {
        margin-top: 20px;
        font-size: 5vw;
    }

    /* bagian popular */
    .gendre-nav {
        gap: 10px;
    }

    .contain {
        width: 100%;
        height: 150px;
        gap: 10px;

        >figure {
            width: 100px;
            height: 100%;
            background-size: contain;
            background-position: 0;
            font-size: 2vw;
            border-radius: 10px;

            >figcaption {
                width: 100%;
                padding: 4px;
                height: 20px;
            }
        }
    }

    .contain figure figcaption a {
        color: aliceblue;
    }

    /* bagian top rated */
    .contain-top figure {
        width: 40vw;
        height: 60vw;
    }
}

@media (max-width:370px) {
    .contain-top figure {
        width: 35vw;
    }

}