/* Modern Video Showcase - Cool Player Design */

.modern-video-showcase {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-theater {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Video Glow Effect */
.video-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle at center, rgba(3, 139, 185, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Modern Player Container */
.modern-player {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}

.ufg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Overlay for Effects */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-player:hover .video-overlay {
    opacity: 1;
}

/* Modern Control Bar */
.modern-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.modern-player:hover .modern-controls {
    transform: translateY(0);
}

.control-gradient {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    pointer-events: none;
}

.control-bar {
    position: relative;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Control Buttons */
.ctrl-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.ctrl-btn:active {
    transform: scale(0.95);
}

.ctrl-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.ctrl-btn:hover svg {
    transform: scale(1.1);
}

/* Ripple Effect on Click */
.ctrl-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
}

.ctrl-btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: all 0.5s ease;
}

/* Time Display */
.time-display {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'SF Mono', 'Monaco', monospace;
    font-size: 13px;
    font-weight: 500;
    min-width: 100px;
    user-select: none;
}

.separator {
    opacity: 0.5;
}

/* Progress Container */
.progress-container {
    flex: 1;
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    transition: height 0.2s ease;
}

.progress-container:hover .progress-track {
    height: 10px;
}

.progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    width: 60%;
}

.progress-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #038BB9 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-container:hover .progress-handle {
    transform: translate(-50%, -50%) scale(1);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.volume-control:hover .volume-slider {
    width: 80px;
}

.volume-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
}

.volume-level {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #038BB9 0%, #00d4ff 100%);
    border-radius: 2px;
    width: 100%;
    transition: width 0.1s ease;
}

/* Video Info Card */
.video-info-card {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.modern-player:hover .video-info-card {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.2s;
}

.video-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f2027;
    font-family: "Poppins", sans-serif;
}

.video-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    color: #64748b;
    font-family: "Poppins", sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-video-showcase {
        padding: 40px 0;
    }
    
    .video-theater {
        border-radius: 16px;
        padding: 0;
    }
    
    .modern-player {
        border-radius: 14px;
    }
    
    .control-bar {
        padding: 0 15px;
    }
    
    .ctrl-btn {
        width: 35px;
        height: 35px;
    }
    
    .time-display {
        font-size: 11px;
        min-width: 80px;
    }
    
    .volume-control:hover .volume-slider {
        width: 60px;
    }
    
    .video-info-card {
        top: 10px;
        left: 10px;
        padding: 10px 15px;
    }
    
    .video-title {
        font-size: 16px;
    }
    
    .video-subtitle {
        font-size: 12px;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.modern-player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: shimmer 2s infinite;
    pointer-events: none;
    opacity: 0;
    z-index: 20;
}

.modern-player.loading::before {
    opacity: 1;
}

/* Smooth Transitions */
* {
    transition: opacity 0.3s ease, transform 0.3s ease;
}