* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #141414;
    color: #ffffff;
}

header {
    background-color: #000000;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #e50914;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 4px;
    padding: 0.5rem;
}

#search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    width: 300px;
    outline: none;
}

#search-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #e50914;
}

main {
    margin-top: 80px;
    padding: 2rem;
}

.hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('./assests/banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
}

.movies-section {
    margin-bottom: 3rem;
}

.movies-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

.movie-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

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

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

.movie-info {
    padding: 1rem;
}

.movie-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.movie-info p {
    color: #ccc;
    font-size: 0.9rem;
}

footer {
    background-color: #000000;
    padding: 3rem 2rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #e50914;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333;
}

/* Video Player Modal */
#video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 2% auto;
    padding: 20px;
    background-color: #000;
}

#video-player {
    width: 100%;
    height: 80vh;
    background-color: #000;
}

/* Movie Details Modal */
.movie-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.movie-header img {
    width: 300px;
    height: auto;
    border-radius: 8px;
}

.movie-info {
    flex: 1;
}

.play-button {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: #f40612;
}

.play-button i {
    font-size: 1.2rem;
}

/* Modal Close Button */
.close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
}

.close:hover {
    color: #e50914;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        gap: 1rem;
    }

    .nav-links a {
        margin-left: 0;
    }

    .search-container {
        width: 100%;
    }

    #search-input {
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .movie-header {
        flex-direction: column;
    }

    .movie-header img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .video-modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 10px;
    }

    #video-player {
        height: 50vh;
    }
}

/* Error Message */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #e50914;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.error-message i {
    font-size: 1.5rem;
}

.error-message p {
    margin: 0;
    font-size: 1rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Genre Buttons */
.genre-buttons {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    background: #141414;
    position: sticky;
    top: 0;
    z-index: 100;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.genre-buttons::-webkit-scrollbar {
    display: none;
}

.genre-button {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.genre-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.genre-button.active {
    background: #e50914;
    border-color: #e50914;
}

/* Genre Sections */
.genre-section {
    margin-bottom: 40px;
    padding: 0 20px;
}

.genre-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.movie-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 10px 0;
}

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

/* Movie Cards */
.movie-card {
    flex: 0 0 300px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.movie-poster {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-bottom: 2px solid #e50914;
}

.movie-info {
    padding: 15px;
    background: linear-gradient(to bottom, #1a1a1a, #000);
}

.movie-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.movie-meta {
    display: flex;
    gap: 15px;
    color: #777;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.movie-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.genre-tag {
    background: rgba(229, 9, 20, 0.2);
    color: #e50914;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .movie-card {
        flex: 0 0 250px;
    }

    .movie-poster {
        height: 375px;
    }

    .genre-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .movie-card {
        flex: 0 0 200px;
    }

    .movie-poster {
        height: 300px;
    }

    .genre-title {
        font-size: 1.1rem;
    }
} 