/* Record modal */

.muse-recorder {
  border: 1px solid var(--silicon);
}

.record-videos {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  box-sizing: unset;
  background: #000;
  width: calc(100% - 10px);
  height: 100%;
  max-height: 100%;
  margin: 5px;
  border-radius: 8px;
  border: 1px solid var(--silicon);
  overflow: hidden;
}

.record-videos-container {
  position: relative;
  width: 100%;
  height: fit-content;
}

.record-preview {
  position: relative;
  max-height: 100%;
  max-width: 100%;
  border-radius: 5px;
  z-index: 2;
}

.record-preview-overlay {
  position: absolute;
}

.record-player {
  display: none;
  max-height: 100vh;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.record-merge-screen, .record-merge-user {
  width: 1px;
  height: 1px;
  opacity: 0;
  position: fixed;
}

.record-camera-movers {
  display: none;
  position: absolute;
  z-index: 2;
  opacity: 0;
}

.muse-recorder.recording .record-camera-movers,
.muse-recorder.previewing .record-camera-movers {
  display: block;
}

.record-camera-movers:hover {
  opacity: 1;
  transition: opacity .2s ease;
}

.record-camera-movers .record-camera-up,
.record-camera-movers .record-camera-down,
.record-camera-movers .record-camera-left,
.record-camera-movers .record-camera-right {
  position: absolute;
  cursor: pointer;
  color: #fff;
  opacity: 0.4;
  user-select: none;
  -webkit-user-select: none;
  -webkit-text-stroke: #999 1px;
}

.record-camera-movers *:hover {
  opacity: 0.9;
}

.record-camera-movers .record-camera-up,
.record-camera-movers .record-camera-down {
  line-height: 20px;
  padding: 0 calc(50% - 5px);
}

.record-camera-movers .record-camera-left,
.record-camera-movers .record-camera-right {
  width: 20px;
  padding: calc(50% - 5px) 4px;
}

.record-camera-movers .record-camera-up {
  left: 0;
}

.record-camera-movers .record-camera-down {
  left: 0;
  bottom: 0;
}

.record-camera-movers .record-camera-left {
  top: 0;
}

.record-camera-movers .record-camera-right {
  top: 0;
  right: 0;
}

.muse-recorder .recording-controls {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.recording-settings {
  padding: 0 5px 5px 5px;
}

.recording-settings input {
  margin: 0;
  height: 60px;
  color: var(--black);
  width: 100%;
  padding: 0 20px;
  border-radius: 8px;
  background-color: var(--ghost);
  border: 1px solid var(--slate) !important;
}

.recording-settings .rec-field-name {
  margin-top: 1px;
}

.recording-settings textarea {
  padding: 20px;
  width: 100%;
  resize: none;
  color: var(--black);
  background-color: var(--silicon);
  border: none !important;
  margin-top: 1px;
}

.muse-recorder .recording-buttons {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  padding: 0 5px 5px 5px;
}

.muse-recorder .recording-buttons button {
  opacity: 1;
  margin: 0;
  flex-grow: 1;
  height: 60px;
  background-color: var(--silicon);
}

.muse-recorder .recording-buttons button:disabled {
  color: var(--text-color-light);
}

.muse-recorder .recording-buttons button:disabled i {
  opacity: .5;
}

.btn-rec-start,
.btn-rec-stop {
  border-radius: 8px;
}

.muse-recorder:not(.can-record) .rec-audio,
.muse-recorder:not(.can-record) .btn-rec-start {
  display: none!important;
}

.muse-recorder .btn-rec-stop,
.muse-recorder.recording .btn-rec-start {
  display: none;
}

.muse-recorder.recording .btn-rec-stop {
  display: inline-flex;
}

.btn-rec-store {
  border-right: none!important;
}

.btn-rec-upload,
.btn-rec-store {
  border-radius: 8px 8px 14px 8px;
  margin-left: 5px !important;
}

.btn-rec-upload.loading {
  background-image: url(../imgs/muse-loader.gif)!important;
}

.dark-mode .btn-rec-upload.loading {
  background-image: url(../imgs/muse-loader-white.gif)!important;
}

.muse-recorder .recording-controls .m-checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  margin: 0;
  height: 60px;
  padding-left: 0;
  overflow: hidden;
}

.muse-recorder .recording-controls .m-checkbox-container .icon-checked,
.muse-recorder .recording-controls input:checked ~ .icon-unchecked {
  display: none;
}
.muse-recorder .recording-controls .m-checkbox-container .icon-unchecked,
.muse-recorder .recording-controls input:checked ~ .icon-checked {
  display: block;
}

.muse-recorder .recording-controls .m-checkmark {
  display: none;
}

.muse-recorder .input-video-controls {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 20px 0 0 0;
  z-index: 1;
}

.muse-recorder .input-video-controls i {
  margin: 0 0 5px 0;
  filter: invert(1);
}

.muse-recorder .input-video-controls .radio-box {
  display: flex;
  flex-direction: column-reverse;
  padding: 0 35px;
  margin: 0;
  font-size: var(--size-small);
  color: #fff;
  text-align: center;
}

.muse-recorder .input-video-controls input:checked ~ .icon-checked {
  display: block;
}
.muse-recorder .input-video-controls input:checked ~ .icon-unchecked {
  display: none;
}
.muse-recorder .input-video-controls input:not(:checked) ~ .mic-vol-indicator {
  display: none;
}

.muse-recorder .input-video-controls .divider.vertical {
  height: 20px;
  border-left: 1px solid var(--white-60);
  margin: 0;
}

.dark-mode .muse-recorder .input-video-controls .divider.vertical {
  border-left: 1px solid var(--silicon);
}

.rec-audio {
  border-radius: 8px 8px 8px 14px;
  background-color: var(--silicon);
  margin-right: 5px !important;
}

.rec-audio i {
  margin: 0;
  z-index: 1;
}

.muse-recorder .mic-vol-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--slate);
  height: 100%;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .2s ease;
}

