@charset "utf-8";
/*
 * HB Noir Premium — 高端深色影院风（仅覆盖样式；业务标签在各自 html）
 *
 * 调用链：public/include.html（CSS/JS）→ 各页 head 内先 include → body 内 public/head（顶栏）
 *        → 页面主体 → public/foot（底栏+悬浮+统计 {$maccms.site_tj}）
 * 分页组件：仅 vod/type、vod/show、vod/search 在列表后 include public/paging
 * 主题文件：global → style → 本文件（最后加载，权重最高）
 */

:root {
  --theme-color: #c9a962;
  --theme-color-dim: rgba(201, 169, 98, 0.65);
  --hb-accent: #e8dcc4;
  --hb-bg-deep: #070a0f;
  --hb-bg-mid: #0e141c;
  --hb-surface: rgba(18, 24, 34, 0.92);
  --hb-surface-2: rgba(255, 255, 255, 0.04);
  --hb-border: rgba(201, 169, 98, 0.22);
  --hb-text: #e6edf5;
  --hb-muted: #8b96a8;
  --hb-header-border: rgba(201, 169, 98, 0.35);
  /* 正文避让顶栏：须与实际 #header-top 高度接近，避免手机端出现大块空白 */
  --hb-body-pad-tablet: calc(env(safe-area-inset-top, 0px) + 96px);
  --hb-body-pad-mobile: calc(env(safe-area-inset-top, 0px) + 102px);
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 60px;
  background: radial-gradient(1200px 600px at 50% -200px, rgba(201, 169, 98, 0.08), transparent),
    linear-gradient(180deg, var(--hb-bg-deep) 0%, var(--hb-bg-mid) 40%, #070a0f 100%);
  background-attachment: fixed;
  color: var(--hb-text);
}

a {
  color: var(--hb-accent);
}

a:hover {
  color: var(--theme-color);
}

.text-muted {
  color: var(--hb-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--hb-text);
}

/* 卡片面板：玻璃质感 */
.ewave-pannel-bg {
  background: var(--hb-surface) !important;
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ewave-pannel-box {
  padding: 14px 16px !important;
}

.ewave-pannel__head .title,
.ewave-pannel__head .title a {
  color: var(--hb-text) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ewave-pannel__head.bottom-line:after,
.bottom-line:after {
  border-bottom-color: var(--hb-border) !important;
}

.bottom-line-dot:before {
  border-bottom-color: rgba(139, 150, 168, 0.35) !important;
}

/* 影片网格 */
.ewave-vodlist__box .title a {
  color: var(--hb-text) !important;
}

.ewave-vodlist__detail .text,
.text-actor {
  color: var(--hb-muted) !important;
}

/* global.css 引用 ../img/play.png，主题包未带该文件时控制台 404；用半透明层替代 */
.ewave-vodlist__thumb .play {
  background-image: none !important;
  background-color: rgba(0, 0, 0, 0.28) !important;
}

.ewave-vodlist__thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hb-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ewave-vodlist__box:hover .ewave-vodlist__thumb {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}

.pic-tag.pic-tag-h {
  background: linear-gradient(135deg, #3d3420, #c9a962);
  color: #0a0e14 !important;
  font-weight: 700;
}

/* 右侧文字榜 */
.ewave-vodlist__text li a span {
  color: var(--hb-muted);
}

.ewave-vodlist__text li a:hover span:first-child {
  color: var(--theme-color);
}

/* 详情页信息区 */
.ewave-content__detail .title,
.ewave-player__detail .title,
.ewave-player__detail .title a {
  color: var(--hb-text) !important;
}

.split-line {
  border-color: var(--hb-border) !important;
}

.score.text-red,
.raty-score-num {
  color: var(--theme-color) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #a8894a, var(--theme-color)) !important;
  border-color: transparent !important;
  color: #0a0e14 !important;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(201, 169, 98, 0.35);
}

.btn-default {
  background: var(--hb-surface-2) !important;
  border-color: var(--hb-border) !important;
  color: var(--hb-accent) !important;
  border-radius: 8px;
}

/* 详情页顶部：海报+信息区（原 table-cell 窄屏易与右侧错位） */
.ewave-content__detail {
  position: relative;
}

/* #rating 在 style.css 中为绝对定位+浅灰底，深色主题下呈「白块条」 */
#rating {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: 520px;
  height: auto !important;
  min-height: 0 !important;
  margin-top: 14px !important;
  margin-right: 0 !important;
  clear: both;
  line-height: 1.4 !important;
  overflow: visible !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  border-radius: 8px;
  border-color: var(--hb-border) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  padding: 8px 10px;
  box-sizing: border-box;
}

#rating span.ratingtxt {
  background-color: transparent !important;
  color: var(--hb-muted) !important;
  padding-left: 0 !important;
  float: none !important;
  height: auto !important;
  line-height: inherit !important;
}

#rating #ratewords {
  float: none !important;
  height: auto !important;
  color: var(--hb-muted);
  font-size: 13px;
}

#rating .rating {
  float: none !important;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  width: auto !important;
  height: auto !important;
  padding: 4px 0 !important;
  overflow: visible !important;
}

