﻿/* ================================================
   视频聚合系统 - 全新设计
   三主题：dark(暗) / warm(暖) / light(亮)
   2026-04-17
   ================================================ */

/* ══════════════════════════════
   1. 主题变量
   ══════════════════════════════ */
:root,
[data-theme="dark"] {
  --primary:         #00c853;
  --primary-hover:   #00e676;
  --primary-bg:      rgba(0,200,83,0.12);
  --primary-border:  rgba(0,200,83,0.35);

  --bg-base:         #0a0a0c;
  --bg-surface:      #111116;
  --bg-card:         #18181f;
  --bg-card-hover:   #1e1e28;
  --bg-overlay:      rgba(0,0,0,0.85);
  --bg-mask:         rgba(0,0,0,0.5);

  --text-primary:    #e8e8ec;
  --text-secondary:  #8e8e9a;
  --text-muted:      #55555f;
  --text-accent:     #00c853;

  --border:          #2a2a35;
  --border-light:     #383845;

  --shadow-card:      0 4px 20px rgba(0,0,0,0.5);
  --shadow-header:    0 1px 0 rgba(255,255,255,0.06);
  --shadow-dropdown:  0 8px 32px rgba(0,0,0,0.6);

  --radius-sm:        6px;
  --radius-md:        10px;
  --radius-lg:        16px;
  --radius-xl:        24px;

  --header-h:         60px;
  --max-w:            1400px;
}

[data-theme="warm"] {
  --primary:         #ff7043;
  --primary-hover:   #ff8a65;
  --primary-bg:      rgba(255,112,67,0.12);
  --primary-border:  rgba(255,112,67,0.35);

  --bg-base:         #1c1208;
  --bg-surface:      #241810;
  --bg-card:         #2d1f14;
  --bg-card-hover:   #3a2820;
  --bg-overlay:      rgba(0,0,0,0.88);
  --bg-mask:         rgba(0,0,0,0.55);

  --text-primary:    #f5e6d0;
  --text-secondary:  #a88a70;
  --text-muted:      #6b5545;
  --text-accent:     #ff7043;

  --border:          #4a3525;
  --border-light:     #5e4535;

  --shadow-card:      0 4px 20px rgba(0,0,0,0.6);
  --shadow-header:    0 1px 0 rgba(255,255,255,0.04);
  --shadow-dropdown:  0 8px 32px rgba(0,0,0,0.7);

  --radius-sm:        6px;
  --radius-md:        10px;
  --radius-lg:        16px;
  --radius-xl:        24px;

  --header-h:         60px;
  --max-w:            1400px;
}

[data-theme="light"] {
  --primary:         #e53935;
  --primary-hover:   #ef5350;
  --primary-bg:      rgba(229,57,53,0.1);
  --primary-border:  rgba(229,57,53,0.3);

  --bg-base:         #f4f4f7;
  --bg-surface:      #ffffff;
  --bg-card:         #ffffff;
  --bg-card-hover:   #f8f8fc;
  --bg-overlay:      rgba(255,255,255,0.95);
  --bg-mask:         rgba(0,0,0,0.25);

  --text-primary:    #1a1a22;
  --text-secondary:  #66667a;
  --text-muted:      #aaaabc;
  --text-accent:     #e53935;

  --border:          #e4e4ec;
  --border-light:     #d0d0e0;

  --shadow-card:      0 2px 12px rgba(0,0,0,0.08);
  --shadow-header:    0 1px 0 rgba(0,0,0,0.06);
  --shadow-dropdown:  0 8px 32px rgba(0,0,0,0.12);

  --radius-sm:        6px;
  --radius-md:        10px;
  --radius-lg:        16px;
  --radius-xl:        24px;

  --header-h:         60px;
  --max-w:            1400px;
}

/* ══════════════════════════════
   2. 基础重置
   ══════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { font-size:16px; scroll-behavior:smooth; }
body {
  font-family: 'PingFang SC','Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration:none; }
img { display:block; max-width:100%; }
button { cursor:pointer; border:none; background:none; font:inherit; color:inherit; }

/* 滚动条 */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ══════════════════════════════
   3. 顶部导航
   ══════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-header);
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.logo:hover .logo-icon { background: var(--primary-hover); transform: scale(1.05); }
.logo-text {
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

/* 导航 */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
  font-weight: 600;
}

