/* =========================================================
   WALA — PÁGINA DE EPISÓDIOS
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    background: #141414;
}

body {
    margin: 0;

    background:
        linear-gradient(
            180deg,
            #090909 0%,
            #141414 200px
        );

    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    min-height: 100vh;
}


/* =========================================================
   PÁGINA
   ========================================================= */

.episodes-page {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.episodes-header {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding:
        25px
        40px
        15px;

    display: flex;
    align-items: center;

    gap: 18px;
}


/* BOTÃO VOLTAR */

.back {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 46px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    padding: 0;
}


/* WALA */

.series-title small {
    display: block;

    margin-bottom: 3px;

    color: #20e070;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2px;
}


/* NOME DA SÉRIE */

.series-title h1 {
    margin: 0;

    font-size: 25px;
    font-weight: 700;
}


/* =========================================================
   CONTAINER PRINCIPAL
   ========================================================= */

.episodes-container {
    width: calc(100% - 40px);
    max-width: 900px;

    margin: 0 auto 80px;

    padding: 30px 0;
}


/* =========================================================
   TÍTULO + TEMPORADA
   ========================================================= */

.episodes-top {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;
}


/* EPISÓDIOS */

.episodes-top h2 {
    margin: 0;

    font-size: 27px;
    font-weight: 700;
}


/* =========================================================
   SELECT TEMPORADA
   ========================================================= */

.season-select {
    min-width: 190px;

    padding:
        12px
        42px
        12px
        18px;

    border: 1px solid #555;

    border-radius: 4px;

    background: #242424;

    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    outline: none;
}


.season-select:hover {
    background: #303030;
}


.season-select:focus {
    border-color: #888;
}


/* =========================================================
   CLASSIFICAÇÃO
   ========================================================= */

.season-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 16px;

    color: #d1d1d1;

    font-size: 14px;
}


.season-details strong {
    color: #ffffff;
}


/* A12 */

.age-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 25px;

    padding: 0 5px;

    border-radius: 3px;

    background: #f4c430;

    color: #000;

    font-size: 13px;
    font-weight: 900;
}


.content-rating {
    color: #c6c6c6;
}


/* =========================================================
   LISTA
   ========================================================= */

.episodes-list {
    width: 100%;
}


/* =========================================================
   EPISÓDIO
   ========================================================= */

.episode-card {
    width: 100%;

    display: grid;

    grid-template-columns:
        48px
        180px
        minmax(0, 1fr);

    align-items: center;

    gap: 16px;

    padding:
        20px
        15px;

    border-bottom: 1px solid #404040;

    color: #ffffff;

    text-decoration: none;

    transition:
        background .2s ease;
}


/* PRIMEIRO CARD */

.episode-card:first-child {
    border-radius: 4px 4px 0 0;
}


/* HOVER */

.episode-card:hover {
    background: #292929;
}


/* =========================================================
   NÚMERO
   ========================================================= */

.episode-number {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #d2d2d2;

    font-size: 25px;
    font-weight: 400;
}


/* =========================================================
   IMAGEM
   ========================================================= */

.episode-image {
    position: relative;

    width: 180px;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 4px;

    background: #222;
}


.episode-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   BOTÃO PLAY
   ========================================================= */

.episode-play {
    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%)
        scale(.8);

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-left: 3px;

    border: 2px solid #ffffff;

    border-radius: 50%;

    background:
        rgba(0, 0, 0, .65);

    color: #ffffff;

    font-size: 16px;

    opacity: 0;

    transition:
        opacity .2s ease,
        transform .2s ease;
}


.episode-card:hover
.episode-play {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/* =========================================================
   INFORMAÇÕES
   ========================================================= */

.episode-info {
    min-width: 0;
}


/* LINHA DO TÍTULO */

.episode-heading {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 8px;
}


/* TÍTULO */

.episode-heading h3 {
    margin: 0;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.3;
}


/* DURAÇÃO */

.episode-duration {
    flex-shrink: 0;

    color: #ffffff;

    font-size: 15px;
}


/* DESCRIÇÃO */

.episode-description {
    margin: 0;

    color: #c6c6c6;

    font-size: 14px;

    line-height: 1.45;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .episodes-header {
        padding:
            18px
            16px
            10px;

        gap: 10px;
    }


    .back {
        width: 36px;
        height: 40px;

        font-size: 40px;
    }


    .series-title h1 {
        font-size: 20px;
    }


    .episodes-container {
        width: 100%;

        margin-bottom: 50px;

        padding:
            20px
            16px;
    }


    .episodes-top h2 {
        font-size: 23px;
    }


    .season-select {
        min-width: 145px;

        padding:
            10px
            30px
            10px
            12px;

        font-size: 14px;
    }


    .season-details {
        font-size: 12px;
    }


    /* CARD */

    .episode-card {
        grid-template-columns:
            30px
            130px
            minmax(0, 1fr);

        gap: 10px;

        padding:
            15px
            4px;
    }


    .episode-number {
        font-size: 20px;
    }


    .episode-image {
        width: 130px;
    }


    .episode-heading {
        gap: 8px;

        margin-bottom: 5px;
    }


    .episode-heading h3 {
        font-size: 14px;
    }


    .episode-duration {
        font-size: 12px;
    }


    .episode-description {
        display: -webkit-box;

        overflow: hidden;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;

        font-size: 12px;
        line-height: 1.35;
    }

}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 480px) {

    .episodes-top {
        align-items: flex-start;
    }


    .episodes-top h2 {
        font-size: 21px;
    }


    .season-select {
        min-width: 135px;
    }


    .episode-card {
        grid-template-columns:
            25px
            115px
            minmax(0, 1fr);

        gap: 8px;
    }


    .episode-image {
        width: 115px;
    }


    .episode-heading {
        align-items: flex-start;
    }


    .episode-heading h3 {
        font-size: 13px;
    }


    .episode-duration {
        font-size: 11px;
    }


    .episode-description {
        font-size: 11px;
    }

}