/**
 * Fichier  : /ott/vod/assets/css/sidebar/content.css
 * Fonction : styles des contenus de la sidebar
 */


/* ==================================================
   CONTENT WRAPPER
================================================== */

#video-sidebar .content {
    flex: 1 1 auto;
}

#video-sidebar .content {
    min-height: 0;
    height: 0;
    overflow: hidden;
    padding: 8px;
}

#video-sidebar .content {
    display: flex;
    flex-direction: column;
}

#video-sidebar .content {
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.08),
            rgba(255,255,255,0.03)
        );
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    backdrop-filter: blur(18px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 10px 30px rgba(0,0,0,0.30);
}


/* ==================================================
   TAB CONTENT
================================================== */

.tab {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    scrollbar-gutter: stable;
}


/* ==================================================
   SCROLLBAR
================================================== */

.tab::-webkit-scrollbar {
    width: 3px;
}

.tab::-webkit-scrollbar-track {
    background: #000;
}

.tab::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
}

.tab::-webkit-scrollbar-thumb:hover {
    background: #fff;
}


/* ==================================================
   ÉTATS
================================================== */

.tab {
    display: none;
}

.tab.active {
    display: block;
    animation: visibleTab 0.6s ease forwards;
}


/* ==================================================
   ANIMATIONS
================================================== */

@keyframes visibleTab {

    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}


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

@media screen and (max-width: 1024px) {

    #video-sidebar .content {
        min-height: auto;
        height: auto;
        overflow: visible;
    }

    .tab {
        height: auto;
        overflow-y: visible;
    }

}