:root {
    --primary: #ff8a00;
    --secondary: #e52e71;
    --bg-dark: #121212;
    --text-light: #ffffff;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    margin: 0;
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter id='noise' x='-20%25' y='-20%25' width='140%25' height='140%25' filterUnits='objectBoundingBox' primitiveUnits='userSpaceOnUse' color-interpolation-filters='linearRGB'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' seed='15' stitchTiles='stitch' x='0%25' y='0%25' width='100%25' height='100%25' result='turbulence'/%3E%3CfeSpecularLighting surfaceScale='12' specularConstant='.75' specularExponent='20' lighting-color='%23FFFFFF' x='0%25' y='0%25' width='100%25' height='100%25' in='turbulence' result='specularLighting'%3E%3CfeDistantLight azimuth='3' elevation='100'/%3E%3C/feSpecularLighting%3E%3C/filter%3E%3C/defs%3E%3Crect width='1000' height='1000' fill='%23121212'/%3E%3Crect width='1000' height='1000' fill='%23FFFFFF' filter='url(%23noise)' style='mix-blend-mode:overlay'/%3E%3C/svg%3E");
}

header {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.upload-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.upload-container {
    margin: 30px 0;
}

#video-upload {
    display: none;
}

.upload-button {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(229, 46, 113, 0.3);
}

.upload-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(229, 46, 113, 0.4);
}

/* Status & Loader */
.status-container {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
}

.loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--secondary);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

progress {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

progress::-webkit-progress-bar {
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

progress::-webkit-progress-value {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

/* Gallery */
.gallery-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.video-item:hover {
    transform: scale(1.02);
}

.shortform-preview {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    object-fit: cover;
}

.download-button {
    background-color: #333;
    color: white;
    text-decoration: none;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.2s;
}

.download-button:hover {
    background-color: var(--primary);
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .upload-section {
        padding: 20px;
    }
    
    .upload-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .video-gallery {
        grid-template-columns: 1fr;
    }
}
