/* RedFeed — busca rápida de creators na barra */
.rf-header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.rf-header-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-rf-theme="light"] .rf-header-search-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #14141c;
}

.rf-creator-search-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147482060;
  display: none;
  pointer-events: none;
}

.rf-creator-search-sheet.on {
  display: block;
  pointer-events: auto;
}

.rf-creator-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.rf-creator-search-sheet.on .rf-creator-search-backdrop {
  opacity: 1;
}

.rf-creator-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(88dvh, 680px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #18181f 0%, #0c0c12 100%);
  border-radius: 26px 26px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.5);
  transform: translateY(105%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.rf-creator-search-sheet.on .rf-creator-search-panel {
  transform: translateY(0);
}

html[data-rf-theme="light"] .rf-creator-search-panel {
  background: linear-gradient(180deg, #fff 0%, #f3f4f7 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

.rf-creator-search-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  margin: 10px auto 8px;
  flex-shrink: 0;
}

html[data-rf-theme="light"] .rf-creator-search-handle {
  background: rgba(0, 0, 0, 0.12);
}

.rf-creator-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}

.rf-creator-search-head h2 {
  margin: 0;
  font-family: var(--rf-title, "Space Grotesk", sans-serif);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.rf-creator-search-close {
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  font-size: 1.05rem;
}

html[data-rf-theme="light"] .rf-creator-search-close {
  background: rgba(0, 0, 0, 0.06);
}

.rf-creator-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 14px 12px;
  padding: 0 14px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

html[data-rf-theme="light"] .rf-creator-search-field {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.rf-creator-search-field i {
  opacity: 0.65;
  font-size: 0.92rem;
}

.rf-creator-search-field input {
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  min-width: 0;
}

.rf-creator-search-field input::placeholder {
  opacity: 0.55;
  font-weight: 600;
}

.rf-creator-search-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 10px 8px;
  -webkit-overflow-scrolling: touch;
}

.rf-creator-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 16px;
  transition: background 0.15s ease;
}

.rf-creator-search-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

html[data-rf-theme="light"] .rf-creator-search-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.rf-creator-search-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.rf-creator-search-link img,
.rf-creator-search-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.rf-creator-search-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rf-creator-search-meta strong {
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rf-creator-search-meta span {
  font-size: 0.76rem;
  opacity: 0.65;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rf-creator-search-follow {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.rf-creator-search-follow:hover {
  background: rgba(255, 255, 255, 0.14);
}

.rf-creator-search-follow.is-following {
  background: transparent;
  opacity: 0.82;
}

html[data-rf-theme="light"] .rf-creator-search-follow {
  background: #14141c;
  color: #fff;
  border-color: transparent;
}

html[data-rf-theme="light"] .rf-creator-search-follow.is-following {
  background: rgba(0, 0, 0, 0.06);
  color: #14141c;
  border-color: rgba(0, 0, 0, 0.1);
}

.rf-creator-search-follow:active {
  transform: scale(0.96);
}

.rf-creator-search-follow.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.rf-creator-search-empty,
.rf-creator-search-loading {
  padding: 28px 16px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0.68;
}

body.rf-creator-search-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 760px) {
  .rf-creator-search-sheet.on {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
  }

  .rf-creator-search-panel {
    position: relative;
    width: min(460px, 100%);
    border-radius: 22px;
    max-height: min(78dvh, 620px);
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
  }

  .rf-creator-search-sheet.on .rf-creator-search-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .rf-creator-search-handle {
    display: none;
  }
}
