/* MSTX Complete Styles - Checkpoint 92 - MOBILE-FRIENDLY VERSION */

/*
 * MOBILE-FRIENDLY ENHANCEMENTS ADDED:
 *
 * 1. RESPONSIVE BREAKPOINTS:
 *    - Large tablets: 1200px
 *    - Tablets: 992px
 *    - Mobile landscape: 768px
 *    - Mobile portrait: 576px
 *    - Extra small: 400px
 *
 * 2. TOUCH OPTIMIZATIONS:
 *    - Larger touch targets (44px minimum)
 *    - Touch-friendly hover states
 *    - Smooth scrolling with momentum
 *    - Tap highlight removal
 *
 * 3. PERFORMANCE OPTIMIZATIONS:
 *    - Reduced animations on low-end devices
 *    - Hardware acceleration for smooth scrolling
 *    - Optimized font rendering
 *
 * 4. ACCESSIBILITY:
 *    - High contrast mode support
 *    - Reduced motion preferences
 *    - Proper focus states
 *    - Screen reader friendly
 *
 * 5. ORIENTATION SUPPORT:
 *    - Landscape mode optimizations
 *    - Portrait mode adjustments
 *    - Dynamic viewport handling
 */

/* Netflix Color Variables */
:root {
    --netflix-red: #e50914;
    --netflix-red-hover: #f40612;
    --netflix-black: #000000;
    --netflix-dark-gray: #000000;
    --netflix-medium-gray: #141414;
    --netflix-light-gray: #b3b3b3;
    --netflix-white: #ffffff;
    --netflix-transition: all 0.3s ease;
}

/* Override existing styles with Netflix theme */
body {
    background-color: #141414 !important;
    color: #ffffff !important;
    font-family: 'Helvetica Neue', Arial, sans-serif !important;
    padding-top: 0 !important; /* Header od samej góry */
    -webkit-font-smoothing: antialiased !important; /* Better font rendering on mobile */
    -moz-osx-font-smoothing: grayscale !important;
    -webkit-tap-highlight-color: transparent !important; /* Remove tap highlight on mobile */
    -webkit-touch-callout: none !important; /* Disable callout on iOS */
    -webkit-user-select: none !important; /* Disable text selection on mobile */
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Allow text selection for specific elements */
.netflix-card-title,
.netflix-section-title,
.category-title,
.category-description,
.streamit-hero-description,
.netflix-footer-desc,
.netflix-copyright,
input,
textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Header Netflix style - PRZEZROCZYSTY NAD HERO */
.header {
    background: rgba(0, 0, 0, 0.3) !important; /* Przezroczysty z lekkim ciemnym overlay */
    border-bottom: none !important;
    position: relative !important;
    z-index: 10000 !important; /* High z-index for mobile menu */
    backdrop-filter: blur(10px) !important; /* Blur effect */
}

.navbar {
    background: transparent !important; /* Przezroczysta navbar */
    padding: 15px 0 !important; /* Więcej paddingu */
    position: relative !important;
    z-index: 10000 !important; /* High z-index for mobile menu */
}

/* Mobile header improvements */
@media (max-width: 991.98px) {
    .header {
        background: rgba(0, 0, 0, 0.95) !important; /* More opaque on mobile */
        backdrop-filter: blur(15px) !important;
    }

    .navbar {
        padding: 10px 0 !important; /* Less padding on mobile */
    }

    .navbar-container-primary {
        position: relative !important; /* For absolute positioning of collapse */
    }

    .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(0, 0, 0, 0.98) !important;
        border-radius: 0 0 12px 12px !important;
        margin-top: 5px !important;
        padding: 20px !important;
        backdrop-filter: blur(15px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.5) !important;
        z-index: 99999 !important; /* Very high z-index to be above everything */
        border: 1px solid rgba(255,255,255,0.1) !important;
        border-top: none !important;
    }

    .navbar-toggler {
        border: 1px solid rgba(255,255,255,0.3) !important;
        padding: 6px 10px !important;
        background: rgba(0,0,0,0.5) !important;
        border-radius: 6px !important;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(255,255,255,0.2) !important;
        outline: none !important;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

.navbar-brand img {
    filter: brightness(0) invert(1) !important;
}

.navbar-brand p {
    color: #e50914 !important;
    font-weight: 600 !important;
}

/* Container Netflix style */
.container, .container-fluid {
    /*  background-color: rgba(20, 20, 20, 0.9) !important; */
    max-width: 100% !important;
    padding-left: 20px !important; /* No space needed for dock */
    padding-right: 20px !important;
    position: relative !important;
    z-index: 1 !important; /* POD HERO-CONTENT (15) */
}

/* Streamit-Style Hero Banner - TŁO POD HEADEREM */
.netflix-hero-fullwidth {
    position: fixed !important; /* Fixed position za headerem */
    top: 0 !important; /* Od samej góry */
    left: 0 !important; /* Od lewej */
    width: 100vw !important; /* Pełna szerokość viewport */
    height: 100vh !important; /* Pełna wysokość viewport */
    overflow: hidden !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    z-index: -1 !important; /* Za headerem */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important; /* Depth shadow */
}

.netflix-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10 !important; /* POD NAVBAR (20) */
}

.netflix-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
    transform: scale(1.05); /* Slight zoom effect */
    z-index: 10 !important; /* POD NAVBAR (20) */
}

.netflix-hero-slide.active {
    opacity: 1;
    transform: scale(1); /* Normal scale when active */
}

.netflix-hero-bg {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10 !important; /* POD NAVBAR (20) */
}

.netflix-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8) contrast(1.2) saturate(1.1); /* Better image quality */
    transform: scale(1.05); /* Slight zoom for parallax */
    transition: transform 8s ease-out; /* Slow zoom animation */
}

.netflix-hero-slide.active .netflix-hero-bg img {
    transform: scale(1); /* Zoom in when active */
}

