.fts-host {
  position: relative;
}

.fts-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 2000;
  border: 1px solid #d8d8d8;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  border-radius: 1px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 18px 14px;
}

.fts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.fts-suggestions {
  border-bottom: 1px solid #e6e6e6;
  padding-bottom: 10px;
}

.fts-suggestions-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  margin-bottom: 10px;
}

.fts-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fts-suggestions li + li {
  margin-top: 6px;
}

.fts-suggestions a {
  color: #2a9fd6;
  text-decoration: none;
  font-weight: 600;
}

.fts-suggestions a:hover {
  text-decoration: underline;
}

.fts-main {
  min-width: 0;
}

.fts-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1d1d1d;
}

.fts-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.fts-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: #1d1d1d;
  border: 1px solid #d7d7d7;
  border-radius: 1px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fts-item img {
  width: 48px;
  height: 48px;
  border-radius: 1px;
  object-fit: cover;
}

.fts-item:hover,
.fts-item.is-active {
  border-color: #2a9fd6;
  box-shadow: 0 8px 18px rgba(42, 159, 214, 0.15);
}

.fts-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.fts-mark {
  background: none;
  color: #2a9fd6;
  font-weight: 700;
}

.fts-footer {
  margin-top: 14px;
}

.fts-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 1px;
  background: #2a9fd6;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
}

.fts-all:hover {
  background: #1f86b7;
}

.fts-empty {
  padding: 12px 0;
  color: #6b6b6b;
  font-weight: 600;
}

.fts-search-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.fts-search-empty {
  padding: 12px 0;
  color: #6b6b6b;
  font-weight: 600;
}

.fts-meta {
  margin-bottom: 14px;
  color: #1d1d1d;
  font-size: 14px;
}

.fts-meta-count {
  font-weight: 700;
  margin-bottom: 6px;
}

.fts-meta-suggestions a {
  color: #2a9fd6;
  text-decoration: none;
  font-weight: 600;
}

.fts-meta-suggestions a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .fts-dropdown {
    padding: 12px;
  }

  .fts-item {
    grid-template-columns: 42px 1fr;
    padding: 10px 12px;
  }

  .fts-title {
    font-size: 13px;
  }
}
