/* ── VIDEO CHAT ── */
.video-panel {
  display: none; flex-direction: column; background: #000; z-index: 10; animation: fadeUp 0.3s ease;
}
.video-panel.show { display: flex; }
#chat.video-active .video-panel { flex: 1; }

.video-container { display: flex; position: relative; flex: 1; min-height: 200px; overflow: hidden; }
.video-container video { object-fit: cover; }

#remote-video { width: 100%; height: 100%; }

#local-video {
  position: absolute; bottom: 0.5rem; right: 0.5rem;
  width: 100px; height: 75px; border-radius: 10px;
  border: 2px solid var(--accent); z-index: 2; background: #111;
}

.video-controls {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 1.2rem; padding: 0.75rem 0.5rem;
  background: var(--surface); border-top: 1px solid var(--border);
}

.vc-btn-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }

.vc-btn {
  width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid transparent; display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; cursor: pointer;
  transition: all 0.2s; background: var(--border); color: var(--text);
}
.vc-btn:hover { transform: scale(1.1); }
.vc-btn.active { background: var(--accent); color: #fff; border-color: rgba(124,106,255,0.4); box-shadow: 0 0 16px rgba(124,106,255,0.3); }
.vc-btn.off { background: var(--border); color: var(--muted); border-color: transparent; box-shadow: none; }
.vc-btn.danger { background: #e74c3c; color: #fff; border-color: rgba(231,76,60,0.4); box-shadow: 0 0 16px rgba(231,76,60,0.3); }
.vc-btn.danger:hover { background: #c0392b; }

.vc-label { font-size: 0.6rem; color: var(--muted); text-align: center; white-space: nowrap; }

.video-status {
  position: absolute; top: 0.5rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff; padding: 0.25rem 0.8rem;
  border-radius: 100px; font-size: 0.7rem; z-index: 3; backdrop-filter: blur(6px);
}

/* Audio meter */
.audio-meter { display: flex; align-items: center; gap: 0.3rem; padding: 0 0.3rem; }
.audio-meter-label { font-size: 0.8rem; }
.audio-bar-wrap { display: flex; align-items: flex-end; gap: 2px; height: 20px; }

.audio-bar {
  width: 3px; background: var(--accent); border-radius: 2px;
  transition: height 0.08s ease; min-height: 3px;
}
.audio-bar.partner { background: var(--accent2); }

/* Video request modal */
.video-modal {
  display: none; position: absolute; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.video-modal.show { display: flex; }

.video-modal-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 2rem; text-align: center;
  animation: fadeUp 0.3s ease; max-width: 320px; width: 90%;
}

.video-modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.video-modal-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.video-modal-desc { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.video-modal-btns { display: flex; gap: 0.75rem; justify-content: center; }

.vm-btn {
  padding: 0.6rem 1.5rem; border-radius: 100px; border: none;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.vm-btn.accept { background: #4ade80; color: #000; }
.vm-btn.accept:hover { background: #22c55e; }
.vm-btn.reject { background: var(--border); color: var(--muted); }
.vm-btn.reject:hover { background: var(--accent2); color: #fff; }

/* Report modal */
.report-modal {
  display: none; position: absolute; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.report-modal.show { display: flex; }

.report-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem; text-align: center;
  animation: fadeUp 0.3s ease; max-width: 300px; width: 90%;
}

.report-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

.report-reasons { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.report-reason-btn {
  padding: 0.5rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 0.82rem;
  cursor: pointer; transition: all 0.15s; font-family: 'DM Sans', sans-serif;
}
.report-reason-btn:hover { border-color: var(--accent2); color: var(--accent2); }

.report-cancel {
  background: none; border: none; color: var(--muted); font-size: 0.8rem;
  cursor: pointer; padding: 0.3rem;
}
.report-cancel:hover { color: var(--text); }
