@charset "utf-8";
/* ===========================================================================
   黑桃影视（ys / 桌面版）主样式
   —— 本文件是本站自写的整套皮肤，替换掉原先从第三方模板整包抄来的
      common.css + main.css + site.css（合计 133KB，其中九成规则对应的是本站
      根本没有的会员/评论/留言/专题页，还引用了 7 张不存在的图片，每次访问
      都在打 404）。
   —— 只服务 template/ys/html 下那 18 个模板真实用到的 DOM；无第三方字体、
      图标库、CDN 资源；全站零外链、零阻塞 JS。
   =========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #0d0f14;
  --bg-2: #141823;
  --bg-3: #1b2030;
  --bg-4: #232939;
  --line: #262d3f;
  --txt: #e9ecf3;
  --txt-2: #a3aabd;
  --txt-3: #6f7789;
  --brand: #ffb020;
  --brand-2: #ff7a45;
  --brand-ink: #1a1205;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  --wrap: 1200px;
  --gap: 20px;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--txt);
  font: 14px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { border: 0; max-width: 100%; vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand); }
cite, em, i { font-style: normal; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- 通用工具类（模板里实际在用的那几个） ---------- */
.clearfix::after { content: ""; display: table; clear: both; }
.pull-left { float: left; }
.pull-right { float: right; }
.mt16 { margin-top: 16px; }
.mt20 { margin-top: var(--gap); }
.color-9 { color: var(--txt-3); }

.ellipsis-1 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

/* 键盘用户的跳转链接：平时藏在视口外，聚焦时滑下来 */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1200;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--brand-ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---------- 顶栏 ---------- */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto;
}

.head-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.logo-warp { flex: none; }

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--txt);
}
.site-logo:hover { color: var(--txt); }

/* 顶部品牌图：直接用模板目录里的 CB3XLOGO.png（不再用橙色渐变方块 + ♠ 字符） */
.site-logo-img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

