/* ==========================================================================
   momo2026 — 暗色影视门户模板 · 设计系统（极光版 · 对齐 HL093 视觉）
   ========================================================================== */

/* ------------------------------ 设计令牌（极光） ------------------------------ */
:root {
  --bg:          #0b0f17;      /* 极夜深黛底色，温润通透，告别生硬死黑 */
  --bg-soft:     #111827;      /* 次级暗色底板 */
  --panel:       rgba(17, 24, 39, 0.72);    /* 高级毛玻璃面板 (含微高光) */
  --panel-solid: #111827;      /* 实色卡片底板 */
  --panel-2:     rgba(26, 36, 56, 0.65);    /* 次级磨砂卡片 */
  --panel-3:     rgba(33, 46, 74, 0.78);    /* 悬浮微光卡片 */
  --line:        rgba(255, 255, 255, 0.08); /* 极细柔和高光分割线 */
  --line-2:      rgba(255, 255, 255, 0.16); /* 强调边框线 */

  --txt:         #f8fafc;      /* 纯净柔和主文字色 (Slate-50) */
  --txt-2:       #cbd5e1;      /* 舒适副文本色 (Slate-300) */
  --txt-3:       #94a3b8;      /* 温和易读弱化文本 (Slate-400，改善看不清问题) */

  --accent:      #38bdf8;      /* 电光青主高光 (Sky-400) */
  --accent-rgb:  56, 189, 248;
  --accent-2:    #fbbf24;      /* 琉璃金辅色 (Amber-400) */
  --accent-2-rgb:251, 191, 36;
  --accent-soft: rgba(var(--accent-rgb), 0.14);
  --accent-glow: rgba(var(--accent-rgb), 0.35);
  --link:        var(--accent);
  --warn:        #fbbf24;      /* 琥珀流金 */
  --danger:      #f43f5e;

  --grad-accent: linear-gradient(135deg, var(--accent) 0%, #818cf8 50%, var(--accent-2) 100%);   /* 顶级极光流光渐变（青紫金） */
  --grad-panel:  linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 100%);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow:    0 10px 30px -4px rgba(0, 0, 0, 0.48);
  --shadow-lg: 0 24px 60px -8px rgba(0, 0, 0, 0.68);
  --shadow-glow: 0 0 35px -5px rgba(var(--accent-rgb), 0.35);

  --head-h: 66px;
  --gap:    20px;
  --wrap:   1420px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ------------------------------ 基础重置 ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 650px at 15% -6%, rgba(var(--accent-rgb), 0.14), transparent 65%),
    radial-gradient(950px 520px at 85% 12%, rgba(129, 140, 248, 0.12), transparent 60%),
    radial-gradient(900px 700px at 50% 95%, rgba(56, 189, 248, 0.07), transparent 70%);
}

