/* EBAT.chat — design system
   Dark-first, restrained, no gradients/glassmorphism. CSS custom properties define the palette,
   spacing, radii and typography once; components below consume them. */

:root {
  --bg: #0a0a0c;
  --surface-0: #111114;
  --surface-1: #17171b;
  --surface-2: #1e1e23;
  --surface-3: #26262c;
  --border: #29292f;
  --border-strong: #38383f;

  --text: #f2f2f4;
  --text-muted: #9a9aa4;
  --text-faint: #6d6d76;

  --accent: #8b7bf7;
  --accent-strong: #a394ff;
  --accent-text: #0c0a14;

  --danger: #ef5f5f;
  --danger-bg: #2a1618;
  --danger-border: #4a2226;
  --danger-text: #ff9b9b;

  --success: #57caa0;
  --success-bg: #12241e;

  --warn-bg: #241d10;
  --warn-border: #453419;
  --warn-text: #e7b96a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --focus-ring: 0 0 0 3px rgba(139, 123, 247, 0.35);

  --header-h: 60px;
  --controls-h: auto;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
}

a {
  color: inherit;
}

::selection {
  background: rgba(139, 123, 247, 0.35);
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---------- App shell ---------- */

.app-shell {
  height: 100dvh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app {
  width: min(720px, 100%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--space-3) var(--space-4) var(--space-4);
}

/* ---------- Header ---------- */

.header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-1) var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.brand-name .dim {
  color: var(--text-faint);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  max-width: 62%;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  flex: 0 0 auto;
}

.status-pill[data-state="searching"] .dot {
  background: var(--warn-text);
  animation: pulse 1.4s ease-in-out infinite;
}

.status-pill[data-state="connected"] .dot {
  background: var(--success);
}

.status-pill[data-state="restricted"] .dot,
.status-pill[data-state="error"] .dot {
  background: var(--danger);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.status-pill span.label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Age gate ---------- */

.gate-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.gate {
  width: min(440px, 100%);
  text-align: center;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  box-shadow: var(--shadow-md);
}

.gate .gate-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.gate h2 {
  margin: 0 0 var(--space-3);
  font-size: 20px;
  font-weight: 800;
}

.gate p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14.5px;
  margin: 0 0 var(--space-5);
}

/* ---------- Buttons ---------- */

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0 20px;
  height: 48px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.08s ease, filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.btn-primary {
  background: var(--text);
  color: #0c0c0e;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(0.93);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-accent:hover:not(:disabled) {
  background: var(--accent-strong);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-3);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
}

.btn-danger:hover:not(:disabled) {
  background: #331a1c;
}

.btn-icon {
  width: 48px;
  padding: 0;
  flex: 0 0 48px;
}

.btn-lg {
  height: 54px;
  padding: 0 30px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

/* ---------- Main chat UI ---------- */

.main-ui {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-0);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  scroll-behavior: smooth;
}

.chat::-webkit-scrollbar {
  width: 8px;
}

.chat::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 999px;
}

.empty-hint {
  margin: auto;
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}

/* Message bubbles */

.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  line-height: 1.45;
  word-wrap: break-word;
  animation: rise 0.15s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg.me {
  align-self: flex-end;
  background: var(--text);
  color: #0c0c0e;
  border-bottom-right-radius: 4px;
}

.msg.them {
  align-self: flex-start;
  background: var(--surface-2);
  border-bottom-left-radius: 4px;
}

.msg.system {
  align-self: center;
  background: transparent;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  max-width: 92%;
  padding: 4px 10px;
}

.msg.security {
  align-self: center;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: 13px;
  text-align: center;
  max-width: 90%;
  border-radius: var(--radius-sm);
}

.msg.security-ok {
  background: var(--success-bg);
  border: 1px solid rgba(87, 202, 160, 0.35);
  color: var(--success);
}

/* Photo card */

.photo-card {
  align-self: flex-start;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s ease;
}

.photo-card:hover {
  background: var(--surface-3);
}

.photo-card.is-open {
  cursor: default;
  padding: 6px;
  display: block;
}

.photo-card.is-open:hover {
  background: var(--surface-2);
}

.photo-card.is-expired {
  cursor: default;
  color: var(--text-faint);
}

.photo-card.is-expired:hover {
  background: var(--surface-2);
}

.photo-card img {
  max-width: 100%;
  max-height: 55vh;
  border-radius: calc(var(--radius-md) - 4px);
  display: block;
}

/* Typing indicator */

