@charset "utf-8";
/*!
 * 韩剧网 V10 模板 - 主样式表
 * 重写目标：CSS 变量化 + 扁平化选择器 + 去重复，体积约为原站 1/4
 * 结构：1 变量 2 基础 3 布局 4 图标 5 头部 6 模块 7 卡片 8 榜单
 *       9 筛选 10 分页 11 详情 12 播放 13 文章 14 表单 15 用户 16 页脚
 *       17 密码墙等 18 响应式 19 广告位
 * ============================================================ */

/* ============ 1. 变量 ============ */
:root {
  --c-main: #ff2a14;
  --c-main-d: #d81e0a;
  --c-main-l: #fff2f0;
  --c-accent: #ff9800;
  --c-text: #232328;
  --c-text-2: #62666e;
  --c-text-3: #9aa0ab;
  --c-line: #eaedf1;
  --c-line-2: #e3e6eb;
  --c-bg: #f3f5f7;
  --c-card: #fff;
  --c-mask: rgba(0, 0, 0, .55);
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --w: 1280px;
  --h-head: 60px;
  --sh: 0 2px 10px rgba(0, 0, 0, .06);
  --sh-lg: 0 10px 30px rgba(0, 0, 0, .12);
  --tr: .22s cubic-bezier(.4, 0, .2, 1);
  --ff: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ff-num: "DIN Alternate", Impact, "Arial Narrow", var(--ff);
}

/* ============ 2. 基础 ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 14px/1.6 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-text); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--c-main); }
img { border: 0; vertical-align: middle; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; outline: none; }
button { cursor: pointer; border: 0; background: none; }
table { border-collapse: collapse; width: 100%; }
em, i { font-style: normal; }
mark { background: var(--c-accent); color: #fff; padding: 0 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c2c6d0; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============ 3. 布局 ============ */
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 12px; }
.page-main { min-height: 60vh; padding-bottom: 28px; }
.row { display: flex; gap: 16px; align-items: flex-start; }
.col-main { flex: 1 1 auto; min-width: 0; }
/* min-width:0 必须给：否则侧栏 flex item 的自动最小尺寸会让超长标题（nowrap）把整列撑宽 */
.col-side { flex: 0 0 300px; min-width: 0; }
.box {
  background: var(--c-card);
  border-radius: var(--r);
  box-shadow: var(--sh);
  margin-bottom: 16px;
  overflow: hidden;
}
.box-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  height: 50px;
  border-bottom: 1px solid var(--c-line);
}
.box-hd h2 { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.box-hd h2::before {
  content: "";
  display: inline-block;
  width: 4px; height: 16px;
  margin-right: 8px;
  background: var(--c-main);
  border-radius: 2px;
  vertical-align: -2px;
}
.box-bd { padding: 16px; }
.more { font-size: 13px; color: var(--c-text-3); display: inline-flex; align-items: center; gap: 4px; }
.more:hover { color: var(--c-main); }
.more .ico { width: 14px; height: 14px; }
.hide { display: none !important; }
.cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cut2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cut3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============ 4. 图标（内联 SVG 雪碧图） ============ */
.ico {
  width: 1em; height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.14em;
  flex: none;
}
.ico--fill { fill: currentColor; stroke: none; }

/* ============ 5. 头部 ============ */
.head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--c-card);
  box-shadow: 0 1px 0 var(--c-line), 0 4px 16px rgba(0, 0, 0, .04);
}
.head-in {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--h-head);
}
.logo { display: flex; align-items: center; gap: 8px; flex: none; }
/* .logo img 是备用插槽：需要图形 LOGO 时在 header.html 的 .logo 里插入 img 即可复用该尺寸 */
.logo img { height: 30px; width: auto; }
.logo b { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--c-main); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r);
  font-size: 15px;
  white-space: nowrap;
  transition: background var(--tr), color var(--tr);
}
.nav a .ico { width: 16px; height: 16px; }
.nav a:hover { background: var(--c-bg); color: var(--c-main); }
.nav a.on { color: var(--c-main); background: var(--c-main-l); font-weight: 600; }
.nav a.on .ico { stroke-width: 2.2; }

