.vvw-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.vvw-minimized {
    width: 120px;
    height: 200px;
}

.vvw-expanded {
    width: 300px;
    height: 500px;
}

.vvw-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: #000;
}

#vvw-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.vvw-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    display: none;
}

.vvw-expanded .vvw-progress-bar {
    display: block;
}

.vvw-progress {
    height: 100%;
    width: 0%;
    transition: width 0.3s linear;
}

.vvw-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.vvw-minimized .vvw-controls .vvw-mute {
    display: none;
}

.vvw-expanded .vvw-controls .vvw-mute {
    display: flex;
}

.vvw-controls button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vvw-video-container:hover .vvw-controls button {
    opacity: 1;
}

.vvw-mute svg,
.vvw-close {
    width: 16px;
    height: 16px;
    display: block;
}

.vvw-button-container {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    box-sizing: border-box;
    text-transform: uppercase;
}

.vvw-button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 400;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.vvw-expanded .vvw-button {
    opacity: 1;
    transform: translateY(0);
}

/* Кнопка показывается ТОЛЬКО в развернутом состоянии */
.vvw-minimized .vvw-button {
    display: none !important;
}

.vvw-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .vvw-minimized {
        width: 240px;
        height: 400px;
        left: 15px;
        bottom: 15px;
    }
    
    .vvw-expanded {
        width: 90vw;
        height: 80vh;
        max-width: 400px;
        max-height: 700px;
        left: 50%;
        bottom: 50%;
        transform: translateX(-50%) translateY(50%);
    }
    
    .vvw-controls button {
        width: 32px;
        height: 32px;
        font-size: 20px;
        opacity: 1;
    }
    
    .vvw-mute svg,
    .vvw-close {
        width: 18px;
        height: 18px;
    }
    
    .vvw-button {
        padding: 16px 32px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .vvw-minimized {
        width: 200px;
        height: 300px;
        left: 10px;
        bottom: 10px;
    }
    
    .vvw-controls button {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .vvw-mute svg,
    .vvw-close {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .vvw-minimized {
        width: 160px;
        height: 240px;
    }
    
    .vvw-expanded {
        width: 95vw;
        height: 70vh;
    }
}

/* Убираем стандартную браузерную обводку при фокусе */
.vvw-controls button:focus,
.vvw-button:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Альтернативный стиль для фокуса (опционально) */
.vvw-controls button:focus-visible,
.vvw-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    outline-offset: 2px !important;
}