/* Estilos gerais */
body {
    font-family: 'Arial', sans-serif;
    background-color: #111;
    color: #fff;
    margin: 0;
    padding: 0;
}

/* Container principal */
.replays-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* Títulos */
.replays-container h1 {
    text-align: center;
    color: #FD5C03;
    margin-bottom: 10px;
}

.replays-container .sub-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.replays-container .sub-title a {
    color: #FD5C03;
    text-decoration: none;
}

/* Cartões de data */
.date-card {
    background: linear-gradient(135deg, #1c1c1c, #2a2a2a);
    padding: 20px;
    margin: 4px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
}

.date-card:hover {
    background: #333;
    transform: translateY(-3px);
}

.date {
    font-size: 20px;
    font-weight: bold;
    color: #FFF;
    text-align: center;
    letter-spacing: 0.5px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(34, 34, 34, 0.9);
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
    text-align: center;
    animation: fadeInZoom 0.4s ease;
    border: 1px solid rgba(253, 92, 3, 0.15);
    position: relative;
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#modal-date {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFF;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.4;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(253, 92, 3, 0.25);
    letter-spacing: 0.7px;
}

/* Botões de horário dentro do modal */
.times {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.times a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(253,92,3,0.8), rgba(255,159,46,0.8));
    box-shadow: 0 4px 10px rgba(253,92,3,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.times a:hover {
    background: linear-gradient(135deg, rgba(255,159,46,1), rgba(253,92,3,1));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 14px rgba(253,92,3,0.5);
    color: #fff;
}

/* Botão fechar */
.btn-fechar {
    background: none;
    color: #FD5C03;
    padding: 10px 20px;
    border: 1px solid rgba(253, 92, 3, 0.5);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 150px;
    margin-top: 30px;
    text-decoration: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.btn-fechar:hover {
    background-color: rgba(253, 92, 3, 0.1);
    color: #fff;
    border-color: #FD5C03;
}

/* Estado quando modal está aberto */
body.modal-open {
    overflow: hidden;
}

/* Estilos para mensagens quando não há replays */
.replay-empty {
    text-align: center;
    padding: 40px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 400px;
    max-width: 600px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.replay-empty img {
    max-width: 180px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.replay-empty h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.replay-empty p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

.replay-empty.replay-extra {
    margin-bottom: 10px;
}

.btn-voltar {
    background: rgba(253, 92, 3, 0.05);
    color: #FD5C03;
    padding: 10px 20px;
    border: 1px solid rgba(253, 92, 3, 0.5);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 150px;
    margin-top: 30px;
    text-decoration: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    background-color: rgba(253, 92, 3, 0.1);
    color: #FD5C03;
    border-color: #FD5C03;
    transform: scale(1.05);
}

.replay-group {
    width: 100%;
    max-width: 100%;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.replay-group::after {
    content: "";
    display: block;
    width: 95%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5); /* Branco com 50% de opacidade */
    margin: 30px auto 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Sombra sutil para profundidade */
}

.replay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 1920px;
    justify-content: center;
}

.replay-item {
    box-sizing: border-box;
    background: rgba(34, 34, 34, 0.9);
    border: 1px solid rgba(253, 92, 3, 0.5);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* AJUSTE ADICIONADO */
    width: 48%;
    overflow: visible;
}

.replay-item:hover {
    transform: scale(1.05);
    border-color: #FD5C03;
    box-shadow: 0 8px 20px rgba(253,92,3,0.4);
}

.replay-item h3 {
    color: #fff;
    font-size: 16px;
    margin: 15px 0 10px;
    text-align: center;
}

.replay-horario {
    color: #fff;
    font-size: 16px;
    margin: 15px 0 10px;
}

/* ========================================================================= */
/* INÍCIO DO BLOCO CORRIGIDO PARA EXIBIÇÃO DOS REPLAYS (Cloudinary)          */
/* Todos os estilos antigos de 'iframe' e 'video' foram removidos daqui.   */
/* ========================================================================= */

/* Contêiner que envolve o player de vídeo para responsividade */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px; /* Bordas arredondadas no player */
    overflow: hidden;   /* Garante que o vídeo respeite as bordas */
    margin-bottom: 15px; /* Espaço entre o vídeo e o botão */
}

/* O player de vídeo <video> em si */
.replay-video-player {
    width: 100%;
    height: 100%;
    display: block; /* Remove qualquer espaço extra que a tag <video> possa ter */
}

/* Estilo unificado e corrigido para o botão de download */
.replay-item .btn-baixar {
    display: block;
    width: auto; /* Largura se ajusta ao texto */
    padding: 10px 28px;
    margin: 10px auto 0;
    background: linear-gradient(45deg, #FD5C03, #FF9F2E);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.replay-item .btn-baixar:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #FF9F2E, #FD5C03);
}

/* ========================================================================= */
/* FIM DO BLOCO CORRIGIDO                                                    */
/* ========================================================================= */


/* Estilos para o cabeçalho dos shortcodes [dia-e-horario] e [replays] */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.container h1 {
    text-align: center;
    color: #FD5C03;
    margin-bottom: 10px;
    font-size: 2.2rem;
    letter-spacing: 0.5px;
}

.container .sub-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
    color: #ddd;
    line-height: 1.5;
}

.container .sub-title a {
    color: #FD5C03;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.container .sub-title a:hover {
    color: #ff8c42;
    text-decoration: underline;
}

/* Ajustes para o container principal dos replays */
.replays-container {
    margin-top: 20px;
}

/* Responsividade para o cabeçalho */
@media (max-width: 768px) {
    .container h1 {
        font-size: 1.8rem;
    }
    
    .container .sub-title {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .container h1 {
        font-size: 1.6rem;
    }
    
    .container .sub-title {
        font-size: 15px;
        margin-bottom: 25px;
    }
}

/* Responsividade para [replays] */
@media (max-width: 1024px) {
    .replay-item {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 600px) {
    .replay-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .replays-container {
        padding: 15px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }

    #modal-date {
        font-size: 1.5rem;
    }

    .times a {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
    
    .date {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .times {
        gap: 12px;
    }
    
    .times a {
        padding: 8px 16px;
    }
    
    .btn-fechar {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Utilitários */
.recaptcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 15px auto;
}
    
.checkmark {
    font-size: 4em;
    color: #4CAF50;
    text-align: center;
    margin-bottom: 20px;
}
    
.button-home-container {
    display: flex;
    justify-content: center;
    width: 100%;
}