/**
 * Online audio tools — page shell + shared tool UI.
 * Scope: .online-audio-page · Prefix: oa- (shell), oac- (audio-specific)
 */

.online-audio-page {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 40%, #f7fbff 100%);
  --oa-teal: #07D2B8;
  --oa-teal-light: #8cf9ed;
  --oa-teal-dark: #06b39e;
  --oac-wave-bar: rgba(100, 116, 139, 0.42);
  --oac-wave-bar-active: rgba(7, 210, 184, 0.95);
  --oac-wave-sel-bg: rgba(7, 210, 184, 0.12);
}

/* ===== In-page marketing (Why / Steps / CTA) ===== */
.online-audio-page .section-title {

  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: #0f172a;
  letter-spacing: -0.015em;

}

.online-audio-page .section-subtitle {

  font-size: 1.2rem;
  text-align: center;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.8;

}

.online-audio-page .feature-title {

  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #0f172a;

}

.online-audio-page .feature-description {

  color: #64748b;
  line-height: 1.75;

}

.online-audio-page .hero-download-btn {

  background: linear-gradient(135deg, #07D2B8, #3be0c8);
  border: none;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(7, 210, 184, 0.3);
  transition: all 0.3s ease;

}

.online-audio-page .ve-card {

  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 1.5rem;
  background: #fff;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;

}

.online-audio-page .ve-icon {

  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #07D2B8;
  background: rgba(7, 210, 184, 0.12);
  margin-bottom: 14px;

}

.online-audio-page .ve-step {

  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: #fff;
  padding: 1.4rem;
  height: 100%;
  text-align: center;

}

.online-audio-page .ve-step-badge {

  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(145deg, #07D2B8, #8cf9ed);

}

.online-audio-page .ve-cta-box {

  border-radius: 18px;
  border: 1px solid rgba(7, 210, 184, 0.32);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(7, 210, 184, 0.12), transparent 58%),
    #fff;

}

/* ===== Converter tool UI ===== */

.online-audio-page .oa-tool-section {

  padding: clamp(2.75rem, 5vw, 4rem) 0 3rem;
  position: relative;
  z-index: 2;

}

.online-audio-page .oa-intro {

  margin-bottom: 1.25rem;

}

.online-audio-page .oa-intro-title {

  font-size: clamp(1.65rem, 3.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;

}

.online-audio-page .oa-intro-desc {

  font-size: 0.98rem;
  color: #64748b;
  margin: 0 auto;
  max-width: 660px;
  line-height: 1.65;

}

.online-audio-page .oa-faq-list {

  display: flex;
  flex-direction: column;
  gap: 0.85rem;

}

.online-audio-page .oa-faq-item {

  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #fff;
  padding: 1.1rem 1.25rem;

}

.online-audio-page .oa-faq-question {

  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.45rem;
  line-height: 1.35;

}

.online-audio-page .oa-faq-answer {

  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
  line-height: 1.65;

}

.online-audio-page .oa-dropzone-inner {

  width: 100%;

}

.online-audio-page .oa-dropzone-title {

  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;

}

.online-audio-page .oa-dropzone-hint {

  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;

}

.online-audio-page .oa-dropzone-formats {

  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0.85rem 0 0;
  line-height: 1.5;

}

.online-audio-page .oa-browse-btn {

  padding: 0.65rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-bottom: 0;

}

.online-audio-page label.oa-browse-btn, .online-audio-page label.oa-add-files-btn {

  cursor: pointer;

}

.online-audio-page .oa-file-input-hidden {
  position: fixed;
  top: -9999px;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.online-audio-page .oa-settings {

  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 0.9rem;
  margin-bottom: 0.85rem;

}

.online-audio-page .oa-files-panel {

  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;

}

.online-audio-page .oa-files-panel .oa-file-list {
  padding: 0.85rem 1rem 1rem;
}

.online-audio-page .oa-files-toolbar {

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);

}

.online-audio-page .oa-action-link {

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border: none;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--oa-teal);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  line-height: 1.2;

}

.online-audio-page .oa-action-link:hover, .online-audio-page .oa-action-link:focus {

  color: #06b39e;
  background: rgba(7, 210, 184, 0.1);

}

.online-audio-page .oa-action-link.oa-action-muted {

  color: #64748b;

}

.online-audio-page .oa-action-link.oa-action-muted:hover, .online-audio-page .oa-action-link.oa-action-muted:focus {

  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);

}

