/* ==========================================================================
 * lulu 主题 · 搜索专页（对齐 k5u-mirror/pages-static/03-search_scope_video-long.html）
 * 源：SearchPage-ByQpeBSC.css + main 内 video-search-form* + compact-bar（页内自带，不改壳）
 * 仅页级样式；不改 tokens / shell / lulu-chrome。
 * ========================================================================== */

/* 页内变量回落：优先已有 --k-* / --site-* / --vv-*，缺则用源站值 */
.lulu-search {
  --site-page-max-width: var(--k-page-max, 1380px);
  --site-accent: var(--k-primary, #ff5d79);
  --site-accent-strong: var(--k-primary-strong, #e64166);
  --site-accent-soft: var(--k-accent-soft, rgb(255 93 121 / 14%));
  /* 略降饱和，贴近源站 submit */
  --site-accent-gradient: var(--k-accent-gradient, linear-gradient(135deg, #ff9a7a, #ff628f 58%, #a874f0));
  --site-glow-primary: var(--k-glow-primary, rgb(255 120 170 / 22%));
  --vv-color-background: var(--k-bg, #0f1118);
  --site-surface: var(--k-surface, #151823);
  --site-surface-muted: var(--k-tint, rgb(255 255 255 / 5%));
  --site-border: var(--k-border, rgb(255 255 255 / 10%));
  --vv-color-text: var(--k-text, #f7f7fb);
  --vv-color-muted: var(--k-text-muted, #9da2b3);
  --vv-radius-medium: var(--k-radius-lg, 18px);
  --vv-layout-page-wide: 1440px;
  --vv-layout-page-gutter: clamp(12px, 3vw, 28px);
  --site-bottom-nav-space: 0px;
  color: var(--vv-color-text);
  /* 空态自然文档流：勿 100dvh/1fr 撑出 HISTORY→footer 大空带 */
  min-height: 0;
  display: block;
  /* 顶区光晕仅暗色保留；浅色见 html.light 冷灰底 */
  background:
    radial-gradient(circle at 15% -10%, var(--site-glow-primary), transparent 28rem),
    var(--vv-color-background, transparent);
}

html.light .lulu-search {
  --site-surface: var(--k-surface, #fff);
  --site-surface-muted: var(--k-tint, rgb(24 28 42 / 5%));
  --site-border: var(--k-border, rgb(24 28 42 / 10%));
  --vv-color-text: var(--k-text, #1a1d28);
  --vv-color-muted: var(--k-text-muted, #6f7484);
  /* 贴近源站冷灰 rgb(245,246,250)，避免薰衣草粉空带 */
  --vv-color-background: #f5f6fa;
  --site-glow-primary: transparent;
  background: #f5f6fa;
}

/* 专页吃满 #app-main：去掉壳层 page-edge/顶垫；不强制 min-height 撑高 */
#app-main:has(> .lulu-search) {
  padding: 0 !important;
  width: 100%;
  max-width: none;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible;
  background: transparent;
}

/* 本页抵消壳层 .k-atmosphere 粉红径向（同 recommended；不改 tokens） */
html.light:has(.lulu-search) .k-atmosphere {
  background: #f5f6fa !important;
  background-image: none !important;
}
html.light:has(.lulu-search),
html.light:has(.lulu-search) body,
html.light:has(.lulu-search) #app-main {
  background-color: #f5f6fa !important;
  background-image: none !important;
}

/* ── 页内 compact header（对齐 site-header__compact-bar，不改 top_nav）── */
.lulu-search__header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--k-safe-top, env(safe-area-inset-top, 0px));
  background:
    radial-gradient(circle at 18% -40%, var(--site-glow-primary), transparent 16rem),
    color-mix(in srgb, var(--site-surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  /* 源站顶栏实测高 50；勿加 border-bottom 以免 +1px 把 HISTORY 整段下推 */
  border-bottom: 0;
}
html.light .lulu-search__header {
  background: color-mix(in srgb, #ffffff 96%, #f5f6fa);
}

.lulu-search__header-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-page-max-width);
  margin-right: auto;
  margin-left: auto;
  /* 源站 site-header__inner：--vv-layout-page-gutter clamp(16px, 4vw, 32px) */
  padding: 0 clamp(16px, 4vw, 32px);
}

.lulu-search .site-header__compact-bar {
  display: grid;
  min-height: 56px;
  align-items: center;
  grid-template-columns: 84px minmax(0, 1fr) 84px;
}

.lulu-search .site-header__compact-title {
  grid-row: 1;
  grid-column: 2;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--vv-color-text);
}

.lulu-search .site-header__compact-actions {
  display: flex;
  justify-self: end;
  gap: 6px;
  grid-row: 1;
  grid-column: 3;
}

.lulu-search .site-header__compact-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--vv-color-text);
  cursor: pointer;
  font-size: 19px;
  text-decoration: none;
}

.lulu-search .site-header__compact-button.is-back {
  justify-self: start;
  grid-row: 1;
  grid-column: 1;
}

.lulu-search .site-header__compact-button.is-back svg {
  width: 22px;
  height: 22px;
}

.lulu-search .site-header__compact-button:not(.is-back) svg {
  width: 20px;
  height: 20px;
}

.lulu-search .site-header__compact-button:hover {
  background: var(--site-accent-soft);
  color: var(--site-accent-strong);
}

.lulu-search .site-header__mobile-search {
  display: none;
  min-width: 0;
  grid-row: 1;
  grid-column: 2;
}

@media (max-width: 760px) {
  .lulu-search .site-header__compact-bar {
    min-height: 50px;
    grid-template-columns: 76px minmax(0, 1fr) 76px;
  }
  .lulu-search .site-header__compact-bar.has-mobile-search {
    min-height: 50px;
    padding: 5px 0;
    column-gap: 8px;
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .lulu-search .site-header__compact-title {
    font-size: 14px;
  }
  .lulu-search .site-header__compact-bar.has-mobile-search .site-header__compact-title,
  .lulu-search .site-header__compact-bar.has-mobile-search .site-header__compact-actions {
    display: none;
  }
  .lulu-search .site-header__compact-bar.has-mobile-search .site-header__mobile-search {
    display: flex;
  }
  .lulu-search .site-header__compact-button {
    width: 34px;
    height: 34px;
  }
  .lulu-search .site-header__compact-button.is-back {
    font-size: 28px;
  }
  .lulu-search .site-header__compact-button.is-back svg {
    width: 22px;
    height: 22px;
  }
}

/* ── vv-page-layout（页内）── */
.lulu-search .vv-page-layout.search-page {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--vv-page-layout-max-width, var(--vv-page-layout-size-max-width, var(--vv-layout-page-wide)));
  margin-right: auto;
  margin-left: auto;
  padding: var(--vv-page-layout-block-start) var(--vv-page-layout-gutter) var(--vv-page-layout-block-end);
  --vv-page-layout-max-width: var(--site-page-max-width);
  /* 空态：内容多高就多高，footer 紧跟 HISTORY（用户点名去掉大空带） */
  min-height: 0;
  min-width: 0;
}

/* ── SearchPage（去 data-v）── */
.search-page {
  --vv-page-layout-max-width: var(--site-page-max-width);
}
.search-page__intro {
  display: grid;
  justify-items: center;
  margin-bottom: 20px;
  gap: 3px;
  text-align: center;
}
.search-page__intro span {
  color: var(--site-accent-strong);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
}
.search-page__intro h1,
.search-page__intro p {
  margin: 0;
}
.search-page__intro h1 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--vv-color-text);
  font-weight: 750;
}
.search-page__intro p {
  color: var(--vv-color-muted);
  font-size: 13px;
}
.search-page__discovery {
  display: grid;
  width: min(100%, 680px);
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
  margin: 22px auto 0;
}
.search-page__section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--site-border);
  border-radius: var(--vv-radius-medium);
  background: var(--site-surface);
}
.search-page__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  gap: 12px;
}
.search-page__section-header div {
  display: grid;
  gap: 1px;
}
.search-page__section-header span {
  color: var(--site-accent-strong);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 13px;
}
.search-page__section-header h2 {
  margin: 0;
  color: var(--vv-color-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
}
.search-page__clear-history {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--vv-color-muted);
  cursor: pointer;
  font-size: 11px;
}
.search-page__history-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  gap: 8px;
  list-style: none;
}
.search-page__history-list li {
  display: inline-flex;
  overflow: hidden;
  max-width: 100%;
  min-height: 38px;
  align-items: stretch;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--site-surface-muted);
}
.search-page__history-keyword,
.search-page__history-remove {
  border: 0;
  background: transparent;
  color: var(--vv-color-text);
  cursor: pointer;
}
.search-page__history-keyword {
  overflow: hidden;
  max-width: min(260px, 52vw);
  padding: 0 4px 0 13px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-page__history-remove {
  display: grid;
  width: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  color: var(--vv-color-muted);
}
.search-page__history-remove svg {
  width: 15px;
  height: 15px;
}
.search-page__section-empty {
  display: grid;
  min-height: 84px;
  place-items: center;
  margin: 0;
  color: var(--vv-color-muted);
  font-size: 12px;
}
.search-page__clear-history:hover {
  background: var(--site-accent-soft);
  color: var(--site-accent-strong);
}
.search-page__history-remove:hover {
  background: transparent;
  color: var(--site-accent-strong);
}
.search-page__history-list li:hover {
  border-color: color-mix(in srgb, var(--site-accent) 32%, var(--site-border));
}
.search-page__clear-history:focus-visible,
.search-page__history-keyword:focus-visible,
.search-page__history-remove:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 2px;
}
.search-page__sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .search-page__intro,
  .video-search-form.search-page__form {
    display: none !important;
  }
  .lulu-search .vv-page-layout.search-page {
    /* 源站：clamp(14px, 4vw, 34px) → 390 约 15.6；勿压成 12 */
    --vv-page-layout-block-start: clamp(14px, 4vw, 34px);
    padding-top: var(--vv-page-layout-block-start);
  }
  .search-page__discovery {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
  }
  .search-page__section {
    padding: 14px;
  }
  .search-page__history-list li {
    min-height: 40px;
  }
}

