/* ==========================================================================
   Base & Thème AMOLED Noir Pur (#000000)
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-amoled: #000000;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-active: #ffffff;
  --text-inactive: #636b77;
  --nav-height: 60px;
  --top-bar-height: 48px;
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-amoled);
  color: var(--text-active);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-amoled);
}

/* ==========================================================================
   Barre Supérieure AMOLED
   ========================================================================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--top-bar-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 18px;
  padding-right: 18px;
  background-color: var(--bg-amoled);
  border-bottom: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.top-bar-right {
  display: flex;
  align-items: center;
}

.app-brand-name {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.5px;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.brand-loop {
  color: #ffffff;
  font-weight: 850;
  letter-spacing: -0.3px;
}

.brand-oo {
  display: inline-block;
  letter-spacing: -2.6px;
  margin-right: -0.5px;
}

.brand-talk {
  color: #1e3a8a;
  /* Bleu très foncé */
  font-weight: 850;
  letter-spacing: -0.2px;
  margin-left: 2px;
}

/* Zone de contenu principale */
.content-area {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  background-color: var(--bg-amoled);
  padding-top: calc(var(--top-bar-height) + env(safe-area-inset-top, 0px));
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
}

/* ==========================================================================
   Barre de Navigation Inférieure Pro 5 Onglets (Capacitor & PWA ready)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--bg-amoled);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  padding-left: 6px;
  padding-right: 6px;
}

/* Boutons de navigation */
.nav-item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--text-inactive);
  transition: color 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.15s ease;
  padding: 0;
}

.nav-item:active {
  transform: scale(0.88);
}

.nav-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  position: relative;
}

.nav-svg {
  width: 27.5px;
  height: 27.5px;
  stroke: currentColor;
  display: block;
  transition: stroke 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
}

/* Pastille de notification avec compteur numérique */
.badge-dot {
  position: absolute;
  top: 0px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: #3b82f6;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.8);
  border: 1.5px solid var(--bg-amoled);
  opacity: 0;
}

/* Indicateur actif discret pro (micro-point sous l'icône) */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-active);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item.active {
  color: var(--text-active);
}

.nav-item.active::after {
  opacity: 1;
  transform: scale(1);
}

.nav-item.active .nav-svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

/* ==========================================================================
   Bouton Central Action (+) Bleu Très Foncé Pro
   ========================================================================== */
.nav-item-action {
  flex: 0 0 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item-action::after {
  display: none !important;
}

.action-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* Bleu très foncé avec profondeur et gradient subtil */
  background: radial-gradient(circle at 35% 30%, #0d2855 0%, #071731 65%, #040e1e 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-active);
  box-shadow: 0 4px 18px rgba(8, 28, 65, 0.7), inset 0 1px 1.5px rgba(255, 255, 255, 0.15);
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.plus-svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 3.2px !important;
}

.nav-item-action:active .action-btn-circle {
  background: radial-gradient(circle at 35% 30%, #10326a 0%, #091e3e 65%, #051326 100%);
  transform: scale(0.90);
  border-color: rgba(96, 165, 250, 0.75);
  box-shadow: 0 2px 10px rgba(8, 28, 65, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   BottomSheet AMOLED (+) Création
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 2000;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-amoled);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
}

.bottom-sheet.show {
  transform: translateY(0);
}

/* Ligne supérieure : poignée au centre + bouton X à droite */
.sheet-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0 8px 0;
  width: 100%;
}

.sheet-spacer {
  width: 28px;
  height: 28px;
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.22);
}

.sheet-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  padding: 0;
}

.sheet-close-btn svg {
  width: 14px;
  height: 14px;
}

.sheet-close-btn:active {
  background: #242424;
  color: #ffffff;
  transform: scale(0.92);
}

/* ==========================================================================
   Liste Horizontale Compacte avec Icônes Agrandis
   ========================================================================== */
.sheet-horizontal-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 8px 6px 10px 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sheet-horizontal-list::-webkit-scrollbar {
  display: none;
}

.sheet-h-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--text-active);
  transition: transform 0.15s ease;
  padding: 4px 6px;
  min-width: 60px;
}

.sheet-h-item:active {
  transform: scale(0.90);
}

/* Conteneur de l'icône (Noir Pur AMOLED, sans cercle) */
.sheet-h-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.18s ease;
}

/* Icônes SVG agrandies (30px) */
.sheet-h-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  transition: transform 0.18s ease, filter 0.2s ease;
}

/* 1. Variante Sujet */
.sheet-h-icon-topic {
  color: #60a5fa;
}

/* 2. Variante Image */
.sheet-h-icon-image {
  color: #38bdf8;
}

/* 4. Variante Sondage */
.sheet-h-icon-poll {
  color: #34d399;
}

/* 4. Variante Question */
.sheet-h-icon-question {
  color: #fbbf24;
}

/* 5. Variante Audio */
.sheet-h-icon-audio {
  color: #f43f5e;
}

/* Libellé sous chaque icône */
.sheet-h-label {
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: 0.1px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sheet-h-item:active .sheet-h-label {
  color: #ffffff;
}

/* ==========================================================================
   Page Complète de Publication (Noir Pur AMOLED #000000)
   ========================================================================== */
.fullscreen-create-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-amoled);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.fullscreen-create-screen.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* En-tête de la page de création */
.create-screen-header {
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 16px;
  padding-right: 16px;
  background-color: var(--bg-amoled);
  border-bottom: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.mini-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.mini-close-btn svg {
  width: 16px;
  height: 16px;
}

.mini-close-btn:active {
  background: #222222;
  transform: scale(0.92);
}

.create-screen-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-active);
  letter-spacing: -0.2px;
}


.header-right-spacer {
  width: 32px;
  height: 32px;
}

/* Corps du formulaire */
.create-screen-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px calc(30px + env(safe-area-inset-bottom, 0px)) 14px;
  display: flex;
  flex-direction: column;
}

/* Aperçu de l'image choisie en grand format carré (1:1) */
.preview-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.change-img-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.change-img-badge:active {
  background: rgba(30, 30, 30, 0.9);
}

/* Champ de texte pour la question */
.question-input-wrapper {
  width: 100%;
  margin-bottom: 20px;
}

.question-textarea {
  width: 100%;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-active);
  font-size: 15px;
  line-height: 1.45;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.question-textarea:focus {
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.2);
}

.question-textarea::placeholder {
  color: #52525b;
}

/* Section mode de débat (Normal vs Équipes) */
.debate-mode-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa;
}

.debate-mode-selector {
  display: flex;
  gap: 10px;
  width: 100%;
}

.mode-pill-btn {
  flex: 1;
  background: #0d0d0d;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #71717a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mode-pill-btn svg {
  width: 17px;
  height: 17px;
}

.mode-pill-btn.active {
  background: #0f1c33;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Configuration des 2 équipes */
.teams-config-box {
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.teams-hint {
  font-size: 12px;
  color: #71717a;
}

.team-inputs-grid {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.team-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}

.team-badge-a {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.team-badge-b {
  background: rgba(225, 29, 72, 0.2);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.4);
}

.team-name-input {
  width: 100%;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 9px 10px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.team-a .team-name-input:focus {
  border-color: #3b82f6;
}

.team-b .team-name-input:focus {
  border-color: #f43f5e;
}

.vs-divider {
  font-size: 12px;
  font-weight: 800;
  color: #52525b;
  padding-top: 18px;
}

/* ==========================================================================
     Sélecteur de jours avant fin de débat & suppression de la base (3, 5, 7 jours)
     ========================================================================== */
.debate-duration-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.duration-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.duration-hint-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #ef4444;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.debate-duration-selector {
  display: flex;
  gap: 10px;
  width: 100%;
}

.duration-pill-btn {
  flex: 1;
  background: #0d0d0d;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 11px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #71717a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  outline: none;
}

.duration-pill-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.duration-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #a1a1aa;
}

.duration-pill-btn.active {
  background: #0f1c33;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.duration-info-text {
  font-size: 11.5px;
  color: #71717a;
  line-height: 1.45;
  margin: 0;
}

.duration-info-text span {
  color: #60a5fa;
  font-weight: 600;
}

/* Ligne d'en-tête utilisateur : Date réelle, Icône Monde & Durée de l'événement */
.post-timestamp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.post-real-date {
  font-size: 11.5px;
  color: #a1a1aa;
  font-weight: 500;
}

.post-world-badge,
.hero-world-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  line-height: 1;
}

.post-world-icon {
  width: 12.5px;
  height: 12.5px;
  stroke: #8e8e93;
  flex-shrink: 0;
  transform: translateY(0.5px);
}

.meta-dot {
  font-size: 10px;
  color: #52525b;
  line-height: 1;
}

.post-event-duration {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: #60a5fa;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  line-height: 1.3;
  white-space: nowrap;
}

.post-event-duration svg {
  width: 12px;
  height: 12px;
  stroke: #60a5fa;
  flex-shrink: 0;
}

.post-expiry-badge {
  font-size: 11px;
  font-weight: 500;
  color: #f59e0b;
  letter-spacing: 0.2px;
}

.hero-q-expiry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: #60a5fa;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  letter-spacing: 0.2px;
}

/* ==========================================================================
     Menu 3 Points Horizontaux & Tableau d'Options (Noir Pur AMOLED)
     ========================================================================== */
.post-options-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.post-more-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.post-more-btn svg {
  width: 21px;
  height: 21px;
}

.post-more-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.post-more-btn:active {
  transform: scale(0.92);
}

.post-options-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px;
  min-width: 155px;
  z-index: 99;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdownSlideIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: none;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  outline: none;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item svg {
  width: 15px;
  height: 15px;
  stroke: #a1a1aa;
  flex-shrink: 0;
  transition: stroke 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dropdown-item:hover svg {
  stroke: #ffffff;
}

.dropdown-item.active {
  color: #60a5fa;
}

.dropdown-item.active svg {
  stroke: #60a5fa;
}

.dropdown-item.danger-item:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.dropdown-item.danger-item:hover svg {
  stroke: #f87171;
}

.dropdown-item.delete-item {
  color: #f87171;
}

.dropdown-item.delete-item svg {
  stroke: #f87171;
}

.dropdown-item.delete-item:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

.dropdown-item.delete-item:hover svg {
  stroke: #ef4444;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 3px 0;
}

/* ==========================================================================
   Bouton Publier en Bas
   ========================================================================== */
.post-action-bottom {
  width: 100%;
  margin-top: 26px;
  padding-bottom: 10px;
}

.bottom-publish-btn {
  width: 100%;
  height: 50px;
  background: #1d4ed8;
  color: #ffffff;
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  border-radius: 16px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.35);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bottom-publish-btn:active {
  background: #2563eb;
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.5);
}

/* Transformation du bouton Publier en Cercle de chargement */
.bottom-publish-btn.loading {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin-left: auto;
  margin-right: auto;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.6);
}

.bottom-publish-btn.loading .btn-text {
  display: none;
}

.bottom-publish-btn.loading .btn-spinner {
  display: block !important;
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spinCircle 0.65s linear infinite;
}

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

/* ==========================================================================
   Fil d'Actualité AMOLED (Publications Libres sans Cartes)
   ========================================================================== */
.feed-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px 0;
}

.empty-feed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: #71717a;
  gap: 12px;
}

.empty-feed-placeholder svg {
  width: 44px;
  height: 44px;
  stroke: #3f3f46;
}

.empty-feed-placeholder h4 {
  font-size: 16px;
  color: #a1a1aa;
}

.empty-feed-placeholder p {
  font-size: 13px;
  max-width: 260px;
  line-height: 1.4;
}

/* ==========================================================================
   Pages Vides AMOLED (Explorer, Notifications, Profil)
   ========================================================================== */
.empty-page-container {
  width: 100%;
  max-width: 500px;
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: #000000;
  box-sizing: border-box;
  animation: fadeInEmptyPage 0.25s ease;
}

@keyframes fadeInEmptyPage {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-page-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #71717a;
}

.empty-page-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.empty-page-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.empty-page-subtitle {
  font-size: 13.5px;
  color: #71717a;
  margin: 0;
  line-height: 1.45;
  max-width: 280px;
}

/* Publication Libre (Sans Carte derrière, 100% Noir Pur AMOLED) */
.post-card {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 16px 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  animation: postAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes postAppear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* En-tête du post avec marges de lecture */
.post-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000000;
  border: 2px solid var(--avatar-tier-color, rgba(255, 255, 255, 0.4));
  box-shadow: 0 0 8px var(--avatar-tier-soft, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.post-author-meta {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-active);
}

.post-timestamp {
  font-size: 11px;
  color: #71717a;
}

/* Bouton rectangle Suivre pour d'autres utilisateurs */
.follow-rect-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0d2347;
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
  border-radius: 6px;
  /* Mini rectangle */
  height: 24px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  white-space: nowrap;
  outline: none;
  margin-left: 4px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.follow-rect-btn .follow-icon {
  width: 10px;
  height: 10px;
  stroke: #60a5fa;
  stroke-width: 2.8;
  display: block;
}

.follow-rect-btn:hover {
  background: #133569;
  color: #ffffff;
  border-color: #3b82f6;
}

.follow-rect-btn:active {
  transform: scale(0.96);
}

/* État Suivi (Abonné) */
.follow-rect-btn.following {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
}

.follow-rect-btn.following .follow-icon {
  stroke: #a1a1aa;
}

.follow-rect-btn.following:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.follow-rect-btn.following:hover .follow-icon {
  stroke: #f87171;
}

.post-mode-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
}

.post-mode-tag.normal {
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-mode-tag.teams {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

/* Question posée avec marges de lecture */
.post-question-title {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  color: #ffffff;
  letter-spacing: -0.2px;
  padding-left: 16px;
  padding-right: 16px;
}

/* Image carrée remplissant de gauche à droite (Pleine largeur bord à bord) */
.post-square-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  background: #000000;
  border: none;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.post-square-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s ease;
}

.feed-img-fallback-box {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #18181b 0%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  box-sizing: border-box;
}

.fallback-question-text {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  letter-spacing: -0.2px;
}

/* Bouton Love / J'aime flottant sur l'image (Sans pillule, direct et agrandi) */
.image-floating-like-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: none !important;
  outline: none;
}

/* Remonté au-dessus de la barre de progression en bas de l'image */
.image-floating-like-badge.with-overlay {
  bottom: 46px;
}