/* 搜索 */
.search { position: relative; flex: none; width: 230px; }
.search-form {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 4px 0 12px;
  background: var(--c-bg);
  border: 1px solid transparent;
  border-radius: 18px;
  transition: border-color var(--tr), background var(--tr);
}
.search-form:focus-within { background: #fff; border-color: var(--c-main); }
.search-form .ico { width: 16px; height: 16px; color: var(--c-text-3); }
.search-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 8px;
  border: 0;
  background: none;
  font-size: 13px;
}
.search-form button {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-main);
  color: #fff;
  display: grid;
  place-items: center;
}
.search-form button .ico { width: 15px; height: 15px; color: #fff; }
.search-form button:hover { background: var(--c-main-d); }

.search-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  padding: 12px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  display: none;
}
.search-drop.on { display: block; }
.search-drop strong { display: block; color: var(--c-text-3); font-size: 12px; margin-bottom: 8px; }
.search-drop .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.search-drop .tags a {
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--c-bg);
  font-size: 12px;
  color: var(--c-text-2);
}
.search-drop .tags a:hover { background: var(--c-main); color: #fff; }

.burger { display: none; width: 36px; height: 36px; border-radius: var(--r); place-items: center; }
.burger .ico { width: 22px; height: 22px; }

/* 头部用户区 */
.head-user { position: relative; flex: none; }
.head-user > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: var(--c-bg);
  font-size: 13px;
  color: var(--c-text-2);
  max-width: 150px;
}
.head-user > a:hover { background: var(--c-main-l); color: var(--c-main); }
.head-user > a .ico { width: 16px; height: 16px; }
.head-user > a b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-user > a img { flex: none; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--c-line); }
.head-user .u-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  padding: 6px 0;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  display: none;
  z-index: 30;
}
.head-user.on .u-drop { display: block; }
.head-user .u-drop a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13px; color: var(--c-text-2); }
.head-user .u-drop a:hover { background: var(--c-main-l); color: var(--c-main); }
.head-user .u-drop .ico { width: 15px; height: 15px; }

/* ============ 6. 模块 / 卡片网格 ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 18px 14px;
}
.grid--sm { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 10px; }

/* ============ 7. 卡片 ============ */
.v-card { position: relative; }
.v-card__pic {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  background: var(--c-line);
  border-radius: var(--r);
  overflow: hidden;
}
.v-card__pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--tr);
}
.v-card__pic::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56%;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  opacity: 0;
  transition: opacity var(--tr);
}
.v-card:hover .v-card__pic img { transform: scale(1.06); }
.v-card:hover .v-card__pic::after { opacity: 1; }
.v-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity var(--tr);
  z-index: 2;
}
.v-card__play .ico { width: 42px; height: 42px; stroke-width: 1.2; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .5)); }
.v-card:hover .v-card__play { opacity: 1; }
.v-card__badge {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  padding: 2px 7px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 11px;
  border-radius: var(--r) 0 var(--r) 0;
  backdrop-filter: blur(2px);
}
.v-card__badge--score { left: auto; right: 0; border-radius: 0 var(--r) 0 var(--r); color: var(--c-accent); font-weight: 700; }
.v-card__note {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 20px 8px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
  color: #fff;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--tr), transform var(--tr);
}
.v-card:hover .v-card__note { opacity: 1; transform: none; }
.v-card__title {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.v-card__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--c-text-3);
}
.v-card__sub em { font-style: normal; }

/* 横向卡片（今日推荐） */
.v-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.v-list__item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: var(--r);
  transition: background var(--tr);
}
.v-list__item:hover { background: var(--c-bg); }
.v-list__pic {
  flex: none;
  width: 104px; height: 68px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--c-line);
  position: relative;
}
.v-list__pic img { width: 100%; height: 100%; object-fit: cover; }
.v-list__pic span {
  position: absolute; inset: auto 0 0 0;
  padding: 1px 4px;
  background: rgba(0, 0, 0, .62);
  color: #fff; font-size: 11px; text-align: right;
}
.v-list__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.v-list__info h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.v-list__info p { font-size: 12px; color: var(--c-text-3); line-height: 1.5; }
.v-list__info p a:hover { color: var(--c-main); }

