/* Основные стили */
.bot-demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(15, 23, 42, 0.95);
    min-height: 100vh;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(170, 204, 255, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Заголовок */
.demo-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.demo-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.demo-title .highlight {
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-subtitle {
    font-size: 1.1rem;
    color: #aaccff;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Видео секция */
.video-section {
    margin-bottom: 3rem;
    position: relative;
}

.video-wrapper {
    position: relative;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Центральная кнопка воспроизведения */
.center-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    z-index: 5;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.center-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.center-play-btn svg circle {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.center-play-btn:hover svg circle {
    fill: rgba(79, 195, 247, 1);
}

.video-wrapper.playing .center-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Оверлеи */
.loading-overlay,
.error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 31, 53, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.loading-overlay.active,
.error-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4fc3f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-overlay span {
    font-size: 1.1rem;
    color: #f44336;
}

.retry-btn {
    background: rgba(79, 195, 247, 0.2);
    color: white;
    border: 1px solid rgba(79, 195, 247, 0.5);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.retry-btn:hover {
    background: rgba(79, 195, 247, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 195, 247, 0.2);
}

/* YouTube-стиль контролов */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    padding: 0 1rem 0.5rem;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.video-wrapper:hover .video-controls,
.video-wrapper:focus-within .video-controls {
    opacity: 1;
}

/* Прогресс бар в стиле YouTube */
.progress-container {
    margin-bottom: 0.5rem;
    position: relative;
    height: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.progress-bar {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    overflow: visible;
    width: 100%;
    transition: height 0.1s ease;
}

.progress-bar:hover {
    height: 5px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #4fc3f7;
    border-radius: 2px;
}

.progress-hover {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    opacity: 0;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: #4fc3f7;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.1s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.progress-bar:hover .progress-thumb {
    width: 12px;
    height: 12px;
    opacity: 1;
}

/* YouTube стиль прогресс-бара */
.progress-container:hover .progress-bar {
    height: 5px;
}

.progress-container:hover .progress-thumb {
    width: 12px;
    height: 12px;
    opacity: 1;
}

/* Нижние контролы */
.controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 0.5rem;
}

.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Кнопки управления в стиле YouTube */
.control-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.control-btn:hover {
    background: rgba(79, 195, 247, 0.15);
    transform: scale(1.05);
}

.control-btn.active {
    color: #4fc3f7;
}

/* Play/Pause кнопка YouTube */
.play-btn {
    background: transparent;
    border: none;
    width: 48px;
    height: 48px;
    color: #ffffff;
}

.play-btn:hover {
    background: rgba(79, 195, 247, 0.15);
}

/* Время YouTube */
.time-display {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(20, 25, 45, 0.8);
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
}

.time-separator {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.25rem;
}

/* Регулировка громкости YouTube */
.volume-group {
    position: relative;
    display: flex;
    align-items: center;
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.volume-group:hover .volume-slider-container {
    width: 80px;
}

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #4fc3f7;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #4fc3f7;
}

/* Скорость воспроизведения YouTube */
.speed-group {
    position: relative;
}

.speed-btn {
    position: relative;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.speed-btn:after {
    content: attr(data-speed);
    font-size: 0.8rem;
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #4fc3f7;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.speed-btn.active:after {
    opacity: 1;
}

.speed-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: rgba(20, 25, 45, 0.98);
    border-radius: 8px;
    padding: 0.5rem 0;
    display: none;
    flex-direction: column;
    min-width: 120px;
    border: 1px solid rgba(79, 195, 247, 0.3);
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.speed-group:hover .speed-menu {
    display: flex;
}

.speed-menu button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.25rem;
    text-align: left;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.speed-menu button:hover {
    background: rgba(79, 195, 247, 0.1);
}

.speed-menu button.active {
    color: #4fc3f7;
    font-weight: 500;
}

.speed-menu button.active:after {
    content: "✓";
    margin-left: 0.5rem;
    color: #4fc3f7;
}

/* PiP кнопка */
.pip-btn.active {
    color: #4fc3f7;
}

/* Полноэкранный режим YouTube */
.fullscreen-btn.active {
    color: #4fc3f7;
}

/* Иконки в стиле YouTube */
.control-btn svg {
    transition: transform 0.2s ease;
}

.control-btn:hover svg {
    transform: scale(1.1);
}

/* Обзор функций */
.features-overview {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.features-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.features-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-family: 'Montserrat', sans-serif;
}

.features-subtitle {
    font-size: 1.1rem;
    color: #aaccff;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 83%;
    display: flex;
    flex-direction: column;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #4fc3f7, #29b6f6);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(79, 195, 247, 0.3);
}

.feature-card:hover:before {
    transform: translateX(0);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 195, 247, 0.2);
    background: rgba(79, 195, 247, 0.1);
    flex-shrink: 0;
}

.feature-card .feature-icon svg {
    color: #4fc3f7;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    opacity: 0.9;
}

/* CTA секция */
.cta-section {
    text-align: center;
}

.cta-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-card:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79, 195, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-card:after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(41, 182, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
}

.cta-card p {
    font-size: 1.1rem;
    color: #aaccff;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    opacity: 0.9;
}

.try-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(79, 195, 247, 0.2);
    color: white;
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(79, 195, 247, 0.5);
    cursor: pointer;
    position: relative;
    z-index: 2;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.try-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.try-button:hover {
    background: rgba(79, 195, 247, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.2);
}

.try-button:hover:before {
    left: 100%;
}

.try-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.try-button:hover svg {
    transform: scale(1.1);
}

.cta-note {
    margin-top: 1.5rem;
    color: rgba(170, 204, 255, 0.7);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Анимации YouTube */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* YouTube-стиль шрифтов */
.controls-bottom * {
    font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Единые стили для ссылок */
.feature-card p a,
.cta-card p a {
    color: #4fc3f7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.feature-card p a:hover,
.cta-card p a:hover {
    color: #aaccff;
    text-shadow: 0 0 10px rgba(170, 204, 255, 0.5);
}

/* Адаптивность для десктопа */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .bot-demo-container {
        max-width: 900px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 768px) {
    .bot-demo-container {
        padding: 1rem;
    }
    
    .demo-header {
        padding: 1.5rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .demo-header .video-section {
        margin-bottom: 0;
    }
    
    .demo-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .features-overview {
        padding: 1.5rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    /* Видео плеер для мобильных */
    .video-wrapper {
        border-radius: 0;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    .video-controls {
        padding: 0.5rem;
        opacity: 1 !important;
        background: linear-gradient(to top, 
            rgba(15, 23, 42, 0.95) 0%, 
            rgba(15, 23, 42, 0.85) 50%, 
            transparent 100%);
    }
    
    .controls-bottom {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.25rem 0;
    }
    
    .controls-left, .controls-right {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Увеличенные кнопки для касания */
    .control-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    
    .play-btn {
        width: 52px;
        height: 52px;
    }
    
    /* Прогресс-бар для мобильных */
    .progress-container {
        height: 16px;
        margin-bottom: 0.75rem;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .progress-bar:hover {
        height: 8px;
    }
    
    .progress-thumb {
        width: 18px !important;
        height: 18px !important;
    }
    
    /* Время видео */
    .time-display {
        font-size: clamp(0.85rem, 2vw, 1rem);
        padding: 0.5rem 0.75rem;
        background: rgba(20, 25, 45, 0.9);
        border-radius: 6px;
    }
    
    /* Слайдер громкости */
    .volume-slider-container {
        width: 80px !important;
        margin-right: 8px;
    }
    
    .volume-slider {
        height: 6px;
    }
    
    .volume-slider::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
    
    /* Меню скорости для мобильных */
    .speed-menu {
        position: fixed;
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: 200px;
        margin: 0 auto;
        background: rgba(20, 25, 45, 0.98);
        border: 2px solid rgba(79, 195, 247, 0.5);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    }
    
    .speed-menu button {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
    
    /* Центральная кнопка воспроизведения */
    .center-play-btn {
        width: 100px;
        height: 100px;
    }
    
    .center-play-btn svg {
        width: 100%;
        height: 100%;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .try-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .demo-title {
        font-size: 1.8rem;
    }
    
    .demo-subtitle {
        font-size: 1rem;
    }
    
    .features-title {
        font-size: 1.8rem;
    }
    
    .cta-card h3 {
        font-size: 1.6rem;
    }
    
    .cta-card p {
        font-size: 1rem;
    }
    
    .try-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    /* Адаптация видео */
    .video-wrapper {
        aspect-ratio: 9/16;
    }
    
    .demo-video {
        object-fit: contain;
        background: #000;
    }
    
    .controls-bottom {
        gap: 0.25rem;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
    
    .play-btn {
        width: 48px;
        height: 48px;
    }
    
    .center-play-btn {
        width: 80px;
        height: 80px;
    }
    
    /* Скрываем сложные контролы на очень маленьких экранах */
    .pip-btn,
    .fullscreen-btn {
        display: none;
    }
    
    /* Упрощенное меню скорости */
    .speed-menu {
        bottom: 70px;
        max-width: 180px;
    }
    
    .time-display {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .video-wrapper {
        aspect-ratio: 16/9;
        max-height: 70vh;
    }
    
    .controls-bottom {
        flex-direction: row;
    }
    
    .controls-left, .controls-right {
        width: auto;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
    
    .play-btn {
        width: 42px;
        height: 42px;
    }
    
    .center-play-btn {
        width: 70px;
        height: 70px;
    }
}

/* СЕНСОРНЫЕ УЛУЧШЕНИЯ */
/* Увеличение области касания для кнопок */
.control-btn {
    position: relative;
}

.control-btn::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
}

/* Анимация нажатия для мобильных */
@media (hover: none) and (pointer: coarse) {
    .control-btn:active {
        transform: scale(0.95);
        background: rgba(79, 195, 247, 0.25);
        transition: transform 0.1s ease, background 0.1s ease;
    }
    
    .center-play-btn:active {
        transform: translate(-50%, -50%) scale(0.95);
    }
    
    /* Увеличенный прогресс-бар для сенсорного управления */
    .progress-container {
        padding: 10px 0;
        margin: -10px 0;
    }
    
    .progress-bar {
        height: 8px;
    }
    
    .progress-thumb {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ПЛАВНЫЕ ПЕРЕХОДЫ ДЛЯ МОБИЛЬНЫХ */
@media (prefers-reduced-motion: no-preference) {
    .video-controls,
    .center-play-btn,
    .control-btn {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* ОПТИМИЗАЦИЯ ДЛЯ iOS */
@supports (-webkit-touch-callout: none) {
    .video-wrapper {
        -webkit-overflow-scrolling: touch;
    }
    
    .demo-video {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Исправление для fullscreen на iOS */
    .fullscreen-btn {
        display: none;
    }
}

/* СООТВЕТСТВИЕ РАЗМЕРАМ ЭКРАНА */
@media (max-width: 320px) {
    .video-wrapper {
        margin: 0 -0.5rem;
        width: calc(100% + 1rem);
    }
    
    .time-display {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
}