/* Bouton Suivre en haut à droite DANS la carte image */
.image-floating-follow-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #93c5fd;
  border-radius: 6px;
  /* Mini rectangle */
  height: 25px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.1px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  outline: none;
  transition: all 0.2s ease;
}

.image-floating-follow-btn .follow-icon {
  width: 10px;
  height: 10px;
  stroke: #60a5fa;
  stroke-width: 2.8;
  display: block;
}

.image-floating-follow-btn:active {
  transform: scale(0.94);
}

.image-floating-follow-btn.following {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.15);
  color: #a1a1aa;
}

.image-floating-follow-btn.following .follow-icon {
  stroke: #a1a1aa;
}

/* Barre de progression de frappe intégrée en bas DANS la carte image */
.image-bottom-strike-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 10px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 50%, #000000 100%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 8;
  pointer-events: none;
}

.image-bottom-strike-overlay .strike-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.image-bottom-strike-overlay .strike-team-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.image-bottom-strike-overlay .strike-team-label.team-a {
  color: #93c5fd;
}

.image-bottom-strike-overlay .strike-team-label.team-b {
  color: #fda4af;
}

.image-bottom-strike-overlay .strike-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.image-bottom-strike-overlay .strike-dot.dot-a {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.image-bottom-strike-overlay .strike-dot.dot-b {
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
}

.image-bottom-strike-overlay .strike-pct {
  font-size: 11.5px;
  font-weight: 800;
}

.image-bottom-strike-overlay .strike-vs-text {
  font-size: 9.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
}

.image-bottom-strike-overlay .strike-progress-track {
  width: 100%;
  height: 4.5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.image-bottom-strike-overlay .strike-progress-bar {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-bottom-strike-overlay .strike-progress-bar.bar-a {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

.image-bottom-strike-overlay .strike-progress-bar.bar-b {
  background: linear-gradient(90deg, #f43f5e, #be123c);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.7);
}

.image-floating-like-badge:active {
  transform: scale(0.85);
}

.image-floating-like-badge svg {
  width: 26px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

.image-like-count {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

.image-floating-like-badge.liked {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.image-floating-like-badge.liked svg {
  fill: #ef4444;
  stroke: #ef4444;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.85)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
  transform: scale(1.08);
}

/* ==========================================================================
   Animation Coeur au Centre au Double-Clic (Love qui s'agrandit & déforme)
   ========================================================================== */
.center-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 105px;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
  animation: heartPopBurst 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.heart-burst-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 18px rgba(239, 68, 68, 0.9)) drop-shadow(0 0 35px rgba(255, 51, 102, 0.7));
}

.heart-halo-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.5) 0%, rgba(255, 0, 80, 0) 70%);
  animation: haloFade 0.85s ease-out forwards;
}

@keyframes heartPopBurst {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(-15deg);
    opacity: 0;
  }

  25% {
    transform: translate(-50%, -50%) scale(1.35) rotate(4deg);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    opacity: 1;
  }

  75% {
    transform: translate(-50%, -50%) scale(1.25) rotate(0deg);
    opacity: 0.9;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.7) rotate(0deg);
    opacity: 0;
  }
}

@keyframes haloFade {
  0% {
    transform: scale(0.3);
    opacity: 0.9;
  }

  60% {
    transform: scale(1.4);
    opacity: 0.45;
  }

  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Onde de déformation en forme de coeur */
.heart-wave-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  transform: translate(-50%, -50%) scale(0.4);
  pointer-events: none;
  z-index: 15;
  animation: heartWaveExpand 0.85s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

.heart-wave-circle svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(255, 51, 102, 0.95));
}

@keyframes heartWaveExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }

  60% {
    transform: translate(-50%, -50%) scale(2.8);
    opacity: 0.65;
  }

  100% {
    transform: translate(-50%, -50%) scale(4.5);
    opacity: 0;
  }
}

