#ricflix {
    margin-top: 40px;
}

.subsessao-titulo {
    margin-top: 32px;
    font-size: 1.5em;
}

.conteudo-carousel {
  display: flex; /* Alinha os cards na horizontal */
  overflow-x: auto; /* Permite a rolagem horizontal */
  gap: 16px; /* Espaçamento entre os cards */
  
  /* Comportamento de arrastar (drag) */
  cursor: grab; /* Mostra a "mãozinha" para indicar que é arrastável */
  user-select: none; /* Impede que o texto/imagens sejam selecionados ao arrastar */
  
  /* Esconde a barra de rolagem */
  scrollbar-width: none; /* Para Firefox */
  -ms-overflow-style: none;  /* Para Internet Explorer e Edge */
  position: relative;
}

img.carrousel-botao-anterior {
    position: absolute;
    top: 50%;
    width: 75px;
    transform: translateY(-50%);
    z-index: 10;
    left: -16px;
    cursor: pointer;
}

img.carrousel-botao-proximo {
    position: absolute;
    top: 50%;
    right: -16px;
    width: 75px;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
}

/* Esconde a barra de rolagem para navegadores Webkit (Chrome, Safari) */
.conteudo-carousel::-webkit-scrollbar {
  display: none;
}

/* Muda o cursor para "agarrando" quando o usuário clica */
.conteudo-carousel.active {
    cursor: grabbing;
}

.conteudo-container {
    position: relative;
    max-width: 1240px;
}

.video-card {
    flex: 0 0 200px;
    width: 200px;
    aspect-ratio: 9 / 16;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 0;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    filter: brightness(1);
    transition: 0.5s;

    &:hover {
        filter: brightness(1.15);
    }
}

.video-card .card-overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: linear-gradient(22deg, rgb(2 2 2 / 82%), transparent 90%);
    border-radius: 12px;
    overflow: hidden;
}

.video-card img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 8px;
}

.video-card h4 {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: #fff;
}

#player {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100vh;
    background: rgb(0 0 0 / 67%);
    backdrop-filter: blur(0px);
    display: grid;
    place-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;

    &.ativo {
        opacity: 1;
        pointer-events: auto;
        backdrop-filter: blur(6px);
    }
}

#player video {
    max-width: 95%;
    max-height: 95svh;
    cursor: pointer;
    border-radius: 12px;
}

#player-fechar {
    position: absolute;
    width: 36px;
    top: 16px;
    right: 16px;
    cursor: pointer;
}

@media (max-width: 767px) {
    .video-card {
        flex: 0 0 96px;
        width: 96px;
    }

    .video-card h4 {
        bottom: 4px;
        left: 6px;
        font-size: 0.75em;
    }

    .conteudo-carousel {
        gap: 4px;
    }

    #player-container {
        display: flex;
        justify-items: center;
        align-items: center;
        justify-content: center;
    }

    #player video {
        max-width: 100%;
        max-height: 95svh;
        cursor: pointer;
        border-radius: 0px;
    }

}