/* Floating Video Player Widget - Enhanced Design */
.floating-video-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    width: 380px;
    background: linear-gradient(135deg, rgba(15, 20, 45, 0.95) 0%, rgba(10, 15, 35, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.floating-video-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.floating-video-widget.hidden {
    display: none;
}

.floating-video-widget .video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 18px;
    background: linear-gradient(135deg, rgba(121, 13, 201, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-bottom: 1px solid rgba(121, 13, 201, 0.3);
}

.floating-video-widget .video-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.floating-video-widget .close-btn {
    /*background: rgba(255, 255, 255, 0.1);*/
    background: #790dc9;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
}

.floating-video-widget .close-btn:hover {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    border-color: transparent;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.floating-video-widget .video-container {
    position: relative;
    width: 100%;
    background: #000;
    /*overflow: hidden;*/
}

.floating-video-widget .video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.floating-video-widget video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 280px;
    object-fit: cover;
}

.floating-video-widget .video-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.floating-video-widget .control-btn {
    background: linear-gradient(135deg, var(--rt-accent-color) 0%, #9b1fd9 100%);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(121, 13, 201, 0.4);
    position: relative;
    overflow: hidden;
}

.floating-video-widget .control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.floating-video-widget .control-btn:hover::before {
    width: 100%;
    height: 100%;
}

.floating-video-widget .control-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(121, 13, 201, 0.6);
}

.floating-video-widget .control-btn:active {
    transform: scale(0.95);
}

/* Mute/Unmute Button */
.floating-video-widget .mute-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.floating-video-widget .mute-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Reopen Icon - Enhanced */
.video-reopen-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--rt-accent-color) 0%, #9b1fd9 100%);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(121, 13, 201, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.video-reopen-icon.show {
    display: flex;
}

.video-reopen-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(121, 13, 201, 0.8);
    animation: none;
}

.video-reopen-icon i {
    color: #fff;
    font-size: 26px;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(121, 13, 201, 0.6);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(121, 13, 201, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .floating-video-widget {
        width: 340px;
    }
}

@media (max-width: 768px) {
    .floating-video-widget {
        width: 300px;
        bottom: 15px;
        right: 15px;
        border-radius: 16px;
    }

    .floating-video-widget video {
        max-height: 220px;
    }

    .floating-video-widget .control-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .video-reopen-icon {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .video-reopen-icon i {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .floating-video-widget {
        width: 280px;
        bottom: 10px;
        right: 10px;
    }

    .floating-video-widget .video-header {
        padding: 12px 15px;
    }

    .floating-video-widget .video-title {
        font-size: 13px;
    }

    .floating-video-widget .close-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .floating-video-widget video {
        max-height: 180px;
    }

    .floating-video-widget .video-controls {
        padding: 10px;
        gap: 10px;
    }

    .floating-video-widget .control-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }

    .floating-video-widget .mute-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .video-reopen-icon {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }

    .video-reopen-icon i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .floating-video-widget {
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .floating-video-widget video {
        max-height: 200px;
    }
}

/* Smooth entrance animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-video-widget {
    animation: slideInUp 0.6s ease-out;
}