/* Déformation de l'image en vague d'amour */
.post-square-img.image-heart-distort {
  animation: imageHeartDistort 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes imageHeartDistort {
  0% {
    transform: scale(1);
    filter: contrast(1) brightness(1) saturate(1);
  }

  20% {
    transform: scale(0.95) skew(1.2deg, 0.8deg);
    filter: contrast(1.25) brightness(1.18) saturate(1.35) hue-rotate(-8deg);
  }

  45% {
    transform: scale(1.05) skew(-1.2deg, -0.8deg);
    filter: contrast(1.35) brightness(1.25) saturate(1.45) hue-rotate(-12deg);
  }

  70% {
    transform: scale(0.98) skew(0.6deg, 0.3deg);
    filter: contrast(1.15) brightness(1.1) saturate(1.2);
  }

  100% {
    transform: scale(1) skew(0, 0);
    filter: contrast(1) brightness(1) saturate(1);
  }
}

/* ==========================================================================
   Petite Barre de Progression de Frappe des Équipes (Fond Noir Pur)
   ========================================================================== */
.team-duel-strike-section {
  margin: 10px 16px 6px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent !important;
  border: none !important;
}

.strike-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.strike-team-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.strike-team-label.team-a {
  color: #60a5fa;
}

.strike-team-label.team-b {
  color: #fb7185;
}

.strike-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.strike-dot.dot-a {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

.strike-dot.dot-b {
  background: #f43f5e;
  box-shadow: 0 0 6px #f43f5e;
}

.strike-pct {
  font-size: 12px;
  font-weight: 800;
}

.strike-vs-text {
  font-size: 10px;
  font-weight: 800;
  color: #52525b;
}

/* Track de progression bicolore du duel (Force de frappe) */
.strike-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.strike-progress-bar {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.strike-progress-bar.bar-a {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.strike-progress-bar.bar-b {
  background: linear-gradient(90deg, #f43f5e, #be123c);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

/* ==========================================================================
   Commentaires : Textes purs sans carte ni rectangle (Fond Noir Pur AMOLED)
   ========================================================================== */
.teams-pure-text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 6px 16px 8px 16px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.team-pure-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.pure-comment-line {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 12px;
  line-height: 1.35;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.pure-comment-bullet {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.pure-comment-bullet.team-a-bullet {
  color: #3b82f6;
}

.pure-comment-bullet.team-b-bullet {
  color: #f43f5e;
}

.pure-comment-text {
  color: #d4d4d8;
  word-break: break-word;
}

.pure-comment-empty {
  font-size: 11px;
  color: #52525b;
  font-style: italic;
  padding: 2px 0;
}

.comments-capped-notice {
  font-size: 11px;
  color: #71717a;
  font-style: italic;
  margin: 3px 16px 4px 16px;
  line-height: 1.3;
}

.normal-pure-text-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 6px 16px 6px 16px;
}

.pure-comment-bullet.normal-bullet {
  color: #a1a1aa;
}

.debate-comment-item.normal-item {
  border-left: 3px solid #71717a;
}

/* ==========================================================================
   Petite Barre de Débat avec Viralité & Bouton Entrer Attractif (Sans Carte ni Rectangle)
   ========================================================================== */
.debate-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px 0;
  margin-left: 16px;
  margin-right: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.debate-quick-bar:hover {
  border-color: rgba(59, 130, 246, 0.35);
}

.debate-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

/* Indicateur de viralité (Sans carte ni rectangle derrière, 100% épuré sur fond noir pur) */
.virality-tag {
  font-size: 11px;
  font-weight: 750;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.virality-tag.hot {
  color: #f87171;
}

.virality-tag.trending {
  color: #60a5fa;
}

.virality-tag.growing {
  color: #a1a1aa;
}

.virality-tag.new {
  color: #34d399;
}

.debate-bar-text {
  font-size: 12px;
  font-style: italic;
  color: #d4d4d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Bouton Entrer : Mini rectangle bleu foncé sans animations */
.debate-enter-btn {
  background: #0d2347 !important;
  /* Mini rectangle bleu foncé */
  color: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 6px;
  /* Mini rectangle */
  height: 26px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  box-shadow: none !important;
  animation: none !important;
  /* Strictement sans animations */
  transition: background 0.15s ease, border-color 0.15s ease;
}

.debate-enter-btn:hover {
  background: #14356a !important;
  border-color: rgba(59, 130, 246, 0.7);
}

.debate-enter-btn:active {
  background: #08162f !important;
  transform: scale(0.96);
}

.normal-comments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px;
}

/* Barre d'action purement icônes (sans texte) */
.post-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-left: 16px;
  padding-right: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.actions-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.actions-right-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gift-post-btn,
.gift-post-btn.disabled-v2,
.gift-post-btn:hover,
.gift-post-btn:active {
  color: #52525b !important;
  opacity: 0.42;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(100%);
}

/* Bouton Sous-Titres CC (pour publication audio) */
.cc-caption-btn {
  color: #a1a1aa;
  position: relative;
  transition: color 0.18s ease, transform 0.15s ease;
}

.cc-caption-btn:hover {
  color: #38bdf8;
}

.cc-caption-btn.active {
  color: #38bdf8;
}

.cc-caption-btn.active svg {
  stroke: #38bdf8;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

/* Sous-titres Audio : Libre, sans fond ni rectangle, centré en bas de la carte */
.feed-audio-captions-overlay {
  position: absolute;
  bottom: 34px;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 86% !important;
  max-width: 86% !important;
  text-align: center !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  z-index: 30;
  pointer-events: none;
  display: none;
}

.post-square-audio-box.with-strike .feed-audio-captions-overlay {
  bottom: 74px;
}

.feed-audio-captions-overlay.show {
  display: block !important;
}

.captions-cc-badge {
  display: none !important;
}

.captions-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.35;
  text-align: center;
  margin: 0 auto;
  letter-spacing: -0.15px;
  word-break: break-word;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.95);
}

.post-action-btn-icon {
  background: transparent;
  border: none;
  outline: none;
  color: #a1a1aa;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.18s ease;
}

.post-action-btn-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.post-action-btn-icon:active {
  transform: scale(0.86);
  color: #ffffff;
}

.bookmark-btn.saved {
  color: #ffffff;
}

.bookmark-btn.saved svg {
  fill: #ffffff;
}

/* ==========================================================================
   Demande de Confirmation Like (Deux très petites pilules Noir Pur AMOLED)
   ========================================================================== */
.like-confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 10px 14px;
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: likeConfirmFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes likeConfirmFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.like-confirm-prompt {
  font-size: 11.5px;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: -0.1px;
}

.like-confirm-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.like-pill-btn {
  background-color: #000000 !important;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  transition: opacity 0.15s ease, transform 0.12s ease;
  line-height: 1.3;
}

.like-pill-btn:active {
  transform: scale(0.92);
}

.like-pill-btn.pill-yes {
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.75);
}

.like-pill-btn.pill-no {
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Modal de Choix d'Équipe (Avant d'entrer dans le débat)
   ========================================================================== */
.team-select-dialog {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px 24px 0 0;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px)) 18px;
  z-index: 2500;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
}

.team-select-dialog.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.team-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.team-dialog-title {
  font-size: 17px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.team-dialog-subtitle {
  font-size: 13px;
  color: #a1a1aa;
  margin-bottom: 18px;
  line-height: 1.4;
}

.team-dialog-choices {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.team-choice-card {
  flex: 1;
  border-radius: 14px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.team-choice-card:active {
  transform: scale(0.96);
}

.team-choice-a {
  background: radial-gradient(circle at top left, #0d2855, #051024);
  border: 1.5px solid rgba(59, 130, 246, 0.6);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.team-choice-b {
  background: radial-gradient(circle at top left, #4a0d1e, #1a040a);
  border: 1.5px solid rgba(244, 63, 94, 0.6);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.2);
}

.team-choice-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

.team-choice-a .team-choice-tag {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.team-choice-b .team-choice-tag {
  background: rgba(244, 63, 94, 0.25);
  color: #fda4af;
}

.team-choice-name {
  font-size: 14.5px;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.25;
  word-break: break-word;
}

.team-choice-action {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.team-choice-a .team-choice-action {
  color: #60a5fa;
}

.team-choice-b .team-choice-action {
  color: #fb7185;
}

.team-choice-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #52525b;
}

/* ==========================================================================
   Notification Toast en Haut (Libre sans pillule, sans strock, épuré)
   ========================================================================== */
.welcome-team-toast {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.15px;
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 2px 12px rgba(0, 0, 0, 0.85);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  white-space: nowrap;
  max-width: 90vw;
}

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

.welcome-toast-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
}

.welcome-toast-icon {
  display: none !important;
}

/* ==========================================================================
   Page Complète Noir Pur AMOLED du Débat (Fullscreen)
   ========================================================================== */
.fullscreen-debate-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000 !important;
  z-index: 3200;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.fullscreen-debate-screen.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.debate-screen-header {
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 16px;
  padding-right: 16px;
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.debate-screen-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.active-camp-badge {
  font-size: 11px;
  font-weight: 750;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.active-camp-badge.team-a {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
}

.active-camp-badge.team-b {
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fb7185;
}

/* Corps scrollable de la page du débat */
.debate-screen-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 16px 0;
  display: flex;
  flex-direction: column;
}

/* Arène de Débat AMOLED Pur (Sans carte ni rectangle) */
.debate-hero-question-card {
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  padding: 14px 16px 12px 16px !important;
  box-shadow: none !important;
}

.hero-q-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: transparent !important;
}

.hero-q-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-q-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hero-q-text {
  font-size: 15px;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin: 0;
}

.hero-q-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #71717a;
}

.hero-q-author {
  color: #a1a1aa;
  font-weight: 600;
}

/* Barre de progression de combat dans l'arène (Sans carte ni rectangle) */
.arena-combat-strike-container {
  padding: 10px 16px 12px 16px;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.arena-strike-widget {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: transparent !important;
}

.arena-strike-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arena-team-name {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.1px;
}

.arena-vs {
  font-size: 11px;
  font-weight: 800;
  color: #71717a;
  letter-spacing: 0.5px;
}

.arena-strike-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
}

/* Entête du flux de commentaires (Sans carte ni rectangle) */
.debate-stream-header {
  padding: 12px 16px 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
  border: none !important;
}

.debate-stream-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #71717a;
}

.debate-stream-count {
  font-size: 11.5px;
  color: #a1a1aa;
  font-weight: 600;
}

/* Flux de commentaires : liste continue sans cartes */
.debate-comments-stream {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  background: transparent !important;
}

.empty-comments-state {
  text-align: center;
  padding: 36px 20px;
  color: #71717a;
  font-size: 13px;
  background: transparent !important;
}

/* Commentaire individuel dans l'arène : 100% sans carte ni rectangle */
.debate-comment-item {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px 16px !important;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  animation: none !important;
}

.debate-comment-item.team-a {
  border-left: none !important;
}

.debate-comment-item.team-b {
  border-left: none !important;
}

.debate-comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid var(--avatar-tier-color, rgba(255, 255, 255, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  flex-shrink: 0;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.debate-comment-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.debate-comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.debate-comment-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.debate-comment-author {
  font-size: 13px;
  font-weight: 750;
  color: #ffffff;
}

/* Mention de l'équipe du commentateur (Strictement sans carte ni rectangle) */
.debate-comment-team-badge {
  font-size: 11px;
  font-weight: 750;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  letter-spacing: -0.1px;
}

.debate-comment-team-badge.team-a {
  color: #60a5fa !important;
  background: transparent !important;
  border: none !important;
}

.debate-comment-team-badge.team-b {
  color: #fb7185 !important;
  background: transparent !important;
  border: none !important;
}

/* Mention de réponse dans l'arène (Sans rectangle) */
.debate-reply-target-tag,
.debate-reply-mention-label {
  font-size: 11px;
  color: #38bdf8 !important;
  font-weight: 750;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.debate-comment-time {
  font-size: 10.5px;
  color: #52525b;
  margin-left: auto;
}

.debate-comment-text {
  font-size: 13px;
  line-height: 1.42;
  color: #e4e4e7;
  word-break: break-word;
  margin: 0;
}

/* Thread de réponses imbriquées affichées en bas du commentaire avec ligne indicatrice */
.comment-thread-block {
  display: flex;
  flex-direction: column;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-thread-block>.debate-comment-item {
  border-bottom: none !important;
}

.comment-replies-thread {
  position: relative;
  margin-left: 32px;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
  /* Ligne verticale indiquant la réponse */
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent !important;
}

.debate-comment-item.debate-reply-item {
  padding: 8px 16px 10px 4px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.debate-comment-item.debate-reply-item:last-child {
  border-bottom: none !important;
}

.debate-comment-item.debate-reply-item .reply-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
}

.debate-comment-item.debate-reply-item .reply-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Actions sous le commentaire : Like / Love & Répondre */
.debate-comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.comment-action-pill {
  background: transparent;
  border: none;
  outline: none;
  color: #71717a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.comment-action-pill svg {
  width: 14px;
  height: 14px;
  transition: transform 0.15s ease, fill 0.15s ease, stroke 0.15s ease;
}

.comment-action-pill:active {
  transform: scale(0.92);
}

.comment-action-pill.like-action:hover {
  color: #f87171;
}

.comment-action-pill.like-action.liked {
  color: #ef4444;
}

.comment-action-pill.like-action.liked svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.comment-action-pill.reply-action:hover {
  color: #60a5fa;
}

.reply-badge-count {
  font-size: 11px;
  font-weight: 750;
  color: #38bdf8;
  margin-left: 2px;
}

/* Petite flèche pour afficher ou cacher les réponses */
.toggle-thread-btn {
  background: transparent !important;
  border: none !important;
  color: #a1a1aa;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 0;
  outline: none;
  transition: color 0.15s ease;
}

.toggle-thread-btn:hover {
  color: #38bdf8;
}

.toggle-thread-label {
  letter-spacing: -0.1px;
}

.thread-arrow-svg {
  width: 12px;
  height: 12px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.thread-arrow-svg.rotated {
  transform: rotate(180deg);
}

/* Option en bas des réponses pour afficher plus de réponses */
.thread-load-more-row {
  padding: 4px 0 8px 4px;
}

.load-more-replies-btn {
  background: transparent !important;
  border: none !important;
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  outline: none;
  transition: opacity 0.15s ease;
}

.load-more-replies-btn svg {
  width: 12px;
  height: 12px;
}

.load-more-replies-btn:hover {
  opacity: 0.75;
}

/* Option en bas pour afficher d'autres anciens commentaires de l'arène */
.stream-load-more-row {
  padding: 16px 16px 24px 16px;
  display: flex;
  justify-content: center;
}

.load-more-comments-btn {
  width: 100%;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #d4d4d8;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.load-more-comments-btn svg {
  width: 14px;
  height: 14px;
}

.load-more-comments-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff;
}

.load-more-comments-btn:active {
  transform: scale(0.98);
}

/* Mini bannière de réponse au-dessus de l'input */
.debate-replying-banner {
  background: #060b14;
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.replying-banner-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.replying-at-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.replying-banner-label {
  font-size: 12px;
  color: #94a3b8;
}

.replying-banner-label strong {
  color: #ffffff;
  font-weight: 750;
}

.cancel-reply-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.cancel-reply-btn svg {
  width: 13px;
  height: 13px;
}

.cancel-reply-btn:hover {
  color: #ffffff;
}

/* Barre de saisie fixe en bas */
.debate-input-bar {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px)) 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.debate-input-field-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  padding-right: 6px;
}

.debate-input-field-wrap:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.debate-comment-input {
  width: 100%;
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 22px;
  color: #ffffff;
  padding: 10px 8px 10px 14px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
}

.debate-comment-input:focus {
  border-color: transparent;
}

/* Icônes GIF et Stickers intégrées à droite du champ */
.comment-input-addons {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.comment-input-addon-btn {
  background: transparent;
  border: none;
  color: #71717a;
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.comment-input-addon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.comment-input-addon-btn:active {
  transform: scale(0.9);
}

.comment-input-addon-btn.active {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}

.addon-gif-tag {
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.5px;
  padding: 1.5px 4px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  line-height: 1;
  display: inline-block;
  user-select: none;
}

.comment-input-addon-btn svg {
  width: 18px;
  height: 18px;
}

.debate-comment-input::placeholder {
  color: #52525b;
  font-size: 12.5px;
}

/* Zone d'enregistrement vocal direct dans la barre */
.debate-voice-recording-ui {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  padding: 8px 14px;
  gap: 10px;
  min-width: 0;
}

.recording-pulse-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.recording-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  animation: pulseRecordingDot 1.2s infinite ease-in-out;
}

@keyframes pulseRecordingDot {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.recording-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #ef4444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recording-timer {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-left: auto;
  padding: 0 4px;
}

.cancel-voice-record-btn {
  background: none;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.cancel-voice-record-btn:hover {
  color: #ffffff;
}

.cancel-voice-record-btn svg {
  width: 16px;
  height: 16px;
}

/* Bouton d'action Débat : Micro ou Avion de papier */
.debate-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  outline: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.4);
}

.debate-send-btn svg {
  width: 17px;
  height: 17px;
}

.debate-send-btn .btn-icon-send {
  transform: translate(1px, -1px);
  display: block;
}

.debate-send-btn .btn-icon-mic {
  display: none;
}

/* Mode Micro quand le champ de texte est vide */
.debate-send-btn.mode-mic {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.2);
  color: #60a5fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.debate-send-btn.mode-mic .btn-icon-send {
  display: none;
}

.debate-send-btn.mode-mic .btn-icon-mic {
  display: block;
}

.debate-send-btn.mode-mic:hover {
  background: #27272a;
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.4);
}

/* Mode Enregistrement en cours */
.debate-send-btn.is-recording {
  background: #dc2626 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6) !important;
  animation: pulseRecordBtn 1.5s infinite ease-in-out;
}

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

  50% {
    transform: scale(1.05);
  }

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

.debate-send-btn.is-recording .btn-icon-mic {
  display: none;
}

.debate-send-btn.is-recording .btn-icon-send {
  display: block;
}

.debate-send-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Lecteur de Commentaire Vocal - Rouge Bordeaux, Coins Arrondis & Accélération
   ========================================================================== */
.debate-voice-player {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  max-width: 260px;
  min-width: 190px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #580a1a 0%, #3a0410 100%) !important;
  border: 1px solid rgba(225, 29, 72, 0.35) !important;
  border-radius: 24px !important;
  padding: 4px 10px 4px 5px !important;
  margin: 4px 0 6px 0;
  box-shadow: 0 2px 10px rgba(88, 10, 26, 0.45) !important;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.debate-voice-player:hover {
  border-color: rgba(244, 63, 94, 0.6) !important;
}

.voice-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: none !important;
  color: #000000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
  outline: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
  padding: 0 !important;
}

.voice-play-btn:hover {
  background: #f1f5f9 !important;
}

.voice-play-btn:active {
  transform: scale(0.92);
}

.voice-play-btn svg {
  width: 12px;
  height: 12px;
  fill: #000000 !important;
  color: #000000 !important;
}

.voice-play-btn .voice-icon-play {
  transform: translateX(1px);
}

.voice-waveform-track {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  height: 24px;
  padding: 0 2px;
  background: transparent !important;
}

.voice-wave-bar {
  width: 2.5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  display: inline-block;
  transition: height 0.15s ease, background-color 0.2s ease;
  flex-shrink: 0;
}

.voice-duration-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.3px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.voice-speed-btn {
  background: rgba(255, 255, 255, 0.16) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  border-radius: 12px !important;
  padding: 2px 6px !important;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  outline: none;
  transition: background 0.15s ease, transform 0.1s ease;
  line-height: 1.2;
}

.voice-speed-btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.voice-speed-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   Menu 3 Points au Coin Droit des Commentaires (Très Petit Tableau AMOLED)
   ========================================================================== */
.comment-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  flex-shrink: 0;
}

.comment-dots-btn {
  background: transparent;
  border: none;
  color: #71717a;
  padding: 3px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  outline: none;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.comment-dots-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.comment-dots-btn:active {
  transform: scale(0.9);
}

.comment-dots-btn svg {
  width: 14px;
  height: 14px;
}

.comment-menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 5px;
  min-width: 136px;
  z-index: 500;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.15s ease;
}

.cmt-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  color: #d4d4d8;
  cursor: pointer;
  text-align: left;
  outline: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.cmt-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.cmt-menu-item:active {
  transform: scale(0.97);
}

.cmt-menu-item svg {
  width: 13.5px;
  height: 13.5px;
  flex-shrink: 0;
  color: inherit;
}

.cmt-menu-item.item-danger {
  color: #f87171;
}

.cmt-menu-item.item-danger:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
}

.cmt-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 3px 4px;
}

/* Badge Commentaire Épinglé (100% Noir Pur AMOLED avec accent or subtil) */
.debate-pinned-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.debate-pinned-badge svg {
  width: 11px;
  height: 11px;
  color: #fbbf24;
  fill: #fbbf24;
  flex-shrink: 0;
}

.debate-comment-item.is-pinned-comment {
  border-left: 2px solid rgba(251, 191, 36, 0.45) !important;
  background: rgba(251, 191, 36, 0.02) !important;
}

.debate-voice-player.is-playing .voice-wave-bar {
  background: #ffffff !important;
  animation: voiceWavePulse 0.9s infinite ease-in-out alternate;
}

.debate-voice-player.is-playing .voice-wave-bar:nth-child(2n) {
  animation-delay: 0.15s;
}

.debate-voice-player.is-playing .voice-wave-bar:nth-child(3n) {
  animation-delay: 0.3s;
}

.debate-voice-player.is-playing .voice-wave-bar:nth-child(4n) {
  animation-delay: 0.45s;
}

@keyframes voiceWavePulse {
  0% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }

  100% {
    transform: scaleY(1.3);
    opacity: 1;
  }
}

.voice-duration-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  color: #94a3b8;
  white-space: nowrap;
}

/* ==========================================================================
   Modération IA Transformers.js & Masquage Contenus Sensibles (Violence & Adulte)
   100% Noir AMOLED Pur - Aucun rectangle sous l'image
   ========================================================================== */
.pure-comment-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Tag de contenu masqué (Strictement sans carte ni rectangle) */
.sensitive-mask-tag {
  font-size: 11px;
  font-weight: 750;
  color: #fb7185;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  letter-spacing: -0.1px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.35;
}

.masked-blur-text {
  filter: blur(5px);
  opacity: 0.35;
  user-select: none;
  pointer-events: none;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.pure-comment-line.is-masked.revealed .masked-blur-text,
.debate-comment-item.is-masked.revealed .masked-blur-text {
  filter: none !important;
  opacity: 1 !important;
  user-select: auto !important;
  pointer-events: auto !important;
}

.unmask-text-btn {
  background: #0f0f10;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #a1a1aa;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  cursor: pointer;
  line-height: 1.35;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.unmask-text-btn:hover {
  background: #1c1c1f;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.unmask-text-btn:active {
  transform: scale(0.95);
}

.debate-comment-body {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.debate-unmask-btn {
  margin-top: 2px;
}

/* ==========================================================================
   Page Complète d'Enregistrement Audio (Studio Vocal HD AMOLED Pur #000000)
   Sans emojis ni cartes/rectangles encombrants - Animations 60fps optimisées
   ========================================================================== */
#create-audio-screen {
  background-color: #000000 !important;
  color: #ffffff;
}

.studio-bg-ambient-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.studio-bg-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
  pointer-events: none;
}

.studio-bg-glow.glow-top {
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #3b82f6 0%, rgba(99, 102, 241, 0) 70%);
}

.studio-bg-glow.glow-bottom {
  bottom: 8%;
  right: -60px;
  background: radial-gradient(circle, #6366f1 0%, rgba(147, 51, 234, 0) 70%);
  opacity: 0.12;
}

.studio-bg-sound-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

#create-audio-screen .create-screen-body {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 14px 18px calc(30px + env(safe-area-inset-bottom, 0px)) 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Studio d'enregistrement (Sans carte ni rectangle lourd) */
.audio-studio-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 6px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Badge Filtre Acoustique HD */
.studio-hd-vocal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 9999px;
  color: #93c5fd;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 22px;
}

.studio-hd-vocal-pill svg {
  width: 14px;
  height: 14px;
  stroke: #60a5fa;
  flex-shrink: 0;
}

.hd-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: hdDotPulse 2s ease-in-out infinite;
}

@keyframes hdDotPulse {

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

  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px #38bdf8;
  }
}

/* Orbe Visualiseur Central */
.audio-visualizer-orb {
  position: relative;
  width: 154px;
  height: 154px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.orbital-acoustic-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(59, 130, 246, 0.22);
  animation: acousticRotate 24s linear infinite;
  pointer-events: none;
}

@keyframes acousticRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.sonic-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85);
  will-change: transform, opacity;
}