a { color: inherit; text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent); }
img { border: 0; max-width: 100%; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 10px; transition: background .2s; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.65); }
::selection { background: var(--accent-soft); color: #fff; }

/* ------------------------------ 布局容器 ------------------------------ */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.spacer { flex: 1; }

/* ------------------------------ 顶部导航 ------------------------------ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--head-h);
  background: rgba(11, 15, 23, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: all .25s var(--ease);
}

.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 26px; }

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 32px; width: auto; display: block; }
.logo-txt {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .5px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav > li > a {
  display: block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--txt-2);
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.nav > li > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav > li.active > a {
  color: #0b0f17;
  background: var(--grad-accent);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.head-search { position: relative; width: 220px; flex: none; }
.head-search input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 16px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: var(--panel);
  outline: none;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.head-search input::placeholder { color: var(--txt-3); }
.head-search input:focus { border-color: var(--accent); background: var(--panel-2); }
.head-search button {
  position: absolute;
  right: 4px; top: 4px;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--txt-2);
  display: flex; align-items: center; justify-content: center;
}
.head-search button:hover { color: var(--accent); }

.head-acts { display: flex; align-items: center; gap: 12px; flex: none; }
.head-acts .ico-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--txt-2);
  display: flex; align-items: center; justify-content: center;
}
.head-acts .ico-btn:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; }

/* ------------------------------ 通用按钮 ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .18s var(--ease);
  white-space: nowrap;
}
.btn-accent { background: var(--grad-accent); color: #0a0e14; }
.btn-accent:hover { color: #0a0e14; filter: brightness(1.08); box-shadow: 0 6px 22px var(--accent-glow); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--txt); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.btn-line { border-color: var(--line-2); color: var(--txt-2); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }

/* ------------------------------ 板块标题 ------------------------------ */
.sec { margin-top: 40px; }

.sec-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.sec-head .bar {
  width: 4px; height: 20px;
  border-radius: 3px;
  background: var(--grad-accent);
  flex: none;
}
.sec-head h2 {
  font-size: 21px;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sec-head .cnt {
  font-size: 12px;
  font-weight: 500;
  color: var(--txt-3);
  padding: 2px 9px;
  border-radius: 10px;
  background: var(--panel-2);
}
.sec-head .more {
  margin-left: auto;
  font-size: 13px;
  color: var(--txt-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sec-head .more:hover { color: var(--accent); }
.sec-head .more::after { content: "›"; font-size: 17px; line-height: 1; }

/* ------------------------------ 影片网格 ------------------------------ */
.grid {
  display: grid;
  gap: 18px 14px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  min-width: 0;
}
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card { position: relative; min-width: 0; }

.card .pic {
  position: relative;
  display: block;
  padding-top: 142%;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.card:hover .pic {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 18px 40px -6px rgba(0, 0, 0, 0.65), 0 0 24px var(--accent-soft);
}
.card .pic img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease), filter .3s var(--ease);
}
.card:hover .pic img { transform: scale(1.06); }

.card .pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.75) 100%);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.card:hover .pic::after { opacity: 1; }

.card .play-mask {
  position: absolute;
  left: 50%; top: 50%;
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #0b0f17;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.6);
  transition: all .28s var(--ease-bounce);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
  z-index: 3;
}
.card:hover .play-mask { opacity: 1; transform: scale(1); }

.card .tag {
  position: absolute;
  top: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: .3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.card .tag-l { left: 8px; background: rgba(11, 15, 23, .85); color: var(--accent); }
.card .tag-r { right: 8px; background: rgba(11, 15, 23, .85); color: #fff; }
.card .tag-r.hot { background: linear-gradient(135deg, #f43f5e, #fb923c); color: #fff; border-color: transparent; }

.card .info { padding: 9px 2px 0; }
.card .name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  line-height: 1.4;
  transition: color .2s var(--ease);
}
.card:hover .name { color: var(--accent); }
.card .sub {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--txt-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 横向滚动轨（周表等） */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ------------------------------ 英雄轮播 ------------------------------ */
.hero {
  position: relative;
  height: 440px;
  margin-top: 22px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s;
}
.hero-slide.on { opacity: 1; visibility: visible; }
.hero-slide .bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s linear;
}
.hero-slide.on .bg { transform: scale(1.12); }
.hero-slide .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,14,20,.96) 0%, rgba(10,14,20,.82) 38%, rgba(10,14,20,.28) 68%, rgba(10,14,20,.55) 100%),
    linear-gradient(0deg, rgba(10,14,20,.92) 0%, rgba(10,14,20,0) 52%);
}
.hero-body {
  position: absolute;
  left: 54px;
  bottom: 52px;
  max-width: 560px;
  z-index: 2;
}
.hero-body .kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 11px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), .3);
  margin-bottom: 14px;
}
.hero-body h2 {
  font-size: 38px;
  letter-spacing: .5px;
  margin-bottom: 14px;
  text-shadow: 0 3px 26px rgba(0, 0, 0, .6);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--txt-2);
  margin-bottom: 12px;
}
.hero-meta b { color: var(--accent); font-weight: 600; }
.hero-body .blurb {
  font-size: 13.5px;
  color: var(--txt-2);
  line-height: 1.72;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-acts { display: flex; gap: 12px; }

.hero-dots {
  position: absolute;
  left: 54px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.hero-dots i.on { width: 22px; border-radius: 4px; background: var(--accent); }

.hero-thumbs {
  position: absolute;
  right: 34px;
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-thumbs .t {
  width: 76px;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
  opacity: .5;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .28s var(--ease);
}
.hero-thumbs .t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-thumbs .t:hover { opacity: .85; transform: translateY(-4px); }
.hero-thumbs .t.on { opacity: 1; border-color: var(--accent); transform: translateY(-6px); }

.hero-arrow {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(10, 14, 20, .6);
  border: 1px solid var(--line-2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  z-index: 4;
  opacity: 0;
  transition: all .25s var(--ease);
  backdrop-filter: blur(6px);
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--accent); color: #0a0e14; border-color: transparent; }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }

/* ------------------------------ 追剧周表 ------------------------------ */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.week-day {
  position: relative;
  padding: 16px 10px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  text-align: center;
  transition: all .22s var(--ease);
  overflow: hidden;
}
.week-day::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.week-day:hover { background: var(--panel-2); border-color: var(--line-2); transform: translateY(-2px); }
.week-day:hover::after { transform: scaleX(1); }
.week-day.on {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04));
  border-color: rgba(var(--accent-rgb), .45);
}
.week-day.on::after { transform: scaleX(1); }
.week-day .wk { font-size: 13px; color: var(--txt-2); }
.week-day.on .wk { color: var(--accent); }
.week-day .dt { font-size: 25px; font-weight: 800; margin: 4px 0 2px; letter-spacing: .5px; }
.week-day .n { font-size: 11.5px; color: var(--txt-3); }

.week-panel { margin-top: 18px; }
.week-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.week-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: all .2s var(--ease);
}
.week-item:hover { background: var(--panel-2); border-color: rgba(var(--accent-rgb), .34); transform: translateX(3px); }
.week-item .th {
  width: 62px; height: 84px;
  flex: none;
  border-radius: 7px;
  overflow: hidden;
  background: var(--panel-3);
}
.week-item .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.week-item .tx { min-width: 0; flex: 1; }
.week-item .tx .nm {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.week-item .tx .ms {
  margin-top: 5px;
  font-size: 12px;
  color: var(--txt-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.week-item .tx .st {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 3px;
  background: var(--accent-soft);
}

/* 筛选标签 */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.chip {
  height: 32px;
  padding: 0 17px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--txt-2);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  transition: all .18s var(--ease);
}
.chip:hover { color: var(--txt); border-color: var(--line-2); }
.chip.on { background: var(--grad-accent); color: #0a0e14; border-color: transparent; font-weight: 600; }

/* ------------------------------ 3D 封面流 ------------------------------ */
.flow-wrap {
  position: relative;
  height: 330px;
  perspective: 1400px;
  margin: 6px 0 8px;
}
.flow {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
}
.flow-item {
  position: absolute;
  left: 50%;
  top: 0;
  width: 200px;
  height: 286px;
  margin-left: -100px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform .55s var(--ease), opacity .45s var(--ease), filter .45s var(--ease);
  cursor: pointer;
  background: var(--panel-2);
}
.flow-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flow-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 12px 11px;
  background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,0));
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.flow-item.on .cap { opacity: 1; }
.flow-item.on { box-shadow: 0 0 0 2px var(--accent), 0 22px 60px rgba(0, 0, 0, .62); }
.flow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.flow-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.flow-dots i.on { width: 20px; border-radius: 4px; background: var(--accent); }

/* ------------------------------ 列表页 ------------------------------ */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--txt-3);
  padding: 18px 0 4px;
}
.crumb a:hover { color: var(--accent); }
.crumb i { font-style: normal; opacity: .5; }

