﻿
.evc-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

/* --- ESTADO PADRÃO --- */
.evc-card {
    overflow: hidden;
    position: relative;
    border-radius: 15px 15px;
}

.evc-header {
    height: clamp(150px, calc(19vw * 135/240), 200px);
    border-radius: 15px;
    /*border: 3px solid transparent;*/
    cursor: pointer;
}

.evc-card:not(.evc-live) .evc-header:hover .evc-title-bar {
    filter: brightness(1.2);
}

.evc-header .evc-img-wrapper {
    height: calc(100% - 30px);
    position: relative;
}

    .evc-header .evc-img-wrapper img {
        display: block;
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: top;
    }

        .evc-header .evc-img-wrapper img.object-center {
            object-position: center;
        }

.evc-header .anchorsOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 10px;
    height: 100%;
    flex-wrap: wrap;
}

    .evc-header .anchorsOverlay .anchorItems {
        width: 45%;
        height: 30%;
        padding: 5px;
        background: #fff;
        border-radius: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .evc-header .anchorsOverlay .anchorItems p {
            text-transform: uppercase;
            margin: 0;
            font-weight: bold;
            font-size: 12px;
            text-align: center;
        }

        .evc-header .anchorsOverlay .anchorItems img {
            border-radius: 0 !important;
            display: block;
            height: 100%;
            width: 100%;
            object-fit: contain;
            object-position: top;
        }

.evc-title-bar {
    background-color: #4A4A4A;
    color: white;
    min-height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    width: 100%;
    border-radius: 0 0 15px 15px;
    position: relative;
    transition: filter ease-in-out .3s;
}

    .evc-title-bar:hover {
        filter: brightness(1.2);
    }

    .evc-title-bar span {
        margin: 0;
        font-size: calc(8px + .2vw);
        font-weight: 700;
        padding: 0 5px;
        width: 100%;
        text-wrap: nowrap;
    }

.evc-footer {
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 5px;
    background-color: #f8f9fa;
    gap: 5px;
    text-align: right;
}

.evc-details {
    margin: 0;
    font-size: calc(7px + .2vw);
}

.evc-type {
    font-weight: 600;
}

.evc-speaker {
    color: #333;
}

    .evc-speaker p {
        margin: 0;
    }

.evc-action {
    position: absolute;
    right: 0;
    top: 2px;
    padding: 0 3px 0 3px;
    background: inherit;
    border-radius: 0 0 15px 0;
}

.evc-action-button {
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 1px solid #555;
    background-color: white;
    color: #555;
}

    .evc-action-button.evc-check-button {
        background-color: #399347;
        color: #fff;
    }
/* --- ESTADO LIVE (.evc-live) --- */
/* Ativar borda e remover cursor global */
.evc-card.evc-live .evc-header {
    border-color: #dc3545;
    border-width: 3px;
    border-style: solid;
}
/* Estilizar elementos da LIVE */
.evc-card.evc-live .evc-header {
    position: relative;
    background: #dc3545;
}

.evc-card.evc-live .evc-video-wrapper {
    width: 100%;
    height: 100%;
    /*padding-bottom: 56.25%;*/
    position: relative;
    border-radius: 15px;
}

    .evc-card.evc-live .evc-video-wrapper iframe {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        width: 100%;
        height: 100%;
        border-radius: 15px;
    }

.evc-card.evc-live .evc-img-wrapper img {
    border-radius: 15px 15px 0 0;
}

.evc-card.evc-live .evc-live-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #dc3545;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: calc(8px + .2vw);
    font-weight: 700;
    height: calc(20px + .4vw);
}

.evc-card.evc-live .evc-live-expand {
    position: absolute;
    top: calc(1rem + 3px);
    right: calc(6rem + 3px);
    background-color: #fff;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: calc(8px + .2vw);
    font-weight: 700;
    height: calc(20px + .4vw);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity ease-in-out .1s;
    cursor: pointer;
}

    .evc-card.evc-live .evc-live-expand:hover {
        opacity: .9;
    }

.evc-card.evc-live .evc-title-bar {
    background-color: #dc3545;
    color: white;
    cursor: pointer;
    position: absolute;
    bottom: -1px;
    z-index: 3;
}

    .evc-card.evc-live .evc-title-bar span {
        text-transform: uppercase;
    }
/* Ajustar o rodapé para o estado LIVE */
.evc-card.evc-live .evc-footer {
    background-color: #fff; /* Fundo branco, conforme solicitado */
}

.evc-card.evc-live .evc-type {
    color: #333; /* Cor do texto padrão */
    font-weight: 700; /* Título em negrito */
}

.evc-card.evc-live .evc-arrow-button {
    display: flex; /* Para centralizar o ícone -> */
    background-color: #dc3545;
    color: white;
    border: none;
}
/* Overlay para destacar o vídeo existente */
.evc-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.evc-fullscreen-iframe {
    /*width: 80%;
        max-width: 960px;
        aspect-ratio: 16 / 9;*/
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

    .evc-fullscreen-iframe iframe {
        width: calc(280px + 36vw);
        height: calc(157px + 20vw);
    }
/* Ocultar temporariamente o container original */
.evc-card.evc-live.evc-hidden {
    visibility: hidden;
}

.evc-video-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}