.audio-visualizer-orb.recording .sonic-pulse-ring.ring-1 {
  animation: sonicRipples 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  border-color: rgba(239, 68, 68, 0.55);
}

.audio-visualizer-orb.recording .sonic-pulse-ring.ring-2 {
  animation: sonicRipples 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 0.65s;
  border-color: rgba(244, 63, 94, 0.45);
}

.audio-visualizer-orb.recording .sonic-pulse-ring.ring-3 {
  animation: sonicRipples 2s cubic-bezier(0.2, 0.8, 0.4, 1) infinite 1.3s;
  border-color: rgba(59, 130, 246, 0.3);
}

@keyframes sonicRipples {
  0% {
    transform: scale(0.85);
    opacity: 0.95;
  }

  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

/* Bouton Micro Central */
.studio-mic-btn {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1e293b, #0f172a);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  will-change: transform;
}

.studio-mic-btn svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  transition: transform 0.2s ease;
}

.studio-mic-btn:active {
  transform: scale(0.92);
}

.audio-visualizer-orb.recording .studio-mic-btn {
  background: radial-gradient(circle at 35% 30%, #ef4444, #b91c1c);
  border-color: rgba(254, 202, 202, 0.6);
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.65), 0 0 55px rgba(239, 68, 68, 0.3);
  animation: micRecordBreath 1.6s ease-in-out infinite alternate;
}

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

  100% {
    transform: scale(1.05);
  }
}

/* Chronomètre et statut */
.studio-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.studio-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: studioDotBlink 0.9s ease-in-out infinite;
}

@keyframes studioDotBlink {

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

  50% {
    opacity: 0.3;
    transform: scale(0.85);
  }
}

.studio-status-label {
  font-size: 13px;
  color: #a1a1aa;
  font-weight: 500;
}

.studio-timer {
  font-size: 15px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Égaliseur réactif (20 barres sonores) */
.studio-wave-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  width: 100%;
  max-width: 260px;
  margin-bottom: 18px;
}

.studio-bar {
  flex: 1;
  width: 3.5px;
  height: 36px;
  background: linear-gradient(to top, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.7));
  border-radius: 9999px;
  transform: scaleY(0.12);
  transform-origin: center;
  transition: transform 0.08s ease-out, background 0.2s ease;
  will-change: transform;
}

.audio-visualizer-orb.recording~.studio-wave-track .studio-bar {
  background: linear-gradient(to top, #ef4444, #f43f5e);
}

.studio-wave-track.simulated-wave .studio-bar {
  background: linear-gradient(to top, #ef4444, #f43f5e);
  animation: studioBarAnim 0.8s ease-in-out infinite alternate;
}

.studio-wave-track.playing .studio-bar {
  background: linear-gradient(to top, #3b82f6, #60a5fa);
  animation: studioBarAnim 0.8s ease-in-out infinite alternate;
}

.studio-bar:nth-child(2n) {
  animation-delay: 0.12s;
}

.studio-bar:nth-child(3n) {
  animation-delay: 0.25s;
}

.studio-bar:nth-child(4n) {
  animation-delay: 0.38s;
}

.studio-bar:nth-child(5n) {
  animation-delay: 0.18s;
}

.studio-bar:nth-child(7n) {
  animation-delay: 0.32s;
}

@keyframes studioBarAnim {
  0% {
    transform: scaleY(0.15);
  }

  50% {
    transform: scaleY(0.85);
  }

  100% {
    transform: scaleY(0.35);
  }
}

/* Sélecteur de profil acoustique de la voix */
.vocal-presets-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.vocal-preset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: #71717a;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.vocal-preset-btn .preset-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #52525b;
  transition: background 0.2s ease;
}

.vocal-preset-btn.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.vocal-preset-btn.active .preset-dot {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
}

/* Commandes de pré-écoute & réenregistrement */
.studio-review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.studio-action-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.studio-action-icon-btn svg {
  width: 14px;
  height: 14px;
}

.studio-action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.studio-action-icon-btn:active {
  transform: scale(0.95);
}

/* Champ de question sans boîte ni rectangle */
#create-audio-screen .question-input-wrapper {
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 4px 0 10px 0;
  transition: border-color 0.2s ease;
}

#create-audio-screen .question-input-wrapper:focus-within {
  border-bottom-color: #3b82f6 !important;
}

#create-audio-screen .question-textarea {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
  width: 100%;
  resize: none;
  padding: 0;
  font-family: inherit;
  box-shadow: none !important;
}

#create-audio-screen .question-textarea::placeholder {
  color: #52525b;
}

#create-audio-screen .teams-config-box {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

#create-audio-screen .mode-pill-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

#create-audio-screen .mode-pill-btn.active {
  background: rgba(37, 99, 235, 0.18) !important;
}

#create-audio-screen .duration-pill-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

#create-audio-screen .duration-pill-btn.active {
  background: rgba(37, 99, 235, 0.18) !important;
}

/* ==========================================================================
   Carte Audio Carrée dans le Fil (Pleine largeur bord à bord, format 1:1)
   Animations pro et fluides, pur noir AMOLED #000000
   ========================================================================== */
.post-square-audio-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #0e1728 0%, #060912 60%, #000000 100%);
  border: none;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Arrière-plan ondes acoustiques et lueur dynamique */
.feed-audio-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.feed-audio-radial-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(99, 102, 241, 0.05) 55%, transparent 75%);
  filter: blur(40px);
  opacity: 0.45;
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.post-square-audio-box.playing .feed-audio-radial-glow {
  opacity: 0.95;
  transform: translate(-50%, -50%) scale(1.15);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(139, 92, 246, 0.15) 60%, transparent 80%);
}

/* Déclencheur central : Micro SVG avec ondes sonores animées */
.feed-audio-center-player {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anneaux d'ondes sonores concentriques rayonnant depuis le micro */
.feed-mic-waves-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  pointer-events: none;
}

.mic-wave-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  will-change: transform, opacity;
}

/* Ondes douces au repos */
.post-square-audio-box:not(.playing) .mic-wave-ring.ring-1 {
  border-color: rgba(59, 130, 246, 0.22);
  animation: micWaveIdle 3.2s ease-in-out infinite;
}

@keyframes micWaveIdle {

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

  50% {
    transform: scale(1.18);
    opacity: 0.35;
  }
}

/* Ondes sonores pro dynamiques et fluides en cours de lecture */
.post-square-audio-box.playing .mic-wave-ring.ring-1 {
  animation: micWavePulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.post-square-audio-box.playing .mic-wave-ring.ring-2 {
  animation: micWavePulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite 0.55s;
}

.post-square-audio-box.playing .mic-wave-ring.ring-3 {
  animation: micWavePulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite 1.1s;
}

.post-square-audio-box.playing .mic-wave-ring.ring-4 {
  animation: micWavePulse 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite 1.65s;
}

@keyframes micWavePulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
    border-color: rgba(96, 165, 250, 0.7);
  }

  50% {
    border-color: rgba(139, 92, 246, 0.45);
  }

  100% {
    transform: scale(2.4);
    opacity: 0;
    border-color: rgba(59, 130, 246, 0);
  }
}

/* Bouton Micro Central */
.feed-mic-trigger-btn {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1e293b, #0f172a);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(59, 130, 246, 0.2);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.3s ease, border-color 0.3s ease;
  z-index: 5;
  will-change: transform;
}

.feed-mic-trigger-btn:hover {
  transform: scale(1.05);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 30px rgba(59, 130, 246, 0.4);
}

.feed-mic-trigger-btn:active {
  transform: scale(0.93);
}

.feed-mic-trigger-btn .mic-svg {
  width: 34px;
  height: 34px;
  stroke: #ffffff;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.post-square-audio-box.playing .feed-mic-trigger-btn {
  background: radial-gradient(circle at 35% 30%, #2563eb, #1d4ed8);
  border-color: rgba(147, 197, 253, 0.6);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.7), 0 0 55px rgba(59, 130, 246, 0.4);
}

.post-square-audio-box.playing .feed-mic-trigger-btn .mic-svg {
  stroke: #ffffff;
  animation: micVibrate 1.2s ease-in-out infinite alternate;
}

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

  100% {
    transform: scale(1.06);
  }
}

/* Badge indicateur Play/Pause en coin du micro */
.mic-playback-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mic-playback-badge svg {
  width: 12px;
  height: 12px;
}

.mic-playback-badge .play-svg {
  margin-left: 1.5px;
}

.post-square-audio-box.playing .mic-playback-badge {
  background: #1e3a8a;
  border-color: #60a5fa;
  color: #93c5fd;
}

/* Zone Scrubber / Ligne de progression épurée */
.feed-audio-visualizer-wrap {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  z-index: 8;
  display: flex;
  flex-direction: column;
}

.post-square-audio-box.with-strike .feed-audio-visualizer-wrap {
  bottom: 54px;
  /* Espace réservé pour la barre Duel Strike */
}

/* Scrubber / Ligne de progression */
.feed-audio-scrubber-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #94a3b8;
}

.feed-audio-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.feed-audio-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.1s linear;
}

/* Ajustement du bouton Like dans la carte audio carrée */
.post-square-audio-box .image-floating-like-badge {
  bottom: 46px;
  left: 16px;
  z-index: 12;
}

.post-square-audio-box.with-strike .image-floating-like-badge {
  bottom: 86px;
}

/* Miniature audio dans l'arène de débat */
.hero-q-audio-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e293b, #090d16);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.hero-q-audio-thumb svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Page Complète de Création de Sondage (Sondage Carré & Thèmes Personnalisés)
   Noir AMOLED Pur #000000 - Design exclusif et interactif en direct
   ========================================================================== */
#create-poll-screen {
  background-color: #000000 !important;
  color: #ffffff;
}

.poll-create-body {
  padding: 14px 18px calc(35px + env(safe-area-inset-bottom, 0px)) 18px !important;
  gap: 22px !important;
}

/* CARRE EN HAUT : Carte Aperçu Carrée 1:1 */
.poll-preview-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
}