.typing-row {
  flex: 0 0 20px;
  padding: 0 var(--space-2);
  color: var(--text-faint);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.typing-row .dots {
  display: inline-flex;
  gap: 3px;
}

.typing-row .dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: bounce 1.2s infinite ease-in-out;
}

.typing-row .dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-row .dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

/* Controls row */

.controls {
  flex: 0 0 auto;
  display: flex;
  gap: var(--space-2);
  align-items: stretch;
}

.controls .input-wrap {
  flex: 1;
  min-width: 0;
}

.controls input[type="text"],
.controls input:not([type]) {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 48px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 0 16px;
  font-size: 16px;
}

.controls input::placeholder {
  color: var(--text-faint);
}

.controls input:focus-visible {
  border-color: var(--accent);
}

.safety-row {
  flex: 0 0 auto;
  display: flex;
  gap: var(--space-2);
  padding-top: 2px;
}

.safety-row .btn {
  height: 38px;
  font-size: 13px;
  padding: 0 14px;
}

/* ---------- Modals ---------- */

.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 8, 0.82);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal-wrap.is-open {
  display: flex;
}

.modal-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.modal-card h3 {
  margin: 0 0 var(--space-4);
  font-size: 17px;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.modal-actions .btn {
  flex: 1;
}

/* Report category list */

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: var(--space-3);
}

.cat-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid transparent;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cat-btn:hover {
  background: var(--surface-3);
}

.cat-btn.selected {
  background: rgba(139, 123, 247, 0.14);
  border-color: var(--accent);
  color: var(--text);
}

.report-desc {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

/* Camera modal */

.camera-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  width: min(480px, 100%);
}

.camera-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-actions {
  display: flex;
  gap: var(--space-3);
  width: 100%;
}

.camera-actions .btn {
  flex: 1;
}

/* ---------- SEO section ---------- */

.seo {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 56px 22px 72px;
  color: var(--text-muted);
}

.seo h1 {
  font-size: 30px;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 var(--space-4);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.seo h2 {
  font-size: 19px;
  color: var(--text);
  margin: 34px 0 var(--space-2);
  font-weight: 700;
}

.seo p {
  font-size: 15px;
  line-height: 1.75;
}

.seo a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.seo a:hover {
  text-decoration-color: var(--text);
}

.seo-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.seo-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: var(--space-4);
}

/* ---------- Utility ---------- */

.hidden {
  display: none !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .app {
    padding: var(--space-2) var(--space-3) var(--space-3);
  }

  .brand-name {
    font-size: 17px;
  }

  .status-pill {
    max-width: 55%;
    font-size: 12px;
  }

  .msg {
    max-width: 86%;
  }

  .btn {
    padding: 0 16px;
  }

  .safety-row .btn {
    flex: 1;
  }

  .modal-card {
    padding: var(--space-4);
  }
}

@media (min-width: 900px) {
  .app {
    width: min(760px, 100%);
  }

  .seo {
    width: min(760px, 100%);
  }
}


/* ===== PRIVATE ROOM UI ===== */

.mode-switch {
  display: flex;
  gap: 8px;
  padding: 0 0 10px;
}

.mode-btn {
  appearance: none;
  border: 1px solid var(--border, rgba(255,255,255,.12));
  background: rgba(255,255,255,.035);
  color: inherit;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  opacity: .7;
}

.mode-btn:hover {
  opacity: 1;
}

.mode-btn.active {
  opacity: 1;
  background: rgba(255,255,255,.10);
}

.room-setup {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
}

.room-setup-title {
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 5px;
}

.room-setup-text {
  font-size: 13px;
  line-height: 1.45;
  opacity: .7;
  margin-bottom: 14px;
}

.room-username {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: inherit;
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
  font: inherit;
  margin-bottom: 10px;
}

.room-username:focus {
  border-color: rgba(255,255,255,.28);
}

.room-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-toolbar {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

.room-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.room-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  opacity: .55;
}

.room-count {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
}

.room-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.room-toolbar-actions .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.room-invite-url {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,.16);
  font-size: 11px;
  opacity: .65;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  user-select: all;
}

.room-members {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 2px;
}

