:root {
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #e50914;
    --card-color: #1a1a1a;
    --popup-bg: rgba(15, 15, 15, 0.95);
}

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    padding: 2rem 1rem;
    text-align: center;
    background: linear-gradient(to right, #000, #111);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 12rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    background: radial-gradient(circle, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    line-height: 1;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.cast-member {
    position: relative;
    background-color: var(--card-color);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    max-width: 300px;
    margin: 0 auto;
}

.cast-member:first-child {
    position: relative;
    z-index: 1;
}

.cast-member:first-child::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 4px;
    background: linear-gradient(45deg, #ff0000, #ff8c00, #ffd700, #ff8c00, #ff0000);
    background-size: 400% 400%;
    animation: glowing 3s ease infinite;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.7;
}

@keyframes glowing {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.cast-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.cast-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    font-weight: 600;
    font-size: 1rem;
    color: white;
    z-index: 2;
}

/* Popup Styles */
.bio-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--popup-bg);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1rem;
}

.bio-popup.active {
    opacity: 1;
    pointer-events: auto;
}

.bio-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    background-color: var(--card-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@media (min-width: 768px) {
    .bio-content {
        flex-direction: row;
    }
}

.bio-image {
    width: 100%;
    height: 300px;
}

@media (min-width: 768px) {
    .bio-image {
        width: 40%;
        height: auto;
    }
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-text {
    padding: 2rem;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .bio-text {
        width: 60%;
    }
}

.bio-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.bio-name::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.bio-role {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.bio-details {
    margin-top: 1.5rem;
    line-height: 1.7;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

@media (max-width: 767px) {
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .cast-member {
        max-width: 200px;
    }
    
    .cast-name {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .cast-member {
        max-width: 150px;
    }
    
    .cast-name {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
} 