.filter-box {
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 22px;
}
.filter-row { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0; }
.filter-row + .filter-row { border-top: 1px dashed var(--line); }
.filter-row .lb {
  flex: none;
  width: 62px;
  padding-top: 5px;
  font-size: 13px;
  color: var(--txt-3);
}
.filter-row .opts { display: flex; flex-wrap: wrap; gap: 7px; flex: 1; }
.filter-row .opts a {
  padding: 4px 13px;
  border-radius: 15px;
  font-size: 13px;
  color: var(--txt-2);
  transition: all .18s var(--ease);
}
.filter-row .opts a:hover { color: var(--accent); background: var(--accent-soft); }
.filter-row .opts a.on { background: var(--accent); color: #0a0e14; font-weight: 600; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--txt-3);
}
.toolbar .sorts { display: flex; gap: 4px; margin-left: auto; }
.toolbar .sorts a {
  padding: 5px 14px;
  border-radius: var(--r-sm);
  color: var(--txt-2);
  background: var(--panel);
  border: 1px solid var(--line);
}
.toolbar .sorts a:hover { color: var(--txt); }
.toolbar .sorts a.on { background: var(--accent-soft); color: var(--accent); border-color: rgba(103,232,249,.4); }

/* 分页 */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 36px 0 16px;
  flex-wrap: wrap;
}
.pager a, .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--txt-2);
  transition: all .2s var(--ease);
}
.pager a:hover {
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.pager .cur {
  background: var(--grad-accent);
  color: #0b0f17;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.pager .dis {
  opacity: .35;
  pointer-events: none;
}

/* ------------------------------ 详情页 ------------------------------ */
.detail-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel);
  margin-top: 20px;
}
.detail-hero .bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(28px) saturate(1.3) brightness(.42);
  transform: scale(1.18);
}
.detail-hero .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,14,20,.94) 0%, rgba(10,14,20,.78) 55%, rgba(10,14,20,.9) 100%);
}
.detail-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 28px;
  padding: 34px;
}
.detail-poster {
  flex: none;
  width: 226px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--panel-2);
  align-self: flex-start;
}
.detail-poster img { width: 100%; display: block; }
.detail-main { flex: 1; min-width: 0; }
.detail-main h1 {
  font-size: 30px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-main h1 .yr { font-size: 15px; font-weight: 500; color: var(--txt-3); }
.detail-main h1 .sc {
  font-size: 16px;
  font-weight: 800;
  color: var(--warn);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13.5px;
  color: var(--txt-2);
  margin: 14px 0 16px;
}
.detail-meta b { color: var(--txt); font-weight: 500; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail-tags span {
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  color: var(--txt-2);
  border: 1px solid var(--line);
}
.detail-blurb {
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--txt-2);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail-acts { display: flex; gap: 12px; flex-wrap: wrap; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.stat { text-align: center; }
.stat .k { font-size: 12px; color: var(--txt-3); margin-bottom: 4px; }
.stat .v { font-size: 17px; font-weight: 700; color: var(--txt); }
.pl-head .lines a.on:hover { color: #0a0e14; }

.eps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding: 4px 6px 4px 0;
}
.eps a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  color: var(--txt-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.eps a:hover {
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.eps a.on {
  background: var(--grad-accent);
  color: #0b0f17;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

/* ------------------------------ 播放页 ------------------------------ */
/* 播放器容器：大画幅、影院光晕 */
.player-box {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px -10px rgba(0, 0, 0, 0.9), 0 0 60px -5px rgba(var(--accent-rgb), 0.25);
  margin-top: 14px;
  margin-bottom: 24px;
  transition: all .35s var(--ease);
}
.player-box:hover {
  box-shadow: 0 30px 80px -8px rgba(0, 0, 0, 0.95), 0 0 75px 0 rgba(var(--accent-rgb), 0.35);
}

/* 核心视窗：16:9 黄金黄金比例双保险，确保大窗口且不超视口 */
.player-box .stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: calc(100vh - 150px);
  background: #000;
  overflow: hidden;
}

/* MacCMS 注入播放器与 iframe 满幅绝对定位 */
.player-box .stage .MacPlayer,
.player-box .stage video,
.player-box .stage iframe,
.player-box .stage embed,
.player-box .stage object {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
}

/* 控制底栏：精致微光磨砂 */
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 24px;
  background: rgba(15, 21, 33, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}
.player-bar .now {
  font-size: 14px;
  color: var(--txt-2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.player-bar .now b { color: var(--txt); font-weight: 600; }
.player-bar .ctl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 剧场模式 (Theater Mode / 宽屏模式) */
.play-page.is-theater {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.play-page.is-theater .player-box {
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  margin-top: -12px !important;
  box-shadow: 0 32px 90px rgba(0,0,0,0.98) !important;
}
.play-page.is-theater .player-box .stage {
  min-height: 560px;
  max-height: calc(100vh - 120px);
  aspect-ratio: 16 / 9;
}
.play-page.is-theater .player-bar,
.play-page.is-theater .crumb,
.play-page.is-theater .playlist-box,
.play-page.is-theater .sec {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* 关灯模式 (Lights Off) */
#lights-mask {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.94);
  z-index: 85;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#lights-mask.active {
  opacity: 1;
  pointer-events: auto;
}
.lights-off .player-box {
  position: relative;
  z-index: 95 !important;
  box-shadow: 0 0 100px rgba(56, 189, 248, 0.4), 0 35px 100px rgba(0,0,0,0.95) !important;
}
.lights-off .site-head {
  opacity: 0.2;
  transition: opacity .3s ease;
}
.lights-off .site-head:hover {
  opacity: 1;
}
.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--txt-3);
  margin-bottom: 16px;
}
.foot-links a:hover { color: var(--accent); }
.foot-links i { color: var(--line-2); font-style: normal; }
.foot-copy {
  text-align: center;
  font-size: 12.5px;
  color: var(--txt-3);
  line-height: 1.9;
}
.foot-copy a { color: var(--txt-2); }
.foot-copy a:hover { color: var(--accent); }

/* 回到顶部 */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #0a0e14;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  box-shadow: 0 8px 26px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .28s var(--ease);
  z-index: 80;
}
.to-top.on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #0a0e14; filter: brightness(1.08); }

/* ------------------------------ 通用工具 ------------------------------ */
.empty {
  padding: 70px 20px;
  text-align: center;
  color: var(--txt-3);
  font-size: 14px;
}
.empty .ico { font-size: 44px; opacity: .3; margin-bottom: 14px; }

.loading-line { height: 2px; background: var(--grad-accent); width: 100%; transform-origin: left; animation: ld 1s infinite var(--ease); }
@keyframes ld { 0% { transform: scaleX(0); } 50% { transform: scaleX(.6); } 100% { transform: scaleX(1); } }

/* ------------------------------ 响应式 ------------------------------ */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
  .hero { height: 400px; }
  .hero-body h2 { font-size: 32px; }
  .hero-thumbs { display: none; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .week-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .head-search { width: 170px; }
  .detail-inner { flex-direction: column; gap: 20px; padding: 24px; }
  .detail-poster { width: 160px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .week-strip { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .wrap { padding: 0 14px; }
  .site-head .wrap { gap: 12px; }
  .head-search { display: none; }
  .hero { height: auto; padding-bottom: 26px; border-radius: var(--r); }
  .hero-slide { position: relative; display: none; }
  .hero-slide.on { display: block; }
  .hero-slide .bg { position: relative; height: 240px; }
  .hero-slide .veil { background: linear-gradient(0deg, rgba(10,14,20,.96) 30%, rgba(10,14,20,.2) 100%); }
  .hero-body { position: relative; left: 0; bottom: 0; padding: 0 18px; margin-top: -40px; max-width: none; }
  .hero-body h2 { font-size: 23px; }
  .hero-dots { left: 18px; bottom: 8px; }
  .hero-arrow { display: none; }
  .hero-thumbs { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; }
  .card .name { font-size: 13px; }
  .week-strip { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .week-day { padding: 11px 6px; }
  .week-day .dt { font-size: 19px; }
  .week-list { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-wrap { height: 260px; }
  .flow-item { width: 150px; height: 214px; margin-left: -75px; }
  .feet-file { font-size: 12.5px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .filter-row .lb { width: 46px; }
  .eps { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .topic-grid { grid-template-columns: 1fr; }
  .week-strip { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   极光增强层 —— 对齐 HL093 首页体验
   ========================================================================== */

/* ------------------------------ 全屏 Hero 轮播 ------------------------------ */
.hero-aurora {
  position: relative;
  margin: -16px calc(50% - 50vw) 24px;
  width: calc(100% - 2 * (50% - 50vw));
  overflow: hidden;
  background: transparent;
}
.hero-aurora-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 78vh;
  min-height: 480px;
  max-height: 920px;
}
.hero-aurora .hslide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity .9s ease, transform .9s ease, visibility .9s;
}
.hero-aurora .hslide.on {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.hero-aurora .hslide .bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-aurora .hslide .bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 7s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,0) 100%);
}
.hero-aurora .hslide.on .bg img { transform: scale(1.13); }
.hero-aurora .hslide .mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,14,20,.62) 0%, rgba(10,14,20,.24) 48%, rgba(10,14,20,.42) 100%);
}
.hero-aurora .hslide .mask-b {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10,14,20,.94) 0%, rgba(10,14,20,.34) 42%, transparent 74%);
}
.hero-aurora-body {
  position: absolute;
  left: max(22px, calc((100vw - 1356px) / 2));
  top: 62%;
  z-index: 4;
  max-width: 760px;
  padding-right: 60px;
  transform: translateY(-50%);
}
.hero-aurora .badge {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #0a0e14;
  background: var(--grad-accent);
  border-radius: 22px;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.hero-aurora-body h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .75);
}
.hero-aurora-body h2 a { color: #fff; }
.hero-aurora-body h2 a:hover { color: var(--accent); }
.hero-aurora .meta {
  margin: 0 0 26px;
  font-size: 15px;
  color: rgba(224, 234, 244, .85);
  letter-spacing: .5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .65);
}
.hero-aurora .acts { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-aurora .btn-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  color: #0a0e14;
  font-size: 16px;
  font-weight: 800;
  border-radius: 28px;
  background: var(--grad-accent);
  box-shadow: 0 8px 26px var(--accent-glow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-aurora .btn-play:hover {
  color: #0a0e14;
  box-shadow: 0 12px 34px var(--accent-glow);
  transform: translateY(-2px) scale(1.03);
}
.hero-aurora .btn-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 28px;
  background: rgba(var(--accent-rgb), 0.10);
  border: 1px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease;
}
.hero-aurora .btn-detail:hover { background: rgba(255, 255, 255, .22); border-color: var(--accent); color: #fff; }
.hero-aurora-dots {
  position: absolute;
  left: max(22px, calc((100vw - 1356px) / 2));
  bottom: 30px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-aurora-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.hero-aurora-dots i.on { width: 24px; border-radius: 5px; background: var(--grad-accent); }

/* ------------------------------ 追剧日历（HL093 质感：中性底 + 主色描边点缀） ------------------------------ */
.cal-wrap { position: relative; }
.cal-strip {
  /* 7 天等分撑满整行（对齐 HL093）；窄屏低于 min 值时整条横向滚动 */
  display: grid;
  grid-template-columns: repeat(7, minmax(76px, 1fr));
  gap: 10px;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cal-strip::-webkit-scrollbar { display: none; }

.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 18px;
  min-width: 76px;
  text-align: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  user-select: none;
  transition: border-color .22s var(--ease), background .22s var(--ease),
              transform .2s var(--ease), box-shadow .22s var(--ease);
}
.cal-day:hover {
  border-color: rgba(var(--accent-rgb), .6);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.cal-day.on {
  background: var(--panel-3);
  border-color: rgba(var(--accent-rgb), .9);
  box-shadow: 0 0 30px var(--accent-glow);
}
/* 渐变描边（仅在支持 mask-composite 的浏览器启用，避免降级成实心色块） */
@supports ((-webkit-mask-composite: xor) or (mask-composite: exclude)) {
  .cal-day.on { border-color: transparent; }
  .cal-day.on::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: 0;
    padding: 1px;
    border-radius: 11px;
    background: var(--grad-accent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
  }
}
.cal-day > * { position: relative; z-index: 1; }

.cal-day .cw { font-size: 11px; font-weight: 500; color: var(--txt-3); }
.cal-day .cd { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--txt); }
.cal-day .cn { font-size: 10px; font-weight: 500; color: var(--accent); letter-spacing: .2px; }
.cal-day.on .cd { color: #fff; }

.cal-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 14px;
}
.cal-tabs button {
  padding: 4px 16px;
  font: 600 13px/1.75 inherit;
  color: var(--txt-3);
  background: var(--panel-2);
  border: 1px solid rgba(var(--accent-rgb), .22);
  border-radius: 20px;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease), box-shadow .2s var(--ease);
}
.cal-tabs button:hover:not(.on) {
  color: var(--txt);
  border-color: rgba(var(--accent-rgb), .62);
}
.cal-tabs button.on {
  color: #08121a;
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.cal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cal-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease),
              transform .22s var(--ease);
}
.cal-item:hover {
  border-color: rgba(var(--accent-rgb), .65);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  transform: translateY(-4px);
}
.cal-item .poster {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-3);
}
.cal-item .poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .25s var(--ease);
}
.cal-item:hover .poster img { filter: brightness(.72); }

/* 悬停播放角标 */
.cal-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.62);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}
.cal-play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  margin: -5px 0 0 -3px;
  border-left: 7px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.cal-item:hover .cal-play { opacity: 1; transform: scale(1); }

