:root {
  --bg: #101413;
  --bg-soft: #1a2321;
  --card: #17201e;
  --line: #2e3b37;
  --text: #f2f3ef;
  --muted: #8ea09a;
  --accent: #f5a623;
  --accent-2: #61d9ad;
  --danger: #ff6b6b;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(97, 217, 173, 0.14), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(245, 166, 35, 0.13), transparent 35%),
    linear-gradient(160deg, #0f1514 0%, #0c1110 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 18px 36px;
}

.hero {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(23, 32, 30, 0.85), rgba(16, 22, 20, 0.9));
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -80px -60px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(97, 217, 173, 0.22), transparent 65%);
  pointer-events: none;
}

.kicker {
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent-2);
}

h1 {
  margin: 8px 0 8px;
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.card {
  grid-column: span 12;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

input[type="text"],
textarea,
input[type="file"],
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--accent-2);
  transform: translateY(-1px);
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.45;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

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

.btn-main {
  background: linear-gradient(135deg, var(--accent), #f6702d);
  color: #1d1206;
  box-shadow: 0 10px 20px rgba(245, 166, 35, 0.28);
}

.btn-sub {
  background: #22332e;
  color: var(--text);
  border: 1px solid #32463f;
}

button:not(:disabled):hover {
  transform: translateY(-1px);
}

.meter {
  margin-top: 10px;
  width: 100%;
  height: 58px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #111715, #0f1413);
  display: block;
}

.inline {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

audio {
  width: 100%;
  margin-top: 10px;
  filter: saturate(0.75) contrast(1.1);
}

.status {
  margin-top: 10px;
  min-height: 22px;
  padding: 8px 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}

.status.err {
  color: #ffd0d0;
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.07);
}

.status.ok {
  color: #ceffe6;
  border-color: rgba(97, 217, 173, 0.5);
  background: rgba(97, 217, 173, 0.08);
}

.foot {
  margin-top: 14px;
  font-size: 12px;
  color: #768782;
}

@media (min-width: 920px) {
  .record-card { grid-column: span 5; }
  .infer-card { grid-column: span 7; }
}
