/* ==========================================================================
   SEÇÃO DE PROGRAMAÇÃO E POPUP (ISOLADO PARA EVITAR CONFLITOS)
   ========================================================================== */

/* 1. SEÇÃO DE PROGRAMAÇÃO */
.programacao-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.programacao-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent, #f5c518);
    display: inline-block;
    padding-bottom: 8px;
}

.curta-block {
    background-color: var(--bg-card, #181c24);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color, #2a2f3a);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.curta-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color, #2a2f3a);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.curta-header h2 {
    font-size: 1.35rem;
    margin: 0;
    color: var(--accent, #f5c518);
    font-weight: 700;
}

.curta-meta {
    font-size: 0.85rem;
    color: var(--text-muted, #9aa0a6);
    font-weight: 500;
}

.filmes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filme-link {
    color: var(--text-main, #ffffff);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.filme-link:hover {
    color: var(--accent, #f5c518);
    background: rgba(245, 197, 24, 0.08);
    border-color: rgba(245, 197, 24, 0.3);
}

/* 2. POPUP RESPONSIVO */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    background-color: #171a21;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.0fr 1.0fr;
    transform: translateY(100vh);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
}

.popup-overlay.active .popup-card {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.popup-header-brand img {
    height: 24px;
    object-fit: contain;
}

.brand-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0a5b1;
    line-height: 1.2;
    border-left: 1px solid #333742;
    padding-left: 8px;
}

.genre-tag {
    color: var(--accent, #f5c518);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.movie-title {
    font-size: 1.75rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 6px 0;
    color: #fff;
}

.movie-director {
    font-size: 0.85rem;
    color: #a0a5b1;
    margin-bottom: 12px;
}

.movie-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: #c5c9d3;
    margin-bottom: 16px;
}

.sinopse-container {
    border-top: 1px solid #282d39;
    padding-top: 12px;
    margin-bottom: 20px;
}

.sinopse-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent, #f5c518);
    margin-bottom: 6px;
}

.sinopse-text {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #b0b5c1;
    margin: 0;
}

.action-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-trailer {
    background-color: var(--accent, #f5c518);
    color: #000;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-bookmark {
    background: transparent;
    border: 1px solid #3a3f4d;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.popup-footer-bar {
    grid-column: 1 / -1;
    background-color: #111318;
    border-top: 1px solid #232731;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #9aa0a6;
    font-weight: 600;
}

/* Renomeado para evitar conflito com o rodapé do style.css */
.popup-footer-left {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    
}

.tag-badge {
    border: 1px solid #444955;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 0.6rem;
}

.laurel-badge {
    border: 1px solid #333742;
    background: rgba(255,255,255,0.03);
    padding: 4px 12px;
    border-radius: 20px;
    color: #e2e4e9;
    letter-spacing: 0.5px;

    /* --- ADICIONE ESTAS LINHAS --- */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Adiciona um espaço elegante entre os folhas e o texto */
    white-space: nowrap; /* Impede que o texto ou as imagens quebrem linha */

    
}

.popup-media {
    background-size: cover;
    background-position: center;
    min-height: 100%;
    position: relative;
}

.popup-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #171a21 0%, transparent 20%);
}

/* 3. REGRAS EXCLUSIVAS PARA SMARTPHONES */
@media (max-width: 768px) {
    .programacao-section {
        padding: 20px 12px 60px;
    }

    .programacao-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .popup-overlay {
        align-items: flex-start;
        padding: 50px 0 0 0;
    }

    .popup-card {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 50px);
        border-radius: 20px 20px 0 0;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        margin-top: 70px;
         margin-left: 10px;
          margin-right: 10px;
    }

    .popup-media {
        height: 220px;
        min-height: 220px;
        order: -1;
    }

    .popup-media::before {
        background: linear-gradient(to top, #171a21 0%, transparent 40%);
    }

    .popup-info {
        padding: 20px;
    }

    .movie-title {
        font-size: 1.4rem;
    }

    .popup-footer-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 16px 20px;
    }

    .popup-footer-left {
        width: 100%;
        justify-content: space-between;
    }

    .laurel-badge {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        
        font-size: 0.65rem;
    }

    .footer-tag {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap; /* Caso a frase seja longa no celular, ela quebra linha suavemente */
    }
}


.td-aviso2 {
    text-align: left;
    
    color: #d3c500;
    padding: 12px 15px;
  
}