.poll-preview-card {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75);
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Thèmes de fond pour la carte carrée (Sondage & Sujet) */
.poll-preview-card.theme-onyx,
.post-square-poll-box.theme-onyx {
  background: radial-gradient(circle at 50% 25%, #27272a 0%, #111113 60%, #050505 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.poll-preview-card.theme-cosmos,
.post-square-poll-box.theme-cosmos {
  background: linear-gradient(145deg, #1e3a8a 0%, #312e81 55%, #090d26 100%) !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
}

.poll-preview-card.theme-neon,
.post-square-poll-box.theme-neon,
.poll-preview-card.theme-cyan,
.post-square-poll-box.theme-cyan {
  background: linear-gradient(145deg, #0e7490 0%, #0369a1 55%, #041f2e 100%) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}

.poll-preview-card.theme-crimson,
.post-square-poll-box.theme-crimson {
  background: linear-gradient(145deg, #9f1239 0%, #881337 55%, #2a0610 100%) !important;
  border-color: rgba(244, 63, 94, 0.45) !important;
}

.poll-preview-card.theme-emerald,
.post-square-poll-box.theme-emerald {
  background: linear-gradient(145deg, #047857 0%, #065f46 55%, #022c22 100%) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.poll-preview-card.theme-violet,
.post-square-poll-box.theme-violet {
  background: linear-gradient(145deg, #6b21a8 0%, #4c1d95 55%, #1a0633 100%) !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
}

.poll-preview-card.theme-graphite,
.post-square-poll-box.theme-graphite {
  background: linear-gradient(145deg, #3f3f46 0%, #27272a 55%, #09090b 100%) !important;
  border-color: rgba(161, 161, 170, 0.4) !important;
}

/* Badge dans la carte aperçu */
.poll-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
  z-index: 2;
}

.poll-card-badge svg {
  width: 12px;
  height: 12px;
  stroke: #60a5fa;
}

/* Contenu live dans la carte carrée */
.poll-card-inner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
  z-index: 2;
}

.poll-preview-question {
  font-size: 15.5px;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin: 0;
  word-break: break-word;
  max-height: 52px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poll-preview-options-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.poll-preview-opt-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
  font-weight: 550;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.poll-preview-opt-item .opt-letter {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.poll-preview-opt-item .opt-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poll-card-live-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  z-index: 2;
}

.poll-live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
}

.poll-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* Palette de sélection des fonds de carte */
.poll-theme-selector-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-bg-swatches-row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.poll-bg-swatches-row::-webkit-scrollbar {
  display: none;
}

.poll-swatch-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  outline: none;
  flex-shrink: 0;
}

.swatch-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.poll-swatch-btn:active .swatch-circle {
  transform: scale(0.92);
}

.poll-swatch-btn.active .swatch-circle {
  transform: scale(1.12);
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
}

.swatch-name {
  font-size: 10.5px;
  color: #71717a;
  font-weight: 500;
  transition: color 0.2s ease;
}

.poll-swatch-btn.active .swatch-name {
  color: #ffffff;
  font-weight: 600;
}

.swatch-onyx {
  background: radial-gradient(circle, #27272a, #000000);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swatch-cosmos {
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
}

.swatch-neon {
  background: linear-gradient(135deg, #0369a1, #02222d);
}

.swatch-crimson {
  background: linear-gradient(135deg, #881337, #2a0812);
}

.swatch-emerald {
  background: linear-gradient(135deg, #065f46, #022c22);
}

.swatch-violet {
  background: linear-gradient(135deg, #6b21a8, #3b0764);
}

/* Champ de saisie question du sondage */
.poll-question-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-input-box {
  background: transparent;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.14);
  padding: 4px 0 8px 0;
  transition: border-color 0.2s ease;
}

.poll-input-box:focus-within {
  border-bottom-color: #3b82f6;
}

.poll-text-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.4;
}

.poll-text-input::placeholder {
  color: #52525b;
}

/* Éditeur d'options du sondage (2 à 5) */
.poll-options-editor-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.options-count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

.poll-inputs-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.poll-option-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.poll-option-input-row:focus-within {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.poll-opt-badge-letter {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.poll-option-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
}

.poll-option-input-row input::placeholder {
  color: #52525b;
}

.poll-del-opt-btn {
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s ease, transform 0.15s ease;
}

.poll-del-opt-btn:hover {
  color: #ef4444;
}

.poll-del-opt-btn:active {
  transform: scale(0.9);
}

.poll-del-opt-btn svg {
  width: 16px;
  height: 16px;
}

/* Bouton Ajouter une option */
.poll-add-opt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.poll-add-opt-btn:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: #3b82f6;
  color: #ffffff;
}

.poll-add-opt-btn:active {
  transform: scale(0.98);
}

.poll-add-opt-btn svg {
  width: 16px;
  height: 16px;
}

.poll-add-opt-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   Carte Sondage Carrée dans le Fil (Pleine largeur bord à bord, 1:1)
   Vote interactif, barres de pourcentage animées et fond thématique
   ========================================================================== */
.post-square-poll-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  border: none;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px 20px 18px;
}

.post-square-poll-box.with-strike {
  padding-bottom: 58px;
}

/* Contenu du sondage dans la carte du fil */
.poll-feed-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 24px;
  z-index: 5;
}

.poll-feed-question {
  font-size: 16.5px;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin: 0;
  padding-right: 75px;
}

.poll-feed-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.poll-feed-option-row {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.poll-feed-option-row:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.poll-feed-option-row:active {
  transform: scale(0.985);
}

.poll-feed-option-row.voted {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.poll-feed-option-row.locked {
  cursor: default;
}

.poll-feed-option-row.locked:active {
  transform: none;
}

.poll-option-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), rgba(99, 102, 241, 0.45));
  border-radius: 12px;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.poll-feed-option-row.voted .poll-option-fill {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.55), rgba(139, 92, 246, 0.65));
}

.poll-option-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.poll-opt-letter {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 750;
  color: #ffffff;
  flex-shrink: 0;
}

.poll-feed-option-row.voted .poll-opt-letter {
  background: #3b82f6;
  color: #ffffff;
}

.poll-opt-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.poll-opt-pct {
  font-size: 13px;
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #ffffff;
  flex-shrink: 0;
}

/* Bouton Like dans la carte sondage */
.post-square-poll-box .image-floating-like-badge {
  bottom: 12px;
  left: 16px;
  z-index: 10;
}

.post-square-poll-box.with-strike .image-floating-like-badge {
  bottom: 50px;
}

/* Nombre total de votes en bas à droite dans la carte sans pillule */
.poll-bottom-votes-count {
  position: absolute;
  bottom: 15px;
  right: 18px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.25px;
  z-index: 10;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}

.post-square-poll-box.with-strike .poll-bottom-votes-count {
  bottom: 53px;
}

/* Miniature dans l'arène de débat */
.hero-q-poll-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #1e1b4b, #09090b);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.hero-q-poll-thumb svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Page Notifications AMOLED & Deux Bulles Supérieures
   - Bulle 1 : Abonnés (nouveaux abonnés)
   - Bulle 2 : Privée commentaire (commentaires directs et messages privés)
   - En bas : Likes & Autres activités
   ========================================================================== */
.notifications-page-container {
  padding: 14px 16px 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
  margin: 0 auto;
  background-color: #000000;
  min-height: 100%;
  animation: notifFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notifications-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2px;
}

.notifications-header-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0;
}

.notifications-sub-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #71717a;
  letter-spacing: 0.2px;
}

/* Ligne des deux bulles en haut */
.notif-top-bubbles-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.notif-top-bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  box-shadow: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.notif-top-bubble:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.notif-top-bubble:active {
  transform: scale(0.97);
}

.notif-top-bubble.active {
  border-color: #3b82f6 !important;
  background: #000000 !important;
  box-shadow: none !important;
}

/* Variante Bulle Abonnés (Fond Noir Pur AMOLED) */
.bubble-followers-icon {
  background: #000000 !important;
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  color: #3b82f6;
}

/* Variante Bulle Privée Commentaire (Fond Noir Pur AMOLED) */
.bubble-private-icon {
  background: #000000 !important;
  border: 1.5px solid rgba(168, 85, 247, 0.5);
  color: #a855f7;
}

/* Variante Bulle Demandes d'Appels (Fond Noir Pur AMOLED avec accent Émeraude) */
.bubble-call-icon {
  background: #000000 !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  color: #10b981;
}

.badge-call {
  background: #10b981;
  color: #ffffff;
}

.notif-call-bubble-row {
  width: 100%;
}

.notif-call-bubble {
  width: 100%;
}

.notif-top-bubble.call-active {
  border-color: #10b981 !important;
}

.notif-top-bubble.call-active .notif-bubble-chevron {
  stroke: #10b981;
  transform: rotate(90deg);
}

.notif-action-btn.call-confirm-btn {
  background: #10b981;
  color: #ffffff;
  border: none;
}

.notif-action-btn.call-confirm-btn:hover {
  background: #059669;
}

.notif-action-btn.call-decline-btn {
  background: rgba(239, 68, 68, 0.16);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.notif-action-btn.call-decline-btn:hover {
  background: rgba(239, 68, 68, 0.28);
}

.notif-action-btn.call-start-btn {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.notif-action-btn.call-start-btn:hover {
  background: rgba(16, 185, 129, 0.28);
}

.notif-bubble-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  background: #000000 !important;
}

.notif-top-bubble:hover .notif-bubble-icon-box {
  transform: scale(1.05);
}

.notif-bubble-icon-box svg {
  width: 20px;
  height: 20px;
}

.notif-bubble-pill-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #000000;
}

.notif-bubble-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.notif-bubble-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.notif-bubble-name {
  font-size: 13.5px;
  font-weight: 750;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-bubble-chevron {
  width: 14px;
  height: 14px;
  stroke: #71717a;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.notif-top-bubble.active .notif-bubble-chevron {
  stroke: #3b82f6;
  transform: rotate(90deg);
}

.notif-bubble-desc {
  font-size: 11px;
  color: #a1a1aa;
  font-weight: 500;
  margin-top: 2px;
}

/* Section En Bas : Likes & Autres activités */
.notif-bottom-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #000000 !important;
}

.notif-section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
  background: #000000 !important;
}

.notif-section-heading {
  font-size: 13.5px;
  font-weight: 750;
  color: #e4e4e7;
  letter-spacing: -0.1px;
}

.notif-clear-filter-btn {
  background: #000000 !important;
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
  outline: none;
}

.notif-clear-filter-btn:hover {
  color: #ffffff;
  border-color: #3b82f6;
}

/* Liste des notifications */
.notif-items-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #000000 !important;
}

.notif-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-radius: 0;
  background: #000000 !important;
  transition: opacity 0.15s ease;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notif-card-item:last-child {
  border-bottom: none;
}

.notif-card-item:hover {
  background: #000000 !important;
}

.notif-card-item.unread {
  background: #000000 !important;
}

.notif-item-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.notif-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 750;
  background: #000000 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.notif-icon-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-icon-badge svg {
  width: 10px;
  height: 10px;
}

.notif-icon-badge.badge-like {
  background: #ef4444;
  color: #ffffff;
}

.notif-icon-badge.badge-follow {
  background: #3b82f6;
  color: #ffffff;
}

.notif-icon-badge.badge-private {
  background: #a855f7;
  color: #ffffff;
}

.notif-icon-badge.badge-poll {
  background: #10b981;
  color: #ffffff;
}

.notif-icon-badge.badge-mention {
  background: #3b82f6;
  color: #ffffff;
}

.notif-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #000000 !important;
}

.notif-item-text {
  font-size: 13px;
  color: #d4d4d8;
  line-height: 1.35;
  margin: 0;
  word-break: break-word;
}

.notif-item-author {
  font-weight: 750;
  color: #ffffff;
}

.notif-target-title {
  color: #93c5fd;
  font-weight: 600;
}

.notif-item-snippet {
  font-size: 12px;
  color: #a1a1aa;
  font-style: italic;
  padding: 5px 10px;
  background: #000000 !important;
  border-radius: 8px;
  margin-top: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 2px solid #3b82f6;
}

.notif-item-time {
  font-size: 11px;
  color: #71717a;
}

.notif-item-action-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000000 !important;
}

.notif-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #000000 !important;
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #93c5fd;
  border-radius: 6px;
  height: 28px;
  padding: 0 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.notif-action-btn:active {
  transform: scale(0.94);
}

.notif-action-btn.following {
  background: #000000 !important;
  border-color: rgba(255, 255, 255, 0.22);
  color: #a1a1aa;
}

.notif-action-btn.private-reply-btn {
  background: #000000 !important;
  border-color: rgba(168, 85, 247, 0.5);
  color: #d8b4fe;
}

.notif-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #3b82f6;
  flex-shrink: 0;
  box-shadow: 0 0 6px #3b82f6;
}

.notif-empty-state {
  text-align: center;
  padding: 32px 16px;
  color: #71717a;
  background: #000000 !important;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  margin-top: 6px;
}

.notif-empty-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px auto;
  opacity: 0.35;
  color: #71717a;
  display: block;
}

/* ==========================================================================
   Page Explorer AMOLED & Cartes Verticales Tendances de la Semaine
   ========================================================================== */
.explore-page-container {
  padding: 14px 14px 28px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
  background-color: #000000;
  min-height: 100%;
  animation: exploreFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes exploreFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.explore-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 0 2px;
}

.explore-main-title {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0;
}

.explore-subtitle {
  font-size: 11.5px;
  font-weight: 600;
  color: #71717a;
  letter-spacing: 0.2px;
  margin-top: 2px;
  display: block;
}

/* Bulle de recherche AMOLED dans Explorer (avec icône avion en écrivant) */
.explore-search-bubble-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 3px 6px 3px 12px;
  height: 32px;
  width: 155px;
  transition: border-color 0.2s ease, width 0.25s ease, box-shadow 0.2s ease;
}

.explore-search-bubble-wrap:focus-within {
  border-color: rgba(59, 130, 246, 0.6);
  width: 185px;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.explore-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 550;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.explore-search-input::placeholder {
  color: #71717a;
  font-size: 11.5px;
}

.explore-search-send-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #38bdf8;
  cursor: pointer;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
  animation: popPlaneIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.explore-search-send-btn:active {
  transform: scale(0.85);
}

.explore-search-send-btn svg {
  width: 15px;
  height: 15px;
  stroke: #38bdf8;
}

@keyframes popPlaneIn {
  from {
    transform: scale(0.5);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.explore-empty-search {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 16px;
  color: #71717a;
  font-size: 13px;
  font-weight: 500;
}

/* Barre de filtres horizontaux */
.explore-filters-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.explore-filters-bar::-webkit-scrollbar {
  display: none;
}

.explore-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 9999px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  outline: none;
}

.explore-filter-btn:active {
  transform: scale(0.95);
}

.explore-filter-btn.active {
  background: #000000;
  border-color: #3b82f6;
  color: #ffffff;
}

.explore-filter-btn svg {
  width: 13px;
  height: 13px;
}

/* Grille de cartes verticales 2 colonnes */
.explore-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 2px;
}

/* Carte Verticale Tendance */
.explore-vertical-card {
  position: relative;
  aspect-ratio: 9 / 14.5;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.explore-vertical-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.explore-vertical-card:active {
  transform: scale(0.97);
}

/* Arrière-plan de la carte verticale Image */
.explore-card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.explore-card-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Arrière-plan de la carte verticale Audio */
.explore-card-audio-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0f172a 0%, #000000 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.explore-audio-glow-radial {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.explore-audio-rings-wrap {
  position: absolute;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.exp-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.25);
  animation: expRingPulse 2.4s infinite ease-out;
}

.exp-ring.ring-1 {
  width: 44px;
  height: 44px;
  animation-delay: 0s;
}

.exp-ring.ring-2 {
  width: 68px;
  height: 68px;
  animation-delay: 0.8s;
}

.exp-ring.ring-3 {
  width: 92px;
  height: 92px;
  animation-delay: 1.6s;
}

@keyframes expRingPulse {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.explore-audio-mic-center {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid rgba(59, 130, 246, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

.explore-audio-mic-center svg {
  width: 22px;
  height: 22px;
}

/* Arrière-plan de la carte verticale Sondage */
.explore-card-poll-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
}

.explore-poll-preview-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  opacity: 0.75;
}

.explore-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.explore-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

/* Ligne supérieure de la carte verticale */
.explore-card-top-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.explore-rank-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  letter-spacing: 0.2px;
}

.explore-rank-badge.rank-1 {
  border-color: rgba(245, 158, 11, 0.65);
  color: #fbbf24;
}

.explore-card-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d4d4d8;
  font-size: 10px;
  font-weight: 700;
}

.explore-card-type-tag svg {
  width: 11px;
  height: 11px;
}

/* Milieu de la carte verticale */
.explore-card-mid-teams {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  width: 100%;
}

.explore-vs-chip {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #f87171;
  letter-spacing: 0.5px;
}

.explore-card-mid-spacer {
  height: 20px;
}

/* Bas de la carte verticale */
.explore-card-bottom-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.explore-card-question-title {
  font-size: 12.5px;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.explore-card-footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.explore-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.explore-card-stat svg {
  width: 11.5px;
  height: 11.5px;
  flex-shrink: 0;
}

/* ==========================================================================
   Tiroir AMOLED Sélecteur de GIF & Stickers (100% Noir Pur)
   ========================================================================== */
.comment-media-picker-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px 20px 0 0;
  z-index: 3400;
  max-height: 52vh;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.95);
}

.comment-media-picker-panel.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.media-picker-drag-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  margin: 8px auto 4px auto;
  flex-shrink: 0;
}

.media-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.media-picker-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0d0d0d;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-tab-btn {
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 13px;
  font-weight: 750;
  padding: 6px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  outline: none;
}

.media-tab-btn.active {
  background: #1f1f23;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.media-picker-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 14px 16px 14px;
}

/* Barre de filtres / tags rapides */
.media-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
  flex-shrink: 0;
}

.media-chips-row::-webkit-scrollbar {
  display: none;
}