.online-audio-page .oa-action-link.oa-is-disabled, .online-audio-page .oa-action-link:disabled, .online-audio-page button.oa-clear-btn:disabled {

  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;

}

.online-audio-page .oa-settings-locked .oa-select-shell .oa-select,
.online-audio-page .oa-settings-locked .oa-select {

  pointer-events: none;

}

.online-audio-page .oa-settings-locked .oa-select-shell .oa-select:disabled, .online-audio-page .oa-settings-locked .oa-select:disabled {

  background-color: #eef2f6;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
  border-color: rgba(148, 163, 184, 0.35);

}

.online-audio-page .oa-label {

  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;

}

/* Settings dropdowns — native select + custom format trigger share one look */
.online-audio-page .oa-select-shell, .online-audio-page .oa-custom-select {

  position: relative;

}

.online-audio-page .oa-select-shell .oa-select,
.online-audio-page .oa-custom-select-trigger {

  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;

}

.online-audio-page .oa-select-shell .oa-select {

  display: block;
  padding: 0.5rem 2.15rem 0.5rem 0.75rem;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 14px;

}

.online-audio-page .oa-select-shell .oa-select:hover:not(:disabled),
.online-audio-page .oa-custom-select-trigger:hover:not(:disabled) {

  border-color: rgba(7, 210, 184, 0.55);

}

.online-audio-page .oa-select-shell .oa-select:focus,
.online-audio-page .oa-custom-select.is-open .oa-custom-select-trigger,
.online-audio-page .oa-custom-select-trigger:focus-visible {

  border-color: var(--oa-teal);
  box-shadow: 0 0 0 3px rgba(7, 210, 184, 0.18);
  outline: none;

}

.online-audio-page .oa-select-shell .oa-select option {

  color: #0f172a;
  background: #fff;

}

.online-audio-page .oac-sidebar .oa-select-shell .oa-select {

  background-color: #f8fafc;

}

.online-audio-page .oac-sidebar .oa-select-shell .oa-select:hover:not(:disabled) {

  background-color: #fff;

}

.online-audio-page .oa-file-list {

  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(7, 210, 184, 0.45) transparent;

}

.online-audio-page .oa-file-list::-webkit-scrollbar {

  width: 6px;

}

.online-audio-page .oa-file-list::-webkit-scrollbar-thumb {

  background: rgba(7, 210, 184, 0.45);
  border-radius: 3px;

}

.online-audio-page .oa-file-item {

  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;

}

.online-audio-page .oa-file-item:hover {

  border-color: rgba(7, 210, 184, 0.4);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);

}

.online-audio-page .oa-file-item > .oa-file-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(7, 210, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oa-teal);
  font-size: 1.15rem;
}

.online-audio-page .oa-file-body {

  flex: 1;
  min-width: 0;

}

.online-audio-page .oa-file-name {

  font-weight: 600;
  font-size: 0.92rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;

}

.online-audio-page .oa-file-meta {

  font-size: 0.8rem;

}

.online-audio-page .oa-btn-remove {

  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.45);
  color: #64748b;

}

.online-audio-page .oa-btn-remove:hover:not(:disabled) {

  border-color: #fca5a5;
  color: #dc2626;
  background: #fef2f2;

}

.online-audio-page .oa-btn-remove:disabled {

  opacity: 0.45;
  cursor: not-allowed;

}

.online-audio-page .oa-file-actions {

  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;

}

.online-audio-page .oa-btn-download {

  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  line-height: 1.25;

}

.online-audio-page .oa-convert-bar {

  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);

}

.online-audio-page .oa-file-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.online-audio-page .oa-file-progress-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #334155;
}

.online-audio-page .oa-file-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.online-audio-page .oa-file-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #07D2B8, #3be0c8);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.online-audio-page .oa-file-progress-wrap {
  margin-top: 0.6rem;
}

