:root {
    --primary-color: #e50914;
    --background-color: #141414;
    --text-color: #ffffff;
    --secondary-text: #b3b3b3;
    --modal-bg: #181818;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0));
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s;
}

.navbar.scrolled {
    background-color: #141414;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    cursor: pointer;
}

.search-container {
    display: flex;
    gap: 10px;
}

#search-input {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #333;
    background-color: rgba(0,0,0,0.5);
    color: white;
    outline: none;
}

#search-btn {
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 4%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #141414 10%, transparent 90%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

#hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

#hero-overview {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-play, .btn-info {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-right: 15px;
    transition: transform 0.2s;
}

.btn-play {
    background-color: white;
    color: black;
}

.btn-info {
    background-color: rgba(109, 109, 109, 0.7);
    color: white;
}

.btn-play:hover, .btn-info:hover {
    transform: scale(1.05);
}

/* Movie Sections */
.content-container {
    padding: 20px 0;
    margin-top: -100px;
    position: relative;
    z-index: 20;
}

.movie-section {
    margin-bottom: 40px;
    padding-left: 4%;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.movie-row {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scroll-behavior: smooth;
}

.movie-row::-webkit-scrollbar {
    height: 5px;
}

.movie-row::-webkit-scrollbar-track {
    background: #141414;
}

.movie-row::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 10px;
}

.movie-card {
    min-width: 200px;
    height: 300px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card:hover {
    transform: scale(1.1);
    z-index: 50;
}

.hidden {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--modal-bg);
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: flex;
    flex-direction: row;
}

#modal-img {
    width: 40%;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.modal-info {
    padding: 30px;
    width: 60%;
}

#modal-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#modal-rating, #modal-release {
    margin-bottom: 10px;
    color: var(--secondary-text);
}

#modal-desc {
    line-height: 1.6;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    #hero-title {
        font-size: 2.5rem;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    #modal-img {
        width: 100%;
        height: 250px;
        border-radius: 8px 8px 0 0;
    }
    
    .modal-info {
        width: 100%;
    }
}
