/* ============================================================
   气泡视频 · NOVA AURORA 极光流媒体设计系统
   ============================================================ */
:root {
  --bg: #08090d;
  --surface: #0f1118;
  --surface-2: #161924;
  --surface-glass: rgba(15, 17, 24, 0.82);
  --line: rgba(255, 255, 255, 0.08);
  --line-glow: rgba(99, 102, 241, 0.4);
  --ink: #f8fafc;
  --dim: #94a3b8;
  --faint: #64748b;
  --accent: #6366f1;
  --accent-2: #ec4899;
  --accent-gradient: linear-gradient(135deg, #6366f1, #ec4899);
  --accent-soft: rgba(99, 102, 241, 0.15);
  --cyan: #06b6d4;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 12px 36px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.25);
  --pad: clamp(16px, 4vw, 32px);
  --hd-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  padding-top: 0;
  padding-bottom: 85px;
}

/* 宇宙星云背景光晕 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 55%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
header, main, footer { position: relative; z-index: 2; }
main { max-width: 1560px; margin: 0 auto; padding-inline: var(--pad); }

/* ── 顶栏 ───────────────────────────── */
.hd {
  position: sticky; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.hd-in {
  height: var(--hd-h); display: flex; align-items: center; gap: clamp(10px, 2vw, 18px);
  padding-inline: var(--pad); max-width: 1560px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-glow);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; }
.brand-txt i { font-style: normal; font-size: 8.5px; color: var(--cyan); letter-spacing: 1.8px; font-weight: 600; }

.search { flex: 1; max-width: 480px; margin-left: auto; position: relative; display: flex; align-items: center; min-width: 0; }
.search .ico { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--text-dim); pointer-events: none; }
.search input {
  width: 100%; height: 38px; padding: 0 36px 0 40px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 19px; outline: none;
  font-size: 13.5px; color: #fff; transition: all 0.25s var(--ease);
}
.search input::placeholder { color: var(--faint); font-size: 13px; }
.search input:focus {
  border-color: var(--accent); background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}
.search input::-webkit-search-cancel-button { display: none; }
.clr {
  position: absolute; right: 10px; width: 22px; height: 22px; border: 0; background: transparent;
  color: var(--faint); cursor: pointer; display: grid; place-items: center; border-radius: 50%;
}
.clr:hover { color: var(--ink); background: var(--line); }
.clr svg { width: 13px; height: 13px; }

.hd-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.act {
  height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 18px;
  color: var(--dim); cursor: pointer; transition: all 0.2s; font-size: 13px;
}
.act svg { width: 15px; height: 15px; }
.act:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); }
.act.on { color: #fff; border-color: transparent; background: var(--accent-gradient); box-shadow: 0 2px 12px rgba(236, 72, 153, 0.35); }

/* ThePornDude 专属发光胶囊 */
.act-tpd {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(236,72,153,0.18), rgba(99,102,241,0.18)) !important;
  border-color: rgba(236,72,153,0.35) !important;
  color: #f472b6 !important;
  font-weight: 700;
  font-size: 12.5px;
}
.act-tpd:hover {
  background: linear-gradient(135deg, rgba(236,72,153,0.3), rgba(99,102,241,0.3)) !important;
  border-color: var(--accent-2) !important;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
  color: #fff !important;
}

/* ── 顶栏切源按钮 ───────────────────── */
.line-select-btn {
  height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.15));
  border: 1px solid var(--line-glow); border-radius: 18px;
  color: #c7d2fe; font-size: 13px; font-weight: 600; cursor: pointer; flex-shrink: 0;
  box-shadow: var(--shadow-glow); transition: all 0.2s;
}
.line-select-btn:hover {
  transform: translateY(-1px); border-color: var(--accent-2);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}