#rating .rating li {
  flex-shrink: 0;
}

/* 选集区域：仅含 playlist-slide 的面板头（详情/播放），不影响首页其它板块标题 */
.ewave-pannel__head.active.bottom-line.clearfix:has(.playlist-slide) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  height: auto !important;
  min-height: 36px;
}

.ewave-pannel__head:has(.playlist-slide) .title {
  float: none !important;
}

.ewave-pannel__head:has(.playlist-slide) .playlist-slide {
  float: none !important;
  max-width: 100% !important;
  flex: 1 1 auto;
  min-width: 0;
}

.playlist-slide .swiper-slide {
  width: auto !important;
}

.playlist-slide .nav-tabs > li > a {
  white-space: nowrap;
  padding: 6px 12px !important;
}

@media (max-width: 767px) {
  .ewave-content__thumb,
  .ewave-content__detail {
    display: block !important;
    width: 100% !important;
  }

  .ewave-content__thumb .picture.v-thumb {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
  }

  .ewave-content__detail {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  #rating {
    max-width: 100%;
  }

  .ewave-pannel__head.active.bottom-line.clearfix:has(.playlist-slide) {
    flex-direction: column;
    align-items: stretch;
  }

  .ewave-pannel__head:has(.playlist-slide) .playlist-slide {
    order: 2;
    width: 100%;
  }

  .ewave-pannel__head:has(.playlist-slide) .title {
    width: 100%;
  }
}

/* 播放页：控制按钮与标题在窄屏不挤压播放器 */
@media (max-width: 767px) {
  .ewave-player__detail.detail .more-btn {
    float: none !important;
    width: 100%;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px !important;
    margin: 0 0 12px !important;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.35) !important;
    border-radius: 10px;
  }

  .ewave-player__detail.detail .more-btn li {
    flex: 1 1 calc(33.333% - 8px);
    margin: 0 !important;
    text-align: center;
  }

  .ewave-player__detail.detail .more-btn .btn {
    width: 100%;
    box-sizing: border-box;
  }

  .ewave-player__detail.detail .title {
    margin: 8px 0 12px !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    padding: 0 8px;
  }

  .ewave-player.col-pd {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* 选集列表 */
.ewave-content__playlist li a {
  border-radius: 6px;
  border-color: var(--hb-border) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--hb-accent) !important;
}

.ewave-content__playlist li a:hover,
.ewave-content__playlist li.active a {
  border-color: var(--theme-color) !important;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.25), rgba(201, 169, 98, 0.12)) !important;
  color: var(--hb-text) !important;
}

/* 导航 Tab（选集来源） */
.nav-tabs > li > a {
  color: var(--hb-muted) !important;
  border-radius: 8px 8px 0 0;
}

.nav-tabs > li.active > a {
  color: var(--theme-color) !important;
  background: transparent !important;
  border-color: transparent !important;
}

/* 分页 */
.pagination > li > a,
.pagination > li > span {
  background: var(--hb-surface-2) !important;
  border-color: var(--hb-border) !important;
  color: var(--hb-accent) !important;
  border-radius: 8px;
}

.pagination > li.active > span {
  background: linear-gradient(135deg, #a8894a, var(--theme-color)) !important;
  border-color: transparent !important;
  color: #0a0e14 !important;
}

.pagination > li > a:hover {
  border-color: var(--theme-color) !important;
  color: var(--hb-text) !important;
}

/* 表单（登录页等） */
.member-page .form-control,
.ewave-pannel-bg .form-control {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--hb-border) !important;
  color: var(--hb-text) !important;
}

.member-page label {
  color: var(--hb-muted);
}

/* 页脚 */
.container .col-pd.text-center {
  color: var(--hb-muted);
  padding-top: 24px;
  padding-bottom: 24px;
}

.container .col-pd.text-center a {
  color: var(--theme-color-dim);
}

.container .col-pd.text-center a:hover {
  color: var(--theme-color);
}

/* 首页轮播箭头与指示器 */
.index-slide .swiper-button-next,
.index-slide .swiper-button-prev {
  color: var(--theme-color);
}

