   /* --- DOLNY PANEL KATEGORII (SUB-NAVIGATION) --- */
    .GlassSubNavContainer {
        display: flex;
        align-items: center;
        width: 100%;
        height: 60px;
        background: rgba(18, 20, 24, 0.3); /* Zwiększona przezroczystość - tło lepiej przebija! */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        margin-bottom: 5px;
        position: relative;
        z-index: 50; /* Zabezpieczenie przed ucinaniem przez dolne kafelki */
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden; /* Ważne: żeby przyciski nie wystawały podczas zwijania */ 
    }

      /* Strzałki przewijania panelu - PANCERNE CENTROWANIE */
      .SubNavArrowBtn {
        background: transparent;
        border: none;
        color: #789;
        width: 40px;
        
        /* MAGIA: Bezwzględny zakaz zgniatania strzałek! */
        flex-shrink: 0 !important; 
        
        /* ... reszta bez zmian ... */
        height: 100% !important; 
        margin: 0 !important; 
        padding: 0 !important;
        display: flex !important;
        align-items: center !important; 
        justify-content: center !important;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
        z-index: 5;
        outline: none;
        box-sizing: border-box !important;
    }
    
    .SubNavArrowBtn:hover {
        color: #cde;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .SubNavArrowBtn:active span {
        transform: scale(0.9);
    }

    /* Reset dla samej ikonki font-awesome, żeby nie skakała */
    .SubNavArrowBtn span {
        position: static !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
    }

    /* Ukrywanie systemowego scrollbara dla toru przycisków */
    .SubNavScrollWrapper {
        flex-grow: 1;
        overflow: hidden; /* Odcina wszystko, co wystaje */
        position: relative;
        height: 100%;
    }
      /* Kontener toru przewijania */
    .SubNavTrack {
        display: flex;
        align-items: center; /* Gwarantuje pionowe centrowanie elementów */
        height: 100%;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .SubNavTrack::-webkit-scrollbar { display: none; /* Chrome/Safari */ }

         /* Pancerne buttony kategorii */
    .GlassSubCategoryBtn {
        background: transparent;
        border: none;
        color: #89a;
        font-family: 'Montserrat', sans-serif;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.5px;
        
        /* TWARDE RESETOWANIE STARYCH STYLÓW */
        margin: 0 !important; 
        padding: 0 20px !important;
        height: 100% !important; /* Wypełnia całe 60px wysokości panelu */
        
        cursor: pointer;
        transition: color 0.3s, border-color 0.3s, background 0.3s;
        display: flex !important;
        align-items: center !important; /* Idealne centrowanie w pionie */
        justify-content: center !important; /* Centrowanie w poziomie */
        white-space: nowrap;
        outline: none;
        border-bottom: 2px solid transparent; 
        box-sizing: border-box !important;
    }

    /* Usuwamy ewentualne spychacze w dół z Twojego starego PHP (np. top: 10px;) */
    .GlassSubCategoryBtn font, 
    .GlassSubCategoryBtn span {
        position: static !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1 !important;
        display: flex;
        align-items: center;
    }

    .GlassSubCategoryBtn small {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.3);
        margin-left: 6px;
        position: static !important;
        top: 0 !important;
    }
    .GlassSubCategoryBtn:hover {
        color: #fff;
    }
    

    /* STAN AKTYWNY (dodawany przez JS) */
    .GlassSubCategoryBtn.CategoryBtnActiv { 
        color: #fff;
        border-bottom: 2px solid rgba(48,135,255,0.5);
        background: linear-gradient(to top, rgba(48,135,255,0.1) 0%, transparent 100%);
    }
    .GlassSubCategoryBtn.CategoryBtnActiv small {
        color: rgba(48,135,255,0.8);
    }
    .GlassSubCategoryBtn.active small,
    .GlassSubCategoryBtn.ActiveCategory small {
        color: rgba(48,135,255,0.8);
    }
    
      /* --- KARUZELA I JEJ KONTENERY --- */
      /* --- KONTENER NA KARUZELE Z KAFELKAMI PROGRAMÓW --- */
    .ProgramPanelsContainer {
    width: 100%;
    flex: 1 1; 
     height: 400px;      
   /* max-height: 400px;  */
    /* KLUCZ DO SCROLLA WE FLEXBOXIE: */
    min-height: 0; 
    overflow-y: auto; 
    
    scrollbar-width: 5px;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    padding-bottom: 160px; 
    }

    /* Webkit scrollbar dla spójności ze "szkłem" */
    .ProgramPanelsContainer::-webkit-scrollbar { width: 5px; }
    .ProgramPanelsContainer::-webkit-scrollbar-track { background: transparent; }
    .ProgramPanelsContainer::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
    
    .ProgramRowWrapper {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .ProgramRowHeader {
        padding-left: 50px;
        margin-bottom: 10px;
    }
    
    .ProgramRowHeader h3 {
        color: #678;
        font-size: 17px;
        font-weight: 500;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Kontener dla strzałek i kafelków */
    .GlassProgramCarousel {
        display: flex;
        align-items: center;
        width: 100%;
        position: relative;
    }
    
    /* Strzałki przewijania karuzeli */      
    .CarouselArrowBtn {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: rgba(48, 135, 255, 0.5);
        font-size: 20px;
        width: 40px;
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 10;
        flex-shrink: 0;
        border-radius: 4px;
        backdrop-filter: blur(5px);
        margin: 0 5px;
    }
    .CarouselArrowBtn:hover {
        background: rgba(48, 135, 255, 0.4);
        border-color: #3087ff;
        color: #fff;
        font-size: 24px
    }

    /* Tor po którym jeżdżą kafelki */
    .CarouselTrack {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
        padding: 10px 0;
        flex-grow: 1;
    }
    .CarouselTrack::-webkit-scrollbar { display: none; }

    /* --- SAM KAFELEK FILMU --- */
    .GlassProgramCard {
        width: 300px;
        min-width: 300px; /* Blokada zgniecenia przez Flexbox */
        height: 250px; /* Zwiększona wysokość, żeby pomieścić wszystko ładnie */
        background: rgba(18, 20, 24, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }
    .GlassProgramCard:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.8);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    /* Stan "Zaznaczony" (Twój JS dodaje klasę CategoryBtnActiv lub podobną) */
    .GlassProgramCard.CategoryBtnActiv {
        border: 1px solid #3087ff;
        box-shadow: 0 0 20px rgba(48, 135, 255, 0.4);
    }
    
    /* --- STAN AKTYWNY DLA KAFELKA FILMU --- */
    .GlassProgramCard.FlixProgramDivActiv {
        border: 1px solid #3087ff !important; /* Twój firmowy błękit FLIX TV */
        box-shadow: 0 0 25px rgba(48, 135, 255, 0.4) !important; /* Efektowna, błękitna poświata */
        transform: translateY(-5px); /* Utrzymuje kafelek lekko w górze, jako "wybrany" */
    }

    /* Górna część kafelka (Obrazek + Logo) */
    .CardImageWrapper {
        width: 100%;
        height: 168px; /* Proporcja 16:9 dla szerokości 300px */
        position: relative;
        background: #000;
    }
    .CardImageWrapper > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .CardChannelLogo {
        position: absolute;
        bottom: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        background: rgba(0,0,0,0.5);
        border-radius: 6px;
        padding: 3px;
        box-sizing: border-box;
        box-shadow: 0 2px 6px rgba(0,0,0,0.8);
    }
    .CardChannelLogo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 4px;
    }

    /* Dolna część kafelka (Tekst i ikony) */
    .CardInfoWrapper {
        padding: 12px 15px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .CardTitle {
        color: #bcd;
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* Ucinanie długich tytułów z kropeczkami ... */
        margin-bottom: 8px;
    }
    .CardStats {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 12px;
        color: #89a;
    }
    .CardStats span {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    
    .PlayButtonOverlay {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.7); /* Twój firmowy niebieski */
    border-radius: 50%;
    display: none; /* Ukryty startowo */
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    }

    .PlayButtonOverlay:hover {
    transform: scale(1.1);
    background: rgba(48, 135, 255, 0.6); /* Twój firmowy niebieski */
    box-shadow: 0 0 20px rgba(48, 135, 255, 0.3);
    border: 1px solid rgba(48, 135, 255, 0.9);;
    }

    .PlayButtonOverlay i {
    margin-left: 3px; /* Korekta optyczna środka ikony Play */
    }
    
    
    .GlassInfoArrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%); /* Idealne centrowanie w pionie */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5); /* Ciemniejsze tło dla kontrastu */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #678;
    font-size: 16px;
    cursor: pointer;
    z-index: 20; /* Zawsze nad kafelkami */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.GlassInfoArrow:hover {
    border: 1px solid rgba(48, 135, 255, 0.9);
    background: rgba(48, 135, 255, 0.4); /* Twój firmowy niebieski */
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 20px rgba(48, 135, 255, 0.2);
    color: #bcd;
    font-size: 20px;
}


    
    .GlassScrollArrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%); /* Idealne centrowanie w pionie */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5); /* Ciemniejsze tło dla kontrastu */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #678;
    font-size: 16px;
    cursor: pointer;
    z-index: 20; /* Zawsze nad kafelkami */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.GlassScrollArrow:hover {
    border: 1px solid rgba(48, 135, 255, 0.9);
    background: rgba(48, 135, 255, 0.4); /* Twój firmowy niebieski */
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 20px rgba(48, 135, 255, 0.2);
    color: #bcd;
    font-size: 20px;
}

/* Pozycjonowanie przy krawędziach */
.ArrowLeft { left: -5px; padding-left: 15px; }
.ArrowRight { right: -5px; padding-right: 15px; }
    
    