.cal-item .tx { min-width: 0; }
.cal-item .tx h4 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-item .tx p {
  margin: 0;
  font-size: 12px;
  color: var(--txt-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------ 热榜 3D 封面流（极光版） ------------------------------ */
.coverflow-wrap {
  position: relative;
  height: 360px;
  perspective: 1500px;
  margin: 10px 0 6px;
}
.coverflow-stage {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
}
.coverflow-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 320px;
  margin: -160px 0 0 -110px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-solid);
  border: 2px solid rgba(var(--accent-rgb), .25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
  transition: transform .6s cubic-bezier(.25, .46, .45, .94), opacity .5s, box-shadow .5s, border-color .5s;
  cursor: pointer;
  will-change: transform;
}
.coverflow-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.coverflow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 26%, rgba(0,0,0,.12) 55%, transparent 78%);
  pointer-events: none;
}
.coverflow-card .cf-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 16px 18px;
}
.coverflow-card .rank {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 2px;
}
.coverflow-card h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}
.coverflow-card .cf-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 10px;
}
.coverflow-card .btn-play-sm {
  display: inline-block;
  padding: 4px 16px;
  color: #0a0e14;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--grad-accent);
  border-radius: 20px;
  transition: transform .2s;
}
.coverflow-card .btn-play-sm:hover { transform: scale(1.06); }
.coverflow-card.on {
  border-color: var(--accent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 26px var(--accent-glow);
}
.coverflow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.coverflow-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.coverflow-dots i.on { width: 22px; border-radius: 4px; background: var(--grad-accent); }

/* ------------------------------ 分区横向滚动 Rail ------------------------------ */
.rail-wrap { position: relative; }
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 2px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  flex: 0 0 auto;
  width: 168px;
  scroll-snap-align: start;
  padding-top: 4px;
}
.rail-card .rcard {
  position: relative;
  z-index: 1;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.rail-card .rcard:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--accent-rgb), .6);
  box-shadow: 0 18px 40px -6px rgba(0, 0, 0, .65), 0 0 24px rgba(var(--accent-rgb), .25);
  z-index: 5;
}
.rail-card .rcard .pic {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  padding: 16px 10px;
  background: var(--panel-3);
  border-radius: var(--r) var(--r) 0 0;
}
.rail-card .rcard .pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.rail-card .rcard .pic::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 25%, rgba(0,0,0,.15) 55%, transparent 75%);
  pointer-events: none;
}
.rail-card .rcard .pic .pinfo { position: relative; z-index: 2; }
.rail-card .rcard .pic h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,.95);
}
.rail-card .rcard .pic .pmeta {
  font-size: 12px;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 8px rgba(0,0,0,.8);
}
.rail-card .rcard .racts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r) var(--r);
}
.rail-card .rcard .racts .fav {
  padding: 4px 6px;
  color: var(--txt-3);
  font-size: 13px;
  border-radius: 6px;
  transition: color .2s;
}
.rail-card .rcard .racts .fav:hover { color: #ff6b7a; }
.rail-card .rcard .racts .play {
  display: inline-block;
  padding: 4px 14px;
  color: #0a0e14;
  font-size: 12px;
  font-weight: 600;
  background: var(--grad-accent);
  border-radius: 20px;
  transition: transform .2s;
}
.rail-card .rcard .racts .play:hover { transform: scale(1.05); color: #0a0e14; }
.rail-arrow {
  position: absolute;
  top: 42%;
  z-index: 8;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 15, 23, .85);
  border: 1px solid var(--line-2);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all .25s var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.rail-wrap:hover .rail-arrow { opacity: 1; }
.rail-arrow:hover { background: var(--grad-accent); color: #0b0f17; border-color: transparent; transform: scale(1.1); box-shadow: 0 8px 24px var(--accent-glow); }
.rail-arrow.prev { left: -16px; }
.rail-arrow.next { right: -16px; }

/* ------------------------------ 专题 Rail ------------------------------ */
.zt-card {
  width: 200px;
  scroll-snap-align: start;
  flex: 0 0 auto;
}
.zt-card .zt-link { display: block; }
.zt-card .zt-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--panel-3);
}
.zt-card .zt-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.zt-card .zt-link:hover .zt-poster img { transform: scale(1.06); }
.zt-card .zt-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
}
.zt-card .zt-name {
  display: block;
  padding: 10px 12px;
  background: var(--panel-solid);
  border: 1px solid var(--line-2);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s;
}
.zt-card .zt-link:hover .zt-name { color: var(--accent); }

