/**
 * Ingresso Sync - Templates Styles
 * Arquivo único para todos os templates do plugin
 * 
 * @package Ingresso_Sync
 */

/* ========================================
   VARIÁVEIS E CORES
   ======================================== */
:root {
    --ing-primary: #0b57d0;
    --ing-text: #1a1a1a;
    --ing-text-secondary: #666;
    --ing-border: #ddd;
    --ing-bg-light: #f8f8f8;
    --ing-hover: #f0f7ff;
}

/* ========================================
   PÁGINAS DE FILMES (GERAL)
   ======================================== */

/* Container principal - usa wideSize para grids */
.filmes-em-cartaz-main,
.filmes-minha-cidade-main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 1.5rem;
}

.filmes-em-cartaz-main .wp-block-group,
.filmes-minha-cidade-main .wp-block-group {
    max-width: 100%;
}

/* Header da página - wide em 1200px */
.filmes-em-cartaz-main .page-header,
.filmes-minha-cidade-main .page-header {
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.filmes-em-cartaz-main .page-title,
.filmes-minha-cidade-main .page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.filmes-em-cartaz-main .page-description,
.filmes-minha-cidade-main .page-description {
    text-align: center;
    color: var(--ing-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Seletor de cidade */
.city-selector {
    text-align: center;
    margin-bottom: 1.5rem;
}

#change-city-btn,
#change-city-no-movies {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: 1px solid var(--ing-border);
    border-radius: 8px;
    background: var(--ing-bg-light);
}

#change-city-btn:hover,
#change-city-no-movies:hover {
    background: #e8e8e8;
    border-color: var(--ing-primary);
}

#change-city-btn span:last-child {
    color: var(--ing-primary);
    font-weight: 600;
}

/* Busca de filmes - centralizada */
.search-container {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

#filmes-search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--ing-border);
    border-radius: 8px;
    font-size: 1rem;
}

/* Lista de filmes - usa toda a largura (1200px) */
.filmes-list {
    max-width: 1200px;
    margin: 0 auto;
}

.filmes-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.filme-item {
    margin: 0;
}

.filme-link {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--ing-border);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    background: white;
}

.filme-link:hover {
    background: var(--ing-hover);
    border-color: var(--ing-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filme-link h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--ing-primary);
}

#filmes-no-results {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--ing-text-secondary);
    font-size: 1.125rem;
}

/* ========================================
   MODAL DE CIDADE
   ======================================== */

.city-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 999999;
    overflow-y: auto;
}

.city-modal-content {
    background: white;
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    position: relative;
}

#close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ing-text-secondary);
    line-height: 1;
}

.city-modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--ing-primary);
}

#city-modal-search {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--ing-border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

#city-modal-loading {
    text-align: center;
    padding: 2rem;
}

#city-modal-list {
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

#city-modal-no-results {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--ing-text-secondary);
}

.city-list-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.city-list-item:hover {
    background: var(--ing-bg-light);
}

.city-list-item:last-child {
    border-bottom: none;
}

/* ========================================
   RESPONSIVO
   ======================================== */

@media (max-width: 768px) {
    .city-modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }
    
    .filmes-list ul {
        grid-template-columns: 1fr;
    }
    
    .filmes-em-cartaz-main .page-title,
    .filmes-minha-cidade-main .page-title {
        font-size: 2rem;
    }
}

/* ========================================
   PÁGINA DE PROGRAMAÇÃO
   ======================================== */

/* Container principal - programação usa wideSize */
.ing-programacao-wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

/* Header - wide em 1200px */
.prog-header {
    max-width: 1200px;
    margin: 0 auto 24px;
}

.prog-title {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.prog-title a {
    color: inherit;
    text-decoration: none;
}

.prog-title a:hover {
    color: var(--ing-primary);
}

.prog-city-info {
    margin: 0;
    color: #5f6368;
    font-weight: 600;
}

.prog-city-error {
    margin: 0;
    color: #d93025;
    font-weight: 600;
}

.prog-city-prompt {
    margin: 0;
    color: #5f6368;
}

/* Seletor de cidade */
.prog-city-selector {
    margin-bottom: 32px;
}

.prog-city-selector h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.prog-city-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prog-city-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #d0d7de;
    color: #202124;
    background: #fff;
}

