@charset "utf-8";
/* ============================================================================
   xmb9 —— 黑金短剧风格（纯黑底 + 青绿品牌 + 琥珀导航 · 响应式 PC / 手机）
   结构：基础重置 → 顶栏 → 琥珀导航条 → 广告模块 → 描边内容面板 → 海报墙
         → 列表/分页 → 播放页 → 弹窗
   ----------------------------------------------------------------------------
   配色：
     页面背景  #050505 + 顶部极淡暖光
     面板底    #0A0A0A   面板描边 #2A2A2A
     主文字    #EDEDED   次文字 #9A9A9A   弱化 #6B6B6B
     品牌青绿  #2AD6C3   亮青 #63F7E6
     导航琥珀  #F5A623   亮琥珀 #FFC15E
     搜索按钮红 #C22A22
   ========================================================================== */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #050505;
  color: #EDEDED;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; border: 0; }
button { font: inherit; cursor: pointer; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
::selection { background: rgba(245, 166, 35, .32); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3A3A3A; }

#app {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -220px, rgba(245, 166, 35, .07), rgba(245, 166, 35, 0) 72%),
    #050505;
  padding-bottom: 10px;
}

/* ---------- 工具类 ---------- */
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================================
   顶栏：品牌 + 白色搜索框 + 快捷菜单
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(5, 5, 5, .94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.head-inner { display: flex; align-items: center; height: 86px; gap: 24px; }

/* 品牌：青绿播放标 + 站名 / MOVIE */
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  filter: drop-shadow(0 0 14px rgba(42, 214, 195, .34));
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-txt b {
  max-width: 240px;
  font-size: 25px; font-weight: 800; line-height: 1.05; letter-spacing: 1px;
  background: linear-gradient(180deg, #7CFAEC 0%, #2AD6C3 55%, #12A999 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.brand-txt i {
  display: block; margin-top: 3px;
  font-style: normal; font-size: 9.5px; font-weight: 600;
  letter-spacing: 4.4px; line-height: 1; color: #2AD6C3; opacity: .82;
}

/* 右侧：搜索 + 快捷菜单 */
.head-right { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; }
.head-search {
  display: flex; align-items: stretch;
  width: min(430px, 40vw); height: 42px;
  border-radius: 4px; overflow: hidden;
  background: #ECECEC;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.head-search input {
  flex: 1; min-width: 0; padding: 0 14px;
  border: 0; outline: 0; background: transparent;
  font-size: 14px; color: #2A2A2A;
}
.head-search input::placeholder { color: #8C8C8C; }
.head-search-btn {
  flex: 0 0 58px; width: 58px; padding: 0; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #D2382C 0%, #AC2018 100%);
  color: #fff;
  transition: filter .18s;
}
.head-search-btn:active { filter: brightness(.9); }
.head-search-btn svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round;
}

.head-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tool-btn {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%;
  background: rgba(255, 255, 255, .03); color: #D2D2D2;
  transition: color .18s, background .18s;
}
.tool-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.tool-btn:hover { color: #FFC15E; background: rgba(245, 166, 35, .1); }

/* 快捷菜单（地球按钮 + 下拉） */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 3px;
  height: 38px; padding: 0 8px 0 9px;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 50px;
  background: rgba(255, 255, 255, .035); color: #D6D6D6;
  transition: color .18s, border-color .18s, background .18s;
}
.lang-btn svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lang-btn .ico-globe { width: 19px; height: 19px; stroke-width: 1.7; }
.lang-btn .ico-chev { width: 13px; height: 13px; stroke-width: 2; opacity: .7; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] {
  color: #FFC15E; border-color: rgba(245, 166, 35, .45); background: rgba(245, 166, 35, .08);
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  min-width: 142px; padding: 6px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .65);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 13px; color: #C9C9C9; white-space: nowrap;
  transition: color .16s, background .16s;
}
.lang-menu a:hover { color: #FFC15E; background: rgba(245, 166, 35, .1); }

/* 窄屏搜索面板 */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 12px 24px 14px;
  background: rgba(5, 5, 5, .98);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .6);
  z-index: 61;
}
.search-panel[hidden] { display: none; }
.search-form {
  display: flex; align-items: center; gap: 8px;
  max-width: 640px; margin: 0 auto; height: 42px; padding: 0 5px 0 14px;
  background: #ECECEC; border-radius: 4px;
}
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #2A2A2A; font-size: 14px; }
.search-form input::placeholder { color: #8C8C8C; }
.search-form button {
  height: 32px; padding: 0 18px; border: 0; border-radius: 3px;
  background: linear-gradient(180deg, #D2382C, #AC2018);
  color: #fff; font-size: 13px; font-weight: 600;
}
.search-form button:active { filter: brightness(.9); }

/* ============================================================================
   琥珀金导航条（PC 7 项 / 窄屏 5 项）
   ========================================================================== */
.nav-bar {
  position: relative;
  margin: 12px 0 0;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(97deg, #1C1210 0%, #2C1D13 32%, #4E3018 62%, #74451F 100%);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .6),
    inset 0 1px 0 rgba(255, 190, 90, .5),
    inset 0 -1px 0 rgba(0, 0, 0, .55);
}
.nav-bar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255, 190, 110, 0) 26%, rgba(255, 196, 120, .1) 44%, rgba(255, 190, 110, 0) 62%);
}
.nav-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; height: 72px; min-width: 0;
  font-size: 13px; color: #EDE5DC;
  transition: color .18s;
}
.nav-item:hover { color: #FFFFFF; }
.nav-ico {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 30px; border-radius: 7px;
  background: rgba(255, 176, 64, .13);
  border: 1px solid rgba(255, 186, 90, .16);
  color: #F7B24A;
  transition: background .18s, box-shadow .18s, color .18s, border-color .18s;
}
.nav-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-txt { line-height: 1; white-space: nowrap; }
.nav-item.on { color: #FFC15E; font-weight: 600; }
.nav-item.on .nav-ico {
  color: #FFD68C;
  background: rgba(255, 178, 60, .28);
  border-color: rgba(255, 200, 110, .48);
  box-shadow: 0 0 18px rgba(255, 160, 40, .42), inset 0 1px 0 rgba(255, 235, 190, .25);
}

/* ---------- 页面主体 ---------- */
.page-main { padding: 18px 0 46px; }

/* ============================================================================
   顶部营销模块（JS 渲染；五组，strip 默认带占位图，其余默认空 → 不显示）
   ========================================================================== */
#xmb9-top-modules { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
#xmb9-top-modules:empty { display: none; }

/* 幻灯片 */
.banner {
  position: relative; margin-top: 4px; border-radius: 10px; overflow: hidden;
  background: #121212;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.banner-track { display: flex; will-change: transform; }
.banner-item { position: relative; flex: 0 0 100%; display: block; padding-top: 42.857%; /* 21:9 */ }
.banner-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.banner-dot {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .3); transition: width .28s, background .28s;
}
.banner-dot.on { width: 16px; border-radius: 3px; background: #F5A623; box-shadow: 0 0 12px rgba(245, 166, 35, .85); }

/* 幻灯片下方横幅：默认 980×60，可在 JS 里用 w/h 自定义；图片拉伸铺满，不裁切 */
.strip-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }
.strip-ad {
  position: relative; display: block;
  width: 980px; max-width: 100%; height: 60px;
  border-radius: 8px; overflow: hidden;
  background: #121212;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 30px rgba(0, 0, 0, .5);
  transition: box-shadow .18s;
}
.strip-ad:hover { box-shadow: 0 0 0 1px rgba(245, 166, 35, .4), 0 14px 34px rgba(0, 0, 0, .55); }
.strip-ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }

/* 金刚区 */
.icon-sec { margin-top: 18px; }
.sec-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sec-hd h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #F0F0F0; }
.sec-hd h2::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #FFC15E, #F5A623);
  box-shadow: 0 0 10px rgba(245, 166, 35, .55);
}
.sec-sub { margin-left: auto; font-size: 12px; color: #6B6B6B; }
.icon-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* 电脑每行 8 个；不足 8 个时整行居中 */
.icon-grid .icon-card { flex: 0 1 calc((100% - 84px) / 8 - 0.5px); min-width: 0; }
.icon-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; min-width: 0; padding: 11px 6px; border-radius: 10px;
  background: var(--c-soft, rgba(245, 166, 35, .12));
  border: 1px solid var(--c-line, rgba(245, 166, 35, .5));
  box-shadow: 0 0 14px var(--c-glow, rgba(245, 166, 35, .28)), inset 0 1px 1px rgba(255, 255, 255, .08);
}
.icon-card img { display: block; width: 44px; height: 44px; max-width: 100%; object-fit: contain; }
.icon-card:active { opacity: .82; }
.icon-name { display: block; width: 100%; max-width: 100%; text-align: center; font-size: 11.5px; font-weight: 500; color: #CFCFCF; }

/* 双栏广告 */
.promo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.promo {
  position: relative; display: block; padding-top: 62.5%; border-radius: 10px; overflow: hidden;
  background: #121212;
  box-shadow: 0 0 0 1px var(--c-line, rgba(245, 166, 35, .4)), 0 0 24px var(--c-glow, rgba(245, 166, 35, .2)), 0 10px 28px rgba(0, 0, 0, .5);
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .46));
}
.promo-txt {
  position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2;
  display: flex; flex-direction: column; gap: 3px; line-height: 1.25;
  color: #FFF4E4; text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}
.promo-txt em { font-style: normal; font-size: 10px; font-weight: 500; color: #FFD08A; letter-spacing: .4px; }
.promo-txt b { font-size: 13px; font-weight: 600; }

/* 文字链 */
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.link-card {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  color: var(--c, #FFC15E);
  background: var(--c-soft, rgba(245, 166, 35, .1));
  border: 1px solid var(--c-line, rgba(245, 166, 35, .28));
  box-shadow: 0 0 12px var(--c-glow, rgba(245, 166, 35, .12));
}
.link-card:active { opacity: .8; }

/* ============================================================================
   描边内容面板（截图核心结构：外框 + 灰亮标题栏 + 海报墙）
   ========================================================================== */
.content-panel {
  background: #0A0A0A;
  border: 1px solid #2A2A2A;
  border-radius: 10px;
  padding: 9px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.panel-gap { margin-top: 16px; }
.panel-hd {
  display: flex; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 14px;
  border-radius: 5px;
  background:
    linear-gradient(100deg, #232323 0%, #2B2B2B 46%, #3B3B3B 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .5);
}
.panel-title { font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: .3px; color: #F2F2F2; min-width: 0; }
.panel-cnt { margin-left: auto; flex: none; font-size: 12px; color: #A0A0A0; white-space: nowrap; }
.panel-body { padding: 14px 6px 6px; }

/* 排序切换（分类页标题栏右侧） */
.sort-tabs { display: flex; gap: 6px; margin-left: auto; flex: none; }
.panel-cnt + .sort-tabs { margin-left: 14px; }
.sort-tab {
  height: 26px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 500; color: #C2C2C2;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: color .18s, background .18s, border-color .18s;
}
.sort-tab.on {
  color: #241503; font-weight: 700;
  border-color: transparent;
  background: linear-gradient(120deg, #FFD07A, #F5A623);
  box-shadow: 0 4px 12px rgba(245, 166, 35, .3);
}

/* ============================================================================
   海报墙（PC 6 列 / 手机 3 列）
   ========================================================================== */
.v-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 18px; }
.v-card { display: flex; flex-direction: column; min-width: 0; }
.v-cover {
  position: relative; display: block; padding-top: 133.33%; /* 3:4 竖版 */
  border-radius: 6px; overflow: hidden; background: #121212;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.v-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), filter .3s ease;
}
/* 底部压暗：保证金/集数可读 */
.v-cover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .42));
}
.v-card:hover .v-cover img { transform: scale(1.04); filter: brightness(1.07); }

/* 右下角：N集 */
.v-ep {
  position: absolute; right: 6px; bottom: 6px; z-index: 3;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(12, 12, 12, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #EDEDED; font-size: 11px; font-weight: 500; line-height: 1.35; letter-spacing: .2px;
  white-space: nowrap;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}

/* 片名：居中，最多两行 */
.v-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-top: 9px; overflow: hidden;
  font-size: 14px; font-weight: 400; line-height: 1.42; color: #D6D6D6;
  text-align: center;
  transition: color .18s;
}
.v-name:hover { color: #FFC15E; }

/* ---------- 空态 / 分页 ---------- */
.empty { padding: 76px 16px; text-align: center; font-size: 14px; color: #7A7A7A; }
.empty a { display: inline-block; margin-top: 10px; color: #F5A623; font-weight: 500; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 34px 16px 4px; font-size: 13px; }
.pager a {
  padding: 7px 14px; border-radius: 999px; color: #FFC15E;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .18s, border-color .18s;
}
.pager a:hover { background: rgba(245, 166, 35, .12); border-color: rgba(245, 166, 35, .4); }
.pager .dis { padding: 7px 14px; color: #464646; }
.pager .pg-now { color: #8A8A8A; font-size: 12.5px; }

/* ---------- 页脚 / 返回顶部 ---------- */
.page-foot { margin-top: 44px; padding: 26px 0 36px; border-top: 1px solid rgba(255, 255, 255, .05); text-align: center; font-size: 12px; color: #565656; }
.page-foot p { margin: 4px 0; line-height: 1.8; }
.page-foot a { color: #858585; transition: color .18s; }
.page-foot a:hover { color: #FFC15E; }
.foot-links span { margin: 0 8px; color: #383838; }
.to-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #FFD07A, #F5A623);
  box-shadow: 0 10px 26px rgba(245, 166, 35, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
  color: #241503;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.on { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================================
   播放页
   ========================================================================== */
.play-main { max-width: 1120px; margin: 0 auto; padding: 4px 24px 0; }
.play-hd { padding-top: 2px; }
.p-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.p-title { font-size: 25px; font-weight: 800; line-height: 1.32; letter-spacing: .2px; color: #F3F3F3; }
.p-flag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; color: #FFC15E;
  background: rgba(245, 166, 35, .12);
  border: 1px solid rgba(245, 166, 35, .34);
}
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: #9A9A9A; }
.p-meta a { color: #FFC15E; }
.p-meta i { font-style: normal; }
.p-cur { margin-top: 8px; font-size: 12.5px; color: #7A7A7A; }
.p-cur b { color: #F5A623; font-weight: 600; }

.player-wrap {
  position: relative; margin-top: 16px; padding-top: 56.25%; /* 16:9 */
  border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .07);
}
.player-wrap iframe,
.player-wrap .p-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.p-loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: #9A9A9A;
  background: radial-gradient(circle at 50% 40%, rgba(245, 166, 35, .07), rgba(5, 5, 5, .97) 70%);
}
.p-loading::before {
  content: ''; width: 16px; height: 16px; margin-right: 9px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16); border-top-color: #F5A623;
  animation: xmb9spin .8s linear infinite;
}
@keyframes xmb9spin { to { transform: rotate(360deg); } }
.p-fail {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center; font-size: 12.5px; color: #FFC15E;
  background: rgba(5, 5, 5, .93);
}
.p-noplay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.p-noplay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.p-noplay span {
  position: relative; z-index: 1; padding: 6px 14px;
  font-size: 12.5px; color: #CFCFCF;
  background: rgba(8, 8, 8, .78);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
}

.ep-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ep {
  height: 36px; padding: 0 8px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: #A8A8A8;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background .18s, color .18s;
}
.ep:hover { background: rgba(245, 166, 35, .12); color: #FFD090; }
.ep.on {
  color: #241503; font-weight: 700; border-color: transparent;
  background: linear-gradient(120deg, #FFD07A, #F5A623);
  box-shadow: 0 0 18px rgba(245, 166, 35, .34), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.p-line { margin: 2px 0; font-size: 13px; line-height: 1.9; color: #A8A8A8; }
.p-line b { color: #7A7A7A; font-weight: 500; }
.p-intro { margin-top: 8px; font-size: 13px; line-height: 1.9; color: #A8A8A8; }

/* ---------- 纯图片弹窗（右上角 × / 遮罩 / Esc 关闭） ---------- */
.img-pop {
  position: fixed; inset: 0; z-index: 90000;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  background: rgba(4, 4, 4, .86);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .24s ease;
}
.img-pop[hidden] { display: none !important; }
.img-pop.on { opacity: 1; }
.img-pop-box {
  position: relative; width: 100%; max-width: 340px;
  transform: translateY(12px) scale(.96);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.img-pop.on .img-pop-box { transform: none; }
.img-pop-link { display: block; }
.img-pop-link img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  background: #121212;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 36px rgba(245, 166, 35, .22), 0 24px 60px rgba(0, 0, 0, .7);
}
.img-pop-close {
  position: absolute; right: -8px; top: -8px; z-index: 2;
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; color: #F2F2F2;
  background: rgba(14, 14, 14, .94);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
}
.img-pop-close:active { opacity: .75; }

/* ============================================================================
   响应式
   ========================================================================== */
@media (max-width: 1280px) {
  .v-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .head-search { width: min(380px, 38vw); }
}

@media (max-width: 1080px) {
  .v-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .head-inner { height: 76px; }
  .brand-txt b { font-size: 22px; }
}

/* 窄屏：导航只留 5 项，隐藏搜索输入框，显示放大镜按钮 */
@media (max-width: 900px) {
  .head-search { display: none; }
  .tool-btn { display: flex; }
  .nav-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nav-item.sm-hide { display: none; }
  .page-main { padding: 14px 0 40px; }
  .v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 14px; }
  #xmb9-top-modules { padding: 0 14px; }
  .head-inner { height: 62px; gap: 12px; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-txt b { font-size: 21px; max-width: 160px; }
  .brand-txt i { font-size: 8px; letter-spacing: 3.4px; margin-top: 2px; }
  .head-tools { gap: 8px; }
  .tool-btn, .lang-btn { height: 34px; }
  .tool-btn { width: 34px; height: 34px; }
  .lang-btn { padding: 0 6px; }
  .lang-btn .ico-chev { display: none; }

  .nav-bar { margin-top: 10px; border-radius: 9px; }
  .nav-item { height: 66px; gap: 5px; font-size: 12px; }
  .nav-ico { width: 36px; height: 28px; border-radius: 6px; }
  .nav-ico svg { width: 18px; height: 18px; }

  .content-panel { padding: 7px; border-radius: 9px; }
  .panel-hd { min-height: 40px; padding: 0 12px; border-radius: 4px; }
  .panel-title { font-size: 13.5px; }
  .panel-cnt { font-size: 11px; }
  .panel-body { padding: 10px 4px 4px; }
  .sort-tabs { gap: 4px; }
  .sort-tab { height: 24px; padding: 0 10px; font-size: 11.5px; }

  .v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 9px; }
  .v-cover { border-radius: 5px; }
  .v-ep { right: 5px; bottom: 5px; padding: 1px 5px; font-size: 10.5px; }
  .v-name { margin-top: 7px; font-size: 12.5px; line-height: 1.38; }

  .play-main { padding: 2px 14px 0; }
  .p-title { font-size: 20px; }
  .p-meta { font-size: 12px; gap: 5px 11px; }
  .player-wrap { border-radius: 8px; margin-top: 13px; }
  .ep-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ep { height: 34px; }
  .page-foot { margin-top: 34px; padding: 22px 0 30px; }
  .to-top { right: 14px; bottom: 18px; width: 42px; height: 42px; }
  .search-panel { padding: 10px 14px 12px; }
  .banner { margin-top: 4px; }
  .strip-row { gap: 8px; margin-top: 10px; }
  .strip-ad { border-radius: 6px; }
  .icon-grid { gap: 8px; }
  .icon-grid .icon-card { flex-basis: calc((100% - 24px) / 4 - 0.5px); }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

@media (max-width: 420px) {
  .head-inner { height: 58px; }
  .brand-txt b { font-size: 19px; max-width: 140px; }
  .p-title { font-size: 18px; }
  .v-grid { gap: 16px 8px; }
  .v-name { font-size: 12px; }
}

/* ---------- 首页第一格推广卡角标（内容在 js/xmb9.js 的 XMB9_AD.firstCard） ---------- */
.v-ad-tag {
  position: absolute; left: 6px; top: 6px; z-index: 3;
  padding: 2px 6px; border-radius: 3px;
  background: linear-gradient(180deg, #FFD07A, #F5A623);
  color: #241503;
  font-size: 11px; font-weight: 700; line-height: 1.35; letter-spacing: .4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

/* ---------- 页面左右对联广告（100×100，内容在 js/xmb9.js 的 XMB9_AD.sideAds） ---------- */
.side-ad {
  position: fixed; top: 50%; z-index: 55;
  display: block;
  width: 100px; height: 100px;
  border-radius: 8px; overflow: hidden;
  transform: translateY(-50%);
  background: #121212;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55), 0 0 0 1px rgba(245, 166, 35, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.side-ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
.side-ad-left { left: 12px; }
.side-ad-right { right: 12px; }
.side-ad:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .6), 0 0 0 1px rgba(245, 166, 35, .45);
}
/* 电脑 / 手机 / 平板 / 触屏设备全部显示，不再按屏幕尺寸隐藏 */
