/* ========== PERFIL DO ATOR – CONTEÚDO DAS COLUNAS ========== */

/* Coluna esquerda – foto */
.person-poster {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}
.person-poster img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Coluna central – informações */
.person-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.2;
}
.person-details {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.person-details p {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}
.person-details strong {
    color: #e50914;
    margin-right: 0.5rem;
    min-width: 120px;
    flex-shrink: 0;
}
.person-biography {
    margin-top: 1.5rem;
}
.person-biography h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid #e50914;
}
.person-biography p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* ========== FILMOGRAFIA – CARROSSÉIS ========== */
.filmography-section {
    margin: 2rem 2rem 0;
    padding: 0 0 1.5rem;
}
.filmography-section .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-left: 0.75rem;
    border-left: 4px solid #e50914;
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

/* Container do carrossel */
.media-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 1.5rem 0;
    gap: 0.5rem;
}
.media-carousel-wrapper .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem 0;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.media-carousel-wrapper .carousel-track::-webkit-scrollbar {
    display: none;
}
.media-carousel-wrapper .carousel-nav-btn {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.2rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, background 0.2s, transform 0.2s;
    margin-top: -14px;
}
.media-carousel-wrapper .carousel-nav-btn:hover {
    background: rgba(229, 9, 20, 0.9);
    transform: scale(1.1);
    border-color: transparent;
}
.media-carousel-wrapper:hover .carousel-nav-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.media-carousel-wrapper .carousel-movie-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 160px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.media-carousel-wrapper .carousel-movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    border-color: rgba(229, 9, 20, 0.3);
}
.media-carousel-wrapper .carousel-movie-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #2a2a2a;
    transition: opacity 0.2s;
}
.media-card-info {
    padding: 0.5rem 0.5rem 0.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}
.media-card-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-card-info .media-character {
    font-size: 0.75rem;
    color: #b3b3b3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-card-info .media-year {
    font-size: 0.7rem;
    color: #888;
    margin-top: auto;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 1024px) {
    .person-poster { max-width: 260px; }
    .person-details strong { min-width: 100px; }
}

@media (max-width: 768px) {
    .person-poster {
        max-width: 280px; /* Aumentado para melhor visualização */
        width: 70%;
        margin: 0 auto;
    }
    .person-info h1 {
        font-size: 2rem;
        text-align: left;
        padding: 0 0.5rem;
    }
    .person-details {
        align-items: flex-start;
        text-align: left;
        padding: 0 0.5rem;
        gap: 0.4rem;
    }
    .person-details p {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }
    .person-details strong {
        min-width: 100px;
        margin-right: 0.25rem;
    }
    .person-biography h2 {
        border-left: none;
        padding-left: 0;
        text-align: left;
        font-size: 1.2rem;
    }
    .person-biography p {
        text-align: justify;
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    .filmography-section {
        margin: 1.5rem 0.5rem 0;
        padding: 0 0 1rem;
    }
    .filmography-section .section-title {
        font-size: 1.1rem;
        padding-left: 0.5rem;
        border-left: 3px solid #e50914;
        text-align: left;
    }
    .media-carousel-wrapper .carousel-movie-card {
        width: 130px;
    }
    .media-carousel-wrapper .carousel-nav-btn {
        display: none !important;
    }
    .media-carousel-wrapper {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .person-poster {
        max-width: 240px; /* Aumentado para 240px (antes 200px) */
        width: 80%;
        margin: 0 auto;
    }
    .person-info h1 {
        font-size: 1.8rem;
        text-align: left;
        padding: 0 0.25rem;
    }
    .person-details {
        padding: 0 0.25rem;
    }
    .person-details p {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }
    .person-details strong {
        min-width: auto;
        margin-right: 0;
    }
    .person-biography p {
        font-size: 0.9rem;
        padding: 0 0.25rem;
    }
    .media-carousel-wrapper .carousel-movie-card {
        width: 110px;
    }
    .media-card-info h3 {
        font-size: 0.75rem;
    }
    .filmography-section {
        margin: 1rem 0.2rem 0;
    }
    .filmography-section .section-title {
        font-size: 1rem;
        padding-left: 0.4rem;
    }
}