/* ============================================
   FORM VIDEO (client "Send a video" tab, card, popups)
============================================ */
.fv-wrap { margin-top: 0; }

.fv-tab {
  display: inline-flex; align-items: center; gap: 6px;
  margin: -1px 0 0 14px; padding: 6px 14px 7px;
  background: #ddd2eb; color: #4b3f5c;
  border: none; border-radius: 0 0 10px 10px;
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.fv-tab:disabled { opacity: 0.5; cursor: default; }
.fv-tab svg { width: 16px; height: 16px; flex: 0 0 auto; }
.fv-tab-row { display: flex; align-items: flex-start; gap: 10px; }
.fv-tab-row .fv-tab { flex: 0 0 auto; }
.fv-patience { flex: 1; min-width: 0; margin: 4px 0 0; font-size: 0.75rem; line-height: 1.3; color: #8a8073; }

.fv-card { margin-top: 8px; background: #ece6f5; border-radius: 10px; padding: 8px; }
.fv-card-main { display: flex; align-items: center; gap: 10px; }
.fv-thumb {
  position: relative; flex: 0 0 auto; width: 112px; height: 63px;
  padding: 0; border: none; border-radius: 8px; overflow: hidden;
  background: #c6b7e2; cursor: pointer;
}
.fv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; text-shadow: 0 1px 4px rgba(0,0,0,0.5); pointer-events: none;
}
.fv-nothumb {
  display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  padding: 4px; font-size: 0.7rem; color: #4b3f5c; text-align: center;
}
.fv-thumb.nothumb img, .fv-thumb.nothumb .fv-play { display: none; }
.fv-thumb.nothumb .fv-nothumb { display: flex; }

.fv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fv-count {
  background: none; border: none; padding: 0; font: inherit;
  font-size: 0.85rem; font-weight: 600; color: #4b3f5c; cursor: pointer;
}
.fv-count.static { cursor: default; }
.fv-del {
  background: none; border: none; padding: 0; font: inherit;
  font-size: 0.8rem; font-weight: 600; color: #b04a4a; text-decoration: underline; cursor: pointer;
}
.fv-del:disabled, .fv-x:disabled { opacity: 0.4; cursor: default; }
.fv-sent { font-size: 0.8rem; font-weight: 700; color: #3fae7a; }

.fv-list { margin-top: 8px; border-top: 1px solid #ddd2eb; }
.fv-list[hidden] { display: none; }
.fv-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px; font-size: 0.85rem; color: #4b3f5c;
}
.fv-x {
  background: none; border: none; font-size: 1.1rem; line-height: 1;
  color: #b04a4a; cursor: pointer; padding: 2px 8px;
}

.fv-prog { margin-top: 8px; background: #ece6f5; border-radius: 10px; padding: 8px 10px; }
.fv-prog-text { margin: 0 0 6px; font-size: 0.85rem; font-weight: 600; color: #4b3f5c; }
.fv-prog-track { height: 6px; background: #ddd2eb; border-radius: 3px; overflow: hidden; }
.fv-prog-bar { height: 100%; width: 0%; background: #7c5cbf; transition: width 0.2s ease; }
.fv-prog-btns { display: flex; gap: 8px; }

.fv-overlay {
  position: fixed; inset: 0; z-index: 10050;
  background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.fv-overlay.dark { background: rgba(0,0,0,0.85); }
.fv-modal {
  background: #faf7f2; border-radius: 14px; padding: 18px 18px 14px;
  width: 100%; max-width: 340px; box-sizing: border-box;
}
.fv-modal-text { margin: 0 0 6px; font-size: 1rem; font-weight: 600; color: #333; line-height: 1.35; }
.fv-modal-sub { margin: 0 0 10px; font-size: 0.85rem; color: #8a8073; }
.fv-modal-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.fv-btn {
  border: 1px solid #ddd2eb; background: #fff; color: #4b3f5c;
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.fv-btn.primary { background: #c6b7e2; border-color: #c6b7e2; color: #3f3550; }

.fv-preview { position: relative; width: 100%; max-width: 460px; }
.fv-preview video { width: 100%; max-height: 80vh; border-radius: 10px; background: #000; }
.fv-preview .fv-modal-sub { color: #ddd; text-align: center; margin-top: 10px; }
.fv-close {
  position: absolute; top: -38px; right: 0;
  background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px 8px;
}

.fv-banner {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom)); width: min(92%, 420px); box-sizing: border-box;
  z-index: 10040; background: #3f3550; color: #fff; border-radius: 12px; padding: 12px 14px;
  font-size: 0.85rem; line-height: 1.35; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.fv-banner strong { display: block; margin-top: 4px; }