/* 站点名文字保留原渐变样式 */
.site-logo-text {
  background: linear-gradient(135deg, var(--txt), var(--txt-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 主导航 */
.nav-bar-menu { float: none; flex: 1 1 auto; min-width: 0; }
.nav-bar-menu > ul { display: flex; flex-wrap: wrap; gap: 4px; }

.nav-bar-menu .item {
  display: block;
  position: relative;
  padding: 0 14px;
  line-height: 40px;
  border-radius: var(--radius-sm);
  color: var(--txt-2);
  font-size: 15px;
  white-space: nowrap;
}
.nav-bar-menu .item:hover { background: var(--bg-3); color: var(--txt); }

.nav-bar-menu .nav-bar-active .item { color: var(--brand); font-weight: 600; }
.nav-bar-menu .nav-bar-active .item::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

/* 搜索框 */
.head-search { float: none; flex: none; }

.search-form {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 3px 3px 3px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-3);
  transition: border-color .18s ease;
}
.search-form:focus-within { border-color: var(--brand); }

.head-search-input { flex: 1 1 auto; }

.ac_input {
  width: 190px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--txt);
  font-size: 14px;
  outline: none;
}
.ac_input::placeholder { color: var(--txt-3); }

/* ---------- 按钮 ---------- */
.hjtvui-btn {
  display: inline-block;
  padding: 0 20px;
  line-height: 36px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.hjtvui-btn:hover { color: var(--brand-ink); filter: brightness(1.08); }
.hjtvui-btn-radius { border-radius: 999px; }

.hjtvui-btn-primary {
  background: var(--bg-4);
  color: var(--txt);
}
.hjtvui-btn-primary:hover { background: var(--line); color: var(--txt); }

.hjtvui-btn.is-disabled,
.hjtvui-btn.is-disabled:hover {
  background: var(--bg-4);
  color: var(--txt-3);
  cursor: not-allowed;
  filter: none;
}

.search-form .hjtvui-btn { padding: 0 18px; line-height: 30px; }

/* ---------- 版心与栏目容器 ---------- */
.warp { padding-bottom: 40px; }

.container {
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto;
}
.container::after { content: ""; display: table; clear: both; }

.main-inner { float: left; width: calc(100% - 320px); }
.mian-sidebar { float: right; width: 300px; }

.mod,
.mod-inner,
.slide-grid,
.notice-box,
.mod-search-head {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.mod,
.mod-inner { padding: 20px; }
[mod-skin="p25"] { padding: 22px; }
[mod-skin="p2015"] { padding: 18px 16px; }

/* 栏目标题 */
.mod-head,
.mod-inner-head,
.slide-grid-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mod-head .title,
.mod-inner-head .title,
.slide-grid-head .title {
  position: relative;
  padding-left: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--txt);
}

[mod-skin="line"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 16px;
  margin-top: -8px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.mod-head .pull-right,
.mod-inner-head .pull-right {
  float: none;
  margin-left: auto;
  color: var(--txt-3);
  font-size: 13px;
}
.mod-head .pull-right:hover { color: var(--brand); }
.ep-count { color: var(--txt-3); font-size: 13px; }

/* ---------- 影片卡片网格 ---------- */
.m-list {
  display: grid;
  gap: 18px 14px;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
}
.m-list[m-list-skin="small-film"] {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

/* 首页主推「本周热播」专用：固定 6 列，不随视口宽度变（Grok 2026-09-22 定，P2-8）。
   共用网格是 repeat(auto-fill, minmax(148px,1fr))，列数随宽度在 5／6／7 之间变，
   960～1099px 退成 5 列时会把第 6 张挤成孤零零的第二行。
   换部数解决不了 —— 只会把那张孤卡挪到另一个宽度。
   ★ minmax 的下限必须是 0，**不能写 148px**：写 148px 在 960 宽下算不下 6 列、又会退回 5 列，等于没改。
   只作用于这一个 ul；「最新更新」、分类区块与全站 minmax(148px) 一律不动。 */
.m-list.ys-hot {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.m-item { min-width: 0; }

.m-item .thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
  aspect-ratio: 2 / 3;
}

.m-item .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.m-item .thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78));
  pointer-events: none;
}
.m-item .thumb:hover img { transform: scale(1.06); }

.m-item .icon-br {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
}

.m-item .label {
  display: inline-block;
  max-width: 120px;
  padding: 2px 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 176, 32, .92);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.m-item .text { padding: 9px 2px 0; }

.m-item .title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.m-item .des {
  margin-top: 2px;
  overflow: hidden;
  color: var(--txt-3);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  padding: 14px 2px;
  color: var(--txt-3);
  font-size: 13px;
}
.breadcrumb span { margin: 0 7px; opacity: .55; }
.breadcrumb cite { color: var(--txt-2); }
[mod-skin="m20"] { margin-bottom: 4px; }

/* ---------- 详情页 ---------- */
.albumDetail {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(900px 260px at 0% 0%, rgba(255, 176, 32, .10), transparent 70%),
    var(--bg-2);
}

.albumDetailMain { display: flex; gap: 22px; }

.albumDetailMain-left { flex: none; width: 200px; }

.albumDetailMain-left .thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-3);
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow);
}
.albumDetailMain-left .thumb img { width: 100%; height: 100%; object-fit: cover; }

.albumDetailMain-left .label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 176, 32, .92);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
}

.albumDetailMain-right { flex: 1 1 auto; min-width: 0; }

.albumDetailMain-right .title {
  margin-bottom: 14px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.35;
}

.intro { display: flex; flex-wrap: wrap; gap: 4px 0; }
.intro p { width: 100%; color: var(--txt-2); font-size: 13px; }
.intro p.w50 { width: 50%; }
.intro label { display: inline-block; min-width: 48px; color: var(--txt-3); }

.intro-desc {
  margin-top: 14px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--txt-2);
  font-size: 13px;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* 标签 */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.detail-tags-label { color: var(--txt-3); font-size: 13px; }