.room-member {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  color: inherit;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.room-member:hover:not(:disabled) {
  background: rgba(255,255,255,.10);
}

.room-member.me {
  opacity: .65;
  cursor: default;
}

.msg-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.msg-wrap.me {
  align-items: flex-end;
}

.msg-name {
  font-size: 10px;
  font-weight: 700;
  opacity: .48;
  margin: 0 6px 3px;
}

.photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.photo-wrap.mine {
  align-items: flex-end;
}

@media (max-width: 640px) {
  .mode-switch {
    padding-bottom: 8px;
  }

  .mode-btn {
    flex: 1;
  }

  .room-toolbar-top {
    flex-direction: column;
  }

  .room-toolbar-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .room-toolbar-actions .btn {
    flex: 1;
  }

  .room-setup-actions .btn {
    flex: 1;
  }
}


/* ===== Custom AI stickers ===== */

.sticker-button {
  min-width: 92px;
  white-space: nowrap;
}

.sticker-row {
  display: flex;
  width: 100%;
  margin: 4px 0 10px;
}

.sticker-row.mine {
  justify-content: flex-end;
}

.sticker-row.theirs {
  justify-content: flex-start;
}

.sticker-bubble {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 120px;
  background: transparent;
  border: 0;
  padding: 0;
}

.sticker-username {
  max-width: 110px;
  margin-bottom: 3px;
  font-size: 11px;
  opacity: .72;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-sticker {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,.28));
}

@media (max-width: 600px) {
  .sticker-button {
    min-width: 0;
  }

  .chat-sticker {
    width: 92px;
    height: 92px;
  }
}


/* ===== EBAT compact camera + sticker controls ===== */

#camera,
#sticker {
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;

  height: 48px !important;

  padding: 0 !important;
  margin: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  white-space: nowrap !important;
  overflow: hidden !important;

  font-size: 16px !important;
  line-height: 1 !important;
}

#sticker {
  font-size: 20px !important;
}

#message,
#messageInput,
textarea.message-input,
input.message-input {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

#send {
  flex: 0 0 auto !important;
  min-width: 68px !important;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

@media (max-width: 700px) {
  #camera,
  #sticker {
    flex-basis: 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
  }

  #send {
    min-width: 62px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}


/* ==========================================================
   EBAT BAT VOICE
   ========================================================== */

.voice-button {
  min-width: 46px;
  white-space: nowrap;
}

.voice-button.is-recording {
  min-width: 76px;
  animation: ebatVoicePulse 1s ease-in-out infinite;
}

@keyframes ebatVoicePulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.04);
    opacity: .72;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.voice-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 8px 0;
}

.voice-wrap.mine {
  align-items: flex-end;
}

.voice-card {
  display: flex;
  align-items: center;
  gap: 8px;

  max-width: min(360px, 88vw);
  padding: 8px 10px;

  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.voice-card-icon {
  flex: 0 0 auto;
  font-size: 22px;
}

.voice-card audio {
  display: block;
  width: min(280px, 68vw);
  height: 38px;
}



/* ==========================================================
   EBAT CUSTOM BAT VOICE PLAYER
   ========================================================== */

.voice-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 8px 0;
}

.voice-wrap.mine {
  align-items: flex-end;
}

.voice-card {
  display: flex;
  align-items: center;
  gap: 9px;

  width: min(330px, 82vw);
  min-height: 48px;

  padding: 7px 11px;

  border: 1px solid rgba(170, 92, 255, .28);
  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      rgba(104, 46, 150, .20),
      rgba(22, 18, 29, .92)
    );

  box-shadow:
    0 6px 20px rgba(0, 0, 0, .16);
}

.voice-wrap.mine .voice-card {
  border-color:
    rgba(188, 110, 255, .42);

  background:
    linear-gradient(
      135deg,
      rgba(123, 55, 175, .30),
      rgba(30, 20, 38, .94)
    );
}

.voice-bat {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
}

.voice-play {
  appearance: none;
  -webkit-appearance: none;

  display: grid;
  place-items: center;

  flex: 0 0 32px;

  width: 32px;
  height: 32px;

  padding: 0;

  border: 1px solid
    rgba(199, 132, 255, .45);

  border-radius: 50%;

  background:
    rgba(139, 72, 190, .25);

  color: #fff;

  font-size: 13px;
  cursor: pointer;
}

.voice-play:hover {
  background:
    rgba(158, 82, 218, .40);
}

.voice-play:disabled {
  opacity: .45;
  cursor: default;
}

.voice-track {
  position: relative;

  flex: 1 1 auto;

  height: 5px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(255,255,255,.15);

  cursor: pointer;
}

.voice-progress {
  width: 0%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #a65cff,
      #d29aff
    );

  pointer-events: none;
}

.voice-time {
  flex: 0 0 34px;

  color:
    rgba(255,255,255,.72);

  font-size: 11px;
  font-variant-numeric:
    tabular-nums;

  text-align: right;
}

.voice-audio-engine {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 600px) {
  .voice-card {
    width: min(300px, 78vw);
    gap: 7px;
    padding: 7px 9px;
  }

  .voice-bat {
    font-size: 18px;
  }

  .voice-play {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }
}

