/* ============================================= */
/* == PÁGINA CATÁLOGO GOBO RIO                == */
/* ============================================= */

/* --- VIDEO GRID --- */
.video-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 350px;
    background-color: #000;
}

.video-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.video-card:hover video {
    opacity: 0.8;
}

.video-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
}

.video-card-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.video-card-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.7;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.video-card:hover .video-card-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- MODAL DE VÍDEO --- */
.modal-video .modal-content {
    background-color: #1a1a1a;
    color: #f1f1f1;
}

.modal-video .modal-header {
    background-color: #111;
    border-bottom: 1px solid #333;
}

.modal-video .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-video .modal-title {
    color: var(--gobo-primary);
}

.modal-video .modal-body {
    padding: 2rem;
}

/* NOVO: Centraliza a descrição verticalmente */
.modal-video .video-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-video .video-description h6 {
    color: var(--gobo-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-video .video-description p {
    color: #ccc;
}

/* ATUALIZADO: Regra para imagens e vídeos dentro do modal */
.modal-video .carousel-inner video,
.modal-video .carousel-inner img,
.modal-video .modal-body>.row>.col-md-8>video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    /* Garante que a mídia caiba sem cortar ou distorcer */
    margin: 0 auto;
}

/* Responsividade para o Modal */
@media (max-width: 767px) {
    .modal-video .modal-body {
        padding: 1rem;
    }

    .modal-video .video-description {
        margin-top: 1.5rem;
        text-align: center;
        /* Melhora o alinhamento em telas pequenas */
    }
}