.online-audio-page .oa-file-progress-note {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

.online-audio-page .oa-file-progress-indeterminate {
  overflow: hidden;
}

.online-audio-page .oa-file-progress-indeterminate .oa-file-progress-bar {
  width: 40% !important;
  transition: none;
  animation: oa-progress-indeterminate 1.4s ease-in-out infinite;
}

@keyframes oa-progress-indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

.online-audio-page .oa-file-actions .oa-status-active {
  color: var(--oa-teal) !important;
}

.online-audio-page .oa-convert-actions {
  flex-shrink: 0;
  width: 100%;
}

.online-audio-page .oa-convert-btn {
  border-radius: 10px;
  min-width: 180px;
}

.online-audio-page .oa-convert-btn:disabled {
  opacity: 0.72;
  transform: none;
  box-shadow: 0 2px 8px rgba(7, 210, 184, 0.18);
}

.online-audio-page .oa-stop-btn {
  border: none;
  border-radius: 10px;
  min-width: 130px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f87171);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.online-audio-page .oa-stop-btn:hover,
.online-audio-page .oa-stop-btn:focus {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

.online-audio-page .oa-stop-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.online-audio-page .oa-spin {
  animation: oaSpin 0.9s linear infinite;
  display: inline-block;
}

@keyframes oaSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.online-audio-page .oa-files-panel-locked .oa-files-toolbar {
  opacity: 0.85;
}

.online-audio-page .oac-dropzone-locked {
  pointer-events: none;
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 575.98px) {
  .online-audio-page .oa-convert-actions {
    flex-direction: column;
  }

  .online-audio-page .oa-convert-btn,
  .online-audio-page .oa-stop-btn {
    width: 100%;
    min-width: 0;
  }
}

.online-audio-page .oa-disclaimer {

  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1.25rem;
  line-height: 1.65;

}

.online-audio-page .oa-disclaimer a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.online-audio-page .oa-disclaimer a:hover {
  color: var(--oa-teal);
  text-decoration: underline;
}

.online-audio-page .oa-cta {

  max-width: 760px;
  margin: 0 auto;

}

.oa-toast {

  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 1080;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  max-width: min(90vw, 420px);
  text-align: center;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;

}

.oa-toast.show {

  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  background: #0f172a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);

}

.oa-toast.show.oa-toast-success {

  background: linear-gradient(135deg, #059669, #10b981);

}

.oa-toast.show.oa-toast-error {

  background: linear-gradient(135deg, #dc2626, #ef4444);

}

.oa-toast.show.oa-toast-info {

  background: linear-gradient(135deg, #0f766e, #07D2B8);

}

@media (max-width: 991.98px) {
  .online-audio-page .oa-tool-section {
    padding-top: 2.25rem;
  }

  .online-audio-page .section-title {
    font-size: 2.2rem;
  }

  .online-audio-page .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 575.98px) {
  .online-audio-page .oac-editor-card {
    padding: 0.85rem;
    border-radius: 14px;
  }

  .online-audio-page .oac-dropzone {
    padding: 1.5rem 1rem 1.25rem;
    min-height: 200px;
  }

  .online-audio-page .oa-intro {
    margin-bottom: 1rem;
  }
}

/**
 * Online audio tools — audio-specific UI (waveform, trim, dropzone, etc.)
 */

.online-audio-page .oac-editor-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 1.25rem;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.07);
}

.online-audio-page .oac-dropzone {
  border: 2px dashed rgba(148, 163, 184, 0.55);
  border-radius: 16px;
  padding: 2.25rem 1.25rem 1.85rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  background: #fafcfd;
  outline: none;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.online-audio-page .oac-dropzone:hover,
.online-audio-page .oac-dropzone:focus-visible {
  border-color: rgba(7, 210, 184, 0.65);
  background: #f0fdfa;
}

.online-audio-page .oac-dropzone.oac-dropzone-active {
  border-color: var(--oa-teal, #07D2B8);
  border-style: solid;
  background: rgba(7, 210, 184, 0.06);
  box-shadow: 0 0 0 4px rgba(7, 210, 184, 0.12);
}

.online-audio-page .oac-dropzone-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  color: var(--oa-teal, #07D2B8);
  background: linear-gradient(145deg, rgba(7, 210, 184, 0.18), rgba(7, 210, 184, 0.06));
  box-shadow: 0 8px 24px rgba(7, 210, 184, 0.2);
}

.online-audio-page .oac-media-stage {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #0f172a;
  overflow: hidden;
}

.online-audio-page .oac-media-stage.oac-is-exporting .oac-player-bar,
.online-audio-page .oac-media-stage.oac-is-exporting .oac-timeline {
  pointer-events: none;
  opacity: 0.55;
}

.online-audio-page .oac-media-stage.oac-is-exporting::after {
  content: "Exporting…";
  position: absolute;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 600;
  pointer-events: auto;
  cursor: not-allowed;
}

.online-audio-page .oac-audio-hidden {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.online-audio-page .oac-player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding: 0.7rem 0.85rem;
  background: #1e293b;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.online-audio-page .oac-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: none;
  background: var(--oa-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.online-audio-page .oac-play-btn:hover {
  background: var(--oa-teal-dark);
}

.online-audio-page .oac-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  min-width: 6.75rem;
  flex-shrink: 0;
}

.online-audio-page .oac-time-sep {
  color: #94a3b8;
  margin: 0 0.2rem;
}

.online-audio-page .oac-seek-wrap {
  flex: 1;
  min-width: 120px;
}

.online-audio-page .oac-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.online-audio-page .oac-volume-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border-radius: 4px;
}

.online-audio-page .oac-volume-btn:hover {
  background: rgba(148, 163, 184, 0.15);
}

.online-audio-page .oac-range-track {
  position: relative;
  height: 6px;
  display: flex;
  align-items: center;
}

.online-audio-page .oac-range-track--volume {
  width: 72px;
}

.online-audio-page .oac-range {
  width: 100%;
  height: 6px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.online-audio-page .oac-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--oa-teal) var(--oac-range-pct, 0%),
    rgba(148, 163, 184, 0.45) var(--oac-range-pct, 0%),
    rgba(148, 163, 184, 0.45) 100%
  );
}

.online-audio-page .oac-range::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--oa-teal);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.online-audio-page .oac-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.45);
}

