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

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

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

ul {
    list-style: none;
}

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

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.netflix-logo {
    height: 30px;
    margin-right: 30px;
}

.nav-links {
    display: flex;
}

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

.nav-links a {
    font-size: 14px;
    transition: color 0.3s;
}

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

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

.right-container i {
    margin-right: 22px;
    font-size: 20px;
    cursor: pointer;
}

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

/* Hero Section Styles */
.hero {
    position: relative;
    height: 80vh;
    background: url('https://wallpapercave.com/wp/wp5124573.jpg') no-repeat center center;
    background-size: cover;
    margin-bottom: 20px;
}

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(20, 20, 20, 1) 100%
    );
}

.hero-content {
    position: relative;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    max-width: 500px;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #e6e6e6;
}

.hero-buttons {
    display: flex;
}

.hero-buttons button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 1.2rem;
    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);
}

.hero-buttons button i {
    margin-right: 10px;
}

/* Content Section Styles */
.content-container {
    padding: 0 60px;
    margin-top: 20px;
}

.content-row {
    margin-bottom: 40px;
}

.row-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.thumbnail-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 */
}

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

.thumbnail {
    min-width: 250px;
    height: 140px;
    margin-right: 10px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

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

.thumbnail:hover .thumbnail-info {
    opacity: 1;
    visibility: visible;
}

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

.thumbnail-title {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
}

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

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

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

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

.modal-content {
    background-color: #181818;
    margin: 10% auto;
    padding: 0;
    width: 70%;
    max-width: 900px;
    border-radius: 5px;
    position: relative;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #fff;
}

.modal-poster {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    position: relative;
}

.modal-poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 40px 20px;
    background: linear-gradient(to top, rgba(18, 18, 18, 1) 0%, rgba(18, 18, 18, 0) 100%);
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.modal-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.modal-rating {
    color: #46d369;
    margin-right: 15px;
}

.modal-year, .modal-duration {
    margin-right: 15px;
    color: #ddd;
}

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

.modal-play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 25px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-right: 10px;
    border: none;
    background-color: #fff;
    color: #000;
}

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

.modal-action-buttons {
    display: flex;
}

.modal-action-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(42, 42, 42, 0.7);
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-action-button:hover {
    background-color: #fff;
    color: #000;
}

.modal-details {
    padding: 0 40px 40px;
}

.modal-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-cast, .modal-genres {
    margin-bottom: 15px;
    color: #ddd;
}

.modal-cast span, .modal-genres span {
    color: #999;
}

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

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

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

.social-links i {
    font-size: 24px;
    margin-right: 25px;
    cursor: pointer;
}

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

.footer-links-column {
    width: 25%;
    margin-bottom: 15px;
}

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

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

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

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

.copyright {
    font-size: 12px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .nav-links li:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 960px) {
    .header {
        padding: 20px 30px;
    }
    
    .content-container {
        padding: 0 30px;
    }
    
    .hero-content {
        left: 30px;
    }
    
    .footer {
        padding: 30px;
    }
    
    .modal-content {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .nav-links li:nth-child(n+3) {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .footer-links-column {
        width: 50%;
    }
    
    .thumbnail {
        min-width: 200px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 15px 20px;
    }
    
    .netflix-logo {
        height: 24px;
        margin-right: 15px;
    }
    
    .nav-links li:nth-child(n+2) {
        display: none;
    }
    
    .content-container {
        padding: 0 20px;
    }
    
    .hero-content {
        left: 20px;
        max-width: 80%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons button {
        padding: 8px 15px;
        font-size: 1rem;
    }
    
    .footer {
        padding: 20px;
    }
    
    .thumbnail {
        min-width: 150px;
        height: 100px;
    }
}