@charset "utf-8";
/* ============================================================================
   xmb8 —— 汽水短剧风格（近黑底 + 荧光绿 · 响应式 PC / 手机）
   结构：基础重置 → 顶部导航 → 广告模块 → 短剧卡墙 → 列表/分页 → 播放页 → 弹窗
   ----------------------------------------------------------------------------
   配色：
     页面背景  #070A08 + 顶部极淡绿光晕
     主文字    #F2F6F3   次文字 #8B958E   弱化 #5F6A63
     强调绿    #3EE08B   亮绿 #8CFFC0   深绿底 #0F3B29
     卡片描边  rgba(255,255,255,.055)
   ========================================================================== */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #050806;
  color: #F2F6F3;
  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(62, 224, 139, .3); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #080b09; }
::-webkit-scrollbar-thumb { background: #1d2a22; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #2b3d31; }

#app {
  min-height: 100vh;
  background:
    radial-gradient(1000px 500px at 50% -240px, rgba(62, 224, 139, .11), rgba(62, 224, 139, 0) 70%),
    radial-gradient(900px 520px at 100% 32%, rgba(46, 212, 122, .035), rgba(46, 212, 122, 0) 70%),
    #070A08;
  padding-bottom: 10px;
}

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

/* ============================================================================
   顶部导航
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 10, 8, .92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.head-inner { display: flex; align-items: center; height: 64px; gap: 18px; }

/* 品牌：绿色星球标在上，站名在下（与截图一致） */
.brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 0 0 auto; gap: 1px; min-width: 0;
}
.brand-mark {
  width: 34px; height: 34px; flex: none;
  filter: drop-shadow(0 0 12px rgba(62, 224, 139, .42));
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  display: block; max-width: 92px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; line-height: 1.15; color: #EDF7F1;
}

