/* 筛选页 / 筛选组件（widget/vod_show_filter、widget/actor_show_filter 共用） */

.wy-show-filter-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.wy-filter-row { display: flex; align-items: center; gap: 0; padding: 10px 0; border-bottom: 1px solid var(--border); }
.wy-filter-row:last-child { border-bottom: none; }
.wy-filter-row--selected { background: var(--accent-light); margin: 0 -16px; padding: 10px 16px; border-bottom: 1px solid var(--accent-border); }
.wy-filter-label--selected { background: var(--accent-vivid); color: #1a1200; }

.wy-filter-selected-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }

.wy-filter-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 3px 10px;
  margin-right: 12px;
  min-width: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-chip);
  flex-shrink: 0;
}

.wy-filter-options { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }

.wy-filter-opt {
  font-size: 12.5px;
  color: var(--text-second);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}
.wy-filter-opt:hover { color: var(--accent); background: var(--accent-light); }
.wy-filter-opt.wy-active { color: #1a1200; background: var(--accent-vivid); font-weight: 700; }

/* ===== 已选（选取后的 sticky bar，卷过筛选区后显示） ===== */
.wy-ssb-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
}
.wy-ssb-inner.wy-ssb-visible { height: 42px; }
.wy-ssb-tags { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.wy-ssb-tags::-webkit-scrollbar { display: none; }
.wy-ssb-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.wy-ssb-tag { font-size: 12px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.wy-fst-empty { font-size: 12px; color: var(--text-faint); }

.wy-reset-filter-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.wy-reset-filter-btn:hover { background: var(--accent-vivid); color: #1a1200; border-color: var(--accent-vivid); }

/* ===== 结果标题列 ===== */
.wy-show-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
  flex-wrap: wrap;
  gap: 10px;
}
.wy-show-sort-tabs { display: flex; align-items: center; gap: 18px; }
.wy-show-sort-tab { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.wy-show-sort-tab:hover { color: var(--accent); }
.wy-show-sort-tab.wy-active { color: var(--text); position: relative; }
.wy-show-sort-tab.wy-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent-vivid);
}
.wy-show-total { font-size: 12.5px; color: var(--text-faint); }
.wy-show-total em { color: var(--accent); font-style: normal; font-weight: 700; }

/* ===== 列表 + result bar 容器（actor/show.html 用 order 讓 bar 視覺上在上方）===== */
.wy-show-list-wrap { display: flex; flex-direction: column; }
.wy-show-list-wrap .wy-show-result-bar { order: 1; }
.wy-show-list-wrap .wy-actor-grid { order: 2; }
.wy-show-list-wrap .wy-pagination { order: 3; }

/* ===== RWD ===== */
@media (max-width: 767px) {
  .wy-show-filter-wrap { padding: 0 12px; }
  .wy-filter-options { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .wy-filter-options::-webkit-scrollbar { display: none; }
  .wy-show-sort-tabs { gap: 14px; }
  .wy-show-sort-tab { font-size: 13px; }
}
