/* ============================================================
   LUMO 流明 — 视觉系统
   沿用原项目深色底 + 琥珀橙强调的基调，补上更完整的排版层级。
   ============================================================ */

:root {
  /* 底色取近黑而非灰蓝：影视站的画布应该像影院暗厅，
     海报的色彩才是主角（Netflix #141414 的同款思路） */
  --bg: #0e0f13;
  --bg-elevated: #16181e;
  --bg-card: #1d2027;
  --bg-hover: #262a33;

  --text-primary: #f4f5f7;
  --text-secondary: #9aa0a8;
  --text-muted: #6a707a;

  /* 琥珀是品牌色，按主流范式的"色彩配给"原则收敛使用：
     只出现在主 CTA、当前导航、选中态和关键 hover 上，其余一律白/灰 */
  --accent: #f5a623;
  --accent-soft: rgba(245, 166, 35, 0.14);
  --accent-bright: #ffc44d;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  /* 静止卡片无投影、只留极淡描边（层级靠底色明度差），
     hover 时才把投影还回来——这是"内容优先"的关键细节 */
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.2, 0, 0.2, 1);

  --font: "PingFang SC", "Microsoft YaHei", Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------- 全局细节 */

/* 细滚动条：默认的粗白条在暗色界面里非常突兀 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border: 2px solid transparent;
  background-clip: content-box;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.24); background-clip: content-box; }

::selection { background: rgba(245, 166, 35, 0.32); color: #fff; }

/* 键盘焦点环：只对键盘导航显示，鼠标点击不出现 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 尊重系统的"减少动效"设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------- 顶部导航 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 19, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 滚动后压深：chrome 只在需要时出现，首屏让位给 hero */
.site-header.scrolled {
  background: rgba(14, 15, 19, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

/* LUMO 字标：末位的 O 做成投影镜头，呼应「流明 = 放映机打出的那束光」

   O 的尺寸与位置按微软雅黑 Bold 的实测字形度量推导（避免目测调参）：
     cap 高度      0.7563em
     字母 O 高度   0.7822em  （= 1.0343cap，圆形比 cap 高 3.4%）
     O 顶 / 底     基线上 0.7690em / 基线下 0.0132em（圆字母视觉过冲）
   所以：SVG 以基线对齐（字母都坐在基线上）+ 整体下移 0.0132em 复现过冲。
   cap 单位不支持的浏览器回退到 em 值。 */
.logo .wordmark {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  line-height: 1;
}

.logo .lens {
  width: 0.782em;
  height: 0.782em;
  width: 1.034cap;
  height: 1.034cap;
  margin-left: 0.5px;
  transform: translateY(0.28px);
  transform: translateY(0.0175cap);
  overflow: visible;
}

/* 环宽 5/24 ≈ 外径的 20.8%，与雅黑 Bold 竖笔占 O 外径的 20.6% 等重 */
.logo .lens-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
}

.logo .lens-core {
  fill: var(--accent-bright);
}

.logo:hover .lens-core {
  fill: #fff;
}

.logo .sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding-left: 9px;
  border-left: 1px solid var(--border-strong);
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* 当前项：品牌色文字 + 底部指示条。比整块底色高亮更克制，
   也避免了导航栏出现第二第三种颜色 */
.nav-links a.active {
  color: var(--accent);
  background: transparent;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* 搜索框 */
.search-box {
  position: relative;
  flex-shrink: 0;
  width: 230px;
}

.search-box input {
  width: 100%;
  height: 36px;
  padding: 0 14px 0 36px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.18s ease;
}

.search-box input:focus { border-color: var(--accent); }
.search-box input::placeholder { color: var(--text-muted); }

.search-box .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

/* 清除按钮：有输入时才出现，避免常态占位 */
.search-box .clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--border-strong);
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.search-box .clear.show { opacity: 1; visibility: visible; }
.search-box .clear:hover { background: var(--accent); color: #14161a; }

/* ---------------------------------------------------------- 主体容器 */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* ---------------------------------------------------------- Hero 轮播 */

.hero {
  position: relative;
  height: 430px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 44px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: blur(14px) saturate(1.3);
  transform: scale(1.15);
  opacity: 0.62;
  transition: opacity 0.5s ease;
}

/* 双层遮罩：横向压暗保文字可读，纵向把 hero 溶进下方内容区，
   避免出现一条生硬的分割线（主流影视站的 billboard 都这么做） */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(14, 15, 19, 0.9) 0%, rgba(14, 15, 19, 0.58) 45%, rgba(14, 15, 19, 0.18) 100%),
    linear-gradient(to top, rgba(14, 15, 19, 0.92) 0%, rgba(14, 15, 19, 0) 42%);
  pointer-events: none;
}

