/* =========================================================
   MACCMS10 影视模板（第五十套） - style.css
   bg- 星舰蓝紫 · 银河影院（深空星空 + 霓虹青紫，与前49套完全不同）
   悬浮胶囊毛玻璃头部（汉堡最右）；汉堡=底部弹出全宽面板
   焦点区=大图轮播 + 下方缩略图导航条；详情页=星舰影讯卡（评分圆环）
   选集=横向滑动胶囊条；页脚=星轨三栏 + 霓虹轨道线
   ========================================================= */
:root {
  --bg-void: #070a14;        /* 深空黑蓝 */
  --bg-deep: #0a0f1f;        /* 深蓝 */
  --bg-card: #0e1424;        /* 卡片 */
  --bg-line: #1d2b47;        /* 分隔线 */
  --bg-ink: #e6ecff;         /* 主文字 */
  --bg-sub: #8494b8;         /* 次要文字 */
  --bg-violet: #8b5cf6;      /* 霓虹紫 */
  --bg-cyan: #22d3ee;        /* 霓虹青 */
  --bg-glow: #dbeafe;        /* 淡蓝光 */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  background-color: var(--bg-void);
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(219,234,254,.5), transparent 60%),
    radial-gradient(1px 1px at 32% 62%, rgba(147,197,253,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 55% 18%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 70% 44%, rgba(165,243,252,.45), transparent 60%),
    radial-gradient(1px 1px at 85% 70%, rgba(196,181,253,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 42% 82%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 8% 88%, rgba(147,197,253,.35), transparent 60%),
    radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,.28), transparent 60%),
    linear-gradient(180deg, #070a14 0%, #0a0f1f 100%);
  background-attachment: fixed;
  color: var(--bg-ink);
  font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { border: 0; display: block; }
em, i, b { font-style: normal; }

/* ---------- 容器 ---------- */
.bg-shell { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.bg-main { min-height: 62vh; }

/* ---------- 悬浮胶囊头部（毛玻璃 + 霓虹描边，汉堡最右） ---------- */
.bg-head {
  position: sticky;
  top: 0;
  z-index: 110;
  padding: 12px 0 10px;
  background: linear-gradient(180deg, rgba(7,10,20,.92), rgba(7,10,20,.55), transparent);
}
.bg-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(14,20,36,.72);
  border: 1px solid rgba(139,92,246,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 26px rgba(34,211,238,.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.bg-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--bg-glow);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.bg-logo-i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--bg-cyan), var(--bg-violet));
  box-shadow: 0 0 16px rgba(139,92,246,.8), 0 0 30px rgba(34,211,238,.5);
  transform: rotate(45deg);
}
.bg-logo-t { color: var(--bg-glow); text-shadow: 0 0 16px rgba(34,211,238,.4); }
.bg-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bg-nav::-webkit-scrollbar { display: none; }
.bg-nav a {
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--bg-sub);
  white-space: nowrap;
  flex-shrink: 0;
}
.bg-nav a:hover { color: var(--bg-glow); background: rgba(34,211,238,.1); }
.bg-nav a:first-child {
  color: #06203a;
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  font-weight: 700;
}
.bg-find {
  display: flex;
  border: 1px solid var(--bg-line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(7,10,20,.6);
  flex-shrink: 0;
}
.bg-find-input {
  width: 180px;
  padding: 7px 16px;
  border: 0;
  background: transparent;
  color: var(--bg-ink);
  font-size: 13px;
  outline: none;
}
.bg-find-go {
  padding: 7px 18px;
  border: 0;
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  color: #06203a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.bg-find-go:hover { filter: brightness(1.1); }
.bg-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.bg-map {
  padding: 6px 14px;
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  font-size: 13px;
  color: var(--bg-sub);
  white-space: nowrap;
}
.bg-map:hover { border-color: var(--bg-cyan); color: var(--bg-glow); }
.bg-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  background: rgba(14,20,36,.8);
  cursor: pointer;
  flex-shrink: 0;
}
.bg-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--bg-glow);
  transition: transform .25s, opacity .25s;
}
.bg-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bg-burger.is-open span:nth-child(2) { opacity: 0; }
.bg-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 底部弹出全宽面板（汉堡新模式：从底部滑上） ---------- */
.bg-mask {
  position: fixed;
  inset: 0;
  background: rgba(5,8,18,.65);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity .3s;
}
.bg-mask.is-open { opacity: 1; pointer-events: auto; }
.bg-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-card);
  border-top: 2px solid var(--bg-violet);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -18px 44px rgba(0,0,0,.55);
  z-index: 125;
  transform: translateY(100%);
  transition: transform .34s ease;
  max-height: 82vh;
  overflow-y: auto;
}
.bg-sheet.is-open { transform: translateY(0); }
.bg-sheet-in { padding: 14px 20px 26px; }
.bg-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--bg-line);
}
.bg-sheet-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--bg-glow);
  letter-spacing: 2px;
}
.bg-sheet-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--bg-line);
  border-radius: 50%;
  background: transparent;
  color: var(--bg-sub);
  font-size: 15px;
  cursor: pointer;
}
.bg-sheet-close:hover { border-color: var(--bg-cyan); color: var(--bg-cyan); }
.bg-sheet-group { display: block; }
.bg-sheet-p {
  display: block;
  padding: 10px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-cyan);
}
.bg-sheet-p::before { content: "◆ "; color: var(--bg-violet); font-size: 12px; }
.bg-sheet-c {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--bg-line);
}
.bg-sheet-c a {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  font-size: 13px;
  color: var(--bg-sub);
  background: rgba(7,10,20,.5);
}
.bg-sheet-c a:hover { border-color: var(--bg-cyan); color: var(--bg-glow); }
.bg-sheet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}
.bg-sheet-links a {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  color: #06203a;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- 模块面板 ---------- */
.bg-mod {
  background: rgba(14,20,36,.88);
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  overflow: hidden;
}
.bg-mod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--bg-line);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.bg-mod-title {
  position: relative;
  font-size: 17px;
  font-weight: 800;
  color: var(--bg-glow);
  letter-spacing: 1px;
  padding-left: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-mod-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--bg-cyan), var(--bg-violet));
  box-shadow: 0 0 10px rgba(34,211,238,.6);
}
.bg-mod-title::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 0;
  bottom: -13px;
  height: 1px;
  background: linear-gradient(90deg, rgba(34,211,238,.6), transparent 70%);
}
.bg-mod-more {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--bg-sub);
  flex-shrink: 0;
}
.bg-mod-more:hover { border-color: var(--bg-cyan); color: var(--bg-glow); }
.bg-mod-note { font-size: 12px; color: var(--bg-sub); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 面包屑（仅详情/播放） ---------- */
.bg-crumb {
  padding: 2px 0 14px;
  font-size: 13px;
  color: var(--bg-sub);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.bg-crumb a:hover { color: var(--bg-glow); }
.bg-crumb-sep { color: #3c4a6b; }

/* ---------- 焦点区：大图轮播 + 缩略图导航条 ---------- */
.bg-stage { margin-bottom: 18px; }
.bg-caro {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #060910;
  border: 1px solid var(--bg-line);
  box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
.bg-track { display: flex; transition: transform .5s ease; }
.bg-slide {
  position: relative;
  display: block;
  min-width: 100%;
  height: 400px;
  overflow: hidden;
}
.bg-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.bg-slide:hover img { transform: scale(1.04); }
.bg-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,10,20,.95) 0%, rgba(7,10,20,.5) 48%, rgba(7,10,20,.08) 80%);
}
.bg-copy {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 62%;
  color: #fff;
}
.bg-title {
  display: block;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--bg-glow);
  text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 0 24px rgba(34,211,238,.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-meta {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--bg-cyan);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-plot {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #c9d6ef;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bg-score {
  position: absolute;
  right: 30px;
  top: 28px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 2px solid var(--bg-cyan);
  background: rgba(5,8,18,.55);
  color: var(--bg-cyan);
  font-size: 25px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(34,211,238,.5);
}
.bg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: rgba(5,8,18,.55);
  color: var(--bg-glow);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
}
.bg-arrow:hover { background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet)); color: #06203a; }
.bg-prev { left: 12px; }
.bg-next { right: 12px; }
.bg-film {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,.5) rgba(139,92,246,.12);
}
.bg-film::-webkit-scrollbar { height: 5px; }
.bg-film::-webkit-scrollbar-track { background: rgba(139,92,246,.12); border-radius: 3px; }
.bg-film::-webkit-scrollbar-thumb { background: rgba(139,92,246,.5); border-radius: 3px; }
.bg-thumb {
  width: 150px;
  height: 84px;
  padding: 0;
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #060910;
  opacity: .62;
  transition: all .25s;
}
.bg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bg-thumb:hover { opacity: 1; }
.bg-thumb.is-on {
  border-color: var(--bg-cyan);
  opacity: 1;
  box-shadow: 0 0 18px rgba(34,211,238,.5);
}