/* 主导航 */
.main-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-item {
  position: relative; display: flex; align-items: center;
  height: 64px; padding: 0 8px;
  font-size: 14px; color: #98A29B; white-space: nowrap;
  transition: color .18s;
}
.nav-item:hover { color: #E8F5EC; }
.nav-item.on { color: #3EE08B; font-weight: 600; }
.nav-item.on::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 26px; height: 2px;
  margin-left: -13px; border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, #8CFFC0, #2ED47A);
  box-shadow: 0 0 12px rgba(62, 224, 139, .9);
}

/* 胶囊搜索框 */
.head-search {
  display: flex; align-items: center; gap: 8px;
  flex: 0 0 200px; width: 200px; height: 38px; padding: 0 14px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 999px;
  transition: border-color .18s, background .18s;
}
.head-search:focus-within { border-color: rgba(62, 224, 139, .38); background: rgba(62, 224, 139, .06); }
.head-search svg {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: #7C8881; stroke-width: 1.9; stroke-linecap: round;
}
.head-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: #EDF7F1;
}
.head-search input::placeholder { color: #6C7871; }

/* 历史 / 追剧 / 账号 */
.head-tools { display: flex; align-items: center; gap: 16px; margin-left: auto; flex: 0 0 auto; }
.tool-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #A2ACA5; white-space: nowrap;
  transition: color .18s;
}
.tool-link svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.tool-link:hover { color: #3EE08B; }
.tool-btn {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #A2ACA5;
  transition: color .18s, background .18s;
}
.tool-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn:hover { color: #3EE08B; background: rgba(255, 255, 255, .05); }

/* 窄屏分类导航（横滑一行） */
.mobile-nav-bar { display: none; }

/* 窄屏搜索面板 */
.search-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 12px 24px 14px;
  background: rgba(7, 10, 8, .98);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55);
  z-index: 61;
}
.search-panel[hidden] { display: none; }
.search-form {
  display: flex; align-items: center; gap: 10px;
  max-width: 640px; margin: 0 auto; height: 42px; padding: 0 5px 0 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
}
.search-form svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #7C8881; stroke-width: 1.9; stroke-linecap: round; }
.search-form input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font-size: 14px; }
.search-form input::placeholder { color: #6C7871; }
.search-form button {
  height: 32px; padding: 0 18px; border: 0; border-radius: 999px;
  background: linear-gradient(120deg, #8CFFC0, #2ED47A);
  color: #04130B; font-size: 13px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(46, 212, 122, .28);
}
.search-form button:active { filter: brightness(.95); }

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

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

/* 幻灯片 */
.banner {
  position: relative; margin-top: 20px; border-radius: 12px; overflow: hidden;
  background: #0C1710;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05);
}
.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, .28); transition: width .28s, background .28s;
}
.banner-dot.on { width: 16px; border-radius: 3px; background: #3EE08B; box-shadow: 0 0 12px rgba(62, 224, 139, .8); }

/* 幻灯片下方横幅：默认 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: #0C1710;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 12px 30px rgba(0, 0, 0, .45);
  transition: box-shadow .18s;
}
.strip-ad:hover { box-shadow: 0 0 0 1px rgba(62, 224, 139, .4), 0 14px 34px rgba(0, 0, 0, .5); }
.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: #F2F6F3;
}
.sec-hd h2::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #8CFFC0, #2ED47A);
  box-shadow: 0 0 10px rgba(62, 224, 139, .55);
}
.sec-sub { margin-left: auto; font-size: 12px; color: #5F6A63; }
.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: 12px;
  background: var(--c-soft, rgba(62, 224, 139, .14));
  border: 1px solid var(--c-line, rgba(62, 224, 139, .6));
  box-shadow: 0 0 14px var(--c-glow, rgba(62, 224, 139, .3)), inset 0 1px 1px rgba(255, 255, 255, .1);
}
.icon-card img { display: block; width: 44px; height: 44px; max-width: 100%; object-fit: contain; }
.icon-card:active { opacity: .8; }
.icon-name {
  display: block; width: 100%; max-width: 100%; text-align: center;
  font-size: 11.5px; font-weight: 500; color: #C5CFC8;
}

/* 双栏广告 */
.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: 12px; overflow: hidden;
  background: #0C1710;
  box-shadow: 0 0 0 1px var(--c-line, rgba(62, 224, 139, .4)), 0 0 24px var(--c-glow, rgba(46, 212, 122, .25)), 0 10px 28px rgba(0, 0, 0, .45);
}
.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, .42));
}
.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: #E8FFF0; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.promo-txt em { font-style: normal; font-size: 10px; font-weight: 500; color: #A9F7C8; 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: 9px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  color: var(--c, #8CFFC0);
  background: var(--c-soft, rgba(62, 224, 139, .1));
  border: 1px solid var(--c-line, rgba(62, 224, 139, .28));
  box-shadow: 0 0 12px var(--c-glow, rgba(46, 212, 122, .12));
}
.link-card:active { opacity: .8; }

/* ============================================================================
   短剧卡墙（核心）
   ========================================================================== */
.v-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 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: 9px; overflow: hidden; background: #0B1710;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .4);
}
.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: 42%; z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .52));
}
/* 内描边 */
.v-cover::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.v-card:hover .v-cover img { transform: scale(1.04); filter: brightness(1.07); }

