/* ==========================================================================
   STREFA VIDEO NEDDS24.PL - TRYB KINOWY ODTWARZACZA (player.css)
   ========================================================================== */

.video-watch-container {
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 30px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* --- GÓRNY PASEK NAWIGACJI --- */
.player-top-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background-color: #141414 !important;
    border: 1px solid #222222 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    margin-bottom: 16px !important;
    box-sizing: border-box !important;
}

/* Szklany przycisk powrotu w stylu forum Nedds24 */
.btn-video-back {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    padding: 0 16px !important;
    background: linear-gradient(to bottom, #3a3a3a 0%, #303030 50%, #202020 50%, #252525 100%) !important;
    border: 1px solid #151515 !important;
    border-top: 1px solid #4a4a4a !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 4px rgba(0,0,0,0.4) !important;
    transition: all 0.2s ease !important;
}

.btn-video-back i { font-size: 12px !important; transition: all 0.2s ease !important; }
.btn-video-back .icon-arrow { margin-right: -4px !important; opacity: 0 !important; transform: translateX(4px) !important; }
.btn-video-back .icon-home { margin-right: 8px !important; color: #ffcc00 !important; }

.btn-video-back:hover {
    background: linear-gradient(to bottom, #5a2022 0%, #4a1517 50%, #350a0c 50%, #400d0f 100%) !important;
    border-color: #200506 !important;
    border-top-color: #7a2d30 !important;
}

.btn-video-back:hover .icon-arrow { opacity: 1 !important; transform: translateX(0) !important; margin-right: 6px !important; }
.btn-video-back:hover .icon-home { color: #ffffff !important; }

.player-current-title {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
}

.player-current-title h1 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #ffffff !important;
}

.ep-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    color: #00a8ff !important;
    background-color: rgba(0, 168, 255, 0.1) !important;
    border: 1px solid rgba(0, 168, 255, 0.15) !important;
}

/* --- KINOWA OBUDOWA PLAYERA (Format 16:9) --- */
.cinema-player-wrapper {
    width: 100% !important;
    background-color: #000000 !important;
    border: 1px solid #222222 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9) !important;
    box-sizing: border-box !important;
}

.player-screen-glow {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important; /* Proporcja kinowa panoramiczna */
    background-color: #000000 !important;
}

.embedded-video-player {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background-color: #000000 !important;
}

/* --- PASEK KONTROLI POD PLAYEREM --- */
.player-control-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: #141414 !important;
    border: 1px solid #222222 !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    margin-top: 16px !important;
    box-sizing: border-box !important;
}

.player-nav-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Przyciski nawigacyjne odcinków w szklanym połysku */
.player-nav-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 30px !important;
    padding: 0 16px !important;
    background: linear-gradient(to bottom, #3a3a3a 0%, #303030 50%, #202020 50%, #252525 100%) !important;
    border: 1px solid #151515 !important;
    border-top: 1px solid #4a4a4a !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 2px 4px rgba(0,0,0,0.3) !important;
    transition: all 0.15s ease !important;
}

.player-nav-btn i { font-size: 11px !important; margin: 0 4px !important; }

.player-nav-btn:hover:not(.disabled) {
    background: linear-gradient(to bottom, #10557a 0%, #054060 50%, #002d4d 50%, #003554 100%) !important;
    border-color: #001a33 !important;
    border-top-color: #1a75ff !important;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.4) !important;
}

.player-nav-btn.disabled {
    background: linear-gradient(to bottom, #1d1d1d 0%, #101010 100%) !important;
    border-color: #0b0b0b !important;
    border-top-color: #222222 !important;
    color: #444444 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

/* Szklany przycisk zgłoszenia awarii wideo */
.btn-report-error {
    display: inline-flex !important;
    align-items: center !important;
    height: 30px !important;
    padding: 0 14px !important;
    background: linear-gradient(to bottom, #2d1414 0%, #240c0c 50%, #1a0505 50%, #1f0808 100%) !important;
    border: 1px solid #150505 !important;
    border-top: 1px solid #441a1a !important;
    border-radius: 6px !important;
    color: #ffcccc !important;
    font-size: 11px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
}

.btn-report-error i { margin-right: 6px !important; }

.btn-report-error:hover {
    background: linear-gradient(to bottom, #5a2022 0%, #4a1517 50%, #350a0c 50%, #400d0f 100%) !important;
    border-color: #200506 !important;
    border-top-color: #7a2d30 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(184, 29, 36, 0.5) !important;
}

/* --- DWUKOLUMNOWY UKŁAD METADANYCH ODCINKA --- */
.player-meta-layout {
    display: flex !important;
    gap: 20px !important;
    margin-top: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Kolumna 1: Szczegóły techniczne (Szerokość stała 300px) */
.player-spec-box {
    width: 300px !important;
    background-color: #141414 !important;
    border: 1px solid #222222 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.player-spec-box h4, .player-desc-box h4 {
    margin: 0 0 14px 0 !important;
    font-size: 13px !important;
    font-weight: bold !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.player-spec-box h4 i { color: #00a8ff !important; } /* Niebieska ikonka parametrów */
.player-desc-box h4 i { color: #b81d24 !important; } /* Czerwona ikonka opisu */

.spec-item {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 13px !important;
    color: #888888 !important;
    padding: 8px 0 !important;
}

.spec-item:not(:last-child) {
    border-bottom: 1px solid #1f1f1f !important;
}

.spec-item span {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Kolumna 2: Blok Opisu (Zajmuje resztę środka) */
.player-desc-box {
    flex-grow: 1 !important;
    background-color: #141414 !important;
    border: 1px solid #222222 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.player-desc-box h5 {
    margin: 0 0 8px 0 !important;
    font-size: 15px !important;
    font-weight: bold !important;
    color: #b81d24 !important; /* Nazwa odcinka w kolorze wina */
}

.player-desc-box p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #999999 !important;
    line-height: 1.6 !important;
}

/* --- DOSTOSOWANIE MOBILNE (RWD) --- */
@media (max-width: 800px) {
    .player-top-header { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
    .player-current-title { flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
    .player-control-bar { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    .player-nav-buttons { width: 100% !important; }
    .player-nav-btn { flex: 1 !important; }
    .btn-report-error { width: 100% !important; justify-content: center !important; }
    
    .player-meta-layout { flex-direction: column !important; }
    .player-spec-box { width: 100% !important; }
}