.tag-chip {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--txt-2);
  font-size: 12px;
}
.tag-chip:hover { border-color: var(--brand); color: var(--brand); }

.detail-main-btn { display: flex; gap: 12px; margin-top: 18px; }

/* 选集 */
.juji-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}
.juji-list a {
  display: block;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--txt-2);
  font-size: 13px;
  line-height: 34px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.juji-list a:hover {
  border-color: var(--brand);
  background: rgba(255, 176, 32, .12);
  color: var(--brand);
}

.empty-tip { padding: 26px 0; color: var(--txt-3); text-align: center; }

/* ---------- 播放页 ---------- */
.playWarp {
  display: block;
  margin-bottom: var(--gap);
  background: #07080b;
  border-bottom: 1px solid var(--line);
}

.playArea {
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto;
  padding: 20px 0;
}

.playMain { display: flex; gap: 14px; }

.playBox {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.player-iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 播放器加载中覆盖层 ----------
   只在播放器 iframe 还没起播时盖在 .playBox 上（见 heitao.js 的 initPlayerLoading）。
   z-index 必须高于 MacPlayer.Play() 写进来的 #buffer / #install iframe（99998）。 */
.player-loading {
  position: absolute;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: radial-gradient(circle at 50% 38%, rgba(255, 176, 32, .10), transparent 62%), #07080b;
  color: var(--txt-2);
  font-size: 13px;
  text-align: center;
  pointer-events: none;          /* 不挡播放器/遮罩的点击 */
  transition: opacity .35s ease, visibility .35s ease;
}
.player-loading.is-done { opacity: 0; visibility: hidden; }

.player-loading-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .14);
  border-top-color: var(--brand);
  animation: heitao-player-spin .85s linear infinite;
}
.player-loading-text { color: var(--txt); font-size: 14px; letter-spacing: .02em; }
.player-loading-hint { color: var(--txt-3); font-size: 12px; }

@keyframes heitao-player-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .player-loading-ring { animation-duration: 2.4s; }
}

/* ---------- 移动端：把播放区域拉高 ----------
   竖屏短剧（9:16 片源）在 16:9 的框里只有一小条画面，手机上很难看清。
   窄屏改为接近竖屏的比例，并限制不要超过太高的视口高度；
   横屏片源仍由 video{object-fit:contain} 上下留黑，不会被拉伸变形。 */
@media (max-width: 860px) {
  .playBox { aspect-ratio: 3 / 4; max-height: 82vh; }
}
@media (max-width: 620px) {
  .playBox { aspect-ratio: 2 / 3; max-height: 78vh; }
}

.player-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--txt-3);
}

.playSlider {
  flex: none;
  width: 236px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.playScroll {
  height: 100%;
  max-height: 100%;
  padding: 10px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-4) transparent;
}
.playScroll::-webkit-scrollbar { width: 6px; }
.playScroll::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--bg-4); }

.playScrollMain { display: flex; flex-direction: column; gap: 4px; }

.playLink {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  color: var(--txt-2);
  font-size: 13px;
  line-height: 32px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.playLink i {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--txt-3);
}
.playLink:hover { background: var(--bg-3); color: var(--txt); }
.playLink.active { background: rgba(255, 176, 32, .14); color: var(--brand); font-weight: 600; }
.playLink.active i { background: var(--brand); }

.playInfo { margin-top: 16px; }

.playInfo h1 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
}
.playInfo h1 span { color: var(--txt-2); font-size: 15px; font-weight: 400; }
.playInfo h1 .drama-name { color: var(--txt); font-size: 19px; font-weight: 600; }

.info-list { margin-top: 8px; }
.info-list ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.info-list li { color: var(--txt-2); font-size: 13px; }
.info-list b { color: var(--txt-3); font-weight: 400; }

.playToolbar { margin-top: 14px; }
.playToolbar ul { display: flex; flex-wrap: wrap; gap: 10px; }