/* ============ 8. 榜单 ============ */
.rank-list { padding: 6px 0; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  transition: background var(--tr);
}
.rank-item:hover { background: var(--c-bg); }
.rank-item__no {
  flex: none;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 5px;
  background: var(--c-bg);
  color: var(--c-text-3);
  font-size: 12px; font-weight: 700;
}
.rank-item__no--top { background: var(--c-main); color: #fff; }
.rank-item__no--top2 { background: var(--c-accent); color: #fff; }
.rank-item__no--top3 { background: #ffb300; color: #fff; }
.rank-item__body { flex: 1 1 auto; min-width: 0; }
.rank-item__body h3 { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item__body p { font-size: 12px; color: var(--c-text-3); }
.rank-item__hot { flex: none; font-size: 12px; color: var(--c-text-3); }

/* ============ 9. 筛选条 ============ */
.filter { background: var(--c-card); border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 16px; overflow: hidden; }
.filter-row { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px dashed var(--c-line); font-size: 13px; }
.filter-row:last-child { border-bottom: 0; }
.filter-row > b { flex: none; width: 56px; color: var(--c-text-3); font-weight: 400; line-height: 26px; }
.filter-row > div { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 4px; }
.filter-row a {
  padding: 2px 10px;
  border-radius: var(--r-sm);
  color: var(--c-text-2);
  line-height: 22px;
  transition: all var(--tr);
}
.filter-row a:hover { color: var(--c-main); background: var(--c-main-l); }
.filter-row a.on { background: var(--c-main); color: #fff; }
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
}
.filter-bar h1 { font-size: 18px; font-weight: 700; }
.filter-bar h1 small { font-size: 12px; font-weight: 400; color: var(--c-text-3); margin-left: 8px; }
.filter-sort { display: flex; gap: 4px; font-size: 13px; }
.filter-sort a { padding: 3px 10px; border-radius: var(--r-sm); color: var(--c-text-2); }
.filter-sort a.on, .filter-sort a:hover { background: var(--c-main-l); color: var(--c-main); }

/* ============ 10. 分页 ============ */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 24px 16px; }
.pager a, .pager span {
  min-width: 34px; height: 34px;
  padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--c-card);
  box-shadow: var(--sh);
  font-size: 13px;
  color: var(--c-text-2);
}
.pager a:hover { color: #fff; background: var(--c-main); }
.pager .on { color: #fff; background: var(--c-main); font-weight: 700; }
.pager .off { color: var(--c-text-3); cursor: not-allowed; opacity: .6; }

/* ============ 11. 详情页 ============ */
.detail-hd { display: flex; gap: 20px; padding: 20px; }
.detail-hd__pic { flex: none; width: 200px; border-radius: var(--r); overflow: hidden; background: var(--c-line); }
.detail-hd__pic img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.detail-hd__info { flex: 1 1 auto; min-width: 0; }
.detail-hd__info h1 { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.detail-hd__info h1 em { font-size: 14px; font-weight: 400; color: var(--c-text-3); margin-left: 8px; }
.detail-score { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.detail-score b { font-size: 26px; color: var(--c-accent); font-weight: 800; line-height: 1; }
.detail-score span { font-size: 12px; color: var(--c-text-3); }
.detail-meta { font-size: 13px; color: var(--c-text-2); line-height: 2; }
.detail-meta a { color: var(--c-main); }
.detail-meta dl { display: flex; gap: 8px; }
.detail-meta dt { flex: none; color: var(--c-text-3); width: 52px; }
.detail-meta dd { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 22px;
  border-radius: 20px;
  background: var(--c-bg);
  color: var(--c-text-2);
  font-size: 14px;
  transition: all var(--tr);
}
.btn:hover { background: var(--c-line); color: var(--c-text); }
.btn--main { background: var(--c-main); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(255, 42, 20, .28); }
.btn--main:hover { background: var(--c-main-d); color: #fff; }
.btn--ghost { background: transparent; border: 1px solid var(--c-line-2); }
.btn .ico { width: 16px; height: 16px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-line); padding: 0 16px; }
.tabs a { padding: 12px 4px; margin-right: 18px; font-size: 15px; border-bottom: 2px solid transparent; color: var(--c-text-2); }
.tabs a.on { color: var(--c-main); border-bottom-color: var(--c-main); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.on { display: block; }

.ep-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; padding: 16px; }
.ep-list a {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--c-bg);
  font-size: 13px;
  text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ep-list a:hover { background: var(--c-main); color: #fff; }
.ep-list a.on { background: var(--c-main); color: #fff; font-weight: 600; }

.article-body { padding: 16px; font-size: 15px; line-height: 2; color: var(--c-text-2); }
.article-body img { margin: 10px auto; border-radius: var(--r); }
.article-body p { margin-bottom: 12px; }
.article-body h2, .article-body h3 { color: var(--c-text); margin: 16px 0 10px; font-size: 17px; }
.article-body table { margin: 12px 0; font-size: 13px; }
.article-body td, .article-body th { border: 1px solid var(--c-line); padding: 6px 10px; }
.article-body a { color: var(--c-main); }

/* ============ 12. 播放页 ============ */
.player-box { position: relative; background: #000; aspect-ratio: 16/9; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.player-box video, .player-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.player-ctrl h1 { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-ctrl .btn { height: 34px; padding: 0 16px; font-size: 13px; }
.play-source { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.play-source a { padding: 3px 12px; border-radius: var(--r-sm); background: var(--c-bg); font-size: 13px; }
.play-source a.on { background: var(--c-main); color: #fff; }

/* ============ 13. 文章 / 列表行 ============ */
.art-list li { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.art-list li:last-child { border-bottom: 0; }
.art-list__pic { flex: none; width: 132px; height: 82px; border-radius: var(--r-sm); overflow: hidden; background: var(--c-line); }
.art-list__pic img { width: 100%; height: 100%; object-fit: cover; }
.art-list__body { flex: 1 1 auto; min-width: 0; }
.art-list__body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.art-list__body p { font-size: 13px; color: var(--c-text-3); }
.art-list__body time { display: block; margin-top: 6px; font-size: 12px; color: var(--c-text-3); }

.actor-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 16px; padding: 16px; }
.actor-item { text-align: center; }
.actor-item__pic {
  width: 100%; aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-line);
  margin-bottom: 8px;
}
.actor-item__pic img { width: 100%; height: 100%; object-fit: cover; }
.actor-item h3 { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actor-item p { font-size: 12px; color: var(--c-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 14. 表单 / 评论 ============ */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--c-text-2); }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=email],
.form-row select, .form-row textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  transition: border-color var(--tr), background var(--tr);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { background: #fff; border-color: var(--c-main); }
.form-row .verify { display: flex; gap: 10px; align-items: center; }
.form-row .verify input { flex: 1 1 auto; }
.form-row .verify img { height: 42px; border-radius: var(--r-sm); cursor: pointer; }
.form-tip { font-size: 12px; color: var(--c-text-3); }
.form-tip--ok { color: #1a9c52; }
.form-tip--err { color: var(--c-main); }
.form-row .captcha { cursor: pointer; }
.agree { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--c-text-2); cursor: pointer; }
.agree input { flex: none; margin-top: 3px; }
.oauth-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: 13px; color: var(--c-text-3); }
.oauth-row .btn { height: 32px; font-size: 13px; }
.msg-row { display: flex; gap: 10px; align-items: center; }
.msg-row input { flex: 1 1 auto; }
.msg-row .btn { flex: none; white-space: nowrap; }

.cmt-list li { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--c-line); }
.cmt-list .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--c-line); }
.cmt-list .avatar img { width: 100%; height: 100%; object-fit: cover; }
.cmt-body { flex: 1 1 auto; min-width: 0; }
.cmt-body header { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--c-text-3); margin-bottom: 4px; }
.cmt-body header b { color: var(--c-text-2); font-size: 13px; }
.cmt-body p { font-size: 14px; color: var(--c-text-2); }
.cmt-reply { margin-top: 8px; padding: 8px 12px; background: var(--c-bg); border-radius: var(--r-sm); font-size: 13px; color: var(--c-text-2); }

/* ============ 15. 用户中心 ============ */
.user-layout { display: flex; gap: 16px; align-items: flex-start; }
.user-side { flex: 0 0 200px; }
.user-side .avatar { text-align: center; padding: 20px 16px; border-bottom: 1px solid var(--c-line); }
.user-side .avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--c-line); }
.user-side .avatar b { display: block; margin-top: 8px; font-size: 15px; }
.user-nav { padding: 8px 0; }
.user-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; color: var(--c-text-2); }
.user-nav a:hover, .user-nav a.on { background: var(--c-main-l); color: var(--c-main); }
.user-nav .ico { width: 16px; height: 16px; }
.auth-box { max-width: 420px; margin: 40px auto; padding: 28px; }
.auth-box h1 { font-size: 20px; text-align: center; margin-bottom: 22px; }
.auth-box .form-row { margin-bottom: 16px; }
.auth-box .btn { width: 100%; justify-content: center; height: 44px; border-radius: var(--r-sm); }
.auth-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: var(--c-text-3); }
.user-main { flex: 1 1 auto; min-width: 0; }
.user-crumb { padding: 12px 16px; border-bottom: 1px solid var(--c-line); font-size: 13px; color: var(--c-text-3); }
.user-crumb b { color: var(--c-text); font-weight: 600; }
.user-crumb .ico { width: 14px; height: 14px; vertical-align: -2px; }
.user-crumb a:hover { color: var(--c-main); }
.user-crumb--split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.user-crumb--split b { font-size: 15px; }
.user-crumb--split .more { font-size: 13px; color: var(--c-text-3); display: inline-flex; align-items: center; gap: 2px; }
.user-pad { padding: 16px; }

/* 数据总览卡 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 16px; }
.stat-card { display: block; padding: 16px; border-radius: var(--r-sm); background: var(--c-bg); border: 1px solid transparent; }
.stat-card:hover { border-color: var(--c-main); background: #fff; }
.stat-card .ico { width: 20px; height: 20px; color: var(--c-main); }
.stat-card b { display: block; margin: 8px 0 2px; font-size: 22px; font-family: var(--ff-num); color: var(--c-text); }
.stat-card span { font-size: 12px; color: var(--c-text-3); }

/* 数据表 */
.data-table { font-size: 13px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-line); }
.data-table th { background: var(--c-bg); color: var(--c-text-2); font-weight: 500; white-space: nowrap; }
.data-table td { color: var(--c-text-2); }
.data-table tr:hover td { background: var(--c-main-l); }
.data-table a { color: var(--c-text); }
.data-table a:hover { color: var(--c-main); }
.data-table .nw { white-space: nowrap; }
.data-table .num { font-family: var(--ff-num); color: var(--c-main); font-weight: 600; }

/* 记录行（浏览/收藏/播放记录） */
.u-list { padding: 8px 16px; }
.u-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.u-item:last-child { border-bottom: 0; }
.u-item__pic { flex: none; width: 62px; height: 86px; border-radius: var(--r-sm); overflow: hidden; background: var(--c-line); }
.u-item__pic img { width: 100%; height: 100%; object-fit: cover; }
.u-item__bd { flex: 1 1 auto; min-width: 0; }
.u-item__bd a { display: block; font-size: 14px; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-item__bd a:hover { color: var(--c-main); }
.u-item__meta { margin-top: 6px; font-size: 12px; color: var(--c-text-3); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.u-item__meta .ico { width: 13px; height: 13px; vertical-align: -2px; }
.u-item__act { flex: none; font-size: 12px; }
.u-item__act a { color: var(--c-text-3); }
.u-item__act a:hover { color: var(--c-main); }

/* 状态徽章 */
.st { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; line-height: 18px; }
.st--wait { background: #fff3e0; color: #e67e00; }
.st--ok { background: #e8f7ee; color: #1a9c52; }
.st--fail { background: #fdecea; color: var(--c-main); }
.st--off { background: var(--c-line); color: var(--c-text-3); }
.qr-box { text-align: center; padding: 20px; }
.qr-box img { width: 180px; height: 180px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; }
.group-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 16px; }
.group-card { padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-sm); }
.group-card b { display: block; font-size: 15px; margin-bottom: 6px; }
.group-card span { font-size: 12px; color: var(--c-text-3); }
.group-card.on { border-color: var(--c-main); background: var(--c-main-l); }
.tree-group { padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.tree-group > b { font-size: 14px; }
.tree-group ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--c-text-2); }
.tree-group li { display: flex; align-items: center; gap: 4px; }
.tree-group li .ico { width: 13px; height: 13px; }

/* ============ 16. 页脚 ============ */
.foot { background: var(--c-card); border-top: 1px solid var(--c-line); padding: 22px 0; margin-top: 20px; }
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; font-size: 13px; }
.foot-nav img { height: 24px; }
.foot-nav .sep { color: var(--c-line-2); }
.foot p { margin-top: 10px; text-align: center; font-size: 12px; color: var(--c-text-3); line-height: 1.8; }
.foot p a { color: var(--c-text-3); }
.foot p a:hover { color: var(--c-main); }

/* 关键词友链 */
.link-cloud { padding: 16px; font-size: 12px; line-height: 2.1; color: var(--c-text-3); }
.link-cloud:empty { display: none; }
.link-cloud a { color: var(--c-text-3); margin-right: 12px; white-space: nowrap; }
.link-cloud a:hover { color: var(--c-main); }

/* 返回顶部 */
.gotop {
  position: fixed;
  right: 20px; bottom: 40px;
  z-index: 80;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--c-card);
  box-shadow: var(--sh-lg);
  display: none;
  place-items: center;
  color: var(--c-text-2);
}
.gotop.on { display: grid; }
.gotop:hover { background: var(--c-main); color: #fff; }

/* 空数据 */
.empty { padding: 60px 16px; text-align: center; color: var(--c-text-3); }
.empty .ico { width: 46px; height: 46px; stroke-width: 1.2; margin-bottom: 12px; }
.empty p { font-size: 14px; }

/* 通用提示条 */
.notice {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--c-main-l);
  color: var(--c-main-d);
  font-size: 13px;
  border-radius: var(--r);
  margin-bottom: 16px;
}
.notice .ico { width: 16px; height: 16px; }

/* 面包屑 */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 0; font-size: 13px; color: var(--c-text-3); }
.crumb a { color: var(--c-text-3); }
.crumb a:hover { color: var(--c-main); }
.crumb .ico { width: 12px; height: 12px; }

