:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #12141f;
  --bg-card: rgba(22, 26, 40, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-cyan: #00f2fe;
  --accent-green: #00ff88;
  --accent-purple: #7928ca;
  --accent-red: #ff0055;
  --accent-amber: #f59e0b;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #000;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 255, 136, 0.15);
  color: var(--accent-green);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.logo-badge.director {
  background: rgba(121, 40, 202, 0.25);
  color: #c084fc;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-pill.live .status-dot {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 1.5s infinite;
}

.status-pill.paused .status-dot {
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

.status-pill.busy .status-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* ========================================================= */
/* INDEX / DASHBOARD PAGE */
/* ========================================================= */
.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-cyan) 70%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2rem;
  }
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.dash-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
}

.dash-card-icon.director {
  background: rgba(121, 40, 202, 0.15);
  border-color: rgba(121, 40, 202, 0.3);
}

.dash-card-icon.camera {
  background: rgba(0, 242, 254, 0.15);
  border-color: rgba(0, 242, 254, 0.3);
}

.dash-card-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--text-primary);
}

.dash-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dash-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  flex: 1;
}

/* ========================================================= */
/* CAMERA (cam.php) PAGE */
/* ========================================================= */
.camera-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  padding: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1024px) {
  .camera-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
}

.video-stage-card {
  background: #000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .video-stage-card {
    min-height: 340px;
  }
}

#localVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

#localVideo.mirrored {
  transform: scaleX(-1);
}

.video-overlay-info {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 5;
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-res { color: var(--accent-cyan); }
.badge-fps { color: var(--accent-green); }
.badge-noaudio { color: var(--accent-amber); }
.badge-camname { color: #ffffff; background: rgba(121, 40, 202, 0.6); }

/* Camera Paused Overlay */
.camera-paused-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 11, 16, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 6;
  backdrop-filter: blur(8px);
}

.camera-paused-overlay.hidden {
  display: none;
}

.paused-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 0, 85, 0.15);
  border: 2px solid var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
}

.paused-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Floating Controls */
.video-floating-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 20, 31, 0.9);
  backdrop-filter: blur(16px);
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 7;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.icon-btn.active {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Bouton STOP / PLAY Principal */
.btn-stop-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
}

.btn-stop-toggle.resume {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.btn-stop-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ========================================================= */
/* REGIE MULTI-CAMERAS (live.php) */
/* ========================================================= */
.director-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
  gap: 1.5rem;
}

.director-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
}

.director-info h2 {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.director-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Grille Mosaïque Multi-Caméras */
.multiview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  flex: 1;
}

@media (max-width: 600px) {
  .multiview-grid {
    grid-template-columns: 1fr;
  }
}

.camera-tile {
  background: #000;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  cursor: pointer;
}

.camera-tile:hover {
  border-color: var(--accent-cyan);
}

/* Tally Light / ON AIR Style */
.camera-tile.on-air {
  border: 3px solid #ff0055 !important;
  box-shadow: 0 0 35px rgba(255, 0, 85, 0.75), inset 0 0 20px rgba(255, 0, 85, 0.2) !important;
  animation: tally-pulse 1.8s infinite ease-in-out;
}