.play-step {
  display: inline-block;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--txt-2);
  font-size: 13px;
  line-height: 32px;
}
.play-step:hover { border-color: var(--brand); color: var(--brand); }
.play-step.is-disabled { color: var(--txt-3); opacity: .5; cursor: not-allowed; }

/* ---------- 侧栏排行 ---------- */
.slide-grid-main { margin-top: -4px; }
.rank-list { display: flex; flex-direction: column; gap: 2px; }

.rank-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.rank-list li:last-child { border-bottom: 0; }

.rank-list .num {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--bg-3);
  color: var(--txt-3);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.rank-list .num1,
.rank-list .num2,
.rank-list .num3 {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
}

.rank-list b {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- 筛选 ---------- */
.classifyWarp { margin-bottom: 18px; }
.classifyList { display: flex; flex-direction: column; gap: 10px; }

.classifyType { display: flex; gap: 10px; }

.u-title {
  flex: none;
  width: 48px;
  padding-top: 4px;
  color: var(--txt-3);
  font-size: 13px;
  font-weight: 400;
}

.classifyType ul {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.classifyType a {
  display: block;
  padding: 2px 12px;
  border-radius: 999px;
  color: var(--txt-2);
  font-size: 13px;
}
.classifyType a:hover { background: var(--bg-3); color: var(--txt); }
.classifyType a.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-weight: 600;
}

/* ---------- 搜索页标题条 ---------- */
.mod-search-head { padding: 14px 20px; margin-bottom: var(--gap); }
.mod-search-head li { font-size: 16px; font-weight: 600; }
.mod-search-head .active a { color: var(--brand); }

/* ---------- 分页 ---------- */
.mod-pagination { margin-top: var(--gap); }
.mod-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.mod-pagination a {
  display: block;
  min-width: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--txt-2);
  font-size: 13px;
  line-height: 34px;
  text-align: center;
}
.mod-pagination a:hover { border-color: var(--brand); color: var(--brand); }
.mod-pagination .page-active a {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-weight: 600;
}
/* 分页辅助元素：总条数提示、省略号、列表项（结构见 html/public/paging.html） */
.mod-pagination .page-list { margin-top: 10px; }
.mod-pagination .page-tip { color: var(--txt-3); font-size: 13px; text-align: center; }
.mod-pagination .page-item { display: block; }
.mod-pagination .page-gap {
  display: block;
  min-width: 24px;
  padding: 0 4px;
  color: var(--txt-3);
  font-size: 13px;
  line-height: 34px;
  text-align: center;
}



/* ---------- 空结果 ---------- */
.no_data_div { padding: 50px 0; }
.no_data { text-align: center; color: var(--txt-3); }
.no_data img { width: 160px; height: auto; opacity: .35; }
.no_data p { margin-top: 12px; font-size: 14px; }

/* ---------- 提示页（404 / msg / jump） ---------- */
.notice-page { padding: 60px 0; }

