.main[data-page="audio-converter"] .main_1 {
  padding-top: clamp(0.5rem, 1vw, 1rem);
}

.audio_converter_shell {
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 2vw, 1.45rem);
  font-family: "Inter", sans-serif;
}

.audio_trust {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(72, 104, 42, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(178, 228, 153, 0.5), transparent 35%),
    linear-gradient(135deg, rgba(248, 255, 244, 0.96), rgba(255, 255, 255, 0.92));
  color: #213a17;
  box-shadow: 0 18px 40px rgba(31, 44, 65, 0.08);
}

.audio_trust strong {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.audio_trust span {
  color: #52624a;
  line-height: 1.45;
}

.dark-mode .audio_trust {
  background:
    radial-gradient(circle at 12% 0%, rgba(178, 228, 153, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(28, 42, 24, 0.94), rgba(18, 24, 33, 0.94));
  color: #e8f8df;
  border-color: rgba(178, 228, 153, 0.26);
}

.dark-mode .audio_trust span {
  color: #bfd2b3;
}

.audio_drop {
  min-width: 0;
  min-height: 150px;
  border: 2px dashed rgba(76, 116, 42, 0.42);
  border-radius: 24px;
  background: rgba(247, 250, 242, 0.86);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(1.1rem, 3vw, 2rem);
  position: relative;
  cursor: pointer;
}

.audio_drop.is-dragover {
  border-color: #6a5acd;
  background: rgba(244, 241, 255, 0.94);
}

.audio_drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.audio_drop strong {
  display: block;
  font-size: clamp(1.12rem, 2.4vw, 1.58rem);
  color: #122033;
}

.audio_drop p {
  margin: 0.45rem 0 0;
  color: #657082;
}

.audio_drop .audio_limit {
  color: #4d3fbb;
  font-size: 0.88rem;
  font-weight: 900;
}

.dark-mode .audio_drop {
  background: rgba(25, 31, 40, 0.82);
  border-color: rgba(181, 220, 141, 0.34);
}

.dark-mode .audio_drop strong {
  color: #edf5ff;
}

.dark-mode .audio_drop p {
  color: #afbac8;
}

.dark-mode .audio_drop .audio_limit {
  color: #cbc5ff;
}

.audio_workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  min-width: 0;
}

.audio_panel,
.audio_controls,
.audio_status,
.audio_file_list,
.audio_results,
.audio_progress {
  min-width: 0;
  border: 1px solid rgba(128, 139, 154, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(31, 44, 65, 0.08);
}

.dark-mode .audio_panel,
.dark-mode .audio_controls,
.dark-mode .audio_status,
.dark-mode .audio_file_list,
.dark-mode .audio_results,
.dark-mode .audio_progress {
  background: rgba(24, 29, 38, 0.92);
  border-color: rgba(194, 207, 224, 0.16);
}

.audio_panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.audio_visual {
  min-height: 220px;
  border-radius: 20px;
  display: grid;
  gap: 1rem;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(178, 228, 153, 0.75), transparent 22%),
    radial-gradient(circle at 70% 25%, rgba(106, 90, 205, 0.18), transparent 25%),
    linear-gradient(135deg, #f8fff4, #f5f7ff);
  border: 1px solid rgba(104, 127, 88, 0.16);
}

.audio_wave {
  width: min(100%, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 1vw, 0.55rem);
}

.audio_wave span {
  width: clamp(8px, 2vw, 16px);
  height: var(--bar-height, 48px);
  border-radius: 999px;
  background: linear-gradient(180deg, #6a5acd, #b2e499);
  box-shadow: 0 10px 22px rgba(106, 90, 205, 0.2);
}

.audio_wave span:nth-child(2n) {
  --bar-height: 78px;
}

.audio_wave span:nth-child(3n) {
  --bar-height: 120px;
}

.audio_preview_player {
  width: min(100%, 520px);
  display: grid;
  gap: 0.65rem;
  padding: 0.8rem;
  border: 1px solid rgba(106, 90, 205, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 28px rgba(31, 44, 65, 0.1);
}

.audio_preview_player[hidden] {
  display: none;
}

.audio_preview_player span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #26364d;
  font-size: 0.9rem;
  font-weight: 900;
}

.audio_preview_player audio {
  width: 100%;
  min-width: 0;
  display: block;
  border-radius: 999px;
}

.dark-mode .audio_visual {
  background:
    radial-gradient(circle at 20% 30%, rgba(178, 228, 153, 0.22), transparent 22%),
    radial-gradient(circle at 70% 25%, rgba(142, 130, 224, 0.2), transparent 25%),
    linear-gradient(135deg, #141e16, #111722);
  border-color: rgba(194, 207, 224, 0.14);
}

.dark-mode .audio_preview_player {
  background: rgba(18, 24, 33, 0.72);
  border-color: rgba(142, 130, 224, 0.24);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.dark-mode .audio_preview_player span {
  color: #edf5ff;
}

.audio_info {
  display: grid;
  gap: 0.4rem;
  color: #536074;
  line-height: 1.45;
}

.audio_info strong {
  color: #203045;
  font-size: 1.05rem;
}

.audio_warning {
  color: #8a4f08;
  font-weight: 800;
}

.dark-mode .audio_info {
  color: #c4cedb;
}

.dark-mode .audio_info strong {
  color: #edf5ff;
}

.dark-mode .audio_warning {
  color: #ffe2ac;
}

.audio_controls {
  padding: clamp(1rem, 2vw, 1.35rem);
  background:
    radial-gradient(circle at 12% 0%, rgba(106, 90, 205, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.92));
}

.audio_controls_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.audio_controls label {
  display: grid;
  min-width: 0;
  gap: 0.5rem;
  color: #445066;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.78rem;
  border: 1px solid rgba(117, 132, 151, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.audio_controls label[hidden],
.audio_controls [hidden] {
  display: none !important;
}

.audio_controls select,
.audio_controls input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(105, 118, 135, 0.2);
  border-radius: 13px;
  padding: 0 0.82rem;
  background: rgba(255, 255, 255, 0.94);
  color: #142033;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.audio_controls input[type="range"] {
  padding: 0;
  accent-color: #6a5acd;
}

.audio_format_note {
  grid-column: 1 / -1;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(245, 248, 252, 0.8);
  color: #667386;
  line-height: 1.45;
}

.audio_actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(117, 132, 151, 0.14);
}

.audio_actions button {
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(117, 132, 151, 0.17);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  color: #344257;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.audio_actions #audio_process,
.audio_actions #audio_process_all {
  color: #ffffff;
  background: linear-gradient(135deg, #6a5acd, #4d3fbb);
  border-color: rgba(106, 90, 205, 0.34);
  box-shadow: 0 16px 32px rgba(106, 90, 205, 0.22);
}

.audio_actions #audio_process_all {
  background: linear-gradient(135deg, #2d8eb6, #17617f);
}

.audio_actions #audio_clean {
  background: linear-gradient(135deg, #f8fff4, #e1f4d8);
  color: #234d16;
}

.audio_actions #audio_cancel {
  background: linear-gradient(135deg, #fff4f4, #f8dddd);
  color: #8a2424;
}

.audio_actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.dark-mode .audio_controls {
  background:
    radial-gradient(circle at 12% 0%, rgba(142, 130, 224, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(28, 35, 46, 0.98), rgba(18, 24, 33, 0.94));
}

.dark-mode .audio_controls label,
.dark-mode .audio_format_note {
  color: #c9d4e2;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(214, 225, 239, 0.11);
}

.dark-mode .audio_controls select,
.dark-mode .audio_controls input {
  background: #111822;
  color: #edf5ff;
  border-color: rgba(214, 225, 239, 0.22);
}

.dark-mode .audio_actions {
  border-top-color: rgba(214, 225, 239, 0.12);
}

.dark-mode .audio_actions button {
  color: #dce7f5;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(214, 225, 239, 0.13);
}

.dark-mode .audio_actions #audio_process {
  color: #f5f3ff;
  background: linear-gradient(135deg, #8f82e0, #6353cf);
}

.dark-mode .audio_actions #audio_process_all {
  color: #071923;
  background: linear-gradient(135deg, #5bbfe5, #21799d);
}

.dark-mode .audio_actions #audio_clean {
  color: #e8f8df;
  background: rgba(178, 228, 153, 0.14);
}

.dark-mode .audio_actions #audio_cancel {
  color: #ffd2d2;
  background: rgba(159, 39, 39, 0.16);
}

.audio_status {
  padding: 0.9rem 1rem;
  color: #536074;
  line-height: 1.5;
}

.audio_status[data-tone="error"] {
  color: #8a2424;
  background: #fff7f7;
}

.dark-mode .audio_status {
  color: #c4cedb;
}

.dark-mode .audio_status[data-tone="error"] {
  color: #ffd2d2;
  background: rgba(159, 39, 39, 0.16);
}

.audio_progress {
  display: grid;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
}

.audio_progress[hidden],
.audio_results[hidden] {
  display: none;
}

.audio_progress_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #17495f;
  font-weight: 900;
}

.audio_progress_track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(106, 90, 205, 0.14);
}

.audio_progress_track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6a5acd, #b2e499);
  transition: width 0.2s ease;
}

.audio_file_list,
.audio_results {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
}

.audio_file_item,
.audio_result_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 0;
  border-radius: 14px;
  background: rgba(239, 244, 248, 0.9);
  color: #273449;
  font: inherit;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
}

.audio_file_item {
  cursor: pointer;
}

.audio_file_item.is-active {
  background: linear-gradient(135deg, #f8fff4, #dff4d5);
  box-shadow: inset 0 0 0 2px rgba(106, 90, 205, 0.22);
}

.audio_file_item span,
.audio_result_item span {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.audio_file_item span,
.audio_result_item strong,
.audio_result_item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio_file_item small,
.audio_result_item small {
  color: #6a7687;
  font-size: 0.88rem;
  font-weight: 700;
}

.audio_result_item b {
  flex: 0 0 auto;
  color: #2d4d18;
  font-size: 0.88rem;
}

.audio_result_item.is-error {
  background: #fff4f4;
  color: #7a2020;
}

.audio_results_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #203045;
}

.dark-mode .audio_file_item,
.dark-mode .audio_result_item {
  background: rgba(239, 244, 248, 0.08);
  color: #e5edf8;
}

.dark-mode .audio_file_item.is-active {
  background: rgba(106, 90, 205, 0.22);
}

.dark-mode .audio_file_item small,
.dark-mode .audio_result_item small {
  color: #b6c2d1;
}

.dark-mode .audio_result_item b,
.dark-mode .audio_results_head {
  color: #e8f8df;
}

.dark-mode .audio_result_item.is-error {
  background: rgba(159, 39, 39, 0.16);
  color: #ffd2d2;
}

@media screen and (max-width: 980px) {
  .audio_workspace {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 640px) {
  .audio_controls_grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 360px) {
  .main[data-page="audio-converter"] .main_1 {
    padding: 18px 10px;
  }

  .audio_converter_shell,
  .audio_workspace {
    gap: 0.75rem;
  }

  .audio_trust,
  .audio_drop,
  .audio_panel,
  .audio_controls,
  .audio_status,
  .audio_file_list,
  .audio_results,
  .audio_progress {
    border-radius: 16px;
  }

  .audio_actions {
    grid-template-columns: 1fr;
  }
}
