* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: #0f0f0f;
  color: #e8e8e8;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100dvh;
}
main {
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.upload-zone {
  aspect-ratio: 1;
  border: 2px dashed #444;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  overflow: hidden;
  position: relative;
}
.upload-zone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#upload-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  color: #888;
  cursor: pointer;
  width: 100%;
  height: 100%;
  justify-content: center;
}
.upload-icon { font-size: 3rem; }
textarea {
  background: #1a1a1a;
  color: #e8e8e8;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.75rem;
  font: inherit;
  resize: vertical;
}
button {
  padding: 1rem;
  font-size: 1rem;
  background: #4a9eff;
  color: white;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
}
button:disabled { background: #333; color: #666; }
.status {
  padding: 0.75rem;
  background: #1a1a1a;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}
video { width: 100%; border-radius: 8px; }
details {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
details label { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
details input { background: #0f0f0f; color: inherit; border: 1px solid #333; padding: 0.25rem 0.5rem; border-radius: 4px; width: 6rem; }
.row { display: flex; gap: 0.5rem; }
.row label { flex: 1; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: #aaa; }
.row select { background: #1a1a1a; color: #e8e8e8; border: 1px solid #333; padding: 0.5rem; border-radius: 8px; font-size: 0.9rem; }
#download {
  display: inline-block;
  text-align: center;
  padding: 0.75rem;
  background: #1a1a1a;
  color: #e8e8e8;
  border: 1px solid #333;
  border-radius: 8px;
  text-decoration: none;
}
