/* ==========================================================================
   STREFA VIDEO NEDDS24.PL - ABSOLUTNIE PEŁNY SZEF SYSTEM (episodes.css)
   ========================================================================== */

.episodes-section {
    width: 100% !important;
    margin-top: 30px !important;
    box-sizing: border-box !important;
}

/* --- NAGŁÓWEK Z WYBOREM INNYCH SERIALI --- */
.season-header {
    font-size: 16px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    background-color: #1f1f1f !important;
    border: 1px solid #333333 !important;
    border-radius: 4px !important;
    margin-bottom: 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.season-header-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.season-header-title i {
    color: #966d3a !important; /* Szlachetne bursztynowe złoto */
}

/* Dostosowanie natywnego selecta MyBB do stylu premium */
.series-select-wrapper {
    position: relative !important;
    display: inline-block !important;
}

.series-custom-select {
    background-color: #0b0b0b !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
    border-radius: 4px !important;
    padding: 6px 36px 6px 12px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.series-custom-select:hover {
    border-color: #966d3a !important;
}

.select-chevron {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 10px !important;
    color: #666666 !important;
    pointer-events: none !important;
}

/* --- PANEL NAWIGACJI (FILTR + STRONY) --- */
.video-nav-control-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    background-color: #141414 !important;
    padding: 10px !important;
    border: 1px solid #222222 !important;
    border-radius: 5px !important;
}

/* Wyszukiwarka odcinków */
.ep-search-box {
    position: relative !important;
    width: 300px !important;
    max-width: 100% !important;
}

.ep-search-box .search-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #444444 !important;
    font-size: 13px !important;
}

.ep-search-box input {
    width: 100% !important;
    background-color: #1c1c1c !important;
    border: 1px solid #2d2d2d !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 10px 12px 10px 36px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.ep-search-box input:focus {
    border-color: #966d3a !important;
    outline: none !important;
    box-shadow: 0 0 10px rgba(150, 109, 58, 0.2) !important;
}

/* --- NOWOCZESNA NAWIGACJA ZAKŁADEK ODCINKÓW --- */
.video-page-navigation {
    display: flex !important;
    gap: 6px !important;
}

.page-nav-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    padding: 0 16px !important;
    background-color: #101010 !important;
    border: 1px solid #1f1f1f !important;
    color: #777777 !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
}

/* Efekt najechania myszką (Hover) */
.page-nav-btn:hover:not(.active) {
    color: #ffffff !important;
    border-color: #966d3a !important;
    background-color: rgba(150, 109, 58, 0.1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0 8px rgba(150, 109, 58, 0.3) !important;
}

/* --- LOGIKA PRZEŁĄCZANIA STRON (AKTYWNY STAN BURSZTYN-ZŁOTO) --- */
#page-tab-1:checked ~ .video-nav-control-bar .btn-1,
#page-tab-2:checked ~ .video-nav-control-bar .btn-2,
#page-tab-3:checked ~ .video-nav-control-bar .btn-3,
#page-tab-4:checked ~ .video-nav-control-bar .btn-4,
#page-tab-5:checked ~ .video-nav-control-bar .btn-5,
#page-tab-6:checked ~ .video-nav-control-bar .btn-6 {
    background: #966d3a !important;
    border-color: #966d3a !important;
    color: #ffffff !important;
    font-weight: bold !important;
    text-shadow: -1px -1px 0px #000000, 1px 1px 1px rgba(0,0,0,0.5) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 6px rgba(150, 109, 58, 0.4) !important;
}

/* --- UKRYWANIE ELEMENTÓW AKTYWACJI I PRZEDZIAŁÓW STRON --- */
.page-radio-trigger { 
    display: none !important; 
    visibility: hidden !important; 
}

.episodes-list { 
    display: none !important; 
    width: 100% !important; 
}

/* --- NAGŁÓWEK TABELI ODCINKÓW (LEGENDA KOLUMN) --- */
.episodes-table-header { 
    display: flex !important; 
    background: #1a1a1a !important; 
    border: 1px solid #222 !important; 
    padding: 8px 15px !important; 
    font-size: 11px !important; 
    font-weight: bold !important; 
    color: #888 !important; 
    text-transform: uppercase !important; 
    border-radius: 4px 4px 0 0 !important; 
    margin-bottom: -1px !important; 
}

