.audio-converter-app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: #eef3ef;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 215, 106, 0.06), transparent 38%),
    linear-gradient(180deg, #0d1118 0%, #080b10 54%, #05080c 100%);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.audio-converter-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.audio-converter-topbar {
  gap: 16px;
}

.audio-topbar-stats {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: rgba(235, 240, 236, 0.66);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.audio-topbar-stats span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.audio-topbar-stats strong {
  color: #ffd76a;
  font-variant-numeric: tabular-nums;
}

.audio-topbar-actions {
  flex: 0 0 auto;
}

.audio-converter-workspace {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  grid-template-columns: clamp(270px, 19vw, 330px) minmax(430px, 1fr) clamp(300px, 21vw, 360px);
  gap: 12px;
  padding: 12px;
  overflow: hidden;
}

.audio-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(16, 21, 30, 0.96), rgba(7, 10, 15, 0.97));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.audio-upload-panel,
.audio-settings-panel {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  scrollbar-gutter: stable;
}

.audio-task-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.audio-panel-block {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(4, 7, 11, 0.42);
}

.audio-panel-block + .audio-panel-block {
  margin-top: 12px;
}

.audio-panel h2,
.audio-task-panel h2 {
  margin: 0 0 12px;
  color: #fff2b8;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}

.audio-panel p,
.audio-task-panel p {
  margin: 0;
  color: rgba(232, 239, 235, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.audio-dropzone {
  position: relative;
  display: flex;
  min-height: 188px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  border: 1px dashed rgba(255, 215, 106, 0.42);
  border-radius: 14px;
  color: #f5f3e4;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 215, 106, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.audio-dropzone:hover,
.audio-dropzone.is-dragging {
  border-color: rgba(255, 215, 106, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 215, 106, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.045);
}

.audio-dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.audio-dropzone strong {
  color: #fff7d6;
  font-size: 20px;
  font-weight: 950;
}

.audio-dropzone span {
  color: rgba(235, 243, 238, 0.72);
  font-size: 13px;
}

.audio-dropzone em {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #211707;
  font-style: normal;
  font-weight: 950;
  background: linear-gradient(180deg, #fff0a6, #ffd76a 50%, #f0b13e);
  box-shadow: 0 12px 28px rgba(255, 196, 70, 0.22);
}

.audio-hint {
  margin-top: 12px !important;
  color: rgba(231, 235, 228, 0.58) !important;
}

.audio-message {
  min-height: 20px;
  margin-top: 8px !important;
  color: #ffd76a !important;
}

.audio-message.is-error {
  color: #ff9a8f !important;
}

.audio-segment {
  display: grid;
  gap: 8px;
}

.audio-segment label {
  display: flex;
  min-height: 42px;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: rgba(238, 243, 239, 0.78);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.035);
}

.audio-segment input {
  accent-color: #ffd76a;
}

.audio-segment label:has(input:checked) {
  color: #211707;
  border-color: rgba(255, 215, 106, 0.8);
  background: linear-gradient(180deg, #fff0a6, #ffd76a 50%, #efb13c);
  box-shadow: 0 10px 24px rgba(255, 196, 70, 0.2);
}

.audio-button {
  display: inline-flex;
  min-height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 215, 106, 0.26);
  border-radius: 10px;
  color: #fff0ba;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  background: rgba(255, 215, 106, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.audio-button:hover:not(:disabled),
.audio-button:focus-visible:not(:disabled) {
  border-color: rgba(255, 215, 106, 0.62);
  color: #fff8dd;
  background: rgba(255, 215, 106, 0.14);
}

.audio-button:active:not(:disabled) {
  transform: translateY(1px);
}

.audio-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.audio-button-primary,
.audio-button.is-ready {
  color: #201609;
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, #fff0a6, #ffd76a 50%, #f0b13e);
  box-shadow: 0 12px 28px rgba(255, 196, 70, 0.22);
}

.audio-button-ghost {
  color: rgba(238, 243, 239, 0.78);
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.audio-button-wide {
  width: 100%;
  margin-top: 12px;
}

.audio-button-small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.audio-task-panel-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.audio-task-panel-head h2 {
  margin-bottom: 4px;
}

.audio-empty {
  display: flex;
  min-height: 220px;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px;
  color: rgba(232, 239, 235, 0.66);
  text-align: center;
}

.audio-empty[hidden] {
  display: none;
}

.audio-empty strong {
  color: #f6f4e6;
  font-size: 22px;
  font-weight: 950;
}

.audio-task-list {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  scrollbar-gutter: stable;
}

.audio-task {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.audio-task-main {
  min-width: 0;
}

.audio-task-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.audio-task-title strong {
  min-width: 0;
  overflow: hidden;
  color: #f4f8ed;
  font-size: 15px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-task-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffe49a;
  font-size: 11px;
  font-weight: 950;
  background: rgba(255, 215, 106, 0.11);
  border: 1px solid rgba(255, 215, 106, 0.18);
}

.audio-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
  color: rgba(230, 238, 234, 0.62);
  font-size: 12px;
}

.audio-task-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: rgba(234, 240, 236, 0.7);
  font-size: 12px;
  font-weight: 850;
}

.audio-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(185, 194, 190, 0.7);
}

.audio-task[data-status="working"] .audio-status-dot {
  background: #ffd76a;
  box-shadow: 0 0 16px rgba(255, 215, 106, 0.32);
}

.audio-task[data-status="done"] .audio-status-dot {
  background: #6be09b;
}

.audio-task[data-status="error"] .audio-status-dot {
  background: #ff867b;
}

.audio-progress {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.audio-progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0b13e, #ffd76a);
  transition: width 0.18s ease;
}

.audio-task-error {
  margin-top: 8px;
  color: #ffaaa1;
  font-size: 12px;
  line-height: 1.5;
}

.audio-task-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: start;
  gap: 8px;
}

.audio-task-actions .audio-button {
  min-width: 72px;
}

.audio-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.audio-field span {
  color: rgba(237, 241, 235, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.audio-field select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 215, 106, 0.2);
  border-radius: 10px;
  color: #f4f0df;
  font: inherit;
  font-weight: 850;
  background: rgba(8, 12, 17, 0.84);
  padding: 0 10px;
  outline: none;
}

.audio-field select:focus {
  border-color: rgba(255, 215, 106, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 215, 106, 0.1);
}

.audio-result-summary dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.audio-result-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(235, 240, 236, 0.7);
  font-size: 13px;
  font-weight: 850;
}

.audio-result-summary dt,
.audio-result-summary dd {
  margin: 0;
}

.audio-result-summary dd {
  color: #ffd76a;
  font-variant-numeric: tabular-nums;
}

.audio-converter-app ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.audio-converter-app ::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 215, 106, 0.42);
}

.audio-converter-app ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 1180px) {
  .audio-converter-workspace {
    grid-template-columns: 260px minmax(360px, 1fr) 280px;
  }

  .audio-topbar-stats {
    display: none;
  }
}

@media (max-width: 900px) {
  .audio-converter-shell {
    overflow-y: auto;
  }

  .audio-converter-topbar {
    flex-basis: auto;
    min-height: 74px;
    flex-wrap: wrap;
    padding: 8px 10px;
  }

  .audio-converter-workspace {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    padding: 10px;
  }

  .audio-upload-panel,
  .audio-settings-panel,
  .audio-task-panel {
    min-height: 360px;
  }
}