.media-filter-chip,
.sticker-filter-chip {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-size: 11.5px;
  font-weight: 650;
  padding: 5px 11px;
  border-radius: 16px;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.media-filter-chip.active,
.sticker-filter-chip.active {
  background: rgba(59, 130, 246, 0.16);
  border-color: #3b82f6;
  color: #60a5fa;
}

/* Grilles pour GIFs et Stickers */
.media-grid {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 2px;
}

.media-gifs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-items: start;
  align-content: start;
  grid-auto-rows: max-content;
}

.gif-card-btn {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.gif-card-btn:hover {
  border-color: #3b82f6;
}

.gif-card-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gif-card-btn.gif-loaded .gif-card-img {
  opacity: 1;
}

/* Mini cercle de chargement centré sur chaque GIF et dans la recherche */
.gif-mini-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  margin-left: -11px;
  border: 2.4px solid rgba(255, 255, 255, 0.15);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: gifMiniSpin 0.65s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.gif-mini-spinner.status-spinner {
  position: relative;
  top: auto;
  left: auto;
  margin: 4px auto;
  display: inline-block;
}

.gif-card-btn.gif-loaded .gif-mini-spinner,
.comment-gif-media.gif-loaded .gif-mini-spinner {
  display: none;
}

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

.gif-card-label {
  position: absolute;
  bottom: 4px;
  left: 6px;
  font-size: 10px;
  font-weight: 750;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: -0.1px;
  pointer-events: none;
}

/* Grille de Stickers */
/* Grille de Stickers WhatsApp (Sans rectangle, fond transparent épuré) */
.media-stickers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 8px 0;
}

.sticker-picker-item-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  outline: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.sticker-picker-item-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.sticker-picker-item-btn:active {
  transform: scale(0.92);
}

.sticker-picker-emoji {
  font-size: 38px;
  line-height: 1;
  display: inline-block;
  transform-origin: center bottom;
  will-change: transform;
}

.sticker-picker-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #a1a1aa;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ==========================================================================
   Affichage des GIF et Stickers dans le flux de commentaires
   ========================================================================== */
.comment-gif-media {
  position: relative;
  margin-top: 6px;
  border-radius: 12px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 96px;
  max-width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0d0d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.comment-gif-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.comment-gif-media.gif-loaded img {
  opacity: 1;
}

/* STICKER STYLE WHATSAPP : 100% SANS RECTANGLE, FOND NOIR PUR AMOLED, GRANDE TAILLE & STATIQUE SANS ANIMATION */
.comment-sticker-standalone {
  margin: 8px 0 4px 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  user-select: none;
}

.sticker-wa-graphic {
  font-size: 84px;
  line-height: 1;
  display: inline-block;
  transform: none !important;
  animation: none !important;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.85));
}

.sticker-wa-sublabel {
  font-size: 11px;
  font-weight: 850;
  color: #71717a;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 6px;
  background: transparent !important;
  border: none !important;
}

/* ==========================================================================
   Animations WhatsApp 3 Secondes pour chaque type de sticker
   ========================================================================== */
.anim-bounce-3s {
  animation: waStickerBounce3s 3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.anim-laugh-3s {
  animation: waStickerLaugh3s 3s ease-in-out infinite;
}

.anim-flame-3s {
  animation: waStickerFlame3s 3s ease-in-out infinite;
}

.anim-heart-3s {
  animation: waStickerHeart3s 3s ease-in-out infinite;
}

.anim-shock-3s {
  animation: waStickerShock3s 3s ease-in-out infinite;
}

.anim-mindblown-3s {
  animation: waStickerMindblown3s 3s ease-in-out infinite;
}

.anim-clap-3s {
  animation: waStickerClap3s 3s ease-in-out infinite;
}

.anim-ko-3s {
  animation: waStickerKo3s 3s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.anim-popcorn-3s {
  animation: waStickerPopcorn3s 3s ease-in-out infinite;
}

.anim-goat-3s {
  animation: waStickerGoat3s 3s ease-in-out infinite;
}

.anim-cool-3s {
  animation: waStickerCool3s 3s ease-in-out infinite;
}

.anim-cry-3s {
  animation: waStickerCry3s 3s ease-in-out infinite;
}

.anim-angry-3s {
  animation: waStickerAngry3s 3s ease-in-out infinite;
}

.anim-party-3s {
  animation: waStickerParty3s 3s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.anim-cold-3s {
  animation: waStickerCold3s 3s ease-in-out infinite;
}

.anim-brain-3s {
  animation: waStickerBrain3s 3s ease-in-out infinite;
}

/* 1. Rebond dynamique WhatsApp (3s) */
@keyframes waStickerBounce3s {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  14% {
    transform: scale(1.18, 0.82) translateY(0);
  }

  28% {
    transform: scale(0.86, 1.22) translateY(-18px) rotate(4deg);
  }

  42% {
    transform: scale(1.08, 0.92) translateY(-4px) rotate(-3deg);
  }

  56% {
    transform: scale(0.96, 1.04) translateY(-10px) rotate(2deg);
  }

  70% {
    transform: scale(1.03, 0.97) translateY(0) rotate(0deg);
  }

  85% {
    transform: scale(0.98, 1.02) translateY(-2px);
  }
}

/* 2. Rire & oscillation (3s) */
@keyframes waStickerLaugh3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  10% {
    transform: scale(1.12) rotate(-8deg);
  }

  20% {
    transform: scale(1.18) rotate(8deg) translateY(-8px);
  }

  30% {
    transform: scale(1.06) rotate(-6deg);
  }

  40% {
    transform: scale(1.18) rotate(6deg) translateY(-8px);
  }

  50% {
    transform: scale(1.06) rotate(-4deg);
  }

  60% {
    transform: scale(1.14) rotate(4deg) translateY(-6px);
  }

  72% {
    transform: scale(1.02) rotate(-2deg);
  }

  86% {
    transform: scale(1.08) rotate(2deg);
  }
}

/* 3. Flamme incandescente (3s) */
@keyframes waStickerFlame3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 6px rgba(249, 115, 22, 0.4));
  }

  20% {
    transform: scale(1.22) rotate(-4deg);
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.85));
  }

  40% {
    transform: scale(1.12) rotate(5deg);
    filter: drop-shadow(0 0 26px rgba(245, 158, 11, 0.95));
  }

  60% {
    transform: scale(1.25) rotate(-3deg);
    filter: drop-shadow(0 0 22px rgba(239, 68, 68, 0.9));
  }

  80% {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.6));
  }
}

/* 4. Battement de cœur & amour en feu (3s) */
@keyframes waStickerHeart3s {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.4));
  }

  15% {
    transform: scale(1.26);
    filter: drop-shadow(0 0 20px rgba(244, 63, 94, 0.8));
  }

  25% {
    transform: scale(1.06);
  }

  40% {
    transform: scale(1.34);
    filter: drop-shadow(0 0 28px rgba(225, 29, 72, 0.95));
  }

  60% {
    transform: scale(1.02);
  }

  75% {
    transform: scale(1.16);
  }
}

/* 5. Choc & tremblement WhatsApp (3s) */
@keyframes waStickerShock3s {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  10% {
    transform: scale(1.24) translateY(-14px);
  }

  15% {
    transform: scale(1.18) translateY(-10px) translateX(-5px);
  }

  20% {
    transform: scale(1.22) translateY(-12px) translateX(5px);
  }

  25% {
    transform: scale(1.18) translateY(-8px) translateX(-4px);
  }

  30% {
    transform: scale(1.2) translateY(-10px) translateX(4px);
  }

  50% {
    transform: scale(1.05) translateY(-4px);
  }

  75% {
    transform: scale(1.12) translateY(-6px);
  }
}

/* 6. Mind blown cosmique (3s) */
@keyframes waStickerMindblown3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.4));
  }

  20% {
    transform: scale(1.15) rotate(-3deg);
  }

  40% {
    transform: scale(1.28) rotate(4deg);
    filter: drop-shadow(0 0 22px rgba(168, 85, 247, 0.9));
  }

  50% {
    transform: scale(1.36) rotate(0deg);
    filter: drop-shadow(0 0 32px rgba(236, 72, 153, 1));
  }

  70% {
    transform: scale(1.08) rotate(-2deg);
  }

  85% {
    transform: scale(1.16) rotate(2deg);
  }
}

/* 7. Applaudissements rythmés (3s) */
@keyframes waStickerClap3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  12% {
    transform: scale(1.2) rotate(-8deg) translateX(-6px);
  }

  20% {
    transform: scale(1.25) rotate(6deg) translateX(4px);
  }

  32% {
    transform: scale(1.2) rotate(-8deg) translateX(-6px);
  }

  40% {
    transform: scale(1.25) rotate(6deg) translateX(4px);
  }

  52% {
    transform: scale(1.2) rotate(-8deg) translateX(-6px);
  }

  60% {
    transform: scale(1.25) rotate(6deg) translateX(4px);
  }

  80% {
    transform: scale(1.04) rotate(0deg);
  }
}

/* 8. K.O. Boxe & impact (3s) */
@keyframes waStickerKo3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  15% {
    transform: scale(1.3) translateX(16px) rotate(12deg);
  }

  30% {
    transform: scale(0.9) translateX(-14px) rotate(-16deg);
  }

  45% {
    transform: scale(1.18) translateX(10px) rotate(8deg);
  }

  60% {
    transform: scale(0.95) translateX(-8px) rotate(-6deg);
  }

  80% {
    transform: scale(1.05) translateX(0) rotate(0deg);
  }
}

/* 9. Popcorn qui saute (3s) */
@keyframes waStickerPopcorn3s {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  15% {
    transform: scale(1.16) translateY(-14px) rotate(-6deg);
  }

  30% {
    transform: scale(1.05) translateY(-4px) rotate(4deg);
  }

  45% {
    transform: scale(1.24) translateY(-18px) rotate(8deg);
  }

  60% {
    transform: scale(1.08) translateY(-6px) rotate(-4deg);
  }

  75% {
    transform: scale(1.14) translateY(-10px) rotate(2deg);
  }
}

/* 10. GOAT doré & couronne étincelante (3s) */
@keyframes waStickerGoat3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.4));
  }

  20% {
    transform: scale(1.2) translateY(-10px) rotate(-4deg);
    filter: drop-shadow(0 0 20px rgba(234, 179, 8, 0.85));
  }

  40% {
    transform: scale(1.12) translateY(-4px) rotate(5deg);
  }

  60% {
    transform: scale(1.25) translateY(-12px) rotate(-2deg);
    filter: drop-shadow(0 0 26px rgba(250, 204, 21, 1));
  }

  80% {
    transform: scale(1.08) translateY(-2px) rotate(2deg);
  }
}

/* 11. Cool & lunettes (3s) */
@keyframes waStickerCool3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  20% {
    transform: scale(1.16) rotate(-6deg) translateY(-6px);
  }

  40% {
    transform: scale(1.2) rotate(6deg) translateY(-8px);
  }

  60% {
    transform: scale(1.16) rotate(-4deg) translateY(-6px);
  }

  80% {
    transform: scale(1.06) rotate(3deg) translateY(-2px);
  }
}

/* 12. Pleurs & larmes qui coulent (3s) */
@keyframes waStickerCry3s {

  0%,
  100% {
    transform: scale(1) translateY(0);
  }

  15% {
    transform: scale(1.14, 0.88) translateY(6px);
  }

  30% {
    transform: scale(0.92, 1.14) translateY(-10px) rotate(-4deg);
  }

  45% {
    transform: scale(1.16, 0.9) translateY(4px) rotate(4deg);
  }

  60% {
    transform: scale(0.96, 1.08) translateY(-6px);
  }

  80% {
    transform: scale(1.04, 0.96) translateY(0);
  }
}

/* 13. Rage rouge & fumée (3s) */
@keyframes waStickerAngry3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4));
  }

  10% {
    transform: scale(1.2) translateX(-4px) rotate(-4deg);
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.9));
  }

  15% {
    transform: scale(1.22) translateX(4px) rotate(4deg);
  }

  20% {
    transform: scale(1.2) translateX(-4px) rotate(-4deg);
  }

  25% {
    transform: scale(1.22) translateX(4px) rotate(4deg);
  }

  40% {
    transform: scale(1.14) translateY(-8px);
  }

  60% {
    transform: scale(1.2) translateX(-3px) rotate(-3deg);
  }

  80% {
    transform: scale(1.08) rotate(0deg);
  }
}

/* 14. Party fête & confettis (3s) */
@keyframes waStickerParty3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  15% {
    transform: scale(1.2) rotate(-12deg) translateY(-12px);
  }

  30% {
    transform: scale(1.12) rotate(12deg) translateY(-8px);
  }

  45% {
    transform: scale(1.25) rotate(-10deg) translateY(-16px);
  }

  60% {
    transform: scale(1.14) rotate(8deg) translateY(-6px);
  }

  75% {
    transform: scale(1.2) rotate(-6deg) translateY(-10px);
  }
}

/* 15. Frisson de froid (3s) */
@keyframes waStickerCold3s {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
  }

  10% {
    transform: scale(1.15) translateX(-3px) rotate(-2deg);
  }

  15% {
    transform: scale(1.15) translateX(3px) rotate(2deg);
  }

  20% {
    transform: scale(1.15) translateX(-3px) rotate(-2deg);
  }

  25% {
    transform: scale(1.15) translateX(3px) rotate(2deg);
  }

  35% {
    transform: scale(1.05) translateY(4px);
  }

  50% {
    transform: scale(1.18) translateX(-3px) rotate(-3deg);
  }

  70% {
    transform: scale(1.1) translateX(2px) rotate(1deg);
  }
}

/* 16. Cerveau cosmique (3s) */
@keyframes waStickerBrain3s {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.4));
  }

  25% {
    transform: scale(1.24);
    filter: drop-shadow(0 0 24px rgba(192, 132, 252, 0.95));
  }

  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.6));
  }

  75% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 1));
  }
}

/* ==========================================================================
   Écran de Création de Sujet (Noir AMOLED Pur, Zéro Carte/Rectangle, Carré 1:1)
   ========================================================================== */
#create-topic-screen {
  background-color: #000000 !important;
}

#create-topic-screen .create-screen-header {
  background-color: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#create-topic-screen .create-screen-body {
  background-color: #000000 !important;
  padding: 16px 16px 48px 16px;
}

