/* Custom styles for StreamSync Player */

/* Video.js custom theme */
.video-js {
    --primary-color: #3B82F6;
    --secondary-color: #8B5CF6;
}

.video-js .vjs-big-play-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    line-height: 80px;
    margin-left: -40px;
    margin-top: -40px;
}

.video-js .vjs-control-bar {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    backdrop-filter: blur(10px);
}

.video-js .vjs-play-progress {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.video-js .vjs-slider {
    background-color: rgba(255,255,255,0.2);
}

.video-js .vjs-volume-level {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Custom components */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.upload-area:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.control-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.playlist-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(4px);
}

.playlist-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border-left: 3px solid #3B82F6;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
    }
}

.video-js .vjs-big-play-button {
    animation: pulse-glow 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-js {
        height: 300px !important;
    }
    
    .control-btn {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
}

/* Loading animation */
.loading-spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}