:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #131a2f;
  --panel-2: #1a2340;
  --text: #edf2ff;
  --muted: #a7b3d1;
  --accent: #6ea8fe;
  --accent-2: #7ef0c5;
  --danger: #ff7b7b;
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: radial-gradient(circle at top, #1a2340 0%, #0b1020 60%);
  color: var(--text);
}
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.card {
  background: rgba(19, 26, 47, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.subtitle, .meta, .status {
  color: var(--muted);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(110, 168, 254, 0.16);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.stack {
  margin-top: 24px;
}
label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}
.input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
input {
  flex: 1 1 520px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 1rem;
}
button, .button {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: #08111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800;
  cursor: pointer;
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.status {
  margin-top: 16px;
}
.status.error {
  color: var(--danger);
}
.status.muted {
  color: var(--muted);
}
.result {
  margin-top: 24px;
}
.result-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}
.pill {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(126, 240, 197, 0.18);
  color: var(--accent-2);
  font-weight: 700;
}
#title {
  margin: 0;
  line-height: 1.2;
}
.thumb {
  width: 180px;
  max-width: 32vw;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hidden {
  display: none !important;
}
@media (max-width: 720px) {
  .card { padding: 20px; }
  .result-header { flex-direction: column; }
  .thumb { width: 100%; max-width: 100%; }
  .button, button { width: 100%; text-align: center; }
}
