/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #e50914;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e50914;
}

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

.search-box input {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #222;
    color: white;
    width: 200px;
}

.search-box button {
    background: #e50914;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #b2070f;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://assets-in.bmscdn.com/iedb/movies/images/mobile/listing/xxlarge/rowdy-boys-et00311775-10-01-2022-07-21-07.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 0 50px;
    margin-top: 80px;
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    background: #e50914;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #b2070f;
}

.btn-outline {
    background: transparent;
    border: 1px solid white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.section {
    padding: 50px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #e50914;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.movie-card {
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.movie-card:hover {
    transform: translateY(-10px);
}

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

.movie-info {
    padding: 20px;
}

.movie-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.movie-info p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
footer {
    background: #111;
    padding: 50px;
    text-align: center;
}

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

.footer-links a {
    transition: color 0.3s;
}

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

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icons a {
    font-size: 24px;
    color: #aaa;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #e50914;
}

.copyright {
    color: #666;
    font-size: 14px;
}

/* Ad Container */
.ad-container {
    padding: 20px 50px;
    background: #111;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px;
    }

    nav ul {
        margin: 15px 0;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .hero {
        padding: 0 20px;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .no-results {
        background: rgba(0, 0, 0, 0.7);
        border-radius: 8px;
        margin: 20px auto;
        max-width: 600px;
    }
    
    .no-results h2 {
        color: #e50914;
        margin-bottom: 10px;
    }
    
    .no-results p {
        color: #aaa;
        font-size: 16px;
    }

    .buttons {
        justify-content: center;
    }

    .section {
        padding: 30px 20px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: 1fr;
    }
}