:root {
    --primary-bg: #141414; /* Deep Netflix Dark */
    --surface-color: rgba(20, 20, 20, 0.85);
    --text-primary: #fdf7e5;
    --text-secondary: #a3a3a3;
    
    /* Brand Colors */
    --brand-cream: #fdf7e5;
    --brand-red: #c1413a;
    --brand-red-hover: #e04e46;
    --brand-green: #3a5529;
    --brand-burgundy: #6c2431;

    --transition-snappy: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 { font-weight: 800; }
p { font-weight: 600; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 4%;
    display: flex;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    transition: background-color var(--transition-snappy);
}

.navbar.scrolled {
    background-color: var(--primary-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    margin-right: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    letter-spacing: -1px;
}
.logo-text { color: var(--brand-cream); }
.logo-tv { 
    color: var(--brand-red); 
    background: var(--brand-cream); 
    padding: 2px 8px; 
    border-radius: 8px; 
    margin-left: 2px;
    font-size: 24px;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    opacity: 0.8;
    transition: opacity var(--transition-snappy), text-shadow var(--transition-snappy);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    font-weight: 700;
}

.profile-icon {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-snappy);
}

.profile-icon:hover {
    border-color: var(--brand-cream);
}

.profile-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 0 4%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05); /* slightly scale up avoiding edge cutoffs */
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0.4) 50%, transparent 100%);
}

.hero-vignette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--primary-bg) 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin-top: 50px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    color: var(--brand-cream);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-snappy);
    font-family: inherit;
}

.btn-play {
    background-color: var(--brand-cream);
    color: #000;
}

.btn-play:hover {
    background-color: rgba(253, 247, 229, 0.75);
    transform: scale(1.05);
}

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

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

/* Content Rows */
.content-rows {
    position: relative;
    z-index: 10;
    padding: 0 4%;
    margin-top: -60px;
    padding-bottom: 50px;
}

.row {
    margin-bottom: 40px;
}

.row-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

.row-posters::-webkit-scrollbar {
    display: none;
}
.row-posters {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.poster {
    min-width: 200px;
    height: 112px; /* 16:9 ratio approx */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    flex-shrink: 0;
    background: #333;
}

.poster-large {
    min-width: 300px;
    height: 168px;
}

.poster:hover {
    transform: scale(1.1);
    z-index: 20;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    border: 2px solid var(--brand-cream);
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-snappy);
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-snappy);
    color: var(--brand-cream);
    font-weight: 800;
}

.poster:hover .poster-overlay {
    opacity: 1;
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: transform var(--transition-snappy), color var(--transition-snappy);
}

.close-btn:hover {
    color: var(--brand-red);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .hero-gradient { width: 100%; background: linear-gradient(to top, rgba(20,20,20,1) 0%, rgba(20,20,20,0.6) 50%, transparent 100%); }
    .hero-content { margin-top: auto; padding-bottom: 40px; }
    .content-rows { margin-top: -20px; }
    .poster-large { min-width: 250px; height: 140px; }
}