.notice-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 30px;
  text-align: center;
}
.notice-code {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notice-box h1 { margin: 6px 0 10px; font-size: 20px; }
.notice-box p { color: var(--txt-2); }
.notice-box p + p { margin-top: 10px; }
.notice-jump b { color: var(--brand); }
.notice-box .hjtvui-btn { margin-top: 14px; }

/* ---------- 页脚 ---------- */
.footer-wrap {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-inner {
  width: min(var(--wrap), 100% - 32px);
  margin: 0 auto;
}

.footer-con { padding: 28px 0 20px; }
.f_ct { display: flex; flex-wrap: wrap; gap: 30px 60px; }
.f_ul { min-width: 180px; }
.f_ul h3 { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.ul_w1 { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ul_w1 li { color: var(--txt-3); font-size: 13px; }
.ul_r .ul_w1 { max-width: 560px; }

.footer-bottom { padding: 14px 0 22px; border-top: 1px solid var(--line); }
.copyright { color: var(--txt-3); font-size: 12px; }

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 28px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--txt-2);
  font-size: 12px;
  line-height: 40px;
  text-align: center;
}
.back-to-top:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- 窄屏兜底（桌面模板被窄窗口打开时也要能看） ---------- */
@media (max-width: 1080px) {
  .main-inner,
  .mian-sidebar { float: none; width: 100%; }
  .mian-sidebar { margin-top: var(--gap); }
  .playMain { flex-direction: column; }
  .playSlider { width: 100%; }
  .playScroll { max-height: 240px; }
}

@media (max-width: 860px) {
  /* 主推在窄屏改 3 列（3＋3），否则 820 会变成 4＋2。沿用这个已有断点，不新造 */
  .m-list.ys-hot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .head-bar { flex-wrap: wrap; height: auto; gap: 10px 18px; padding: 10px 0; }
  .nav-bar-menu { order: 3; width: 100%; overflow-x: auto; }
  .nav-bar-menu > ul { flex-wrap: nowrap; }
  .head-search { margin-left: auto; }
  .ac_input { width: 130px; }
  .albumDetailMain { flex-direction: column; }
  .albumDetailMain-left { width: 150px; }
  .intro p.w50 { width: 100%; }
}

/* ---------- 列表页主标题（分类 / 筛选）---------- */
.page-title {
  margin: 0 0 14px;
  padding-left: 12px;
  position: relative;
  font-size: 21px;
  font-weight: 700;
}
.page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 18px;
  margin-top: -9px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

.mod-search-head h1 { font-size: 16px; font-weight: 600; }

/* ===========================================================================
   苹果CMS（maccms10）适配补充样式
   原始皮肤只覆盖了 template/ys/html 下的真实 DOM；这里补上模板里新增的
   年龄提示层、页脚免责声明折叠块、播放器占位等结构，保持同一套变量与观感。
   =========================================================================== */

/* ---------- 页脚免责声明（details 折叠） ---------- */
.heitao-legal {
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-3);
}

.heitao-legal summary {
  cursor: pointer;
  color: var(--txt-2);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}
.heitao-legal summary::-webkit-details-marker { display: none; }
.heitao-legal summary::before {
  content: "▸ ";
  color: var(--brand);
}
.heitao-legal[open] summary::before { content: "▾ "; }

.heitao-legal__body { margin-top: 8px; }
.heitao-legal__body h4 {
  margin: 12px 0 4px;
  color: var(--txt);
  font-size: 13px;
  font-weight: 600;
}
.heitao-legal__body p {
  color: var(--txt-3);
  font-size: 12px;
  line-height: 1.8;
}
.heitao-legal__body a { color: var(--brand); }

/* ---------- 年龄提示层 ---------- */
.heitao-age-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow: auto;
  padding: 24px;
  background: #151212;
  color: #f4efe6;
}
.heitao-age-gate[hidden] { display: none; }

.heitao-age-gate__frame {
  width: min(640px, 100% - 8px);
  margin: 8vh auto 0;
  padding: 34px 30px;
  border: 1px solid rgba(244, 239, 230, .14);
  border-radius: 14px;
  background: #1d1a19;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}

.heitao-age-gate__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* 年龄提示层左上角的品牌图：与顶部 logo 同一张 CB3XLOGO.png
   （原来是 ♠ 字符，2026-11 换成图片，保持全站品牌一致） */
.heitao-age-gate__logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.heitao-age-gate__eyebrow {
  margin-top: 18px;
  color: var(--txt-3);
  font-size: 12px;
  letter-spacing: 3px;
}

.heitao-age-gate__title {
  margin: 8px 0 14px;
  font-size: 22px;
  font-weight: 700;
}

.heitao-age-gate__copy p {
  color: #cfc7bb;
  font-size: 14px;
  line-height: 1.9;
}
.heitao-age-gate__copy p + p { margin-top: 10px; }

.heitao-age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}

.heitao-age-gate__continue {
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 42px;
}

