/**
 * Fichier  : /ott/vod/assets/css/sidebar/tabs/playlist.css
 * Fonction : style de la tab 'playlist'
 */


/* ==================================================
   PLAYLIST CONTAINER
================================================== */

.playlist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ==================================================
   LINK RESET
================================================== */

.playlist a {
    text-decoration: none;
}


/* ==================================================
   CARD
================================================== */

.playlist .item {
    position: relative;
    overflow: hidden;
}

.playlist .item {
    padding: 10px;
}

.playlist .item {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 14px;
}

.playlist .item {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.06),
            rgba(255,255,255,0.03)
        );
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    backdrop-filter: blur(14px);
}

.playlist .item {
    transition:
        transform .25s ease,
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}


/* ==================================================
   HOVER EFFECT
================================================== */

.playlist .item:hover {
    border-color: rgba(255,120,0,0.22);
    background:
        linear-gradient(
            135deg,
            rgba(255,95,45,0.16),
            rgba(255,145,0,0.08)
        );
    box-shadow:
        0 10px 30px rgba(0,0,0,0.35),
        0 0 25px rgba(255,120,0,0.08);
}

.playlist .item:hover {
    transform: translateY(-2px);
}


/* ==================================================
   THUMBNAIL
================================================== */

.playlist .item .thumbnail {
    position: relative;
    height: 82px;
    overflow: hidden;
    flex-shrink: 0;
}

.playlist .item .thumbnail {
    border-radius: 10px;
}


.playlist .item .thumbnail img {
    width: 100%;
    height: 100%;
}

.playlist .item .thumbnail img {
    object-fit: cover;
    transform: scale(1);
}

.playlist .item .thumbnail img {
    transition:
        transform .5s ease,
        filter .3s ease;
}

.playlist .item:hover .thumbnail img {
    transform: scale(1.06);
    filter: brightness(1.05);
}


/* ==================================================
   THUMBNAIL OVERLAY
================================================== */

.playlist .item .thumbnail::after {
    content: "";
    position: absolute;
    inset: 0;
}

.playlist .item .thumbnail::after {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(0,0,0,0.15)
        );
}


/* ==================================================
   NAME BLOCK
================================================== */

.playlist .item .name {
    min-width: 0;
}

.playlist .item .name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}


/* ==================================================
   TITLE
================================================== */

.playlist .item .name h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.playlist .item .name h4 {
    font-family: 'bold-font';
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}


/* ==================================================
   SUBTITLE
================================================== */

.playlist .item .name h5 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist .item .name h5 {
    font-family: 'content-font';
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255,255,255,0.62);
}


/* ==================================================
   RESPONSIVE
================================================== */

@media screen and (max-width: 1024px) {
    
    .playlist {
        gap: 8px;
    }

    .playlist .item {
        grid-template-columns: 120px 1fr;
    }

    .playlist .item .thumbnail {
        height: 74px;
    }

}