.netflix-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.4) 0%, /* Purple-blue */
        rgba(118, 75, 162, 0.5) 25%, /* Purple */
        rgba(255, 94, 77, 0.3) 50%, /* Orange-red */
        rgba(0, 0, 0, 0.7) 75%, /* Dark */
        rgba(0, 0, 0, 0.9) 100% /* Very dark */
    ); /* Streamit-style colorful gradient */
    backdrop-filter: blur(1px); /* Subtle blur */
}

.netflix-hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1000 !important; /* WYSOKI Z-INDEX NAD HEADER I MAIN CONTENT */
    width: 100%;
    padding: 0 60px;
    /* DEBUG USUNIĘTY - DZIAŁA! */
}

/* Unikalny container dla hero - bez ciemnego tła */
.netflix-hero-container {
    background: transparent !important; /* Przezroczyste tło */
    max-width: 100% !important;
    padding: 0 !important; /* Bez paddingu - używamy padding z parent */
    margin: 0 !important;
    width: 100% !important;
}

/* Unikalne containery dla navbar - bez ciemnego tła */
.navbar-container-primary {
    background: transparent !important; /* Przezroczyste tło dla głównej navbar */
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 !important;
}

.navbar-container-secondary {
    background: transparent !important; /* Przezroczyste tło dla drugiej navbar */
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* Simple slide up */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Normal position */
    }
}

.netflix-hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24); /* Gradient badge */
    color: white;
    padding: 12px 24px; /* Bigger padding */
    border-radius: 25px; /* More rounded */
    font-size: 16px; /* Bigger font */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px; /* More spacing */
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4); /* Glow effect */
    animation: pulse 2s infinite; /* Pulsing animation */
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.netflix-hero-title {
    font-size: 5rem; /* Even bigger like Streamit */
    font-weight: 800; /* Bolder */
    line-height: 1.1;
    margin-bottom: 25px;
    /* text-shadow removed - was ugly */
    max-width: 700px; /* Wider */
    color: #ffffff; /* Clean white text instead of gradient */
    /* Removed gradient text - was conflicting with shadow */
}

.streamit-hero-description {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 500px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.streamit-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.streamit-badge {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.streamit-duration, .streamit-rating {
    font-size: 16px;
    font-weight: 500;
}

.streamit-rating i {
    color: #ffd700;
    margin-right: 5px;
}

.streamit-hero-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.streamit-btn-primary {
    background: var(--netflix-red);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.streamit-btn-primary:hover {
    background: var(--netflix-red-hover);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.streamit-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.streamit-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Hero Dots Navigation */
.streamit-hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.streamit-hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.streamit-hero-dot.active {
    background: var(--netflix-red);
    transform: scale(1.2);
}

.streamit-hero-dot:hover {
    background: rgba(255,255,255,0.7);
}

/* Netflix Floating Dock */
.netflix-floating-dock {
    position: fixed !important;
    top: 50% !important;
    left: 10px !important; /* Closer to edge */
    transform: translateY(-50%) !important;
    width: 60px !important;
    background: rgba(0, 0, 0, 0.9) !important;
    border-radius: 15px !important;
    padding: 10px 0 !important;
    z-index: 9999 !important; /* Above everything */
    box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
    border: 1px solid rgba(229, 9, 20, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

.netflix-dock-item {
    position: relative;
    margin: 5px 0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.netflix-dock-item a,
.netflix-dock-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
}

.netflix-dock-item:hover a,
.netflix-dock-item:hover .netflix-dock-trigger {
    background: rgba(229, 9, 20, 0.2) !important;
    color: #e50914 !important;
    transform: scale(1.1);
}

.netflix-dock-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.netflix-dock-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1;
    opacity: 0.8;
}

/* Netflix Dock Dropdown */
.netflix-dock-dropdown {
    position: relative;
}

/* Netflix Dock Menu - Improved Version */
.netflix-dock-menu {
    position: absolute !important;
    left: 70px !important; /* Right of dock */
    top: 0 !important;
    min-width: 200px !important;
    max-width: 250px !important;
    max-height: 300px !important; /* Limit height for scroll */
    background: rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(229, 9, 20, 0.2) !important; /* Subtle border */
    border-radius: 8px !important;
    padding: 5px 0 !important; /* Less padding */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-20px) scale(0.9) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important; /* Lighter shadow */
    backdrop-filter: blur(10px) !important;
    z-index: 99999 !important;
    pointer-events: none !important;
    overflow-y: auto !important; /* Enable scroll */
}

.netflix-dock-dropdown.active .netflix-dock-menu,
.netflix-dock-dropdown.hover .netflix-dock-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Netflix Dock Menu Scrollbar */
.netflix-dock-menu::-webkit-scrollbar {
    width: 4px !important;
}

.netflix-dock-menu::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1) !important;
    border-radius: 2px !important;
}

.netflix-dock-menu::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.6) !important;
    border-radius: 2px !important;
}

.netflix-dock-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 9, 20, 0.8) !important;
}

.netflix-dock-menu-item {
    display: block;
    padding: 10px 20px !important; /* More padding for better visibility */
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
    font-size: 14px !important; /* Bigger font for readability */
    font-weight: 500 !important; /* Bolder text */
    transition: all 0.2s ease !important;
    border: none !important; /* No borders */
    background: none !important; /* No background by default */
    white-space: nowrap !important;
    overflow: visible !important; /* Show full text */
    text-overflow: clip !important; /* Don't cut text */
    min-width: 200px !important; /* Wider for full text */
    border-radius: 6px !important;
}

.netflix-dock-menu-item:hover {
    background: rgba(229, 9, 20, 0.15) !important; /* Subtle red background */
    color: #ffffff !important; /* Pure white on hover */
    text-decoration: none !important;
    transform: translateX(2px) !important; /* Slight slide effect */
}

/* Old streamit sidebar styles removed - using netflix-dock now */

/* Legacy Sidebar Classes (for compatibility) */
.floating-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1000;
    transition: width 0.3s ease;
    overflow: hidden;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.floating-sidebar:hover {
    width: 250px;
}

