@charset "utf-8";
/* ============================================================================
   xmb11 —— 「黄桃短剧」暗色短剧模板（近黑底 + 明黄品牌 + AI 绿）
   参考截图：D:\aixm\jt\电脑端4.png / 手机端4.png
   结构：基础重置 → 顶栏/导航 → 广告模块 → 卡片墙（PC 6 列 / 手机 2 列）
         → 列表/分页 → 播放页 → 悬浮入口（AI/返回顶部/浏览记录）→ 弹窗
   ----------------------------------------------------------------------------
   配色：
     页面背景  #0B0B0C
     顶栏/卡片 #101012 / #141416
     主文字    #EDEDEF   次文字 #9B9CA1   弱化 #6E6F75
     品牌黄    #FFD21E   深黄 #FFB800
     AI 绿     #4AE3A5   深绿底 #153B31
     评分星    #FFD21E   更新角标 rgba(0,0,0,.62)
   ========================================================================== */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: #0B0B0C; }
body {
  margin: 0;
  background: #0B0B0C;
  color: #EDEDEF;
  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(255, 210, 30, .24); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0B0B0C; }
::-webkit-scrollbar-thumb { background: #2A2A2E; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3A3A3F; }
[hidden] { display: none !important; }

#app { min-height: 100vh; background: #0B0B0C; padding-bottom: 10px; }

/* ---------- 工具类 ---------- */
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 26px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ============================================================================
   顶栏：黄色 H 标 + 站名 / 横向导航 / 胶囊搜索 / 消息 / 登录
   ========================================================================== */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 12, .94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.head-inner { display: flex; align-items: center; height: 78px; gap: 30px; position: relative; }

/* 品牌 */
.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 5px 14px rgba(255, 210, 30, .22)); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { max-width: 240px; font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: .5px; color: #F5F5F6; }

/* 横向导航（当前项 = 黄底黑字胶囊） */
.head-nav { display: flex; align-items: center; gap: 6px; height: 100%; min-width: 0; flex: 0 1 auto; overflow: hidden; }
.hn {
  display: inline-flex; align-items: center; height: 38px; padding: 0 14px;
  border-radius: 9px;
  font-size: 14.5px; font-weight: 500; color: #B6B7BC;
  white-space: nowrap;
  transition: color .16s, background .16s;
}
.hn:hover { color: #fff; background: rgba(255, 255, 255, .055); }
.hn.on {
  background: #FFD21E; color: #151515; font-weight: 700;
  box-shadow: 0 6px 20px rgba(255, 210, 30, .2);
}

/* 胶囊搜索 */
.head-search {
  display: flex; align-items: center; flex: 0 0 220px; min-width: 160px;
  height: 40px; padding-right: 14px;
  background: #151517;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 999px;
  transition: border-color .18s, background .18s;
}
.head-search:focus-within { border-color: rgba(255, 210, 30, .5); background: #18181B; }
.ss-ico {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-left: 4px; padding: 0;
  border: 0; border-radius: 50%;
  background: #FFD21E; color: #151515;
  flex: none;
}
.ss-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.head-search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 10px;
  border: 0; outline: 0; background: transparent;
  font-size: 13.5px; color: #EDEDEF;
  -webkit-appearance: none; appearance: none;
}
.head-search input::placeholder { color: #7C7D83; }

/* 右侧：消息 / 登录 */
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.icon-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .075); border-radius: 50%;
  background: #151517; color: #C9CACF;
  transition: border-color .18s, color .18s;
}
.icon-btn:hover { border-color: rgba(255, 210, 30, .45); color: #FFD21E; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .dot {
  position: absolute; right: 9px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #FFD21E; box-shadow: 0 0 0 2px #151517;
}

.login-btn {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 132px; height: 40px; padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  background: transparent; color: #F0F0F2;
  font-size: 13.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden;
  transition: border-color .18s, color .18s, background .18s;
}
.login-btn:hover { border-color: rgba(255, 210, 30, .55); color: #FFD21E; background: rgba(255, 210, 30, .05); }
.login-btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.login-btn span { overflow: hidden; text-overflow: ellipsis; }

/* 手机端按钮（桌面隐藏） */
.m-menu-toggle, .m-search-btn { display: none; }
.m-menu-toggle svg, .m-search-btn svg { fill: none; stroke: currentColor; stroke-linecap: round; }
.m-search-btn svg { fill: none; stroke: currentColor; stroke-linecap: round; }

/* 手机搜索面板 / 手机菜单（桌面隐藏） */
.m-search-panel, .m-menu { display: none; }

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

/* ============================================================================
   顶部营销模块（JS 渲染；四组默认空 → 不显示）
   ========================================================================== */
#xmb11-top-modules { margin-top: 2px; margin-bottom: 22px; }
#xmb11-top-modules:empty { display: none; }

/* 幻灯片 */
.banner {
  position: relative; margin-top: 2px; border-radius: 12px; overflow: hidden;
  background: #151518;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .42), 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: 10px; 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, .5); box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
  transition: width .28s, background .28s;
}
.banner-dot.on { width: 16px; border-radius: 3px; background: #FFD21E; }

/* 幻灯片下方 980×60 横幅（自动居中） */
.strip-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.strip-ad {
  position: relative; display: block;
  width: 980px; max-width: 100%; height: 60px; /* 默认 980×60，JS 可用 w/h 覆盖 */
  border-radius: 8px; overflow: hidden;
  background: #151518;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 10px 26px rgba(0, 0, 0, .3);
  transition: box-shadow .18s;
}
.strip-ad:hover { box-shadow: 0 0 0 1px rgba(255, 210, 30, .4), 0 12px 30px rgba(0, 0, 0, .4); }
.strip-ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }

/* 金刚区 */
.icon-sec { margin-top: 20px; }
.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: #EDEDEF; }
.sec-hd h2::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #FFE467, #FFB800);
}
.sec-sub { margin-left: auto; font-size: 12px; color: #77787E; }
.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: 12px 6px; border-radius: 12px;
  background: var(--c-soft, rgba(255, 210, 30, .1));
  border: 1px solid var(--c-line, rgba(255, 210, 30, .45));
  box-shadow: 0 6px 18px var(--c-glow, rgba(255, 210, 30, .18));
}
.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: #C4C5CA; }

/* 双栏广告 */
.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.promo {
  position: relative; display: block; padding-top: 62.5%; border-radius: 12px; overflow: hidden;
  background: #151518;
  box-shadow: 0 0 0 1px var(--c-line, rgba(255, 210, 30, .35)), 0 12px 30px rgba(0, 0, 0, .35);
}
.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, .6));
}
.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: #FFF6DA; text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.promo-txt em { font-style: normal; font-size: 10px; font-weight: 500; color: #FFD98A; letter-spacing: .4px; }
.promo-txt b { font-size: 13px; font-weight: 600; }