.prog-city-link.active {
    border-color: var(--ing-primary);
    color: var(--ing-primary);
    background: #e8f0fe;
}

.prog-city-link:hover {
    border-color: var(--ing-primary);
    background: var(--ing-hover);
}

/* Toggle Filtros Avançados */
#advanced-filters-section {
    margin-bottom: 16px;
}

.advanced-filters-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--ing-bg-light);
    border: 1px solid var(--ing-border);
    border-radius: 8px;
    color: var(--ing-text);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.advanced-filters-toggle:hover {
    background: #e8e8e8;
    border-color: var(--ing-primary);
}

.advanced-filters-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.2s ease;
    font-size: 0.8em;
}

.advanced-filters-content {
    margin-top: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carrossel de Abas de Datas */
.date-tabs-section {
    margin-bottom: 20px;
}

.date-tabs-carousel-wrapper {
    position: relative;
    max-width: 100%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--ing-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    font-size: 1.5rem;
    color: var(--ing-text);
    transition: all 0.2s ease;
}

.carousel-nav:hover:not(:disabled) {
    background: var(--ing-primary);
    color: white;
    border-color: var(--ing-primary);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: -12px;
}

.carousel-next {
    right: -12px;
}

.date-tabs-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.date-tabs-carousel::-webkit-scrollbar {
    display: none;
}

.date-tab {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--ing-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.date-tab:hover {
    border-color: var(--ing-primary);
    background: var(--ing-hover);
}

.date-tab.active {
    background: var(--ing-primary);
    border-color: var(--ing-primary);
    color: white;
}

.tab-day-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.today-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e6f4ea;
    color: #137333;
    font-size: 0.75rem;
    font-weight: 600;
}

.date-tab.active .today-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Filtros de Tipo de Sessão */
.session-type-filters {
    margin-bottom: 20px;
}

.session-type-filters-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--ing-text);
}

.type-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.type-filter-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--ing-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ing-text);
}

.type-filter-btn:hover {
    border-color: var(--ing-primary);
    background: var(--ing-hover);
}

.type-filter-btn.active {
    background: var(--ing-primary);
    border-color: var(--ing-primary);
    color: white;
}

/* Painéis de Datas */
.date-panels-container {
    position: relative;
}

.date-panel {
    animation: fadeIn 0.3s ease;
}

.date-panel[hidden] {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sistema de Filtros (Avançados) */
#programacao-filters {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

#programacao-filters h2 {
    font-size: 1.2rem;
    margin: 0 0 16px;
    color: #202124;
}

.filters-grid {
    display: grid;
    gap: 16px;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #202124;
}

.filter-group select {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--ing-primary);
    box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.1);
}

.filters-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#filter-results {
    color: #5f6368;
    font-size: 0.9rem;
}

#clear-filters,
#clear-all-filters,
.clear-filters-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    color: #5f6368;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 10px;
}

#clear-filters:hover,
#clear-all-filters:hover,
.clear-filters-btn:hover {
    background: #f1f3f4;
    border-color: #5f6368;
}

