@keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        
        @keyframes twinkle {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }
        
        .animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }
        .animate-float { animation: float 3s ease-in-out infinite; }
        
        body {
            background: linear-gradient(to bottom, #0a0e27 0%, #1a1a3e 50%, #2d1b4e 100%);
            position: relative;
            overflow-x: hidden;
            min-height: 100vh;
        }
        
        .star {
            position: absolute;
            width: 2px;
            height: 2px;
            background: white;
            border-radius: 50%;
            animation: twinkle 3s ease-in-out infinite;
        }
        
        .media-card {
            transition: all 0.3s ease;
        }
        
        .media-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(147, 51, 234, 0.3);
        }
        
        .media-container {
            border-radius: 0.75rem;
            overflow: hidden;
            position: relative;
            width: 100%;
            display: block;
        }

        .media-container img,
        .media-container video {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
            max-height: none;
        }
        
        .video-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(147, 51, 234, 0.9);
            color: white;
            padding: 6px 14px;
            border-radius: 9999px;
            font-size: 0.75rem;
            font-weight: 600;
            z-index: 10;
            backdrop-filter: blur(4px);
        }
        
        .modal {
            display: none;
            position: fixed;
            z-index: 100;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
        }
        
        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .modal-content {
            max-width: 95%;
            max-height: 95%;
            object-fit: cover;
        }

        .download-btn {
            position: relative;
            overflow: hidden;
        }
        
        .download-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        
        .download-btn:hover::before {
            left: 100%;
          }

        .back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(99, 102, 241, 0.9) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    z-index: 1000;
    border: 1px solid rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-3px);
}

.vid-wrapper {
    position: relative;
    width: fit-content;
    height: fit-content;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.vid-el {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    cursor: pointer;
}

.vid-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    background-color: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 0.75rem;
    padding: 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 50;
    color: #c084fc;
    box-shadow: 0 10px 15px -3px rgba(88, 28, 135, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vid-controls.hide-ui {
    transform: translate(-50%, 150%);
    opacity: 0;
    pointer-events: none;
}

.vid-btn {
    transition: color 0.3s ease;
    flex-shrink: 0;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
}

.vid-btn:hover {
    color: #d8b4fe;
}

.vid-time {
    font-size: 0.75rem;
    font-family: monospace;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.vid-progress {
    flex: 1 1 0%;
    min-width: 50px;
    height: 0.375rem;
    border-radius: 0.5rem;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
}

.vid-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #a855f7; 
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); 
}

.vid-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #a855f7;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
    .vid-time {
        font-size: 10px;
    }
}
