.show-video-trim-crop {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: 200px;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-video-trim-crop video {
  width: 100%;
  max-width: 100%;
  max-height: inherit;
  display: block;
  object-fit: contain;
  box-sizing: border-box;
  transition: transform 0.3s ease, clip-path 0.3s ease;
  pointer-events: auto !important;
  position: relative;
  z-index: 25;
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
  background-color: #ccc;
}

.show-video-trim-crop-details {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.show-video-trim-crop-details-content {
  display: flex;
  margin-top: 0.6rem;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.show-video-trim-crop-details-content-item {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: #BDBDBD;
}

.show-video-trim-crop-details-content-item-value {
  font-size: 0.8rem;
  font-weight: 400;
  color: #939393;
}

.show-video-trim-crop-details-action {
  display: flex;
  margin-top: 0.6rem;
  justify-content: start;
  align-items: center;
}

.trim-crop-done-btn {
  background-color: #AFFFCA;
  border: 1px solid #89FEB0;
  border-radius: 4px;
  color: #28a745;
  font-size: .6rem;
  padding: 0 10px;
  height: 20px;
  width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.trim-crop-done-btn:hover {
  opacity: 0.9;
}

.play-video-trim-crop {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  max-width: 58px;
  max-height: 58px;
  pointer-events: auto;
}

/* .video-timeline {
  position: relative;
  width: 100%;
  font-family: sans-serif;
  margin-bottom: 60px;
  margin-top: 20px;
} */

/* Segments */
.timeline-segment {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: var(--track-height);
  border-radius: 2px;
}

.timeline-segment-left,
.timeline-segment-right {
  background: var(--timeline-segment-color);
}

.timeline-segment-left {
  left: 0;
  width: var(--left-segment-width, 10%);
}

.timeline-segment-active {
  left: var(--active-segment-left, 10%);
  width: var(--active-segment-width, 80%);
  background: var(--secondary-color);
}

.timeline-segment-right {
  left: var(--right-segment-left, 90%);
  width: var(--right-segment-width, 10%);
}

/* Handles */
.timeline-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(var(--handle-size) / var(--scale-ratio, 1));
  max-height: calc(var(--handle-size) / var(--scale-ratio, 1));
  cursor: ew-resize;
  z-index: 10;
  user-select: none;
  touch-action: none;
  border-radius: 50%;
}

.timeline-handle-left {
  left: var(--left-handle-position, 10%);
}

.timeline-handle-right {
  left: var(--right-handle-position, 90%);
}

.time-start, .time-end {
  position: absolute;
  top: 22px;
  font-size: 12px;
  color: #bbb;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  transition: left 0.1s;
  z-index: 20;
  display: block;
}
.time-end {
  left: -22px;
}
.timeline-track {
  position: relative;
}

.handle-circle {
  width: calc(var(--handle-size) / var(--scale-ratio, 1)) !important;
  height: calc(var(--handle-size) / var(--scale-ratio, 1)) !important;
  border: 2px solid #BFBCBC;
  background-color: #FFFFFF;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 50%;
  transition: all 0.2s ease;

}



/* Playhead */
/* .timeline-playhead {
  position: absolute;
  top: 50%;
  left: var(--playhead-position, 50%);
  transform: translate(-50%, -50%);
  z-index: 50;
  max-width: calc(var(--handle-size) / var(--scale-ratio, 1));
  max-height: calc(var(--handle-size) / var(--scale-ratio, 1));

  width: 21px;
  height: 21px;
  border-radius: 4px;
  border: 2px solid #ccc;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
} */

.playhead-triangle {
  display: block;
  object-fit: contain;
  position: static;
  backface-visibility: hidden;
  will-change: auto;
  width: calc(var(--handle-size) / var(--scale-ratio, 1));
  height: calc(var(--handle-size) / var(--scale-ratio, 1));
  transition: all 0.2s ease;
}

.pausehead-triangle {
  background: none;
  display: none;
  animation: none !important;
  width: calc(var(--handle-size) / var(--scale-ratio, 1));
  height: calc(var(--handle-size) / var(--scale-ratio, 1));
  transition: all 0.2s ease;
}

.pausehead-triangle.pause {
  display: block;
}

/* Dragging states */
.timeline-handle.dragging,
.timeline-playhead.dragging {
  transform: translate(-50%, -50%);
  z-index: 100;
  transition: none;
}

.timeline-handle.dragging .handle-circle,
.timeline-playhead.dragging .playhead-button {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Smooth transitions */
.timeline-handle,
.timeline-playhead {
  transition: transform 0.2s ease;
}

.playhead-button {
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  width: calc(var(--handle-size) / var(--scale-ratio, 1));
  height: calc(var(--handle-size) / var(--scale-ratio, 1));
  cursor: pointer;
  transition: all 0.2s ease;
}

.timeline-labels {
  font-size: 14px;
  color: #bbb;
  font-weight: 500;
  letter-spacing: 1px;
}

.trim-crop-video {
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
}


.timeline {
  position: relative;
  width: 600px;
  height: 6px;
  background: #ddd;
  margin: 20px 0;
}

.trim {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 14px;
  background: red;
}

.trim-start {
  left: 20%;
}

.trim-end {
  right: 20%;
}

.playhead {
  position: absolute;
  top: -6px;
  width: 10px;
  height: 18px;
  background: blue;
  border-radius: 2px;
}

.btn-crop {
  width: 3.6rem;
  height: 1.64rem;
  font-size: .6rem;
  /* border: 1px solid rgba(131, 129, 129, 1); */
  border: var(--border-button);
  padding: 6px;
  border-radius: var(--border-radius);
  background-color: var(--white);
  color: rgba(131, 129, 129, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-crop.active {
  background-color: var(--bg-active);
  border: var(--border-active);
  color: rgba(131, 129, 129, 1);
}

.btn-crop-text {
  color: rgba(131, 129, 129, 1);
}

.crop-acction-btn {
  font-size: 15px;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.25rem;
  margin: 0.6rem 0;
  color: rgba(131, 129, 129, 1);
  flex-wrap: nowrap;
  overflow-x: auto;
  transition: all 0.3s ease;
  scrollbar-width: none;
}

.crop-acction-btn {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.crop-acction-btn::-webkit-scrollbar {
  display: none;
}


.crop-acction-btn img {
  width: 15px;
  height: 15px;
}

.flip-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  margin-top: 0.6rem;
}

.flip-wrapper button {
  border: var(--border-button);
  background-color: transparent;
  width: 6rem;
  cursor: pointer;
  color: var(--white);
  padding: 6px;
  gap: 10px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.flip-wrapper button img {
  width: .9rem;
  height: .9rem;
}

.flip-wrapper button.active {
  background-color: var(--bg-active);
  border: var(--border-active);
}

.flip-wrapper button.active .fliptext {
  color: var(--gray-500);
}

.flip-wrapper .fliptext {
  color: var(--gray-500);
  font-weight: 500;
  font-size: .8rem;
}

.line-trim-crop {
  height: 1px;
  background: #f2f2f2;
  margin: 0 auto;
}

.advanced-btn {
  background-color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  width: 20px;
  height: 20px;
}

.advanced-btn:hover {
  background-color: #f5f5f5;
}