/* ---------- 横向滑动条（今日热映） ---------- */
.bg-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,.5) rgba(139,92,246,.12);
}
.bg-rail::-webkit-scrollbar { height: 6px; }
.bg-rail::-webkit-scrollbar-track { background: rgba(139,92,246,.12); border-radius: 3px; }
.bg-rail::-webkit-scrollbar-thumb { background: rgba(139,92,246,.5); border-radius: 3px; }
.bg-rail-card {
  flex-shrink: 0;
  width: 140px;
  scroll-snap-align: start;
  display: block;
  min-width: 0;
}
.bg-rail-pic {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0f1f;
}
.bg-rail-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.bg-rail-card:hover .bg-rail-pic img { transform: scale(1.05); }
.bg-rail-flag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(5,8,18,.82);
  border: 1px solid rgba(34,211,238,.5);
  color: var(--bg-glow);
  font-size: 11px;
  max-width: 66%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-rail-no {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  color: #06203a;
  font-size: 12px;
  text-align: center;
  line-height: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.bg-rail-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 8px 7px;
  background: linear-gradient(180deg, transparent, rgba(7,10,20,.94));
  color: var(--bg-glow);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-rail-card:hover .bg-rail-mask { opacity: 1; transform: translateY(0); }
.bg-rail-info { display: block; padding: 8px 2px 0; }
.bg-rail-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-rail-card:hover .bg-rail-name { color: var(--bg-glow); }
.bg-rail-meta {
  display: block;
  font-size: 12px;
  color: var(--bg-sub);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 封面网格（电脑5列 / 手机3列，3/4 标准） ---------- */
.bg-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.bg-card { display: block; min-width: 0; }
.bg-card-pic {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0f1f;
}
.bg-card-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.bg-card:hover .bg-card-pic img { transform: scale(1.05); }
.bg-card-flag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(5,8,18,.82);
  border: 1px solid rgba(34,211,238,.5);
  color: var(--bg-glow);
  font-size: 11px;
  max-width: 76%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-card-score {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  color: #06203a;
  font-size: 11px;
  font-weight: 800;
}
.bg-card-mask {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 8px 7px;
  background: linear-gradient(180deg, transparent, rgba(7,10,20,.94));
  color: var(--bg-glow);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-card:hover .bg-card-mask { opacity: 1; transform: translateY(0); }
.bg-card-info { display: block; padding: 8px 2px 0; }
.bg-card-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--bg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-card:hover .bg-card-name { color: var(--bg-glow); }
.bg-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--bg-sub);
}

/* ---------- 筛选栏（默认收缩 + 底部展开 + 横滑） ---------- */
.bg-sift {
  background: rgba(14,20,36,.88);
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  padding: 6px 16px;
  margin-bottom: 18px;
  min-width: 0;
}
.bg-sift-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 2px;
  border-bottom: 1px dashed var(--bg-line);
  margin-bottom: 4px;
}
.bg-sift-tip { font-size: 13px; font-weight: 700; color: var(--bg-glow); }
.bg-sift-tip::before { content: "◆ "; color: var(--bg-violet); font-size: 11px; }
.bg-sift-note { font-size: 12px; color: var(--bg-sub); }
.bg-sift-body { display: none; }
.bg-sift.is-expanded .bg-sift-body { display: block; }
.bg-sift-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--bg-line);
  min-width: 0;
}
.bg-sift-row:last-child { border-bottom: 0; }
.bg-sift-key {
  width: 76px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-cyan);
  padding-top: 4px;
}
.bg-sift-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 2px;
}
.bg-sift-scroll::-webkit-scrollbar { height: 4px; }
.bg-sift-scroll::-webkit-scrollbar-track { background: rgba(139,92,246,.12); border-radius: 2px; }
.bg-sift-scroll::-webkit-scrollbar-thumb { background: rgba(139,92,246,.5); border-radius: 2px; }
.bg-chip {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  font-size: 13px;
  color: var(--bg-sub);
  background: rgba(7,10,20,.5);
  white-space: nowrap;
  flex-shrink: 0;
}
.bg-chip:hover { border-color: var(--bg-cyan); color: var(--bg-glow); }
.bg-chip.is-on {
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  border-color: var(--bg-cyan);
  color: #06203a;
  font-weight: 700;
}
.bg-sift-foot {
  padding: 10px 0 4px;
  text-align: center;
  border-top: 1px dashed var(--bg-line);
  margin-top: 2px;
}
.bg-unfold {
  padding: 5px 22px;
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  background: transparent;
  color: var(--bg-glow);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.bg-unfold:hover { border-color: var(--bg-cyan); }

/* ---------- 分页 ---------- */
.bg-page {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 6px 0 2px;
}
.bg-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--bg-line);
  border-radius: 50%;
  font-size: 13px;
  color: var(--bg-sub);
  background: rgba(7,10,20,.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.bg-page-btn:hover { border-color: var(--bg-cyan); color: var(--bg-glow); }
.bg-page-btn.is-on {
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  border-color: var(--bg-cyan);
  color: #06203a;
  font-weight: 700;
}

/* ---------- 详情页：星舰影讯卡（模糊星空背景 + 评分圆环） ---------- */
.bg-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--bg-line);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.bg-hero-bg { position: absolute; inset: 0; }
.bg-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) brightness(.4);
  transform: scale(1.15);
}
.bg-hero-card {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  padding: 22px;
  background: linear-gradient(90deg, rgba(14,20,36,.96) 0%, rgba(14,20,36,.82) 100%);
}
.bg-hero-poster {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0f1f;
  box-shadow: 0 0 0 2px var(--bg-violet), 0 14px 30px rgba(0,0,0,.5);
}
.bg-hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.bg-hero-flag {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(5,8,18,.82);
  border: 1px solid rgba(34,211,238,.5);
  color: var(--bg-glow);
  font-size: 11px;
}
.bg-hero-info { flex: 1; min-width: 0; display: block; }
.bg-hero-name {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--bg-glow);
  margin-bottom: 10px;
  text-shadow: 0 0 18px rgba(34,211,238,.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.bg-hero-tag {
  padding: 2px 12px;
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  font-size: 12px;
  color: var(--bg-cyan);
  background: rgba(7,10,20,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.bg-hero-rate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.bg-ring {
  --p: 0;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: conic-gradient(var(--bg-cyan) calc(var(--p) * 1%), #1a2440 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.bg-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #0d1424;
}
.bg-ring b { position: relative; z-index: 1; color: var(--bg-glow); font-size: 21px; font-weight: 900; }
.bg-ring i { position: relative; z-index: 1; font-size: 10px; color: var(--bg-sub); margin-left: 1px; }
.bg-hero-hits { display: block; }
.bg-hero-hits b { display: block; font-size: 17px; color: var(--bg-ink); }
.bg-hero-hits span { display: block; font-size: 12px; color: var(--bg-sub); margin-top: 2px; }
.bg-hero-plot {
  font-size: 13px;
  line-height: 1.7;
  color: var(--bg-ink);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bg-hero-meta {
  display: grid;
  grid-template-columns: 58px 1fr 58px 1fr;
  gap: 7px 14px;
  font-size: 13px;
  color: var(--bg-ink);
  margin-bottom: 14px;
}
.bg-hero-meta dt { color: var(--bg-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-hero-meta dd { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-hero-meta dd a { color: var(--bg-cyan); }
.bg-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bg-btn {
  padding: 9px 26px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  color: #06203a;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(139,92,246,.4);
}
.bg-btn:hover { filter: brightness(1.1); }
.bg-btn-ghost {
  padding: 9px 26px;
  border-radius: 10px;
  border: 1px solid var(--bg-line);
  color: var(--bg-glow);
  font-size: 14px;
  font-weight: 600;
  background: rgba(7,10,20,.5);
}
.bg-btn-ghost:hover { border-color: var(--bg-cyan); }

/* ---------- 片名行（播放页） ---------- */
.bg-pinfo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(14,20,36,.88);
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.bg-pinfo-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.bg-pinfo-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--bg-glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-pinfo-ep {
  padding: 2px 12px;
  border-radius: 14px;
  background: rgba(7,10,20,.5);
  border: 1px solid var(--bg-line);
  color: var(--bg-cyan);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.bg-pinfo-nav { display: flex; gap: 8px; flex-shrink: 0; }
.bg-pinfo-btn {
  padding: 6px 16px;
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  color: var(--bg-glow);
  font-size: 13px;
  background: rgba(7,10,20,.5);
}
.bg-pinfo-btn:hover { border-color: var(--bg-cyan); }

/* ---------- 播放器（16:9 全屏居中，仅播放页） ---------- */
.bg-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060910;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--bg-line);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
@supports not (aspect-ratio: 16 / 9) {
  .bg-player { padding-top: 56.25%; }
}
.bg-player div,
.bg-player iframe,
.bg-player video,
.bg-player embed,
.bg-player object {
  width: 100% !important;
  height: 100% !important;
}
.bg-player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3c4a6b;
  font-size: 14px;
}

/* ---------- 选集：横向滑动胶囊条 ---------- */
.bg-ep-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,.5) rgba(139,92,246,.12);
}
.bg-ep-rail::-webkit-scrollbar { height: 5px; }
.bg-ep-rail::-webkit-scrollbar-track { background: rgba(139,92,246,.12); border-radius: 3px; }
.bg-ep-rail::-webkit-scrollbar-thumb { background: rgba(139,92,246,.5); border-radius: 3px; }
.bg-ep-rail.bg-expand { flex-wrap: wrap; overflow: visible; }
.bg-ep-chip {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--bg-line);
  border-radius: 16px;
  font-size: 13px;
  color: var(--bg-ink);
  background: rgba(7,10,20,.5);
  white-space: nowrap;
  flex-shrink: 0;
}
.bg-ep-chip:hover { border-color: var(--bg-cyan); color: var(--bg-glow); }
.bg-ep-chip.is-on {
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  border-color: var(--bg-cyan);
  color: #06203a;
  font-weight: 700;
}
.bg-ep-morebtn {
  display: inline-block;
  padding: 7px 18px;
  border: 1px dashed var(--bg-cyan);
  border-radius: 16px;
  font-size: 13px;
  color: var(--bg-glow);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.bg-ep-morebtn:hover { background: rgba(34,211,238,.12); }
.bg-ep-hide { display: none; }
.bg-ep-rail.bg-expand .bg-ep-hide { display: inline-block; }

/* ---------- 主体（全宽单列，无侧栏） ---------- */
.bg-bod { display: block; min-width: 0; }

/* ---------- 详情介绍 ---------- */
.bg-detail { display: block; }
.bg-detail dd {
  padding: 7px 0;
  border-bottom: 1px dashed var(--bg-line);
  font-size: 13px;
  color: var(--bg-ink);
}
.bg-detail dd:last-child { border-bottom: 0; }
.bg-detail dd em { color: var(--bg-sub); margin-right: 4px; }
.bg-detail a { color: var(--bg-cyan); }

/* ---------- 其他人还在搜 ---------- */
.bg-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bg-cloud a {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  font-size: 13px;
  color: var(--bg-sub);
  background: rgba(7,10,20,.5);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-cloud a:hover { border-color: var(--bg-cyan); color: var(--bg-glow); }

/* ---------- 常见问题 ---------- */
.bg-faq { display: block; }
.bg-faq-item { padding: 10px 0; border-bottom: 1px dashed var(--bg-line); }
.bg-faq-item:last-child { border-bottom: 0; }
.bg-faq-q {
  display: block;
  font-size: 14px;
  color: var(--bg-glow);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-faq-a { font-size: 13px; color: var(--bg-sub); margin-top: 4px; }
.bg-faq-a a { color: var(--bg-cyan); }

/* ---------- 评论 ---------- */
.bg-talk {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--bg-line);
  min-width: 0;
}
.bg-talk:last-child { border-bottom: 0; }
.bg-talk-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  color: #06203a;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  line-height: 36px;
  flex-shrink: 0;
}
.bg-talk-body { flex: 1; min-width: 0; }
.bg-talk-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.bg-talk-user {
  font-size: 13px;
  font-weight: 700;
  color: var(--bg-ink);
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-talk-badge {
  font-size: 11px;
  color: #06203a;
  background: var(--bg-cyan);
  padding: 0 6px;
  border-radius: 3px;
}
.bg-talk-stars { color: var(--bg-cyan); font-size: 12px; }
.bg-dim { color: #3c4a6b; }
.bg-talk-time { font-size: 11px; color: var(--bg-sub); }
.bg-talk-text { font-size: 13px; color: var(--bg-ink); }
.bg-talk-like {
  font-size: 12px;
  color: var(--bg-sub);
  flex-shrink: 0;
  align-self: center;
}

/* ---------- 空态 ---------- */
.bg-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--bg-sub);
  font-size: 14px;
}

/* ---------- 星轨页脚（霓虹轨道线 + 品牌区 + 栏目 + 免责声明） ---------- */
.bg-foot { margin-top: 12px; }
.bg-foot-glow {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--bg-cyan), var(--bg-violet), transparent);
  box-shadow: 0 0 20px rgba(34,211,238,.5);
}
.bg-foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0;
  background: rgba(14,20,36,.88);
}
.bg-foot-brand { padding: 20px; min-width: 0; }
.bg-foot-logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--bg-glow);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bg-foot-txt {
  font-size: 13px;
  line-height: 1.8;
  color: var(--bg-sub);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bg-foot-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.bg-foot-btns a {
  padding: 4px 14px;
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  font-size: 12px;
  color: var(--bg-sub);
  background: rgba(7,10,20,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.bg-foot-btns a:hover { border-color: var(--bg-cyan); color: var(--bg-glow); }
.bg-foot-col {
  padding: 20px;
  border-left: 1px dashed var(--bg-line);
  min-width: 0;
}
.bg-foot-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--bg-glow);
  margin-bottom: 10px;
}
.bg-foot-col h4::before { content: "◆ "; color: var(--bg-violet); font-size: 12px; }
.bg-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--bg-sub);
  align-items: center;
}
.bg-foot-links a:hover { color: var(--bg-glow); }
.bg-foot-bar {
  background: rgba(5,8,18,.7);
  border-top: 1px solid var(--bg-line);
  padding: 16px 0 20px;
  text-align: center;
  font-size: 12px;
  color: #3c4a6b;
}
.bg-foot-bar p { margin: 2px 0; }
.bg-foot-bar a:hover { color: var(--bg-glow); }