.heitao-age-gate__leave {
  color: #b8afa2;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.heitao-age-gate__note {
  margin-top: 18px;
  color: #8d8578;
  font-size: 12px;
}
.heitao-age-gate__noscript { color: #b8afa2; font-size: 12px; }

html.heitao-gate-locked,
html.heitao-gate-locked body { overflow: hidden !important; }

/* ---------- 播放器占位 / 播放页提示 ---------- */
.heitao-player-cookie-error {
  padding: 8px 12px;
  background: rgba(255, 122, 69, .14);
  color: var(--brand-2);
  font-size: 13px;
  text-align: center;
}
.heitao-player-cookie-error[hidden] { display: none; }

.player-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--txt-3);
  font-size: 14px;
}

/* 播放器容器：{$player_js} 生成的 iframe 会填满整个区域 */
.playBox > iframe,
.playBox > script + div,
.playBox .MacPlayer { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- 详情页补充 ---------- */
.albumDetailMain-right .intro-desc { max-height: 7.6em; }

.ep-count { white-space: nowrap; }

/* 选集为空时的提示 */
.juji-list + .empty-tip { margin-top: 8px; }

/* ---------- 搜索页补充 ---------- */
.mod-search-head .search-tip {
  color: var(--txt-3);
  font-size: 13px;
  font-weight: 400;
}
.mod-search-head .search-tip b { color: var(--brand); font-weight: 600; }

/* ---------- 分类页频道条：当前频道高亮 ---------- */
.classifyType a.active,
.classifyType a.is-current {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-weight: 600;
}

/* ---------- 详情 / 播放页的标签链接 ---------- */
.tag-chip { white-space: nowrap; }

/* ---------- 打印与超窄屏 ---------- */
@media (max-width: 620px) {
  .head-search { order: 2; width: 100%; margin-left: 0; }
  .search-form { width: 100%; }
  .ac_input { width: 100%; }
  .logo-warp { order: 1; }
  .nav-bar-menu { order: 3; }
  .m-list { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
  .footer-con { padding: 20px 0 14px; }
  .mod-pagination ul { gap: 5px; }
  .mod-pagination a { min-width: 30px; padding: 0 7px; line-height: 30px; font-size: 12px; }
  .mod-pagination .page-gap { min-width: 20px; line-height: 30px; font-size: 12px; }
}


/* ---------- 分集剧情（vod/plot） ---------- */
.plot-list { margin: 0; padding: 0; list-style: none; }
.plot-item { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.plot-item:last-child { border-bottom: 0; }
.plot-title { margin: 0 0 6px; color: var(--txt); font-size: 15px; font-weight: 600; }
.plot-desc { margin: 0; color: var(--txt-3); font-size: 14px; line-height: 1.8; }

/* ---------- 角色演员（vod/role） ---------- */
.role-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.role-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.role-thumb { flex: 0 0 auto; width: 120px; height: 160px; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.role-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.role-text { min-width: 0; }
.role-name { margin: 0 0 6px; color: var(--txt); font-size: 15px; font-weight: 600; }
.role-actor { margin: 0; color: var(--txt-3); font-size: 13px; line-height: 1.7; }

/* ---------- 人机验证（public/verify） ---------- */
.verify-captcha { margin: 14px 0 0; }
.verify-captcha img { display: block; border-radius: 6px; cursor: pointer; background: rgba(255, 255, 255, .06); }

/* ---------- ajax 详情片段头部 ---------- */
.ajax-detail-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--txt); font-size: 16px; font-weight: 600; }

@media (max-width: 620px) {
  .role-list { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .role-item { flex-direction: column; }
  .role-thumb { width: 100%; height: 180px; }
}


/* ---------- 下载页 / 空状态 ---------- */
.down-group { margin-bottom: 18px; }
.down-group-title { margin: 0 0 10px; color: var(--txt); font-size: 15px; font-weight: 600; }
.down-group-title em,
.juji-list a em { color: var(--brand); font-style: normal; font-size: 12px; }
.search-empty { padding: 26px 0; text-align: center; }
.search-empty,
.page-desc { color: var(--txt-3); }
.page-desc { margin: 8px 0 14px; }

