/* ツイート/ポスト検索(x-posts-search)用スタイル。色・フォントは amc-site.css の変数を使う */
.tweet_search_container {
  max-width: 100%;
  margin: 0 auto;
}

.tweet_search_date_range {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 20px 0 12px;
  font-size: 13px;
  color: var(--amc-muted, #566175);
}

.tweet_search_date_range > span > span {
  font-family: var(--amc-mono, monospace);
  color: var(--amc-text, #1A2433);
}

.tweet_search_input_wrapper {
  position: relative;
  margin-bottom: 18px;
}

.tweet_search_input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 44px 12px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--amc-text, #1A2433);
  background: #FFFFFF;
  border: 1px solid var(--amc-border, #DDE3EC);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 35, 63, 0.05);
}

.tweet_search_input::placeholder {
  color: #8A94A6;
}

.tweet_search_input:focus {
  outline: none;
  border-color: var(--amc-link, #1B4F9C);
  box-shadow: 0 0 0 3px rgba(27, 79, 156, 0.18);
}

.tweet_search_clear_btn {
  display: none;
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8A94A6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.tweet_search_clear_btn:hover {
  color: var(--amc-text, #1A2433);
  background: var(--amc-bg, #F5F7FA);
}

.tweet_search_clear_btn:focus-visible {
  outline: 2px solid var(--amc-gold, #F0B43C);
  outline-offset: 1px;
}

.tweet_search_count {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--amc-muted, #566175);
}

.tweet_search_no_result,
.tweet_search_error {
  margin: 0;
  padding: 16px 0;
  color: var(--amc-muted, #566175);
}

.tweet_search_item {
  margin: 0 0 10px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid var(--amc-border, #DDE3EC);
  border-left: 3px solid var(--amc-gold, #F0B43C);
  border-radius: 8px;
}

.tweet_search_item_date {
  margin: 0 0 6px;
  font-family: var(--amc-mono, monospace);
  font-size: 13px;
  color: var(--amc-muted, #566175);
}

.tweet_search_item_date strong {
  font-weight: 500;
}

.tweet_search_item_text {
  margin: 0 0 8px;
  line-height: 1.75;
  white-space: normal;
  overflow-wrap: anywhere;
}

.tweet_search_item_text mark {
  padding: 0 2px;
  color: inherit;
  background: #FFE29A;
  border-radius: 3px;
}

.tweet_search_item_text a {
  word-break: break-all;
}

.tweet_search_item_link {
  margin: 0;
}

.tweet_search_item_link a {
  font-size: 13px;
  text-decoration: none;
}

.tweet_search_item_link a:hover {
  text-decoration: underline;
}

.tweet_search_item_link .bi-twitter-x {
  margin-right: 6px;
}

@media (max-width: 575.98px) {
  .tweet_search_item {
    padding: 12px 14px;
  }
  .tweet_search_date_range {
    flex-direction: column;
  }
}
