
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--netflix-white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   LARGE DESKTOP (≥1400px)
   ========================================== */
@media (min-width: 1400px) {
    .header-brand {
        height: 36px;
        max-width: 130px;
    }
    
    .hero-title {
        font-size: clamp(2.2rem, 4vw, 3.2rem);
    }
    
    .card {
        flex: 0 0 clamp(160px, 14vw, 220px);
    }
}

/* ==========================================
   DESKTOP (1200px - 1399px)
   ========================================== */
@media (max-width: 1399px) {
    .header-brand {
        height: 32px;
        max-width: 120px;
    }
    
    .card {
        flex: 0 0 clamp(140px, 13vw, 200px);
    }
}

/* ==========================================
   SMALL DESKTOP / LARGE TABLET (992px - 1199px)
   ========================================== */
@media (max-width: 1199px) {
    :root {
        --content-padding: 3%;
    }
    
    .header-brand {
        height: 28px;
        max-width: 110px;
    }
    
    .header-nav {
        gap: var(--spacing-md);
    }
    
    .nav-link {
        font-size: var(--font-size-xs);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .card {
        flex: 0 0 clamp(130px, 12vw, 180px);
    }
    
    .modal {
        width: 90%;
        max-width: 900px;
    }
}

/* ==========================================
   TABLET (768px - 991px)
   ========================================== */
@media (max-width: 991px) {
    :root {
        --content-padding: 3%;
        --header-height: 52px;
    }
    
    /* Header */
    .header-container {
        padding: var(--spacing-xs) var(--spacing-lg);
        height: var(--header-height);
    }
    
    .header-brand {
        height: 26px;
        max-width: 100px;
    }
    
    /* Show mobile menu toggle on tablets */
    .mobile-menu-toggle {
        display: flex;
        order: -1;
    }
    
    /* Side Navigation for Tablet */
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 85%;
        background-color: rgba(20, 20, 20, 0.98);
        flex-direction: column;
        padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-xl) var(--spacing-xl);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        z-index: 9999;
        overflow-y: auto;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
        -webkit-overflow-scrolling: touch;
        will-change: transform;
    }
    
    .header-nav.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    
    .nav-link {
        font-size: var(--font-size-base);
        width: 100%;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--netflix-gray-800);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-browse {
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }
    
    .browse-toggle {
        font-size: var(--font-size-base);
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--netflix-gray-700);
        width: 100%;
        justify-content: space-between;
    }
    
    .browse-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        padding: var(--spacing-md) 0 0 var(--spacing-md);
        margin-top: 0;
        box-shadow: none;
        min-width: auto;
    }
    
    .browse-dropdown::before {
        display: none;
    }
    
    .browse-dropdown a {
        padding: var(--spacing-sm) 0;
        font-size: var(--font-size-sm);
        color: var(--netflix-gray-300);
    }
    
    .header-actions {
        gap: var(--spacing-md);
    }
    
    .search-input.active {
        width: 180px;
    }
    
    /* Hero */
    .hero {
        max-height: 650px;
    }
    
    .hero-info {
        max-width: 55%;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .hero-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }
    
    .hero-controls {
        bottom: 20%;
        right: var(--spacing-lg);
    }
    
    /* Cards */
    .row-title {
        font-size: var(--font-size-lg);
    }
    
    .card {
        flex: 0 0 clamp(120px, 20vw, 160px);
    }
    
    .card-overlay {
        padding: var(--spacing-sm);
    }
    
    .card-title {
        font-size: var(--font-size-xs);
    }
    
    .card-meta {
        font-size: 10px;
        gap: var(--spacing-xs);
    }
    
    .card-genres {
        font-size: 9px;
    }
    
    .card-actions {
        gap: 4px;
    }
    
    .card-action-btn {
        width: 1.6rem;
        height: 1.6rem;
        font-size: 10px;
    }
    
    /* Modal */
    .modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-title {
        font-size: var(--font-size-2xl);
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   MOBILE LANDSCAPE & SMALL TABLET (576px - 767px)
   ========================================== */
@media (max-width: 767px) {
    :root {
        --content-padding: 4%;
        --header-height: 50px;
    }
    
    html {
        font-size: 14px;
    }
    
    /* Header - Mobile */
    .header-container {
        padding: var(--spacing-xs) var(--spacing-md);
        height: var(--header-height);
    }
    
    .header-left {
        gap: var(--spacing-sm);
    }
    
    .header-logo {
        height: auto;
        min-width: auto;
    }
    
    .header-brand {
        height: 24px;
        max-width: 90px;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
        order: -1;
    }
    
    /* Mobile Navigation - Side Drawer */
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 80%;
        background-color: rgba(20, 20, 20, 0.98);
        flex-direction: column;
        padding: calc(var(--header-height) + var(--spacing-xl)) var(--spacing-xl) var(--spacing-xl);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        margin-left: 0;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
        -webkit-overflow-scrolling: touch;
        will-change: transform;
    }
    
    .header-nav.active {
        transform: translateX(0);
    }
    
    /* Mobile Nav Overlay */
    .header-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), 
                    visibility 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
        pointer-events: none;
    }
    
    .header-nav.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-browse {
        width: 100%;
        margin-bottom: var(--spacing-lg);
    }
    
    .browse-toggle {
        font-size: var(--font-size-lg);
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--netflix-gray-700);
        width: 100%;
        justify-content: space-between;
    }
    
    .browse-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        padding: var(--spacing-md) 0 0 var(--spacing-md);
        margin-top: 0;
        box-shadow: none;
        min-width: auto;
    }
    
    .browse-dropdown::before {
        display: none;
    }
    
    .browse-dropdown a {
        padding: var(--spacing-sm) 0;
        font-size: var(--font-size-base);
        color: var(--netflix-gray-300);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
        width: 100%;
        padding: var(--spacing-md) 0;
        border-bottom: 1px solid var(--netflix-gray-800);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    /* Header Actions */
    .header-actions {
        gap: var(--spacing-sm);
    }
    
    .search-btn,
    .notifications-btn {
        font-size: var(--font-size-base);
    }
    
    .notification-badge {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
    
    .search-input.active {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        padding: var(--spacing-md);
        z-index: 998;
    }
    
    .profile-toggle {
        padding: var(--spacing-xs);
    }
    
    .profile-avatar {
        font-size: var(--font-size-lg);
    }
    
    .profile-arrow {
        display: none;
    }
    
    .profile-dropdown {
        right: 0;
        min-width: 150px;
    }
    
    /* Hero - Mobile */
    .hero {
        height: 65vh;
        min-height: 450px;
        max-height: 550px;
        margin-bottom: -80px;
    }
    
    .hero-content {
        padding: 0 var(--spacing-md);
        padding-bottom: var(--spacing-3xl);
    }
    
    .hero-info {
        max-width: 100%;
    }
    
    .hero-topline {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-xs);
    }
    
    .hero-logo-img {
        max-width: 200px;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-meta {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        margin-bottom: var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-md);
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .hero-genres {
        display: none;
    }
    
    .hero-buttons {
        gap: var(--spacing-sm);
        flex-wrap: wrap;
    }
    
    .hero-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .hero-btn i {
        font-size: var(--font-size-base);
    }
    
    .hero-controls {
        bottom: 12%;
        right: var(--spacing-md);
        gap: var(--spacing-xs);
    }
    
    .hero-control-btn {
        width: 2rem;
        height: 2rem;
        font-size: var(--font-size-sm);
    }
    
    .hero-age-rating {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 10px;
    }
    
    /* Content Section - Mobile */
    .content-section {
        padding: var(--spacing-xl) 0;
    }
    
    .content-row {
        margin-bottom: var(--spacing-xl);
    }
    
    .row-header {
        padding: 0 var(--spacing-md);
        margin-bottom: var(--spacing-sm);
    }
    
    .row-title {
        font-size: var(--font-size-base);
    }
    
    .row-link {
        font-size: var(--font-size-xs);
    }
    
    /* Cards - Mobile */
    .slider-wrapper {
        padding: var(--spacing-sm) 0;
    }
    
    .slider-track {
        padding: 0 var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .card {
        flex: 0 0 calc(33.333% - 8px);
        min-width: 100px;
    }
    
    .slider-nav {
        display: none;
    }
    
    .card-overlay {
        padding: var(--spacing-xs);
        gap: var(--spacing-xs);
    }
    
    .card-info {
        gap: 2px;
    }
    
    .card-title {
        font-size: 10px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .card-meta {
        font-size: 8px;
        gap: 4px;
    }
    
    .card-rating {
        padding: 1px 3px;
        font-size: 7px;
    }
    
    .card-genres {
        font-size: 8px;
        display: none;
    }
    
    .card-actions {
        gap: 3px;
        margin-top: var(--spacing-xs);
    }
    
    .card-action-btn {
        width: 1.4rem;
        height: 1.4rem;
        font-size: 8px;
    }
    
    .card-badge {
        font-size: 8px;
        padding: 2px 4px;
    }
    
    /* Modal - Mobile */
    .modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translateY(100%);
    }
    
    .modal.active {
        transform: translateY(0);
    }
    
    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-close {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        width: 2rem;
        height: 2rem;
        font-size: var(--font-size-base);
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .modal-video-section {
        aspect-ratio: 16 / 9;
        min-height: 200px;
    }
    
    .modal-video-info {
        bottom: var(--spacing-md);
        left: var(--spacing-md);
        right: var(--spacing-md);
    }
    
    .modal-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-sm);
    }
    
    .modal-actions {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .modal-play-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
        flex: 1;
    }
    
    .modal-icon-btn {
        width: 2rem;
        height: 2rem;
        font-size: var(--font-size-sm);
    }
    
    .modal-volume-btn {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 2rem;
        height: 2rem;
    }
    
    .modal-details {
        padding: var(--spacing-md);
    }
    
    .modal-info-grid {
        gap: var(--spacing-md);
    }
    
    .modal-meta {
        flex-wrap: wrap;
        gap: var(--spacing-xs);
        font-size: var(--font-size-xs);
    }
    
    .modal-description {
        font-size: var(--font-size-sm);
    }
    
    .modal-info-side {
        font-size: var(--font-size-xs);
    }
    
    .modal-episodes,
    .modal-similar {
        padding: var(--spacing-md);
    }
    
    .episodes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .episodes-title,
    .similar-title {
        font-size: var(--font-size-lg);
    }
    
    .season-select {
        width: 100%;
    }
    
    .episode-item {
        flex-direction: column;
        padding: var(--spacing-sm) 0;
        gap: var(--spacing-sm);
    }
    
    .episode-number {
        font-size: var(--font-size-lg);
        min-width: auto;
    }
    
    .episode-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .episode-info {
        padding: 0;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .similar-item {
        flex-direction: row;
    }
    
    .similar-image {
        width: 100px;
        height: 150px;
        flex-shrink: 0;
    }
    
    .modal-about {
        padding: var(--spacing-md);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Footer - Mobile */
    .footer {
        padding: var(--spacing-xl) 0;
    }
    
    .footer-container {
        padding: 0 var(--spacing-md);
    }
    
    .footer-social {
        justify-content: center;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }
    
    .social-link {
        width: 2.5rem;
        height: 2.5rem;
        font-size: var(--font-size-lg);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        text-align: left;
    }
    
    .footer-column a {
        font-size: var(--font-size-xs);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .service-code-btn {
        width: 100%;
        justify-content: center;
    }
    
    .language-selector {
        width: 100%;
    }
    
    .language-selector select {
        width: 100%;
    }
    
    .footer-copyright {
        text-align: center;
        font-size: var(--font-size-xs);
    }
}

/* ==========================================
   SMALL MOBILE (≤480px)
   ========================================== */
@media (max-width: 480px) {
    :root {
        --content-padding: 3%;
        --header-height: 52px;
    }
    
    html {
        font-size: 13px;
    }
    
    /* Header */
    .header-brand {
        height: 35px;
        max-width: 90px;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }
    
    .header-actions {
        gap: var(--spacing-xs);
    }
    
    .search-btn,
    .notifications-btn {
        width: 1.75rem;
        height: 1.75rem;
        font-size: var(--font-size-sm);
    }
    
    .profile-avatar {
        font-size: var(--font-size-base);
    }
    
    /* Hero */
    .hero {
        height: 60vh;
        min-height: 380px;
        max-height: 480px;
        margin-bottom: -60px;
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 7vw, 1.8rem);
    }
    
    .hero-meta {
        font-size: 10px;
    }
    
    .hero-description {
        font-size: var(--font-size-xs);
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .hero-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
        gap: var(--spacing-xs);
    }
    
    .hero-btn i {
        font-size: var(--font-size-sm);
    }
    
    .hero-control-btn {
        width: 1.75rem;
        height: 1.75rem;
        font-size: var(--font-size-xs);
    }
    
    /* Cards */
    .row-title {
        font-size: var(--font-size-sm);
    }
    
    .slider-track {
        gap: 6px;
        padding: 0 var(--spacing-sm);
    }
    
    .card {
        flex: 0 0 calc(33.333% - 4px);
        min-width: 90px;
    }
    
    .card-overlay {
        padding: 4px;
    }
    
    .card-title {
        font-size: 9px;
    }
    
    .card-meta {
        font-size: 7px;
    }
    
    .card-action-btn {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 7px;
    }
    
    .card-badge {
        font-size: 7px;
        padding: 1px 3px;
        top: 4px;
        left: 4px;
    }
    
    /* Modal */
    .modal-title {
        font-size: var(--font-size-base);
    }
    
    .modal-play-btn {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .modal-icon-btn {
        width: 1.75rem;
        height: 1.75rem;
        font-size: var(--font-size-xs);
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
}

/* ==========================================
   EXTRA SMALL MOBILE (≤360px)
   ========================================== */
@media (max-width: 360px) {
    html {
        font-size: 12px;
    }
    
    .header-brand {
        height: 30px;
        max-width: 75px;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .hero-btn {
        min-width: 80px;
        padding: 6px 10px;
    }
    
    .card {
        flex: 0 0 calc(50% - 4px);
    }
    
    .card-action-btn {
        width: 1.1rem;
        height: 1.1rem;
        font-size: 6px;
    }
}

/* ==========================================
   LANDSCAPE MODE - MOBILE
   ========================================== */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        max-height: 100vh;
        min-height: auto;
    }
    
    .hero-content {
        padding-bottom: var(--spacing-xl);
    }
    
    .hero-info {
        max-width: 50%;
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 4vw, 2rem);
    }
    
    .hero-description {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .hero-controls {
        bottom: 15%;
    }
    
    .modal-video-section {
        height: 70vh;
        aspect-ratio: auto;
    }
    
    .card {
        flex: 0 0 calc(25% - 8px);
    }
}

/* ==========================================
   TABLET LANDSCAPE (768px - 1024px) landscape
   ========================================== */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-info {
        max-width: 50%;
    }
    
    .card {
        flex: 0 0 calc(20% - 8px);
    }
}

/* ==========================================
   HIGH DPI / RETINA DISPLAYS
   ========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-video,
    .card-image,
    .header-brand {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ==========================================
   TOUCH DEVICES
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover transforms on touch */
    .card:hover {
        transform: none;
        z-index: 1;
    }
    
    /* Hide overlay on touch devices - show only on tap via JS */
    .card-overlay {
        opacity: 0;
        visibility: hidden;
    }
    
    /* Show overlay when card is tapped/focused */
    .card:focus .card-overlay,
    .card.show-overlay .card-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    /* Slider nav always visible on touch */
    .slider-nav {
        opacity: 1;
    }
    
    /* Larger touch targets */
    .hero-btn {
        min-height: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects */
    .nav-link:hover,
    .browse-toggle:hover,
    .card-action-btn:hover {
        transform: none;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slider-track {
        transition: none;
    }
    
    .card {
        transition: none;
    }
    
    .modal {
        transition: none;
    }
}

/* ==========================================
   DARK MODE PREFERENCE (already dark, but ensure)
   ========================================== */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .header,
    .hero-controls,
    .hero-buttons,
    .footer,
    .modal-backdrop,
    .modal,
    .slider-nav,
    .card-overlay,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .hero {
        height: auto;
        max-height: none;
    }
    
    .card {
        break-inside: avoid;
    }
}

/* ==========================================
   ORIENTATION CHANGE HANDLING
   ========================================== */
@media screen and (orientation: portrait) {
    .hero-info {
        max-width: 100%;
    }
}

@media screen and (orientation: landscape) {
    .hero-info {
        max-width: 60%;
    }
}

/* ==========================================
   NOTCH / SAFE AREA HANDLING (iPhone X+)
   ========================================== */
@supports (padding: max(0px)) {
    .header-container {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }
    
    .hero-content {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }
    
    .slider-track {
        padding-left: max(var(--spacing-md), env(safe-area-inset-left));
        padding-right: max(var(--spacing-md), env(safe-area-inset-right));
    }
    
    .modal-content {
        padding-bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
    }
    
    .footer-container {
        padding-bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
    }
}


/* ==========================================
   LEGACY ROOT STYLES (Preserving Cards & Modals)
   ========================================== */
@media (max-width: 1400px) {
    .movie-item { width: 230px; }
}
@media (max-width: 1024px) {
    .movie-item { width: 200px; }
}
@media (max-width: 768px) {
    .movie-section-heading { font-size: 18px; margin-bottom: 8px; }
    .movie-item { width: 180px; margin-right: 8px; }
    .movies-section { margin: 30px 0; }
}
@media (max-width: 480px) {
    .movie-section-heading { font-size: 16px; }
    .movie-item { width: 150px; margin-right: 6px; }
    .movies-section { margin: 24px 0; }
}
@media (max-width: 360px) {
    .movie-item { width: 130px; }
}
