/* Voice/Video Recording Overlay */
.recording-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.recording-overlay.hidden {
  display: none;
}

.recording-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  background: #13151d;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  overflow: hidden;
}

.recording-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(242, 63, 66, 0.1);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.recording-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.3);
  border: none;
  color: #ef4444;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.recording-close-btn:hover {
  background: rgba(239, 68, 68, 0.5);
}

.recording-timer {
  font-size: 20px;
  font-weight: 700;
  color: #ef4444;
  font-variant-numeric: tabular-nums;
}

.recording-type-label {
  font-size: 13px;
  color: #9ca3af;
  margin-left: auto;
}

.recording-waveform {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 16px;
}

.recording-waveform-bar {
  width: 3px;
  background: linear-gradient(to top, #5865f2, #7c5cfc);
  border-radius: 2px;
  transition: height 0.08s ease;
}

.recording-video-area {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  position: relative;
}

.recording-video-area.hidden {
  display: none;
}

.recording-video-preview {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #5865f2;
  box-shadow: 0 0 24px rgba(88,101,242,0.3);
}

.btn-camera-flip {
  position: absolute;
  top: 12px;
  right: 24px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-camera-flip:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-camera-flip.hidden {
  display: none;
}

.recording-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.recording-lock-zone {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.recording-lock-zone.active {
  opacity: 1;
}

.recording-lock-zone.locked {
  opacity: 1;
}

.recording-lock-zone.locked .lock-icon {
  color: #8b5cf6;
}

.lock-icon {
  font-size: 20px;
}

.btn-recording-send-main {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #7c5cfc);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(88,101,242,0.35);
}

.btn-recording-send-main:hover {
  filter: brightness(1.12);
  transform: scale(1.06);
}

.btn-recording-send-main.hidden {
  display: none;
}

/* Voice message */
.voice-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.12);
  border-radius: 14px;
  max-width: 300px;
}

.voice-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5865f2, #7c5cfc);
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.15s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(88,101,242,0.3);
}

.voice-play-btn:hover {
  filter: brightness(1.12);
  transform: scale(1.05);
}

.voice-play-btn.playing {
  background: var(--danger);
  box-shadow: 0 4px 12px rgba(242,63,66,0.3);
}

.voice-waveform {
  flex: 1;
  height: 28px;
  background: rgba(88, 101, 242, 0.15);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.voice-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(88, 101, 242, 0.35);
  transition: width 0.1s linear;
}

.voice-duration {
  font-size: 13px;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Video circle */
.video-circle-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

.video-circle-player {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #5865f2;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(88,101,242,0.3);
}

.video-circle-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-circle-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.88);
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.2s, transform 0.15s;
  opacity: 1;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.video-circle-play-btn:hover {
  background: rgba(88, 101, 242, 0.98);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-circle-player.playing .video-circle-play-btn {
  opacity: 0;
  pointer-events: none;
}

.video-circle-player:hover.playing .video-circle-play-btn {
  opacity: 0.7;
  pointer-events: auto;
}

/* Mobile adjustments */
@media (max-width: 760px) {
  .recording-video-preview {
    width: 150px;
    height: 150px;
  }

  .voice-message {
    max-width: 250px;
  }

  .video-circle-player {
    width: 180px;
    height: 180px;
  }

  .video-circle-play-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}