.online-audio-page .oac-range::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--oa-teal);
}

.online-audio-page .oac-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--oa-teal);
}

/* Settings quality/volume slider row (matches image compressor pattern) */
.online-audio-page .oa-quality-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
}

.online-audio-page .oa-quality-row .oac-range {
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: none;
}

.online-audio-page .oa-quality-value {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--oa-teal);
  background: rgba(7, 210, 184, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  min-width: 3rem;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.online-audio-page .oa-settings-locked .oa-quality-row {
  opacity: 0.65;
}

.online-audio-page .oa-settings-locked .oa-quality-value {
  color: #64748b;
  background: rgba(148, 163, 184, 0.15);
}

/* BGM mixer — track summary + export progress */
.online-audio-page .oabgm-tracks-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.online-audio-page .oabgm-track-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  background: #fff;
}

.online-audio-page .oabgm-track-item > .oa-file-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(7, 210, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--oa-teal);
  font-size: 1.15rem;
}

.online-audio-page .oabgm-track-label {
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.online-audio-page .oabgm-track-name {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.online-audio-page .oa-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  min-height: 42px;
  padding: 0.35rem 0;
  cursor: pointer;
  user-select: none;
}

.online-audio-page .oa-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.online-audio-page .oa-switch-track {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  transition: background 0.2s ease;
}

.online-audio-page .oa-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  transition: transform 0.2s ease;
}

.online-audio-page .oa-switch-input:checked + .oa-switch-track {
  background: var(--oa-teal);
}

.online-audio-page .oa-switch-input:checked + .oa-switch-track .oa-switch-thumb {
  transform: translateX(18px);
}

.online-audio-page .oa-switch-input:focus-visible + .oa-switch-track {
  box-shadow: 0 0 0 3px rgba(7, 210, 184, 0.28);
}

.online-audio-page .oa-switch-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.35;
}