.muse-recorder .icon-m-close {
  cursor: pointer;
}

/* Record state indicators */

.muse-recorder .record-state-indicator,
.muse-recorder .preview-state-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 20px;
  right: 20px;
  line-height: 29px;
  padding: 0 10px;
  background-color: rgba(0, 0, 0, .3);
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 3;
  backdrop-filter: blur(10px);
}

.muse-recorder.recording .record-state-indicator,
.muse-recorder.previewing .preview-state-indicator {
  opacity: 1;
}

.muse-recorder .record-state-indicator span,
.muse-recorder .preview-state-indicator span {
  font-size: 1.3rem;
  line-height: 29px;
  color: #fff;
}

.muse-recorder .record-state-indicator span {
  margin-left: 9px;
}

.muse-recorder .rec-circle {
  position: relative;
  background-color: var(--hal-red);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

.muse-recorder .rec-circle-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--hal-red);
  transform: scale(1);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    background-color:rgba(248, 55, 55, 0.8);
  }

  70% {
    transform: scale(1.8);
    background-color:rgba(248, 55, 55, 0);
  }

  100% {
    transform: scale(2.2);
    background-color:rgba(248, 55, 55, 0);
  }
}

.muse-recorder.recording .radio-box,
.muse-recorder button:disabled {
  cursor: not-allowed;
  opacity: .7;
}

.muse-recorder .empty-state-record,
.muse-recorder .overlay-no-permissions,
.muse-recorder .rec-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  top: 0;
  width: 100%;
  background-color: #000;
  color: #fff;
  z-index: 5;
  transition: opacity .2s ease;
}

.muse-recorder.recording .empty-state-record {
  z-index: 1;
}

.muse-recorder.preview-loading .record-preview {
  min-height: 320px;
}

.muse-recorder.no-permissions .empty-state-record {
  display: none!important;
}

.muse-recorder .overlay-no-permissions,
.muse-recorder.no-permissions .empty-state-record {
  display: none;
}

.muse-recorder.no-permissions .overlay-no-permissions {
  display: flex;
}

.muse-recorder .overlay-no-permissions i {
  margin-bottom: 20px;
  filter: invert(1);
}

.record-countdown {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  font-size: 120px;
  color: #fff;
  text-shadow: 0px 0px 9px black;
  align-items:center;
  justify-content: center;
}

.record-countdown.show {
  display: flex;
}

/* Review player */

.muse-recorder .player-minimal .player-play-mobile {
  bottom: 35px;
}

.muse-recorder .progress-bar-container.mobile {
  bottom: 11px;
  top: unset;
  left: 21px;
  right: 21px;
  opacity: 0;
  pointer-events: all;
  z-index: 2;
  transition: opacity .2s;
}

.muse-recorder .video-container:hover .progress-bar-container.mobile,
.muse-recorder .video-container.mobile-overlay .progress-bar-container.mobile {
  opacity: 1;
}

.muse-recorder .player-controls-mobile-right {
  bottom: 35px;
}

.muse-recorder .video-seekbar-thumbnail,
.muse-recorder .rew-clickable,
.muse-recorder .rew-clickable {
  display: none!important;
}

.muse-recorder .player-controls-mobile {
  pointer-events: none;
}

.muse-recorder .player-controls-mobile::after {
  height: 100px;
}

/* Toast */
.record-videos .m-toast {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  justify-content: left;
}

.record-videos .m-toast.current {
  -webkit-animation: slideup-to-zero .5s cubic-bezier(0.165, 0.84, 0.44, 1);
  animation: slideup-to-zero .5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@-webkit-keyframes slideup-to-zero {
  from { bottom: -1000px }
  to { bottom: 0px }
}

@keyframes slideup-to-zero {
  from { bottom: -1000px }
  to { bottom: 0px }
}

/* Overlays */

.muse-recorder .rec-overlay {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
}

.rec-overlay .content-overlay {
  max-width: 80%;
}

.rec-overlay-end-title {
  opacity: 1;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 20px;
}

.rec-overlay-end-text {
  color: #fff;
  margin: 0 0 30px;
  opacity: .7;
}

.rec-overlay-uploading i {
  margin-right: 2px;
}

.uploading .rec-overlay-uploading {
  display: flex;
}

.uploading .recording-controls button,
.uploading .recording-controls input,
.uploading .recording-controls textarea {
  opacity: .5 !important;
  cursor: default;
  pointer-events: none;
}

.rec-overlay.upload-unpreviewable {
  display: none;
  background-image: url('https://muse.ai/static/imgs/empty-states/empty-state-thumbnail.svg');
  background-size: cover;
  background-repeat: no-repeat;
}

.rec-overlay.upload-unpreviewable .message {
  color: var(--black);
  background: #0002;
  padding: 10px;
  text-align: center;
}

.rec-overlay.upload-unpreviewable .message .filename-line {
  padding-bottom: 10px;
}

.rec-overlay.upload-unpreviewable .message .filename {
  font-size: 16px;
  font-weight: 400;
}

@media all and (max-width: 769px) {
  .recording-buttons button,
  .recording-controls .m-checkbox-container,
  .recording-settings input {
    border-radius: 8px!important;
  }
}