/* Estilos Gerais e Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    min-height: 100vh;
    padding: 20px 0; 
    box-sizing: border-box;
    color: #333;
}

.container {
    max-width: 360px; 
    width: 90%;       
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    color: #28a745;
    text-align: center;
    font-size: 1.8em;
    margin-top: 0; 
    margin-bottom: 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap; 
    line-height: 1.2;
}

h1 svg {
    margin-left: 10px;
    width: 30px;
    height: 30px;
    flex-shrink: 0; 
}

/* Container do Vídeo */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 148.15%;
    background-color: #000;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

/* Estilo comum para ambos os vídeos */
.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tela final "Assistir Novamente" */
#end-screen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10;
    color: white;
    display: none; /* Começa escondido */
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    flex-direction: column;
    font-size: 1.2em;
}
#end-screen-overlay svg {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

/* Barra de Progresso */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5; 
    height: 16px; 
    background-color: rgba(224, 224, 224, 0.5); 
    overflow: hidden;
    display: none; /* Começa escondido */
    border-radius: 0; 
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: #28a745;
    border-radius: 0; 
    transition: width 0.1s linear;
}

/* Botão "PEGAR MEU PROTOCOLO" */
#cta-button {
    display: none;
    margin-top: 20px; 
    padding: 15px 30px;
    background-color: #28a745;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite;
    text-align: center;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(40, 167, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

@media (max-width: 486px) {
    h1 { font-size: 1.5em; }
    #cta-button { font-size: 1em; padding: 12px 25px; }
}