/* ==========================================================================
   STREFA VIDEO NEDDS24.PL - IDEALNIE WYRÓWNANA SIATKA ODCINKÓW (episodes.css)
   ========================================================================= */

.episodes-section {
    width: 100% !important;
    margin-top: 30px !important;
    box-sizing: border-box !important;
}

/* --- NAGŁÓWEK SEZONU --- */
.season-header {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    background-color: #1f1f1f !important;
    border: 1px solid #333333 !important;
    border-radius: 4px !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

.season-header i {
    color: #b81d24 !important; 
    font-size: 16px !important;
}

/* --- LISTA PASKÓW ODCINKÓW --- */
.episodes-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.episode-row {
    display: grid !important;
    grid-template-columns: 40px 320px 1fr 120px 280px !important; /* Zmieniono 250px na 320px */
    align-items: center !important;
    background-color: #141414 !important;
    border: 1px solid #222222 !important;
    border-radius: 4px !important;
    padding: 8px 16px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
    box-sizing: border-box !important;
    gap: 16px !important;
}

.episode-row:hover {
    background-color: #1c1c1c !important;
    border-color: #333333 !important;
}

/* Łącznik flexboxa zastąpiony bezpośrednią siatką na wprost rodzica */
.ep-meta {
    display: contents !important; /* Pozwala siatce .episode-row kontrolować elementy dzieci bezpośrednio */
}

/* 1. KOLUMNA: NUMER ODCINKA */
.ep-number {
    font-size: 16px !important;
    font-weight: 700 !important; /* Pogrubienie numeru, aby był bardziej wyrazisty */
    color: #888888 !important;   /* Jaśniejszy szary - teraz idealnie widoczny na ciemnym tle */
    text-align: center !important;
    transition: color 0.2s ease !important;
}

/* Stan po najechaniu myszką na pasek odcinka - numer mocno rozbłyska na biało */
.episode-row:hover .ep-number {
    color: #ffffff !important;   /* Czysta biel na hover dla nowoczesnego efektu premium */
}

/* 2. KOLUMNA: TYTUŁ I TAGI (Zablokowana na 250px, opis zacznie się zawsze w tym samym miejscu) */
.ep-title-block {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.ep-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 3. KOLUMNA: OPIS NA ŚRODKU (Idealnie równy start, ucina się elegancko wielokropkiem) */
.ep-mid-description {
    font-size: 13px !important;
    color: #666666 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-style: italic !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; 
    min-width: 0 !important;
}

.episode-row:hover .ep-mid-description {
    color: #999999 !important;
}

/* 4. KOLUMNA: DATA PREMIERY (Perfekcyjnie wyrównana kolumna) */
.ep-date {
    font-size: 11px !important;
    color: #666666 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}

/* 5. KOLUMNA: PRZYCISKI STREFY PRAWEJ (Zrównane do prawej krawędzi paska) */
.ep-actions {
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-end !important;
}

/* --- ETYKIETY (TAGI) --- */
.ep-status-tag {
    font-size: 10px !important;
    font-weight: bold !important;
    color: #b81d24 !important;
    background-color: rgba(184, 29, 36, 0.1) !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    flex-shrink: 0 !important;
}

.ep-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 2px 7px !important;
    border-radius: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    flex-shrink: 0 !important;
}

.tag-new {
    color: #00a8ff !important;
    background-color: rgba(0, 168, 255, 0.1) !important;
    border: 1px solid rgba(0, 168, 255, 0.15) !important;
}

.tag-hit {
    color: #ffb703 !important;
    background-color: rgba(255, 183, 3, 0.1) !important;
    border: 1px solid rgba(255, 183, 3, 0.15) !important;
}

.tag-recommend {
    color: #2ecc71 !important;
    background-color: rgba(46, 204, 113, 0.1) !important;
    border: 1px solid rgba(46, 204, 113, 0.15) !important;
}

/* --- PRZYCISKI WERSJI --- */
.ep-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important; 
    font-size: 11px !important;
    font-weight: bold !important;
    color: #cccccc !important; 
    background-color: #1c1c1c !important; 
    border: 1px solid #333333 !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
}

.ep-btn:hover {
    background-color: #b81d24 !important; 
    border-color: #b81d24 !important;
    color: #ffffff !important; 
    transform: translateY(-1.5px) !important;
    box-shadow: 0 0 12px rgba(184, 29, 36, 0.4) !important;
}

/* --- BRAKI (ODCINKI POSZUKIWANE) --- */
.missing-episode {
    border: 1px dashed #3a2222 !important; 
    background-color: rgba(20, 15, 15, 0.5) !important;
}

.missing-episode:hover {
    background-color: rgba(30, 18, 18, 0.7) !important;
    border-color: #b81d24 !important;
}

/* Zgłoś odcinek automatycznie rozpycha się w swojej sekcji grid, by pasować do reszty guzików */
.btn-report {
    background-color: #271414 !important;
    border-color: #442222 !important;
    color: #ffcccc !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
}

.btn-report:hover {
    background-color: #b81d24 !important;
    border-color: #b81d24 !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 0 12px rgba(184, 29, 36, 0.4) !important;
}

/* --- CAŁKOWITA RESPONSYWNOŚĆ NA TELEFONY (Przełączenie Grida w pion) --- */
@media (max-width: 950px) {
    .episode-row {
        grid-template-columns: 1fr !important; /* Zamienia strukturę tabeli na jedną kolumnę pionową */
        gap: 10px !important;
        padding: 14px !important;
    }
    .ep-title-block {
        width: 100% !important;
    }
    .ep-mid-description {
        width: 100% !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }
    .ep-date {
        width: 100% !important;
    }
    .ep-actions {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    .ep-btn, .btn-report {
        flex: 1 !important;
        justify-content: center !important;
    }
}
/* ==========================================================================
   WSPARCIE DLA REKLAMY I PAGINACJI (episodes.css)
   ========================================================================== */

/* --- BLOK BANERU REKLAMOWEGO --- */
.video-ad-wrapper {
    width: 100% !important;
    margin: 24px 0 !important;
    background-color: #141414 !important;
    border: 1px solid #222222 !important;
    border-radius: 4px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: center !important;
}

.video-ad-wrapper .ad-label {
    font-size: 9px !important;
    font-weight: bold !important;
    color: #444444 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    align-self: flex-start !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.video-ad-wrapper .ad-content-slot {
    width: 100% !important;
    min-height: 90px !important; /* Standardowa wysokość baneru 728x90 */
    background-color: #0b0b0b !important;
    border: 1px dashed #222222 !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.video-ad-wrapper .ad-placeholder {
    color: #555555 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.video-ad-wrapper .ad-placeholder small {
    color: #333333 !important;
    font-size: 11px !important;
}

/* --- KINOWA PAGINACJA --- */
.video-pagination {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 24px 0 10px 0 !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Klocki nawigacji */
.video-pagination .pag-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    background-color: #141414 !important;
    border: 1px solid #222222 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

/* Stan aktywnej podstrony - Świeci na cyjanowy niebieski Twojego forum */
.video-pagination .pag-btn.active {
    background-color: #00a8ff !important;
    border-color: #00a8ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 168, 255, 0.3) !important;
}

/* Podświetlenie przycisków - Reaguje na filmową czerwień */
.video-pagination .pag-btn:hover:not(.active):not(.disabled) {
    background-color: #b81d24 !important;
    border-color: #b81d24 !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 0 10px rgba(184, 29, 36, 0.4) !important;
}

/* Przycisk zablokowany (np. Poprzednia strona na pierwszej karcie) */
.video-pagination .pag-btn.disabled {
    background-color: #0b0b0b !important;
    border-color: #1a1a1a !important;
    color: #2a2a2a !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Trzykropek separatora */
.video-pagination .pag-dots {
    color: #444444 !important;
    font-weight: bold !important;
    padding: 0 4px !important;
    user-select: none !important;
}

/* Podpis informacyjny */
.video-pagination .pag-info {
    font-size: 12px !important;
    color: #555555 !important;
    margin-left: 12px !important;
    font-weight: 500 !important;
}

/* Dostosowanie mobilne paginacji */
@media (max-width: 600px) {
    .video-pagination {
        gap: 6px !important;
    }
    .video-pagination .pag-btn {
        min-width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }
    .video-pagination .pag-info {
        width: 100% !important;
        text-align: center !important;
        margin-left: 0 !important;
        margin-top: 8px !important;
    }
}
/* --- USTALENIE ODSTĘPÓW DLA NOWEJ REKLAMY GÓRNEJ --- */
.video-ad-top {
    margin: 0 0 20px 0 !important; /* Odstęp pod reklamą przed listą odcinków */
}

.video-ad-bottom {
    margin: 24px 0 !important; /* Zachowanie standardowego odstępu dla dolnej reklamy */
}
/* --- BLOKADA I WYŁĄCZANIE NIEAKTYWNYCH PRZYCISKÓW --- */
.ep-btn.disabled, 
.btn-report.disabled {
    background-color: #0b0b0b !important; /* Przygaszone, ciemne tło */
    border-color: #1a1a1a !important;     /* Ciemna, ledwo widoczna ramka */
    color: #333333 !important;            /* Bardzo ciemny, szary tekst */
    cursor: not-allowed !important;       /* Zmiana kursora na znak zakazu */
    
    /* KLUCZOWE: Całkowite odcięcie kliknięć i podświetleń (Hover/Glow/Transform) */
    pointer-events: none !important;      
    transform: none !important;
    box-shadow: none !important;
    user-select: none !important;
}

/* Wyczyszczenie ikon Font Awesome wewnątrz zablokowanego przycisku */
.ep-btn.disabled i, 
.btn-report.disabled i {
    color: #333333 !important;
}