/* =============================================
   STUDIO85 IT — Компонент видео-демо
   ============================================= */

/* Контейнер */
.video-demo {
    margin: 20px 0;
}

/* Обёртка видео */
.video-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

/* Видео */
.video-player {
    display: block;
    width: 100%;
    height: auto;
}

/* Кнопка play/pause */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #1d1d1f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
}

.video-play-btn:hover {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Скрываем кнопку во время воспроизведения */
.video-demo.is-playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Показываем при паузе */
.video-demo.is-paused .video-play-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Подпись */
.video-caption {
    padding: 20px 24px;
}

.video-caption h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1d1d1f;
}

.video-caption p {
    font-size: 15px;
    color: #86868b;
    line-height: 1.5;
}

/* =============================================
   Рамки устройств
   ============================================= */

/* --- Ноутбук --- */
.device-laptop .video-wrap {
    border-radius: 8px 8px 0 0;
    border: 2px solid #1d1d1f;
    border-bottom: none;
}

.device-laptop .video-wrap::after {
    content: '';
    display: block;
    height: 24px;
    background: #1d1d1f;
    border-radius: 0 0 8px 8px;
    position: relative;
}

.device-laptop .video-wrap::before {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    z-index: 3;
}

/* Подставка */
.device-laptop::after {
    content: '';
    display: block;
    width: 40%;
    height: 12px;
    margin: 0 auto;
    background: linear-gradient(180deg, #1d1d1f 0%, #333 100%);
    border-radius: 0 0 12px 12px;
}

/* --- Телефон --- */
.device-phone {
    max-width: 375px;
    margin-left: auto;
    margin-right: auto;
}

.device-phone .video-wrap {
    border: 3px solid #1d1d1f;
    border-radius: 24px;
    padding-top: 32px;
    padding-bottom: 24px;
    background: #1d1d1f;
}

/* Notch */
.device-phone .video-wrap::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    z-index: 3;
}

/* Home indicator */
.device-phone .video-wrap::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    z-index: 3;
}

.device-phone .video-player {
    border-radius: 0;
}

/* =============================================
   Плейсхолдер (когда нет видео)
   ============================================= */

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: #f5f5f7;
    border-radius: 12px;
    color: #a1a1a6;
    gap: 12px;
}

.video-placeholder-icon {
    font-size: 48px;
    opacity: 0.5;
}

.video-placeholder p {
    font-size: 15px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .video-play-btn {
        width: 48px;
        height: 48px;
    }

    .video-play-btn svg {
        width: 18px;
        height: 18px;
    }

    .video-caption {
        padding: 16px 20px;
    }

    .video-caption h4 {
        font-size: 16px;
    }

    .video-caption p {
        font-size: 14px;
    }

    .device-phone {
        max-width: 280px;
    }

    .device-laptop .video-wrap::after {
        height: 16px;
    }

    .device-laptop::after {
        height: 8px;
    }
}