.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 32px;
  padding: 0 48px;
  align-items: center;
  max-width: 100%;
}

.hero-poster {
  width: 208px;
  height: 293px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-lift);
  flex-shrink: 0;
  background: var(--bg-card);
}

.hero-meta { flex: 1; min-width: 0; }

/* 眉题：小字 + 宽字距，先把视线引到主标题上 */
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-meta h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 元信息行：年份 · 类型 · 地区，分隔点比竖线更轻 */
.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.hero-meta-row i { font-style: normal; color: var(--text-muted); }

/* 更新状态徽章：琥珀淡底胶囊，hero 里唯一的彩色信息点 */
.hero-rem {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 166, 35, 0.28);
  padding: 2px 11px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-rem[hidden] { display: none; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 26px;
  border-radius: 8px;
  background: var(--accent);
  color: #1a1205;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.18s var(--ease), background 0.18s ease, box-shadow 0.18s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.btn-play:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.35);
}

/* 次级 CTA：玻璃拟态，与琥珀主按钮形成明确的主次层级 */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.18s ease, transform 0.18s var(--ease);
  cursor: pointer;
  font-family: var(--font);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }

.hero-dots {
  position: absolute;
  bottom: 22px;
  right: 36px;
  display: flex;
  gap: 7px;
  z-index: 1;
}

.hero-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-dots i.on { background: var(--accent); width: 20px; border-radius: 4px; }

/* ---------------------------------------------------------- 区块标题 */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 14px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
}

.section-head .hint { font-size: 12px; color: var(--text-muted); }

/* ---------------------------------------------------------- 横向滚动分区 */

.rail { margin-bottom: 44px; }

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

/* 分区标题是首页的视觉节拍：19px/700 与卡片区拉开层级，
   左侧琥珀短竖线做栏目标识（主流影视站的栏题范式） */
.rail-head h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 14px;
}

.rail-head h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent);
}

.rail-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 「更多」做成描边 pill：默认可点但不抢栏题的注意力，hover 才亮 */
.rail-more {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.rail-more span {
  display: inline-block;
  margin-left: 2px;
  font-size: 14px;
  transition: transform .15s ease;
}

.rail-more:hover {
  color: var(--accent);
  border-color: rgba(245, 166, 35, 0.4);
  background: var(--accent-soft);
}

.rail-more:hover span { transform: translateX(2px); }

.rail-nav { display: flex; gap: 6px; }

.rail-nav button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}

.rail-nav button:hover {
  color: #14161a;
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.rail-track::-webkit-scrollbar { display: none; }

.rail-track > .film-card {
  flex: 0 0 148px;
  /* 关键：flex item 默认 min-width:auto（=内容最小宽度）。中文片名没有空格可断行，
     长标题会把卡片撑到 200px 以上，连带海报按 aspect-ratio 变高，出现一排高低不齐。
     min-width:0 让 flex-basis 的 148px 真正生效，标题交给 ellipsis 截断。 */
  min-width: 0;
  scroll-snap-align: start;
}

.rail-track .film-title { font-size: 12px; min-height: 32px; }

/* ---------------------------------------------------------- 首屏骨架屏 */

.skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 18px 14px;
}

.skeleton .sk {
  border-radius: var(--radius);
  background: linear-gradient(100deg,
    var(--bg-card) 30%, rgba(255, 255, 255, 0.06) 50%, var(--bg-card) 70%);
  background-size: 220% 100%;
  animation: sk-shimmer 1.3s linear infinite;
}

.skeleton .sk-poster { aspect-ratio: 3 / 4; }
.skeleton .sk-line { height: 11px; margin-top: 8px; }
.skeleton .sk-line.short { width: 55%; }

@keyframes sk-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

/* ---------------------------------------------------------- 二级分类筛选条 */

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 20px;
}

.sub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  transition: color .15s, border-color .15s, background .15s;
}

.sub-chip:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.sub-chip i {
  font-style: normal;
  font-size: 11px;
  color: var(--text-muted);
}