/* 骨架屏 */
.sk { background: linear-gradient(90deg, #eff1f4 25%, #e4e7ec 37%, #eff1f4 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.v-card__pic img.lazy { opacity: 0; transition: opacity .3s; }
.v-card__pic img.lazy.done { opacity: 1; }

/* ============ 17. 密码墙 / 角色 / 分集剧情 / 播放器内页 ============ */
.pwd-box { max-width: 460px; margin: 60px auto; padding: 32px 28px; text-align: center; }
.pwd-box .ico { width: 44px; height: 44px; color: var(--c-main); margin-bottom: 12px; }
.pwd-box h1 { font-size: 19px; margin-bottom: 8px; }
.pwd-box p { font-size: 13px; color: var(--c-text-3); margin-bottom: 20px; }
.pwd-box .form-row { text-align: left; }
.pwd-box .btn { width: 100%; justify-content: center; height: 42px; }

.role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 16px; }
.role-item { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--c-line); border-radius: var(--r); }
.role-item__pic { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: var(--c-line); }
.role-item__pic img { width: 100%; height: 100%; object-fit: cover; }
.role-item__body { flex: 1 1 auto; min-width: 0; }
.role-item__body h3 { font-size: 14px; font-weight: 600; }
.role-item__body h3 em { font-style: normal; font-size: 12px; font-weight: 400; color: var(--c-main); margin-left: 6px; }
.role-item__body p { margin-top: 4px; font-size: 12px; color: var(--c-text-3); line-height: 1.7; }

