:root {
  --voice-cloud-bg: rgba(255,255,255,0.10);
  --voice-cloud-bg-hover: rgba(255,255,255,0.14);
  --voice-cloud-border: rgba(255,255,255,0.45);
  --voice-cloud-border-hover: rgba(255,255,255,0.65);
  --voice-cloud-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  --voice-cloud-text: rgba(255,255,255,0.95);
  --voice-cloud-font-size: 20px;
  --voice-cloud-radius: 999px;
  --voice-cloud-padding-y: 18px;
  --voice-cloud-padding-x: 18px;
}

.voice-cloud-layer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  pointer-events: none;
  overflow: hidden;
}

.btn-like,
.voice-cloud {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 44px;
  padding: var(--voice-cloud-padding-y) var(--voice-cloud-padding-x);
  border-radius: var(--voice-cloud-radius);
  border: 1px solid var(--voice-cloud-border);
  background: var(--voice-cloud-bg);
  color: var(--voice-cloud-text);
  font-family: Arial, sans-serif;
  font-size: var(--voice-cloud-font-size);
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--voice-cloud-shadow);
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
  will-change: transform, left, top;
  overflow: hidden;
  touch-action: none;
}

.voice-cloud::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -60%;
  width: 60%;
  height: 180%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  animation: voice-cloud-sheen 2.2s ease-in-out infinite;
  z-index: 0;
}

.voice-cloud:hover,
.voice-cloud:focus-visible {
  transform: translateY(-1px);
  background: var(--voice-cloud-bg-hover);
  border-color: var(--voice-cloud-border-hover);
  outline: none;
}

.voice-cloud:active {
  transform: translateY(0) scale(0.995);
}

.voice-cloud__content,
.voice-cloud__close {
  position: relative;
  z-index: 1;
}

.voice-cloud__content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.voice-cloud__icon {
  font-size: 0.9em;
}

.voice-cloud__close {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.voice-cloud__close:hover {
  background: rgba(255,255,255,0.12);
}

.voice-cloud--pulse {
  animation: voice-cloud-pulse-on-tap 700ms ease-in-out;
}

.voice-cloud--dragging {
  transform: scale(1.06);
  border-color: rgba(255,255,255,0.75);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45), 0 0 0 12px rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.25);
}

.voice-cloud--enter {
  animation: voice-cloud-enter .52s ease both;
}

.voice-cloud--hidden {
  opacity: 0;
  pointer-events: none;
}

.voice-cloud-trash {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.26);
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.92);
  z-index: 13000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease, background .2s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.voice-cloud-trash--show {
  opacity: 1;
  transform: translateY(0);
}

.voice-cloud-trash--hot {
  border-color: rgba(255,120,120,0.8);
  background: rgba(255,65,65,0.22);
}

@keyframes voice-cloud-pulse-on-tap {
  0% { transform: scale(1); }
  50% { transform: scale(1.13); }
  100% { transform: scale(1); }
}

@keyframes voice-cloud-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes voice-cloud-sheen {
  0% { left: -60%; opacity: 0; }
  20% { opacity: 1; }
  60% { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

@media (max-width: 560px) {
  .voice-cloud {
    min-width: 120px;
    min-height: 48px;
    font-size: 16px;
    padding: 14px 16px;
  }

  .voice-cloud-trash {
    left: 12px;
    right: 12px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-cloud,
  .voice-cloud::after,
  .voice-cloud--pulse,
  .voice-cloud--enter {
    animation: none !important;
    transition: none !important;
  }
}