/* Carte de prévisualisation : 100% Carrée 1:1, zéro coin arrondi, aucun rectangle parasite */
.topic-preview-card-wrap {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.topic-preview-card {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 0px !important;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.topic-card-live-body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.topic-card-preview-text,
.feed-topic-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 750 !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
  letter-spacing: -0.3px !important;
  color: #ffffff;
  margin: 0;
  word-break: break-word;
  max-width: 100%;
}

/* Fonds thématiques carrés purs sans coin arrondi (Sujet, Sondage, Explorer, Profil) */
.theme-onyx {
  background: radial-gradient(circle at 25% 25%, #27272a 0%, #111113 60%, #050505 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 0px !important;
}

.theme-cosmos {
  background: linear-gradient(145deg, #1e3a8a 0%, #312e81 55%, #090d26 100%) !important;
  border: 1.5px solid rgba(99, 102, 241, 0.45) !important;
  border-radius: 0px !important;
}

.theme-crimson {
  background: linear-gradient(145deg, #9f1239 0%, #881337 55%, #2a0610 100%) !important;
  border: 1.5px solid rgba(244, 63, 94, 0.45) !important;
  border-radius: 0px !important;
}

.theme-emerald {
  background: linear-gradient(145deg, #047857 0%, #065f46 55%, #022c22 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
  border-radius: 0px !important;
}

.theme-cyan,
.theme-neon {
  background: linear-gradient(145deg, #0e7490 0%, #0369a1 55%, #041f2e 100%) !important;
  border: 1.5px solid rgba(6, 182, 212, 0.45) !important;
  border-radius: 0px !important;
}

.theme-violet {
  background: linear-gradient(145deg, #6b21a8 0%, #4c1d95 55%, #1a0633 100%) !important;
  border: 1.5px solid rgba(168, 85, 247, 0.45) !important;
  border-radius: 0px !important;
}

.theme-graphite {
  background: linear-gradient(145deg, #3f3f46 0%, #27272a 55%, #09090b 100%) !important;
  border: 1.5px solid rgba(161, 161, 170, 0.4) !important;
  border-radius: 0px !important;
}

/* Zone du Stylo : Fond noir pur sans carte ni rectangle */
.topic-pen-editor-section {
  margin-bottom: 24px;
}

.topic-pen-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pen-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pen-svg-icon {
  width: 15px;
  height: 15px;
  color: #38bdf8;
  flex-shrink: 0;
}

#create-topic-screen .char-counter-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 750;
  color: #71717a;
  background: transparent !important;
  border: none !important;
  padding: 0;
}

#create-topic-screen .topic-textarea-wrap {
  background: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  padding: 12px 14px;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#create-topic-screen .topic-textarea-wrap:focus-within {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15) !important;
}

.topic-pen-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  font-family: inherit;
  resize: none;
}

.topic-pen-textarea::placeholder {
  color: #52525b;
  font-size: 13.5px;
}

/* Nuancier de fond sur fond noir pur sans rectangle */
.topic-theme-selector-section {
  margin-bottom: 24px;
}

#create-topic-screen .topic-bg-swatches-row {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 0 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#create-topic-screen .topic-bg-swatches-row::-webkit-scrollbar {
  display: none;
}

#create-topic-screen .topic-swatch-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 0px !important;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

#create-topic-screen .topic-swatch-btn .swatch-circle {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#create-topic-screen .topic-swatch-btn.active {
  background: transparent !important;
  border: none !important;
}

#create-topic-screen .topic-swatch-btn.active .swatch-circle {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px #000000, 0 0 0 4px #38bdf8;
}

#create-topic-screen .topic-swatch-btn.active .swatch-name {
  color: #38bdf8;
  font-weight: 750;
}

.swatch-graphite {
  background: linear-gradient(135deg, #27272a, #09090b);
  border: 1px solid #71717a;
}

/* Section Organisateurs sur fond noir pur sans rectangle */
.topic-organizers-section {
  margin-bottom: 24px;
}

.organizers-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

#create-topic-screen .organizers-hint-tag {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  background: transparent !important;
  border: none !important;
}

.organizer-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

#create-topic-screen .organizer-input-box {
  flex: 1;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 0px !important;
  padding: 8px 0;
  transition: border-color 0.2s ease;
}

#create-topic-screen .organizer-input-box:focus-within {
  border-bottom-color: #38bdf8 !important;
}

.organizer-text-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
}

.organizer-text-input::placeholder {
  color: #52525b;
  font-size: 12.5px;
}

#create-topic-screen .organizer-add-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 0px !important;
  color: #38bdf8;
  padding: 8px 8px;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  outline: none;
  flex-shrink: 0;
}

#create-topic-screen .organizers-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#create-topic-screen .organizer-chip {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 0px !important;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
}

.organizer-chip-remove {
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.organizer-chip-remove:hover {
  color: #ef4444;
}

/* Format Normal vs Équipes & Durée sur fond noir pur sans rectangle */
#create-topic-screen .debate-mode-selector,
#create-topic-screen .debate-duration-selector {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

#create-topic-screen .mode-pill-btn,
#create-topic-screen .duration-pill-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0px !important;
  padding: 8px 12px;
  color: #71717a;
}

#create-topic-screen .mode-pill-btn.active,
#create-topic-screen .duration-pill-btn.active {
  border-bottom-color: #38bdf8 !important;
  color: #38bdf8 !important;
  background: transparent !important;
}

#create-topic-screen .teams-config-box {
  background: transparent !important;
  border: none !important;
  border-radius: 0px !important;
  padding: 12px 0;
}

#create-topic-screen .team-input-group {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 0px !important;
  padding: 6px 0;
}

#create-topic-screen .team-badge {
  background: transparent !important;
  border: none !important;
  padding: 0;
  font-size: 11px;
}

#create-topic-screen .duration-hint-badge {
  background: transparent !important;
  border: none !important;
  color: #71717a;
  padding: 0;
}

#create-topic-screen .bottom-publish-btn {
  border-radius: 28px !important;
}

/* Carte Sujet dans le fil d'actualité : 100% Carrée 1:1, zéro coin arrondi */
.feed-topic-card-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0px !important;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.feed-topic-body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}

.feed-topic-text {
  color: #ffffff;
  margin: 0;
  word-break: break-word;
}

.debate-author-tag {
  font-size: 9.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  margin-left: 2px;
}

/* ==========================================================================
   Page Profil AMOLED & Système de Silhouettes Vectorielles Ultra-Fluides
   ========================================================================== */
.profile-page-container {
  padding: 24px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: exploreFadeIn 0.22s ease-out;
}

.profile-header-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 440px;
  margin-bottom: 22px;
}

/* Grand Cercle Avatar Profil Permanent (Non modifiable, sans fond) */
.profile-avatar-wrapper {
  position: relative;
  width: 156px;
  height: 156px;
  margin-bottom: 18px;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cercle sur le contour de profil dont la couleur évolue selon les abonnés (sans animation automatique) */
.profile-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  border: 3.5px solid var(--avatar-tier-color, #ffffff);
  box-shadow: 0 0 16px var(--avatar-tier-glow, rgba(255, 255, 255, 0.9)), 0 0 28px var(--avatar-tier-soft, rgba(255, 255, 255, 0.45));
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  transform: none !important;
}

.profile-avatar-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000000;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  box-shadow: 0 6px 36px rgba(0, 0, 0, 0.95);
  z-index: 2;
  transform: none;
}

.profile-avatar-circle svg {
  transform: none !important;
}

.profile-avatar-wrapper .profile-avatar-circle {
  transition: box-shadow 0.25s ease;
}

/* Bouton d'édition supprimé (Profil permanent non modifiable) */
.profile-avatar-badge-btn {
  display: none !important;
}

.profile-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-name {
  font-size: 21px;
  font-weight: 750;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.profile-handle {
  font-size: 13px;
  font-weight: 550;
  color: #71717a;
  margin-top: 2px;
}

.profile-bio {
  font-size: 13px;
  color: #a1a1aa;
  max-width: 320px;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* Grille de statistiques AMOLED compacte */
.profile-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 295px;
  padding: 8px 12px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 20px;
}

.profile-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4px;
}

.profile-stat-val {
  font-size: 15px;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.1;
}

.profile-stat-lbl {
  font-size: 9.5px;
  color: #71717a;
  font-weight: 600;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.profile-stat-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Section Publications sous le profil (Cartes Verticales AMOLED sans emoji)
   ========================================================================== */
.profile-publications-section {
  width: 100%;
  max-width: 520px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
}

.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.profile-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-section-title {
  font-size: 16px;
  font-weight: 750;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
}

.profile-section-count {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  padding: 1px 7px;
}

.profile-section-badge {
  font-size: 11px;
  color: #71717a;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Grille 2 Colonnes pour les cartes verticales du profil */
.profile-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.profile-vertical-card {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: 16px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.13);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-vertical-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.profile-vertical-card:active {
  transform: scale(0.97);
}

/* Ligne supérieure de la carte du profil (Vues à gauche, Type à droite) */
.profile-card-top-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Badge Nombre de Vues (Œil SVG sans emoji) */
.profile-card-views-badge {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 2.5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.profile-card-views-badge svg {
  width: 12.5px;
  height: 12.5px;
  stroke: #38bdf8;
  flex-shrink: 0;
}

/* Tag de type de publication (SVG vectoriel sans emoji) */
.profile-card-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2.5px 6.5px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.profile-card-type-tag svg {
  width: 10.5px;
  height: 10.5px;
  stroke: currentColor;
  flex-shrink: 0;
}

.profile-card-type-tag.type-audio {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
}

.profile-card-type-tag.type-poll {
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.35);
}

.profile-card-type-tag.type-topic {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.35);
}

.profile-card-type-tag.type-image {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

/* Chip VS central pour équipes */
.profile-card-mid-teams {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-vs-chip {
  font-size: 9px;
  font-weight: 850;
  padding: 1px 7px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  letter-spacing: 0.8px;
}

.profile-card-mid-spacer {
  flex-grow: 1;
}

/* Arrière-plans vectoriels et médias */
.profile-card-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.profile-card-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.52) 50%, rgba(0, 0, 0, 0.22) 100%);
  z-index: 2;
  pointer-events: none;
}

.profile-card-audio-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0f172a 0%, #000000 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.profile-audio-radial {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  filter: blur(10px);
}

.profile-audio-mic {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000000;
  border: 1.5px solid rgba(59, 130, 246, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}

.profile-audio-mic svg {
  width: 18px;
  height: 18px;
}

.profile-card-poll-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1;
}

.profile-poll-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0.5;
}

.profile-poll-bar-fill {
  height: 5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.profile-card-topic-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #09090b;
  z-index: 1;
}

/* Bas de la carte du profil (Titre & Métriques) */
.profile-card-bottom-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.profile-card-question-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.profile-card-footer-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.profile-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  font-size: 10px;
  font-weight: 650;
  color: #cbd5e1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.profile-card-stat svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   Bouton 3 Points dans la barre supérieure (Seulement dans Profil)
   ========================================================================== */
.profile-top-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-top-menu-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.18s ease, transform 0.15s ease, color 0.18s ease;
  user-select: none;
  -webkit-user-select: none;
}

.profile-top-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.profile-top-menu-btn:active {
  transform: scale(0.9);
}

.profile-top-menu-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.profile-top-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 195px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95);
  z-index: 1050;
  animation: dropdownPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: #e4e4e7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.profile-dropdown-item:active {
  transform: scale(0.98);
}

.profile-dropdown-item svg {
  width: 15px;
  height: 15px;
  stroke: #a1a1aa;
  flex-shrink: 0;
}

.profile-dropdown-item:hover svg {
  stroke: #ffffff;
}

.profile-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 6px;
}

/* ==========================================================================
   Navigation Retour & Bouton Suivre dans le profil d'un autre utilisateur
   ========================================================================== */
.profile-top-nav-bar {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.profile-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 5px 12px;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
}

.profile-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.profile-back-btn svg {
  width: 14px;
  height: 14px;
  stroke: #a1a1aa;
}

.profile-follow-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 20px;
  background: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.6);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.profile-follow-header-btn svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
}

.profile-follow-header-btn.following {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  box-shadow: none;
}

.profile-follow-header-btn:hover {
  transform: scale(1.03);
}

.profile-follow-header-btn:active {
  transform: scale(0.96);
}

.clickable-profile-author {
  cursor: pointer;
  transition: color 0.15s ease;
}

.clickable-profile-author:hover {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-avatar {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.post-avatar:hover {
  border-color: #38bdf8;
  transform: scale(1.06);
}

/* ==========================================================================
   Page Dédiée Plein Écran pour les Profils Tiers (Noir AMOLED Pur #000000)
   ========================================================================== */
.fullscreen-user-profile-screen {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
}

.fullscreen-user-profile-screen.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-profile-screen-header {
  height: calc(54px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 14px;
  padding-right: 14px;
  background-color: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  z-index: 10;
}

.user-profile-header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.user-profile-header-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.user-profile-header-handle {
  font-size: 11px;
  color: #71717a;
  font-weight: 500;
  margin-top: 1px;
}

.user-profile-screen-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #000000;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

/* ==========================================================================
   Page d'Inscription / Connexion Plein Écran AMOLED Noir Pur (#000000)
   Étape 1 : Nom d'utilisateur -> Étape 2 : Email & Mot de passe (Supabase Auth)
   ========================================================================== */
.auth-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: #000000 !important;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-fullscreen.hidden {
  display: none !important;
}

.auth-fullscreen.fade-out {
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
}

.auth-step-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px) 24px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.auth-step-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  min-height: 0;
}

/* En-tête Brand Logo LoopTalk */
.auth-brand-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-wrap.compact {
  margin-bottom: 20px;
}

