/* ==========================================================================
   夸克影院主题 kuakeba-cn
   暗黑影院风格：纯黑背景 / #dc2626 红色强调 / Geist 字体 / 胶囊按钮
   迁移自 aipan-thinkphp 视觉语言
   ========================================================================== */

@import url('fonts/fonts.css');

/* ---------- 全局变量：强制覆盖浅色与深色两套配色 ---------- */
html:root,
html[data-uc-scheme="light"]:root,
html[data-uc-scheme="dark"]:root {
  color-scheme: dark !important;

  --bg: #000000 !important;
  --bg-mid: #0b0c0e !important;
  --surface: #111214 !important;
  --surface-2: #191b1e !important;
  --surface-3: #23262b !important;
  --glass: rgba(0, 0, 0, .88) !important;
  --card: #111214 !important;
  --card-solid: #111214 !important;
  --chip: #191b1e !important;
  --panel: #111214 !important;

  --text: #ffffff !important;
  --text-soft: #e5e7eb !important;
  --muted: #9ca3af !important;
  --muted-2: #6b7280 !important;

  --line: rgba(255, 255, 255, .10) !important;
  --stroke: rgba(255, 255, 255, .10) !important;
  --stroke-strong: rgba(255, 255, 255, .18) !important;

  --accent: #dc2626 !important;
  --accent-hover: #ef4444 !important;
  --accent-ink: #ffffff !important;
  --accent-soft: rgba(220, 38, 38, .14) !important;
  --accent-deep: #ef4444 !important;
  --brand: #dc2626 !important;
  --brand-ink: #ffffff !important;
  --brand-soft: rgba(220, 38, 38, .14) !important;
  --brand-deep: #ef4444 !important;

  --star: #facc15 !important;
  --shadow: rgba(0, 0, 0, .55) !important;
  --overlay: rgba(0, 0, 0, .72) !important;
  --cover: linear-gradient(160deg, #191b1e, #000000) !important;
  --cover-ink: #ffffff !important;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .55) !important;
  --card-shadow-hover: 0 2px 4px rgba(0, 0, 0, .45), 0 14px 34px rgba(0, 0, 0, .6) !important;

  --radius: 12px !important;
  --radius-sm: 10px !important;

  --font: 'Geist', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  --font-sans: var(--font) !important;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

/* ---------- 基础 ---------- */
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(220, 38, 38, .35) !important; }

a { color: inherit; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #23262b; border-radius: 999px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: #3a3f47; }

/* ---------- 顶栏导航（影院渐变玻璃） ---------- */
.main-bar {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .92), rgba(0, 0, 0, .55)) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid transparent !important;
  transition: background .3s ease, border-color .3s ease;
}
.main-bar.is-scrolled,
body[data-bar-scrolled] .main-bar {
  background: rgba(0, 0, 0, .92) !important;
  border-bottom-color: var(--line) !important;
}

/* ---------- 按钮（aipan 胶囊风格） ---------- */
.btn {
  border-radius: 999px !important;
  font-weight: 700 !important;
  transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease !important;
}
.btn-primary,
.btn.btn-primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(220, 38, 38, .35);
}
.btn-outline,
.btn-light {
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid var(--stroke) !important;
  color: #fff !important;
}
.btn-outline:hover,
.btn-light:hover {
  background: rgba(255, 255, 255, .16) !important;
  color: #fff !important;
}

/* ---------- 卡片（影院海报卡悬停动效） ---------- */
.card,
.uc-card,
[class*="card-"] {
  transition: transform .3s ease, box-shadow .3s ease !important;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover) !important;
}

/* ---------- 表单控件 ---------- */
.form-control,
.form-select,
.form-check-input:not(.form-check-input),
input[type="text"],
input[type="search"],
textarea {
  background-color: var(--surface-2) !important;
  border-color: var(--stroke) !important;
  color: var(--text) !important;
}
.form-control:focus,
.form-select:focus,
textarea:focus {
  background-color: var(--surface-3) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .18) !important;
  color: var(--text) !important;
}

/* ---------- 强调色元素 ---------- */
.text-primary { color: var(--accent) !important; }
.bg-primary { background-color: var(--accent) !important; }
.badge.bg-primary,
.badge.text-bg-primary { background-color: var(--accent) !important; color: #fff !important; }

.link-primary { color: var(--accent) !important; }
.link-primary:hover { color: var(--accent-hover) !important; }

/* 分页 / 标签激活态统一红色 */
.pagination .page-item.active .page-link {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.page-link {
  background-color: var(--surface) !important;
  border-color: var(--stroke) !important;
  color: var(--muted) !important;
}
.page-link:hover {
  background: var(--surface-3) !important;
  color: #fff !important;
}

/* 进度条 */
.progress { background: var(--surface-3) !important; }
.progress-bar { background: var(--accent) !important; }

/* ---------- 徽章 / 星级 ---------- */
[data-star]::before,
.star,
.rating-star { color: var(--star) !important; }

/* ---------- 页脚 ---------- */
.site-foot,
footer {
  border-top: 1px solid var(--line) !important;
  background: #000 !important;
}

/* ---------- 模态 / 弹层 ---------- */
.modal-content,
.uc-modal-panel,
.uc-auth-panel {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--stroke) !important;
}

/* ---------- 移动端底部导航 ---------- */
.site-tabbar {
  background: rgba(0, 0, 0, .92) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .5) !important;
}

/* ---------- 浮动按钮 ---------- */
.site-float-btn,
.back-top {
  background: var(--chip) !important;
  color: var(--text) !important;
  border-color: var(--stroke-strong) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5) !important;
}
.site-float-btn:hover,
.back-top:hover {
  background: var(--surface-3) !important;
  color: var(--accent) !important;
}

