/* ==========================================================================
   INTERFEJS ODTWARZACZA PREMIUM (KOMPATYBILNY Z TWOIM HTML) - NEDDS24.PL
   ========================================================================== */

.cda-player-fluid-container {
    position: relative !important;
    width: 100% !important; /* Rozciągnięcie kontenera na pełną szerokość Twojej tabeli */
    padding-bottom: 56.25% !important; /* Wymuszenie idealnych proporcji kinowych 16:9 */
    height: 0 !important; /* Wysokość oblicza się sama z szerokości, zapobiegając rozciąganiu */
    background: #000 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5) !important;
    margin: 0 auto !important;
}

/* Właściwy odtwarzacz dopasowany w pionie i poziomie do proporcji kontenera */
.cda-player-fluid-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important; /* Wypełnia przestrzeń bez zniekształcania obrazu */
    border: none !important;
    z-index: 10 !important;
}

/* 2. PEŁNE ROZCIĄGNIĘCIE I PRZYCIEMNIENIE LINII POZIOMEJ (HR) */
.trow2 hr {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    clear: both !important;
    border: none !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.08) !important; /* Subtelny, nie jaskrawy kolor linii */
    margin: 20px 0 15px 0 !important;
    box-shadow: none !important;
}

/* Wyrównanie dolnego paska nawigacji do krawędzi okna */
.trow2 > div[style*="display: flex"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. PRZYCISK ZAPISU OBEJRZEŃ ORAZ NAVI DLA STREFY THEAD / TROW2 */
.mybb-custom-watch-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.2s ease !important;
}
.mybb-custom-watch-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}
.mybb-custom-watch-btn.completed {
    background: #22c55e !important;
    border-color: #22c55e !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4) !important;
}

.mybb-custom-nav-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    cursor: pointer !important;
}
.mybb-custom-nav-btn[disabled] {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.mybb-cinema-toggle-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    padding: 8px 14px !important;
    font-size: 12px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}
.mybb-cinema-toggle-btn:hover {
    background: rgba(6, 182, 212, 0.15) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    color: #06b6d4 !important;
}

/* 4. COŚ DLA TRYBU KINOWEGO (MASKOWANIE PANELU) */
.cinema-mode-overlay {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    background: rgba(0, 0, 0, 0.96) !important;
    z-index: 999998 !important; /* Zasłona nad całym forum */
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease !important;
}
.cinema-mode-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* KLASA UKRYWAJĄCA SIDEBAR POD CZARNĄ MASKĘ (URUCHAMIANA PRZEZ JS) */
.forum-cinema-hide-sidebar {
    position: relative !important;
    z-index: 100 !important; /* Spycha boczny panel głęboko pod warstwę seansu */
}

/* 5. FIX DLA WYRÓWNANIA SZCZEGÓŁÓW ODCINKA (SIDEBAR) */
.mybb-clean-spec-box {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.mybb-spec-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-size: 13px !important;
    width: 100% !important;
}
.mybb-spec-item i.fa {
    display: inline-block !important;
    font: normal normal normal 14px/1 FontAwesome !important;
    font-size: inherit !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}
.spec-label { color: #cbd5e1 !important; font-weight: bold; text-align: left; display: flex !important; align-items: center !important; }
.spec-value { color: #fff !important; font-weight: 500; text-align: right; padding-right: 12px !important; }

.mybb-alert-row {
    margin-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: rgba(239, 68, 68, 0.08) !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    box-sizing: border-box !important;
}
.alert-text { color: #fca5a5 !important; font-weight: bold; font-size: 12px; }
.alert-link { color: #ef4444 !important; font-weight: bold; text-decoration: none; font-size: 12px; }
.alert-link:hover { text-decoration: underline !important; }

/* Odblokowanie nachodzących stref pod reklamami */
.forum + br, 
div[style*="float: left"] + br + div {
    clear: both !important;
    display: block !important;
    margin-top: 20px !important;
    text-align: center !important;
    width: 100% !important;
}

/* 6. RESPONSIVELNESS (DOSTOSOWANIE POD TELEFONY) */
@media (max-width: 850px) {
    .forum, .sidebar { width: 100% !important; float: none !important; }
    .sidebar { margin-top: 15px !important; }
    
    /* Na smartfonach porzucamy sztywne 434px na rzecz płynnego skalowania wideo 16:9 */
    .cda-player-fluid-container { padding-bottom: 56.25% !important; height: 0 !important; }
    .cda-player-fluid-container iframe { position: absolute !important; top: 0 !important; left: 0 !important; height: 100% !important; }
}