/* ── video-search-form（去 data-v）── */
.video-search-form {
  display: flex;
  overflow: hidden;
  width: 100%;
  align-items: center;
  padding-left: 16px;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: var(--site-surface);
  box-shadow: 0 6px 18px #1814220a;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.video-search-form:focus-within {
  border-color: color-mix(in srgb, var(--site-accent) 62%, var(--site-border));
  box-shadow: 0 8px 22px #18142212;
}
.video-search-form--prominent {
  max-width: 680px;
  height: 50px;
  margin: 0 auto;
}
.video-search-form--compact {
  max-width: 760px;
  height: 44px;
}
.video-search-form--header {
  height: 38px;
  padding-left: 10px;
  box-shadow: 0 1px 4px #23192d06;
}
html.light .video-search-form--header {
  box-shadow: 0 1px 3px #23192d05;
}
.video-search-form > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--vv-color-muted);
}
.video-search-form input {
  min-width: 0;
  height: 100%;
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 12px;
  background: transparent;
  color: var(--vv-color-text);
  font: inherit;
}
.video-search-form input::-webkit-search-cancel-button {
  display: none;
  appearance: none;
}
.video-search-form__clear,
.video-search-form__submit {
  border: 0;
  cursor: pointer;
}
.video-search-form__clear[hidden],
.video-search-form__submit[hidden],
.search-page__clear-history[hidden],
.search-page__history-list[hidden],
.search-page__section-empty[hidden] {
  display: none !important;
}
.video-search-form__clear {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--vv-color-muted);
  display: grid;
  place-items: center;
  padding: 0;
}
.video-search-form__clear svg {
  width: 17px;
  height: 17px;
}
.video-search-form__clear:hover,
.video-search-form__clear:focus-visible {
  background: var(--site-accent-soft);
  color: var(--site-accent-strong);
}
.video-search-form__submit {
  align-self: stretch;
  min-width: 88px;
  padding: 0 20px;
  background: var(--site-accent-gradient);
  color: #fff;
  font-weight: 750;
}
.video-search-form__submit:disabled {
  cursor: default;
  opacity: .48;
}
.video-search-form--header input {
  padding: 0 8px;
  font-size: 13px;
}
.video-search-form--header .video-search-form__clear {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}
.video-search-form--header .video-search-form__submit {
  min-width: 58px;
  padding: 0 12px;
  font-size: 12px;
}
@media (max-width: 640px) {
  .video-search-form {
    height: 46px;
    padding-left: 13px;
  }
  .video-search-form__submit {
    min-width: 70px;
    padding: 0 15px;
  }
  .video-search-form--header {
    height: 38px;
    padding-left: 10px;
  }
  .video-search-form--header .video-search-form__submit {
    min-width: 58px;
    padding: 0 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-search-form {
    transition: none;
  }
}

/* ── rate / hot（限流态，与有词网格无关）── */
.search-page__rate {
  width: min(100%, 680px);
  margin: 0 auto 18px;
  padding: 16px;
  border: 1px solid var(--site-border);
  border-radius: var(--vv-radius-medium);
  background: var(--site-surface);
  text-align: center;
}
.search-page__rate h2 {
  margin: 0 0 6px;
  font-size: 16px;
}
.search-page__rate p {
  margin: 0 0 10px;
  color: var(--vv-color-muted);
  font-size: 13px;
}
.search-page__rate-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.search-page__rate-acts a,
.search-page__rate-acts button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--site-accent-soft);
  color: var(--site-accent-strong);
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