/* 搜索 */
.header-search {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.search-input {
  flex: 1;
  padding: 8px 14px;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  padding: 8px 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.search-btn:hover { color: var(--primary); }

/* 右侧区 */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 站点切换 */
.site-switcher { position: relative; }
.site-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s;
  white-space: nowrap;
}
.site-btn:hover { border-color: var(--border-light); color: var(--text-primary); }
.site-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }

.site-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 200;
}
.site-dropdown.open { opacity:1; visibility:visible; transform:translateY(0); }
.site-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.site-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.site-item.active { color: var(--primary); }
.site-item.active .site-dot { color: var(--primary); }
.site-dot { font-size: 6px; color: var(--text-muted); flex-shrink:0; }

/* 主题切换 */
.theme-switcher { position: relative; }
.theme-btn {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 15px;
  transition: all 0.2s;
}
.theme-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 200;
}
.theme-dropdown.open { opacity:1; visibility:visible; transform:translateY(0); }
.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s;
  text-align: left;
}
.theme-option:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.theme-option i { width: 16px; text-align: center; }

/* 用户区 */
.user-zone {}
.login-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s;
}
.login-link:hover { background: var(--primary-hover); }

.user-menu-wrap { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 40px;
  transition: all 0.2s;
}
.user-btn:hover { border-color: var(--border-light); }
.user-avatar {
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.user-name { font-size: 13px; color: var(--text-primary); }
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 200;
}
.user-dropdown.open { opacity:1; visibility:visible; transform:translateY(0); }
.user-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.user-drop-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }

/* ══════════════════════════════
   4. 分类标签栏
   ══════════════════════════════ */
.category-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.category-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  align-items: center;
}

/* 移动端折叠 */
.collapse-toggle {
  display: none;
}
.collapse-body {
  overflow: hidden;
}
.mobile-collapsible.collapsed .collapse-toggle i {
  transform: rotate(-90deg);
}
.collapse-toggle i {
  transition: transform 0.3s;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 12px;
  scroll-snap-align: start;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.18s;
  white-space: nowrap;
}
.cat-tag:hover { color: var(--text-primary); background: var(--bg-card); }
.cat-tag.active {
  color: var(--primary);
  background: var(--primary-bg);
  border-color: var(--primary-border);
  font-weight: 600;
}

/* ══════════════════════════════
   5. 主内容区
   ══════════════════════════════ */
.main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px 48px;
  min-height: calc(100vh - var(--header-h) - 44px - 60px);
}

/* 搜索结果栏 */
.search-bar { margin-bottom: 20px; }
.search-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.search-tip { font-size: 14px; color: var(--text-secondary); }
.search-tip strong { color: var(--primary); }
.clear-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
}
.clear-filter-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════
   6. 筛选区
   ══════════════════════════════ */
.filter-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.3s, border-color 0.3s;
}

.filter-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.filter-label {
  width: 42px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 4px;
  letter-spacing: 0.5px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all 0.18s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active {
  background: var(--primary-bg);
  border-color: var(--primary-border);
  color: var(--primary);
  font-weight: 600;
}

/* ══════════════════════════════
   7. 列表头部
   ══════════════════════════════ */
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.list-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.list-count { font-size: 14px; color: var(--text-muted); font-weight: 400; margin-left: 6px; }

/* ══════════════════════════════
   8. 视频网格
   ══════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* 视频卡片 */
.video-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  animation: fadeInUp 0.4s ease both;
}
.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px var(--primary-border);
}
.video-card.hovered {}

.card-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-surface);
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.video-card:hover .card-poster img { transform: scale(1.08); }

/* 覆盖层 */
.card-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-mask);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.card-overlay i {
  font-size: 40px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  transform: scale(0.8);
  transition: transform 0.25s;
}
.video-card:hover .card-overlay { opacity: 1; }
.video-card:hover .card-overlay i { transform: scale(1); }