.online-audio-page .oa-settings-locked .oa-switch {
  opacity: 0.65;
  pointer-events: none;
  cursor: default;
}

.online-audio-page .oac-export-progress-bar--indeterminate {
  overflow: hidden;
}

.online-audio-page .oac-export-progress-bar--indeterminate .oac-export-progress-fill {
  width: 40% !important;
  transition: none;
  animation: oa-progress-indeterminate 1.4s ease-in-out infinite;
}

/* Waveform timeline */
.online-audio-page .oac-timeline {
  background: #0f172a;
  padding: 0.65rem 0.75rem 0.85rem;
}

.online-audio-page .oac-timeline-inner {
  position: relative;
  padding: 0 5px 8px;
  overflow: visible;
}

.online-audio-page .oac-rail {
  position: relative;
  height: 72px;
  margin-top: 20px;
}

.online-audio-page .oac-wave-wrap {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, #172033 0%, #1e293b 48%, #172033 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.online-audio-page .oac-wave-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.online-audio-page .oac-wave-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.85);
  z-index: 1;
}

.online-audio-page .oac-trim-track {
  position: absolute;
  inset: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  z-index: 2;
}

.online-audio-page .oac-trim-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.72);
  pointer-events: none;
  z-index: 2;
  transition: width 0.05s linear;
}

.online-audio-page .oac-trim-track--dragging .oac-trim-shade {
  transition: none;
}

.online-audio-page .oac-trim-shade--left {
  left: 0;
}

.online-audio-page .oac-trim-shade--right {
  right: 0;
}

.online-audio-page .oac-trim-range {
  position: absolute;
  top: 0;
  bottom: 0;
  background: transparent;
  cursor: grab;
  z-index: 3;
  box-sizing: border-box;
  transition: left 0.05s linear, width 0.05s linear;
  overflow: visible;
}

.online-audio-page .oac-trim-range::before,
.online-audio-page .oac-trim-range::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--oa-teal);
  pointer-events: none;
  z-index: 2;
}

.online-audio-page .oac-trim-range::before {
  top: 0;
}

.online-audio-page .oac-trim-range::after {
  bottom: 0;
}

.online-audio-page .oac-trim-track--dragging .oac-trim-range {
  transition: none;
}

.online-audio-page .oac-trim-range:active {
  cursor: grabbing;
}

.online-audio-page .oac-trim-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  padding: 0;
  border: none;
  background: var(--oa-teal);
  border-radius: 3px;
  cursor: ew-resize;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

.online-audio-page .oac-trim-handle--in {
  left: -5px;
}

.online-audio-page .oac-trim-handle--out {
  right: -5px;
  left: auto;
}