.auth-brand-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.auth-brand-title {
  font-size: 40px;
  font-weight: 850;
  letter-spacing: -1.4px;
  line-height: 1.05;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-brand-title .brand-loop {
  color: #ffffff;
  font-weight: 850;
}

.auth-brand-title .brand-oo {
  display: inline-block;
  letter-spacing: -5.5px;
  margin-right: -1px;
}

.auth-brand-title .brand-talk {
  color: #1e3a8a;
  /* Bleu très foncé */
  font-weight: 850;
  margin-left: 2px;
}

.auth-brand-tagline {
  font-size: 13.5px;
  color: #71717a;
  font-weight: 500;
  margin: 6px 0 0 0;
  letter-spacing: -0.1px;
}

/* Navigation Étape 2 (Bouton retour & pill) */
.auth-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.auth-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.auth-back-btn:active {
  opacity: 0.6;
}

.auth-back-btn svg {
  width: 18px;
  height: 18px;
}

.auth-step-pill {
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  background: #111113;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Carte / Formulaire épuré AMOLED */
.auth-form-card {
  display: flex;
  flex-direction: column;
}

.auth-step-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-step-dot {
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.25s ease;
}

.auth-step-dot.active {
  background: #3b82f6;
  width: 28px;
}

.auth-step-dot.done {
  background: #10b981;
}

.auth-step-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #71717a;
  margin-left: 2px;
}

.auth-form-heading {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin: 0 0 6px 0;
}

.auth-form-subheading {
  font-size: 13.5px;
  color: #a1a1aa;
  line-height: 1.4;
  margin: 0 0 22px 0;
}

/* Champs & Entrées */
.auth-field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.auth-field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #d4d4d8;
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}

.auth-input-box {
  display: flex;
  align-items: center;
  background-color: #09090b;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 0 16px;
  height: 52px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-box:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.auth-input-at {
  font-size: 17px;
  font-weight: 850;
  color: #3b82f6;
  margin-right: 6px;
  user-select: none;
  flex-shrink: 0;
  line-height: 1;
}

.auth-input-icon {
  width: 20px;
  height: 20px;
  color: #71717a;
  flex-shrink: 0;
  margin-right: 12px;
}

.auth-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 15.5px;
  font-family: inherit;
  font-weight: 500;
  min-width: 0;
}

.auth-input::placeholder {
  color: #52525b;
}

.auth-eye-btn {
  background: transparent;
  border: none;
  color: #71717a;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.auth-eye-btn:hover {
  color: #ffffff;
}

.auth-eye-btn svg {
  width: 20px;
  height: 20px;
}

.auth-field-hint {
  font-size: 11.5px;
  color: #71717a;
  margin-top: 5px;
  line-height: 1.35;
}

.auth-error-text {
  font-size: 12px;
  font-weight: 600;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}

.auth-error-text.show {
  display: block;
}

.auth-info-text {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
  margin-top: 6px;
  display: none;
}

.auth-info-text.show {
  display: block;
}

/* Liens de basculement de mode */
.auth-switch-mode {
  margin-top: 6px;
  display: flex;
  justify-content: center;
}

.auth-text-link {
  background: transparent;
  border: none;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.auth-text-link:active {
  opacity: 0.7;
}

/* Zone du Bouton d'action en bas */
.auth-footer-area {
  margin-top: 24px;
  flex-shrink: 0;
}

.auth-action-btn {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background-color: #ffffff;
  color: #000000;
  font-size: 16px;
  font-weight: 750;
  font-family: inherit;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

.auth-action-btn:hover {
  background-color: #f4f4f5;
}

.auth-action-btn:active {
  transform: scale(0.985);
  background-color: #e4e4e7;
}

.auth-btn-icon {
  width: 20px;
  height: 20px;
}

.auth-action-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.auth-action-btn.loading .auth-btn-label,
.auth-action-btn.loading span {
  display: none;
}

.auth-action-btn.loading .auth-spinner,
.auth-action-btn.loading #auth-submit-spinner {
  display: block !important;
}

.auth-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(0, 0, 0, 0.2);
  border-top-color: #000000;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}

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

/* ==========================================================================
   Page de Confirmation par Code OTP (100% AMOLED #000000 - Minuteur 1 minute)
   ========================================================================== */
.auth-otp-box {
  justify-content: center;
}

.auth-otp-input {
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: 6px !important;
  font-family: monospace, inherit !important;
  color: #ffffff !important;
}

.auth-otp-email-highlight {
  color: #ffffff;
  font-weight: 750;
  word-break: break-all;
}

.auth-otp-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 4px;
}

.auth-timer-label {
  font-size: 12.5px;
  color: #71717a;
  font-weight: 600;
}

.auth-timer-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #3b82f6;
  font-family: monospace, inherit;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.auth-timer-val.expired {
  color: #ef4444;
}

.auth-sublink {
  color: #71717a !important;
  font-size: 12px !important;
  text-decoration: none !important;
}

.auth-sublink:hover {
  color: #a1a1aa !important;
  text-decoration: underline !important;
}

.auth-text-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

/* ==========================================================================
   Page Complète Plein Écran Paramètres (100% AMOLED #000000 - Sans Rectangles)
   ========================================================================== */
.fullscreen-settings-screen {
  position: fixed;
  inset: 0;
  background-color: #000000 !important;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  overflow: hidden;
}

.fullscreen-settings-screen.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.settings-screen-header {
  height: calc(52px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 14px;
  padding-right: 14px;
  background-color: #000000;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.settings-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: opacity 0.15s ease;
}

.settings-back-btn:active {
  opacity: 0.5;
}

.settings-back-btn svg {
  width: 22px;
  height: 22px;
}

.settings-screen-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.3px;
}

.settings-header-spacer {
  width: 36px;
}

.settings-screen-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #000000;
  padding: 16px 20px calc(48px + env(safe-area-inset-bottom, 0px)) 20px;
}

.settings-content-wrap {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Groupes épurés sans rectangles ni cartes */
.settings-pure-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-pure-category {
  font-size: 12.5px;
  font-weight: 800;
  color: #3b82f6;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding-left: 2px;
}

/* Rangées pures transparentes sur fond 100% noir */
.settings-pure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 2px;
  background: transparent;
  border: none;
  outline: none;
  transition: opacity 0.15s ease;
}

.settings-pure-row.clickable {
  cursor: pointer;
}

.settings-pure-row.clickable:active {
  opacity: 0.5;
}

.settings-pure-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.settings-pure-label {
  font-size: 15px;
  font-weight: 650;
  color: #ffffff;
  letter-spacing: -0.1px;
}

.settings-pure-value {
  font-size: 12.5px;
  color: #71717a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.settings-pure-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.settings-pure-action-hint {
  font-size: 13px;
  font-weight: 600;
  color: #a1a1aa;
}

.settings-pure-chevron {
  width: 16px;
  height: 16px;
  stroke: #71717a;
}

.settings-pure-tag {
  font-size: 11px;
  font-weight: 700;
  color: #a1a1aa;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 999px;
}

.settings-pure-active-tag {
  font-size: 11px;
  font-weight: 700;
  color: #3b82f6;
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
}

.settings-pure-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.settings-pure-status-text {
  font-size: 12px;
  font-weight: 600;
  color: #10b981;
}

.settings-pure-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  width: 100%;
  margin: 2px 0;
}

/* Interrupteur Toggle Switch Pur */
.pure-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.pure-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pure-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #27272a;
  transition: 0.25s;
  border-radius: 24px;
}

.pure-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s;
  border-radius: 50%;
}

.pure-toggle-switch input:checked+.pure-toggle-slider {
  background-color: #3b82f6;
}

.pure-toggle-switch input:checked+.pure-toggle-slider:before {
  transform: translateX(20px);
}

/* Rangée Déconnexion épurée sans rectangle */
.logout-row .logout-label {
  color: #ef4444 !important;
  font-weight: 700;
}

.settings-logout-icon {
  width: 18px;
  height: 18px;
  stroke: #ef4444;
}

/* ==========================================================================
   Barre de confirmation J'aime : 2 très petites pilules noir pur AMOLED (#000000)
   Économie stricte de bande passante & choix définitif irréversible
   ========================================================================== */
.like-confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  margin: 6px 12px 10px 12px;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  animation: likeConfirmSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes likeConfirmSlideIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.like-confirm-prompt {
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: -0.1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 4px;
}

.like-confirm-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.like-pill-btn {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 3px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.15s ease;
  outline: none;
  line-height: 1.3;
}

.like-pill-btn:hover {
  background-color: #09090b;
}

.like-pill-btn:active {
  transform: scale(0.94);
}

.like-pill-btn.pill-yes {
  border-color: rgba(239, 68, 68, 0.6);
  color: #f87171;
}

.like-pill-btn.pill-yes:hover {
  background-color: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #ef4444;
}

.like-pill-btn.pill-no {
  border-color: rgba(255, 255, 255, 0.16);
  color: #a1a1aa;
}

.like-pill-btn.pill-no:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

/* ==========================================================================
   Modal de Dialogue Universel Centré Noir Pur AMOLED (Remplace 127.0.0.1:5500)
   ========================================================================== */
.amoled-dialog-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.amoled-dialog-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.amoled-dialog-card {
  width: 100%;
  max-width: 320px;
  background-color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 24px 20px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(255, 255, 255, 0.04);
  text-align: center;
  transform: scale(0.92) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.amoled-dialog-backdrop.show .amoled-dialog-card {
  transform: scale(1) translateY(0);
}

.amoled-dialog-card.danger-border {
  border-color: rgba(239, 68, 68, 0.4);
}

.amoled-dialog-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.amoled-dialog-icon-badge.danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.amoled-dialog-icon-badge svg {
  width: 22px;
  height: 22px;
}

.amoled-dialog-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.amoled-dialog-message {
  margin: 0 0 18px 0;
  font-size: 13.5px;
  color: #a1a1aa;
  line-height: 1.45;
  word-break: break-word;
}

.amoled-dialog-input-wrap {
  width: 100%;
  margin-bottom: 16px;
}

.amoled-dialog-input {
  width: 100%;
  background-color: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
  font-size: 13.5px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.amoled-dialog-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.amoled-dialog-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.amoled-dialog-btn {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: transform 0.12s ease, opacity 0.15s ease, background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.amoled-dialog-btn:active {
  transform: scale(0.96);
}

.btn-dialog-cancel {
  background-color: #121214;
  color: #d4d4d8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-dialog-cancel:hover {
  background-color: #18181b;
  color: #ffffff;
}

.btn-dialog-confirm {
  background-color: #ffffff;
  color: #000000;
  border: none;
  font-weight: 700;
}

.btn-dialog-confirm:hover {
  background-color: #f4f4f5;
}

.btn-dialog-confirm.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-dialog-confirm.btn-danger:hover {
  background-color: #dc2626;
}



/* ==========================================================================
   Mobile : barre de saisie des commentaires au-dessus du clavier virtuel
   ========================================================================== */
.fullscreen-debate-screen {
  bottom: var(--kb-offset, 0px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.keyboard-open .debate-input-bar {
  padding-bottom: 10px;
}

/* ==========================================================================
   Messages privés chiffrés (Envoi privé)
   ========================================================================== */
.cmt-menu-hidden {
  display: none !important;
}

.private-comment-item {
  border-left: 2px solid #8b5cf6;
  background: rgba(139, 92, 246, 0.07);
  border-radius: 10px;
  padding-left: 8px;
}

.private-msg-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  vertical-align: middle;
}

.cmt-menu-private {
  color: #a78bfa;
}

.cmt-menu-call {
  color: #34d399;
}

.cmt-menu-call:hover {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

/* ==========================================================================
   Barre de recherche de GIFs
   ========================================================================== */
.gif-search-wrap {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.gif-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: #71717a;
  pointer-events: none;
}

.gif-search-input {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  padding: 0 14px 0 34px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.gif-search-input:focus {
  border-color: #3b82f6;
}

.gif-search-input::placeholder {
  color: #71717a;
}

.gif-search-status {
  grid-column: 1 / -1;
  text-align: center;
  padding: 14px 8px;
  font-size: 12px;
  color: #71717a;
}

/* ==========================================================================
   Widget Flottant Appel Privé WebRTC AMOLED & Modal Appel Entrant
   ========================================================================== */
.looptalk-floating-call {
  position: fixed;
  bottom: 84px;
  right: 14px;
  width: 270px;
  height: 56px;
  box-sizing: border-box;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.95), 0 0 15px rgba(16, 185, 129, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 12px;
  z-index: 100050;
  touch-action: none;
  user-select: none;
  animation: callWidgetFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes callWidgetFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.call-widget-fadeout {
  opacity: 0 !important;
  transform: translateY(12px) scale(0.92) !important;
  transition: all 0.22s ease !important;
}

.call-drag-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: grab;
  padding-right: 6px;
}

.call-drag-area:active {
  cursor: grabbing;
}

.call-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f59e0b;
}

.call-pulse-dot.pulse-ringing {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulseRinging 1.5s infinite;
}

.call-pulse-dot.pulse-connected {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseConnected 1.8s infinite;
}

@keyframes pulseRinging {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes pulseConnected {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.call-info-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  line-height: 1.25;
}

.call-peer-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.call-status-timer {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  font-variant-numeric: tabular-nums;
}

.call-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.call-btn-circle {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  transition: all 0.15s ease;
  padding: 0;
}

.call-btn-circle svg {
  width: 15px;
  height: 15px;
}

.call-btn-circle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.call-btn-circle:active {
  transform: scale(0.92);
}

.call-btn-mic.is-muted {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.call-btn-speaker.is-loudspeaker {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.call-btn-hangup {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.call-btn-hangup:hover {
  background: #dc2626;
  color: #ffffff;
}

.call-btn-answer {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  animation: pulseAnswerBtn 1.25s infinite ease-in-out;
}

@keyframes pulseAnswerBtn {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.call-btn-answer:hover {
  background: #059669;
}

/* Styles pour les options du commentaire (Appel privé / En attente / Démarrer appel) */
.cmt-menu-call-ready {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

.cmt-menu-call-ready:hover {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #6ee7b7 !important;
}

.cmt-menu-call-pending {
  color: #fbbf24 !important;
  opacity: 0.85;
}

/* Bannière flottante d'autorisation d'appel privé (Confirmations) */
.looptalk-perm-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 420px;
  background: #000000;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.95), 0 0 18px rgba(16, 185, 129, 0.25);
  padding: 10px 14px;
  z-index: 100070;
  animation: slideDownBanner 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownBanner {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.perm-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.perm-banner-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.perm-banner-icon svg {
  width: 16px;
  height: 16px;
}

.perm-banner-text {
  font-size: 12px;
  color: #e4e4e7;
  flex: 1;
  line-height: 1.35;
}

.perm-banner-text strong {
  color: #34d399;
}

.perm-banner-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.perm-btn {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.12s ease;
}

.perm-btn:active {
  transform: scale(0.94);
}

.perm-btn-decline {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.perm-btn-accept {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}