#clear-filters:disabled,
#clear-all-filters:disabled,
.clear-filters-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filters-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.filters-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #d0d7de;
    border-top-color: var(--ing-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Sessões por dia */
.session-day {
    margin-bottom: 32px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.session-day h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.session-day .today-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e6f4ea;
    color: #137333;
    font-size: 0.8rem;
}

/* Cinema/Teatro */
.session-theater {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #d0d7de;
    border-radius: 12px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.session-theater header {
    margin-bottom: 12px;
}

.session-theater h3 {
    font-size: 1.2rem;
    margin: 0 0 4px;
}

.session-theater .theater-info {
    margin: 0;
    color: #5f6368;
}

/* Sala */
.session-room {
    margin-bottom: 16px;
}

.session-room h4 {
    font-size: 1rem;
    margin: 0 0 8px;
    color: #202124;
}

.session-room ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Item de sessão */
.session-item {
    flex: 0 1 220px;
    padding: 12px;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.3s ease;
}

.session-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.session-item[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
}

.session-time {
    font-size: 1.1rem;
    color: #202124;
    font-weight: bold;
}

.session-types {
    font-size: 0.85rem;
    color: #5f6368;
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 12px;
}

.session-price {
    font-size: 0.9rem;
    color: #202124;
}

.session-buy-btn {
    margin-top: 4px;
    padding: 8px 12px;
    background: var(--ing-primary);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.session-buy-btn:hover {
    background: #1a73e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(11, 87, 208, 0.3);
}

.session-unavailable {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #d93025;
    font-weight: 600;
}

/* Estados vazios */
.no-results-message {
    text-align: center;
    padding: 40px 20px;
    color: #5f6368;
    font-style: italic;
}

/* Responsivo - Programação */
@media (max-width: 768px) {
    /* Filtros Avançados */
    #programacao-filters,
    .advanced-filters-content {
        padding: 16px;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .filters-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    #filter-results {
        text-align: center;
        margin-bottom: 8px;
    }
    
    /* Carrossel de Datas */
    .carousel-nav {
        display: none;
    }
    
    .date-tab {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .tab-day-label {
        font-size: 0.85rem;
    }
    
    /* Filtros de Tipo */
    .type-filter-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    /* Sessões */
    .session-item {
        flex: 1 1 100%;
    }
}

/* ========================================
   ARQUIVO DE EVENTOS
   ======================================== */

.eventos-archive-page {
    padding: 2rem 1.5rem;
}

/* Container principal - usa wideSize para listas */
.ingresso-sync-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

.ingresso-sync-page a {
    color: #1a0dab;
    text-decoration: underline;
}

/* Lista de tipos */
.ingresso-type-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.ingresso-type-list li {
    margin: 8px 0;
}

.ingresso-type-list a {
    font-size: 18px;
    text-decoration: underline;
    color: #1a0dab;
}

/* Seções de eventos */
.ingresso-section {
    margin-bottom: 18px;
}

.ingresso-section__title {
    font-size: 20px;
    margin: 8px 0;
}

.ingresso-section__list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    margin: 0;
    list-style: none;
}

.ingresso-section__item {
    flex: 0 0 auto;
    display: block;
    min-width: 110px;
    max-width: 110px;
    box-sizing: border-box;
    text-align: left;
}

.ingresso-section__item a {
    display: block;
    width: 100%;
}

.ingresso-section__thumb {
    background: #f7f7f7;
    width: 110px;
    height: 60px;
    border-radius: 8px;
}

.ingresso-section__thumb img {
    width: 110px;
    max-width: 110px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ingresso-section__link {
    word-wrap: break-word;
    max-width: 110px;
    display: block;
    font-size: 14px;
    line-height: 1.3;
    margin-top: 6px;
    color: #111;
    text-decoration: none;
}

/* Estilos para filmes (posters verticais) */
body.ing-type-filme .ingresso-section__item {
    min-width: 80px;
    max-width: 80px;
}

body.ing-type-filme .ingresso-section__thumb {
    width: 80px;
}

body.ing-type-filme .ingresso-section__thumb img {
    width: 80px;
    max-width: 80px;
}

body.ing-type-filme .ingresso-section__link {
    max-width: 80px;
}

/* Paginação */
.ingresso-pagination {
    margin: 16px 0;
}

.ingresso-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ingresso-pagination li {
    margin: 0;
}

.ingresso-pagination a,
.ingresso-pagination span {
    display: block;
    padding: 6px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    text-decoration: none;
}

.ingresso-pagination .current {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* Card de evento simples */
.evento-card-simple {
    margin: 12px 0;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    background: #fff;
}

.evento-card-simple h3 {
    font-size: 16px;
    margin: 0 0 8px;
}

.evento-card-simple a {
    text-decoration: none;
    color: #111;
}

/* Responsivo - Arquivo */
@media (min-width: 768px) {
    .ingresso-section__list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        overflow: visible;
    }
    
    .ingresso-section__item {
        flex: initial;
        min-width: 160px;
        max-width: 160px;
    }
    
    .ingresso-section__thumb {
        width: 160px;
    }
    
    .ingresso-section__thumb img {
        width: 160px;
        max-width: 160px;
    }
    
    .ingresso-section__link {
        max-width: 160px;
    }
    
    body.ing-type-filme .ingresso-section__item {
        min-width: 120px;
        max-width: 120px;
    }
    
    body.ing-type-filme .ingresso-section__thumb {
        width: 120px;
    }
    
    body.ing-type-filme .ingresso-section__thumb img {
        width: 120px;
        max-width: 120px;
    }
    
    body.ing-type-filme .ingresso-section__link {
        max-width: 120px;
    }
}

/* ========================================
   ARQUIVO DE EVENTOS
   ======================================== */

.eventos-archive-page {
    padding: 2rem 1.5rem;
}

.eventos-archive-page .archive-header {
    margin-bottom: 2rem;
    text-align: center;
}

.eventos-archive-page .archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Filtros */
.eventos-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--ing-bg-light);
    border-radius: 8px;
}

.eventos-filters select,
.eventos-filters input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--ing-border);
    border-radius: 4px;
    font-size: 1rem;
}

