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

:root {
    --primary-color: #e50914;
    --dark-color: #141414;
    --light-color: #f4f4f4;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--light-color);
    text-decoration: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 100;
    transition: background-color 0.3s;
}

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

.logo {
    width: 120px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-size: 14px;
}

.nav-links a:hover {
    color: #ccc;
}

.search-user {
    display: flex;
    align-items: center;
}

.search {
    margin-right: 20px;
    position: relative;
}

.search input {
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 4px;
    color: #fff;
    padding: 5px 30px 5px 10px;
    font-size: 14px;
    width: 0;
    opacity: 0;
    transition: width 0.5s, opacity 0.5s;
}

.search.active input {
    width: 200px;
    opacity: 1;
}

.search-icon {
    color: #fff;
    cursor: pointer;
}

.user-profile {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 20px;
}

.hero-content {
    position: absolute;
    bottom: 150px;
    left: 50px;
    max-width: 500px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: rgba(51, 51, 51, 0.5);
    border: none;
    color: white;
    padding: 10px 20px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn:hover {
    background-color: rgba(51, 51, 51, 0.8);
}

.btn-primary:hover {
    background-color: #f40612;
}

/* Movies Section */
.movies-section {
    padding: 20px 40px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.movies-row {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.movies-row::-webkit-scrollbar {
    display: none;
}

.movie-card {
    min-width: 250px;
    height: 150px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    cursor: pointer;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card:hover {
    transform: scale(1.1);
    z-index: 10;
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .movie-info {
    opacity: 1;
}

.movie-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.movie-genre {
    font-size: 12px;
    color: #aaa;
}

/* Footer */
.footer {
    padding: 40px;
    text-align: center;
    color: #777;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 20px;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: #777;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .logo {
        width: 100px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-content {
        left: 20px;
        bottom: 100px;
        max-width: 90%;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .movies-section {
        padding: 20px;
    }
    
    .movie-card {
        min-width: 200px;
        height: 120px;
    }
}