@charset "utf-8";
/* ============================================================================
   xmb6 —— 霓虹暗夜 H5 影视模板（480px 移动端）
   结构：基础重置 → 工具类（对齐 Tailwind 类名，自行实现，零外链）→ 各模块组件
   ----------------------------------------------------------------------------
   配色（暗夜蓝黑 + 霓虹 + 金属光影）：
     大背景   #0D0E15 → #151622 渐变（深邃空间感）
     玻璃卡   rgba(255,255,255,.035) + 1px 微光描边 + 深投影
     主文字   #E8EBF5   常规 #A3A9BF   弱化 #6E7690
     霓虹红   #FF3D6E（主强调 / 选中态）  霓虹蓝 #4B9BFF（次）  香槟金 #E8C77A
     金刚区：赛博霓虹发光环（暗底径向 + 同色描边 + 内外发光 + 金属高光）
     双栏海报：左=熔岩橙红（光束/火焰粒子） 右=黑金沙（金微粒）+ 边缘发光
     视频卡：红蓝双色微光描边；「立即播放」高饱和发光渐变
   ========================================================================== */

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #08090F;
  color: #E8EBF5;
  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; }

/* 手机端容器：PC 预览时限制 480px 并居中 */
#app {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(175deg, #0D0E15 0%, #151622 52%, #0E0F1A 100%);
  padding-bottom: calc(66px + env(safe-area-inset-bottom));
  /* 注意：此处不要写 overflow-x:hidden —— 会让 .topbar 的 sticky 失效 */
}
@media (min-width: 520px) {
  body { background: #05060A; }
  #app { box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
}

/* ---------- 工具类（对齐提示词里的 Tailwind 类名，本地实现） ---------- */
.flex { display: flex; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-3 { gap: 12px; }
.rounded-xl { border-radius: 12px; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; width: 100%; height: 100%; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 点击反馈：任意元素加该类即可（active:opacity-80） */
.active\:opacity-80:active { opacity: .8; }

/* ---------- 1. 顶部导航栏（站名 + 搜索框，吸顶） ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: rgba(13, 14, 21, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand {
  flex: 0 1 auto; max-width: 45%;
  font-size: 17px; font-weight: 600; color: #E8EBF5; letter-spacing: .3px;
  text-shadow: 0 0 18px rgba(120, 150, 255, .28);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search {
  flex: 1 1 auto; display: flex; align-items: center;
  height: 36px; padding-left: 13px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.search input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font-size: 13px; color: #E8EBF5;
}
.search input::placeholder { color: #6B7286; font-weight: 400; }
.search button {
  width: 42px; height: 36px; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: #FF3D6E;
  filter: drop-shadow(0 0 6px rgba(255, 61, 110, .45));
}
.search button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.search button:active { opacity: .6; }

/* ---------- 2. 幻灯片轮播（21:9 圆角 + 底部圆点指示器） ---------- */
.banner {
  position: relative; margin: 12px 12px 0;
  border-radius: 14px; overflow: hidden;
  background: #12131F;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 34px rgba(0, 0, 0, .55);
}
.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; }
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 9px;
  display: flex; justify-content: center; align-items: 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 ease, background .28s ease;
}
.banner-dot.on { width: 16px; border-radius: 3px; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .6); }