/* ---------- 图片占位背景（海报加载前） ---------- */
img { background-color: var(--surface-2); }

/* ---------- 打字机等代码块 ---------- */
code, kbd, pre, samp {
  font-family: var(--font-mono) !important;
}
kbd {
  background: var(--chip) !important;
  color: var(--muted) !important;
  border-color: var(--stroke-strong) !important;
  box-shadow: none !important;
}

/* ==========================================================================
   aipan.me 复刻布局：顶部导航 + 全宽内容（隐藏左侧边栏）
   ========================================================================== */
.sidebar { display: none !important; }
.main {
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 品牌名红色（aipan 爱盼红字）：隐藏左侧栏后顶栏品牌必须常驻显示 */
.bar-left,
.bar-brand,
.sidebar-brand { display: flex !important; }
.bar-brand .logo-text,
.site-foot-brand .logo-text {
  color: var(--accent) !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
}
.bar-brand .logo-text:hover { color: var(--accent-hover) !important; }
.bar-brand .bar-ver { display: none !important; }

/* 顶部导航链接：灰字 → 白字，激活红色下划线 */
.kb-nav-link {
  font-weight: 500 !important;
  letter-spacing: .02em;
  position: relative;
}
.kb-nav-link.on { color: #fff !important; }
.kb-nav-link.on::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

/* ==========================================================================
   首页 Hero 轮播（aipan 全幅海报 + 渐变遮罩 + 白色胶囊按钮）
   ========================================================================== */
.kb-hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  overflow: hidden;
  background: #050505;
  margin: 0 0 8px;
}
.kb-slides,
.kb-slide { position: absolute; inset: 0; }
.kb-slide {
  opacity: 0;
  transition: opacity .7s ease-in-out;
  z-index: 0;
}
.kb-slide.is-on { opacity: 1; z-index: 1; }
.kb-slide-bg { position: absolute; inset: 0; }
.kb-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.kb-slide-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 34%, rgba(0, 0, 0, .05) 68%, rgba(0, 0, 0, .25) 100%);
}
/* 底部渐变收尾（aipan h-24/h-32） */
.kb-slide-mask::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: clamp(80px, 12vw, 128px);
  background: linear-gradient(to top, #000, transparent);
}
/* 桌面端额外加左右渐变遮罩（aipan from-black/60 via-black/25 to-transparent） */
@media (min-width: 769px) {
  .kb-slide-mask {
    background:
      linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 34%, rgba(0, 0, 0, .05) 68%, rgba(0, 0, 0, .25) 100%),
      linear-gradient(to right, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .25) 45%, transparent 100%);
  }
}
.kb-slide-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: 720px;
  padding: 0 clamp(16px, 4vw, 64px) clamp(56px, 9vw, 96px);
}
.kb-slide-title {
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .65);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-slide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.kb-slide-cat {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
}
.kb-slide-views { color: #e5e7eb; }
.kb-slide-views i { color: var(--accent-hover); margin-right: 4px; }
.kb-slide-desc {
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.kb-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 34px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  transition: all .3s ease;
  box-shadow: 0 6px 24px rgba(255, 255, 255, .08);
}
.kb-slide-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}
.kb-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: all .3s ease;
}
.kb-hero-banner:hover .kb-slide-arrow { opacity: 1; }
.kb-slide-arrow:hover { background: rgba(0, 0, 0, .75); transform: translateY(-50%) scale(1.1); }
.kb-slide-arrow.is-prev { left: 18px; }
.kb-slide-arrow.is-next { right: 18px; }
.kb-slide-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.kb-slide-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}
.kb-slide-dot.is-on { width: 30px; background: #fff; }
.kb-slide-dot:hover { background: rgba(255, 255, 255, .75); }

/* ==========================================================================
   首页海报网格（aipan 全部影片）
   ========================================================================== */
.kb-grid-sec { padding: 18px 4px 40px; }
.kb-sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 6px 2px 18px;
}
.kb-sec-title {
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0;
}
.kb-sec-total { color: var(--muted); font-size: 13px; }
.kb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 18px;
  align-items: stretch;
}
.kb-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
}
.kb-card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.kb-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.kb-card:hover .kb-card-cover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
}
.kb-card:hover .kb-card-cover img { transform: scale(1.05); }
.kb-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kb-card-fallback span {
  font-size: 52px;
  font-weight: 800;
  color: rgba(255, 255, 255, .9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.kb-card-fallback.tone-1 { background: linear-gradient(160deg, #7f1d1d, #111214); }
.kb-card-fallback.tone-2 { background: linear-gradient(160deg, #312e81, #111214); }
.kb-card-fallback.tone-3 { background: linear-gradient(160deg, #134e4a, #111214); }
.kb-card-fallback.tone-4 { background: linear-gradient(160deg, #713f12, #111214); }
.kb-card-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.kb-card-flag.is-essence { background: #b45309; }

/* 评分条（源站风格：信息区底部全宽胶囊，星标 + 评分 + 白色加粗分数） */
.kb-card-score-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 500;
}
.kb-card-score-btn i { font-size: 12px; color: #facc15; }
.kb-score-label { color: var(--muted); }
.kb-score-num { color: #fff; font-weight: 700; letter-spacing: .02em; }

/* 电影海报质感（参考《八仙：瞒天过海》海报：暗角渐晕 + 暖金光效 + 底部渐隐） */
.kb-card-flag,
.kb-card-score { z-index: 2; }
.kb-card-cover::after,
.kb-detail-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(130% 92% at 50% 40%, rgba(255, 216, 152, .10) 0%, rgba(255, 168, 74, .05) 30%, rgba(0, 0, 0, .26) 66%, rgba(0, 0, 0, .58) 100%),
    linear-gradient(to top, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .08) 30%, transparent 55%);
}
/* 悬停时暖光增强，呼应海报主体发光的氛围 */
.kb-card:hover .kb-card-cover::after {
  background:
    radial-gradient(130% 92% at 50% 40%, rgba(255, 220, 160, .16) 0%, rgba(255, 176, 86, .08) 30%, rgba(0, 0, 0, .22) 66%, rgba(0, 0, 0, .54) 100%),
    linear-gradient(to top, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .08) 30%, transparent 55%);
}

.kb-card-body {
  padding: 10px 2px 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.kb-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 4px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.kb-card:hover .kb-card-title { color: var(--accent-hover); }
.kb-card-alias {
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.4;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-card-tags {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-card-tags span { color: var(--muted); }

/* 内容页：Hero 元信息标签 */
.kb-hero-rate {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #facc15 !important;
  font-weight: 700;
}
.kb-hero-rate i { font-size: 13px; }
.kb-hero-tag {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--stroke);
  color: var(--muted) !important;
  font-size: 12px;
}

/* 内容页：资源下载面板（aipan 风格） */
.kb-dl {
  margin: 28px 0 8px;
  padding: 22px 24px;
  background: rgba(18, 18, 18, .45) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--stroke) !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.kb-dl-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}
.kb-dl-bar {
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  flex: 0 0 auto;
}
.kb-dl-list { display: flex; flex-direction: column; gap: 10px; }
.kb-dl-list[hidden] { display: none !important; }
.kb-dl-name i { font-size: 14px; }

/* 相关推荐（海报网格） */
.kb-rel { margin-top: 26px; }
.kb-rel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.kb-rel-head i { color: var(--accent); font-size: 19px; }
.kb-rel-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px 14px;
}
.kb-rel-card { display: block; text-decoration: none; min-width: 0; }
.kb-rel-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.kb-rel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.kb-rel-card:hover .kb-rel-cover img { transform: scale(1.06); }
.kb-rel-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cover);
  color: var(--muted-2);
  font-size: 30px;
  font-weight: 700;
}
.kb-rel-title {
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-rel-rate {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--star);
}
.kb-rel-rate.is-none { color: var(--muted-2); font-weight: 400; }

/* 侧栏作者近期列表：序号前缀 */
.aside-author-recent .aside-item { display: flex; align-items: baseline; gap: 8px; }
.aside-author-recent .aside-item > span:last-child { flex: 1 1 auto; min-width: 0; }
.kb-recent-num {
  flex: 0 0 auto;
  min-width: 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
@media (max-width: 1200px) { .kb-rel-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .kb-rel-grid { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; } }
.kb-dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 12px !important;
  transition: background .2s ease, border-color .2s ease;
}
.kb-dl-row:hover {
  background: rgba(255, 255, 255, .08) !important;
  border-color: var(--stroke-strong) !important;
}
.kb-dl-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; flex: 1 1 auto; }
.kb-dl-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  flex: 0 0 auto;
}
.kb-dl-name.is-quark { color: #6ea2ff; background: rgba(61, 126, 255, .1); border-color: rgba(61, 126, 255, .2); }
.kb-dl-name.is-baidu { color: #7db4ff; background: rgba(41, 98, 255, .12); border-color: rgba(41, 98, 255, .22); }
.kb-dl-name.is-aliyun { color: #ffa668; background: rgba(255, 106, 0, .12); border-color: rgba(255, 106, 0, .22); }
.kb-dl-name.is-xunlei { color: #6ec6ff; background: rgba(20, 148, 255, .12); border-color: rgba(20, 148, 255, .22); }
.kb-dl-name.is-other { color: var(--muted); background: var(--chip); border-color: var(--stroke); }
.kb-dl-pwd {
  font-size: 12px;
  color: #86efac;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .22);
  flex: 0 0 auto;
}
.kb-dl-pwd b { font-family: var(--font-mono); letter-spacing: .06em; }
.kb-dl-meta { min-width: 0; flex: 1 1 180px; }
.kb-dl-name2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kb-dl-url {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}
.kb-dl-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 20px;
  border-radius: 10px;
  background: rgba(220, 38, 38, .16) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(220, 38, 38, .25);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.kb-dl-btn:hover {
  background: var(--accent) !important;
  color: #fff !important;
}
.kb-dl-btn.is-lock {
  background: var(--surface-3) !important;
  color: var(--muted) !important;
  border: 1px solid var(--stroke) !important;
  cursor: pointer;
  font: inherit;
}
.kb-dl-btn.is-lock:hover {
  background: var(--accent-soft) !important;
  color: #fca5a5 !important;
  border-color: rgba(220, 38, 38, .3) !important;
}
.kb-dl-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted-2);
  margin: 14px 0 0;
}
.kb-dl-tip i { font-size: 14px; color: var(--muted-2); }

/* 空状态 */
.kb-empty {
  padding: 90px 0;
  text-align: center;
  color: var(--muted-2);
}
.kb-empty i { font-size: 54px; display: block; margin-bottom: 14px; opacity: .6; }
.kb-empty p { margin: 0; font-size: 15px; }

/* 分页 */
.kb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.kb-pager-num,
.kb-pager-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 14px;
  transition: all .2s ease;
}
.kb-pager-num:hover,
.kb-pager-btn:hover { background: var(--surface-3); color: #fff; }
.kb-pager-num.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   文章页 Hero（aipan 影片详情：模糊背景 + 海报 + 标题信息）
   ========================================================================== */
/* 文章页详情（aipan 双栏：左海报 + 右信息） */
.detail-head.kb-detail {
  position: relative;
  border-radius: 14px;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-bottom: 8px;
}
.kb-detail-top {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 3.5vw, 44px);
}
.kb-detail-poster {
  flex: 0 0 auto;
  width: clamp(200px, 24vw, 340px);
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .7);
  position: sticky;
  top: 84px;
}
.kb-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.kb-detail-poster:hover img { transform: scale(1.04); }
.kb-detail-main { flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.kb-detail-main > h1 {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 16px;
}
.kb-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.kb-detail-tag {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--accent-soft) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(220, 38, 38, .22);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.kb-detail-tag:hover {
  background: rgba(220, 38, 38, .32) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.kb-detail-main .detail-author { display: none; }
.plaza-aside .mod-toolbar-slot {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}
.plaza-aside .mod-toolbar {
  flex-wrap: wrap;
  gap: 8px;
}
.detail-head.kb-detail.is-noimg .kb-detail-top { display: block; }
.kb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: #d1d5db;
  margin-bottom: 16px;
}
.kb-hero-meta a { color: #fff; }
.kb-hero-cat a {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.kb-hero-edit { text-decoration: underline; text-underline-offset: 3px; }
.kb-hero-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* 有海报的影片详情：右栏内容流铺开（aipan 风格，无大卡片壳） */
.detail-head.kb-detail:not(.is-noimg) {
  margin-bottom: 40px;
}
.detail-head.kb-detail:not(.is-noimg) .detail-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.detail-head.kb-detail:not(.is-noimg) .detail-body {
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  margin: 0 0 26px !important;
  font-size: 14px;
  line-height: 1.8;
  color: #d1d5db;
}
.detail-head.kb-detail:not(.is-noimg) .detail-body p { margin: 0 0 8px; }
.detail-head.kb-detail:not(.is-noimg) .detail-body p:last-child { margin-bottom: 0; }

/* 元信息胶囊（评分黄 / 中性白 / 分类红） */
.kb-hero-meta > span,
.kb-hero-meta > .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .12);
  color: #e5e7eb !important;
}
.kb-hero-rate {
  background: rgba(234, 179, 8, .18) !important;
  border-color: rgba(234, 179, 8, .28) !important;
  color: #facc15 !important;
}
.kb-hero-rate i { font-size: 14px; }
.kb-hero-meta .kb-hero-cat a {
  padding: 0;
  background: transparent;
}
.kb-hero-meta > .kb-hero-cat {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}
.kb-hero-meta > .kb-hero-cat a { color: #fff; }
/* 年份（蓝）/ 地区（中性带图标）胶囊 */
.kb-hero-year {
  background: rgba(59, 130, 246, .16) !important;
  border-color: rgba(59, 130, 246, .3) !important;
  color: #93c5fd !important;
}
.kb-hero-region i { font-size: 14px; color: var(--muted); }
/* meta 行内标签（软红胶囊，并入顶行统一显示） */
.kb-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--accent-soft) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(220, 38, 38, .22);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.kb-hero-tag:hover {
  background: rgba(220, 38, 38, .32) !important;
  color: #fff !important;
}
/* 语言行 */
.kb-hero-langs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #d1d5db !important;
}
.kb-hero-langs i { font-size: 14px; color: var(--muted); }
/* 导演 / 主演行 */
.kb-credit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
}
.kb-credit-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.kb-credit-label i { font-size: 15px; }
.kb-credit-names {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: #e5e7eb;
}
.kb-credit-name { white-space: nowrap; }
a.kb-credit-name {
  color: #e5e7eb;
  text-decoration: none;
  transition: color .2s ease;
}
a.kb-credit-name:hover { color: var(--accent); }

/* 简介卡（主演行下方） */
.kb-intro {
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

/* 剧照网格 */
.kb-stills { margin: 0 0 28px; }
.kb-stills-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}
.kb-stills-title i { color: #60a5fa; font-size: 18px; }
.kb-stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kb-still {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--stroke);
  transition: opacity .2s ease, transform .2s ease;
}
.kb-still:hover { opacity: .85; transform: translateY(-2px); }
.kb-still img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .kb-stills-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* 下载面板 tab 与操作区 */
.kb-dl-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  margin-bottom: 16px;
}
.kb-dl-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.kb-dl-tab.on {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.kb-dl-tab b {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(220, 38, 38, .18);
  color: #fca5a5;
}
.kb-dl-ok {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  color: #86efac;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .22);
  flex: 0 0 auto;
}
.kb-dl-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.kb-dl-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--stroke);
  color: #d1d5db;
  cursor: pointer;
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}
.kb-dl-copy:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.kb-dl-copy.is-copied { background: rgba(34, 197, 94, .16); border-color: rgba(34, 197, 94, .3); color: #86efac; }
.kb-dl-empty {
  padding: 26px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
  margin: 0;
}
.kb-dl-tip { justify-content: center; }
.kb-dl-tip a { color: #fca5a5; text-decoration: underline; text-underline-offset: 3px; }
.kb-dl-tip a:hover { color: #fff; }

/* 响应式 */
@media (max-width: 768px) {
  .kb-hero-banner { aspect-ratio: 3 / 4; border-radius: 0; }
  .kb-slide-body { padding-bottom: 46px; }
  .kb-slide-desc { display: none; }
  .kb-slide-btn { padding: 10px 26px; font-size: 14px; }
  .kb-slide-arrow { display: none; }
  .kb-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 10px; }
  .kb-card-fallback span { font-size: 34px; }
  .kb-detail-top { flex-direction: column; align-items: center; }
  .kb-detail-poster { width: min(62vw, 240px); }
  .kb-detail-main { width: 100%; padding-top: 0; }
}

/* ==========================================================================
   全屏自适应：内容区去 max-width 限制、最小 padding、网格弹性伸缩
   ========================================================================== */
.main-bar-inner,
.content,
.site-foot-inner,
.plaza-inner {
  width: 100% !important;
  max-width: 100% !important;
}
.main-scroll {
  padding: 8px clamp(8px, 2vw, 24px) 24px !important;
}
.kb-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px 12px !important;
}
.kb-hero-banner {
  aspect-ratio: 3 / 4 !important;
}
@media (min-width: 769px) {
  .kb-hero-banner { aspect-ratio: 12 / 5 !important; }
  .content .kb-grid,
  .kb-home .kb-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (min-width: 1024px) {
  .content .kb-grid,
  .kb-home .kb-grid { grid-template-columns: repeat(5, 1fr) !important; }
}
@media (min-width: 1200px) {
  .content .kb-grid,
  .kb-home .kb-grid { grid-template-columns: repeat(6, 1fr) !important; }
  .kb-hero-poster { width: 130px; }
}
@media (min-width: 1920px) {
  .content .kb-grid,
  .kb-home .kb-grid { grid-template-columns: repeat(7, 1fr) !important; }
}
@media (min-width: 2400px) {
  .content .kb-grid,
  .kb-home .kb-grid { grid-template-columns: repeat(8, 1fr) !important; }
}

/* ==========================================================================
   页脚（aipan 风格：免责声明 + 底部链接 + 回到顶部）
   ========================================================================== */
.kb-foot {
  border-top: 1px solid rgba(255, 255, 255, .08) !important;
  background: linear-gradient(to bottom, #000, #0a0a0a) !important;
  padding: 0 !important;
}
.kb-foot-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}
/* 免责声明 */
.kb-foot-disclaimer { padding: 48px 0 8px; }
.kb-foot-dis-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kb-foot-dis-title i { color: #eab923; font-size: 20px; }
.kb-foot-dis-body p {
  font-size: 14px;
  line-height: 1.8;
  color: #9ca3af;
  margin: 0 0 12px;
}
.kb-foot-dis-body p:last-child { margin-bottom: 0; }
.kb-foot-hl { color: #fff; font-weight: 500; }
.kb-foot-dis-note { font-size: 12px !important; color: #6b7280 !important; margin-top: 16px !important; }

/* 分割线 */
.kb-foot-divider {
  height: 1px;
  background: rgba(255, 255, 255, .06);
  margin: 32px 0;
}

/* 底部栏 */
.kb-foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}
.kb-foot-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
}
.kb-foot-sep { color: #2a2a2a; }
.kb-foot-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.kb-foot-links a,
.kb-foot-links button {
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  transition: color .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.kb-foot-links a:hover,
.kb-foot-links button:hover { color: #d1d5db; }

/* 底部子链接 */
.kb-foot-sublinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 16px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .04);
  font-size: 12px;
}
.kb-foot-sublinks a {
  color: #4b5563;
  transition: color .2s ease;
}
.kb-foot-sublinks a:hover { color: #9ca3af; }
.kb-foot-beian {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 12px;
}
.kb-foot-beian a { color: inherit; text-decoration: none; }
.kb-foot-beian a:hover { color: #d1d5db; }

/* 求资源页 */
.kb-requests-page { padding: 28px 18px 56px; }
.kb-req-wrap { width: min(100%, 820px); margin: 0 auto; }
.kb-req-top { display: flex; align-items: center; justify-content: center; margin-bottom: 18px; text-align: center; }
.kb-req-title { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; }
.kb-req-title i { color: #dc2626; font-size: 24px; }
.kb-req-title h1 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.kb-req-card { background: rgba(17, 17, 17, .92); border: 1px solid rgba(255, 255, 255, .10); border-radius: 8px; box-shadow: 0 18px 45px rgba(0, 0, 0, .22); }
.kb-req-form-card { padding: 22px; margin-bottom: 18px; }
.kb-req-card-head { margin-bottom: 16px; }
.kb-req-card-head h2 { margin: 0 0 8px; color: #fff; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.kb-req-card-head p { margin: 0; color: #9ca3af; font-size: 14px; line-height: 1.7; }
.kb-req-form { display: flex; flex-direction: column; gap: 12px; }
.kb-req-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.kb-req-input, .kb-req-textarea { width: 100%; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #f9fafb; border-radius: 8px; outline: none; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.kb-req-input { height: 46px; padding: 0 14px; font-size: 15px; }
.kb-req-textarea { min-height: 104px; resize: vertical; padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.kb-req-input::placeholder, .kb-req-textarea::placeholder { color: #6b7280; }
.kb-req-input:focus, .kb-req-textarea:focus { border-color: rgba(220, 38, 38, .72); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgba(220, 38, 38, .16); }
.kb-req-submit { height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: none; border-radius: 8px; background: #dc2626; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s ease, opacity .2s ease; white-space: nowrap; }
.kb-req-submit:hover { background: #ef4444; }
.kb-req-submit:disabled { opacity: .65; cursor: wait; }
.kb-req-tip { display: inline-flex; align-items: center; gap: 6px; color: #6b7280; font-size: 13px; }
.kb-req-tip i { color: #16a34a; }
.kb-req-list-card { overflow: hidden; }
.kb-req-tabs { display: flex; align-items: center; gap: 8px; padding: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.kb-req-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; color: #9ca3af; background: rgba(255, 255, 255, .04); font-size: 14px; transition: color .2s ease, background .2s ease; }
.kb-req-tab em { min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #d1d5db; font-size: 12px; font-style: normal; }
.kb-req-tab:hover, .kb-req-tab.is-on { color: #fff; background: rgba(220, 38, 38, .18); }
.kb-req-tab.is-on em { background: #dc2626; color: #fff; }
.kb-req-list { display: flex; flex-direction: column; }
.kb-req-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.kb-req-item:last-child { border-bottom: none; }
.kb-req-item-title { margin: 0; color: #fff; font-size: 16px; line-height: 1.45; font-weight: 700; letter-spacing: 0; word-break: break-word; }
.kb-req-item-desc { margin: 7px 0 0; color: #9ca3af; font-size: 14px; line-height: 1.7; word-break: break-word; }
.kb-req-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; color: #6b7280; font-size: 12px; }
.kb-req-meta span { display: inline-flex; align-items: center; gap: 5px; }
.kb-req-vote, .kb-req-badge { min-width: 96px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.kb-req-vote { border: 1px solid rgba(220, 38, 38, .42); background: rgba(220, 38, 38, .12); color: #fecaca; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease; }
.kb-req-vote:hover { background: #dc2626; color: #fff; }
.kb-req-vote:disabled { opacity: .65; cursor: wait; }
.kb-req-vote em { font-style: normal; color: inherit; }
.kb-req-badge { background: rgba(22, 163, 74, .14); color: #86efac; }
.kb-req-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #6b7280; text-align: center; }
.kb-req-empty i { font-size: 42px; color: #4b5563; }
.kb-req-empty p { margin: 0; font-size: 14px; }
.kb-req-submit.is-loading, .kb-req-vote.is-loading { pointer-events: none; }

/* 影片聚合页 */
.kb-movie-shell,
.kb-movie-detail-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.kb-movie-page { padding: 32px 0 64px; }
.kb-movie-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.kb-movie-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.kb-movie-eyebrow i { font-size: 16px; }
.kb-movie-head h1 { margin: 8px 0 6px; color: #fff; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: 0; }
.kb-movie-head p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.kb-movie-count { display: flex; align-items: baseline; gap: 6px; color: var(--muted); white-space: nowrap; }
.kb-movie-count strong { color: #fff; font-size: 26px; }
.kb-collection-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 18px; scrollbar-width: none; }
.kb-collection-strip::-webkit-scrollbar { display: none; }
.kb-collection-chip { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--muted); background: var(--surface); text-decoration: none; font-size: 13px; }
.kb-collection-chip:hover, .kb-collection-chip.is-on { border-color: var(--accent); color: #fff; background: var(--accent-soft); }
.kb-collection-chip em { color: var(--muted-2); font-size: 11px; font-style: normal; }
.kb-movie-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 16px; }
.kb-movie-card { min-width: 0; color: inherit; text-decoration: none; }
.kb-movie-poster { position: relative; overflow: hidden; aspect-ratio: 2 / 3; border-radius: 10px; background: var(--surface-2); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.kb-movie-poster::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 38%); }
.kb-movie-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.kb-movie-card:hover .kb-movie-poster img { transform: scale(1.05); }
.kb-movie-poster-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--cover); color: var(--muted-2); font-size: 34px; }
.kb-movie-score { position: absolute; z-index: 1; right: 9px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; color: #facc15; font-size: 12px; font-weight: 700; }
.kb-movie-card-body { padding: 10px 2px 0; }
.kb-movie-card-body h2 { margin: 0 0 5px; overflow: hidden; color: #fff; font-size: 15px; line-height: 1.35; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.kb-movie-card-body p { display: flex; gap: 6px; margin: 0; overflow: hidden; color: var(--muted-2); font-size: 12px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.kb-movie-card-body p span:not(:last-child)::after { content: '·'; margin-left: 6px; color: var(--muted-2); }
.kb-movie-empty { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--stroke); border-radius: 12px; background: rgba(17,18,20,.72); text-align: center; }
.kb-movie-empty i { color: var(--muted-2); font-size: 44px; }
.kb-movie-empty h2 { margin: 0; color: #fff; font-size: 20px; }
.kb-movie-empty p { margin: 0; color: var(--muted); font-size: 14px; }
.kb-movie-empty-link { margin-top: 8px; color: #fff; background: var(--accent); border-radius: 999px; padding: 9px 16px; font-size: 13px; text-decoration: none; }
.kb-movie-pager { display: flex; justify-content: center; gap: 7px; margin-top: 34px; }
.kb-movie-pager a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--stroke); border-radius: 8px; color: var(--muted); text-decoration: none; }
.kb-movie-pager a:hover, .kb-movie-pager a.is-on { border-color: var(--accent); color: #fff; background: var(--accent); }

/* 影片详情页 */
.kb-movie-detail-page { padding: 24px 0 64px; }
.kb-back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--muted); font-size: 14px; text-decoration: none; }
.kb-back-link:hover { color: #fff; }
.kb-movie-detail { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 26px; border: 1px solid var(--stroke); border-radius: 12px; background: linear-gradient(135deg, rgba(24,25,28,.96), rgba(9,10,11,.96)); }
.kb-movie-detail-poster { overflow: hidden; aspect-ratio: 2 / 3; border-radius: 9px; background: var(--surface-2); }
.kb-movie-detail-poster img { width: 100%; height: 100%; display: block; object-fit: cover; }
.kb-movie-detail-main { min-width: 0; align-self: center; }
.kb-movie-detail-main h1 { margin: 10px 0 4px; color: #fff; font-size: clamp(28px, 4vw, 46px); line-height: 1.12; letter-spacing: 0; }
.kb-movie-original { margin: 0 0 18px; color: var(--muted-2); font-size: 14px; }
.kb-movie-meta, .kb-movie-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kb-movie-meta { margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.kb-movie-meta span { display: inline-flex; align-items: center; gap: 4px; padding-right: 9px; border-right: 1px solid var(--stroke); }
.kb-movie-meta span:last-child { border-right: 0; }
.kb-movie-meta .is-score { color: #facc15; font-weight: 700; }
.kb-movie-tags span { padding: 5px 9px; border-radius: 999px; color: var(--muted); background: var(--chip); font-size: 12px; }
.kb-movie-credit { display: flex; gap: 12px; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.kb-movie-credit b { flex: 0 0 32px; color: #fff; }
.kb-movie-section { margin-top: 28px; }
.kb-movie-section h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: #fff; font-size: 18px; }
.kb-movie-section h2 i { color: var(--accent); font-size: 20px; }
.kb-movie-synopsis { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; white-space: pre-line; }
.kb-movie-resources { display: grid; gap: 10px; }
.kb-movie-resource { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--stroke); border-radius: 10px; color: inherit; background: var(--surface); text-decoration: none; }
.kb-movie-resource:hover { border-color: var(--accent); background: var(--accent-soft); }
.kb-movie-resource-icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: var(--accent); font-size: 18px; }
.kb-movie-resource-main { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; gap: 4px; }
.kb-movie-resource-main strong { overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.kb-movie-resource-main small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.kb-movie-resource code { flex: 0 0 auto; color: #facc15; font-size: 12px; }
.kb-movie-resource-arrow { flex: 0 0 auto; color: var(--muted); }
.kb-movie-empty-small { min-height: 140px; }
.kb-movie-empty-small i { font-size: 30px; }
.kb-movie-stills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kb-movie-stills img { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 8px; object-fit: cover; }

@media (max-width: 1100px) {
  .kb-movie-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .kb-movie-shell, .kb-movie-detail-shell { width: min(100% - 24px, 680px); }
  .kb-movie-page, .kb-movie-detail-page { padding-top: 20px; }
  .kb-movie-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; }
  .kb-movie-detail { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 18px; }
  .kb-movie-detail-main h1 { font-size: 28px; }
  .kb-movie-stills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .kb-movie-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .kb-movie-count { align-self: flex-end; }
  .kb-movie-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .kb-movie-card-body h2 { font-size: 13px; }
  .kb-movie-card-body p { font-size: 11px; }
  .kb-movie-detail { grid-template-columns: 1fr; }
  .kb-movie-detail-poster { width: min(48vw, 190px); margin: 0 auto; }
  .kb-movie-detail-main { text-align: center; }
  .kb-movie-eyebrow, .kb-movie-meta, .kb-movie-tags { justify-content: center; }
  .kb-movie-credit { text-align: left; }
  .kb-movie-resource { padding: 12px; }
  .kb-movie-resource code { display: none; }
}


@media (max-width: 768px) {
  .kb-foot-bar { flex-direction: column; align-items: flex-start; }
  .kb-foot-links { flex-wrap: wrap; gap: 12px; }
  .kb-foot-sublinks { gap: 12px; }
}
@media (max-width: 768px) {
  .kb-requests-page { padding: 18px 12px 40px; }
  .kb-req-top { margin-bottom: 14px; }
  .kb-req-form-card { padding: 16px; }
  .kb-req-input-row { grid-template-columns: 1fr; }
  .kb-req-submit { width: 100%; }
  .kb-req-tabs { padding: 12px; }
  .kb-req-tab { flex: 1; justify-content: center; }
  .kb-req-item { grid-template-columns: 1fr; align-items: start; padding: 16px; }
  .kb-req-vote, .kb-req-badge { width: 100%; }
}

/* ==========================================================================
   影片栏目页：固定电影导航、海报列表、详情与移动端适配
   ========================================================================== */
.bar-center {
  min-width: 0;
  flex: 1 1 auto;
}
.kb-nav {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  overflow: visible;
}
.kb-movie-nav-scroll {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 0;
  gap: 10px;
  padding: 0 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.kb-movie-nav-scroll::-webkit-scrollbar { display: none; }
.kb-movie-nav-item {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 8px;
  /* 与首页顶部菜单一致：默认灰色（--muted），仅选中项为红色（--accent） */
  color: var(--muted);
  letter-spacing: 0 !important;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.kb-movie-nav-item:hover {
  color: var(--accent) !important;
  background: transparent;
}
.kb-movie-nav-item.on {
  color: var(--accent) !important;
  background: transparent;
  font-weight: 550;
}
.kb-mobile-movie-nav { border-top: 1px solid rgba(255, 255, 255, .06); }

.kb-movies-page,
.kb-movie-detail-page {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px clamp(12px, 2.6vw, 42px) 64px;
  box-sizing: border-box;
}
.kb-movie-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.kb-movie-heading { min-width: 0; }
.kb-movie-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kb-movie-kicker i { color: var(--accent); font-size: 16px; }
.kb-movie-heading h1 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 800;
}
.kb-movie-description {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.kb-movie-total {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--muted);
  white-space: nowrap;
}
.kb-movie-total strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}
.kb-movie-total span { font-size: 13px; }
.kb-subsection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}
.kb-subsection-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}
.kb-subsection-head h2 i { color: var(--accent); font-size: 18px; }
.kb-subsection-head > span { color: var(--muted-2); font-size: 12px; }
.kb-collections { margin-bottom: 34px; }
.kb-collection-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.kb-collection-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  color: var(--text-soft);
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.kb-collection-link:hover,
.kb-collection-link.is-active {
  color: #fff;
  background: var(--accent-soft);
  border-color: rgba(220, 38, 38, .42);
  transform: translateY(-2px);
}
.kb-collection-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.kb-collection-link em {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.kb-collection-link > i { color: var(--muted-2); font-size: 16px; }
.kb-movie-list { min-width: 0; }
.kb-movies-page .kb-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px 14px !important;
}
.kb-movie-card { min-width: 0; text-decoration: none; }
.kb-movie-card .kb-card-cover { aspect-ratio: 2 / 3; }
.kb-movie-card .kb-card-body { padding-top: 11px; }
.kb-movie-card .kb-card-tags { min-height: 18px; }
.kb-movie-score {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  color: #fef3c7;
  background: rgba(0, 0, 0, .72);
  border: 1px solid rgba(250, 204, 21, .3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.kb-movie-score i { color: var(--star); font-size: 11px; }
.kb-movie-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 7px;
  color: var(--muted-2);
  font-size: 11px;
}
.kb-movie-card-meta i { font-size: 13px; }
.kb-movie-empty { min-height: 260px; }
.kb-movie-pager { margin-top: 34px; }

.kb-movie-detail-toolbar { margin-bottom: 18px; }
.kb-movie-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s ease;
}
.kb-movie-back:hover { color: #fff; }
.kb-movie-detail {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 3vw, 42px);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(17, 18, 20, .9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34);
}
.kb-movie-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  opacity: .22;
  pointer-events: none;
}
.kb-movie-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 18, 20, .98) 0%, rgba(17, 18, 20, .84) 48%, rgba(17, 18, 20, .96) 100%);
}
.kb-movie-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}
.kb-movie-detail .kb-detail-top { position: relative; }
.kb-movie-detail .kb-detail-poster { width: clamp(190px, 22vw, 300px); }
.kb-movie-detail-eyebrow {
  margin-bottom: 9px;
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.kb-movie-detail .kb-detail-main > h1 { margin-bottom: 7px; }
.kb-movie-original-title,
.kb-movie-alias-line {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.kb-movie-alias-line { color: var(--muted-2); }
.kb-movie-detail .kb-hero-meta { margin-top: 16px; }
.kb-movie-detail .kb-intro { max-width: 900px; }
.kb-movie-section { margin-top: 34px; }
.kb-movie-resources { margin-bottom: 0; }
.kb-movie-resource { align-items: center; }
.kb-movie-resource-quality,
.kb-movie-resource-size {
  color: var(--muted);
  font-size: 12px;
}
.kb-movie-resource-size { color: var(--muted-2); }
.kb-movie-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.kb-movie-adjacent a,
.kb-movie-adjacent > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--stroke);
  border-radius: 8px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.kb-movie-adjacent a:last-child { justify-content: flex-end; }
.kb-movie-adjacent a:hover {
  color: #fff;
  background: var(--accent-soft);
  border-color: rgba(220, 38, 38, .4);
}

@media (min-width: 769px) {
  .kb-movies-page .kb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 1024px) {
  .kb-movies-page .kb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}
@media (min-width: 1280px) {
  .kb-movies-page .kb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
}
@media (min-width: 1920px) {
  .kb-movies-page .kb-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
  .kb-collection-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .kb-movies-page,
  .kb-movie-detail-page { padding: 20px 12px 44px; }
  .kb-movie-toolbar { align-items: flex-start; margin-bottom: 24px; }
  .kb-movie-heading h1 { font-size: 26px; }
  .kb-movie-total { padding-top: 5px; }
  .kb-movie-total strong { font-size: 22px; }
  .kb-subsection-head { margin-bottom: 12px; }
  .kb-subsection-head h2 { font-size: 16px; }
  .kb-collections { margin-bottom: 26px; }
  .kb-collection-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kb-collection-link { min-height: 46px; padding: 0 10px; }
  .kb-collection-link > i { display: none; }
  .kb-movies-page .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px 10px !important; }
  .kb-movie-card .kb-card-title { font-size: 14px; }
  .kb-movie-card .kb-card-alias,
  .kb-movie-card .kb-card-tags { font-size: 11px; }
  .kb-movie-detail { padding: 16px 12px 22px; border-radius: 10px; }
  .kb-movie-detail .kb-detail-top { gap: 20px; }
  .kb-movie-detail .kb-detail-poster { position: relative; top: auto; width: min(54vw, 220px); }
  .kb-movie-detail .kb-detail-main { text-align: left; }
  .kb-movie-detail .kb-detail-main > h1 { font-size: 26px; }
  .kb-movie-detail .kb-hero-meta { gap: 7px; }
  .kb-movie-resource { align-items: flex-start; }
  .kb-movie-resource .kb-dl-info,
  .kb-movie-resource .kb-dl-meta { width: 100%; flex-basis: 100%; }
  .kb-movie-resource .kb-dl-btn { width: 100%; justify-content: center; }
  .kb-movie-adjacent { grid-template-columns: 1fr; }
  .kb-movie-adjacent a:last-child { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .kb-movie-toolbar { display: block; }
  .kb-movie-total { margin-top: 14px; }
  .kb-movie-description { font-size: 13px; }
  .kb-collection-list { grid-template-columns: 1fr; }
  .kb-movie-detail .kb-detail-poster { width: min(62vw, 220px); }
}

/* 面包屑导航（可见路径，配合 BreadcrumbList 结构化数据） */
.kb-breadcrumb {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted) !important;
}
.kb-breadcrumb a {
  color: var(--muted) !important;
  text-decoration: none !important;
  transition: color .2s ease;
}
.kb-breadcrumb a:hover { color: var(--accent-hover) !important; }
.kb-breadcrumb > i {
  font-size: 14px;
  color: var(--muted-2) !important;
}
.kb-breadcrumb > span[aria-current="page"] {
  max-width: 60%;
  overflow: hidden;
  color: var(--text-soft) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .kb-breadcrumb { margin-bottom: 10px !important; font-size: 12px; }
  .kb-breadcrumb > span[aria-current="page"] { max-width: 52%; }
}
