:root {
  --bg: #f5efe4;
  --panel: rgba(255, 250, 242, 0.82);
  --line: rgba(62, 43, 19, 0.12);
  --text: #1f1307;
  --muted: #72593b;
  --accent: #cb4b16;
  --accent-dark: #962f06;
  --shadow: 0 22px 60px rgba(77, 44, 10, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 211, 151, 0.9), transparent 32%),
    radial-gradient(circle at top right, rgba(214, 120, 79, 0.35), transparent 28%),
    linear-gradient(135deg, #fff7ea 0%, #f3e3c6 45%, #eed1b2 100%);
}

.shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 5rem;
}

.language-selector {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: var(--accent);
  color: white;
}

.lang-btn.active {
  background: var(--accent);
  color: white;
}

.hero {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent-dark);
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.94;
}

.lede {
  max-width: 42rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
}

.panel {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

input,
select,
button {
  border-radius: 16px;
  border: 1px solid rgba(76, 56, 30, 0.18);
  font: inherit;
}

input,
select {
  min-height: 3.4rem;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.74);
}

button {
  min-height: 3.4rem;
  padding: 0 1.25rem;
  font-weight: 700;
  color: #fff8ef;
  background: linear-gradient(180deg, #d15a25 0%, #b83f0a 100%);
  cursor: pointer;
}

button:hover {
  background: linear-gradient(180deg, #bd4a18 0%, #962f06 100%);
}

.status {
  margin: 1rem 0 0;
  color: var(--muted);
}

.result {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.hidden {
  display: none;
}

.meta {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: start;
}

.thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.subtle {
  color: var(--muted);
}

.download-box {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

@media (max-width: 700px) {
  .shell {
    padding-top: 2rem;
  }

  .input-row,
  .meta {
    grid-template-columns: 1fr;
  }
}