/* ── 有词：SearchResultsPage-FK-po7TJ + VideoList 网格卡（页内自带，不依赖 detail.css）── */
.search-results-page {
  --v3-search-card-min-width: 150px;
  --v3-search-novel-card-min-width: 118px;
  --vv-page-layout-max-width: var(--site-page-max-width);
  display: grid;
  gap: 18px;
}
.search-results-page__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.search-results-page__page-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--site-accent-soft);
  color: var(--site-accent-strong);
  font-size: 12px;
  text-decoration: none;
}
.search-results-page__page-status {
  color: var(--vv-color-muted);
  font-size: 12px;
}
.search-results-page__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.search-results-page__header > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.search-results-page__header span {
  color: var(--site-accent-strong);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
}
.search-results-page__header h1 {
  overflow: hidden;
  margin: 0;
  color: var(--vv-color-text);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-results-page__header small {
  flex: none;
  color: var(--vv-color-muted);
  font-size: 11px;
}
.search-results-page .vv-video-card {
  --vv-video-card-background: var(--site-surface);
}
.search-results-page__empty {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 48px 16px;
  text-align: center;
}
.search-results-page__empty-title {
  color: var(--vv-color-text);
  font-size: 15px;
  font-weight: 700;
}
.search-results-page__empty-desc {
  margin: 0;
  color: var(--vv-color-muted);
  font-size: 13px;
}

/* collection + video card（自 detail/VideoList 移植，供搜索页独立加载） */
.lulu-search .vv-collection-layout { width: 100%; min-width: 0; }
.lulu-search .vv-collection-layout--grid {
  display: grid;
  /* 写死 2/3/4/6 列，避开 auto-fill 的 5 列；与 per_page=24 整除 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--vv-collection-layout-gap, 10px);
  padding: var(--vv-collection-layout-padding, 0);
}

@media (min-width: 521px) {
  .lulu-search .vv-collection-layout--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 700px) {
  .lulu-search .vv-collection-layout--grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .lulu-search .vv-collection-layout--grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.lulu-search .vv-collection-layout__item { min-width: 0; }
.lulu-search .vv-video-list {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}
.lulu-search .vv-video-card {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--vv-video-card-radius, var(--vv-radius-medium));
  background: var(--vv-video-card-background, var(--site-surface));
  color: var(--vv-video-card-color, var(--vv-color-text));
  box-shadow: var(--vv-video-card-shadow, 0 1px 2px rgba(15, 23, 42, .08));
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  appearance: none;
  text-decoration: none;
}
.lulu-search .vv-video-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--site-accent) 45%, transparent);
  outline-offset: 3px;
}
.lulu-search .vv-video-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--vv-video-card-aspect-ratio, 1.7778);
  overflow: hidden;
  background: color-mix(in srgb, var(--vv-color-muted) 12%, transparent);
}
.lulu-search .vv-image {
  display: block;
  width: 100%;
  height: 100%;
}
.lulu-search .vv-image__element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lulu-search .vv-video-card__category {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 1;
  max-width: calc(100% - 20px);
  padding: 3px 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #0f172ab8;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lulu-search .vv-video-card__body {
  display: grid;
  gap: var(--vv-video-card-body-gap, 8px);
  min-width: 0;
  padding: var(--vv-video-card-padding, 12px);
}
.lulu-search .vv-video-card__title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: var(--vv-color-text);
  font-size: var(--vv-video-card-title-size, .95rem);
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--vv-video-card-title-lines, 2);
}
.lulu-search .vv-video-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--vv-color-muted);
  font-size: 12px;
  line-height: 1.4;
}
.lulu-search .vv-video-card__tags {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
.lulu-search .vv-video-card__tag {
  padding: 2px 6px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-accent) 12%, transparent);
  color: var(--site-accent-strong);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (hover: hover) {
  .lulu-search .vv-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lulu-search .vv-video-card { transition: none; }
}
@media (max-width: 760px) {
  .search-results-page__form { display: none; }
}
@media (min-width: 900px) {
  .search-results-page {
    --v3-search-card-min-width: 160px;
    --v3-search-novel-card-min-width: 142px;
  }
  .search-results-page .vv-video-card {
    --vv-video-card-title-size: .85rem;
  }
}
@media (min-width: 1200px) {
  .search-results-page {
    --v3-search-card-min-width: 170px;
    --v3-search-novel-card-min-width: 154px;
  }
}
@media (max-width: 640px) {
  .search-results-page { gap: 14px; }
  .search-results-page .vv-video-card {
    --vv-video-card-padding: 9px;
    --vv-video-card-title-size: .82rem;
    --vv-video-card-radius: 12px;
  }
  .search-results-page .vv-video-card__body { gap: 5px; }
  .search-results-page .vv-video-card__meta { font-size: .7rem; }
}
.search-page__hot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.search-page__hot a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--site-surface-muted);
  color: var(--vv-color-text);
  font-size: 12px;
  text-decoration: none;
}
.search-page__hot a:hover {
  background: var(--site-accent-soft);
  color: var(--site-accent-strong);
}

/* ── 弹窗：搜索页永不露像素（删槽 + 强藏壳层/注入假卡）── */
.lulu-search .vv-ad-slot[data-size-preset="popup"],
.lulu-search .vv-ad-slot[data-slot-code="弹窗广告"],
.lulu-search .lulu-ad-slot--popup,
.lulu-search .lulu-search__popup-card,
.lulu-search [aria-label="弹窗广告"],
body:has(.lulu-search) .vv-ad-slot[data-size-preset="popup"],
body:has(.lulu-search) .vv-ad-slot[data-slot-code="弹窗广告"],
body:has(.lulu-search) .lulu-ad-slot--popup,
body:has(.lulu-search) .lulu-search__popup-card,
body:has(.lulu-search) [aria-label="弹窗广告"],
body:has(.lulu-search) .k-popup-ad,
body:has(.lulu-search) [data-k-popup],
body:has(.lulu-search) .floating-ad-pair,
body:has(.lulu-search) .FloatingAdPair {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  position: fixed !important;
  left: -9999px !important;
}

/* ── 专页 site-footer + adult-content-warning（从 main 去 data-v 移植；不改壳）── */
.lulu-search .site-footer {
  /* 覆盖壳层 .site-footer { margin:28px 0 0 }；源站 footer 紧贴 main 底 → y≈640.8 */
  margin-top: 0;
  padding: clamp(30px, 4vw, 52px) var(--vv-layout-page-gutter, clamp(12px, 3vw, 28px));
  border-top: 1px solid var(--site-border);
  background: color-mix(in srgb, var(--vv-color-background, var(--site-surface)) 84%, var(--site-surface) 16%);
  color: var(--vv-color-muted);
  font-size: 12px;
}
.lulu-search .site-footer__inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}
.lulu-search .site-footer__identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 20px;
  border-bottom: 1px solid var(--site-border);
  gap: 16px 28px;
}
.lulu-search .site-footer__title {
  color: var(--vv-color-text);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: .01em;
}
.lulu-search .site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 16px;
  line-height: 1.5;
}
.lulu-search .site-footer__telegram {
  color: var(--site-accent, var(--vv-color-text));
  text-decoration: none;
  white-space: nowrap;
}
.lulu-search .site-footer__telegram:hover { text-decoration: underline; }
.lulu-search .site-footer__telegram:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.lulu-search .site-footer__adult-warning { margin-top: 20px; }

