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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f7;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.logo svg {
    width: 20px;
    height: 20px;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav a:hover {
    opacity: 0.8;
}

.main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.subtitle {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.size-info {
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.upload-container {
    background: white;
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}

.upload-box {
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.upload-box:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-box.dragover {
    border-color: #667eea;
    background: #f0f2ff;
}

.cloud-icon {
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.or-text {
    color: #999;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.btn-select {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-select:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.file-info {
    color: #999;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.url-upload {
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
}

.url-label {
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.url-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.url-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-upload {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-upload:hover {
    background: #5568d3;
}

.url-note {
    color: #999;
    font-size: 0.85rem;
}

.loading {
    display: none;
    text-align: center;
    margin: 2rem 0;
}

.loading.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.result {
    display: none;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0f8f0;
    border-radius: 8px;
}

.result.show {
    display: block;
}

.success-text {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 1rem;
}

.link-box {
    display: flex;
    gap: 0.75rem;
}

.link-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.btn-copy {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-copy:hover {
    background: #059669;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-logo svg {
    width: 16px;
    height: 16px;
}

.footer p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.social a:hover {
    background: rgba(255,255,255,0.2);
}

#video {
    position: fixed;
    top: -9999px;
    left: -9999px;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .url-group {
        flex-direction: column;
    }

    .main {
        padding: 2rem 1rem;
    }

    .upload-container {
        padding: 2rem 1rem;
    }
}