.sub-chip.on {
  color: #14161a;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.sub-chip.on i { color: rgba(20, 22, 26, .6); }

/* ---------------------------------------------------------- 分类导航条 */

.cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cat-chip {
  padding: 5px 14px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.cat-chip:hover { color: var(--text-primary); border-color: var(--border-strong); }

.cat-chip.on {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------------------------------------------------- 影片网格 */

.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 18px 14px;
}

.film-card { cursor: pointer; min-width: 0; }

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.film-card:hover .poster-wrap {
  transform: translateY(-6px) scale(1.04);
  box-shadow: var(--shadow-lift);
  border-color: rgba(255, 255, 255, 0.16);
}

/* 图片绝对定位铺满容器：不参与父容器高度计算，父高度完全由 aspect-ratio 决定，
   海报比例再杂也一律等高裁切。用 static + height:100% 在某些加载时序下会让浏览器
   拿图片自然高度反推容器，出现一排高低不齐的海报。 */
.poster-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 封面占位块：图床整体失效时（实测约 1/3 影片）的兜底视觉。
   用片名前两字 + 类型小字 + 品牌感渐变，比灰底"暂无封面"体面；
   同名片每次色相一致（hash 片名定色相）。 */
.poster-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(251, 165, 24, 0.14), transparent 60%),
    linear-gradient(160deg, #232833 0%, #171a21 100%);
  color: var(--text-secondary);
  overflow: hidden;
}

.pf-glyph {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.pf-type {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 80%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 卡片场景：原 img 是绝对定位铺满的，占位块同样铺满 poster-wrap */
.poster-wrap .poster-fallback {
  position: absolute;
  inset: 0;
}

/* 详情 / hero 场景：posterErr 复制了原 class（detail-poster / hero-poster），
   尺寸由那些规则提供，这里只需保证圆角不溢出 */
.detail-poster.poster-fallback,
.hero-poster.poster-fallback {
  border-radius: var(--radius);
}

.pf-glyph { line-height: 1.1; }
.detail-poster.poster-fallback .pf-glyph { font-size: 44px; }
.hero-poster.poster-fallback .pf-glyph { font-size: 56px; }

/* 更新状态徽章：左下角琥珀胶囊（"更新至第 N 集"），
   hover 时让位给操作条，避免两个浮层打架 */
.badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-bright);
  transition: opacity 0.2s ease;
}

.film-card:hover .badge { opacity: 0; }

/* hover 操作条：海报底部滑出的播放/详情双按钮。
   从下方滑入比直接淡入更有"展开"的仪式感（Netflix 的招牌微交互）。
   触屏设备没有 hover 态，直接隐藏，整卡点击进详情的路径不受影响。 */
.card-hover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.film-card:hover .card-hover { opacity: 1; transform: none; }

@media (hover: none) { .card-hover { display: none; } }

.ch-play, .ch-info {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.ch-play { background: rgba(245, 166, 35, 0.94); color: #1a1205; }
.ch-info { background: rgba(14, 15, 19, 0.85); color: #fff; }

.ch-play:hover { background: var(--accent-bright); }
.ch-info:hover { background: rgba(40, 44, 54, 0.92); }

/* 片名两行截断 + 固定两行高度：信息给足的同时，
   保证 grid 里同行卡片的标题区严格对齐（单行 ellipsis 会浪费一半标题空间） */
.film-title {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  min-height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.film-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------- 分页 */

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.pager button {
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font);
}

.pager button:hover:not(:disabled) {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.pager button.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1205;
  font-weight: 600;
}

.pager button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---------------------------------------------------------- 详情页 */

.detail {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
}

.detail-poster {
  width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  background: var(--bg-card);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.detail-info .alias {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px 18px;
  margin-bottom: 20px;
}

.meta-list div {
  font-size: 13px;
  color: var(--text-secondary);
}

.meta-list b {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 8px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blurb {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* 播放源切换 */
/* 播放源切换：做成显眼的实心胶囊，与下面的选集格子拉开层级 */
.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.source-tab {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: var(--font);
}

.source-tab::before {
  content: '▶';
  font-size: 9px;
  margin-right: 6px;
  color: var(--text-muted);
  vertical-align: 1px;
}

.source-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 选中源：琥珀实心 + 深色文字，与未选形成强烈对比 */
.source-tab.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #14161a;
}

.source-tab.on::before { color: #14161a; }

/* 集数列表：无边框浅底格子，弱化成"次要选择" */
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 9px;
}

.ep-btn {
  padding: 9px 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  font-family: var(--font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ep-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------------------------------------------------------- 播放页 */

.player-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
}

.player-box {
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-box video { width: 100%; height: 100%; }

/* 嵌入式线路（iframe 聚合站播放器）：铺满播放盒 */
.player-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* 连接中 / 失败浮层：盖在播放器上，避免黑框无言 */
.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 11, 14, 0.92);
  text-align: center;
  padding: 24px;
}

.player-overlay .big {
  font-size: 40px;
  font-weight: 300;
  opacity: 0.35;
  color: var(--accent);
}

.player-overlay-text { font-size: 14px; color: var(--text-primary); font-weight: 600; }

.player-overlay-sub {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.7;
}

.player-retry {
  margin-top: 4px;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #14161a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: filter 0.18s ease;
}

.player-retry:hover { filter: brightness(1.1); }

/* 播放页：返回链接 / 线路切换 / 标题 / 状态行 */
.play-back { margin-bottom: 14px; }

.play-back a { color: var(--text-secondary); font-size: 13px; }
.play-back a:hover { color: var(--accent); }

.play-sources {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.play-sources-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  flex: none;
}

.play-sources .source-tabs { margin-bottom: 0; }

.play-title { font-size: 17px; margin-top: 14px; }

.play-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 8px;
  min-height: 22px;
}

.kind-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  flex: none;
}

.kind-badge.direct {
  color: var(--accent);
  background: var(--accent-soft);
}

.kind-badge.embed {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.07);
}

.side-list {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 14px;
  max-height: 520px;
  overflow-y: auto;
}

.side-list h3 {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.side-list h3 span { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.side-item {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: 4px;
  transition: all 0.16s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.side-item.on { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------- 状态提示 */

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty .big {
  font-size: 44px;
  margin-bottom: 16px;
  opacity: 0.3;
  font-weight: 300;
}

.loading {
  display: flex;
  justify-content: center;
  padding: 70px;
  color: var(--text-muted);
  font-size: 14px;
  gap: 10px;
  align-items: center;
}

/* 加载动画 = 镜头呼吸：琥珀外环 + 亮芯，随节律缩放，替代通用转圈 */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  position: relative;
  animation: lens-pulse 0.9s ease-in-out infinite;
}

.spinner::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent-bright);
}

@keyframes lens-pulse {
  0%, 100% { transform: scale(0.82); opacity: 0.55; }
  50%      { transform: scale(1);    opacity: 1; }
}

/* 骨架屏 */
.skel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 18px 14px;
}

.skel-card .skel-img {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--bg-card) 30%, var(--bg-hover) 50%, var(--bg-card) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite;
}

.skel-card .skel-bar {
  height: 11px;
  margin-top: 9px;
  border-radius: 4px;
  background: var(--bg-card);
}

@keyframes shimmer {
  0%   { background-position: 180% 0; }
  100% { background-position: -40% 0; }
}

/* ---------------------------------------------------------- 页脚 */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-brand {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.footer-note { margin-top: 5px; }

/* ---------------------------------------------------------- 响应式 */

@media (max-width: 900px) {
  .detail { grid-template-columns: 150px 1fr; gap: 18px; }
  .detail-poster { width: 150px; }
  .player-layout { grid-template-columns: 1fr; }
  .side-list { max-height: 260px; }
  .hero { height: 340px; }
  .hero-body { padding: 0 28px; gap: 22px; }
  .hero-poster { width: 150px; height: 211px; }
  .hero-meta h1 { font-size: 26px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 14px; gap: 14px; }
  .logo .sub { display: none; }
  .search-box { width: 135px; }
  .hero { height: 300px; margin-bottom: 28px; }
  .hero-body { padding: 0 20px; gap: 16px; }
  .hero-poster { width: 128px; height: 181px; }
  .hero-eyebrow { margin-bottom: 8px; letter-spacing: 0.16em; }
  .hero-meta h1 { font-size: 22px; margin-bottom: 8px; }
  .hero-meta-row { font-size: 12px; margin-bottom: 8px; }
  .hero-rem { margin-bottom: 14px; }
  .btn-play, .btn-ghost { padding: 9px 16px; font-size: 13px; }
  .container { padding: 18px 14px 48px; }
  .film-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 9px; }
  .rail { margin-bottom: 28px; }
  .rail-head { margin-bottom: 10px; }
  .rail-head h3 { font-size: 16px; }
  /* 触屏上手势横滑是本能，方向键按钮反而占地方 */
  .rail-nav { display: none; }
  .rail-track > .film-card { flex-basis: 116px; }
}