.index-slide .swiper-pagination-bullet-active {
  background: var(--theme-color);
}

/* 悬浮按钮组 */
.ewave-extra li a,
.ewave-extra li span {
  background: linear-gradient(135deg, #a8894a, var(--theme-color)) !important;
  color: #0a0e14 !important;
}

.ewave-extra li a.backtop {
  background: rgba(10, 14, 20, 0.85) !important;
  color: var(--theme-color) !important;
}

.ewave-extra li .sideslip {
  background: var(--hb-surface) !important;
  border: 1px solid var(--hb-border);
}

/* ========== 顶栏：深色玻璃 + 原有 flex 导航逻辑 ========== */
#header-top.site-header-hb.ewave-header__top {
  background: rgba(10, 14, 20, 0.88) !important;
  border-top: 3px solid var(--theme-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#header-top.site-header-hb .row > .ewave-header_bd {
  width: 100%;
  box-sizing: border-box;
  padding-left: 15px;
  padding-right: 15px;
}

#header-top.site-header-hb .ewave-header_bd {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0 12px;
}

/* 桌面：侧栏拆开为三列「站点名 | 导航 | 记录+搜索」（.ewave-header__side 使用 display:contents） */
@media (min-width: 1025px) {
  #header-top.site-header-hb .ewave-header_bd {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 12px;
    flex-wrap: nowrap;
  }

  #header-top.site-header-hb .ewave-header__side {
    display: contents;
  }

  #header-top.site-header-hb .hb-header-brand {
    grid-column: 1;
    justify-self: start;
  }

  #header-top.site-header-hb .ewave-header__menu.header-menu-plain {
    grid-column: 2;
    margin-left: 8px !important;
  }

  #header-top.site-header-hb .hb-header-tools {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }
}

#header-top.site-header-hb .hb-header-brand {
  float: none !important;
  margin-top: 0 !important;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-height: 44px;
}

#header-top.site-header-hb .hb-site-logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--hb-accent);
  text-decoration: none;
  text-shadow: 0 0 24px rgba(201, 169, 98, 0.25);
}

#header-top.site-header-hb .hb-site-logo:hover {
  color: var(--theme-color);
}

#header-top.site-header-hb .ewave-header__menu.header-menu-plain {
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 8px !important;
  overflow: visible;
}

@media (max-width: 1024px) {
  #header-top.site-header-hb .ewave-header__menu.header-menu-plain {
    margin-left: 0 !important;
  }
}

#header-top.site-header-hb .ewave-header__side {
  float: none !important;
  flex: 1 1 100%;
  margin-left: 0 !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  box-sizing: border-box;
}

@media (min-width: 1025px) {
  #header-top.site-header-hb .ewave-header__side {
    flex: unset;
    width: auto !important;
    gap: 0;
  }
}

#header-top.site-header-hb .hb-header-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 1025px) {
  #header-top.site-header-hb .hb-header-tools {
    flex: unset;
    min-width: unset;
  }
}

#header-top.site-header-hb .ewave-header__search {
  float: none;
  flex: 0 0 auto;
}

#header-top.site-header-hb .ewave-header__user {
  float: none;
  flex: 0 0 auto;
}

#header-top.site-header-hb .ewave-header__search .form-control {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--hb-border) !important;
  color: var(--hb-text) !important;
  border-radius: 999px;
}

#header-top.site-header-hb .ewave-header__menu.header-menu-plain .header-menu-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
}

#header-top.site-header-hb .ewave-header__menu.header-menu-plain .header-nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 50px;
}

#header-top.site-header-hb .ewave-header__menu.header-menu-plain .header-nav-list > li {
  float: none !important;
  flex: 0 0 auto;
  margin: 0;
  display: flex;
  align-items: center;
}

#header-top.site-header-hb .ewave-header__menu.header-menu-plain .header-nav-list > li > a {
  display: inline-block;
  white-space: nowrap;
  color: var(--hb-muted) !important;
}

#header-top.site-header-hb .ewave-header__menu.header-menu-plain .header-nav-list > li > a:hover,
#header-top.site-header-hb .ewave-header__menu.header-menu-plain .header-nav-list > li.active > a {
  color: var(--theme-color) !important;
}

#header-top.site-header-hb .ewave-header__menu li.active a::after {
  background: linear-gradient(90deg, transparent, var(--theme-color), transparent) !important;
  height: 3px !important;
  border-radius: 4px;
}

#header-top.site-header-hb .ewave-header__user > li > a .icon {
  color: var(--theme-color) !important;
}

