﻿/* CARD ITENS */

.hover-overlay {
    display: none;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    box-shadow: 1px 1px 17px 10px rgba(0,0,0,0.29);
    background-color: rgba(0, 0, 0, 0.4);
}

.carousel-card:hover .hover-overlay {
    display: block;
    transition: 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-card .carousel-time {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    top: 5px;
    right: 5px;
    color: #fff;
    z-index: 9999;
}

.carousel-card .top-content {
    display: block;
    position: absolute;
    top: 8px;
    left: 8px;
}

    .carousel-card .top-content span {
        background-color: #434547;
        padding: 2px 6px 4px 6px;
        color: #fff;
        border-radius: 8px;
        font-size: 12px;
        opacity: 0.7;
        font-weight: 700;
    }

.carousel-card .bottom-buttons {
    display: block;
    position: absolute;
    bottom: 8px;
    left: 8px;
}

.carousel-card .bottom-buttons span {
    font-weight: 700;
    color: #fff;
}

.carousel-card .bottom-buttons span.video-title {
    max-width: 25ch;
    display: inline-block;
}

.carousel-card .bottom-buttons a {
    display: none;
    margin-top: 5px;
}


.carousel-card:hover .bottom-buttons a {
    display: block;
}

.carousel-card .bottom-buttons .bt_padrao {
    padding: 4px 8px;
}

/* FIM CARD ITENS */

@media (min-width: 991px) {
    .carousel-wrapper {
        position: relative;
        margin-bottom: 3rem;
        overflow: visible; /* deixa o hover ultrapassar os limites */
    }

    .carousel-track {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 90px;
        clip-path: inset(0 0 0 0);
        margin: 0 -30px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: 100%;
    }

        .carousel-track::-webkit-scrollbar {
            display: none;
        }

    .carousel-card {
        flex: 0 0 340px; /* largura fixa dos cards */
        background-color: #1e1e1e;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
        border: none !important;
        background-color: transparent !important;
    }

    .carousel-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: #1A202C;
        color: white;
        padding: 0.5rem;
        border-radius: 50%;
        z-index: 99999;
        cursor: pointer;
        width: 40px;
        height: 40px;
    }

    .carousel-card img {
        width: 100%;
        height: 190px;
        object-fit: cover;
    }

    .carousel-card .bt_padrao {
        max-width: 80px;
    }

    .carousel-card:hover {
        transform: scale(1.16);
        transition: 0.3s;
        z-index: 10;
        box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    }

    .carousel-btn[disabled] {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

}

@media (max-width: 990px) {
    .carousel-card .bottom-buttons span.video-title {
        display: none;
    }

    .carousel-card .bottom-buttons {
        right: 8px;
        left: unset;
    }

    .hover-overlay {
        background-color: transparent;
    }

    .canal {
        margin-bottom: 2em;
        padding: 0 2em !important;
    }

    .carousel-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .carousel-card {
        background-color: #1e1e1e;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }

    .carousel-track {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .carousel-btn {
        display: none;
    }

    /*.hover-overlay:hover {
        background-color: unset !important;
    }*/

    .carousel-card .bottom-buttons a {
        display: block;
        width: fit-content;
    }

    .hover-overlay {
        display: block;
    }

    .carousel-card {
        border: none !important;
    }

        .carousel-card:hover .hover-overlay {
            background-color: transparent;
        }

    .bottom-buttons .bt_padrao {
        box-shadow: 1px 1px 10px 5px rgba(0,0,0,0.29);
    }
}

@media (max-width: 991px) and (min-width: 767px) {
    .carousel-track {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1em;
    }
}