/* Estilos para o Modal de Vídeo */
.content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999 !important;
    display: none;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-container {
    background-color: #1a1a1a;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a2a;
    background-color: #111;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .modal-body {
        display: flex;
        flex-direction: row;
    }
}

.teaser-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    background-color: #000;
    overflow: hidden;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .teaser-container {
        width: 65%;
    }
}

.teaser-image {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    display: block;
}

.teaser-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 51, 51, 0.5);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.play-button-wrapper:hover {
    transform: scale(1.1);
    background: rgba(255, 51, 51, 0.8);
}

.play-button {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 51, 51, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.teaser-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 10;
}

.teaser-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.teaser-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FF3333;
    animation: spin 1s infinite linear;
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.content-info-container {
    padding: 20px;
    width: 100%;
    background-color: #111;
    color: #fff;
}

@media (min-width: 768px) {
    .content-info-container {
        width: 35%;
        min-width: 300px;
        max-height: calc(56.25vw * 0.65); /* Manter proporcional ao vídeo */
        overflow-y: auto;
    }
}

.content-stats {
    display: flex;
    margin-bottom: 15px;
}

.stat {
    display: flex;
    align-items: center;
    margin-right: 15px;
    color: #aaa;
    font-size: 0.9rem;
}

.stat svg {
    margin-right: 5px;
}

.content-description {
    margin-bottom: 20px;
    line-height: 1.5;
}

.login-options {
    margin-bottom: 20px;
}

.login-option {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
}

.login-option.premium {
    background: linear-gradient(135deg, #2a2a2a 0%, #222 100%);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.login-option.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF3333, #FF6B6B);
}

.option-title {
    font-size: 1rem;
    margin-bottom: 10px;
}

.option-title .highlight {
    color: #FF3333;
    font-weight: bold;
}

.option-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
}

.option-price .price {
    font-size: 1.5rem;
    font-weight: bold;
}

.option-price .period {
    margin-left: 5px;
    color: #aaa;
    font-size: 0.9rem;
}

.subscription-benefits {
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #ddd;
    font-size: 0.9rem;
}

.benefit-item svg {
    margin-right: 8px;
    color: #FF3333;
    flex-shrink: 0;
}

.benefit-item span {
    line-height: 1.3;
}

.btn-subscribe {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #FF3333;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-subscribe svg {
    margin-right: 8px;
}

.btn-subscribe:hover {
    background-color: #FF5555;
}

.view-plans-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-plans-link:hover {
    color: #fff;
    text-decoration: underline;
}

.login-security {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
}

.security-info {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 0.8rem;
    margin-right: 15px;
    margin-bottom: 10px;
}

.security-info svg {
    margin-right: 5px;
}

/* Integrações com outros modais */
.modal.show {
    display: block;
}

/* Adaptações para dispositivos móveis */
@media (max-width: 767px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .content-info-container {
        padding: 15px;
    }
    
    .play-button-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 40px;
        height: 40px;
    }
}

/* Correção para modal não abrindo - Estilos críticos */
.content-card, 
.open-video-modal,
.hero .btn-primary.cta,
.hero-slide {
    cursor: pointer !important;
    position: relative !important;
    z-index: 1;
}

/* Garante pointer-events para todos os cards */
.content-card::before,
.open-video-modal::before,
.hero .btn-primary.cta::before,
.hero-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

/* Correção de propagação de eventos para elementos filhos */
.content-card *:not(a), 
.open-video-modal *:not(a) {
    pointer-events: none !important;
}

/* Correção para botões dentro de cards */
.content-card a,
.open-video-modal a {
    position: relative;
    z-index: 3;
}

/* Garante que o modal tenha z-index correto */
#videoModal {
    z-index: 9999 !important;
    display: none;
}

/* Estilo para modal aberto via JavaScript */
#videoModal.js-modal-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Estilos para os links dos cards */
.content-card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    z-index: 2;
}

.content-card-link * {
    pointer-events: auto;
}

.content-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.content-card-link:focus {
    outline: none;
}

.content-card-link:focus-visible {
    outline: 2px solid var(--hot-red);
    outline-offset: 2px;
}

/* Remover pseudo-elementos que podem estar bloqueando */
.content-card::before,
.content-card::after {
    display: none;
}

/* Garantir que elementos dentro do card sejam clicáveis */
.content-card * {
    pointer-events: auto;
}

#videoModal.js-modal-open {
    display: flex !important;
}