.line-select-btn svg { width: 12px; height: 12px; color: #a5b4fc; }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 8px #10b981; animation: dotPulse 1.8s infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* ── 分类条（平滑展开无跳动） ─────────── */
.cats { border-bottom: 1px solid var(--line); background: rgba(8, 9, 13, 0.7); }
.cats-in {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  max-width: 1560px; margin: 0 auto; padding: 8px var(--pad);
}
.cats-in::-webkit-scrollbar { display: none; }
.cat {
  position: relative; flex-shrink: 0; height: 30px; padding: 0 14px; border-radius: 15px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); color: var(--dim);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.cat:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.cat.on {
  color: #fff; font-weight: 600; background: var(--accent-gradient);
  border-color: transparent; box-shadow: 0 2px 10px rgba(236, 72, 153, 0.3);
}

/* 二级子分类 */
.cats-sub {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  max-width: 1560px; margin: 0 auto; padding: 4px var(--pad) 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  animation: subSlideDown 0.25s var(--ease);
}
@keyframes subSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.cats-sub::-webkit-scrollbar { display: none; }
.cats-sub[hidden] { display: none !important; }
.cat-sub {
  flex-shrink: 0; height: 26px; padding: 0 12px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dim); font-size: 12px; cursor: pointer; white-space: nowrap;
  transition: all 0.16s; display: inline-flex; align-items: center;
}
.cat-sub:hover { color: #fff; background: var(--surface-2); border-color: var(--line-glow); }
.cat-sub.on {
  color: #fff; background: var(--accent); border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4); font-weight: 600;
}

/* ── 首页巨幕 ───────────────────────── */
.hero {
  position: relative; margin-top: 20px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  display: grid; grid-template-columns: minmax(210px, 300px) 1fr;
  box-shadow: var(--shadow);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 18%;
  filter: blur(28px) saturate(140%); opacity: 0.32; transform: scale(1.15);
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,13,0.95) 12%, rgba(8,9,13,0.7) 62%, rgba(8,9,13,0.92)); }
.hero-poster {
  position: relative; margin: clamp(14px, 2vw, 22px); aspect-ratio: 3/4;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); align-self: center;
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-body {
  position: relative; padding: clamp(20px, 3vw, 36px) clamp(20px, 3.4vw, 40px) clamp(20px, 3vw, 32px) clamp(4px, 1.4vw, 14px);
  display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.22em;
  color: var(--cyan); text-transform: uppercase; font-weight: 700;
}
.hero-kicker::before { content: ""; width: 22px; height: 2px; background: var(--cyan); border-radius: 1px; }
.hero h1 {
  margin: 0; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.25; font-weight: 800; letter-spacing: 0.01em;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--dim); }
.hero-meta span { border: 1px solid var(--line); padding: 2px 9px; border-radius: 4px; background: rgba(255,255,255,0.04); }
.hero-desc { margin: 0; font-size: 13.5px; color: var(--dim); max-width: 62ch; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn {
  height: 42px; padding: 0 22px; border-radius: var(--radius); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255,255,255,0.06); color: var(--ink); transition: all 0.2s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); }