/* ---------- 回到顶部 ---------- */
#bgTop {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 40px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--bg-cyan);
  border-radius: 12px;
  background: linear-gradient(120deg, var(--bg-cyan), var(--bg-violet));
  color: #06203a;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
  z-index: 99;
}
#bgTop:hover { filter: brightness(1.1); }

/* ---------- 组合/容器补充 ---------- */
.bg-lazy { background: #0a0f1f; }

/* =========================================================
   自适应：平板 1024 / 手机 768 / 小屏 480
   ========================================================= */
@media (max-width: 1024px) {
  .bg-shell, .bg-head { padding-left: 16px; padding-right: 16px; }
  .bg-grid { grid-template-columns: repeat(4, 1fr); }
  .bg-foot-grid { grid-template-columns: 1fr 1fr; }
  .bg-foot-brand { grid-column: 1 / -1; }
  .bg-foot-col:nth-child(3) { border-left: 0; }
}

@media (max-width: 768px) {
  body { font-size: 13px; }
  .bg-head { padding-top: 8px; padding-bottom: 8px; }
  .bg-bar { padding: 6px 10px; gap: 10px; border-radius: 13px; }
  .bg-logo { font-size: 17px; max-width: 150px; }
  .bg-nav { display: none; }
  .bg-map { display: none; }
  .bg-burger { display: flex; }
  .bg-find-input { width: 100px; }
  .bg-shell { padding-left: 14px; padding-right: 14px; }
  .bg-main { padding-top: 2px; }
  .bg-mod { padding: 12px; border-radius: 12px; }
  .bg-caro { border-radius: 12px; }
  .bg-slide { height: 190px; }
  .bg-copy { left: 16px; max-width: 80%; }
  .bg-title { font-size: 19px; }
  .bg-meta { margin-top: 6px; font-size: 12px; }
  .bg-plot { display: none; }
  .bg-score { right: 12px; top: 12px; width: 46px; height: 46px; font-size: 17px; }
  .bg-arrow { width: 30px; height: 42px; font-size: 20px; }
  .bg-thumb { width: 108px; height: 62px; border-radius: 8px; }
  .bg-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .bg-rail { gap: 10px; }
  .bg-rail-card { width: 104px; }
  .bg-rail-flag, .bg-rail-no { font-size: 10px; }
  .bg-rail-name { font-size: 12px; }
  .bg-card-flag, .bg-card-score { font-size: 10px; padding: 0 6px; }
  .bg-card-mask { font-size: 12px; }
  .bg-card-name { font-size: 12px; }
  .bg-mod-title { font-size: 15px; }
  .bg-hero-card { gap: 14px; padding: 14px; flex-wrap: wrap; }
  .bg-hero-poster { width: 120px; }
  .bg-hero-name { font-size: 18px; }
  .bg-ring { width: 62px; height: 62px; }
  .bg-ring b { font-size: 18px; }
  .bg-hero-meta { grid-template-columns: 50px 1fr 50px 1fr; gap: 5px 8px; }
  .bg-hero-plot { -webkit-line-clamp: 2; }
  .bg-pinfo { padding: 10px 12px; gap: 8px; }
  .bg-pinfo-name { font-size: 15px; }
  .bg-sift { padding: 4px 12px; min-width: 0; }
  .bg-sift-row { flex-direction: column; gap: 8px; padding: 9px 0; width: 100%; min-width: 0; }
  .bg-sift-key { width: auto; padding-top: 0; }
  .bg-sift-scroll { width: 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .bg-foot-grid { grid-template-columns: 1fr; }
  .bg-foot-brand { grid-column: auto; border-bottom: 1px dashed var(--bg-line); }
  .bg-foot-col { border-left: 0; border-top: 1px dashed var(--bg-line); padding: 14px; }
  .bg-foot-col:first-child { border-top: 0; }
}

@media (max-width: 480px) {
  .bg-logo { font-size: 15px; max-width: 130px; }
  .bg-find-input { width: 84px; padding: 7px 10px; }
  .bg-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bg-rail-card { width: 98px; }
  .bg-page-btn { min-width: 30px; height: 30px; padding: 0 9px; font-size: 12px; }
  #bgTop { right: 14px; bottom: 26px; width: 40px; height: 40px; }
}
