* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 16px/1.5 "Microsoft YaHei", sans-serif;
  color: #222;
  background: #f5f5f5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(960px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-bottom: 16px;
}

.box {
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
}

.form,
.single,
.track,
.batch {
  display: grid;
  gap: 12px;
}

.form {
  grid-template-columns: 120px 120px 1fr 100px;
}

.single {
  grid-template-columns: 160px 1fr;
}

.batch {
  grid-template-columns: 120px 120px 1fr;
  align-items: center;
  margin-top: 12px;
}

input,
select,
button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

button {
  background: #222;
  color: #fff;
}

button:disabled {
  opacity: 0.6;
}

img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #eee;
}

audio {
  width: 100%;
  margin: 12px 0;
}

.message {
  margin-top: 12px;
  color: #666;
}

.message[data-tone="success"] {
  color: #0a7a43;
}

.message[data-tone="error"] {
  color: #c0392b;
}

.tracks {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.track {
  grid-template-columns: 32px 1fr 72px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.track p,
#progress {
  color: #666;
}

.track strong,
.track p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  color: #666;
  text-align: center;
}

@media (max-width: 760px) {
  .form,
  .single,
  .batch,
  .track {
    grid-template-columns: 1fr;
  }

  .wrap {
    width: min(100%, calc(100% - 16px));
    padding-top: 16px;
  }
}