/* ------------------------------ 图标辅助 ------------------------------ */
.icon-in {
  display: inline-flex;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  vertical-align: -4px;
}
.icon-in svg { width: 100%; height: 100%; }

/* ------------------------------ 响应式补充 ------------------------------ */
@media (max-width: 1200px) {
  .hero-aurora-body { max-width: 600px; }
}
@media (max-width: 992px) {
  .hero-aurora-stage { height: 62vh; min-height: 420px; }
  .cal-list { grid-template-columns: repeat(2, 1fr); }
  .coverflow-wrap { height: 320px; }
}
@media (max-width: 768px) {
  .hero-aurora { margin: -5px calc(50% - 50vw) 18px; }
  .hero-aurora-stage { height: 58vh; min-height: 380px; }
  .hero-aurora-body {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 0;
    max-width: 100%;
    padding: 0 0 56px;
    transform: none;
  }
  .hero-aurora-body h2 { font-size: 26px; }
  .hero-aurora .meta { font-size: 12px; margin-bottom: 14px; }
  .hero-aurora .badge { padding: 3px 10px; margin-bottom: 10px; font-size: 11px; }
  .hero-aurora .btn-play { padding: 10px 22px; font-size: 14px; }
  .hero-aurora .btn-detail { padding: 9px 18px; font-size: 13px; }
  .hero-aurora-dots { left: 16px; bottom: 24px; }
  .cal-item .poster { flex: 0 0 36px; width: 36px; height: 48px; }
  .cal-list { grid-template-columns: 1fr; }
  .cal-strip { grid-template-columns: repeat(7, minmax(64px, 1fr)); gap: 8px; }
  .cal-day { padding: 10px 12px; }
  .cal-day .cd { font-size: 20px; }
  .cal-tabs { gap: 8px; margin: 14px 0 12px; }
  .cal-tabs button { padding: 3px 13px; font-size: 12.5px; }
  .coverflow-card { width: 170px; height: 250px; margin: -125px 0 0 -85px; }
  .rail-card { width: 140px; }
  .zt-card { width: 160px; }
}

