.channel {
    display: block;
    width: 100%;
    position: relative;
}

.channel .channel_banner {
    width: 100%;
    height: 200px;
    padding: 0px;
    cursor: pointer;
    position: relative;
}

.channel .channel_banner img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.channel .channel_title {
    position: absolute;
    width: calc(100% - 124px);
    max-height: calc(80% - 32px);
    padding: 16px;
    color: white;
    font-size: 1.8em;
    background-color: rgba(0, 0, 0, 0.5);
    padding-left: 108px;
    left: 0;
    bottom: 0;
}

.channel .lower_channel {
    width: calc(100% - 32px);
}

.channel .channel_avatar {
    position: absolute;
    width: 72px;
    height: 72px;
    top: 130px;
    left: 16px;
    border: solid white 4px;
}

.channel .channel_description {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-height: 24px;     /* fallback */
    max-height: 72px;      /* fallback */
    -webkit-line-clamp: 3; /* number of lines to show */
    -webkit-box-orient: vertical;
}

.channel .record_card {
    display: inline-block;
    margin-left: 8px;
}

.channel .records {
    position: absolute;
    bottom: 0px;
    right: 0px;
    margin: 16px;

    height: 140px;
    overflow: hidden;
}

@media (min-width: 1601px) {
    /*
        Taille des records :

        256px                   : Taille d'une vignette record
        + 10px                  : Ajout d'un espace entre chaque vignette record
        + 1px                   : Shadow pixel
    */
    .channel .records {
        width: calc((256px + 10px + 1px) * 3);
    }

    /*
        Taille de la description :

        100%
        - 8px                   : Ajout d'un espace entre la description et les vignettes records
        - (256px + 10px + 1px)  : Taille des records
    */
    .channel .channel_description {
        width: calc(100% - 8px - (256px + 10px + 1px) * 3);
    }
}

 @media (min-width: 1201px) and (max-width: 1600px) {
    .channel .records {
        width: calc((256px + 10px + 1px) * 2);
    }

    .channel .channel_description {
        width: calc(100% - 8px - (256px + 10px + 1px) * 2);
    }
}

@media (min-width: 841px) and (max-width: 1200px) {
    .channel .records {
        width: calc((256px + 10px + 1px) * 1);
    }

    .channel .channel_description {
        width: calc(100% - 8px - (256px + 10px + 1px) * 1);
    }
}

@media screen and (max-width: 840px) {
    .channel .records {
        display: none;
    }

    .channel .channel_description {
        width: calc(100%);
    }
}

.channel:hover {
    z-index: 2;
    box-shadow: 0px 0px 6px 0px rgba(0,0,0,0.12), 0px 6px 6px 0px rgba(0,0,0,0.24);
}
