/* 实用功能样式：搜索历史 / 快捷键 / 播放页书签按钮
   v=20261103-util3 */

/* ---------- 搜索历史：与热门搜索同一套对齐，不再额外左右缩进 ---------- */
.site-header .site-search-history,
.site-search-history {
  padding: 0 0 10px;
  margin: 0 0 10px;
  border-bottom: 1px solid rgba(145, 190, 153, 0.12);
  box-sizing: border-box;
}

.site-header .site-search-history .site-hot-search-heading,
.site-search-history .site-hot-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  box-sizing: border-box;
}

.site-header .site-search-history .site-hot-search-list,
.site-search-history .site-hot-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.site-search-history-clear {
  border: 0;
  background: transparent;
  color: #8a9a90;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.2;
}

.site-search-history-clear:hover {
  color: #75d6a0;
  background: rgba(57, 185, 120, 0.1);
}

/* ---------- 播放页「加入书签」 ---------- */
.play-bookmark-btn {
  border-radius: 12px !important;
}

/* ---------- 快捷键说明弹层 ---------- */
.site-shortcut-help {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.site-shortcut-help[hidden] {
  display: none !important;
}

.site-shortcut-help-card {
  width: min(380px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(117, 214, 160, 0.22);
  background: linear-gradient(160deg, #152019, #0e1612);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 0 0 16px;
  color: #e8eee9;
}

.site-shortcut-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
}

.site-shortcut-help-head strong {
  font-size: 16px;
}

.site-shortcut-help-head button {
  border: 0;
  background: transparent;
  color: #8a9a90;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.site-shortcut-help-head button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.site-shortcut-help-card ul {
  list-style: none;
  margin: 0;
  padding: 4px 18px 8px;
}

.site-shortcut-help-card li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(145, 190, 153, 0.08);
  font-size: 14px;
}

.site-shortcut-help-card li:last-child {
  border-bottom: 0;
}

.site-shortcut-help-card kbd {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(117, 214, 160, 0.3);
  background: rgba(57, 185, 120, 0.12);
  color: #75d6a0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.site-shortcut-help-tip {
  margin: 8px 18px 0;
  font-size: 12px;
  color: #8a9a90;
  line-height: 1.6;
}


/* 最近搜索下拉：确保 hidden 状态不被主题样式覆盖 */
.site-hot-search-dropdown[hidden] { display: none !important; }
.site-search-history { display: block; width: 100%; }
.site-search-history-empty { display: inline-block; padding: 6px 2px; opacity: .72; }
.site-search-history .site-search-history-list { min-height: 24px; }
