video::-webkit-media-controls-timeline {
    display: none;
}

#videoModal .modal-dialog {
    transition: max-width 0.3s ease;
}

#videoModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

#videoModal .modal-body {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    background: #000;
}

/* Klasy pomocnicze dla proporcji */
.ratio-portrait {
    --bs-aspect-ratio: 177.77%; /* 9:16 */
}

.ratio-landscape {
    --bs-aspect-ratio: 56.25%; /* 16:9 */
}

/* Responsywność dla Portretu (Mobile) */
@media (orientation: portrait) {
    #videoModal .modal-dialog {
        max-width: 90vw;
        margin: 1.75rem auto;
    }
    #videoContainer {
        --bs-aspect-ratio: 177.77%;
    }
}

/* Responsywność dla Pejzażu (Desktop) */
@media (orientation: landscape) {
    #videoModal .modal-dialog {
        max-width: 800px;
    }
    #videoContainer {
        --bs-aspect-ratio: 56.25%;
    }
}

.btn-close-custom {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
    background: rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.btn-close-custom:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.closing-message {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1051 !important;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

.closing-message div {
    display: inline-block;
    background: rgba(0,0,0,0.8) !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
