body {
    margin: 0;
    font-family: 'Orbitron', 'Electrolize', sans-serif; /* Futuristic font */
    overflow: hidden; /* Hide scrollbars for full-screen effects */
    color: #fff;
    background-color: #0d001a; /* Dark purple fallback */
    text-shadow: 0 0 8px #00eaff, 0 0 15px #00eaff, 0 0 20px #00eaff; /* Electric blue text shadow */
}

/* Full-screen video background for index.html */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#bg-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-size: cover;
    filter: brightness(0.7); /* Slightly dim the video */
}

.back-home-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #330066; /* Darker purple */
    border: 3px solid #00eaff; /* Electric Blue */
    border-radius: 15px;
    padding: 10px 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    box-shadow:
        0 0 8px #00eaff,
        0 0 15px #ee00ff; /* Electric Blue & Magenta glow */
    transition: all 0.3s ease-in-out;
    z-index: 1000; /* Ensure it's above other content */
}

.back-home-button:hover {
    transform: scale(1.05);
    background-color: #00eaff;
    border-color: #ee00ff;
    box-shadow:
        0 0 10px #ee00ff,
        0 0 20px #00eaff;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 40px;
}

.glowing-button {
    background-color: #330066; /* Darker purple */
    border: 5px solid #00eaff; /* Electric Blue */
    border-radius: 20px;
    padding: 30px 60px;
    font-size: 3em;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    box-shadow:
        0 0 15px #00eaff, /* Electric Blue glow */
        0 0 25px #00eaff,
        0 0 35px #ee00ff, /* Electric Magenta glow */
        0 0 45px #ee00ff,
        0 0 55px #00ff8c; /* Neon Green glow */
    transition: all 0.3s ease-in-out;
}

.glowing-button:hover {
    transform: scale(1.1);
    background-color: #00eaff; /* Swap to Electric Blue on hover */
    border-color: #ee00ff;
    box-shadow:
        0 0 20px #ee00ff,
        0 0 30px #ee00ff,
        0 0 40px #00eaff,
        0 0 50px #00eaff,
        0 0 60px #00ff8c;
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* New animation for sequential highlighting */
@keyframes highlight-pulse {
    0% { transform: scale(1); box-shadow: 0 0 15px #00eaff, 0 0 25px #00eaff, 0 0 35px #ee00ff, 0 0 45px #ee00ff, 0 0 55px #00ff8c; }
    50% { transform: scale(1.1); box-shadow: 0 0 20px #ee00ff, 0 0 30px #ee00ff, 0 0 40px #00eaff, 0 0 50px #00eaff, 0 0 60px #00ff8c; }
    100% { transform: scale(1); box-shadow: 0 0 15px #00eaff, 0 0 25px #00eaff, 0 0 35px #ee00ff, 0 0 45px #ee00ff, 0 0 55px #00ff8c; }
}

.glowing-button.highlight {
    animation: highlight-pulse 1s ease-in-out 2 forwards; /* Run 1-second animation twice for a total of 2 seconds */
}

/* New styling for the Start Button */
#startButton {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* Above video, below content when active */
    /* Inherits .glowing-button styles from index.html body, with minor overrides if needed */
}

/* Utility class to hide elements */
.hidden {
    display: none !important;
}

/* Cinema Page */
.cinema-body {
    background-color: #1a0033; /* Dark purple background */
    display: flex;
    flex-direction: column; /* Changed to column to stack elements vertically */
    justify-content: flex-start; /* Align to start for content flow */
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    padding-top: 80px; /* Space for back home button */
}

.movie-request-section {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 80%;
    max-width: 600px;
}

.neon-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.5em;
    border: 3px solid #00eaff; /* Electric Blue */
    border-radius: 10px;
    background-color: rgba(238, 0, 255, 0.2); /* Semi-transparent Magenta */
    color: #fff;
    text-shadow: 0 0 5px #00eaff;
    box-shadow: 0 0 8px #00eaff, 0 0 12px #ee00ff;
    outline: none;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.neon-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.neon-input:focus {
    border-color: #ee00ff; /* Electric Magenta on focus */
    box-shadow: 0 0 10px #ee00ff, 0 0 15px #00eaff;
}

.request-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.glowing-button-small {
    background-color: #330066; /* Darker purple */
    border: 3px solid #00eaff; /* Electric Blue */
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    box-shadow:
        0 0 8px #00eaff,
        0 0 15px #ee00ff;
    transition: all 0.3s ease-in-out;
}

.glowing-button-small:hover {
    transform: scale(1.05);
    background-color: #00eaff;
    border-color: #ee00ff;
    box-shadow:
        0 0 10px #ee00ff,
        0 0 20px #00eaff;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    justify-items: center;
}

.movie-card {
    background-color: #330066; /* Slightly lighter purple */
    border: 5px solid #00eaff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow:
        0 0 15px #00eaff,
        0 0 25px #ee00ff;
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 0 20px #ee00ff,
        0 0 30px #00eaff;
}

.movie-card img {
    width: 100%;
    height: 350px; /* Fixed height for covers */
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #00ff8c; /* Neon Green */
}

.movie-title {
    font-size: 2em;
    font-weight: bold;
    padding: 15px 10px 0;
    text-shadow: 0 0 8px #fff, 0 0 12px #00eaff;
}

/* Player Page */
.player-body {
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.video-player-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#moviePlayer {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    background-color: #000;
}
