/* --- RESPONSYWNOŚĆ --- */

/* --- RESPONSYWNOŚĆ: MAŁE URZĄDZENIA --- */
@media (max-width: 700px) {
    /* Dodaj margines górny dla fixed navbar */
    body {
        padding-top: 80px;
    }

    /* Hamburger Menu dla urządzeń mobilnych - nadpisuje header.css */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        background: linear-gradient(135deg, #ff2d45 0%, #e0243a 100%) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 0 0 20px 20px !important;
        box-shadow: 
            0 4px 20px rgba(255, 45, 69, 0.3),
            0 2px 10px rgba(0, 0, 0, 0.2) !important;
        padding: 12px 16px !important;
        min-height: 60px !important;
        z-index: 1100 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin: 0 !important;
        border: none !important;
        overflow: visible !important;
    }
    
    .navbar::before {
        display: none;
    }
    
    .navbar-brand {
        display: flex;
        align-items: center;
    }
    
    .logo {
        font-size: 1.4rem;
        font-weight: 700;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        margin-bottom: 4px;
        /* Ukrywamy logo w nawigacji na mobile */
        display: none !important;
    }
    
    /* Hamburger Menu Button */
    .hamburger-menu {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        gap: 4px;
        padding: 8px;
    }
    
    .hamburger-menu:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
        background: #ffffff;
        border-radius: 1px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .mobile-menu-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #ff2d45 0%, #e0243a 100%);
        display: flex;
        flex-direction: column;
        padding: 80px 20px 20px 20px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
        z-index: 10000;
    }
    
    .mobile-menu-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .mobile-menu-content::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .mobile-menu-content::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }
    
    .mobile-menu-content::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    .mobile-menu-overlay.active .mobile-menu-content {
        transform: translateX(0) !important;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Przywracamy wyświetlanie logo w mobile menu header na mobile */
    .mobile-menu-header .logo {
        display: block !important;
    }
    
    /* Przywracamy wyświetlanie tekstu "Pigeons Janicki" w hero section na mobile */
    .hero-content h1 .highlight {
        display: inline !important;
    }
    
    .close-menu {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
    }
    
    .close-menu:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .close-line {
        width: 20px;
        height: 2px;
        background: #ffffff;
        border-radius: 1px;
        position: absolute;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .close-line:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .close-line:nth-child(2) {
        transform: rotate(-45deg);
    }
    
    /* Mobile Navigation Links */
    .mobile-nav-links {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .mobile-nav-links li {
        width: 100%;
    }
    
    .mobile-nav-links a {
        display: flex;
        align-items: center;
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        color: #ffffff;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-nav-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateX(8px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    /* Mobile Language Switcher */
    .mobile-language-switcher {
        position: relative;
        margin-top: auto;
        margin-bottom: 20px;
    }
    
    .mobile-language-btn {
        width: 100%;
        padding: 16px 20px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        gap: 12px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-language-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .language-text {
        font-size: 1rem;
    }
    
    .mobile-language-dropdown {
        position: absolute;
        bottom: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 12px;
        margin-bottom: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-language-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mobile-language-dropdown a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        color: #333;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s ease;
        font-size: 1rem;
        font-weight: 500;
    }
    
    .mobile-language-dropdown a:hover {
        background: rgba(255, 45, 69, 0.1);
        color: #ff2d45;
    }
    
    /* Hide Desktop Navigation on Mobile */
    .desktop-nav {
        display: none !important;
    }
    
    /* Hide old navbar elements */
    .nav-links {
        display: none !important;
    }
    
    .language-switcher {
        display: none !important;
    }
    
    .menu-btn {
        display: none !important;
    }

    /* Hero section styles */
    .hero,
    .videos-section,
    .shorts-section,
    .vip-section {
        padding-left: 16px;
        padding-right: 16px;
        margin-top: 40px !important;
        margin-bottom: 24px !important;
        border-radius: 12px;
    }
    
    .hero {
        margin-top: 5px !important;
        padding-top: 24px !important; /* Delikatny odstęp od góry sekcji Hero na urządzeniach mobilnych */
    }
    
    .hero-content {
        flex-direction: column;
        gap: 18px;
        align-items: center;
        text-align: center;
    }
    
    .avatar-glow {
        width: 120px;
        height: 120px;
        padding: 4px;
        margin: 0 auto !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        margin-top: 0 !important;
        align-self: center !important;
    }
    
    .avatar-glow img {
        width: 120px;
        height: 110px;
    }
    
    .hero-content h1 {
        font-size: 1.3rem;
    }
    
    .hero-content h2 {
        font-size: 1.05rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .btn, .btn-red, .btn-white {
        width: 100%;
        max-width: 220px;
        font-size: 1rem;
        padding: 10px 0;
        margin: 0 auto;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px 16px 0 16px;
    }
    
    .stats div {
        padding: 18px 8px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .videos-title, .shorts-title, .stats-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    
    .videos-grid {
        gap: 12px !important;
    }
    
    .shorts-grid {
        gap: 12px !important;
    }
    
    .video-card, .shorts-card {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .video-info h3, .shorts-info h3 {
        font-size: 0.98rem;
        min-height: unset;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 0 8px;
    }
    
    .footer-logo img {
        width: 32px;
        height: 32px;
    }
    
    .footer-links {
        gap: 8px;
        font-size: 0.98rem;
    }
    
    .footer-socials img {
        width: 18px;
        height: 18px;
    }
}

/* Desktop Navigation Styles */
@media (min-width: 701px) {
    /* Dodaj delikatny odstęp od górnej części strony */
    body {
        padding-top: 15px !important;
    }
    
    /* Delikatny odstęp od góry */
    .navbar {
        margin-top: 20px !important;
        padding-left: 40px !important;
        padding-right: 32px !important;
        box-sizing: border-box;
    }
    /* Linki nawigacji bliżej lewej */
    .nav-links {
        margin-left: 0 !important;
        gap: 32px !important;
    }
    /* Po otwarciu sidebaru navbar przesuwa się o szerokość sidebaru */
    .sidebar-open .navbar {
        margin-left: 320px !important;
        width: calc(100% - 320px) !important;
        max-width: calc(1400px - 320px) !important;
    }
    
    /* Ukryj elementy mobile menu */
    .hamburger-menu,
    .mobile-menu-overlay {
        display: none !important;
    }
    
    /* Przywróć desktop navigation */
    .desktop-nav {
        display: flex !important;
        align-items: center;
        gap: 20px;
    }
    
    /* Przywróć oryginalne style navbar z header.css */
    .navbar {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin: 0 auto !important;
        max-width: 1400px !important;
        padding-left: 64px !important;
        padding-right: 64px !important;
        background: transparent !important;
        min-height: 65px !important;
        z-index: 1100 !important;
        border-radius: 0 0 24px 24px !important;
        backdrop-filter: blur(20px) !important;
        box-shadow: transparent !important;
        overflow: visible !important;
    }
    
    /* Przywróć animację tła navbar */
    .navbar::before {
        content: '' !important;
        position: absolute !important;
        top: -50% !important;
        left: -50% !important;
        width: 200% !important;
        height: 200% !important;
        background: radial-gradient(circle at 20% 30%, rgba(255,45,69,0.08) 0%, transparent 50%), 
                    radial-gradient(circle at 80% 70%, rgba(30,144,255,0.05) 0%, transparent 50%) !important;
        animation: navbarFloat 20s ease-in-out infinite !important;
        pointer-events: none !important;
        will-change: transform !important;
    }
    
    .navbar-brand {
        display: flex !important;
        align-items: center;
    }
    
    .logo {
        font-size: 2.3rem !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        color: var(--white) !important;
        text-shadow: 0 2px 16px #ff2d2d33 !important;
        opacity: 1 !important;
    }
    
    /* Hide "Pigeons Janicki" text in main navbar on desktop */
    .navbar-brand .logo {
        display: none !important;
    }
    
    /* Przywróć oryginalne style nav-links */
    .nav-links {
        list-style: none !important;
        flex: 0 0 auto !important;
        display: flex !important;
        justify-content: flex-start !important;
        gap: 40px !important;
        position: relative !important;
        z-index: 2 !important;
        margin-left: 20px !important;
    }
    
    .nav-links a {
        color: rgba(255,255,255,0.9) !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 1.15rem !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
        opacity: 1 !important;
        padding: 12px 20px !important;
        border-radius: 16px !important;
        background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        backdrop-filter: blur(10px) !important;
        letter-spacing: 0.5px !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    }
    
    /* Przywróć oryginalne style language-switcher */
    .language-switcher {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .language-btn {
        background: rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        border-radius: 12px !important;
        padding: 8px 12px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        backdrop-filter: blur(10px) !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    /* Przywróć oryginalne style menu-btn */
    .menu-btn {
        background: linear-gradient(135deg, #ff2d45 0%, #e0243a 100%) !important;
        border: none !important;
        border-radius: 16px !important;
        padding: 12px 24px !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        cursor: pointer !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 4px 15px rgba(255, 45, 69, 0.3) !important;
        position: relative !important;
        overflow: hidden !important;
    }
}

/* Responsive adjustments for smaller screens */
@media (max-width: 600px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 10px 12px;
        min-height: 55px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hamburger-menu {
        width: 36px;
        height: 36px;
        gap: 3px;
        padding: 6px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
    
    .mobile-menu-content {
        padding: 70px 16px 30px 16px;
    }
    
    .mobile-nav-links a {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .mobile-language-btn {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .language-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    body {
        padding-top: 65px;
    }
    
    .navbar {
        padding: 8px 10px;
        min-height: 50px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .hamburger-menu {
        width: 32px;
        height: 32px;
        gap: 2px;
        padding: 5px;
    }
    
    .hamburger-line {
        width: 16px;
        height: 2px;
    }
    
    .mobile-menu-content {
        padding: 65px 12px 25px 12px;
    }
    
    .mobile-nav-links a {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .mobile-language-btn {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    .language-text {
        font-size: 0.85rem;
    }
    
    .hero-content h1 { 
        font-size: 1.05rem; 
    }
    
    .hero-content h2 { 
        font-size: 0.92rem; 
    }
    
    .stat-number { 
        font-size: 1.1rem; 
    }
    
    .stat-label { 
        font-size: 0.85rem; 
    }
    
    .videos-title, .shorts-title, .stats-title { 
        font-size: 1.05rem; 
    }
    
    /* Dodatkowe zabezpieczenia dla bardzo małych ekranów */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .hero,
    .videos-section,
    .shorts-section,
    .vip-section,
    .navbar,
    .footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        box-sizing: border-box;
    }
}

/* Poprawki dla sekcji filmów na telefonach */
@media (max-width: 700px) {
    .videos-section {
        padding: 20px 12px 20px 12px;
        margin-top: 20px !important;
        margin-bottom: 40px !important;
        border-radius: 16px;
        position: relative;
    }
    
    .videos-title {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }
    
    .videos-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 16px;
        padding-left: 8px;
        padding-right: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,45,69,0.3) transparent;
        scroll-behavior: smooth;
    }
    
    .videos-grid::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    .videos-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .videos-grid::-webkit-scrollbar-thumb {
        background: rgba(255,45,69,0.3);
        border-radius: 3px;
    }
    
    .videos-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(255,45,69,0.5);
    }
    
    .video-card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .videos-section {
        padding: 16px 8px 16px 8px;
        margin-bottom: 32px !important;
    }
    
    .videos-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .videos-grid {
        gap: 12px;
    }
    
    .video-card {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
    }
}

@media (max-width: 400px) {
    .videos-section {
        padding: 12px 4px 12px 4px;
        margin-bottom: 24px !important;
    }
    
    .videos-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .videos-grid {
        gap: 10px;
    }
    
    .video-card {
        flex: 0 0 200px;
        min-width: 200px;
        max-width: 200px;
    }
}

/* Poprawki dla sekcji shortsów na telefonach */
@media (max-width: 700px) {
    .shorts-section {
        padding: 20px 12px 20px 12px;
        margin-top: 20px !important;
        margin-bottom: 40px !important;
        border-radius: 16px;
        position: relative;
    }
    
    .shorts-title {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }
    
    .shorts-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        overflow-y: visible;
        padding-bottom: 16px;
        padding-left: 8px;
        padding-right: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,45,69,0.3) transparent;
        scroll-behavior: smooth;
    }
    
    .shorts-grid::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    .shorts-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .shorts-grid::-webkit-scrollbar-thumb {
        background: rgba(255,45,69,0.3);
        border-radius: 3px;
    }
    
    .shorts-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(255,45,69,0.5);
    }
    
    .shorts-card {
        flex: 0 0 160px;
        min-width: 160px;
        max-width: 160px;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .shorts-section {
        padding: 16px 8px 16px 8px;
        margin-bottom: 32px !important;
    }
    
    .shorts-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .shorts-grid {
        gap: 12px;
    }
    
    .shorts-card {
        flex: 0 0 140px;
        min-width: 140px;
        max-width: 140px;
    }
}

@media (max-width: 400px) {
    .shorts-section {
        padding: 12px 4px 12px 4px;
        margin-bottom: 24px !important;
    }
    
    .shorts-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .shorts-grid {
        gap: 10px;
    }
    
    .shorts-card {
        flex: 0 0 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .shorts-info h3 {
        font-size: 0.85rem;
        min-height: 32px;
    }
}

/* DODATKOWE ZABEZPIECZENIA PRZED POZIOMYM PRZEWIJANIEM NA MOBILNYCH */
@media (max-width: 768px) {
    /* Główne zabezpieczenia dla całej strony */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .hero,
    .videos-section,
    .shorts-section,
    .vip-section,
    .navbar,
    .footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        box-sizing: border-box;
    }
    
    .hero-content,
    .videos-grid,
    .shorts-grid,
    .vip-content {
        width: 100%;
        max-width: 100%;
    }
    
    .video-card,
    .shorts-card {
        max-width: 100%;
        width: auto;
    }
    
    /* Dodatkowe zabezpieczenia dla wszystkich elementów */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Zabezpieczenia dla elementów z pozycjonowaniem absolutnym */
    .hero::before,
    .vip-section::before,
    .navbar::before {
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Specjalne zabezpieczenia dla elementów z animacjami */
    .bg-glow,
    .hero::before,
    .vip-section::before,
    .navbar::before {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        overflow: hidden;
    }
    
    /* Dodatkowe zabezpieczenia dla elementów z szerokością większą niż 100% */
    .hero::before,
    .vip-section::before,
    .navbar::before {
        width: 100%;
        max-width: 100%;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        overflow: hidden;
    }
}

/* OPTYMALIZACJA ANIMACJI - ZAPOBIEGANIE ZACINANIU */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optymalizacja dla urządzeń z niską wydajnością */
@media (max-width: 768px) {
    .navbar::before,
    .vip-section::before,
    .hero::before {
        animation: none;
    }
    
    .nav-links a,
    .language-btn,
    .menu-btn {
        transition: all 0.2s ease;
    }
    
    .vip-crown,
    .subscribe-icon,
    .vip-thankyou {
        animation: none;
    }
}

/* Optymalizacja transformacji */
.navbar,
.nav-links a,
.language-btn,
.menu-btn,
.video-card,
.shorts-card,
.stats div,
.vip-latest-episode,
.vip-comment,
.gallery-grid img,
.quiz-question,
.ask-form input,
.ask-form textarea {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optymalizacja animacji tła */
.navbar::before,
.vip-section::before,
.hero::before {
    will-change: transform;
    transform: translateZ(0);
} 