.map_main_h1_text {
    /* Сервисный центр в Омске */
    position: absolute;
    width: 1019px;
    height: 214px;
    left: 31px;
    top: -70px;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: rgb(19, 19, 19);
    font-family: Rubik;
    font-size: 60px;
    font-weight: 600;
    line-height: 65px;
    text-align: left;
    text-transform: uppercase;
}

.map_text_icon {
    /* Icon */
    position: absolute;
    width: 39px;
    height: 54px;
    left: 370px;
    top: 17px; 
}

.gis2 {
    position: absolute;
    background-color: rgb(231, 231, 231);
    width: 40%;
    height: 100%;
}

.gis2_container {
    position: absolute;
    height: 100%;
    width: 60%;
    left: 40%;
}

.callout {
    background-color: cornflowerblue !important;
    border-radius: 10px !important;
}

.gis2_container h2 {
    position: absolute;
    top: 40%;
    left: 30%;
    font-size: 50px;
    font-family: Rubik;
}

.bg_load_map {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.177);
}

.video_block {
    position: absolute;
    margin-top: 180px;
    width: 270px;
    height: 420px;
    left: 100px;
}

.custom-video-player {
    position: relative;
    width: 225px;
    height: 390px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

/* Центрированная кнопка старта */
.center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.play-btn-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1e40af;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.3);
}

.play-btn-large:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(30, 64, 175, 0.4);
}

/* Анимированные круги */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

.ring-2 {
    width: 120px;
    height: 120px;
    animation-delay: 0.5s;
    border-color: rgba(96, 165, 250, 0.4);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Контейнер для контролов внутри видео */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
}

/* Минимальные контролы */
.minimal-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

/* Показываем контролы только при воспроизведении и наведении */
.custom-video-player.playing:hover .minimal-controls {
    opacity: 1;
    pointer-events: all;
}

.mini-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mini-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Прогресс-бар для полноэкранного режима */
.fullscreen-progress {
    padding: 0 20px 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    overflow: visible;
}

.progress {
    position: absolute;
    height: 100%;
    background: #a2c0f1;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s;
}

.custom-video-player.dragging .progress-thumb {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.2);
    transition: transform 0.1s ease;
}

.custom-video-player.dragging .progress {
    transition: width 0.1s ease;
}

/* Улучшаем видимость thumb при hover */
.progress-bar:hover .progress-thumb {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.progress-thumb {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-bar:hover .progress-thumb {
    opacity: 1;
}

/* Стили для полноэкранного режима */
.fullscreen-mode .custom-video-player {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 85%;
    max-width: 1200px;
    max-height: 80vh;
    z-index: 10000;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Фон для полноэкранного режима */
.fullscreen-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.541);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.fullscreen-mode .custom-video-player video {
    border-radius: 15px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullscreen-mode .fullscreen-progress {
    opacity: 1;
}

.fullscreen-mode .minimal-controls {
    opacity: 1;
    pointer-events: all;
    padding-bottom: 15px;
}

/* Скрытие элементов при разных состояниях */
.custom-video-player.playing .center-play-btn {
    opacity: 0;
    pointer-events: none;
}

.custom-video-player:not(.playing) .minimal-controls {
    display: none !important;
}

.custom-video-player.playing .minimal-controls .play-pause-btn i::before {
    content: "\f04c"; /* pause icon */
}

.custom-video-player:not(.playing) .minimal-controls .play-pause-btn i::before {
    content: "\f04b"; /* play icon */
}

/* Прокрутка страницы в полноэкранном режиме */
.fullscreen-mode {
    overflow: auto;
    height: 100vh;
}
