



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

.cut-preview {
  width: 100%;
}


.trim-selector {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}


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

.cut-play-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.cut-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;
}

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

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

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

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

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



.cut-seek {
  width: 100%;
  height: 28px;
  margin: 12px 0 2px;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.cut-seek::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: #ece9ff;
}

.cut-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #6558e8;
  box-shadow: 0 2px 6px rgba(101, 88, 232, 0.35);
  cursor: pointer;
}

.cut-seek::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #ece9ff;
}

.cut-seek::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #6558e8;
}

.cut-seek::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #6558e8;
  box-shadow: 0 2px 6px rgba(101, 88, 232, 0.35);
  cursor: pointer;
}

.cut-seek:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}



.cut-slider {
  position: relative;
  height: 28px;
  margin: 12px 0 2px;
}

.cut-slider-track,
.cut-slider-fill {
  position: absolute;
  top: 50%;
  height: 6px;
  border-radius: 999px;
  transform: translateY(-50%);
  pointer-events: none;
}

.cut-slider-track {
  left: 0;
  right: 0;
  background: #ece9ff;
}

.cut-slider-fill {
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #6558e8 0%, #a99cff 100%);
}

.cut-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.cut-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 28px;
  background: transparent;
}

.cut-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 5px;
  border: 2px solid #6558e8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(101, 88, 232, 0.3);
  cursor: grab;
  pointer-events: auto;
}

.cut-slider input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
}

.cut-slider input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
}

.cut-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #6558e8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(101, 88, 232, 0.3);
  cursor: grab;
  pointer-events: auto;
}

.cut-slider input[type="range"]:disabled {
  opacity: 0.45;
}

.cut-slider input[type="range"]:disabled::-webkit-slider-thumb {
  cursor: not-allowed;
}



.cut-wave {
  width: 100%;
  padding: 30px 0 0;
}

.cut-wave[hidden] {
  display: none;
}

.cut-wave-stage {
  position: relative;
  height: 48px;
  border-radius: 12px;
  background: #f6f6fb;
  touch-action: none;
  cursor: pointer;
}

#waveCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.cut-wave.is-loading .cut-wave-stage::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0eefa 25%, #f8f7fd 37%, #f0eefa 63%);
  background-size: 400% 100%;
  animation: cut-wave-loading 1.4s ease infinite;
}

@keyframes cut-wave-loading {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.cut-wave-selection {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(111, 92, 240, 0.12);
  border-left: 1px solid rgba(111, 92, 240, 0.45);
  border-right: 1px solid rgba(111, 92, 240, 0.45);
  pointer-events: none;
}

.cut-wave-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  margin-left: -6px;
  border-radius: 6px;
  background: #6f5cf0;
  cursor: ew-resize;
  touch-action: none;
  box-shadow: 0 2px 8px rgba(111, 92, 240, 0.35);
}

.cut-wave-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 10px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#fff, #fff) center 0 / 6px 1px no-repeat,
    linear-gradient(#fff, #fff) center 4px / 6px 1px no-repeat,
    linear-gradient(#fff, #fff) center 8px / 6px 1px no-repeat;
  opacity: 0.85;
}

.cut-wave-badge {
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: #6f5cf0;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
}

.cut-wave-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #3a2bd8;
  border-radius: 2px;
  pointer-events: none;
  display: none;
}

.cut-wave-playhead.is-visible {
  display: block;
}

.cut-wave-ruler {
  position: relative;
  height: 18px;
  margin-top: 8px;
  font-size: 11px;
  color: #9b97b5;
}

.cut-wave-ruler span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.cut-trim-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.cut-trim-footer .selector-hint {
  flex: 1;
  margin: 0;
}


.trim-selector .pair-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media screen and (min-width: 1024px) {
  
  .cut-trim-footer .selector-hint {
    display: block;
  }
}



#startCutBtn {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.1px;

  border-radius: 999px;
  border: 1px solid #6558e8;
  background: #6558e8;
  color: #fff;

  cursor: pointer;
  box-shadow: 0 10px 24px rgba(101, 88, 232, 0.22);
  transition: all 0.2s ease;
}

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

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

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


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

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

#startCutBtn .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) {

  .cut-play-row {
    gap: 10px;
  }

  .cut-play-btn {
    height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .cut-slider {
    height: 26px;
    margin-top: 10px;
  }

  .cut-slider input[type="range"] {
    height: 26px;
  }

  .cut-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 26px;
  }

  .cut-slider input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: 3px;
  }

  
  .cut-seek {
    height: 26px;
    margin-top: 10px;
  }

  .cut-seek::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -7px;
  }

  .cut-seek::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

  .cut-wave {
    padding-top: 26px;
  }

  .cut-wave-stage {
    height: 38px;
  }

  .cut-wave-badge {
    top: -26px;
    font-size: 10px;
  }

  .cut-wave-ruler {
    font-size: 10px;
  }

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