.online-audio-page .oac-trim-handle-grip {
  display: block;
  width: 2px;
  height: 22px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.online-audio-page .oac-trim-handle:hover {
  background: var(--oa-teal-dark);
}

.online-audio-page .oac-trim-track--dragging .oac-trim-handle {
  background: var(--oa-teal-dark);
}

.online-audio-page .oac-trim-track--dragging .oac-trim-range::before,
.online-audio-page .oac-trim-track--dragging .oac-trim-range::after {
  background: var(--oa-teal-dark);
}

.online-audio-page .oac-playhead {
  position: absolute;
  top: -14px;
  bottom: -6px;
  left: 0;
  width: 10px;
  margin-left: -5px;
  pointer-events: none;
  z-index: 6;
}

.online-audio-page .oac-playhead-svg {
  display: block;
  width: 10px;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.online-audio-page .oac-playhead-knob,
.online-audio-page .oac-playhead-line {
  fill: #fff;
}

.online-audio-page .oac-trim-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}

.online-audio-page .oac-trim-time {
  font-weight: 700;
  color: #e2e8f0;
  min-width: 3.25rem;
}

.online-audio-page .oac-trim-hint {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.online-audio-page .oac-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.online-audio-page .oac-filename {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-audio-page .oac-sidebar {
  margin-top: 1.15rem;
}

.online-audio-page .oac-sidebar.oa-settings-locked .oa-label {
  opacity: 0.55;
}

.online-audio-page .oac-sidebar.oa-settings-locked .oa-select-shell .oa-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.online-audio-page .oac-selection {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.online-audio-page .oac-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.online-audio-page .oac-selection-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--oa-teal);
  background: rgba(7, 210, 184, 0.12);
}

.online-audio-page .oac-selection-times {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.online-audio-page .oac-selection-point {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.online-audio-page .oac-selection-point--end {
  text-align: right;
  align-items: flex-end;
}

.online-audio-page .oac-selection-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.online-audio-page .oac-selection-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.online-audio-page .oac-selection-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.online-audio-page .oac-selection-range {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--oa-teal);
}

.online-audio-page .oac-meta {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.35rem;
}

.online-audio-page .oac-export-bar {
  margin-top: 1.15rem;
}

.online-audio-page .oac-export-progress {
  margin-bottom: 0.75rem;
}

.online-audio-page .oac-export-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.online-audio-page .oac-export-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.online-audio-page .oac-export-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--oa-teal);
  transition: width 0.2s ease;
}

@media (max-width: 575.98px) {
  .online-audio-page .oac-volume-wrap {
    display: none;
  }

  .online-audio-page .oac-trim-hint {
    display: none;
  }
}

.online-audio-page .oac-merge-order {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 0.5rem;
}

.online-audio-page .oac-order-btn {
  width: 24px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 4px;
  background: #fff;
  color: #64748b;
  line-height: 1;
  cursor: pointer;
}

.online-audio-page .oac-order-btn:hover:not(:disabled) {
  border-color: var(--oa-teal);
  color: var(--oa-teal);
}

.online-audio-page .oac-order-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.online-audio-page .oac-cover-preview {
  max-height: 220px;
  object-fit: contain;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* Dual file pick cards (cover, BGM, etc.) */
.online-audio-page .oac-dual-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 767.98px) {
  .online-audio-page .oac-dual-pick {
    grid-template-columns: 1fr;
  }
}

.online-audio-page .oac-pick-card {
  position: relative;
  border: 2px dashed rgba(148, 163, 184, 0.55);
  border-radius: 16px;
  padding: 1.75rem 1.25rem 1.35rem;
  text-align: center;
  cursor: pointer;
  background: #fafcfd;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.online-audio-page .oac-pick-card:hover,
.online-audio-page .oac-pick-card:focus-visible {
  border-color: rgba(7, 210, 184, 0.65);
  background: #f0fdfa;
}

.online-audio-page .oac-pick-card--active {
  border-color: var(--oa-teal);
  border-style: solid;
  background: rgba(7, 210, 184, 0.06);
  box-shadow: 0 0 0 4px rgba(7, 210, 184, 0.12);
}

.online-audio-page .oac-pick-card--done {
  border-color: rgba(7, 210, 184, 0.45);
  border-style: solid;
  background: #f0fdfa;
}

.online-audio-page .oac-pick-card--locked {
  pointer-events: none;
  opacity: 0.65;
}

.online-audio-page .oac-pick-card--done .oac-pick-icon {
  color: var(--oa-teal);
  background: linear-gradient(145deg, rgba(7, 210, 184, 0.22), rgba(7, 210, 184, 0.08));
}

.online-audio-page .oac-pick-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  color: var(--oa-teal);
  background: linear-gradient(145deg, rgba(7, 210, 184, 0.18), rgba(7, 210, 184, 0.06));
  box-shadow: 0 8px 24px rgba(7, 210, 184, 0.18);
}

.online-audio-page .oac-pick-icon--image {
  font-size: 1.5rem;
}

.online-audio-page .oac-pick-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem;
}

.online-audio-page .oac-pick-hint {
  font-size: 0.86rem;
  color: #64748b;
  margin: 0 0 0.65rem;
}

.online-audio-page .oac-pick-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.5rem;
}

.online-audio-page .oac-pick-card--done .oac-pick-name {
  color: var(--oa-teal-dark);
}

.online-audio-page .oac-pick-card label.oa-browse-btn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.online-audio-page .oac-pick-formats {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0.75rem 0 0;
  line-height: 1.45;
}
