:root {
    --primary-color: #fff;
    --accent-color: rgba(255, 255, 255, 0.8);
    --bg-overlay: rgba(10, 15, 30, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background-image: url("src/1.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    background-color: #030613; /* Fallback night sky color */
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
}

/* --- OVERLAY & CONTENT --- */
.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-overlay);
    z-index: 10;
    pointer-events: none; /* Let clicks pass through overlay area */
}

.movie-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    animation: fadeIn 2s ease-out forwards;
    opacity: 0;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 50px;
    animation: fadeIn 2.5s ease-out 0.5s forwards;
    opacity: 0;
}

/* --- AUDIO BUTTON --- */
.audio-btn {
    pointer-events: auto; /* Enable clicks for the button */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: fadeIn 3s ease-out 1s forwards;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.audio-btn i {
    transition: opacity 0.2s ease;
}

.hidden {
    display: none !important;
}

/* --- DYNAMIC BACKGROUND STARS --- */
#stars-container, #comets-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: twinkle linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- COMETS (SHOOTING STARS) --- */
.comet {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 1));
    animation: shootingStar linear infinite;
    opacity: 0;
}

.comet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0 15px 3px rgba(255, 255, 255, 1), 0 0 30px rgba(100, 200, 255, 0.8); /* Slight blue tint to the comet head */
}

@keyframes shootingStar {
    0% {
        transform: rotate(-45deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 0;
    }
    100% {
        transform: rotate(-45deg) translateX(-1500px);
        opacity: 0;
    }
}

/* --- GENERAL ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE DESIGN --- */
@media screen and (max-width: 768px) {
    .movie-title {
        font-size: 3rem;
        text-align: center;
        padding: 0 20px;
    }
    .subtitle {
        font-size: 1rem;
        letter-spacing: 8px;
    }
}