@keyframes tally-pulse {
  0% { border-color: #ff0055; box-shadow: 0 0 20px rgba(255, 0, 85, 0.5); }
  50% { border-color: #ff2a75; box-shadow: 0 0 40px rgba(255, 0, 85, 0.9); }
  100% { border-color: #ff0055; box-shadow: 0 0 20px rgba(255, 0, 85, 0.5); }
}

.badge-onair {
  background: #ff0055 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.8);
}

.btn-switch-live {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-switch-live:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
  transform: translateY(-1px);
}

.btn-switch-live.active {
  background: #ff0055;
  border-color: #ff0055;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.8);
  pointer-events: none;
}

.camera-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.camera-tile-header {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.camera-tile-footer {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.empty-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--text-muted);
}

/* ========================================================= */
/* SIDEBAR & CARDS */
/* ========================================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.card-title svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-cyan);
}

/* OBS Link Box */
.obs-link-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.obs-link-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-family: monospace;
  font-size: 0.85rem;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-primary {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  width: auto;
  margin-top: 0;
}

/* QR Code Display */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

#qrcode, .qrcode-box {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.5rem;
}

#qrcode img, .qrcode-box img {
  display: block;
}

.qr-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-select, .form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-select:focus, .form-input:focus {
  border-color: var(--accent-cyan);
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Modal Popup */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
}

.modal-close:hover {
  color: #fff;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 20, 31, 0.95);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--accent-green);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 200;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* OBS View Receiver Specifics */
body.obs-view {
  background: transparent !important;
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.obs-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: transparent;
}

#remoteVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.obs-waiting {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-family: var(--font-main);
  text-align: center;
  background: rgba(10, 11, 16, 0.85);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   NOUVELLES FONCTIONNALITÉS PRO : TALLY SMARTPHONE, BATTERIE & SHORTCUTS
   ========================================================================== */

/* 1-A: Tally & Cadre Lumineux Smartphone */
.phone-tally-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 6px solid #ff0055;
  box-shadow: inset 0 0 35px rgba(255, 0, 85, 0.75), 0 0 25px rgba(255, 0, 85, 0.8);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 20;
  animation: tallyPulse 1.2s infinite ease-in-out;
}

@keyframes tallyPulse {
  0%, 100% {
    border-color: #ff0055;
    box-shadow: inset 0 0 35px rgba(255, 0, 85, 0.75), 0 0 25px rgba(255, 0, 85, 0.8);
  }
  50% {
    border-color: #ff5500;
    box-shadow: inset 0 0 15px rgba(255, 85, 0, 0.4), 0 0 10px rgba(255, 85, 0, 0.5);
  }
}

.phone-tally-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff0055;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 8px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(255, 0, 85, 0.8);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: bounceBanner 0.4s ease-out;
}

@keyframes bounceBanner {
  0% { transform: translate(-50%, -20px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* 1-C: Badges Batterie et Réseau sur la Régie */
.badge-battery {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-battery.low {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ef4444;
  animation: pulseLow 1s infinite;
}

.badge-battery.medium {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #f59e0b;
}

.badge-battery.charging {
  color: #00f2fe;
  border-color: #00f2fe;
}

@keyframes pulseLow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.badge-net {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* 2-A: Raccourcis Clavier sur les vignettes régie */
.shortcut-badge {
  background: #000000;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-family: monospace;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 4px;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

/* ==========================================================================
   BOUTON RETOUR AUDIO SPEAKER (CAM.PHP)
   ========================================================================== */
.btn-audio-return {
  background: rgba(20, 24, 38, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  user-select: none;
}

.btn-audio-return:hover {
  background: rgba(30, 36, 56, 0.95);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.25);
  transform: translateY(-1px);
}

.btn-audio-return.playing {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(0, 242, 254, 0.2));
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.btn-audio-return .audio-wave {
  display: inline-flex;
  gap: 2px;
  align-items: flex-end;
  height: 14px;
}

.btn-audio-return .audio-wave span {
  width: 3px;
  height: 100%;
  background: #10b981;
  border-radius: 2px;
  animation: waveBar 0.8s infinite ease-in-out alternate;
}

.btn-audio-return .audio-wave span:nth-child(2) { animation-delay: 0.2s; }
.btn-audio-return .audio-wave span:nth-child(3) { animation-delay: 0.4s; }

@keyframes waveBar {
  0% { height: 4px; }
  100% { height: 14px; }
}

/* VU-mètre Audio & Contrôles Interview */
.audio-vu-container {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 11, 16, 0.75);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 242, 254, 0.3);
  backdrop-filter: blur(8px);
}

.vu-meter-bar-bg {
  width: 90px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.vu-meter-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 60%, #f59e0b 85%, #ff0055 100%);
  border-radius: 4px;
  transition: width 0.05s ease;
}

/* Badge Spécial Interview pour la régie */
.badge-interview {
  background: linear-gradient(135deg, #ff0055, #9333ea);
  color: #fff;
  border-color: #ff0055;
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
  font-weight: 800;
  letter-spacing: 0.5px;
}