.lulu-search .adult-content-warning {
  display: grid;
  width: 100%;
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid var(--site-border);
  border-radius: 18px;
  background: var(--site-surface-muted);
  color: color-mix(in srgb, var(--vv-color-text) 78%, transparent);
  grid-template-columns: minmax(150px, .24fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 48px);
  font-size: clamp(12px, .9vw, 14px);
  font-weight: 500;
  line-height: 1.75;
  text-align: start;
  text-wrap: pretty;
}
.lulu-search .adult-content-warning__header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}
.lulu-search .adult-content-warning__age {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--site-accent-soft);
  color: var(--site-accent);
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.lulu-search .adult-content-warning__title,
.lulu-search .adult-content-warning__subtitle { display: block; }
.lulu-search .adult-content-warning__title {
  color: var(--vv-color-text);
  font-size: 15px;
  line-height: 1.35;
}
.lulu-search .adult-content-warning__subtitle {
  margin-top: 4px;
  color: var(--vv-color-muted);
  font-size: 11px;
  line-height: 1.55;
}
.lulu-search .adult-content-warning__content { max-width: 82ch; }
.lulu-search .adult-content-warning__content p { margin: 0; }
.lulu-search .adult-content-warning__content p + p {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--site-border);
}

@media (max-width: 760px) {
  .lulu-search .site-footer {
    /* 源站 @media max-760: padding-bottom calc(82px + safe-area) */
    padding: 24px 14px calc(82px + env(safe-area-inset-bottom));
  }
  .lulu-search .site-footer__identity {
    align-items: flex-start;
    padding-bottom: 16px;
    flex-direction: column;
    gap: 6px;
  }
  .lulu-search .site-footer__meta {
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .lulu-search .adult-content-warning {
    padding: 16px;
    border-radius: 16px;
    grid-template-columns: 1fr;
    gap: 14px;
    font-size: 12px;
    line-height: 1.7;
  }
  .lulu-search .adult-content-warning__age {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }
  .lulu-search .adult-content-warning__title { font-size: 14px; }
  .lulu-search .adult-content-warning__subtitle { margin-top: 2px; }
  .lulu-search .adult-content-warning__content p + p {
    margin-top: 9px;
    padding-top: 9px;
  }
}


/* ── 搜索页对齐源站 390：无底飘/弹窗浮层像素 ── */
body:has(.lulu-search) .k-bottom-ads,
body:has(.lulu-search) #bottom_ads,
body:has(.lulu-search) .lulu-ad-slot--popup,
body:has(.lulu-search) .k-ads-all,
body:has(.lulu-search) .vv-ad-slot[data-size-preset="popup"],
body:has(.lulu-search) .vv-ad-slot[data-slot-code="弹窗广告"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* 有词卡：无 tag 时不留空 meta；禁止旧「播放」行残留 */
.lulu-search .vv-video-card__meta:empty,
.lulu-search .vv-video-card__tags:empty {
  display: none !important;
}
.lulu-search .search-page__play,
.lulu-search .vv-video-card__play {
  display: none !important;
}
