/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #141414;
    color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #fff;
}

ul {
    list-style: none;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 10%, transparent);
    transition: background-color 0.3s;
}

.navbar.scrolled {
    background-color: #141414;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo-container {
    height: 25px;
}

.logo {
    height: 100%;
}

.menu-container {
    margin-left: 20px;
}

.menu {
    display: flex;
}

.menu li {
    margin-right: 20px;
}

.menu li a {
    font-size: 14px;
    transition: color 0.3s;
}

.menu li a:hover {
    color: #b3b3b3;
}

.menu li.active a {
    font-weight: bold;
}

.right-container {
    display: flex;
    align-items: center;
}

.search-icon, .notification-icon {
    font-size: 18px;
    margin-right: 22px;
    cursor: pointer;
}

.profile-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-icon {
    height: 32px;
    border-radius: 4px;
}

.dropdown-icon {
    margin-left: 10px;
    font-size: 12px;
}

/* Hero Section Styles */
.hero {
    position: relative;
    height: 80vh;
    background: url('https://occ-0-2794-2219.1.nflxso.net/dnm/api/v6/E8vDc_W8CLv7-yMQu8KMEC7Rrr8/AAAABQnCKYrVXQ9OrKZGgGx8vbUVdGGCjrxGl8_7QZVCyxePSxG9PjKz0d1MJZ0WdpwvoMzfQJCnKlnhKLYUV1_pAm_9aBbdFYHW.jpg?r=776') no-repeat center center/cover;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin-left: 60px;
}

.featured-title {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
}

.play-button, .more-info-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
    border: none;
    transition: all 0.2s;
}

.play-button {
    background-color: #fff;
    color: #000;
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.more-info-button {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.more-info-button:hover {
    background-color: rgba(109, 109, 110, 0.4);
}

.play-button i, .more-info-button i {
    margin-right: 10px;
}

/* Movie Section Styles */
.movie-section {
    padding: 0 60px;
    margin-bottom: 40px;
}

.row-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
}

.movie-row {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.movie-row::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

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

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

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

.movie-card-overlay {
    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 ease;
}

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

.movie-card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.movie-card-buttons {
    display: flex;
    align-items: center;
}

.movie-card-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.movie-card-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Modal Styles */
.movie-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    background-color: #181818;
    margin: 5% auto;
    width: 70%;
    max-width: 900px;
    border-radius: 8px;
    overflow: hidden;
    animation: modalopen 0.3s;
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background-color: #181818;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-details {
    padding: 0;
}

.modal-hero {
    position: relative;
    height: 400px;
}

.modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #181818, transparent);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.modal-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    margin-bottom: 15px;
}

.modal-info {
    padding: 20px;
}

.modal-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-metadata {
    display: flex;
    margin-bottom: 15px;
}

.modal-metadata span {
    margin-right: 15px;
    font-size: 14px;
    color: #a3a3a3;
}

.modal-metadata span.match {
    color: #46d369;
    font-weight: bold;
}

.modal-cast {
    margin-bottom: 20px;
}

.modal-cast h4 {
    font-size: 16px;
    color: #a3a3a3;
    margin-bottom: 5px;
}

.modal-cast p {
    font-size: 14px;
}

/* Footer Styles */
.footer {
    padding: 60px;
    color: #808080;
    margin-top: 20px;
}

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

.social-links {
    display: flex;
    margin-bottom: 20px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    margin-right: 25px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-links-column a {
    display: block;
    color: #808080;
    font-size: 13px;
    margin-bottom: 15px;
}

.footer-links-column a:hover {
    text-decoration: underline;
}

.service-code {
    margin-bottom: 20px;
}

.service-code-button {
    background: transparent;
    border: 1px solid #808080;
    color: #808080;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

.service-code-button:hover {
    color: #fff;
}

.copyright {
    font-size: 12px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .movie-card {
        min-width: 200px;
        height: 113px;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 0 30px;
    }
    
    .hero-content {
        margin-left: 30px;
    }
    
    .movie-section {
        padding: 0 30px;
    }
    
    .movie-card {
        min-width: 180px;
        height: 101px;
    }
    
    .modal-content {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .menu li {
        margin-right: 15px;
    }
    
    .menu li a {
        font-size: 12px;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .movie-card {
        min-width: 160px;
        height: 90px;
    }
    
    .modal-hero {
        height: 300px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .footer {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0 15px;
    }
    
    .logo-container {
        height: 20px;
    }
    
    .menu {
        display: none;
    }
    
    .hero-content {
        margin-left: 15px;
        max-width: 90%;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .movie-section {
        padding: 0 15px;
    }
    
    .row-title {
        font-size: 18px;
    }
    
    .movie-card {
        min-width: 140px;
        height: 79px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-hero {
        height: 200px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .footer-links-column {
        min-width: 150px;
    }
}