:root {
    --primary-bg: #000000;
    --secondary-bg: #1a1a1a;
    --text-color: #ffffff;
    --subtle-text-color: #999999;
    --accent-color: #e50914; /* Netflix Red */
    --card-bg: #181818;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: #000;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    cursor: pointer;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--subtle-text-color);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #999;
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
}

.search-bar::placeholder {
    color: #999;
}

.profile-icon {
    width: 30px;
    height: 30px;
    background-color: #e50914; /* Placeholder for profile icon */
    border-radius: 50%;
    cursor: pointer;
}

.hero {
    position: relative;
    height: 80vh;
    background-image: url('https://images.pexels.com/photos/158779/movie-the-film-cinema-film-reel-158779.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1'); /* Placeholder background */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 3rem;
    color: var(--text-color);
}

.hero-content {
    z-index: 2;
    max-width: 600px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.play-button, .info-button {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-bg);
    border: none;
    padding: 12px 30px;
    margin-right: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.play-button {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.play-button:hover, .info-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.info-button:hover {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 30%, rgba(0,0,0,0) 70%);
    z-index: 1;
}

.content-sections {
    padding: 3rem;
    position: relative;
    top: -10vh; /* Adjust to overlap with hero */
}

.movie-row {
    margin-bottom: 3rem;
}

.movie-row h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.row-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px; /* For scrollbar */
}

.row-container::-webkit-scrollbar {
    height: 8px;
}

.row-container::-webkit-scrollbar-track {
    background: #222;
    border-radius: 10px;
}

.row-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.row-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.movie-item {
    flex: 0 0 auto;
    width: 200px; /* Adjust as needed */
    margin-right: 15px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie-item:hover {
    transform: scale(1.05);
}

.movie-item img {
    width: 100%;
    height: 280px; /* Aspect ratio adjustment */
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.site-footer {
    margin-top: auto; /* Pushes footer to the bottom */
    padding: 3rem;
    background-color: #000;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--subtle-text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-color);
}

.copyright {
    color: var(--subtle-text-color);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    nav ul {
        display: none; /* Hide nav on smaller screens, could implement a burger menu */
    }
    .hero {
        height: 50vh;
        padding: 0 1.5rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .play-button, .info-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .movie-item {
        width: 150px;
    }
    .movie-item img {
        height: 200px;
    }
    .content-sections {
        padding: 1.5rem;
    }
    .site-footer {
        padding: 2rem 1rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}