@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); }

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  font-size: 17px;
  line-height: 1;
}

.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));
}

.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; }

.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;
}

/* ---------- 空结果 ---------- */
.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) {
  .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; }
