/* ═══════════════════════════════════════════
   ZONA GEMELOS 🎭 — GIF Button & Picker
   ═══════════════════════════════════════════ */
#gif-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0;
}
#gif-btn:hover { color: #fff; background: rgba(138,94,255,0.1); border-color: rgba(138,94,255,0.15); }
#gif-btn:active { transform: scale(0.9); }
#gif-btn.active { background: rgba(138,94,255,0.2); color: var(--accent-light); border-color: rgba(138,94,255,0.25); }

/* ─── GIF PICKER — Panel flotante minimalista ─── */
#gif-picker {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 60px;
  left: 8px;
  right: 8px;
  z-index: 50;
  max-height: 340px;
  background: rgba(6,6,12,0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6), 0 8px 32px rgba(0,0,0,0.3);
  animation: gifSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes gifSlideUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
#gif-picker.open { display: flex; }
#gif-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  flex-shrink: 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
}
#gif-search {
  flex: 1;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: all 0.2s;
}
#gif-search:focus { border-color: rgba(138,94,255,0.3); background: rgba(255,255,255,0.06); }
#gif-search::placeholder { color: rgba(255,255,255,0.15); }
#gif-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  transition: all 0.2s;
}
#gif-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
#gif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 4px;
  flex-shrink: 0;
}
#gif-trend-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
}
#gif-count {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}
#gif-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 12px 12px;
  overflow-y: auto;
  min-height: 0;
}
#gif-grid::-webkit-scrollbar { width: 3px; }
#gif-grid::-webkit-scrollbar-track { background: transparent; }
#gif-grid::-webkit-scrollbar-thumb { background: rgba(138,94,255,0.2); border-radius: 3px; }
.gif-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.02);
  border: 0.5px solid rgba(255,255,255,0.03);
  transition: all 0.15s ease;
}
.gif-item:hover { transform: scale(1.04); border-color: rgba(138,94,255,0.15); }
.gif-item:active { transform: scale(0.95); }
.gif-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#gif-loading {
  padding: 30px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
}
.gif-loader-spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(138,94,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