/* 文字链 */
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.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, #FFD21E);
  background: var(--c-soft, rgba(255, 210, 30, .1));
  border: 1px solid var(--c-line, rgba(255, 210, 30, .26));
  box-shadow: 0 6px 16px var(--c-glow, rgba(255, 210, 30, .1));
}
.link-card:active { opacity: .8; }

/* ============================================================================
   首页作品总数 / 列表标题 + 排序
   ========================================================================== */
.home-count { margin: 2px 0 20px; font-size: 13px; color: #7E7F85; letter-spacing: .2px; }

.list-hd {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  padding: 2px 0 16px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.list-title { font-size: 22px; font-weight: 800; line-height: 1.3; color: #F2F2F4; }
.list-title-sm { font-size: 18px; }
.list-cnt { font-size: 12.5px; color: #77787E; }
.sort-tabs { display: flex; gap: 8px; margin-left: auto; flex: none; }
.sort-tab {
  display: inline-flex; align-items: center;
  height: 30px; padding: 0 14px; border-radius: 999px;
  background: #17171A; color: #A3A4A9;
  font-size: 12.5px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: background .18s, color .18s, border-color .18s;
}
.sort-tab:hover { background: #1E1E22; color: #E4E4E7; }
.sort-tab.on { background: #FFD21E; color: #151515; border-color: #FFD21E; font-weight: 700; }

/* ============================================================================
   卡片墙（PC 6 列 / 手机 2 列）
   卡片本身透明，只有封面圆角 + 下方文字，贴合截图
   ========================================================================== */
.v-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 20px; }
.v-card { display: flex; flex-direction: column; min-width: 0; }

.v-cover {
  position: relative; display: block; padding-top: 150%; /* 2:3 竖版 */
  border-radius: 6px; overflow: hidden;
  background: #17171A;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .045);
}
.v-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.v-card:hover .v-cover img { transform: scale(1.045); }
.v-card:hover .v-cover { box-shadow: 0 0 0 1px rgba(255, 210, 30, .5), 0 14px 34px rgba(0, 0, 0, .5); }

/* 左上角：黄桃原创 */
.v-badge {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 3px;
  height: 21px; padding: 0 6px; border-radius: 4px;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 210, 30, .42);
  color: #FFD84D;
  font-size: 10.5px; font-weight: 700; line-height: 1;
  white-space: nowrap;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.v-badge svg { width: 10px; height: 10px; fill: #FFD84D; stroke: none; }

/* 右上角：评分 */
.v-rate {
  position: absolute; right: 9px; top: 9px; z-index: 3;
  display: inline-flex; align-items: baseline; gap: 2px;
  font-size: 12px; font-weight: 700; line-height: 1;
  color: #F4F4F5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .9);
}
.v-rate svg { width: 11px; height: 11px; margin-right: 1px; fill: #FFD21E; stroke: none; align-self: center; }
.v-rate b { font-weight: 700; }
.v-rate i { font-style: normal; font-size: 10px; font-weight: 400; color: #DDDEE1; }

/* 左下角：更新中 · N集 */
.v-ep {
  position: absolute; left: 7px; bottom: 7px; z-index: 3;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(0, 0, 0, .62);
  color: #F3F3F4; font-size: 10.5px; font-weight: 500; line-height: 1.45;
  letter-spacing: .2px; white-space: nowrap;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}

/* 信息区 */
.v-info { display: flex; flex-direction: column; flex: 1; padding: 9px 1px 0; }
.v-title {
  font-size: 14.5px; font-weight: 600; line-height: 1.45; color: #E8E8EA;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-title a { color: inherit; }
.v-card:hover .v-title { color: #FFD21E; }
.v-meta {
  margin-top: 5px;
  font-size: 12px; color: #7E7F85; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v-desc {
  display: none;
  margin-top: 5px;
  font-size: 11.5px; line-height: 1.55; color: #6F7076;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 空态 / 分页 ---------- */
.empty { padding: 80px 16px; text-align: center; font-size: 14px; color: #7A7B81; }
.empty a { display: inline-block; margin-top: 10px; color: #FFD21E; font-weight: 500; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 38px 16px 4px; font-size: 13px; }
.pager a {
  padding: 7px 16px; border-radius: 999px;
  color: #FFD21E; background: #151517;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: background .18s, border-color .18s;
}
.pager a:hover { background: #1D1D20; border-color: rgba(255, 210, 30, .45); }
.pager .dis { padding: 7px 16px; color: #4C4D52; }
.pager .pg-now { color: #7E7F85; font-size: 12.5px; }

/* ---------- 页脚 ---------- */
.page-foot {
  margin-top: 50px; padding: 26px 0 38px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: center; font-size: 12px; color: #626369;
}
.page-foot p { margin: 4px 0; line-height: 1.8; }
.page-foot a { color: #86878D; transition: color .18s; }
.page-foot a:hover { color: #FFD21E; }
.foot-links span { margin: 0 8px; color: #3B3C40; }

/* ============================================================================
   悬浮入口：AI短剧 / 返回顶部 / 浏览记录
   ========================================================================== */
.float-ai {
  position: fixed; right: 24px; bottom: 92px; z-index: 56;
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 15px; border-radius: 999px;
  background: #153B31; color: #4AE3A5;
  border: 1px solid rgba(74, 227, 165, .3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), 0 0 22px rgba(74, 227, 165, .12);
  font-size: 12.5px; font-weight: 600;
  transition: transform .18s, box-shadow .18s;
}
.float-ai:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 28px rgba(74, 227, 165, .2); }
.float-ai svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }

.float-top, .float-hist {
  position: fixed; right: 24px; bottom: 24px; z-index: 56;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 44px; padding: 0; border: 0; background: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.float-top.on { opacity: 1; visibility: visible; transform: none; }
.float-top .fb-circle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #F0A12E; color: #141414;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .1);
  transition: background .18s;
}
.float-top:hover .fb-circle { background: #FFD21E; }
.float-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fb-label { display: none; font-size: 9.5px; color: #A6A7AC; white-space: nowrap; }

.float-hist { display: none; }
.float-hist .fb-circle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #1C1C20; color: #D9DADE;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}
.float-hist svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 浏览记录弹层 ---------- */
.hist-pop {
  position: fixed; inset: 0; z-index: 80000;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease;
}
.hist-pop.on { opacity: 1; }
.hist-box {
  width: 100%; max-width: 420px; max-height: 72vh;
  display: flex; flex-direction: column;
  background: #141416;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .6);
  transform: translateY(10px) scale(.98);
  transition: transform .24s cubic-bezier(.22, .61, .36, 1);
}
.hist-pop.on .hist-box { transform: none; }
.hist-hd { display: flex; align-items: center; gap: 10px; padding: 15px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.hist-hd h3 { font-size: 16px; font-weight: 700; color: #F0F0F2; }
.hist-clear {
  margin-left: auto; padding: 4px 8px;
  border: 0; background: transparent;
  font-size: 12px; color: #FFD21E;
}
.hist-close {
  width: 28px; height: 28px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%;
  background: #1D1D21; color: #C9CACF;
  font-size: 17px; line-height: 1;
}
.hist-list { padding: 8px 8px 12px; overflow-y: auto; }
.hist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 9px;
  transition: background .16s;
}
.hist-item:hover { background: rgba(255, 255, 255, .045); }
.hist-item img {
  width: 44px; height: 60px; flex: none; object-fit: cover;
  border-radius: 5px; background: #1B1B1E;
}
.hist-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hist-txt b { font-size: 13.5px; font-weight: 600; color: #E7E7EA; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-txt i { font-style: normal; font-size: 11px; color: #77787E; }
.hist-arrow { flex: none; font-size: 18px; color: #55565B; }
.hist-empty { padding: 46px 16px; text-align: center; font-size: 13px; color: #77787E; }

/* ---------- 轻提示 ---------- */
.xmb11-toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 85000;
  transform: translate(-50%, 8px);
  padding: 9px 16px; border-radius: 999px;
  background: rgba(20, 20, 22, .97);
  border: 1px solid rgba(255, 210, 30, .3);
  color: #FFD21E; font-size: 12.5px; white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.xmb11-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================================
   播放页
   ========================================================================== */
.play-main { max-width: 1160px; margin: 0 auto; padding: 2px 26px 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: #F4F4F6; }
.p-flag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; color: #FFD21E;
  background: rgba(255, 210, 30, .1);
  border: 1px solid rgba(255, 210, 30, .3);
}
.p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: #83848A; }
.p-meta a { color: #FFD21E; }
.p-meta i { font-style: normal; }
.p-meta .p-score { color: #FFD21E; font-weight: 600; }
.p-cur { margin-top: 8px; font-size: 12.5px; color: #83848A; }
.p-cur b { color: #FFD21E; 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 48px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.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: #B9BAC0;
  background: radial-gradient(circle at 50% 40%, #1D1D21, #070708 72%);
}
.p-loading::before {
  content: ''; width: 16px; height: 16px; margin-right: 9px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18); border-top-color: #FFD21E;
  animation: xmb11spin .8s linear infinite;
}
@keyframes xmb11spin { 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: #FFCF7A;
  background: rgba(7, 7, 8, .94);
}
.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: .45; }
.p-noplay span {
  position: relative; z-index: 1; padding: 6px 14px;
  font-size: 12.5px; color: #DDDEE1;
  background: rgba(8, 8, 10, .82);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.content-panel {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 16px 18px;
}
.panel-gap { margin-top: 16px; }
.panel-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.panel-title { font-size: 16px; font-weight: 700; color: #ECECEE; }
.panel-cnt { margin-left: auto; font-size: 12px; color: #77787E; }

.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: #A3A4A9;
  background: #19191C;
  border: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.ep:hover { background: rgba(255, 210, 30, .09); border-color: rgba(255, 210, 30, .38); color: #FFD21E; }
.ep.on {
  color: #151515; font-weight: 700;
  background: #FFD21E; border-color: #FFD21E;
  box-shadow: 0 6px 18px rgba(255, 210, 30, .22);
}
.p-line { margin: 2px 0; font-size: 13px; line-height: 1.9; color: #A3A4A9; }
.p-line b { color: #707177; font-weight: 500; }
.p-intro { margin-top: 8px; font-size: 13px; line-height: 1.9; color: #A3A4A9; }

/* ---------- 纯图片弹窗（右上角 × / 遮罩 / Esc 关闭） ---------- */
.img-pop {
  position: fixed; inset: 0; z-index: 90000;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, .72);
  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: #151518;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 60px rgba(0, 0, 0, .55);
}
.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(20, 20, 23, .95);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.img-pop-close:active { opacity: .75; }

/* ============================================================================
   响应式
   ========================================================================== */
@media (max-width: 1360px) {
  .head-inner { gap: 20px; }
  .head-nav { gap: 3px; }
  .hn { padding: 0 10px; font-size: 14px; }
  .head-search { flex-basis: 190px; }
  .brand-name { font-size: 21px; max-width: 200px; }
}

@media (max-width: 1240px) {
  .v-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .head-inner { height: 70px; gap: 16px; }
  .head-nav {
    flex: 1 1 auto;
    overflow-x: auto; overflow-y: hidden;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .head-nav::-webkit-scrollbar { display: none; }
  .head-search { flex: 0 0 180px; }
  .brand-name { font-size: 20px; max-width: 180px; }
}

@media (max-width: 1024px) {
  .v-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================================
   手机 / 窄屏（≤900px）：三段式顶栏 + 2/3 列 + 悬浮按钮
   ========================================================================== */
@media (max-width: 900px) {
  #app { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

  .site-head { background: rgba(11, 11, 12, .96); }
  .head-inner { height: 58px; justify-content: center; gap: 0; padding: 0 14px; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 19px; max-width: 160px; letter-spacing: .3px; }

  .head-nav, .head-search, .head-actions { display: none; }

  .m-menu-toggle, .m-search-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; width: 46px; height: 44px; padding: 0;
    border: 0; background: transparent; color: #B7B8BD;
    font-size: 10px; line-height: 1.2;
  }
  .m-menu-toggle { left: 8px; }
  .m-search-btn { right: 8px; }
  .m-menu-toggle svg, .m-search-btn svg { width: 20px; height: 20px; stroke-width: 1.9; }
  .m-menu-toggle.on { background: transparent; color: #FFD21E; }
  .m-search-btn[aria-expanded="true"] { color: #FFD21E; }

  .m-search-panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 65;
    display: block;
    padding: 12px 14px;
    background: #101012;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  }
  .m-search-panel form { display: flex; align-items: center; gap: 8px; height: 42px; }
  .m-search-panel input {
    flex: 1; min-width: 0; height: 100%; padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px;
    background: #18181B; color: #EDEDEF;
    font-size: 14px; outline: 0; -webkit-appearance: none; appearance: none;
  }
  .m-search-panel input::placeholder { color: #74757B; }
  .m-search-panel button {
    height: 42px; padding: 0 18px; border: 0; border-radius: 10px;
    background: #FFD21E; color: #151515;
    font-size: 13px; font-weight: 700; flex: none;
  }

  .m-menu {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 65;
    display: block;
    background: #101012;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  }
  .m-menu-in { padding: 12px 14px 16px; }
  .m-menu-search { display: flex; align-items: center; gap: 8px; height: 42px; margin-bottom: 12px; }
  .m-menu-search input {
    flex: 1; min-width: 0; height: 100%; padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .09); border-radius: 10px;
    background: #18181B; color: #EDEDEF;
    font-size: 14px; outline: 0; -webkit-appearance: none; appearance: none;
  }
  .m-menu-search input::placeholder { color: #74757B; }
  .m-menu-search button {
    height: 42px; padding: 0 18px; border: 0; border-radius: 10px;
    background: #FFD21E; color: #151515; font-size: 13px; font-weight: 700; flex: none;
  }
  .m-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .m-menu-grid a {
    display: flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 8px; border-radius: 9px;
    background: #18181B; border: 1px solid rgba(255, 255, 255, .07);
    color: #C9CACF; font-size: 13px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .m-menu-grid a:active { background: #1F1F23; }

  .page-main { padding: 16px 0 30px; }
  .home-count { display: none; }

  .list-hd { padding-bottom: 12px; margin-bottom: 16px; }
  .list-title { font-size: 19px; }
  .list-cnt { font-size: 12px; }
  .sort-tab { height: 28px; padding: 0 12px; font-size: 12px; }

  .v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .v-cover { border-radius: 5px; }
  .v-info { padding: 8px 1px 0; }
  .v-title { font-size: 13.5px; }
  .v-meta { margin-top: 4px; font-size: 11px; }
  .v-desc {
    display: -webkit-box;
    margin-top: 4px; font-size: 11.5px; line-height: 1.5;
    color: #6F7076;
  }
  .v-badge { left: 6px; top: 6px; height: 19px; padding: 0 5px; font-size: 9.5px; }
  .v-badge svg { width: 9px; height: 9px; }
  .v-rate { right: 7px; top: 7px; font-size: 11px; }
  .v-rate svg { width: 10px; height: 10px; }
  .v-rate i { font-size: 9px; }
  .v-ep { left: 6px; bottom: 6px; padding: 1px 5px; font-size: 10px; }

  /* 广告 */
  #xmb11-top-modules { margin-bottom: 16px; }
  .banner { border-radius: 10px; }
  .strip-row { gap: 8px; margin-top: 12px; }
  .strip-ad { border-radius: 6px; }
  .icon-grid { gap: 8px; }
  .icon-grid .icon-card { flex-basis: calc((100% - 24px) / 4 - 0.5px); }
  .promo-grid { gap: 8px; }
  .link-row { gap: 6px; }

  /* 播放页 */
  .play-main { padding: 2px 14px 0; }
  .p-title { font-size: 20px; }
  .p-meta { font-size: 12px; gap: 5px 11px; }
  .player-wrap { border-radius: 10px; margin-top: 13px; }
  .content-panel { padding: 13px 12px; border-radius: 10px; }
  .ep-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ep { height: 34px; }

  /* 页脚 */
  .page-foot { margin-top: 30px; padding: 20px 0 26px; }

  /* 悬浮入口：AI短剧 → 返回顶部 → 浏览记录 */
  .float-ai {
    right: 12px; bottom: calc(152px + env(safe-area-inset-bottom));
    height: 36px; padding: 0 13px; font-size: 12px;
  }
  .float-ai svg { width: 15px; height: 15px; }

  .float-top {
    right: 12px; bottom: calc(84px + env(safe-area-inset-bottom));
    width: 52px; gap: 3px;
  }
  .float-top .fb-circle { width: 38px; height: 38px; }
  .float-top svg { width: 18px; height: 18px; }

  .float-hist {
    right: 12px; bottom: calc(18px + env(safe-area-inset-bottom));
    display: flex; width: 52px; gap: 3px;
    opacity: 1; visibility: visible; transform: none;
  }
  .float-hist .fb-circle { width: 38px; height: 38px; }
  .float-hist svg { width: 18px; height: 18px; }
  .fb-label { display: block; }

  .xmb11-toast { bottom: calc(210px + env(safe-area-inset-bottom)); }

  .hist-pop { align-items: flex-end; padding: 0; }
  .hist-box {
    max-width: none; max-height: 74vh;
    border-radius: 16px 16px 0 0;
    border-bottom: 0;
    transform: translateY(30px);
  }
  .hist-list { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* 手机（≤680px）：两列卡片 + 缩小文字 */
@media (max-width: 680px) {
  .wrap { padding: 0 12px; }
  .v-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .v-title { font-size: 14px; }
  .v-meta { font-size: 11px; }
  .v-desc { font-size: 11.5px; }
  .m-hero-title { font-size: 26px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 17.5px; max-width: 140px; }
  .v-grid { gap: 18px 9px; }
  .v-title { font-size: 13.5px; }
  .v-meta { font-size: 10.5px; }
  .v-desc { font-size: 11px; }
  .v-chip { font-size: 9.5px; }
  .p-title { font-size: 18px; }
  .float-ai { height: 34px; padding: 0 11px; font-size: 11.5px; }
}