/* 左上角：上新胶囊（7 天内入库 / duration 文本） */
.v-badge {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  max-width: calc(100% - 16px); padding: 4px 8px; border-radius: 4px;
  background: rgba(9, 54, 34, .9);
  border: 1px solid rgba(75, 235, 152, .28);
  box-shadow: 0 0 12px rgba(62, 224, 139, .18);
  color: #4BEB98; font-size: 11px; font-weight: 600; line-height: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 左上角：竖排 AI 短剧标签（无其他角标时） */
.v-ai-tag {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  writing-mode: vertical-rl; text-orientation: upright;
  padding: 7px 3px; border-radius: 4px;
  background: rgba(7, 32, 21, .88);
  border: 1px solid rgba(78, 235, 152, .22);
  color: #7FF0B2; font-size: 9.5px; font-weight: 600; letter-spacing: .8px; line-height: 1;
}
/* 右下角：N 集可看 */
.v-ep {
  position: absolute; right: 9px; bottom: 8px; z-index: 3;
  font-size: 12px; font-weight: 500; color: #EAF6EE; white-space: nowrap;
  text-shadow: 0 1px 7px rgba(0, 0, 0, .85);
}

.v-name {
  display: block; margin-top: 10px;
  font-size: 15px; font-weight: 600; line-height: 1.35; color: #EFF5F0;
  transition: color .18s;
}
.v-name:hover { color: #3EE08B; }
.v-sub { margin-top: 5px; font-size: 12px; color: #7F8A83; }

/* ---------- 区块标题 / 排序 / 空态 / 分页 ---------- */
.sec-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sec-bar-sub { margin-top: 34px; }
.sec-title { font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: .4px; color: #F3F8F4; min-width: 0; }
.sec-more {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  margin-left: auto; font-size: 13px; color: #8B958E; white-space: nowrap;
  transition: color .18s;
}
.sec-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sec-more:hover { color: #3EE08B; }
.list-cnt { margin-left: auto; flex: none; font-size: 12px; color: #6F7B74; white-space: nowrap; }

.sort-tabs { display: flex; gap: 8px; margin: -4px 0 20px; }
.sort-tab {
  height: 32px; padding: 0 18px; border-radius: 999px;
  display: inline-flex; align-items: center;
  font-size: 12.5px; font-weight: 500; color: #9AA59E;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: color .18s, background .18s;
}
.sort-tab.on {
  color: #04130B; font-weight: 700; border-color: transparent;
  background: linear-gradient(120deg, #8CFFC0, #2ED47A);
  box-shadow: 0 6px 18px rgba(46, 212, 122, .28);
}
.empty { padding: 80px 16px; text-align: center; font-size: 14px; color: #6F7B74; }
.empty a { display: inline-block; margin-top: 10px; color: #3EE08B; font-weight: 500; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 38px 16px 6px; font-size: 13px; }
.pager a {
  padding: 7px 14px; border-radius: 999px; color: #3EE08B;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .18s, border-color .18s;
}
.pager a:hover { background: rgba(62, 224, 139, .12); border-color: rgba(62, 224, 139, .4); }
.pager .dis { padding: 7px 14px; color: #424D46; }
.pager .pg-now { color: #6F7B74; font-size: 12.5px; }

/* ---------- 页脚 / 返回顶部 ---------- */
.page-foot { margin-top: 50px; padding: 26px 0 36px; border-top: 1px solid rgba(255, 255, 255, .055); text-align: center; font-size: 12px; color: #535E57; }
.page-foot p { margin: 4px 0; line-height: 1.8; }
.page-foot a { color: #7E8A82; transition: color .18s; }
.page-foot a:hover { color: #3EE08B; }
.foot-links span { margin: 0 8px; color: #343F38; }
.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, #8CFFC0, #2ED47A);
  box-shadow: 0 10px 26px rgba(46, 212, 122, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  color: #04130B;
  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: 1040px; margin: 0 auto; padding: 0 28px; }
.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: #F3F8F4; }
.p-flag {
  display: inline-block; padding: 2px 8px; border-radius: 5px;
  font-size: 11px; font-weight: 600; color: #7FF0B2;
  background: rgba(62, 224, 139, .12);
  border: 1px solid rgba(62, 224, 139, .32);
}
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: #8B958E; }
.p-meta a { color: #7FF0B2; }
.p-meta i { font-style: normal; }
.p-cur { margin-top: 8px; font-size: 12.5px; color: #6F7B74; }
.p-cur b { color: #3EE08B; font-weight: 600; }

.player-wrap {
  position: relative; margin-top: 16px; padding-top: 56.25%; /* 16:9 */
  border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 30px rgba(46, 212, 122, .08);
}
.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: #8B958E;
  background: radial-gradient(circle at 50% 40%, rgba(62, 224, 139, .08), rgba(4, 7, 5, .96) 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: #3EE08B;
  animation: xmb8spin .8s linear infinite;
}
@keyframes xmb8spin { 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: #7FF0B2;
  background: rgba(4, 7, 5, .92);
}
.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: #C5CFC8;
  background: rgba(7, 10, 8, .75);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
}

.panel {
  margin-top: 14px; padding: 18px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .028);
  border: 1px solid rgba(255, 255, 255, .055);
}
.ep-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.ep {
  height: 36px; padding: 0 8px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: #A0ABA3;
  background: rgba(255, 255, 255, .045);
  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(62, 224, 139, .12); color: #A9F7C8; }
.ep.on {
  color: #04130B; font-weight: 700; border-color: transparent;
  background: linear-gradient(120deg, #8CFFC0, #2ED47A);
  box-shadow: 0 0 18px rgba(46, 212, 122, .38), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.p-line { margin: 2px 0; font-size: 13px; line-height: 1.9; color: #A0ABA3; }
.p-line b { color: #6F7B74; font-weight: 500; }
.p-intro { margin-top: 8px; font-size: 13px; line-height: 1.9; color: #A0ABA3; }

/* ---------- 纯图片弹窗（右上角 × / 遮罩 / Esc 关闭） ---------- */
.img-pop {
  position: fixed; inset: 0; z-index: 90000;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  background: rgba(3, 6, 4, .84);
  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: 16px;
  background: #0B1710;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 36px rgba(46, 212, 122, .25), 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: #F2F6F3;
  background: rgba(9, 15, 11, .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: 1180px) {
  .v-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav-item { padding: 0 6px; font-size: 13px; }
  .head-search { flex-basis: 180px; width: 180px; }
  .head-tools { gap: 12px; }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .head-search { display: none; }
  .tool-btn { display: flex; }
  .head-inner { height: 58px; gap: 8px; }
  .head-tools { gap: 14px; }
  .tool-link span { display: none; }

  /* 窄屏分类导航横滑一行 */
  .mobile-nav-bar {
    display: flex; align-items: center; gap: 24px;
    padding: 0 16px 9px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .mobile-nav-bar::-webkit-scrollbar { display: none; }
  .m-nav-item {
    position: relative; flex: none;
    padding: 5px 0 7px;
    font-size: 14px; color: #A2ACA5; white-space: nowrap;
    transition: color .18s;
  }
  .m-nav-item.on { color: #3EE08B; font-weight: 600; }
  .m-nav-item.on::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    border-radius: 2px; background: linear-gradient(90deg, #8CFFC0, #2ED47A);
    box-shadow: 0 0 10px rgba(62, 224, 139, .85);
  }

  .page-main { padding: 18px 0 40px; }
  .v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }
  .play-main { padding: 0 22px; }
  .ep-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* 窄屏广告位：金刚区 4 列、双栏广告 2 列 */
@media (max-width: 900px) {
  .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: 680px) {
  .wrap { padding: 0 16px; }
  #xmb8-top-modules { padding: 0 16px; }
  .head-inner { height: 56px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand-name { font-size: 10.5px; letter-spacing: 1.1px; max-width: 82px; }
  .head-tools { gap: 10px; }
  .tool-btn { width: 34px; height: 34px; }
  .tool-link svg { width: 18px; height: 18px; }
  .mobile-nav-bar { gap: 20px; padding-bottom: 8px; }
  .m-nav-item { font-size: 13.5px; }

  .sec-bar { margin-bottom: 15px; }
  .sec-title { font-size: 22px; }
  .sec-more { font-size: 12px; }
  .v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .v-cover { border-radius: 8px; }
  .v-badge { left: 6px; top: 6px; padding: 3px 6px; font-size: 10px; max-width: calc(100% - 12px); }
  .v-ai-tag { left: 6px; top: 6px; padding: 6px 2.5px; font-size: 9px; }
  .v-ep { right: 7px; bottom: 6px; font-size: 11px; }
  .v-name { margin-top: 8px; font-size: 14px; }
  .v-sub { margin-top: 4px; font-size: 11.5px; }

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

@media (max-width: 420px) {
  .head-inner { height: 54px; }
  .p-title { font-size: 18px; }
  .sec-title { font-size: 20px; }
}
