#video-guide-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 220px;
    background: linear-gradient(145deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    overflow: hidden;
    transform: translateX(120%) scale(0.8);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#video-guide-widget.show {
    transform: translateX(0) scale(1);
}

#video-guide-widget.left {
    left: 20px;
    right: auto;
    transform: translateX(-120%) scale(0.8);
}

#video-guide-widget.left.show {
    transform: translateX(0) scale(1);
}

#video-guide-widget.minimized {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    cursor: pointer;
}

#video-guide-widget.minimized .video-container {
    display: none;
}

#video-guide-widget.minimized .widget-header {
    display: none;
}

.widget-header {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 12px;
    z-index: 10;
}

.control-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.guide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
}

.avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 15px;
}

.message-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 20px;
    text-align: left;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.message-overlay.show {
    transform: translateY(0);
}

.message-overlay h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.floating-cta {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff4757;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.1s linear;
}

.minimized-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* YouTube/Vimeo iframe styles */
.video-container iframe {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

/* Play button overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-play-overlay {
    opacity: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    #video-guide-widget {
        width: 280px;
        height: 180px;
    }
    
    #video-guide-widget.minimized {
        width: 50px;
        height: 50px;
    }
}