/* Grid de eventos */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.evento-card {
    border: 1px solid var(--ing-border);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    transition: all 0.2s;
}

.evento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--ing-primary);
}

.evento-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.evento-card-content {
    padding: 1rem;
}

.evento-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    color: var(--ing-text);
}

.evento-card-title a {
    color: var(--ing-primary);
    text-decoration: none;
}

.evento-card-title a:hover {
    text-decoration: underline;
}

.evento-card-meta {
    color: var(--ing-text-secondary);
    font-size: 0.875rem;
}

/* Paginação */
.eventos-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.eventos-pagination a,
.eventos-pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid var(--ing-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--ing-text);
}

.eventos-pagination a:hover {
    background: var(--ing-primary);
    color: white;
    border-color: var(--ing-primary);
}

.eventos-pagination .current {
    background: var(--ing-primary);
    color: white;
    border-color: var(--ing-primary);
}

/* ========================================
   SINGLE EVENTO
   ======================================== */

.single-evento-page {
    padding: 2rem 1.5rem;
}

.single-evento-wrap {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 16px;
}

.evento-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef6f0;
    color: #146c2e;
    font-weight: 600;
}

.evento-thumbnail {
    margin: 16px 0;
}

.evento-details-section {
    margin-top: 24px;
}

.evento-trailers-section {
    margin-top: 24px;
}

.evento-trailer-embed {
    margin-top: 8px;
}

.evento-footer {
    margin-top: 24px;
}

/* ========================================
   SINGLE EVENTO
   ======================================== */

.evento-content {
    max-width: 800px;
    margin: 20px auto;
}

.evento-main-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.evento-poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.evento-details h1 {
    font-size: 2.5rem;
    margin-top: 0;
    color: var(--ing-text);
}

.evento-meta-info {
    color: var(--ing-text-secondary);
    margin-bottom: 1rem;
}

.evento-description {
    line-height: 1.6;
    color: var(--ing-text);
    margin-bottom: 1.5rem;
}

.evento-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.evento-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.evento-btn-primary {
    background: var(--ing-primary);
    color: white;
}

.evento-btn-primary:hover {
    background: #094ab8;
}

.evento-btn-secondary {
    background: var(--ing-bg-light);
    color: var(--ing-text);
    border: 1px solid var(--ing-border);
}

.evento-btn-secondary:hover {
    background: #e0e0e0;
}

/* ========================================
   SINGLE EVENTO (CUSTOM)
   ======================================== */

.ing-event {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 16px;
}

.ing-event-header {
    margin-bottom: 24px;
}

.ing-event-title {
    margin: 0 0 8px;
    line-height: 1.2;
}

.ing-event-original-title {
    margin: 0 0 4px;
    font-style: italic;
    color: #555;
}

.ing-event-type {
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #146c2e;
}

