/* STYL PRZYCISKU GŁÓWNEGO */
.btn-watch-now {
    background: #06b6d4;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    transition: all 0.25s ease;
}
.btn-watch-now:hover {
    background: #0891b2;
    transform: translateY(-2px);
}

/* NAKŁADKA MODALNA (KINOWE PRZYCIEMNIENIE TŁA FORUM) */
.video-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.video-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* CENTROWANY KONTENER MODALA */
.video-modal-wrapper {
    position: relative;
    background: #0f172a;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}
.video-modal-overlay.active .video-modal-wrapper {
    transform: translateY(0);
}

/* PRZYCISK ZAMKNIĘCIA (X) */
.modal-close-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none; color: #fff;
    font-size: 32px; line-height: 1;
    width: 40px; height: 40px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: all 0.2s ease;
}
.modal-close-btn:hover {
    background: #ef4444;
    transform: rotate(90deg);
}

/* WNĘTRZE KONTENERA WIDEO */
.video-watch-container {
    padding: 30px 25px 25px 25px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: #e2e8f0;
}
.player-top-header {
    margin-bottom: 15px;
    padding-right: 50px;
    display: flex;
}
.player-current-title {
    display: flex; align-items: center; gap: 15px;
}
.player-current-title h1 {
    font-size: 20px; margin: 0; color: #fff;
}
.ep-tag {
    background: #06b6d4; color: #fff; padding: 4px 10px;
    border-radius: 20px; font-size: 12px; font-weight: 600;
}

/* WYMUSZENIE IDEALNYCH PROPORCJI 16:9 DLA CDA */
.cinema-player-wrapper {
    position: relative; width: 100%; padding-bottom: 56.25%;
    height: 0; background: #000; border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.player-screen-glow {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
}
.player-screen-glow iframe {
    position: absolute !important; top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    border: none !important; display: block !important;
}

/* PASEK NAWIGACJI POD WIDEO */
.player-control-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(30, 41, 59, 0.5); padding: 15px;
    border-radius: 0 0 12px 12px; border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: none; margin-bottom: 25px;
}
.player-nav-buttons, .player-action-buttons { display: flex; gap: 10px; }
.player-nav-btn, .btn-report-error {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 6px; text-decoration: none;
    font-size: 14px; font-weight: 500; color: #fff;
    background: rgba(255, 255, 255, 0.08); transition: all 0.2s;
}
.player-nav-btn:not(.disabled):hover { background: #06b6d4; }
.player-nav-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.btn-report-error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.btn-report-error:hover { background: rgba(239, 68, 68, 0.3); }

/* DETALE I OPIS */
.player-meta-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.player-spec-box, .player-desc-box { background: rgba(30, 41, 59, 0.3); border: 1px solid rgba(255, 255, 255, 0.05); padding: 15px; border-radius: 8px; }
.player-spec-box h4, .player-desc-box h4 { margin: 0 0 10px 0; font-size: 15px; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 5px; }
.spec-content { display: flex; flex-direction: column; gap: 8px; }
.spec-item { font-size: 13px; color: #94a3b8; }
.spec-item span { color: #fff; float: right; }
.player-desc-box h5 { margin: 0 0 5px 0; color: #fff; }
.player-desc-box p { margin: 0; font-size: 13px; line-height: 1.5; color: #cbd5e1; }

/* DOSTOSOWANIE DLA SMARTFONÓW */
@media (max-width: 768px) {
    .player-meta-layout { grid-template-columns: 1fr; }
    .player-control-bar { flex-direction: column; gap: 10px; }
    .player-nav-btn, .btn-report-error { width: 100%; justify-content: center; }
    .player-top-header { padding-right: 40px; }
    .player-current-title h1 { font-size: 16px; }
}