.clip-container {
  margin-top: 68px;
}

.clip-intro {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.clip-card {
  max-width: 980px;
  margin: 0 auto 40px;
  padding: 26px;
  border: 1px solid #d9e2ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.05);
}

.drop-zone {
  border: 2px dashed #28aae1;
  border-radius: 12px;
  padding: 42px 20px;
  text-align: center;
  background: #f7fbfd;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.drop-zone.drag-over {
  border-color: #0f84b6;
  background: #edf7fc;
}

.drop-title {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 600;
}

.drop-subtitle {
  margin: 0 0 18px;
  color: #3c4d57;
}

.clip-btn {
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  background: #28aae1;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.clip-btn:hover {
  background: #188fbe;
  transform: translateY(-1px);
}

.clip-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.clip-btn-light {
  background: #eff4f7;
  color: #11232e;
}

.clip-btn-light:hover {
  background: #dde8ef;
}

.editor {
  margin-top: 24px;
}

.is-hidden {
  display: none;
}

.file-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e3ebf1;
}

.meta-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5d6d78;
}

.meta-value {
  margin: 5px 0 0;
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
}

.preview-wrap {
  margin-bottom: 16px;
}

#videoPreview {
  width: 100%;
  max-height: 58vh;
  border-radius: 10px;
  background: #111111;
}

#waveCanvas {
  width: 100%;
  height: 220px;
  display: block;
  border: 1px solid #dce8f0;
  border-radius: 10px;
  background: #f4f8fb;
  cursor: crosshair;
  touch-action: none;
}

#waveCanvas.is-dragging {
  cursor: ew-resize;
}

#audioPreview {
  width: 100%;
  margin-top: 12px;
}

.wave-help {
  margin: 8px 0 10px;
  font-size: 0.84rem;
  color: #4d626e;
}

.timeline-row {
  margin-bottom: 16px;
}

.timeline-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #d8e8f2;
  overflow: hidden;
}

.selection-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: #28aae1;
}

.time-readout {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.92rem;
  color: #22323c;
}

.trim-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 18px;
}

.trim-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trim-field span {
  font-size: 0.88rem;
  color: #445863;
}

.trim-field input {
  height: 38px;
  border: 1px solid #bfd3df;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.95rem;
}

.trim-range {
  width: 100%;
  accent-color: #28aae1;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mark-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.mark-help {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: #4d626e;
}

.status-text {
  min-height: 22px;
  margin: 14px 0 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: #0e6a8d;
}

.status-text.error {
  color: #b22020;
}

.progress-wrap {
  margin: 6px 0 12px;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #dce8f0;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #28aae1, #0f84b6);
  border-radius: 999px;
  transition: width 0.18s ease;
}

.progress-label {
  margin: 6px 0 0;
  font-size: 0.83rem;
  color: #36505f;
}

.note {
  margin: 0;
  font-size: 0.85rem;
  color: #526671;
}

.note code {
  background: #ebf1f5;
  padding: 1px 6px;
  border-radius: 5px;
}

@media (max-width: 860px) {
  .clip-card {
    padding: 18px;
  }

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