.sidebar-content {
    padding: 20px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
}

.sidebar-item i {
    font-size: 20px;
    width: 20px;
    text-align: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.sidebar-text {
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.floating-sidebar:hover .sidebar-text {
    opacity: 1;
}

/* Netflix Main Content */
.netflix-main-content {
    background-color: #141414 !important;
    min-height: 100vh !important;
    padding: 0 !important; /* USUNIĘCIE PADDING */
    padding-top: 0 !important; /* USUNIĘCIE PADDING-TOP */
    padding-bottom: 60px !important;
    position: relative !important;
    z-index: 1 !important; /* POD HERO-CONTENT (8) */
}

/* Video page specific - remove ALL spacing */
.netflix-main-content.video-page-content {
    padding: 0 !important;
    margin: 0 !important;
    min-height: auto !important;
    height: auto !important;
}

/* Mobile specific override */
@media (max-width: 768px) {
    .netflix-main-content.video-page-content {
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
}

/* Netflix Sections */
.netflix-section {
    margin-bottom: 50px;
    position: relative;
}

.netflix-section-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Netflix Slider Container */
.netflix-slider-container {
    position: relative;
    padding: 0 60px;
}

.netflix-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 18px;
}

.netflix-slider-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.netflix-slider-nav.prev {
    left: 10px;
}

.netflix-slider-nav.next {
    right: 10px;
}

/* Mobile slider container and navigation */
@media (max-width: 992px) {
    .netflix-slider-container {
        padding: 0 50px;
    }

    .netflix-slider-nav {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .netflix-slider-container {
        padding: 0 40px;
    }

    .netflix-slider-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
        opacity: 0.7; /* More visible on mobile */
    }

    .netflix-slider-nav.prev {
        left: 5px;
    }

    .netflix-slider-nav.next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .netflix-slider-container {
        padding: 0 35px;
    }

    .netflix-slider-nav {
        width: 35px;
        height: 35px;
        font-size: 12px;
        opacity: 0.8; /* Even more visible on small screens */
    }

    .netflix-slider-nav.prev {
        left: 3px;
    }

    .netflix-slider-nav.next {
        right: 3px;
    }
}

/* Touch device optimizations for slider navigation */
@media (hover: none) and (pointer: coarse) {
    .netflix-slider-nav {
        opacity: 0.6; /* Always visible on touch devices */
        width: 55px;
        height: 55px;
        font-size: 20px;
        background: rgba(0,0,0,0.8); /* More opaque for better visibility */
    }

    .netflix-slider-nav:hover {
        transform: translateY(-50%); /* No scale on touch hover */
    }

    .netflix-slider-nav:active {
        transform: translateY(-50%) scale(0.95);
        background: rgba(0,0,0,0.95);
    }
}

/* Netflix Pagination */
.netflix-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 0 20px;
}

.netflix-pagination .pagination {
    background: none;
}

.netflix-pagination .page-link {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.netflix-pagination .page-link:hover {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    color: white;
}

.netflix-pagination .page-item.active .page-link {
    background: var(--netflix-red);
    border-color: var(--netflix-red);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btn {
    background: linear-gradient(45deg, #e50914, #f40612);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
    color: white;
    text-decoration: none;
}

/* Video Sections */
.video-section {
    margin-bottom: 40px;
}

.section-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-left: 20px;
}

.netflix-slider {
    display: flex !important;
    gap: 15px !important;
    overflow-x: auto !important;
    padding: 0 20px 20px !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #e50914 #333; /* Firefox */
}

.netflix-slider::-webkit-scrollbar {
    height: 8px;
}

.netflix-slider::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

.netflix-slider::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 4px;
}

/* Mobile slider optimizations */
@media (max-width: 768px) {
    .netflix-slider {
        gap: 10px !important;
        padding: 0 15px 15px !important;
    }

    .netflix-slider::-webkit-scrollbar {
        height: 6px;
    }
}

@media (max-width: 576px) {
    .netflix-slider {
        gap: 8px !important;
        padding: 0 10px 10px !important;
    }

    .netflix-slider::-webkit-scrollbar {
        height: 4px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .netflix-slider {
        scroll-snap-type: x mandatory; /* Snap scrolling on touch devices */
    }

    .netflix-slider-item {
        scroll-snap-align: start;
    }

    /* Hide scrollbar on touch devices for cleaner look */
    .netflix-slider::-webkit-scrollbar {
        display: none;
    }

    .netflix-slider {
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
}

.netflix-slider-item {
    flex: 0 0 300px;
    transition: transform 0.3s ease;
    margin-right: 15px; /* Space between cards */
}

/* Different widths for different card sizes */
.netflix-slider-item:has(.card-small) {
    flex: 0 0 280px;
}

.netflix-slider-item:has(.card-medium) {
    flex: 0 0 320px;
}

.netflix-slider-item:has(.card-large) {
    flex: 0 0 360px;
}

.netflix-slider-item:has(.card-xl) {
    flex: 0 0 400px;
}

.netflix-slider-item:hover {
    transform: scale(1.02); /* Reduced to avoid conflicts with card scaling */
}

/* Netflix Video Cards - Enhanced with Mobile Support */

.netflix-video-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 12px; /* Consistent with card border radius */
}

.netflix-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.8) 100%
    );
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border-radius: 12px; /* Match card border radius */
}

.netflix-video-card:hover .netflix-card-overlay {
    opacity: 1;
}