/* ==========================================================================
   左右切换按钮（Hero 轮播 + 热榜封面流）
   ========================================================================== */

.hero-arrow,
.cf-arrow {
  position: absolute;
  top: 50%;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(10, 14, 20, .52);
  color: #fff;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
  transition: background .22s ease, border-color .22s ease, color .22s ease,
              transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.hero-arrow:hover,
.cf-arrow:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  border-color: transparent;
  color: #0a0e14;
  box-shadow: 0 10px 32px rgba(var(--accent-rgb), .35);
}
.hero-arrow:active,
.cf-arrow:active { transform: translateY(-50%) scale(.94); }
.hero-arrow:focus-visible,
.cf-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Hero 箭头 */
.hero-arrow {
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  opacity: .72;
}
.hero-arrow:hover { transform: translateY(-50%) scale(1.08); opacity: 1; }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow.prev { left: max(18px, calc((100vw - 1356px) / 2)); }
.hero-arrow.next { right: max(18px, calc((100vw - 1356px) / 2)); }

/* 热榜封面流箭头 */
.coverflow-wrap { position: relative; }
.cf-arrow {
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  opacity: 0;
}
.coverflow-wrap:hover .cf-arrow { opacity: .85; }
.cf-arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.08); }
.cf-arrow svg { width: 20px; height: 20px; }
.cf-arrow.prev { left: 4px; }
.cf-arrow.next { right: 4px; }