/* 播放记录：全断点可见（原 hidden-xs 在 <768px 无入口） */
#header-top.site-header-hb .hb-header-user > li {
  padding-top: 12px;
  padding-bottom: 8px;
}

@media (max-width: 767px) {
  #header-top.site-header-hb .hb-header-user > li > a .icon {
    font-size: 22px;
  }

  #header-top.site-header-hb .ewave-header__user > li .dropdown {
    right: 0;
    left: auto;
    max-width: min(320px, 92vw);
  }
}

/* Headroom 收起：双行顶栏时用更大负 margin，避免露边（script.js 仍初始化 Headroom） */
@media (max-width: 1024px) {
  #header-top.site-header-hb.top-fixed-down {
    margin-top: -132px !important;
  }
}

@media (max-width: 767px) {
  #header-top.site-header-hb.top-fixed-down {
    margin-top: -128px !important;
  }
}

@media (max-width: 1024px) {
  #header-top.site-header-hb.ewave-header__top {
    height: auto !important;
    min-height: 60px;
    padding-bottom: 6px;
  }

  body {
    padding-top: var(--hb-body-pad-tablet) !important;
  }

  #header-top.site-header-hb .ewave-header_bd {
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
  }

  /* 平板及以下：工具组拆平，站名与时钟同行、搜索独占一行 */
  #header-top.site-header-hb .hb-header-tools {
    display: contents;
  }

  #header-top.site-header-hb .hb-header-brand {
    flex: 1 1 auto;
    min-width: 0;
    margin: 8px 0 !important;
  }

  #header-top.site-header-hb .ewave-header__side {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    flex: 1 1 100%;
    margin-left: 0 !important;
    margin-top: 0;
    justify-content: flex-start;
  }

  #header-top.site-header-hb .ewave-header__user {
    flex: 0 0 auto;
    margin-left: auto !important;
  }

  #header-top.site-header-hb .ewave-header__search {
    flex: 1 1 100%;
  }

  #header-top.site-header-hb .ewave-header__menu.header-menu-plain {
    flex: 1 1 100%;
    margin-left: 0 !important;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--hb-header-border);
  }

  #header-top.site-header-hb .ewave-header__menu.header-menu-plain .header-nav-list {
    min-height: 42px;
  }

  #header-top.site-header-hb .ewave-header__menu:before {
    display: none;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: var(--hb-body-pad-mobile) !important;
  }

  #header-top.site-header-hb .ewave-header_bd {
    flex-direction: column;
    align-items: stretch;
  }

  #header-top.site-header-hb .hb-header-brand {
    width: auto;
    margin-bottom: 0 !important;
    margin-top: 4px !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  #header-top.site-header-hb .ewave-header__side {
    order: 1;
    width: 100% !important;
    margin-top: 0 !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }

  #header-top.site-header-hb .ewave-header__user {
    margin-left: auto !important;
  }

  #header-top.site-header-hb .ewave-header__search {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 4px !important;
    flex: 1 1 100%;
  }

  #header-top.site-header-hb .ewave-header__menu.header-menu-plain {
    order: 2;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--hb-header-border);
  }

  #header-top.site-header-hb .ewave-header__menu.header-menu-plain .header-nav-list > li > a {
    padding: 8px 12px;
    line-height: 1.35;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }

  #header-top.site-header-hb .ewave-header__menu.header-menu-plain .header-nav-list {
    min-height: 40px;
  }

  #header-top.site-header-hb.ewave-header__top {
    padding-bottom: 4px !important;
  }
}

/* ===== 移动端：容器边距、轮播裁切、列表双列、Tab 面板不透明 ===== */
.tab-content > .tab-pane.fade.in.active {
  opacity: 1 !important;
}

.swiper-container.index-slide,
.index-slide.swiper-container {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  body .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box;
  }

  #header-top.site-header-hb .hb-site-logo {
    font-size: clamp(0.8rem, 3.6vw, 1rem) !important;
    max-width: calc(100vw - 130px);
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }

  .swiper-container.index-slide .swiper-slide {
    box-sizing: border-box;
  }

  .row .ewave-vodlist > li.col-xs-3,
  .row .ewave-vodlist__bd > li.col-xs-3 {
    width: 50% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .ewave-vodlist .ewave-vodlist__detail .title,
  .ewave-vodlist .ewave-vodlist__detail .title a {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  /* 详情/播放页卡顿：移动端关闭玻璃模糊（GPU 成本高）；固定背景在滚动时也会加重合成 */
  body {
    background-attachment: scroll !important;
  }

  .ewave-pannel-bg {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #header-top.site-header-hb.ewave-header__top {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
