:root {
    --yellow-main: #ffcc00;
    --yellow-hover: #e6b800;
    --bg-dark: #0a0a0c;
    --card-bg: rgba(25, 25, 30, 0.2);
    --card-border: rgba(255, 255, 255, 0.12);
    --grid-line: rgba(255, 255, 255, 0.08);
    --text-light: #ffffff;
    --text-muted: #a0a0ab;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

/* CONTAINER PRINCIPAL CORRIGIDO */
.center2 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Impede que o topo do card suba e saia do fluxo */
 padding: 60px 20px 40px 20px; /* Aumentado o respiro superior */
           /* Espaçamento extra abaixo da imagem do cinema */
    color: var(--text-light);

    border-top: 1px solid  rgba(255, 255, 255, 0.12);
  
}

/* CARD PRINCIPAL */
.schedule-card {
    width: 100%;
    max-width: 1100px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    /* Removido o transform inicial da animação que podia deslocar o layout */
    animation: surgindodesbaixo 0.8s ease-out forwards;
}

/* REGRA DA ANIMAÇÃO DE ENTRADA SUAVE */
@keyframes surgindodesbaixo {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* HEADER */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.00);
}

.header-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.calendar-icon-box {
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-main);
    font-size: 32px;
    flex-shrink: 0;
}

.title-sub {
    color: var(--yellow-main);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title-main {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-logo {
    text-align: right;
    margin-left: 30px;
}

.brand-name {
    color: var(--yellow-main);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* VISÃO DESKTOP (TABELA GRID) */
.desktop-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--grid-line);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.desktop-table th, 
.desktop-table td {
    border-right: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
    text-align: center;
    vertical-align: middle;
    padding: 15px 10px;
}

.desktop-table tr:last-child td {
    border-bottom: none;
}

.desktop-table th:last-child,
.desktop-table td:last-child {
    border-right: none;
}

.th-datas {
    background-color: var(--yellow-main);
    color: #000;
    font-weight: 800;
    font-size: 18px;
    width: 220px;
}

.th-horarios-header {
    background-color: var(--yellow-main);
    color: #000;
    font-weight: 800;
    font-size: 18px;
    padding: 12px !important;
}

.th-time {
    background-color: transparent;
    color: var(--yellow-main);
    font-weight: 700;
    font-size: 16px;
    width: 15%;
}

.td-date {
    font-weight: 700;
    font-size: 15px;
    text-align: center !important;
    line-height: 1.3;
}

.td-date span {
    display: block;
    color: var(--yellow-main);
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

/* BOTÕES DE CURTAS */
.btn-curta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--yellow-main);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 10px;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 130px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.btn-curta:hover {
    background-color: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 204, 0, 0.3);
}

/* FOOTER DO CARD */
.card-footer2 {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--grid-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer2-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.popcorn-icon {
    border: 1px solid var(--grid-line);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-main);
    font-size: 20px;
}

.footer2-text strong {
    display: block;
    color: var(--yellow-main);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.footer2-text span {
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.footer2-site {
    color: var(--yellow-main);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
}

/* LAYOUT MOBILE (OCULTO NO DESKTOP) */
.mobile-schedule {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.mobile-date-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--grid-line);
    border-radius: 14px;
    overflow: hidden;
}

.mobile-date-header {
    background: var(--yellow-main);
    color: #000;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--grid-line);
}

.mobile-time-row:last-child {
    border-bottom: none;
}

.mobile-time-label {
    color: var(--yellow-main);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* MEDIA QUERIES PARA RESPONSIVIDADE */
@media (max-width: 868px) {
    .center2 {
        padding: 20px 10px;
    }

    .schedule-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .brand-logo {
        text-align: left;
        margin-left: 0;
    }

    .title-sub {
        font-size: 20px;
    }

    .title-main {
        font-size: 22px;
    }

    .desktop-table {
        display: none;
    }

    .mobile-schedule {
        display: flex;
    }

    .card-footer2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}


.schedule-card{
    display:flex;
    flex-direction:column;
}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    position:relative;
    width:100%;

    margin-bottom:35px;
    padding-bottom:20px;

    flex-shrink:0;
}

.desktop-table{
    margin-top:0;
    clear:both;
}