.ing-event-nav {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ing-event-nav-btn {
    padding: 8px 16px;
    background: var(--ing-primary);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
}

.ing-event-nav-btn:hover {
    background: #094ab8;
}

.ing-trailer-section {
    margin-bottom: 32px;
}

.ing-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

.ing-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ing-event-info {
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.ing-event-poster {
    flex: 0 0 260px;
    margin: 0;
}

.ing-event-poster img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.ing-event-details {
    flex: 1 1 320px;
    min-width: 240px;
}

.ing-event-meta-item {
    margin: 0 0 8px;
    font-weight: 600;
}

.ing-event-meta-item span {
    font-weight: 400;
}

.ing-event-synopsis {
    margin-top: 24px;
}

.ing-event-synopsis h2 {
    margin-bottom: 12px;
}

.ing-event-cast {
    margin-top: 24px;
}

.ing-event-cast h2 {
    margin-bottom: 12px;
}

.ing-event-cast p {
    margin: 0;
}

.ing-event-meta-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.ing-event-meta-list li {
    margin-bottom: 8px;
}

/* ========================================
   TRAILERS
   ======================================== */

.trailers-page {
    padding: 2rem 1.5rem;
}

.trailers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.trailer-item {
    border: 1px solid var(--ing-border);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.trailer-video {
    width: 100%;
    aspect-ratio: 16/9;
}

.trailer-info {
    padding: 1rem;
}

.trailer-title {
    margin: 0 0 0.5rem 0;
    color: var(--ing-text);
}

/* ========================================
   PROGRAMAÇÃO ESTADOS/CIDADES
   ======================================== */

.programacao-estados-page,
.programacao-cidade-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Container usa wideSize para grids de cidades/filmes */
.programacao-estados-container,
.programacao-cidade-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 1.5rem;
}

/* Header wide */
.programacao-header {
    max-width: 1200px;
    margin: 0 auto 32px;
}

.programacao-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.programacao-header p {
    margin: 0;
}

.ing-programacao-search {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    max-width: 360px;
    gap: 4px;
}

.ing-programacao-search label {
    font-weight: 600;
}

#ing-programacao-search-input {
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 16px;
}

#ing-programacao-no-results {
    display: none;
    margin-top: 16px;
    color: #5f6368;
}

.state-section {
    margin-bottom: 32px;
}

.state-section h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.city-link {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: var(--ing-text);
    background: #fff;
    border: 1px solid var(--ing-border);
    border-radius: 8px;
    transition: all 0.2s;
}

.city-link:hover {
    background: var(--ing-hover);
    border-color: var(--ing-primary);
}

/* Programação Cidade specific */
.programacao-cidade-nav {
    margin-bottom: 16px;
}

.programacao-cidade-nav a {
    color: var(--ing-primary);
    text-decoration: none;
}

.programacao-cidade-nav a:hover {
    text-decoration: underline;
}

.programacao-cidade-header {
    margin-bottom: 24px;
}

.programacao-cidade-header h1 {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.programacao-cidade-header p {
    margin: 4px 0 0;
    color: #5f6368;
}

#programacao-lista {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.programacao-count {
    margin-bottom: 12px;
    color: #5f6368;
}

.ing-event-search {
    margin-bottom: 16px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ing-event-search label {
    font-weight: 600;
}

#ing-event-search-input {
    padding: 10px 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 16px;
}

#ing-event-no-results {
    display: none;
    margin-top: 8px;
    color: #5f6368;
}

.ing-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.ing-event-card {
    display: block;
    text-decoration: none;
    color: var(--ing-text);
    transition: transform 0.2s;
}

.ing-event-card:hover {
    transform: translateY(-2px);
}

.ing-event-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ing-event-title-link {
    display: block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--ing-text);
}

.no-events-message {
    margin: 20px 0;
}

/* Responsivo - Programação */
@media (max-width: 768px) {
    .ing-events-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ========================================
   PROGRAMAÇÃO GRID-PAGE
   ======================================== */

.estados-list,
.cidades-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.estado-item,
.cidade-item {
    border: 1px solid var(--ing-border);
    border-radius: 8px;
    background: white;
    transition: all 0.2s;
}

.estado-item:hover,
.cidade-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--ing-primary);
}

.estado-link,
.cidade-link {
    display: block;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--ing-text);
}

.estado-link:hover,
.cidade-link:hover {
    color: var(--ing-primary);
}

/* ========================================
   RESPONSIVO MOBILE
   ======================================== */

@media (max-width: 768px) {
    .evento-main-info {
        grid-template-columns: 1fr;
    }
    
    .eventos-grid,
    .trailers-grid {
        grid-template-columns: 1fr;
    }
    
    .eventos-filters {
        flex-direction: column;
    }
    
    .evento-title {
        font-size: 2rem;
    }
}
