:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background: #f8fafc;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

main {
  width: min(760px, calc(100vw - 32px));
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  padding: 32px;
}

h1 { margin-top: 0; }

.controls {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

button:first-child {
  background: #111827;
  color: white;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#original-subtitles {
  min-height: 120px;
  padding: 16px;
  border-radius: 14px;
  background: #f1f5f9;
  font-size: 1.3rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

#subtitles {
  min-height: 120px;
  padding: 16px;
  border-radius: 14px;
  background: #f1f5f9;
  font-size: 1.3rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

#status {
  padding: 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  overflow-x: auto;
}
