/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #141414;
    color: #fff;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    outline: none;
    border: none;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 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: 0 4%;
    transition: background-color 0.3s;
}

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

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

.logo img {
    height: 25px;
    margin-right: 25px;
}

.main-nav ul {
    display: flex;
}

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

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

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

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

.search, .notifications, .profile {
    margin-left: 22px;
    cursor: pointer;
}

.search i, .notifications i {
    font-size: 18px;
}

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

.profile img {
    height: 32px;
    border-radius: 4px;
    margin-right: 10px;
}

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

.hero-content {
    position: absolute;
    bottom: 35%;
    left: 4%;
    width: 36%;
    z-index: 10;
}

.featured-title {
    max-width: 100%;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2vw;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
    margin-bottom: 20px;
}

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

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    margin-right: 10px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn i {
    margin-right: 10px;
}

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

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

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

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

.hero-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        #141414 0%,
        rgba(20, 20, 20, 0.7) 20%,
        rgba(20, 20, 20, 0) 50%,
        rgba(20, 20, 20, 0.7) 80%,
        #141414 100%
    );
}

/* Content Rows */
.content {
    padding: 0 4%;
    margin-top: 20px;
}

.row {
    margin-bottom: 40px;
}

.row-title {
    font-size: 1.4vw;
    font-weight: 700;
    margin-bottom: 15px;
    color: #e5e5e5;
}

.row-posters {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
}

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

.poster-container {
    position: relative;
    min-width: 200px;
    margin-right: 10px;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.poster-container:hover {
    transform: scale(1.3);
    z-index: 99;
}

.row-poster {
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.poster-details {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.poster-container:hover .poster-details {
    opacity: 1;
}

.poster-buttons {
    display: flex;
    margin-bottom: 10px;
}

.circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(42, 42, 42, 0.6);
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: background-color 0.3s;
}

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

.poster-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
    font-size: 12px;
}

.match {
    color: #46d369;
    font-weight: 700;
    margin-right: 10px;
}

.rating {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1px 4px;
    margin-right: 10px;
}

.duration {
    margin-right: 10px;
}

.poster-genres {
    font-size: 12px;
    color: #ddd;
}

.poster-genres span:not(:last-child)::after {
    content: "•";
    margin: 0 5px;
}

/* Top 10 Styling */
.top-ten-item {
    display: flex;
    align-items: center;
}

.top-ten-number {
    font-size: 150px;
    font-weight: 900;
    color: #000;
    -webkit-text-stroke: 2px #fff;
    margin-right: -20px;
    z-index: 10;
}

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

.footer-container {
    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 {
    width: 25%;
    margin-bottom: 15px;
}

.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-btn {
    background: transparent;
    border: 1px solid #808080;
    color: #808080;
    padding: 8px 12px;
    font-size: 13px;
}

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

.copyright {
    font-size: 12px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content {
        width: 50%;
    }
    
    .hero-description {
        font-size: 1.5vw;
    }
}

@media (max-width: 950px) {
    .main-nav li:not(:first-child) {
        display: none;
    }
    
    .hero-content {
        width: 70%;
        bottom: 30%;
    }
    
    .hero-description {
        font-size: 1.8vw;
    }
    
    .footer-links-column {
        width: 33.333%;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }
    
    .logo img {
        height: 20px;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-content {
        width: 80%;
        bottom: 25%;
    }
    
    .hero-description {
        font-size: 2.2vw;
    }
    
    .row-title {
        font-size: 18px;
    }
    
    .poster-container {
        min-width: 150px;
    }
    
    .footer-links-column {
        width: 50%;
    }
}

@media (max-width: 550px) {
    .hero {
        height: 50vh;
    }
    
    .hero-content {
        width: 90%;
        bottom: 20%;
    }
    
    .hero-description {
        font-size: 3vw;
    }
    
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .poster-container {
        min-width: 120px;
    }
    
    .poster-container:hover {
        transform: scale(1.1);
    }
    
    .top-ten-number {
        font-size: 100px;
    }
}