.plot-list { padding: 16px; }
.plot-item { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--c-line-2); }
.plot-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.plot-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.plot-item h3 span { display: inline-block; width: 4px; height: 14px; background: var(--c-main); border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.plot-item p { font-size: 14px; color: var(--c-text-2); line-height: 1.9; }

.dl-list { padding: 16px; }
.dl-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.dl-list li:last-child { border-bottom: 0; }
.dl-list li > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-2); }
.dl-list li a { flex: none; height: 30px; padding: 0 14px; border-radius: var(--r-sm); background: var(--c-main); color: #fff; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.dl-list li a:hover { background: var(--c-main-d); }
.dl-list li a .ico { width: 14px; height: 14px; }

/* 播放器内页（vod/player、vod/downer 整页只剩播放器） */
html.pl-body, body.pl-body { height: 100%; margin: 0; background: #000; overflow: hidden; }
.pl-body .MacPlayer, .pl-body .pl-wrap { width: 100%; height: 100%; }

/* 下载内页（vod/downer） */
body.dn-body { background: var(--c-card); }
.dn-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px; font-size: 14px; color: var(--c-text-2); border-bottom: 1px solid var(--c-line); }
.dn-head b { color: var(--c-text); }
.dn-head a { color: var(--c-main); margin-left: auto; }
.dn-from { padding: 10px 16px 0; font-size: 13px; color: var(--c-text-3); }

/* 专题卡片（topic/index、topic/search） */
.t-card { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-card); }
.t-card:hover { border-color: var(--c-main); }
.t-card__pic { position: relative; flex: none; width: 168px; height: 105px; border-radius: var(--r-sm); overflow: hidden; background: var(--c-line); }
.t-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.t-card:hover .t-card__pic img { transform: scale(1.05); }
.t-card__badge {
  position: absolute; left: 6px; bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 11px;
}
.t-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.t-card__body h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-card__body > p { flex: 1 1 auto; font-size: 13px; color: var(--c-text-3); line-height: 1.75; }
.t-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--c-text-3); }
.t-card__foot .ico { width: 13px; height: 13px; }
.t-card__foot .more { display: inline-flex; align-items: center; gap: 2px; color: var(--c-main); }

