/* Simple RTL style inspired by your screenshots */
.cmr-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}
.cmr-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;

  box-sizing: border-box;
}

@media (min-width: 1320px) {
  .cmr-inner {
    padding: 0;
  }
}
.cmr-left {
  width: 100%;
}

.cmr-mode {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.cmr-mode button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eee;
  padding: 8px 12px;
  cursor: pointer;
}
.cmr-mode button.cmr-active {
  background: #2e594f;
  border-color: #2e594f;
}
.cmr-preview-wrap {
  position: relative;
  width: 100%;
}

video#cmr-video-preview {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
#cmr-audio {
  position: relative;
  width: 100vw;
  max-width: 100%;
  margin: 0 auto;
  background: #43404a;
  padding: 108px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#cmr-audio-canvas {
  width: 100%;
  height: 200px;
  background: transparent;
  display: block;
}
.cmr-timer {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 127px;
  height: 51px;
  border-radius: 76px;
  background: rgba(15, 14, 14, 0.3);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  font-weight: 700;
  color: white;
  z-index: 10;
}
/* Video timer - positioned at top start */
#cmr-video-timer {
  top: 12px;
  left: 12px;
  right: auto;
  transform: none;
}
.cmr-rtl #cmr-video-timer {
  left: auto;
  right: 12px;
}
.cmr-ltr #cmr-video-timer {
  left: 12px;
  right: auto;
}
/* Audio timer - centered text, no background */
#cmr-audio-timer {
  position: static !important;
  top: unset !important;
  left: unset !important;
  right: unset !important;
  transform: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 0;
  font-weight: 700;
  color: #fff4d9;
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  z-index: 10;
}
.cmr-rtl .cmr-timer {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}
.cmr-ltr .cmr-timer {
  left: 50%;
  transform: translateX(-50%);
}

.cmr-timer-icon-wrapper {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cmr-timer-icon-circle,
.cmr-timer-icon-pause {
  width: 12px;
  height: 12px;
}

.cmr-timer-text {
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

/* Audio tracker at bottom of video - positioned at bottom end */
.cmr-audio-tracker {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
/* Video audio tracker - positioned at bottom end */
#cmr-video-audio-tracker {
  bottom: 17.5px;
  right: -11.5px;
  left: auto;
  transform: none;
  width: 60px;
  height: 60px;
}
.cmr-rtl #cmr-video-audio-tracker {
  left: 47.5px;
  right: auto;
}
.cmr-ltr #cmr-video-audio-tracker {
  left: auto;
  right: -11.5px;
}

.cmr-audio-tracker svg {
  width: 38px;
  height: 38px;
}

/* Animation for audio tracker when recording */
.cmr-audio-tracker.recording {
  animation: cmr-audio-pulse 1.5s ease-in-out infinite;
}

@keyframes cmr-audio-pulse {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1.05);
  }
}
.cmr-controls {
  width: 82.93%;
  max-width: 1080px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-around;
  background: #3d3b42;
  padding-top: 33px;
  margin: -10px auto 0 auto;
}

/* Audio controls background */
#cmr-audio .cmr-controls {
  background: #43404a;
}

@media (min-width: 1441px) {
  .cmr-controls {
    width: 100% !important;
  }
}
.cmr-controls button {
  color: #fff4d9;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid rgba(255, 244, 217, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  min-height: 44px;
  background: transparent;
}

.cmr-controls button:active:not(:disabled) {
  transform: translateY(1px);
}
.cmr-controls button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Start button when ended - red color */
.cmr-controls button#cmr-start-video.cmr-state-ended,
.cmr-controls button#cmr-start-audio.cmr-state-ended {
  color: #eb5757 !important;
  border-color: #eb5757;
}

.cmr-controls button#cmr-start-video.cmr-state-ended .cmr-icon svg path,
.cmr-controls button#cmr-start-audio.cmr-state-ended .cmr-icon svg path {
  fill: #eb5757;
}

/* Pause button when paused - red color */
.cmr-controls button#cmr-pause-video.cmr-state-paused,
.cmr-controls button#cmr-pause-audio.cmr-state-paused {
  color: #eb5757 !important;
  border-color: #eb5757;
}

.cmr-controls button#cmr-pause-video.cmr-state-paused .cmr-icon svg path,
.cmr-controls button#cmr-pause-audio.cmr-state-paused .cmr-icon svg path {
  fill: #eb5757;
}

.cmr-icon {
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cmr-text {
  line-height: 1;
}
.cmr-rtl .cmr-controls button {
  flex-direction: row-reverse;
}
.cmr-ltr .cmr-controls button {
  flex-direction: row;
}
.cmr-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.03);
  z-index: 9999;
  border-radius: 0;
  overflow: hidden;
}
.cmr-progress-bar {
  height: 100%;
  background: #9e75f7;
  width: 0%;
  transition: width 150ms;
}

.hidden {
  display: none !important;
}

/* Right side */
.cmr-right h2 {
  font-size: 20px;
  margin: 0 0 12px 0;
  color: #ddd;
}
.cmr-right label {
  display: block;
  margin-bottom: 10px;
  color: #ddd;
  font-size: 14px;
}
.cmr-right input[type='text'],
.cmr-right textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 48px;
  border-radius: 6px;
}
.cmr-checkboxes {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmr-save-note {
  margin-top: 18px;
  font-size: 13px;
  color: #cfcfcf;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .cmr-inner {
    padding: 12px;
    gap: 12px;
  }
  .cmr-left {
    padding: 14px;
  }
  .cmr-right {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .cmr-inner {
    padding: 10px;
    gap: 10px;
  }
  .cmr-left {
    padding: 12px;
  }
  .cmr-right {
    padding: 16px;
  }
  .cmr-controls {
    gap: 8px;
  }
  .cmr-controls button {
    padding: 8px 12px;
    font-size: 13px;
  }
}