/* ---------- 3. 霓虹金刚区（玻璃卡 + 4 列发光环形图标） ---------- */
.card-white {
  margin: 12px 12px 0; padding: 16px 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.sec-hd { display: flex; align-items: center; margin-bottom: 16px; }
.sec-hd h2 {
  display: flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: #E8EBF5; letter-spacing: .2px;
}
.sec-hd h2::before {
  content: ''; width: 3px; height: 13px; border-radius: 2px;
  background: linear-gradient(180deg, #FF7B9C, #FF3D6E);
  box-shadow: 0 0 10px rgba(255, 61, 110, .6);
}
.sec-sub { margin-left: auto; font-size: 11px; color: #6E7690; font-weight: 400; }
.icon-grid { row-gap: 18px; }
.icon-item { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.icon-circle {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 0;
  color: #6FD3FF;
  border: 1.5px solid rgba(88, 196, 255, .6);
  background: radial-gradient(circle at 30% 26%, rgba(88, 196, 255, .22), rgba(10, 12, 22, .92) 70%);
  box-shadow: 0 0 16px rgba(88, 196, 255, .35), inset 0 1px 1px rgba(255, 255, 255, .18), inset 0 0 12px rgba(88, 196, 255, .16);
  font-size: 18px; font-weight: 600;
  transition: box-shadow .22s ease, border-color .22s ease;
}
.icon-circle img {
  display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
}
/* 点击反馈由 .icon-item 上的 active:opacity-80 负责（行内 box-shadow 优先级高于此处，不再重复覆盖） */
.icon-name {
  display: block; max-width: 100%;
  font-size: 11.5px; font-weight: 500; color: #A3A9BF;
  /* 霓虹招牌感：标签颜色随分类霓虹色（行内注入），加一层柔光晕 */
  text-shadow: 0 0 10px rgba(255, 255, 255, .16);
}

/* ---------- 4. 双栏广告卡片位（熔岩橙红 / 黑金沙，带边缘发光） ---------- */
.promo-grid { margin: 12px 12px 0; }
.promo {
  position: relative; display: block; padding-top: 62.5%;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.promo img { position: absolute; inset: 0; }
/* Glow border：外侧 1px 发光环（内阴影会被 img 盖住，故用伪元素 + 元素自身投影） */
.promo::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 180, .35);
}
.promo:nth-child(1) {
  box-shadow: 0 0 0 1px rgba(255, 110, 60, .45), 0 0 24px rgba(255, 90, 40, .32), 0 10px 30px rgba(0, 0, 0, .5);
}
.promo:nth-child(2) {
  box-shadow: 0 0 0 1px rgba(232, 199, 122, .42), 0 0 24px rgba(232, 199, 122, .22), 0 10px 30px rgba(0, 0, 0, .5);
}
.promo:nth-child(2)::before { box-shadow: inset 0 0 0 1px rgba(255, 236, 190, .32); }
/* 底部压暗，保证金字/白字可读 */
.promo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .2));
}
.promo:nth-child(2)::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .34)); }
.promo-txt {
  position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 3;
  display: flex; flex-direction: column; gap: 3px; line-height: 1.25;
  color: #FFEFE4;                        /* 左卡：熔岩橙红上的暖白 */
  text-shadow: 0 1px 8px rgba(60, 6, 8, .45);
}
.promo-txt em { font-style: normal; font-size: 10px; font-weight: 500; color: #FFC49A; letter-spacing: .4px; }
.promo-txt b { font-size: 13px; font-weight: 600; }
/* 右卡：黑金沙上的香槟金 */
.promo:nth-child(2) .promo-txt { color: #F2E2BC; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.promo:nth-child(2) .promo-txt em { color: #CBA96E; }

/* ---------- 5. 文字超链接行（等距分布 + 细箭头，弱化处理） ---------- */
.link-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 12px;
  margin: 12px 12px 0; padding: 13px 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .38);
}
.link-item {
  display: flex; align-items: center; gap: 2px;
  font-size: 11.5px; font-weight: 400; color: #7C8296; white-space: nowrap;
}
.link-item svg {
  width: 11px; height: 11px; fill: none; stroke: #454B60;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 6. 竖屏视频卡（暗夜卡 + 红蓝双色微光描边） ---------- */
.v-grid { margin: 12px 12px 0; }
.v-card {
  display: flex; flex-direction: column;
  padding: 9px; border-radius: 16px;
  background: linear-gradient(170deg, #161826, #0B0C14);
  /* 左冷蓝、右霓虹红双向微光 + 极淡描边 */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05),
    -8px 0 18px -10px rgba(255, 60, 110, .55),
    8px 0 18px -10px rgba(70, 140, 255, .55),
    0 12px 28px rgba(0, 0, 0, .55);
}
.v-cover {
  position: relative; display: block; padding-top: 133.33%; /* 3:4 竖版 */
  border-radius: 12px; overflow: hidden; background: #0A0B12;
}
.v-cover img { position: absolute; inset: 0; }
.v-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 0 22px rgba(255, 70, 110, .38), 0 8px 20px rgba(0, 0, 0, .5);
  transition: transform .16s ease, box-shadow .16s ease;
}
.v-play svg { width: 20px; height: 20px; fill: #12131C; margin-left: 2px; }
.v-card:active .v-play { transform: translate(-50%, -50%) scale(.9); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 16px rgba(255, 70, 110, .5); }
.v-info { padding: 10px 3px 0; min-width: 0; }
.v-name { display: block; font-size: 14px; font-weight: 600; color: #F2F4FA; }
.v-sub { margin-top: 4px; font-size: 11.5px; font-weight: 400; color: #8A90A6; }
.v-btn {
  display: flex; align-items: center; justify-content: center;
  height: 36px; margin-top: 10px; border-radius: 999px;
  background: linear-gradient(100deg, #FF2D6B, #FF6A3D);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .3px;
  box-shadow: 0 8px 22px rgba(255, 45, 107, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: filter .16s ease, box-shadow .16s ease;
}
.v-btn:active { filter: brightness(.94); box-shadow: 0 4px 14px rgba(255, 45, 107, .3), inset 0 1px 0 rgba(255, 255, 255, .2); }

/* ---------- 列表态标题条 / 空态 / 分页 ---------- */
.list-bar { display: flex; align-items: center; gap: 8px; margin: 14px 12px 0; }
.list-bar h2 { font-size: 16px; font-weight: 600; color: #E8EBF5; min-width: 0; }
.list-cnt { margin-left: auto; font-size: 11.5px; color: #6E7690; white-space: nowrap; }
.empty { padding: 48px 16px; text-align: center; font-size: 13px; color: #6E7690; }
.empty a { display: inline-block; margin-top: 8px; color: #FF5C82; font-weight: 500; text-shadow: 0 0 12px rgba(255, 61, 110, .4); }
.pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 12px 4px; font-size: 13px; font-weight: 500; color: #FF5C82;
}
.pager .dis { color: #3A4055; font-weight: 400; }
.pager .pg-now { font-size: 12.5px; font-weight: 400; color: #6E7690; }

/* ---------- 页脚 ---------- */
.page-foot { padding: 20px 16px 6px; text-align: center; font-size: 11px; line-height: 1.8; color: #5C6379; }
.page-foot a { color: #7C8296; }

/* ---------- 7. 底部固定导航栏（微弱霓虹投影，选中态透亮霓虹红） ---------- */
.tabbar {
  position: fixed; left: 50%; bottom: 0; z-index: 40;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex;
  background: rgba(13, 14, 21, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .6), 0 -1px 20px rgba(255, 61, 110, .07);
}
.tab {
  flex: 1; height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 400; color: #5E6478; white-space: nowrap;
  transition: color .18s;
}
.tab svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.tab.on {
  color: #FF4D6D; font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 61, 110, .55);
}
.tab.on svg { stroke-width: 1.9; filter: drop-shadow(0 0 6px rgba(255, 61, 110, .7)); }
.tab:active { opacity: .7; }

/* ============================================================================
   分类页 / 播放页（xmb6 补充组件）
   ========================================================================== */

/* ---------- 分类页：最新 / 最热 切换 ---------- */
.sort-tabs { display: flex; gap: 8px; margin: 12px 12px 0; }
.sort-tab {
  height: 32px; padding: 0 18px; border-radius: 999px;
  display: inline-flex; align-items: center;
  font-size: 12.5px; font-weight: 500; color: #8A90A6;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: color .18s, box-shadow .18s;
}
.sort-tab.on {
  color: #fff;
  background: linear-gradient(100deg, #FF2D6B, #FF6A3D);
  border-color: rgba(255, 130, 120, .5);
  box-shadow: 0 6px 18px rgba(255, 45, 107, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  text-shadow: 0 0 10px rgba(255, 255, 255, .3);
}
.sort-tab:active { opacity: .8; }

/* ---------- 播放页：标题与元信息 ---------- */
.play-hd { padding: 14px 14px 0; }
.p-title {
  display: inline;
  font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: .2px;
  color: #F2F4FA; text-shadow: 0 0 22px rgba(120, 150, 255, .2);
}
.p-cur { margin-top: 7px; font-size: 12px; color: #6E7690; }
.p-cur b { color: #FF8A9E; font-weight: 500; text-shadow: 0 0 10px rgba(255, 61, 110, .35); }
.p-flag {
  display: inline-block; margin-left: 8px; padding: 1px 8px;
  border-radius: 999px; vertical-align: 3px;
  font-size: 10.5px; font-weight: 500; color: #FFC49A;
  background: rgba(255, 110, 70, .12);
  border: 1px solid rgba(255, 110, 70, .35);
  box-shadow: 0 0 12px rgba(255, 90, 40, .18);
}
.p-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin-top: 9px; font-size: 11.5px; color: #8A90A6;
}
.p-meta a { color: #6FD3FF; text-shadow: 0 0 10px rgba(88, 196, 255, .3); }
.p-meta i { font-style: normal; }

/* ---------- 播放页：播放器容器（16:9 + 霓虹描边） ---------- */
.player-wrap {
  position: relative; margin: 12px 12px 0;
  padding-top: 56.25%;                   /* 16:9 */
  border-radius: 14px; overflow: hidden;
  background: #05060B;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .07),
    0 0 26px rgba(75, 155, 255, .14),
    0 14px 34px rgba(0, 0, 0, .6);
}
.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: #8A90A6;
  background: radial-gradient(circle at 50% 40%, rgba(75, 155, 255, .1), rgba(5, 6, 11, .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: #FF4D6D;
  animation: xmb6spin .8s linear infinite;
}
@keyframes xmb6spin { 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: #FF8A9E;
  background: rgba(5, 6, 11, .92);
}
.p-noplay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.p-noplay img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.p-noplay span {
  position: relative; z-index: 1; padding: 6px 14px;
  font-size: 12.5px; color: #A3A9BF;
  background: rgba(8, 9, 15, .72);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
}

/* ---------- 播放页：选集网格（4 列，当前集霓虹渐变） ---------- */
.ep-card { padding-bottom: 12px; }
.ep-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ep {
  height: 34px; padding: 0 8px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; color: #A3A9BF;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ep.on {
  color: #fff;
  background: linear-gradient(100deg, #FF2D6B, #FF6A3D);
  border-color: rgba(255, 130, 120, .5);
  box-shadow: 0 0 16px rgba(255, 45, 107, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.ep:active { opacity: .8; }

/* ---------- 播放页：影片信息 ---------- */
.p-line { margin-top: 2px; font-size: 12.5px; line-height: 1.9; color: #9BA1B5; }
.p-line b { color: #6E7690; font-weight: 500; }
.p-intro { margin-top: 8px; font-size: 12.5px; line-height: 1.85; color: #9BA1B5; }

/* ---------- 纯图片弹窗（右上角关闭按钮 + 遮罩 / Esc 关闭） ---------- */
.img-pop {
  position: fixed; inset: 0; z-index: 90000;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  background: rgba(4, 5, 10, .82);
  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: #0B0C14;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12),
    0 0 34px rgba(255, 61, 110, .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: #E8EBF5;
  background: rgba(13, 14, 21, .94);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .55), 0 0 14px rgba(255, 61, 110, .18);
}
.img-pop-close:active { opacity: .75; }
