/* ==========================================================================
   KONFIGURACJA SIATKI GŁÓWNEJ VOD (UKŁAD DWUKOLUMNOWY)
   ========================================================================== */
.v2-main-container {
    display: flex;
    flex-flow: row wrap;
    gap: 20px;
    width: 100%;
    align-items: flex-start;
    box-sizing: border-box;
}

/* LEWA SEKCJA (SLIDER + FILMY) - 76% SZEROKOŚCI MINUS GAP */
.v2-content-area {
    flex: 1;
    width: calc(76% - 10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* PRAWA SEKCJA (SIDEBAR) - 24% SZEROKOŚCI MINUS GAP */
.v2-sidebar-area {
    width: calc(24% - 10px);
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   KINOWY DESIGN SLIDERA
   ========================================================================== */
.v2-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #0d0d0d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.v2-slider-wrapper input[type="radio"] { 
    display: none; 
}

.v2-slides-container { 
    display: flex; 
    width: 600%; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.v2-slide-item { 
    width: 16.6666%; 
    min-height: 420px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}

.v2-slide-overlay {
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.98) 25%, rgba(10, 10, 10, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    display: flex; 
    align-items: center; 
    padding: 40px;
    box-sizing: border-box;
}

.v2-slide-content { 
    max-width: 520px; 
    color: #fff; 
}

/* ETYKIETY MULTIMEDIALNE */
.v2-badge { 
    display: inline-block; 
    padding: 5px 12px; 
    font-size: 11px; 
    font-weight: bold; 
    border-radius: 4px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 12px; 
}
.badge-hit      { background: #e74c3c; }
.badge-new      { background: #2ecc71; }
.badge-classic  { background: #9b59b6; }
.badge-popular  { background: #3498db; }
.badge-premium  { background: #f1c40f; color: #000; }

.v2-slide-content h2 { 
    font-size: 32px; 
    font-weight: 800; 
    margin: 0 0 12px 0; 
    color: #fff; 
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); 
}

.v2-slide-content p { 
    font-size: 14px; 
    color: #b3b3b3; 
    line-height: 1.6; 
    margin: 0 0 24px 0; 
}

/* PRZYCISK AKCJI SLIDERA */
.v2-btn-watch { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    background: #e74c3c; 
    color: #fff !important; 
    font-weight: bold; 
    padding: 12px 28px; 
    border-radius: 6px; 
    text-decoration: none !important; 
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4); 
    transition: all 0.3s; 
}
.v2-btn-watch:hover { 
    background: #c0392b; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6); 
}

.v2-slider-dots { 
    position: absolute; 
    bottom: 20px; 
    left: 40px; 
    display: flex; 
    gap: 8px;
    z-index: 10;
}
.v2-slider-dots label { 
    width: 30px; 
    height: 4px; 
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 2px; 
    cursor: pointer; 
    transition: background 0.3s; 
}

/* ==========================================================================
   PROJEKT SIATKI KAFELKÓW VOD
   ========================================================================== */
.v2-katalog-wrapper { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}

.v2-section-header h3 { 
    margin: 0 0 15px 0; 
    font-size: 20px; 
    color: #fff; 
    font-weight: 700; 
    border-left: 4px solid #e74c3c; 
    padding-left: 12px; 
}

.v2-letter-divider { 
    display: flex; 
    align-items: center; 
    margin: 15px 0 10px 0; 
}
.v2-letter-divider span { 
    background: #222; 
    color: #e74c3c; 
    font-weight: bold; 
    font-size: 13px; 
    padding: 4px 14px; 
    border-radius: 20px; 
    border: 1px solid #333; 
}

/* KAFELKI VOD - ZINTEGROWANA I ZOPTYMALIZOWANA SIATKA */
.v2-vod-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 20px; 
    width: 100%;
    margin-bottom: 10px;
}

.v2-vod-card { 
    position: relative; 
    background: #141414; 
    border: 1px solid #222; 
    border-radius: 8px; 
    overflow: hidden; 
    display: flex; 
    flex-direction: column; 
    text-decoration: none !important; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.v2-vod-card:hover { 
    transform: translateY(-6px); 
    border-color: #e74c3c; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); 
}

.v2-poster-box { 
    width: 100%; 
    height: 215px; 
    overflow: hidden; 
    background: #0a0a0a; 
}
.v2-poster-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s; 
}
.v2-vod-card:hover .v2-poster-box img { 
    transform: scale(1.08); 
}

.v2-card-details { 
    padding: 12px; 
    background: #141414; 
    border-top: 1px solid #1f1f1f; 
    text-align: center; 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.v2-card-details h4 { 
    margin: 0; 
    color: #eee; 
    font-size: 13px; 
    font-weight: 600; 
    line-height: 1.3; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}
.v2-vod-card:hover .v2-card-details h4 { 
    color: #fff; 
}

/* WARIANT DLA FILMÓW PREMIUM W SIATCE */
.v2-vod-card.is-premium { 
    border-color: rgba(241, 196, 15, 0.3); 
}
.v2-vod-card.is-premium:hover { 
    border-color: #f1c40f; 
}
.v2-card-badge-premium { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: #f1c40f; 
    color: #000; 
    font-size: 10px; 
    font-weight: bold; 
    padding: 3px 8px; 
    border-radius: 4px; 
    z-index: 2; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); 
}

/* ==========================================================================
   UZUPEŁNIENIE I KOREKTA ZASAD SLIDERA
   ========================================================================== */
.v2-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #0d0d0d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.v2-slides-container { 
    display: flex !important; 
    width: 600% !important; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* KLUCZOWA POPRAWKA: Zabezpieczenie przed zgnieceniem slajdów we flexboxie */
.v2-slide-item { 
    width: 16.6666% !important; 
    flex-shrink: 0 !important;
    min-height: 420px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}

/* UKOŃCZENIE KROPEK NAWIGACYJNYCH SLIDERA */
.v2-slider-dots { 
    position: absolute; 
    bottom: 20px; 
    left: 40px; 
    display: flex; 
    gap: 8px;
    z-index: 10;
}

.v2-slider-dots label { 
    width: 30px; 
    height: 4px; 
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 2px; 
    cursor: pointer; 
    transition: background 0.3s, width 0.3s; 
}

/* ==========================================================================
   UZUPEŁNIENIE KAFELKÓW VOD (EFEKTY HOVER)
   ========================================================================== */
.v2-poster-hover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.v2-vod-card:hover .v2-poster-hover {
    opacity: 1;
}

.v2-play-icon {
    font-size: 42px;
    color: #e74c3c;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v2-vod-card:hover .v2-play-icon {
    transform: scale(1);
}

/* ==========================================================================
   STEROWANIE RADIO-SLIDEREM (PRZESUNIĘCIA PROCENTOWE)
   ========================================================================== */
#slide1:checked ~ .v2-slides-container { transform: translateX(0) !important; }
#slide2:checked ~ .v2-slides-container { transform: translateX(-16.6666%) !important; }
#slide3:checked ~ .v2-slides-container { transform: translateX(-33.3333%) !important; }
#slide4:checked ~ .v2-slides-container { transform: translateX(-50%) !important; }
#slide5:checked ~ .v2-slides-container { transform: translateX(-66.6666%) !important; }
#slide6:checked ~ .v2-slides-container { transform: translateX(-83.3333%) !important; }

#slide1:checked ~ .v2-slider-dots label[for="slide1"],
#slide2:checked ~ .v2-slider-dots label[for="slide2"],
#slide3:checked ~ .v2-slider-dots label[for="slide3"],
#slide4:checked ~ .v2-slider-dots label[for="slide4"],
#slide5:checked ~ .v2-slider-dots label[for="slide5"],
#slide6:checked ~ .v2-slider-dots label[for="slide6"] { 
    background: #ffffff !important; 
    width: 45px !important; 
}

/* ==========================================================================
   ANIMACJE I WIDŻETY W SIDEBARZE
   ========================================================================== */
@keyframes pulseLive { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }
@keyframes shineGold { 0% { transform: translate(-30%, -30%) rotate(45deg); } 100% { transform: translate(30%, 30%) rotate(45deg); } }

/* DODATKOWY FIX DLA CHATBOXA / REKLAM MYBB POD SPODEM */
.v2-main-container::after {
    content: "";
    display: table;
    clear: both;
}
/* POPRAWKA DLA PRZESUNIĘĆ PO NAJECHANIU NA LISTĘ TOP 10 */
.v2-top-list li {
    background: transparent;
    transition: background 0.2s ease, padding-left 0.2s ease;
}
.v2-top-list li:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    padding-left: 20px !important;
    color: #fff !important;
}

/* EFEKT DLA PRZYCISKU DODAWANIA WIDEO */
.v2-btn-add-video {
    box-shadow: 0 2px 6px rgba(46,204,113,0.2);
}
.v2-btn-add-video:hover {
    background: #27ae60 !important;
    box-shadow: 0 4px 12px rgba(46,204,113,0.4);
}

/* CAŁKOWITE USUNIĘCIE MYŚLNIKÓW I KROPEK WYMUSZONYCH PRZEZ MYBB W SIDEBARZE */
.v2-top-list {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.v2-top-list li {
    list-style: none !important;
    list-style-type: none !important;
    background: transparent;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.v2-top-list li::before {
    content: none !important; /* Blokuje wstrzykiwanie myślników przez szablony forów */
}

.v2-top-list li:hover {
    background: rgba(255, 255, 255, 0.02) !important;
    padding-left: 20px !important;
    color: #fff !important;
}

/* WŁAŚCIWY PODZIAŁ AUTOMATYCZNEJ SIATKI PLAKATÓW */
.v2-vod-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin-bottom: 10px;
}

/* ==========================================================================
   STYLIZACJA BLOKU ALERTU ADBLOCK (VOD)
   ========================================================================== */
.v2-adblock-alert-box {
    background: rgba(231, 76, 60, 0.07); /* Delikatne, ciemnoczerwone tło kinowe */
    border: 1px solid rgba(231, 76, 60, 0.25); /* Dopasowana, subtelna ramka */
    border-left: 4px solid #e74c3c; /* Wyrazisty czerwony pasek akcentu po lewej stronie */
    border-radius: 4px;
    padding: 12px 16px;
    margin: 15px 0;
    box-sizing: border-box;
    width: 100%;
    clear: both;
}

/* KONTENER WEWNĘTRZNY DLA WYRÓWNANIA */
.v2-alert-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* STYL IKONY (WYKRZYKNIK W TRÓJKĄCIE) */
.v2-alert-icon {
    font-size: 20px;
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* FORMATOWANIE TEKSTU KOMUNIKATU */
.v2-alert-text {
    font-size: 12px;
    color: #dfb2ae; /* Czytelny, lekko zgaszony odcień czerwieni dla ciemnych motywów */
    line-height: 1.5;
}

/* TYTUŁ WSKAZÓWKI */
.v2-alert-title {
    font-weight: 700;
    color: #ffffff; /* Pełna biel dla mocnego wyróżnienia nagłówka alertu */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

/* ==========================================================================
   STYLIZACJA BLOKU DODAWANIA WIDEO (SIDEBAR VOD)
   ========================================================================== */
/* OPIS TEKSTOWY WIDŻETU */
.v2-add-video-text {
    margin: 0 0 15px 0 !important; 
    font-size: 12px !important; 
    line-height: 1.5 !important; 
    color: #aaaaaa !important; 
    text-align: left !important;
}

/* ZIELONY PRZYCISK INTERAKTYWNY */
.v2-btn-add-video {
    display: block; 
    background: #2ecc71; 
    color: #ffffff !important; 
    font-weight: 700; 
    text-align: center; 
    padding: 10px; 
    border-radius: 4px; 
    font-size: 11px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    text-decoration: none !important; 
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.2);
    transition: all 0.2s ease-in-out;
}

/* REAKCJA PRZYCISKU NA HOVER */
.v2-btn-add-video:hover {
    background: #27ae60 !important;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4) !important;
    transform: translateY(-1px);
}