/* Стили для полноэкранного видеоплеера сценариев */
#scenario-video-player {
    position: absolute; /* Изменено с fixed на absolute */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scenario-video-player.hidden {
    display: none;
}

#scenario-video-element {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
/* Стили для кнопки закрытия, адаптированные из new-video-player.css */
#scenario-video-player .close-video-btn {
    position: absolute;
    top: 50px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}