:root {
    --primary-red: #E50914;
    --dark-bg: #141414;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --overlay-color: rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
}

/* Hero Background */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.poster-blur {
    width: 100%;
    height: 100%;
    background-image: url('YOUR_MOVIE_POSTER_URL'); /* Fallback or actual poster */
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20,20,20,0.5) 0%, rgba(20,20,20,0.8) 50%, #141414 100%);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo .red-text {
    color: var(--text-white);
}

.btn-login {
    background-color: var(--primary-red);
    color: white;
    padding: 7px 17px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-login:hover {
    background-color: #f40612;
}

/* Main Content */
main {
    padding-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    margin-bottom: 50px;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        max-width: 1200px;
        gap: 40px;
    }
}

/* Poster Container */
.poster-container {
    position: relative;
    width: 200px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.poster-container:hover {
    transform: scale(1.05);
}

.movie-poster {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    opacity: 0;
    transition: opacity 0.3s;
}

.poster-container:hover .play-icon {
    opacity: 1;
}

/* Info Container */
.info-container {
    flex: 1;
}

.badges {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .badges {
        justify-content: flex-start;
    }
}

.match-score {
    color: #46d369;
    font-weight: bold;
}

.age-rating {
    border: 1px solid var(--text-gray);
    padding: 0 5px;
    font-size: 0.8rem;
}

.quality {
    border: 1px solid var(--text-gray);
    border-radius: 3px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: bold;
}

.movie-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.1;
    text-transform: uppercase;
}

.movie-title .glow {
    color: var(--primary-red);
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.7);
}

.trending-badge {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

@media (min-width: 768px) {
    .trending-badge {
        justify-content: flex-start;
    }
}

.synopsis {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Buttons */
.cta-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

@media (min-width: 768px) {
    .cta-container {
        justify-content: flex-start;
    }
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary {
    background-color: var(--text-white);
    color: black;
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

.btn-secondary:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

/* Countdown */
.countdown-container {
    background: rgba(0,0,0,0.6);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
}

.countdown-container p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.countdown {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-red);
    font-family: monospace;
}

/* Cast Section */
.cast-section {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin-bottom: 50px;
}

.cast-section h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-gray);
}

.cast-list {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.cast-member {
    text-align: center;
    min-width: 100px;
}

.cast-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-size: cover;
    background-position: center;
    border: 2px solid #333;
}

.cast-name {
    font-size: 0.9rem;
    font-weight: bold;
}

.cast-role {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Email Capture */
.email-capture {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 50px;
}

.email-capture h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.email-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .email-form .input-group {
        flex-direction: row;
        align-items: center;
    }
}

.email-form input {
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #333;
    border-radius: 2px;
    background: rgba(0,0,0,0.5);
    color: white;
    flex: 1;
}

.btn-submit {
    padding: 12px 25px;
    font-size: 1.2rem;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background-color: #f40612;
}

/* Footer */
footer {
    width: 100%;
    padding: 50px 4%;
    background-color: rgba(0,0,0,0.75);
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

footer a {
    color: var(--text-gray);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
}