/* 专题卡片列表 */
.t-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
@media (max-width: 560px) {
  .t-card { flex-direction: column; }
  .t-card__pic { width: 100%; height: 150px; }
}

/* 网站地图 / 通用标签云 */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a {
  padding: 4px 12px;
  border-radius: var(--r-sm);
  background: var(--c-bg);
  font-size: 13px;
  color: var(--c-text-2);
}
.tags a:hover { background: var(--c-main); color: #fff; }
.map-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--c-line-2); }
.map-row:last-child { border-bottom: 0; }
.map-row > b { flex: none; width: 96px; font-size: 14px; color: var(--c-text); line-height: 2; }
.map-row > b a { color: var(--c-main); }
.map-row .tags { flex: 1 1 auto; min-width: 0; }

/* ============ 18. 响应式 ============ */
@media (max-width: 1100px) {
  .col-side { flex-basis: 260px; }
}
@media (max-width: 960px) {
  .row { display: block; }
  .col-side { flex-basis: auto; }
  .v-list { grid-template-columns: 1fr; }
  .detail-hd { flex-direction: column; }
  .detail-hd__pic { width: 150px; }
}
@media (max-width: 768px) {
  :root { --h-head: 52px; }
  .head-in { gap: 10px; }
  .logo b { font-size: 17px; }
  .logo img { height: 26px; }
  .burger { display: grid; order: -1; }
  .nav {
    position: fixed;
    top: var(--h-head); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 12px 16px;
    background: var(--c-card);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .1);
    max-height: calc(100vh - var(--h-head));
    overflow-y: auto;
    transform: translateY(-120%);
    transition: transform var(--tr);
    z-index: 89;
  }
  .nav.on { transform: none; }
  .nav a { height: 44px; border-radius: var(--r-sm); }
  .search { flex: 1 1 auto; width: auto; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
  .v-card__title { font-size: 13px; }
  .detail-hd { padding: 14px; }
  .detail-hd__info h1 { font-size: 19px; }
  .box-bd, .article-body, .ep-list { padding: 12px; }
  .user-layout { display: block; }
  .user-side { flex-basis: auto; margin-bottom: 16px; }
  .user-nav { display: flex; flex-wrap: wrap; }
  .user-nav a { padding: 8px 12px; }
  .box-hd { padding: 0 12px; height: 46px; }
  .box-hd h2 { font-size: 16px; }
  .pager a, .pager span { min-width: 30px; height: 30px; padding: 0 8px; }
  .gotop { right: 12px; bottom: 20px; }
}

/* ============ 19. 广告位 ============ */
/* 广告位本身由 html/public/ad-*.html 提供，这里是给示例素材配套的样式
   默认片段只有 HTML 注释，不会产生任何占位高度 */
.ad-banner { display: block; max-width: var(--w); margin: 14px auto; padding: 0 12px; }
.ad-banner img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.ad-textlink { display: block; padding: 10px 14px; font-size: 14px; color: var(--c-text-2); }
.ad-textlink:hover { color: var(--c-main); }
