:root {
    --background: #ffffff;
    --foreground: #09090b;
    --muted: #f4f4f5;
    --border: #e4e4e7;
    --primary: #18181b;
    --primary-foreground: #ffffff;
    --hover: #27272a;
    --muted-foreground: #71717a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

header {
    background-color: var(--background);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.2px;
}

a.brand {
    text-decoration: none;
}

.nav-links a.upload-button {
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
} 

.nav-links a.upload-button:hover {
    background: var(--hover);
    color: var(--primary-foreground);
}

.nav-links a {
    color: var(--foreground);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 14px;
}

.nav-links a:hover {
    background-color: var(--muted);
    color: var(--hover);
}

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: var(--muted);
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer {
    padding: 24px;
    background-color: var(--background);
    margin-top: 48px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: var(--muted-foreground);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--hover);
}

.a-slot {
    margin-top: 8px;
}

@media (max-width: 640px) {
    nav {
        padding: 12px 24px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.upload-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
}

.upload-container {
    text-align: center;
    padding: 48px;
    max-width: 480px;
    width: 100%;
}

.upload-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: -0.2px;
}

.upload-subtitle {
    font-size: 16px;
    color: var(--muted-foreground);
    margin-bottom: 8px;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-input-label {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
    width: 160px;
    text-align: center;
}

.file-input-label:hover {
    background: var(--hover);
    transform: translateY(-1px);
}

.file-input-label:active {
    transform: translateY(0);
}

.file-input-label[disabled],
.file-input:disabled + .file-input-label {
    opacity: 0.7;
    cursor: not-allowed;
}

.upload-status {
    min-height: 24px;
    margin-bottom: 16px;
}

.upload-error {
    color: #ef4444;
    font-size: 14px;
}

body.dragging::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 100;
    pointer-events: none;
}