/* CSS específico para a seção de Filmografia */
#filmografia {
    background-color: #552200;
    padding: 80px 8%;
    min-height: auto;
    position: relative;
    overflow: hidden;
}

#filmografia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.02) 50%, transparent 51%);
    pointer-events: none;
}

#filmografia .section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: #fdf5e6;
    position: relative;
    padding-bottom: 15px;
    z-index: 2;
}

#filmografia .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, rgba(139, 69, 19, 0.8), rgba(218, 165, 32, 0.8));
    border-radius: 2px;
}

#filmografia .section-description {
    font-size: 1.2rem;
    margin-bottom: 50px;
    text-align: center;
    max-width: 800px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* Container principal da filmografia */
.filmografia-player {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Navegação entre filmes */
.filme-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filme-nav-arrow {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.filme-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(218, 165, 32, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.filme-nav-arrow:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
    opacity: 0.3;
}

.filme-info-header {
    text-align: center;
    flex: 1;
    margin: 0 20px;
}

.filme-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.filme-year {
    color: rgba(218, 165, 32, 0.9);
    font-size: 1rem;
    font-weight: 500;
}

.filme-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Conteúdo principal */
.filmografia-content {
    display: flex;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.03);
}

/* Seção dos detalhes */
.filme-details-section {
    flex: 1;
    padding: 30px;
    color: white;
}

.filme-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.metadata-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.metadata-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.metadata-label {
    font-size: 0.8rem;
    color: rgba(218, 165, 32, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.metadata-value {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.filme-sinopse {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 0%;
    border-left: 4px solid rgba(218, 165, 32, 0.9);
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.sinopse-title {
    color: rgba(218, 165, 32, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sinopse-text {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
    font-size: 1rem;
}

.filme-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.btn-imdb {
    background: linear-gradient(135deg, #f5c518, #daa520);
    color: #000;
    border-color: rgba(218, 165, 32, 0.3);
}

.btn-imdb:hover {
    background: linear-gradient(135deg, #daa520, #f5c518);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
    color: #000;
}

.btn-trailer {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    border-color: rgba(255, 0, 0, 0.3);
}

.btn-trailer:hover {
    background: linear-gradient(135deg, #cc0000, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    color: white;
}

.btn-disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Poster do filme */
.filme-poster-section {
    flex: 0 0 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-container {
    position: relative;
    margin-bottom: 20px;
    perspective: 1000px;
}

.filme-poster {
    width: 240px;
    height: 360px;
    border-radius: 0px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(113, 0, 0, 0.8), rgba(80, 86, 0, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    text-align: center;
}

.filme-poster:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 55px 70px rgba(0,0,0,0.6);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    border-radius: 0px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.poster-container:hover .poster-overlay {
    opacity: 1;
}

.filme-credits {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 0.85rem;
}

.filme-credits p {
    margin-bottom: 8px;
}

.filme-credits strong {
    color: rgba(218, 165, 32, 0.8);
}

/* Loading */
.filme-loading-spinner {
    display: none;
    text-align: center;
    padding: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.filme-loading-spinner i {
    margin-bottom: 15px;
    color: rgba(218, 165, 32, 0.8);
}

/* Responsividade */
@media screen and (max-width: 1024px) {
    .filme-poster-section {
        flex: 0 0 280px;
    }
    
    .filme-poster {
        width: 200px;
        height: 300px;
    }

    .filmografia-content {
        min-height: 450px;
    }
}

@media screen and (max-width: 768px) {
    #filmografia {
        padding: 60px 5%;
    }
    
    .filmografia-content {
        flex-direction: column;
    }

    .filme-poster-section {
        flex: none;
        padding: 20px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        order: -1;
    }

    .filme-poster {
        width: 180px;
        height: 270px;
    }

    .filme-navigation {
        padding: 20px 25px;
    }

    .filme-nav-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

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

    .filme-details-section {
        padding: 25px 20px;
    }
    
    .filme-metadata {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filme-actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .filme-navigation {
        padding: 15px 20px;
    }
    
    .filme-title {
        font-size: 1.2rem;
    }
    
    .filme-poster {
        width: 160px;
        height: 240px;
    }
    
    .filme-details-section {
        padding: 20px 15px;
    }
    
    .filme-sinopse {
        padding: 20px;
    }
}