/* ─── SEARCH INPUT ─── */
.search-bar {
  position: relative;
  margin: 20px 20px 12px;
}
.search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text3);
  pointer-events: none;
}
#search-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  padding: 11px 40px;
  outline: none;
  transition: border-color 0.15s;
}
#search-input::placeholder { color: var(--text3); }
#search-input:focus { border-color: var(--accent-dim); }

#search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--bg4);
  color: var(--text2);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
#search-clear.show { display: flex; }

/* ─── LUCKY BUTTON ─── */
.search-lucky-row {
  display: flex;
  justify-content: center;
  margin: 0 20px 16px;
}
#search-lucky { width: 100%; justify-content: center; }

/* ─── CATEGORY TABS ─── */
.search-tabs-row {
  display: flex;
  gap: 4px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.search-tabs-row::-webkit-scrollbar { display: none; }
.search-tab {
  padding: 10px 14px;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.search-tab.on { color: var(--text); border-bottom-color: var(--accent); }

.search-meta {
  padding: 14px 20px 4px;
  font-size: 11.5px;
  color: var(--text3);
}

/* ─── SEARCH RESULTS ─── */
.search-card {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.search-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.search-favicon { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }
.search-domain {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.search-card.visited .search-title { color: var(--text2); }
.search-desc {
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