/* Mobile-specific card overlay adjustments */
@media (max-width: 768px) {
    .netflix-card-overlay {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .netflix-card-overlay {
        padding: 10px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .netflix-card-overlay {
        opacity: 0.7; /* Always slightly visible on touch devices */
    }

    .netflix-video-card:active .netflix-card-overlay {
        opacity: 1;
    }

    .netflix-video-card:hover {
        transform: none; /* Disable hover transform on touch devices */
    }
}

.netflix-card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.netflix-video-card:hover .netflix-card-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Mobile optimizations for play button */
@media (max-width: 768px) {
    .netflix-card-play-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .netflix-card-play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Touch device optimizations for play button */
@media (hover: none) and (pointer: coarse) {
    .netflix-card-play-btn {
        opacity: 0.8; /* Always visible on touch devices */
        width: 65px;
        height: 65px;
        font-size: 26px;
    }

    .netflix-video-card:hover .netflix-card-play-btn {
        transform: translate(-50%, -50%); /* No scale on touch hover */
    }

    .netflix-card-play-btn:active {
        transform: translate(-50%, -50%) scale(0.95);
        background: rgba(255,255,255,1);
    }
}

.netflix-card-info {
    margin-top: auto;
}

.netflix-card-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.netflix-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.netflix-card-duration {
    display: flex;
    align-items: center;
    gap: 5px;
}

.netflix-card-likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.netflix-card-likes i {
    color: #e50914;
}

.netflix-card-actions {
    display: flex;
    gap: 10px;
}

.netflix-card-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.netflix-card-action-btn:hover {
    border-color: white;
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Mobile optimizations for card actions */
@media (max-width: 768px) {
    .netflix-card-actions {
        gap: 8px;
        margin-top: 8px;
    }

    .netflix-card-action-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .netflix-card-actions {
        gap: 6px;
        margin-top: 6px;
    }

    .netflix-card-action-btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}

/* Touch-friendly button sizing */
@media (hover: none) and (pointer: coarse) {
    .netflix-card-action-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-width: 3px; /* Thicker border for better touch target */
    }

    .netflix-card-action-btn:hover {
        transform: none; /* Disable hover transform on touch */
    }

    .netflix-card-action-btn:active {
        transform: scale(0.95);
        background: rgba(255,255,255,0.3);
    }
}

/* Streamit-Style Video Cards - Different Sizes */
.video-card,
.netflix-video-card {
    background: #222;
    border-radius: 12px; /* More rounded like Streamit */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother transition */
    height: 400px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3); /* Default shadow */
}

/* Small Cards (default) */
.video-card.card-small,
.netflix-video-card.card-small {
    height: 350px;
}

/* Medium Cards */
.video-card.card-medium,
.netflix-video-card.card-medium {
    height: 450px;
    transform: scale(1.05); /* Slightly bigger */
}

/* Large Featured Cards */
.video-card.card-large,
.netflix-video-card.card-large {
    height: 550px;
    transform: scale(1.1); /* Much bigger */
    box-shadow: 0 8px 30px rgba(0,0,0,0.4); /* Stronger shadow */
}

/* Extra Large Hero Cards */
.video-card.card-xl,
.netflix-video-card.card-xl {
    height: 650px;
    transform: scale(1.15); /* Biggest */
    box-shadow: 0 12px 40px rgba(0,0,0,0.5); /* Strongest shadow */
}

.video-card:hover,
.netflix-video-card:hover {
    transform: translateY(-8px) scale(1.02); /* Better hover effect */
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

/* Hover effects for different sizes */
.video-card.card-medium:hover,
.netflix-video-card.card-medium:hover {
    transform: translateY(-8px) scale(1.07);
}

.video-card.card-large:hover,
.netflix-video-card.card-large:hover {
    transform: translateY(-10px) scale(1.12);
}

.video-card.card-xl:hover,
.netflix-video-card.card-xl:hover {
    transform: translateY(-12px) scale(1.17);
}

/* Streamit-Style Thumbnail with Overlays */
.video-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    position: relative;
    transition: all 0.4s ease;
}

/* Colorful Gradient Overlays for Cards */
.video-card::before,
.netflix-video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.video-card:hover::before,
.netflix-video-card:hover::before {
    opacity: 1;
}

/* Different overlay colors for different card sizes */
.video-card.card-medium::before,
.netflix-video-card.card-medium::before {
    background: linear-gradient(
        135deg,
        rgba(255, 94, 77, 0.2) 0%,
        rgba(255, 154, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.video-card.card-large::before,
.netflix-video-card.card-large::before {
    background: linear-gradient(
        135deg,
        rgba(46, 213, 115, 0.2) 0%,
        rgba(0, 184, 169, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.video-card.card-xl::before,
.netflix-video-card.card-xl::before {
    background: linear-gradient(
        135deg,
        rgba(255, 107, 107, 0.3) 0%,
        rgba(238, 90, 36, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.video-info {
    padding: 20px; /* More padding */
    position: relative;
    z-index: 2; /* Above overlay */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 100%
    ); /* Bottom gradient */
}

.video-title {
    color: white;
    font-size: 1.2rem; /* Bigger font */
    font-weight: 700; /* Bolder */
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Text shadow */
}

/* Bigger titles for larger cards */
.video-card.card-medium .video-title {
    font-size: 1.3rem;
}

.video-card.card-large .video-title {
    font-size: 1.5rem;
}

.video-card.card-xl .video-title {
    font-size: 1.8rem;
}

.video-meta {
    color: #e0e0e0; /* Brighter meta text */
    font-size: 1rem; /* Bigger font */
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.video-duration {
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,0,0,0.7)); /* Gradient background */
    color: white;
    padding: 6px 12px; /* Bigger padding */
    border-radius: 20px; /* More rounded */
    font-size: 0.9rem; /* Bigger font */
    font-weight: 600;
    backdrop-filter: blur(10px); /* Blur effect */
    border: 1px solid rgba(255,255,255,0.1); /* Subtle border */
    z-index: 3;
}

/* Footer */
.footer,
.netflix-footer {
    background-color: #000000 !important;
    color: #b3b3b3 !important;
    padding: 40px 0 !important;
    margin-top: 60px !important;
}

.footer a,
.netflix-footer a {
    color: #b3b3b3 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer a:hover,
.netflix-footer a:hover {
    color: #e50914 !important;
}

/* Netflix Footer Specific Styles */
.netflix-footer-main {
    padding: 40px 0;
}

.netflix-footer-brand h3 {
    color: #e50914 !important;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.netflix-footer-desc {
    color: #b3b3b3 !important;
    font-size: 1rem;
    line-height: 1.5;
}

.netflix-footer-title {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.netflix-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.netflix-footer-links li {
    margin-bottom: 10px;
}

.netflix-footer-links a {
    color: #b3b3b3 !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.netflix-footer-links a:hover {
    color: #e50914 !important;
    padding-left: 5px;
}

.netflix-footer-bottom {
    border-top: 1px solid #333;
    padding: 20px 0;
    margin-top: 20px;
}

.netflix-copyright {
    color: #666 !important;
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Footer Styles */
@media (max-width: 768px) {
    .footer,
    .netflix-footer {
        padding: 30px 0 !important;
        margin-top: 40px !important;
    }

    .netflix-footer-main {
        padding: 30px 0;
    }

    .netflix-footer-brand h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .netflix-footer-desc {
        text-align: center;
        font-size: 0.9rem;
    }

    .netflix-footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
        text-align: center;
    }

    .netflix-footer-links {
        text-align: center;
    }

    .netflix-footer-links a {
        font-size: 0.85rem;
    }

    .netflix-footer-bottom {
        padding: 15px 0;
    }

    .netflix-copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .footer,
    .netflix-footer {
        padding: 20px 0 !important;
        margin-top: 30px !important;
    }

    .netflix-footer-main {
        padding: 20px 0;
    }

    .netflix-footer-brand h3 {
        font-size: 1.3rem;
    }

    .netflix-footer-desc {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .netflix-footer-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .netflix-footer-links li {
        margin-bottom: 8px;
    }

    .netflix-footer-links a {
        font-size: 0.8rem;
    }

    .netflix-footer-bottom {
        padding: 12px 0;
    }

    .netflix-copyright {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

/* ===== MOBILE-FRIENDLY RESPONSIVE STYLES ===== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .netflix-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .netflix-slider-item {
        flex: 0 0 280px;
    }

    .netflix-hero-content {
        padding: 0 60px !important;
    }

    .netflix-hero-title {
        font-size: 2.8rem !important;
    }
}

/* Tablets */
@media (max-width: 992px) {
    /* Header adjustments */
    .navbar-container-primary {
        padding: 0 20px !important;
        flex-wrap: nowrap !important; /* Don't wrap on mobile */
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Hide desktop menu */
    .streamit-main-menu {
        display: none !important;
    }

    .streamit-right-menu {
        display: none !important;
    }

    /* Show hamburger */
    .navbar-toggler {
        display: block !important;
        order: 3 !important;
        flex-shrink: 0 !important;
    }

    /* Mobile menu styles */
    .navbar-collapse .streamit-main-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 0 20px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }

    .navbar-collapse .streamit-right-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
        margin-top: 20px !important;
    }

    .navbar-collapse .nav-link {
        color: white !important;
        padding: 12px 0 !important;
        font-size: 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        transition: all 0.3s ease !important;
    }

    .navbar-collapse .nav-link:hover {
        color: #e50914 !important;
        padding-left: 10px !important;
    }

    .navbar-collapse .nav-link:last-child {
        border-bottom: none !important;
    }

    /* Language flags in mobile menu */
    .navbar-collapse .language-flags {
        flex-direction: row !important;
        gap: 15px !important;
        margin: 10px 0 !important;
    }

    .navbar-collapse .flag-link {
        padding: 8px 12px !important;
        background: rgba(255,255,255,0.1) !important;
        border-radius: 6px !important;
        transition: all 0.3s ease !important;
    }

    .navbar-collapse .flag-link:hover {
        background: rgba(229, 9, 20, 0.2) !important;
    }

    /* Search and login buttons in mobile menu */
    .navbar-collapse .search-toggle-btn,
    .navbar-collapse .login-btn {
        background: rgba(229, 9, 20, 0.8) !important;
        color: white !important;
        padding: 12px 20px !important;
        border-radius: 8px !important;
        text-align: center !important;
        margin: 5px 0 !important;
        border: none !important;
        width: 100% !important;
        max-width: 200px !important;
    }

    .navbar-collapse .search-toggle-btn:hover,
    .navbar-collapse .login-btn:hover {
        background: rgba(229, 9, 20, 1) !important;
        transform: translateY(-1px) !important;
    }

    /* Hero section */
    .netflix-hero-fullwidth {
        height: 70vh !important;
    }

    .netflix-hero-content {
        padding: 0 40px !important;
    }

    .netflix-hero-title {
        font-size: 2.5rem !important;
    }

    .streamit-hero-description {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }

    /* Grid layout */
    .netflix-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
        padding: 15px 0;
    }

    /* Slider adjustments */
    .netflix-slider-item {
        flex: 0 0 250px;
    }

    /* Floating dock adjustments */
    .netflix-floating-dock {
        left: 5px !important;
        width: 50px !important;
    }

    .netflix-dock-item a,
    .netflix-dock-trigger {
        width: 40px !important;
        height: 40px !important;
    }

    .netflix-dock-item i {
        font-size: 16px !important;
    }

    .netflix-dock-label {
        font-size: 8px !important;
    }

    /* Video cards */
    .netflix-video-card {
        height: 320px !important;
    }

    .netflix-video-card.card-large {
        height: 380px !important;
    }

    .netflix-video-card.card-xl {
        height: 420px !important;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    /* Container adjustments */
    .container, .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Header mobile */
    .navbar-container-primary {
        padding: 0 15px !important;
    }

    .navbar-brand {
        max-width: 180px !important;
    }

    .navbar-brand img {
        max-height: 25px !important;
    }

    .navbar-brand p {
        font-size: 8px !important;
    }

    .subscribe-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
        margin-left: 10px !important;
    }

    /* Hero section mobile */
    .netflix-hero-fullwidth {
        height: 60vh !important;
    }

    .netflix-hero-content {
        padding: 0 20px !important;
    }

    .netflix-hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .streamit-hero-description {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }

    .streamit-hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .streamit-btn-primary,
    .streamit-btn-secondary {
        width: 100% !important;
        max-width: 200px !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    /* Grid layout mobile */
    .netflix-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 10px;
        padding: 10px 0;
    }

    /* Slider mobile */
    .netflix-slider-item {
        flex: 0 0 200px;
    }

    .netflix-slider-nav {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    /* Section titles */
    .netflix-section-title {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    /* Category headers */
    .category-header-section {
        padding: 40px 0 30px !important;
    }

    .category-title {
        font-size: 2rem !important;
    }

    .category-description {
        font-size: 1rem !important;
    }

    /* Floating dock mobile */
    .netflix-floating-dock {
        left: 5px !important;
        width: 45px !important;
        padding: 8px 0 !important;
    }

    .netflix-dock-item {
        margin: 3px 0 !important;
    }

    .netflix-dock-item a,
    .netflix-dock-trigger {
        width: 35px !important;
        height: 35px !important;
    }

    .netflix-dock-item i {
        font-size: 14px !important;
    }

    .netflix-dock-label {
        font-size: 7px !important;
    }

    .netflix-dock-menu {
        left: 50px !important;
        min-width: 180px !important;
        max-width: 200px !important;
    }

    /* Video cards mobile */
    .netflix-video-card {
        height: 280px !important;
    }

    .netflix-video-card.card-medium {
        height: 300px !important;
        transform: scale(1.02) !important;
    }

    .netflix-video-card.card-large {
        height: 320px !important;
        transform: scale(1.05) !important;
    }

    .netflix-video-card.card-xl {
        height: 350px !important;
        transform: scale(1.08) !important;
    }

    /* Search form mobile */
    .search-form {
        right: 15px !important;
        min-width: 280px !important;
        padding: 15px !important;
    }

    /* Dropdown menus mobile */
    .dropdown-menu,
    .top-cats-dropdown,
    .user-menu-dropdown {
        min-width: 200px !important;
        max-width: 250px !important;
    }

    /* Legacy sidebar hide on mobile */
    .floating-sidebar {
        transform: translateX(-100%) !important;
    }

    .floating-sidebar.mobile-open {
        transform: translateX(0) !important;
    }
}

/* Mobile portrait */
@media (max-width: 576px) {
    /* Header very mobile */
    .navbar-container-primary {
        padding: 0 10px !important;
    }

    .navbar-brand {
        max-width: 140px !important;
        margin-right: 10px !important;
    }

    .navbar-brand img {
        max-height: 18px !important;
    }

    .navbar-brand p {
        font-size: 7px !important;
        line-height: 1.2 !important;
    }

    .subscribe-btn {
        padding: 4px 8px !important;
        font-size: 10px !important;
        margin-left: 5px !important;
        min-width: 35px !important;
    }

    .subscribe-btn span {
        display: none !important; /* Hide text, show only icon */
    }

    .navbar-toggler {
        padding: 4px 8px !important;
        font-size: 14px !important;
        min-width: 35px !important;
    }

    /* Mobile menu adjustments for very small screens */
    .navbar-collapse {
        padding: 15px !important;
        margin-top: 3px !important;
    }

    .navbar-collapse .nav-link {
        padding: 10px 0 !important;
        font-size: 14px !important;
    }

    .navbar-collapse .language-flags {
        gap: 10px !important;
    }

    .navbar-collapse .flag-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .navbar-collapse .search-toggle-btn,
    .navbar-collapse .login-btn {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }

    /* Hero very mobile */
    .netflix-hero-fullwidth {
        height: 50vh !important;
    }

    .netflix-hero-content {
        padding: 0 15px !important;
    }

    .netflix-hero-title {
        font-size: 1.5rem !important;
        line-height: 1.1 !important;
    }

    .streamit-hero-description {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }

    .streamit-hero-meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 5px !important;
    }

    .streamit-badge,
    .streamit-duration,
    .streamit-rating {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }

    /* Grid very mobile */
    .netflix-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }

    /* Slider very mobile */
    .netflix-slider-item {
        flex: 0 0 160px;
    }

    .netflix-slider-nav {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }

    /* Section titles very mobile */
    .netflix-section-title {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }

    /* Category headers very mobile */
    .category-title {
        font-size: 1.5rem !important;
    }

    .category-description {
        font-size: 0.9rem !important;
    }

    /* Floating dock very mobile */
    .netflix-floating-dock {
        left: 3px !important;
        width: 40px !important;
        padding: 5px 0 !important;
    }

    .netflix-dock-item a,
    .netflix-dock-trigger {
        width: 30px !important;
        height: 30px !important;
    }

    .netflix-dock-item i {
        font-size: 12px !important;
    }

    .netflix-dock-label {
        display: none !important; /* Hide labels on very small screens */
    }

    .netflix-dock-menu {
        left: 45px !important;
        min-width: 160px !important;
        max-width: 180px !important;
    }

    .netflix-dock-menu-item {
        padding: 8px 15px !important;
        font-size: 12px !important;
    }

    /* Video cards very mobile */
    .netflix-video-card {
        height: 220px !important;
    }

    .netflix-video-card.card-medium {
        height: 240px !important;
        transform: scale(1.01) !important;
    }

    .netflix-video-card.card-large {
        height: 260px !important;
        transform: scale(1.03) !important;
    }

    .netflix-video-card.card-xl {
        height: 280px !important;
        transform: scale(1.05) !important;
    }

    /* Search form very mobile */
    .search-form {
        right: 10px !important;
        left: 10px !important;
        min-width: auto !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }

    /* Pagination mobile */
    .netflix-pagination .pagination {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .netflix-pagination .page-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
        margin: 1px !important;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .netflix-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 5px;
    }

    .netflix-slider-item {
        flex: 0 0 140px;
    }

    .netflix-video-card {
        height: 180px !important;
    }

    .netflix-hero-title {
        font-size: 1.3rem !important;
    }

    .streamit-hero-description {
        font-size: 0.75rem !important;
    }

    .netflix-section-title {
        font-size: 1.1rem !important;
    }
}

/* ===== ORIENTATION-SPECIFIC STYLES ===== */

/* Landscape orientation optimizations */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .netflix-hero-fullwidth {
        height: 85vh !important;
    }

    .netflix-hero-content {
        padding: 0 30px !important;
    }

    .netflix-hero-title {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
    }

    .streamit-hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }

    .streamit-hero-actions {
        flex-direction: row !important;
        gap: 15px !important;
    }

    .streamit-btn-primary,
    .streamit-btn-secondary {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    .netflix-floating-dock {
        width: 40px !important;
        padding: 5px 0 !important;
    }

    .netflix-dock-item a,
    .netflix-dock-trigger {
        width: 30px !important;
        height: 30px !important;
    }

    .netflix-dock-item i {
        font-size: 12px !important;
    }

    .netflix-dock-label {
        display: none !important;
    }
}

/* Portrait orientation optimizations */
@media screen and (orientation: portrait) and (max-width: 768px) {
    .netflix-hero-fullwidth {
        height: 50vh !important;
    }

    .netflix-hero-content {
        padding: 0 20px !important;
    }

    .streamit-hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .streamit-btn-primary,
    .streamit-btn-secondary {
        width: 100% !important;
        max-width: 250px !important;
        text-align: center !important;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .netflix-hero-slide {
        transition: none !important;
    }

    .netflix-video-card {
        transition: none !important;
    }

    .netflix-slider {
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .netflix-video-card {
        border: 2px solid #ffffff !important;
    }

    .netflix-card-overlay {
        background: rgba(0,0,0,0.9) !important;
    }

    .netflix-floating-dock {
        border: 1px solid #ffffff !important;
    }

    .netflix-dock-item:hover a,
    .netflix-dock-item:hover .netflix-dock-trigger {
        background: #ffffff !important;
        color: #000000 !important;
    }
}

/* Dark mode support (if system preference) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but ensure consistency */
    body {
        background-color: #000000 !important;
    }

    .netflix-hero-fullwidth {
        background: #000000 !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .netflix-floating-dock,
    .netflix-slider-nav,
    .netflix-hero-fullwidth,
    .search-form,
    .dropdown-menu {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .netflix-video-card {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }
}

/* STYL DLA MODALI */
.modal-dialog {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.modal-content {
    background-color: #141414;
    border-radius: 10px;
}
.modal-header {
    background-color: #e50914;
    border-bottom: none;
}
.modal-title {
    font-weight: bold;
    padding-left: 60px;
}

.modal-body {
    color: #ffffff;
}

.btn-secondary {
    background-color: #555555;
    border: none;
}
.btn-danger {
    background-color: #e50914;
    border: none;
}

.btn-lg.rounded-pill {
    border-radius: 50px;
}
.secure {
    display: block;
    margin: 15px 15px;
    width: 48px;
}

/* ===== LEGAL PAGES NETFLIX STYLES ===== */

/* Legal Page Hero Section */
.legal-page-hero {
    background: linear-gradient(135deg, #141414 0%, #2d1b1b 100%) !important;
    padding: 100px 0 60px 0 !important;
    position: relative !important;
}

.legal-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="legal-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(229,9,20,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23legal-pattern)"/></svg>');
    opacity: 0.3;
}

.netflix-hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 20px !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
}

.netflix-hero-subtitle {
    font-size: 1.2rem !important;
    color: #ccc !important;
    margin-bottom: 0 !important;
}

.netflix-legal-content {
    background: rgba(20, 20, 20, 0.95) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    margin-top: -30px !important;
    position: relative !important;
    z-index: 2 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.legal-content-wrapper {
    color: #e5e5e5 !important;
    line-height: 1.8 !important;
}

.legal-content-wrapper h1,
.legal-content-wrapper h2,
.legal-content-wrapper h3,
.legal-content-wrapper h4 {
    color: white !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
}

.legal-content-wrapper h1 {
    font-size: 2.2rem !important;
    border-bottom: 2px solid #e50914 !important;
    padding-bottom: 10px !important;
}

.legal-content-wrapper h2 {
    font-size: 1.8rem !important;
    color: #e50914 !important;
}

.legal-content-wrapper h3 {
    font-size: 1.4rem !important;
}

.legal-content-wrapper p {
    margin-bottom: 20px !important;
    color: #ccc !important;
}

.legal-content-wrapper ul,
.legal-content-wrapper ol {
    margin-bottom: 20px !important;
    padding-left: 30px !important;
}

.legal-content-wrapper li {
    margin-bottom: 10px !important;
    color: #ccc !important;
}

.legal-content-wrapper a {
    color: #e50914 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.legal-content-wrapper a:hover {
    color: #ff1e2d !important;
    text-decoration: underline !important;
}

.legal-content-wrapper strong {
    color: white !important;
    font-weight: 600 !important;
}

.legal-content-wrapper blockquote {
    background: rgba(229, 9, 20, 0.1) !important;
    border-left: 4px solid #e50914 !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border-radius: 0 8px 8px 0 !important;
}

/* Mobile Responsive for Legal Pages */
@media (max-width: 768px) {
    .legal-page-hero {
        padding: 80px 0 40px 0 !important;
    }

    .netflix-hero-title {
        font-size: 2rem !important;
    }

    .netflix-hero-subtitle {
        font-size: 1rem !important;
    }

    .netflix-legal-content {
        padding: 20px !important;
        margin-top: -20px !important;
    }

    .legal-content-wrapper h1 {
        font-size: 1.8rem !important;
    }

    .legal-content-wrapper h2 {
        font-size: 1.5rem !important;
    }
}

/* ===== SUPPORT PAGE NETFLIX STYLES ===== */

/* Support Page Hero Section */
.support-page-hero {
    background: linear-gradient(135deg, #141414 0%, #1a2332 100%) !important;
    padding: 100px 0 60px 0 !important;
    position: relative !important;
}

.support-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="support-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(229,9,20,0.1)"/><path d="M5,5 L15,15 M15,5 L5,15" stroke="rgba(229,9,20,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23support-pattern)"/></svg>');
    opacity: 0.3;
}

.netflix-support-content {
    background: rgba(20, 20, 20, 0.95) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    margin-top: -30px !important;
    position: relative !important;
    z-index: 2 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.support-intro {
    color: #e5e5e5 !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.netflix-support-form {
    margin-top: 30px !important;
}

.netflix-form-group {
    margin-bottom: 25px !important;
}

.netflix-form-label {
    display: block !important;
    color: #e5e5e5 !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
    font-size: 0.95rem !important;
}

.netflix-form-input,
.netflix-form-select,
.netflix-form-textarea,
.netflix-form-file {
    width: 100% !important;
    padding: 15px 20px !important;
    background: rgba(45, 45, 45, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.netflix-form-input:focus,
.netflix-form-select:focus,
.netflix-form-textarea:focus,
.netflix-form-file:focus {
    outline: none !important;
    border-color: #e50914 !important;
    background: rgba(45, 45, 45, 0.95) !important;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2) !important;
}

.netflix-form-input::placeholder,
.netflix-form-textarea::placeholder {
    color: #999 !important;
}

.netflix-form-select option {
    background: #2d2d2d !important;
    color: white !important;
}

.netflix-form-help {
    display: block !important;
    color: #999 !important;
    font-size: 0.85rem !important;
    margin-top: 5px !important;
}

/* Radio Group Styles */
.netflix-radio-group {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.netflix-radio-item {
    position: relative !important;
}

.netflix-radio-input {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

.netflix-radio-label {
    display: inline-block !important;
    padding: 10px 20px !important;
    background: rgba(45, 45, 45, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #ccc !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}

.netflix-radio-input:checked + .netflix-radio-label {
    background: rgba(229, 9, 20, 0.2) !important;
    border-color: #e50914 !important;
    color: white !important;
}

.netflix-radio-label:hover {
    border-color: rgba(229, 9, 20, 0.5) !important;
    background: rgba(45, 45, 45, 0.95) !important;
}

/* Button Styles */
.netflix-btn {
    padding: 15px 30px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.netflix-btn-primary {
    background: linear-gradient(135deg, #e50914 0%, #ff1e2d 100%) !important;
    color: white !important;
    min-width: 200px !important;
    justify-content: center !important;
}

.netflix-btn-primary:hover {
    background: linear-gradient(135deg, #ff1e2d 0%, #e50914 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4) !important;
}

/* Mobile Responsive for Support Page */
@media (max-width: 768px) {
    .support-page-hero {
        padding: 80px 0 40px 0 !important;
    }

    .netflix-support-content {
        padding: 20px !important;
        margin-top: -20px !important;
    }

    .netflix-radio-group {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .netflix-radio-label {
        text-align: center !important;
        width: 100% !important;
    }

    .netflix-form-input,
    .netflix-form-select,
    .netflix-form-textarea,
    .netflix-form-file {
        padding: 12px 15px !important;
    }

    .netflix-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .netflix-support-content {
        padding: 15px !important;
    }

    .netflix-form-input,
    .netflix-form-select,
    .netflix-form-textarea,
    .netflix-form-file {
        padding: 10px 12px !important;
        font-size: 0.95rem !important;
    }
}

/* ===== CASTING PAGE NETFLIX STYLES ===== */

/* Casting Page Hero Section */
.casting-page-hero {
    background: linear-gradient(135deg, #141414 0%, #2d1b2d 100%) !important;
    padding: 100px 0 60px 0 !important;
    position: relative !important;
}

.casting-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="casting-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(229,9,20,0.1)"/><path d="M5,10 L15,10 M10,5 L10,15" stroke="rgba(229,9,20,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23casting-pattern)"/></svg>');
    opacity: 0.3;
}

.netflix-casting-content {
    background: rgba(20, 20, 20, 0.95) !important;
    border-radius: 12px !important;
    padding: 40px !important;
    margin-top: -30px !important;
    position: relative !important;
    z-index: 2 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.casting-intro {
    color: #e5e5e5 !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.netflix-casting-form {
    margin-top: 30px !important;
}

/* Checkbox Styles for Casting */
.netflix-checkbox-group {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 20px !important;
    background: rgba(229, 9, 20, 0.1) !important;
    border: 1px solid rgba(229, 9, 20, 0.3) !important;
    border-radius: 8px !important;
}

.netflix-checkbox {
    width: 20px !important;
    height: 20px !important;
    accent-color: #e50914 !important;
}

.netflix-checkbox-label {
    color: #e5e5e5 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

/* Questionnaire Section */
.netflix-questionnaire-section {
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 2px solid rgba(229, 9, 20, 0.3) !important;
}

.netflix-section-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 30px !important;
    text-align: left !important;
}

.netflix-question-group {
    background: rgba(45, 45, 45, 0.3) !important;
    border-radius: 8px !important;
    padding: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.netflix-question-label {
    display: block !important;
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    padding: 10px 15px !important;
    background: linear-gradient(135deg, #e50914 0%, #ff1e2d 100%) !important;
    border-radius: 6px !important;
    font-size: 0.95rem !important;
}

/* Mobile Responsive for Casting Page */
@media (max-width: 768px) {
    .casting-page-hero {
        padding: 80px 0 40px 0 !important;
    }

    .netflix-casting-content {
        padding: 20px !important;
        margin-top: -20px !important;
    }

    .netflix-section-title {
        font-size: 1.5rem !important;
    }

    .netflix-checkbox-group {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

@media (max-width: 576px) {
    .netflix-casting-content {
        padding: 15px !important;
    }

    .netflix-question-group {
        padding: 15px !important;
    }
}