/* ============================================
   ACTOR DETAILS PAGE STYLES
   ============================================ */

/* Actor Hero Section */
.actor-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    padding-top: 120px;
    margin-top: 0;
    overflow: hidden;
}

.actor-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    /* filter: blur removed for GPU performance */ brightness(0.4);
    transform: scale(1.1);
}

.actor-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        rgba(10,6,8,0.3) 0%, 
        rgba(10,6,8,0.7) 50%, 
        var(--noir) 100%);
}

.actor-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.actor-photo {
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--charcoal), var(--slate));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
}

.actor-photo i {
    font-size: 5rem;
    color: rgba(255,255,255,0.2);
}

.actor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actor-info {
    flex: 1;
    padding-top: 20px;
}

.actor-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.actor-known-for {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 600;
}

.actor-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.actor-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--pearl);
}

.actor-stat i {
    color: var(--gold);
}

.actor-bio {
    color: var(--silver);
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 700px;
}

/* Movies Section */
.actor-movies-section {
    padding: 60px 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--gold);
}

.section-subtitle {
    color: var(--silver);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.section-subtitle span {
    color: var(--gold);
    font-weight: 600;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--silver);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--ruby);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Movies */
.no-movies {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 20px;
    color: var(--silver);
    text-align: center;
}

.no-movies i {
    font-size: 4rem;
    color: var(--steel);
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.movie-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s var(--ease-out-expo);
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: var(--ruby);
    box-shadow: 0 20px 50px rgba(227,27,84,0.25);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
}

.movie-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.movie-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ruby), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.4s var(--ease-out-expo);
}

.movie-card:hover .movie-play {
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    padding: 16px;
}

.movie-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pearl);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--silver);
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-rating i {
    color: var(--gold);
}

.movie-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-views i {
    color: var(--ruby);
}

/* TMDB Movies Section */
.tmdb-movies-section {
    padding: 60px 40px;
    background: rgba(0,0,0,0.2);
}

.tmdb-movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.tmdb-movie-card {
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s ease;
}

.tmdb-movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.tmdb-movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.tmdb-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmdb-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(1, 180, 228, 0.9);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
}

.tmdb-movie-info {
    padding: 14px;
}

.tmdb-movie-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pearl);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tmdb-movie-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--silver);
    margin-bottom: 6px;
}

.tmdb-movie-meta i {
    color: var(--gold);
}

.tmdb-character {
    display: block;
    font-size: 0.7rem;
    color: var(--steel);
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .actor-hero__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px;
    }
    
    .actor-photo {
        width: 150px;
        height: 225px;
    }
    
    .actor-name {
        font-size: 1.8rem;
    }
    
    .actor-stats {
        justify-content: center;
    }
    
    .actor-bio {
        font-size: 0.85rem;
    }
    
    .actor-movies-section,
    .tmdb-movies-section {
        padding: 40px 16px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    
    .tmdb-movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 14px;
    }
}
