  
        /* Основной контейнер для видео */
        .stories-container {
            width: 100%;
            position: relative;
            margin: 0 auto;
            overflow: hidden;
        }
		
		.stories-container div {
			overflow: visible;
		}
        
        /* Мобильный вид - вертикальные сторис (по умолчанию) */
        .video-sequence {
            display: flex;
            flex-direction: column;
            gap: 20px;
            max-width: 400px;
            margin: 0 auto;
            height: 85vh;
            max-height: 700px;
            position: relative;
        }
        
        /* Десктопный вид - карусель из 3 видео */
        @media (min-width: 769px) {
            .video-sequence {
                display: flex;
                flex-direction: row;
                max-width: 100%;
                height: auto;
                max-height: none;
                transition: transform 0.5s ease;
                gap: 25px;
            }
        }
        
        /* Общий блок видео */
        .video-block {
            background-color: #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            position: relative;
            height: 100%;
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }
        
        .video-block.active {
            box-shadow: 0 15px 40px rgba(0, 149, 246, 0.2);
            transform: translateY(-5px);
        }
        
        /* Мобильный вид - вертикальный сторис */
        .video-block {
            /* В мобильном виде все блоки скрыты, кроме активного */
            display: none;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        
        .video-block.active {
            display: flex;
        }
        
        /* Десктопный вид - 3 видео в ряд */
        @media (min-width: 769px) {
            .video-block {
                display: flex;
                position: relative;
                height: 600px;
                flex: 0 0 calc((100% - 50px) / 3);
                min-width: 0;
            }
            
            .video-block.active {
                transform: translateY(-5px);
            }
        }
        
        /* Заголовок видео */
        .video-header {
            padding: 20px 20px 15px;
            background-color: rgba(255, 255, 255, 0.9);
            z-index: 20;
            position: relative;
        }
        
        /* Прогресс-бары (только для мобильной версии) */
        .progress-bars {
            display: flex;
            gap: 5px;
            margin-bottom: 15px;
        }
        
        @media (min-width: 769px) {
            .progress-bars {
                display: none;
            }
        }
        
        .progress-bar {
            height: 3px;
            flex-grow: 1;
            background-color: rgba(0, 0, 0, 0.2);
            border-radius: 2px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            width: 0%;
            background-color: #0095f6;
            border-radius: 2px;
            transition: width 0.1s linear;
        }
        
        .video-block.active .progress-bar.active .progress-fill {
            background-color: #0095f6;
        }
        
        /* Заголовок и номер видео */
        .video-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #1d1d1f;
            margin-bottom: 5px;
        }
        
        .video-number {
            font-size: 0.9rem;
            color: rgba(0, 0, 0, 0.6);
        }
        
        /* Контейнер для видео */
        .video-container {
            flex: 1;
            position: relative;
            overflow: hidden;
        }
        
        .video-player {
            width: 100%;
            height: 100%;
            object-fit: cover;
            cursor: pointer;
        }
        
        /* Иконка воспроизведения при наведении на видео */
        .video-play-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: rgba(0, 0, 0, 0.3);
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 5;
        }
        
        .video-container:hover .video-play-overlay {
            opacity: 1;
        }
        
        .play-icon {
            font-size: 4rem;
            color: rgba(255, 255, 255, 0.8);
            transition: transform 0.3s;
        }
        
        .video-container:hover .play-icon {
            transform: scale(1.1);
        }
        
        /* Описание видео */
        .video-description {
            padding: 20px;
            font-size: 0.95rem;
            line-height: 1.6;
            color: #1d1d1f;
            background-color: rgba(255, 255, 255, 0.9);
            max-height: 120px;
            overflow-y: auto;
        }
        
        @media (max-width: 768px) {
            .video-description {
                background-color: rgba(255, 255, 255, 0.8);
                backdrop-filter: blur(10px);
                border-radius: 15px;
                margin: 15px;
                padding: 15px;
                position: relative;
                z-index: 20;
                max-height: none;
            }
        }
        
        /* Кнопки управления видео */
        .video-controls {
            position: absolute;
            bottom: 20px;
            right: 20px;
            display: flex;
            gap: 10px;
            z-index: 10;
        }
        
        /* Скрытие панели управления видео, если отключено в настройках */
        .hide-video-controls .video-controls {
            display: none !important;
        }
        
        .control-btn {
			display:none;
            background-color: rgba(0, 0, 0, 0.1);
            border: none;
            color: #1d1d1f;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            backdrop-filter: blur(5px);
            transition: all 0.2s;
        }
        
        .control-btn:hover {
            background-color: rgba(0, 0, 0, 0.2);
            transform: scale(1.05);
        }
        
        .control-btn i {
            font-size: 1.2rem;
        }
        
        .play-pause-btn {
            width: 44px;
            height: 44px;
            background-color: rgba(0, 0, 0, 0.15);
        }
        
        @media (max-width: 768px) {
            .video-controls {
                bottom: 70px;
                right: 18%;
                transform: translateX(50%);
                width: 100%;
                justify-content: center;
                gap: 7px;
            }
        }
        
        /* Навигационные стрелки (только для мобильной версии) */
        .nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background-color: rgba(0, 0, 0, 0.1);
            border: none;
            color: #1d1d1f;
            border-radius: 50%;
            display: none;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 100;
            backdrop-filter: blur(5px);
            transition: all 0.2s;
        }
        
        .nav-arrow:hover {
            background-color: rgba(0, 0, 0, 0.2);
        }
        
        /* Скрытие навигационных стрелок, если отключено в настройках */
        .hide-nav-arrows .nav-arrow {
            display: none !important;
        }
        
        @media (max-width: 768px) {
            .nav-arrow {
                display: flex;
            }
            
            .nav-arrow.prev {
                left: 10px;
            }
            
            .nav-arrow.next {
                right: 10px;
            }
        }
        
        /* Индикатор позиции (только для мобильной версии) */
        .position-indicator {
            display: none;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }
        
        /* Скрытие индикатора позиции, если отключено в настройках */
        .hide-position-indicator .position-indicator {
            display: none !important;
        }
        
        @media (max-width: 768px) {
            .position-indicator {
                display: flex;
            }
        }
        
        .position-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .position-dot.active {
            background-color: #0095f6;
            transform: scale(1.2);
        }
        
        /* Панель управления (только для мобильной версии) */
        .mobile-control-panel {
            display: none;
            width: 100%;
            max-width: 400px;
            background-color: rgba(0, 0, 0, 0.05);
            border-radius: 15px;
            padding: 15px;
            margin-top: 20px;
            justify-content: space-between;
            align-items: center;
            backdrop-filter: blur(10px);
        }
        
        /* Скрытие мобильной панели управления, если отключено в настройках */
        .hide-mobile-panel .mobile-control-panel {
            display: none !important;
        }
        
        @media (max-width: 768px) {
            .mobile-control-panel {
                display: flex;
            }
        } 
        
        /* Десктопная панель управления */
        .desktop-control-panel {
            display: block;
            justify-content: center;
            gap: 15px;
            margin: 30px;
            width: 100%;
        }
        
        /* Скрытие десктопной панели управления, если отключено в настройках */
        .hide-desktop-panel .desktop-control-panel {
            display: none !important;
        }
        
        @media (min-width: 769px) {
            .desktop-control-panel {
                display: flex;
            }
        }
        
        .control-panel-info {
            font-size: 0.9rem;
            color: #666;
        }
        
        .control-panel-info span {
            color: #1d1d1f;
            font-weight: 600;
        }
        
        .control-panel-btn {
            background-color: rgba(0, 0, 0, 0.08);
            border: none;
            color: #1d1d1f;
            padding: 12px 25px;
            border-radius: 30px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.2s;
        }
        
        .control-panel-btn:hover {
            background-color: rgba(0, 0, 0, 0.15);
            transform: translateY(-2px);
        }
        
        .control-panel-btn.primary {
            background-color: #0095f6;
            color: #fff;
        }
        
        /* Состояние "звук отключен" */
        .sound-disabled .control-btn.mute-btn {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .sound-disabled .control-btn.mute-btn:hover {
            background-color: rgba(0, 0, 0, 0.1);
            transform: none;
        }
        
        /* Адаптивность для очень маленьких экранов */
        @media (max-width: 480px) {
            .video-sequence {
                height: 75vh;
            }
            
            .video-description {
                font-size: 0.85rem;
                padding: 12px;
                margin: 10px;
            }
            
            .page-header h1 {
                font-size: 1.8rem;
            }
        }
        
        @media (max-height: 700px) {
            .video-sequence {
                height: 70vh;
            }
            
            .video-description {
                max-height: 80px;
            }
        }
        
        /* Скрыть элементы управления видео по умолчанию */
        video::-webkit-media-controls {
            display: none !important;
        }
        
        video::-webkit-media-controls-enclosure {
            display: none !important;
        }
        
        /* Анимация появления */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .stories-container {
            animation: fadeIn 0.5s ease;
        }
        
        /* Стили для полосы прокрутки */
        .video-description::-webkit-scrollbar {
            width: 5px;
        }
        
        .video-description::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 10px;
        }
        
        .video-description::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
        }
        
        /* Кнопки навигации для десктопной версии */
        .desktop-scroll-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            background-color: rgba(0, 0, 0, 0.1);
            border: none;
            color: #1d1d1f;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 100;
            backdrop-filter: blur(5px);
            transition: all 0.2s;
            display: none;
        }
        
        @media (min-width: 769px) {
            .desktop-scroll-arrow {
                display: flex;
            }
        }
        
        .desktop-scroll-arrow:hover {
            background-color: rgba(0, 0, 0, 0.2);
        }
        
        .desktop-scroll-arrow.left {
            left: -60px;
        }
        
        .desktop-scroll-arrow.right {
            right: -60px;
        }
        
        /* Индикатор позиции для десктопной версии */
        .desktop-position-indicator {
            display: none;
            justify-content: center;
            gap: 8px;
            margin-top: 20px;
        }
        
        @media (min-width: 769px) {
            .desktop-position-indicator {
                display: flex;
            }
        }
        
        .desktop-position-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .desktop-position-dot.active {
            background-color: #0095f6;
            transform: scale(1.2);
        }
        
        .desktop-position-dot.has-video {
            background-color: rgba(0, 149, 246, 0.3);
        }