/* 角标 */
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 1;
}
.card-badge.new { background: var(--primary); color: #fff; }
.card-badge.ep {
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(4px);
}

/* 评分 */
.card-score {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: rgba(0,0,0,0.75);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #ffd54f;
  backdrop-filter: blur(4px);
}
.card-score i { font-size: 10px; }

/* 卡片内容 */
.card-body { padding: 10px 12px 12px; }
.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.video-card:hover .card-title { color: var(--primary); }
.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.dot { color: var(--border-light); }

/* ══════════════════════════════
   9. 分页
   ══════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 0 10px;
  flex-wrap: wrap;
}

.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.18s;
  text-decoration: none;
  user-select: none;
}
.page-btn:hover:not(:disabled),
.page-num:hover:not(.current) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-num.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: default;
}
.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  color: var(--text-muted);
  font-size: 14px;
}

/* 跳转 */
.page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 0 8px;
  border-left: 1px solid var(--border);
}
.page-jump span { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.page-jump-input {
  width: 52px;
  height: 34px;
  padding: 0 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.page-jump-input::-webkit-outer-spin-button,
.page-jump-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.page-jump-input:focus { border-color: var(--primary); }
.page-jump-btn {
  height: 34px;
  padding: 0 14px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s;
}
.page-jump-btn:hover { background: var(--primary-hover); }
.page-count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 4px;
}

/* 无限滚动加载（统一） */
.infinite-load-more {
  text-align: center;
  margin: 14px 0 20px;
  padding-bottom: 10px;
}
.infinite-status {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 0;
}
.infinite-status i.fa-spinner { margin-right: 6px; color: var(--primary); }
.infinite-end { color: var(--text-muted); }
.infinite-end i { margin-right: 6px; color: #22c55e; }

/* ══════════════════════════════
   10. 空状态
   ══════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}
.empty-icon {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0.5;
}
.empty-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.empty-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.empty-btn {
  padding: 10px 28px;
  background: var(--primary);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.empty-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* ══════════════════════════════
   11. 页脚
   ══════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 20px 24px;
  transition: background 0.3s;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.footer-text { font-size: 13px; color: var(--text-muted); }

/* ══════════════════════════════
   12. 动画
   ══════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════
   13. 响应式
   ══════════════════════════════ */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
}

/* 隐藏搜索源提示（移动端不需要） */
.search-source-hint { display: none; }

@media (max-width: 768px) {
  .header-inner { gap: 8px; padding: 0 12px; }
  .logo { flex-shrink: 0; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; }
  .logo-text { font-size: 15px; }
  .header-search {
    max-width: none;
    flex: 1;
    min-width: 0;
    border-radius: var(--radius-sm);
  }
  .search-input { font-size: 14px; padding: 7px 12px; }
  .search-btn { padding: 7px 10px; }
  .search-source-hint { display: none; }
  .site-btn { padding: 6px 10px; font-size: 12px; }
  .site-name { max-width: 56px; }
  .theme-btn { padding: 7px 8px; }
  .user-name { display: none; }
  .header-right { gap: 6px; }
  .header-nav { display: none; }
  .main { padding: 16px 12px 40px; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
  .filter-section { padding: 12px 16px; }
  .filter-row { gap: 10px; overflow-x: auto; }
  .filter-label { width: 36px; font-size: 12px; flex-shrink: 0; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; }
  .page-jump { display: none; }
  .page-count { display: none; }
  .category-bar-inner {
    padding: 10px 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cat-tag { padding: 4px 10px; font-size: 12px; flex-shrink: 0; }
  .collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .collapse-toggle i { font-size: 12px; color: var(--text-muted); }
  .collapse-body {
    overflow: hidden;
    max-height: 999px;
    transition: max-height 0.25s ease;
  }
  .mobile-collapsible.collapsed .collapse-body { max-height: 0; }
}

@media (max-width: 480px) {
  .logo-text { display: none; }
  .logo-icon { width: 32px; height: 32px; }
  .header-inner { padding: 0 8px; gap: 6px; }
  .site-btn { font-size: 11px; padding: 5px 8px; }
  .search-input { padding: 6px 10px; font-size: 13px; }
  .video-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .card-body { padding: 6px 8px 8px; }
  .card-title { font-size: 12px; }
  .page-btn, .page-num { min-width: 30px; height: 30px; font-size: 12px; }
}