.th-item { box-sizing: border-box !important; }
.th-num { width: 5% !important; text-align: center !important; }
.th-title { width: 22% !important; padding-left: 10px !important; }
.th-desc { width: 45% !important; }
.th-date { width: 13% !important; text-align: center !important; }
.th-actions { width: 15% !important; text-align: center !important; }

/* --- WIERSZE LISTY ODCINKÓW PREMIUM --- */
.episode-row { 
    display: flex !important; 
    align-items: center !important; 
    background: #141414 !important; 
    border: 1px solid #222 !important; 
    padding: 12px 15px !important; 
    gap: 15px !important; 
    transition: background 0.2s !important; 
    border-top: none !important; 
}

.episode-row:hover { 
    background: rgba(255,255,255,0.01) !important; 
}

.ep-meta { 
    display: flex !important; 
    align-items: center !important; 
    width: 85% !important; 
}

.ep-number { 
    width: 6% !important; 
    font-size: 14px !important; 
    font-weight: bold !important; 
    color: #966d3a !important; 
    text-align: center !important; 
}

.ep-title-block { 
    width: 26% !important; 
    padding-right: 15px !important; 
    box-sizing: border-box !important; 
}

.ep-title { 
    font-size: 12px !important; 
    font-weight: bold !important; 
    color: #fff !important; 
    display: block !important; 
}

.ep-mid-description { 
    width: 53% !important; 
    font-size: 11.5px !important; 
    color: #aaa !important; 
    margin: 0 !important; 
    padding-right: 15px !important; 
    line-height: 1.4 !important; 
}

.ep-date { 
    width: 15% !important; 
    font-size: 11px !important; 
    color: #666 !important; 
    text-align: center !important; 
}

/* INTERAKTYWNE PRZYCISKI OGLĄDANIA (MYBB BUTTONS STYLE) */
.ep-actions { 
    width: 15% !important; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 4px !important; 
}

.ep-btn, .btn-report { 
    display: block !important; 
    text-align: center !important; 
    padding: 5px !important; 
    font-size: 10px !important; 
    font-weight: bold !important; 
    text-transform: uppercase !important; 
    border-radius: 3px !important; 
    text-decoration: none !important; 
    border: 1px solid #1a1a1a !important; 
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1) !important; 
}

.dub-btn { 
    background: linear-gradient(to bottom, #555555 0%, #444444 49%, #333333 50%, #252525 100%) !important; 
    color: #fff !important; 
}

.dub-btn i { 
    color: #2ecc71 !important; 
    margin-right: 3px !important; 
}

.ep-btn.disabled { 
    background: #1c1c1c !important; 
    color: #444 !important; 
    border-color: #222 !important; 
    box-shadow: none !important; 
    cursor: not-allowed !important; 
}

.ep-btn.disabled i { 
    color: #444 !important; 
}

/* STRUKTURA ZAGINIONYCH EPIZODÓW */
.missing-episode { 
    background: rgba(231, 76, 60, 0.02) !important; 
}

.ep-status-tag { 
    font-size: 9px !important; 
    background: rgba(231,76,60,0.15) !important; 
    color: #e74c3c !important; 
    padding: 1px 5px !important; 
    border-radius: 3px !important; 
    font-weight: bold !important; 
    display: inline-block !important; 
    margin-top: 2px !important; 
}

.btn-report { 
    background: linear-gradient(to bottom, #a33c32 0%, #8e3228 49%, #7d2a20 50%, #611e16 100%) !important; 
    color: #fff !important; 
    border-color: #4a1510 !important; 
}

.btn-report i { 
    color: #e74c3c !important; 
    margin-right: 3px !important; 
}

/* ETYKIETY RETRO BADGES */
.ep-tag { 
    font-size: 9px !important; 
    padding: 1px 5px !important; 
    border-radius: 3px !important; 
    font-weight: bold !important; 
    display: inline-block !important; 
    margin-top: 3px !important; 
}

.tag-new { background: rgba(46, 204, 113, 0.15) !important; color: #2ecc71 !important; }
.tag-hit { background: rgba(241, 196, 15, 0.15) !important; color: #f1c40f !important; }
.tag-recommend { background: rgba(52, 152, 219, 0.15) !important; color: #3498db !important; }
