body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

p {
    color: #606770;
    margin-bottom: 1.5rem;
}

textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid #dddfe2;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
}

button {
    background-color: #1877f2;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #166fe5;
}

button:disabled {
    background-color: #a0bdf1;
    cursor: not-allowed;
}

#video-container {
    margin-top: 2rem;
}

video {
    max-width: 100%;
    border-radius: 8px;
    outline: none;
}

.hidden {
    display: none;
}

#loading-spinner {
    margin-top: 1.5rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #1877f2;
    margin: 0 auto 1rem;
    animation: spin 1s ease infinite;
}

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