.btn-main {
  background: var(--accent-gradient); border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn-main:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* ── 区块标题 ───────────────────────── */
.sec-hd {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 28px 0 16px;
}
.sec-hd h2 { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sec-hd h2::before { content: ""; display: inline-block; width: 4px; height: 16px; border-radius: 2px; background: var(--accent-2); }
.sec-hd .meta { font-size: 12.5px; color: var(--faint); }

/* ── 卡片网格 ───────────────────────── */
.grid {
  display: grid; gap: 24px 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-width: 0; position: relative;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; padding-bottom: 8px; box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--line-glow);
  box-shadow: var(--shadow-glow), 0 16px 32px -10px rgba(0, 0, 0, 0.8);
}
.thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #141722;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s, transform 0.4s ease; }
.thumb img.in { opacity: 1; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(transparent, rgba(0,0,0,0.85)); pointer-events: none;
}

/* 卡片角标 */
.badge {
  position: absolute; z-index: 2; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 2px 7px; border-radius: 4px; backdrop-filter: blur(8px);
}
.badge-code {
  top: 8px; left: 8px; background: rgba(0, 0, 0, 0.72); color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-rem {
  bottom: 8px; right: 8px; background: rgba(236, 72, 153, 0.9); color: #fff;
}
.fav-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius-sm);
  color: #fff; transition: all 0.16s; backdrop-filter: blur(6px);
}
.fav-btn svg { width: 15px; height: 15px; }
.fav-btn:hover { border-color: #fff; color: #fff; transform: scale(1.1); }
.fav-btn.on { background: var(--accent-2); border-color: transparent; color: #fff; }

.play-hint {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  opacity: 0; transition: opacity 0.25s; background: rgba(7, 8, 12, 0.4);
}
.card:hover .play-hint, .card:focus-visible .play-hint { opacity: 1; }
.play-hint span {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-gradient);
  display: grid; place-items: center; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.play-hint svg { width: 19px; height: 19px; color: #fff; margin-left: 2px; }

.c-name {
  font-size: 13.5px; line-height: 1.45; font-weight: 600; padding: 0 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #f1f5f9;
}
.card:hover .c-name { color: #a5b4fc; }
.c-sub { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--faint); padding: 0 10px; }
.c-cat {
  color: var(--dim); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 3px; max-width: 60%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* ── 骨架屏 ─────────────────────────── */
.sk { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--surface); position: relative; overflow: hidden; }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: sh 1.3s infinite;
}
@keyframes sh { to { transform: translateX(100%); } }

/* ── 分页 ───────────────────────────── */
.pager {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin: 32px 0 10px;
}
.pager button {
  height: 38px; min-width: 38px; padding: 0 16px; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--dim);
  font-size: 13px; font-weight: 500; transition: all 0.16s;
}
.pager button:hover:not(:disabled) { border-color: var(--line-glow); color: #fff; background: var(--surface-2); }
.pager button:disabled { opacity: 0.35; cursor: default; }
.pager .pnum {
  font-size: 13px; color: var(--faint); padding: 0 6px; font-variant-numeric: tabular-nums;
}
.pager .pnum b { color: var(--ink); font-weight: 600; }
.state { padding: 70px 20px; text-align: center; color: var(--faint); }
.state svg { width: 42px; height: 42px; margin-bottom: 12px; opacity: 0.5; }
.state p { margin: 0 0 6px; font-size: 15px; color: var(--dim); }
.state small { font-size: 12.5px; }

/* ── 播放器影院级全景弹窗 ───────────── */
.player-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 9, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: grid; place-items: center; padding: 20px;
}
.player-mask[hidden] { display: none; }
.player-box {
  width: 100%; max-width: 1120px; background: var(--surface);
  border: 1px solid var(--line-glow); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.85);
  max-height: 96vh; display: flex; flex-direction: column;
}
.player-hd {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); background: linear-gradient(var(--surface-2), var(--surface));
}
.player-hd h3 {
  margin: 0; font-size: 15.5px; font-weight: 700; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f8fafc;
}
.pclose, .pfav {
  width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--dim); display: grid; place-items: center; flex-shrink: 0;
  transition: all 0.16s;
}
.pclose:hover { color: var(--ink); border-color: rgba(255,255,255,0.3); }
.pfav[hidden] { display: none; }
.pfav:hover { color: var(--accent-2); border-color: var(--accent-2); }
.pfav.on { background: var(--accent-2); border-color: transparent; color: #fff; }
.pclose svg, .pfav svg { width: 16px; height: 16px; }
.player-video { background: #000; aspect-ratio: 16/9; position: relative; flex-shrink: 0; }
.player-video video { width: 100%; height: 100%; display: block; }
.pfall {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 9px; padding: 24px;
  background: rgba(7, 8, 12, 0.96); text-align: center;
}
.pfall[hidden] { display: none; }
.pfall svg { width: 40px; height: 40px; color: var(--accent-2); margin-bottom: 2px; opacity: 0.9; }
.pfall p { margin: 0; font-size: 15.5px; color: var(--ink); font-weight: 600; }
.pfall small { font-size: 12.5px; color: var(--dim); max-width: 360px; line-height: 1.6; }
.pf-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pfall a, .pfall button {
  height: 36px; padding: 0 18px; border-radius: var(--radius); cursor: pointer;
  display: inline-flex; align-items: center; font-size: 13px;
  border: 1px solid var(--line); color: var(--dim); background: rgba(255,255,255,0.05); transition: all 0.16s;
}
.pfall a:hover, .pfall button:hover { border-color: var(--line-glow); color: #fff; }
.pfall button { border-color: var(--accent); color: #fff; }
.pfall button[hidden] { display: none; }
.pmeta {
  padding: 12px 18px 0; font-size: 13px; line-height: 1.7; color: var(--dim);
  max-height: 96px; overflow-y: auto;
}
.pmeta[hidden] { display: none; }
.plines { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px 0; }
.plines[hidden] { display: none; }
.plines b { font-size: 12px; color: var(--faint); font-weight: 600; align-self: center; letter-spacing: 0.05em; }
.eps { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 16px; overflow-y: auto; max-height: 136px; }
.eps:empty { display: none; }
.ep {
  height: 30px; padding: 0 14px; border-radius: 15px; cursor: pointer; font-size: 12.5px; font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--dim); transition: all 0.16s;
}
.ep:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.ep.on { background: var(--accent-gradient); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 2px 10px rgba(99,102,241,0.3); }

/* ── 页脚（纯净版） ───────────────────── */
.ft { border-top: 1px solid var(--line); margin-top: 36px; padding: 26px 0 40px; }
.ft-in {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12.5px;
  padding-inline: var(--pad); max-width: 1560px; margin: 0 auto;
}
.ft-brand { color: var(--cyan); letter-spacing: 0.14em; font-weight: 700; opacity: 0.9; }
.ft-note { color: var(--faint); max-width: 60ch; }

/* ── 横幅样式 ───────────────────────── */
.banner-wrapper {
  max-width: 1300px; margin: 18px auto 20px auto; padding-inline: var(--pad);
}
.banner-wrapper img {
  width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ── 横幅下方常驻文字公告栏 ── */
.site-notice-bar {
  max-width: 1300px;
  margin: 0 auto 16px auto;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--line-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}
.notice-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-tag {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.notice-item a {
  color: #f8fafc;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.notice-item a:hover {
  color: var(--accent-2);
}
.notice-divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

/* ── 安全验证与公告弹窗 ─────────────── */
.captcha-mask {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center; padding: 20px;
}
.captcha-mask[hidden] { display: none; }
.captcha-box {
  background: var(--surface); border: 1px solid var(--line-glow);
  border-radius: var(--radius-lg); padding: 34px 24px; text-align: center;
  width: 100%; max-width: 360px; box-shadow: 0 14px 50px rgba(0,0,0,0.85);
}
.captcha-box h2 { margin: 0 0 10px; font-size: 22px; color: #fff; letter-spacing: 1px; }
.captcha-box p { font-size: 13px; color: var(--dim); margin: 0 0 16px; }
.captcha-err { color: var(--accent-2) !important; font-size: 13px !important; margin: 12px 0 0 !important; }

/* ── 资源站切换弹窗 ─────────────────── */
.line-modal {
  position: fixed; inset: 0; z-index: 10002;
  background: rgba(5,6,9,0.88); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 20px;
}
.line-modal[hidden] { display: none; }
.line-modal-box {
  background: var(--surface); border: 1px solid var(--line-glow);
  border-radius: var(--radius-lg); width: 100%; max-width: 380px;
  box-shadow: var(--shadow); overflow: hidden; animation: annFadeIn 0.24s var(--ease);
}
.line-modal-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--surface-2), var(--surface));
}
.line-modal-hd h3 { margin: 0; font-size: 15.5px; color: #a5b4fc; display: flex; align-items: center; gap: 6px; }
.line-modal-close {
  background: transparent; border: 0; color: var(--faint);
  cursor: pointer; padding: 4px; border-radius: 4px; display: grid; place-items: center;
}
.line-modal-close:hover { color: #fff; }
.line-modal-close svg { width: 18px; height: 18px; }
.line-modal-bd { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.line-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  cursor: pointer; transition: all 0.16s; text-align: left; width: 100%;
}
.line-item:hover { border-color: var(--line-glow); background: rgba(99,102,241,0.08); }
.line-item.on { border-color: var(--accent); background: var(--accent-soft); }
.line-item-left { display: flex; align-items: center; gap: 10px; }
.line-item-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.line-item-tag {
  font-size: 11px; padding: 1px 7px; border-radius: 3px;
  background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3);
}
.line-item.on .line-item-tag {
  background: rgba(236,72,153,0.2); color: #f472b6; border-color: rgba(236,72,153,0.4);
}
.line-item-check { color: var(--accent-2); font-size: 12px; font-weight: bold; display: none; }
.line-item.on .line-item-check { display: block; }

#video { width: 100% !important; height: 100% !important; background: #000; }
.xgplayer-is-fullscreen { z-index: 99999 !important; }

/* ── 移动端极致紧凑微调（搜索框自适应 + TPD 全称展示） ─────────────── */
@media (max-width: 820px) {
  .hd-in { gap: 4px; padding-inline: 6px; }
  
  /* 隐藏 LOGO 汉字 */
  .brand-txt { display: none; }
  .brand-mark { width: 28px; height: 28px; border-radius: 6px; }
  .brand-mark svg { width: 16px; height: 16px; }

  /* 紧凑型切源胶囊 */
  .line-select-btn { height: 28px; padding: 0 5px; font-size: 10.5px; gap: 2px; }
  .line-select-btn svg { width: 9px; height: 9px; }
  .pulse-dot { width: 4.5px; height: 4.5px; }

  /* 🟢 搜索框适当收缩，给右侧 ThePornDude 全称留出充足空间 */
  .search { flex: 1; min-width: 65px; max-width: 145px; margin: 0; }
  .search input { height: 28px; padding: 0 14px 0 24px; font-size: 11px; border-radius: 14px; }
  .search .ico { left: 7px; width: 11px; height: 11px; }

  /* 收藏按钮 */
  .hd-acts { gap: 3px; }
  #favBtn { width: 28px; height: 28px; padding: 0; justify-content: center; }
  #favBtn em { display: none; }
  #favBtn svg { width: 13px; height: 13px; }

  /* 🟢 手机端直接展示 ThePornDude 全称 */
  .act-tpd { 
    height: 28px !important; 
    padding: 0 6px !important; 
    gap: 3px !important; 
    font-size: 10px !important; 
    letter-spacing: -0.2px !important;
  }
  .act-tpd svg { width: 12px !important; height: 12px !important; }

  /* 巨幕与网格 */
  .hero { grid-template-columns: 1fr; }
  .hero-poster { max-width: 180px; margin: 16px auto 0; }
  .hero-body { padding: 14px 16px 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 12px; }

  /* 移动端常驻公告栏适配 */
  .site-notice-bar {
    margin-inline: var(--pad);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }
  .notice-divider { display: none; }
  .notice-item { font-size: 12px; }
}

@media (max-width: 600px) {
  .player-mask { padding: 0; }
  .player-box { max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; border: 0; justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px 10px; }
}