/* 触屏 / 窄屏：常显且缩小 */
@media (max-width: 992px) {
  .hero-arrow { width: 44px; height: 44px; opacity: .85; }
  .hero-arrow svg { width: 18px; height: 18px; }
  .cf-arrow { opacity: .85; }
}
@media (max-width: 768px) {
  .hero-arrow { width: 38px; height: 38px; top: 42%; }
  .hero-arrow svg { width: 16px; height: 16px; }
  .hero-arrow.prev { left: 10px; }
  .hero-arrow.next { right: 10px; }
  .cf-arrow { width: 38px; height: 38px; }
  .cf-arrow svg { width: 16px; height: 16px; }
  .cf-arrow.prev { left: -2px; }
  .cf-arrow.next { right: -2px; }
}

/* ------------------------------ 移动端极致体验优化 ------------------------------ */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }
  .wrap {
    padding: 0 14px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
  .card {
    min-width: 0 !important;
    width: 100% !important;
  }
  .detail-hero {
    overflow: hidden;
    margin-top: 12px;
    border: 1px solid var(--line);
  }
  .detail-inner {
    flex-direction: column;
    gap: 18px;
    padding: 20px 16px;
  }
  .detail-poster {
    max-width: 140px;
    margin: 0 auto;
  }
  .detail-main h1 {
    font-size: 20px;
    text-align: center;
  }
  .detail-meta {
    justify-content: center;
  }
  .detail-tags {
    justify-content: center;
  }
  .detail-acts {
    justify-content: center;
  }
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
    padding: 10px 8px;
    gap: 4px;
  }
  .stat .v {
    font-size: 14px;
  }
  .playlist-box {
    padding: 18px 14px;
  }
  .playlist-box .eps a {
    min-width: 50px;
    padding: 7px 12px;
    font-size: 12.5px;
  }
  .player-box {
    margin-top: 10px;
    margin-bottom: 16px;
    border-radius: var(--r);
  }
  .player-box .stage {
    min-height: 220px !important;
    max-height: none !important;
  }
  .player-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }
  .player-bar .ctl {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
}
