@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --netflix-red: #e50914;
    --netflix-dark: #141414;
    --netflix-darker: #000000;
    --netflix-gray: #808080;
    --netflix-light-gray: #b3b3b3;
    --netflix-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--netflix-dark);
    color: var(--netflix-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header - Netflix Style */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 10%, transparent);
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header.scrolled {
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(15px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 4%;
    max-width: 1920px;
    margin: 0 auto;
    min-height: 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--netflix-red);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--netflix-light-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--netflix-white);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.user-info .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 4px;
    white-space: nowrap;
}

.user-info span {
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
}

.coins-badge {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid var(--netflix-red);
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.coins-badge:hover {
    background: var(--netflix-red);
    color: var(--netflix-white);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--netflix-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
    margin-left: 0.5rem;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

/* Main Content */
main {
    margin-top: 0;
    min-height: 100vh;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 4%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(20,20,20,1)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%23141414"/></svg>');
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--netflix-light-gray);
    margin-bottom: 2rem;
}

/* Section Headers */
.section-header {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    color: var(--netflix-white);
}

/* Section Header with View All link */
.section-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0 1.5rem 0;
}

.view-all {
    color: var(--netflix-light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.view-all:hover {
    color: var(--netflix-white);
}

/* How It Works Section */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.feature-card {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--netflix-red);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--netflix-light-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(229,9,20,0.15) 0%, rgba(0,0,0,0) 100%);
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--netflix-light-gray);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Movies Grid - Netflix Style (NO SCALE) */
.movies-row {
    margin-bottom: 4rem;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.movie-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    background: #1a1a1a;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(229, 9, 20, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.movie-card:hover .movie-info {
    background: linear-gradient(0deg, rgba(229, 9, 20, 0.2) 0%, #1a1a1a 100%);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}

.movie-info {
    padding: 1rem;
    background: linear-gradient(0deg, #141414 0%, #1a1a1a 100%);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.movie-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--netflix-white);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--netflix-light-gray);
}

.movie-genre {
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Buttons - Netflix Style (NO SCALE) */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: inherit;
    transition: opacity 0.3s, background 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: var(--netflix-red);
    color: var(--netflix-white);
}

.btn-primary:hover {
    background: #c40812;
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: var(--netflix-white);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* Forms - Improved with better visibility */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--netflix-light-gray);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(30, 30, 30, 0.8);
    color: var(--netflix-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--netflix-red);
    background: rgba(40, 40, 40, 0.8);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--netflix-light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    background: rgba(50, 50, 50, 0.8);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(229, 9, 20, 0.3);
    border-radius: 50%;
    border-top-color: var(--netflix-red);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    z-index: 10000;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    background: #46d369;
    color: var(--netflix-darker);
}

.notification-error {
    background: var(--netflix-red);
    color: var(--netflix-white);
}

.notification-info {
    background: #0071eb;
    color: var(--netflix-white);
}

/* Admin Tables */
.admin-table {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-table th {
    background: rgba(0,0,0,0.3);
    font-weight: 700;
    color: var(--netflix-white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table tr:hover {
    background: rgba(255,255,255,0.05);
}

/* Package Cards (NO SCALE) */
.packages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.package-card {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: border-color 0.3s, background 0.3s;
}

.package-card:hover {
    border-color: var(--netflix-red);
    background: rgba(255,255,255,0.08);
}

.package-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--netflix-white);
}

.package-coins {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 1.5rem 0;
    color: var(--netflix-red);
}

.package-price {
    font-size: 1.75rem;
    color: var(--netflix-light-gray);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Watch Party */
.watch-party-container {
    display: flex;
    gap: 2rem;
}

.video-section {
    flex: 3;
}

.chat-section {
    flex: 1;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
    height: 600px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.chat-message {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary);
}

.chat-message .username {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
}

/* Skeleton Loading for Movie Cards */
.skeleton-loader {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.skeleton-movie-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.skeleton-poster {
    width: 100%;
    aspect-ratio: 2/3;
    background: linear-gradient(110deg, #1a1a1a 8%, #222 18%, #1a1a1a 33%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
}

.skeleton-info {
    padding: 1rem;
}

.skeleton-title {
    height: 1.2rem;
    width: 90%;
    margin-bottom: 0.75rem;
    background: linear-gradient(110deg, #1a1a1a 8%, #222 18%, #1a1a1a 33%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
    border-radius: 4px;
}

.skeleton-meta {
    height: 1rem;
    width: 70%;
    background: linear-gradient(110deg, #1a1a1a 8%, #222 18%, #1a1a1a 33%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
    border-radius: 4px;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/* Empty and Error States */
.empty-state, .error-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 3rem;
}

.empty-state i, .error-state i {
    font-size: 3rem;
    color: var(--netflix-gray);
    margin-bottom: 1rem;
    display: block;
}

.error-state i {
    color: var(--netflix-red);
}

.error-state button {
    margin-top: 1rem;
}

/* Premium Badge - Enhanced Gradient Design */
.premium-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #a855f7 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 1rem;
    margin-top: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
    transition: all 0.3s ease;
}

.premium-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(244, 63, 94, 0.2) 100%);
    border-radius: 1rem;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.premium-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.6);
}

.premium-badge i {
    font-size: 0.875rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Responsive */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 4%;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        background: rgba(20, 20, 20, 0.98);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .user-info {
        order: 2;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .user-info .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .coins-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Hero Section */
    .hero-section {
        height: 60vh;
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Movies Grid */
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .movie-card {
        font-size: 0.9rem;
    }
    
    .movie-title {
        font-size: 0.9rem;
    }
    
    .movie-meta {
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .movie-genre {
        padding: 0.2rem 0.35rem;
        font-size: 0.65rem;
        flex-shrink: 0;
    }
    
    /* IMDb rating badge - mobile optimization */
    .movie-meta .inline-flex {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
        gap: 0.2rem;
    }
    
    .movie-meta .inline-flex .font-black {
        font-size: 0.65rem;
        margin-right: 0.15rem;
    }
    
    .movie-meta .inline-flex i {
        font-size: 0.6rem !important;
        margin-right: 0.15rem;
    }
    
    /* All IMDb badges on mobile - comprehensive targeting */
    .inline-flex.items-center.bg-yellow-400 {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.65rem !important;
        white-space: nowrap;
    }
    
    .inline-flex.items-center.bg-yellow-400 .font-black {
        font-size: 0.65rem !important;
        margin-right: 0.15rem !important;
    }
    
    .inline-flex.items-center.bg-yellow-400 i.fa-star {
        font-size: 0.6rem !important;
        margin-right: 0.15rem !important;
    }
    
    /* Genre badge on mobile */
    .bg-netflix-red\/80 {
        padding: 0.2rem 0.35rem !important;
        font-size: 0.65rem !important;
    }
    
    /* Mobile movie info section spacing */
    .sm\:hidden .flex.items-center.justify-between {
        gap: 0.4rem;
    }
    
    /* Container */
    .container {
        padding: 0 3%;
    }
    
    /* Section Headers */
    .section-header {
        font-size: 1.3rem;
        margin: 2rem 0 1rem 0;
    }
    
    /* How It Works */
    .how-it-works {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Tables */
    .admin-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .admin-table table {
        min-width: 600px;
    }
    
    /* Modals */
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        max-width: 95%;
    }
    
    /* Packages */
    .packages-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .movie-meta {
        font-size: 0.65rem;
        gap: 0.35rem;
    }
    
    .movie-genre {
        padding: 0.15rem 0.3rem;
        font-size: 0.6rem;
    }
    
    /* IMDb rating badge - extra small mobile */
    .movie-meta .inline-flex {
        padding: 0.15rem 0.35rem !important;
        font-size: 0.6rem !important;
        gap: 0.15rem;
    }
    
    .movie-meta .inline-flex .font-black {
        font-size: 0.6rem;
        margin-right: 0.1rem;
    }
    
    .movie-meta .inline-flex i {
        font-size: 0.55rem !important;
        margin-right: 0.1rem;
    }
    
    /* All IMDb badges on small mobile - comprehensive targeting */
    .inline-flex.items-center.bg-yellow-400 {
        padding: 0.15rem 0.35rem !important;
        font-size: 0.6rem !important;
    }
    
    .inline-flex.items-center.bg-yellow-400 .font-black {
        font-size: 0.6rem !important;
        margin-right: 0.1rem !important;
    }
    
    .inline-flex.items-center.bg-yellow-400 i.fa-star {
        font-size: 0.55rem !important;
        margin-right: 0.1rem !important;
    }
    
    /* Genre badge on small mobile */
    .bg-netflix-red\/80 {
        padding: 0.15rem 0.3rem !important;
        font-size: 0.6rem !important;
    }
    
    /* Small mobile movie info section spacing */
    .sm\:hidden .flex.items-center.justify-between {
        gap: 0.35rem;
    }
    
    .section-header {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card i {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 1.3rem;
    }
    
    .nav-text {
        display: inline;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 100vh;
    }
    
    nav {
        padding: 0.75rem 4%;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}

/* Large Tablets (1024px) */
@media (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .container {
        padding: 0 3%;
    }
}

/* Desktop header polish */
@media (min-width: 1024px) {
    nav {
        padding: 1rem 4%;
        min-height: 70px;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        gap: 0.5rem;
    }
    
    .user-info {
        gap: 1rem;
    }
    
    .user-info .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .coins-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Mobile responsive - UPDATED FOR BETTER TOGGLE */
@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 3;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--netflix-white);
        font-size: 1.1rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 6px;
        transition: all 0.2s ease;
        margin-left: 0.5rem;
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(229, 9, 20, 0.5);
    }
    
    .mobile-menu-toggle:active {
        opacity: 0.8;
    }
    
    .mobile-menu-toggle i {
        display: block;
        font-size: 1.1rem;
        transition: transform 0.2s ease;
    }
    
    nav {
        padding: 0.5rem 3%;
        min-height: 56px;
        flex-wrap: nowrap;
        align-items: center;
        position: relative;
    }
    
    .logo {
        font-size: 1.1rem;
        order: 1;
        flex: 0 0 auto;
    }
    
    /* Mobile Navigation Slide-down */
    .nav-links {
        display: block;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
        z-index: 40;
        order: 4;
        width: 100%;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    
    .nav-links.menu-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links ul {
        padding: 1rem;
        margin: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border-radius: 0.5rem;
        transition: background 0.2s;
        font-size: 1rem;
        width: 100%;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a:hover {
        background: rgba(229, 9, 20, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .user-info {
        order: 2;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        flex: 1;
        justify-content: flex-end;
        max-width: calc(100% - 7rem);
        overflow: hidden;
    }
    
    .user-info .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        white-space: nowrap;
        border-radius: 3px;
    }
    
    .user-info span {
        font-size: 0.75rem;
        max-width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .coins-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        white-space: nowrap;
        gap: 0.2rem;
    }
    
    .coins-badge i {
        font-size: 0.6rem;
    }
}

/* Extra small mobile - Pixel 7 size */
@media (max-width: 480px) {
    nav {
        padding: 0.4rem 2%;
        min-height: 52px;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .user-info {
        gap: 0.15rem;
        max-width: calc(100% - 8rem); /* Increased to accommodate full logo */
    }
    
    .user-info .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        min-width: auto;
    }
    
    .user-info span {
        font-size: 0.7rem;
        max-width: 40px;
    }
    
    .coins-badge {
        padding: 0.15rem 0.3rem;
        font-size: 0.6rem;
        gap: 0.15rem;
    }
    
    .coins-badge i {
        font-size: 0.55rem;
    }
    
    .mobile-menu-toggle {
        font-size: 1.1rem;
        padding: 0.4rem;
    }
    
    .mobile-menu-toggle i {
        font-size: 1.1rem;
    }
    
    /* Hide coin count text on very small screens */
    .coins-badge span:not(.sr-only) {
        display: none;
    }
    
    .coins-badge::after {
        content: attr(data-coins);
        font-size: 0.6rem;
    }
    
    .nav-links {
        top: 52px;
        max-height: calc(100vh - 52px);
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile Menu Overlay */
#mobileMenuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
/* ================================
