/* Watch2Convert Frontend Styles - Simple Controls */

#w2c-floating-container {
    position: fixed !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

#w2c-video-wrapper {
    position: fixed !important;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    will-change: transform, width;
}

#w2c-video-wrapper.w2c-collapsed {
    opacity: 0.95;
}

#w2c-video-wrapper.w2c-collapsed:hover {
    opacity: 1;
    transform: scale(1.02);
}

#w2c-video-wrapper.w2c-expanded {
    opacity: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#w2c-video,
#w2c-video iframe {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border: none;
    display: block;
}

#w2c-video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Close Button */
#w2c-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#w2c-close-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Simple Controls - Under Close Button */
.w2c-simple-controls {
    position: absolute;
    top: 44px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 15;
    pointer-events: none;
}

#w2c-video-wrapper:hover .w2c-simple-controls,
#w2c-video-wrapper.w2c-expanded .w2c-simple-controls {
    opacity: 1;
    pointer-events: all;
}

/* Hide controls in collapsed state */
#w2c-video-wrapper.w2c-collapsed .w2c-simple-controls {
    display: none;
}

/* Round Buttons - Same as Close Button */
.w2c-round-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.w2c-round-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.w2c-round-btn svg {
    width: 16px;
    height: 16px;
}

/* Progress Bar at Top with Time on Right */
.w2c-progress-container {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 80px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 14;
    border-radius: 2px;
    overflow: hidden;
}

#w2c-video-wrapper:hover .w2c-progress-container,
#w2c-video-wrapper.w2c-expanded .w2c-progress-container {
    opacity: 1;
}

#w2c-video-wrapper.w2c-collapsed .w2c-progress-container {
    display: none;
}

.w2c-progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Time Display - Right Side of Progress Bar */
.w2c-time-display {
    position: absolute;
    top: 8px;
    right: 44px;
    color: #fff;
    font-size: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 14;
    pointer-events: none;
}

#w2c-video-wrapper:hover .w2c-time-display,
#w2c-video-wrapper.w2c-expanded .w2c-time-display {
    opacity: 1;
}

#w2c-video-wrapper.w2c-collapsed .w2c-time-display {
    display: none;
}

/* CTA Buttons */
.w2c-ctas {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 0 12px;
    z-index: 10;
    pointer-events: none;
}

.w2c-cta {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.w2c-cta-bottom-center {
    margin: 0 auto;
}

.w2c-cta-bottom-left {
    margin-right: auto;
}

.w2c-cta-bottom-right {
    margin-left: auto;
}

/* Mobile Styles */
@media (max-width: 767px) {
    #w2c-video-wrapper {
        max-width: 100% !important;
    }
    
    #w2c-video-wrapper.w2c-expanded {
        width: 90vw !important;
        max-width: 90vw !important;
    }
    
    .w2c-simple-controls {
        top: 38px;
        right: 6px;
        gap: 4px;
    }
    
    .w2c-round-btn {
        width: 24px;
        height: 24px;
    }
    
    .w2c-round-btn svg {
        width: 14px;
        height: 14px;
    }
    
    #w2c-close-btn {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
    
    .w2c-progress-container {
        top: 6px;
        left: 6px;
        right: 70px;
    }
    
    .w2c-time-display {
        font-size: 9px;
        right: 36px;
        top: 6px;
    }
    
    .w2c-ctas {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 0 8px;
        bottom: 8px;
    }
    
    .w2c-cta {
        padding: 6px 12px;
        font-size: 11px;
    }
}