

#file-list {
  width: 100%;
  max-width: 720px;
  margin: 0;
}

.volume-preview,
.volume-selector {
  width: 100%;
}

.setting {
  display: flex;
  flex-direction: column;
}



.volume-play-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.volume-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #e4e0ff;
  border-radius: 999px;
  background: #f6f5ff;
  color: #6558e8;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.volume-play-btn:hover:not(:disabled) {
  background: #efedff;
  border-color: #cfc7ff;
}

.volume-play-btn.is-playing {
  background: #6558e8;
  border-color: #6558e8;
  color: #fff;
}

.volume-play-btn.is-playing:hover:not(:disabled) {
  background: #5749d6;
  border-color: #5749d6;
}

.volume-play-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.volume-play-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: none;
}



.audio-cover-playback {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  z-index: 3;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.audio-cover-playback::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.audio-cover-playback span {
  position: relative;
  display: block;
  width: 0;
  height: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  transition: width 0.12s linear;
  pointer-events: none;
}

.audio-cover-playback span::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.audio-cover-playback:active {
  cursor: grabbing;
}



.file-card.processing .audio-cover-playback {
  opacity: 0;
  pointer-events: none;
}



.volume-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}

.volume-selector input[type="range"] {
  --volume-progress: 31.03%;
  height: 28px;
  margin: 0;
  background: transparent;
}

.volume-selector input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(
    90deg,
    #6558e8 0%,
    #a99cff var(--volume-progress),
    #ece9ff var(--volume-progress),
    #ece9ff 100%
  );
}

.volume-selector input[type="range"]::-webkit-slider-thumb {
  box-shadow: 0 2px 6px rgba(101, 88, 232, 0.35);
}

.volume-selector input[type="range"]::-moz-range-thumb {
  box-shadow: 0 2px 6px rgba(101, 88, 232, 0.35);
}

.volume-selector input[type="range"]:focus-visible {
  outline: 3px solid rgba(101, 88, 232, 0.14);
  outline-offset: 4px;
}

.volume-selector input[type="range"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.volume-value-field {
  display: flex;
  align-items: center;
  height: 38px;
  border: 1px solid #e9e9f0;
  border-radius: 10px;
  background: #fff;
  color: #687588;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.volume-value-field:focus-within {
  border-color: #6558e8;
  box-shadow: 0 0 0 3px rgba(101, 88, 232, 0.12);
}

.volume-value-field input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 0 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #182230;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.volume-value-field span {
  flex: none;
  padding: 0 10px 0 4px;
}

.volume-value-field input:disabled {
  color: #b3b8c4;
}

.volume-options {
  margin-top: 4px;
}



#startVolumeBtn {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border: 1px solid #6558e8;
  border-radius: 999px;
  background: #6558e8;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(101, 88, 232, 0.22);
  transition: all 0.2s ease;
}

#startVolumeBtn:hover:not(:disabled) {
  background: #5749d6;
  border-color: #5749d6;
  box-shadow: 0 14px 30px rgba(101, 88, 232, 0.28);
  transform: translateY(-1px);
}

#startVolumeBtn:active:not(:disabled) {
  transform: translateY(0);
}

#startVolumeBtn:disabled {
  background: #eceef3;
  border-color: #eceef3;
  color: #b3b8c4;
  cursor: default;
  box-shadow: none;
  transform: none;
}

#startVolumeBtn.converting:disabled {
  background: #6558e8;
  border-color: #6558e8;
  color: #fff;
  cursor: wait;
  box-shadow: 0 12px 26px rgba(101, 88, 232, 0.22);
  transform: none;
}

#startVolumeBtn .btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
}

#startVolumeBtn .btn-label {
  display: inline-block;
  text-align: center;
}



.output-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

#previewResultBtn {
  min-width: 76px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e4e0ff;
  border-radius: 999px;
  background: #fff;
  color: #6558e8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#previewResultBtn:hover:not(:disabled) {
  background: #f6f5ff;
  border-color: #cfc7ff;
}

#previewResultBtn.is-playing {
  background: #6558e8;
  border-color: #6558e8;
  color: #fff;
}

#previewResultBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}



@media screen and (min-width: 1024px) {
  main.container {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    padding-left: 20px;
    padding-right: 20px;
  }

  
  header.title,
  .header-inner {
    max-width: 1000px;
  }

  
  body.editing main.container {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  section.panel {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin: 20px auto 32px;
  }

  #file-list {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: none;
    margin: 0;
  }

  #file-list > li.file-card .audio-cover {
    height: 180px;
  }

  .setting {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
    max-width: none;
  }
}



@media screen and (max-width: 768px) {
  .volume-play-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .audio-cover-playback {
    left: 8px;
    right: 8px;
    bottom: 7px;
  }

  .volume-control {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
  }

  #startVolumeBtn {
    min-height: 40px;
    font-size: 14px;
  }

  .output-info {
    flex-wrap: wrap;
  }

  .output-actions {
    margin-left: auto;
  }
}
