/* ============================================================
   AEFEF TV · Dark OTT + Purple/Cyan Interaction
   深蓝黑影院底盘 + 主紫交互 + 流媒体青 + AEFEF 五色只承担品牌点缀
   视觉关键词: Dark / Cinematic / Streaming / Purple / Cyan
   配比纪律: 60% 深蓝黑 · 15% 海报内容图 · 10% 紫/青 UI 强调 · 7% 白/浅灰文字 · 5% 营销徽章 · 3% 状态色
   三级色彩系统: L1 Brand(AEFEF 五色→Logo only) · L2 UI(Purple #7C3AED + Cyan #16C8F2) · L3 Semantic/Marketing
   ============================================================ */
:root {
  /* ---- L3 背景：深蓝黑 5 级（60% 面积，影院底盘） ---- */
  --bg: #07051A;             /* 页面主背景：Deep Navy */
  --bg-header: #07051A;      /* Header */
  --surface: #0C0926;        /* 次要区块 / Hero 叠加层 */
  --bg-card: #121035;        /* 卡片 / 面板 / 列表项 */
  --bg-card-hover: #211C50;  /* 列表项 / 卡片 hover / active chip */
  --bg-elevated: #191545;    /* Modal / 下拉 / 弹层 */
  --bg-muted: #0C0926;       /* 输入框 / 次级按钮底 */
  --border: rgba(255, 255, 255, .08);        /* 默认边框（极淡，亮边禁纯白） */
  --border-soft: rgba(124, 58, 237, .16);    /* 卡片描边（紫光晕淡边） */
  --border-strong: rgba(255, 255, 255, .12); /* 次级按钮描边 */
  --border-hover: rgba(124, 58, 237, .45);   /* Hover 边（紫光晕） */
  --border-active: rgba(22, 200, 242, .65);  /* Active / Selected 边（青光晕） */

  /* ---- 文字（4 级灰） ---- */
  --text: #FFFFFF;          /* 主文字 */
  --text-dim: #C7C4D6;      /* 次文字 */
  --text-faint: #85819A;    /* 弱文字 / placeholder */
  --text-disabled: #56536A; /* 禁用状态 */

  /* ---- L2 交互色：Purple = Action · Cyan = Watch ---- */
  --accent-primary: #7C3AED;        /* 主紫：搜索/提交/激活 Tab/分页/主 CTA（WCAG AA 白字 ≥ 4.5） */
  --accent-primary-hover: #8B5CF6;  /* 紫 hover 提亮 */
  --accent-primary-active: #6D28D9; /* 紫 active 压深 */
  --accent-cyan: #16C8F2;           /* 流媒体青：Watch Now / Play / 进度 / NEW 徽章 */
  --accent-cyan-hover: #3BD4F7;     /* 青 hover 提亮 */
  --on-cyan: #06101A;               /* 青底深字 */

  /* ---- 品牌深色系（保留旧变量名，映射新值） ---- */
  --brand-dark: #6D28D9;
  --brand-blue: #8B5CF6;    /* 链接高亮（紫亮） */
  --brand-pink: #A78BFA;    /* 次级强调（浅紫） */
  --brand-orange: #3BD4F7;  /* 青亮变体 */
  --brand-soft: rgba(124, 58, 237, .14);
  --brand-tint: #191545;
  --player-bg: #06101A;     /* 播放器背景 */
  --text-on-light: #06101A; /* 浅色底文字（对比度用） */
  --success: #72D83C;
  --success-dark: #224E0C;
  --warning: #FFD447;
  --info: #16C8F2;
  --hero-border: rgba(124, 58, 237, .35);

  /* ---- L3 营销 / Premium 色（徽章 only，节制使用） ---- */
  --accent-gold: #FFD447;   /* Cinematic Gold：VIP / Rating / 精选徽章（不做主按钮底） */
  --accent-pink: #EC4DFF;   /* Hot Pink：TRENDING 徽章 */
  --accent-orange: #FF5A36; /* Vibrant Orange：限时转化 */
  --accent-red: #FF4B5C;    /* Error 红（纯语义状态色） */
  --gold-deep: #D99D00;
  --gold-soft: rgba(255, 212, 71, .14);
  --gold-border: rgba(255, 212, 71, .25);

  /* ---- 渐变 ---- */
  --gradient-primary: linear-gradient(135deg, #7C3AED 0%, #16C8F2 100%);   /* 主 UI 渐变：紫→青 */
  --gradient-premium: linear-gradient(135deg, #C94DFF 0%, #7C3AED 55%, #16C8F2 100%); /* 高端渐变：VIP/订阅 */
  --gradient-gold: linear-gradient(90deg, #FFD447, #FFE9A0);                /* 金徽章渐变 */
  --gradient-gold-135: linear-gradient(135deg, #FFD447 0%, #FFE9A0 100%);
  --gradient-gold-btn: linear-gradient(135deg, #FFD447, #FFE9A0);
  --gradient-hero: linear-gradient(135deg, #0C0926 0%, #191545 55%, #2A1B6B 100%); /* Hero 深蓝紫渐变 */
  --gradient-brand: linear-gradient(90deg, #FF4B2B, #FFC928, #72D83C, #16C8F2, #C94DFF); /* L1 AEFEF 五色：仅 Logo 装饰线 */

  --rate: #FFD447;
  --danger: #FF4B5C;
  --facebook: #1877f2;
  --twitter: #1DA1F2;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .35);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .50);
  --radius: 8px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; overflow-x: hidden; } /* 兜底：任何子元素意外溢出时也不让整页出现 X 轴滚动（不影响 sticky 头部） */
body {
  margin: 0;
  /* 影院空间感：深蓝黑底盘 + 极淡紫/青双径向光晕（不与海报争视觉，不做大面积渐变） */
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 58, 237, .12), transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(22, 200, 242, .10), transparent 60%),
    #07051A;
  background-attachment: fixed; /* 光晕随滚动固定，像顶灯不跟随内容 */
  color: var(--text);
  overflow-x: hidden; /* 与 html 双层兜底（iOS Safari 对 html 上的 overflow-x:hidden 存在滚动传播 bug，需 body 也加） */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: rgba(124, 58, 237, .55); color: #FFFFFF; }

/* 暗色滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07051A; }
::-webkit-scrollbar-thumb { background: #191545; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #7C3AED; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---------- header：毛玻璃深海军 + 细分割线 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 5, 26, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-primary); color: #fff;
  font-size: .78rem; padding-left: 2px;
  box-shadow: 0 3px 10px rgba(124, 58, 237, .32);
}
.logo-text {
  font-size: 1.3rem; font-weight: 800; letter-spacing: .5px;
  color: var(--text);
}
.logo:hover .logo-text { color: #fff; }
/* 配置式 logo 图片：AEFEF TV 五色字母标（layout.html 中通过 {{if .Logo}} 守护，未配置时退回原文本） */
.logo-img {
  display: block; height: 44px; width: auto; max-width: 200px;
  object-fit: contain;
}
.footer-logo .logo-img { height: 32px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  position: relative;
  font-size: .95rem; font-weight: 500; color: var(--text-dim);
  padding: 4px 0;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; font-weight: 700; }
/* active 用紫→青渐变下划线（L2 交互色） */
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--gradient-primary);
}

/* ---------- search：深底细边，紫光环 ---------- */
.search-form { margin-left: auto; display: flex; align-items: center; position: relative; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); display: inline-flex; pointer-events: none;
}
.search-form input {
  background: var(--bg-muted); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 110px 9px 38px; width: 280px; outline: none;
  min-width: 0; /* 关键：flex 子项默认 min-width:auto（≈input size 内在宽度 ~310px），不设为 0 会在窄屏撑破视口 */
  font-size: .92rem; transition: border-color .15s, box-shadow .15s;
}
.search-form input::placeholder { color: var(--text-faint); }
.search-form input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .18);
}
.search-form button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: var(--accent-primary); color: #fff; border: none; cursor: pointer;
  border-radius: 999px; padding: 7px 18px; font-size: .88rem; font-weight: 700;
  transition: filter .15s;
}
.search-form button:hover { filter: brightness(1.12); }

/* ---------- primary button：主紫（全站唯一主按钮，Purple = Action） ---------- */
.btn-primary {
  background: var(--accent-primary); color: #fff; border: none; cursor: pointer;
  border-radius: var(--radius); padding: 9px 18px; font-size: .95rem; font-weight: 700;
  transition: filter .15s;
}
.btn-primary:hover { filter: brightness(1.12); }
.btn-primary:disabled { opacity: .6; cursor: wait; }

/* ---------- content type + app filter（类型切换与剧场筛选一体化卡片） ---------- */
.type-filter {
  margin: 24px 0 6px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
/* 类型切换：紧凑胶囊分段控件，靠左排布，不再拉伸占半行 */
.type-tabs {
  display: inline-flex; gap: 4px;
  padding: 4px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.type-tab {
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 20px; border-radius: 999px;
  color: var(--text-dim); text-decoration: none;
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: background .15s, color .15s;
}
.type-tab:hover { color: #fff; text-decoration: none; }
.type-tab.active {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(124, 58, 237, .45);
}
.type-emoji { font-size: 1.05rem; line-height: 1; }
.type-divider { height: 1px; background: var(--border); margin: 14px 0; }
.app-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- language switcher：极简文字，不抢视觉（English-only 站点不再渲染） ---------- */
.lang-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 20px 0 0;
}
.lang-label { font-size: .82rem; font-weight: 700; color: var(--text-faint); margin-right: 4px; text-transform: uppercase; letter-spacing: .3px; }
.lang-chip {
  padding: 5px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: transparent; color: var(--text-faint);
  border: 1.5px solid transparent;
  transition: color .15s, background .15s;
}
.lang-chip:hover { color: var(--brand-pink); background: var(--bg-card-hover); text-decoration: none; }
.lang-chip.active { background: var(--bg-card-hover); color: #fff; }

/* ---------- filter chips (app chips)：灰色胶囊，克制 ---------- */
.chip {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  background: var(--bg-muted); color: var(--text-faint);
  border: 1px solid var(--border);
  transition: color .15s, background .15s, border-color .15s;
}
.chip:hover { color: var(--brand-pink); background: var(--bg-card-hover); border-color: rgba(124, 58, 237, .4); text-decoration: none; }
.chip.active { background: var(--accent-primary); color: #fff; border-color: transparent; }
.chip-logo { width: 16px; height: 16px; object-fit: contain; vertical-align: middle; margin-right: 6px; border-radius: 3px; background: #fff; padding: 1px; }

.list-meta h1 {
  font-size: 1.3rem; color: var(--text); font-weight: 800;
  margin: 26px 0 18px; letter-spacing: .2px;
}
.list-meta h1::before {
  content: ""; display: inline-block; width: 5px; height: 20px;
  background: var(--gradient-primary); border-radius: 3px; margin-right: 12px;
  vertical-align: -3px;
}

/* ---------- card grid：深色磁贴，封面是视觉中心 ---------- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 8px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, .45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }
.cover-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; background: var(--bg-muted);
}
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-rate {
  position: absolute; left: 8px; top: 8px;
  background: linear-gradient(135deg, rgba(255, 212, 71, .95), rgba(255, 227, 138, .95)); color: #06101A;
  font-size: .74rem; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
}
.card-title {
  font-size: .96rem; font-weight: 600; margin: 10px 2px 4px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: break-word; word-break: break-word; /* 长英文单词不撑破卡片 */
}
.card:hover .card-title { color: #fff; }
.card-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-dim); padding: 0 2px 2px; }
.app-tag {
  font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 5px;
  background: rgba(255, 212, 71, .14); color: var(--accent-gold);
  display: inline-flex; align-items: center; gap: 5px;
}
.tag-logo { width: 14px; height: 14px; object-fit: contain; border-radius: 2px; background: #fff; }
.empty { color: var(--text-dim); text-align: center; padding: 80px 0; font-size: 1rem; }

/* ---------- intro text (防 thin content) ---------- */
.intro-text { margin: -8px 0 20px; color: var(--text-dim); font-size: .92rem; max-width: 760px; }

/* ---------- related section (详情页底部内链) ---------- */
.related-section { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-title {
  font-size: 1.15rem; font-weight: 800; margin: 0 0 18px; color: var(--text);
}
.related-title::before {
  content: ""; display: inline-block; width: 5px; height: 18px;
  background: var(--gradient-primary); border-radius: 3px; margin-right: 10px; vertical-align: -3px;
}
.related-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.related-grid .cover-wrap { aspect-ratio: 3/4; }
.related-grid .card-title { font-size: .88rem; }

/* ---------- pager ---------- */
.pager { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 36px 0; }
.page-btn {
  padding: 8px 18px; border-radius: 999px;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border-strong); font-weight: 500;
  transition: border-color .15s, color .15s;
}
.page-btn:hover { border-color: var(--accent-primary); color: #fff; text-decoration: none; }
.page-info { color: var(--text-dim); font-size: .9rem; }

/* ---------- detail page: 3-column ---------- */
.drama-detail { padding: 0 0 56px; }
.breadcrumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  color: var(--text-dim); font-size: .9rem; padding-top: 20px; padding-bottom: 20px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--brand-pink); }
.breadcrumb .current { color: var(--text); font-weight: 500; overflow-wrap: break-word; word-break: break-word; }

.drama-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* sidebar cards */
.drama-sidebar { display: flex; flex-direction: column; gap: 18px; }
.cover-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.cover-card img { width: 100%; display: block; }
.info-card, .promo-card, .share-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm);
}
.info-card h1 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.3; font-weight: 800; color: var(--text); overflow-wrap: break-word; word-break: break-word; }
.meta-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.meta-pill {
  font-size: .78rem; color: var(--text-dim);
  background: var(--bg-muted); border-radius: 999px; padding: 2px 12px;
}
.meta-pill.rate { color: var(--accent-gold); background: rgba(255, 212, 71, .14); }

.desc-box { margin-top: 14px; }
.desc-box h3 { font-size: .95rem; margin: 0 0 6px; color: var(--text); }
.desc-box p { margin: 0; color: var(--text-dim); font-size: .92rem; white-space: pre-wrap; }
.clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.link-btn { background: none; border: none; color: var(--brand-pink); cursor: pointer; padding: 0; font-size: .88rem; font-weight: 600; margin-top: 6px; }
.link-btn:hover { color: #fff; }

.res-box { margin-top: 12px; }
.res-box h3 { font-size: .95rem; margin: 0 0 8px; color: var(--text); }
.res-link {
  display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; margin-bottom: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--bg-muted); color: var(--text-dim);
  border: 1px solid var(--border);
  font-size: .85rem; transition: background .15s, color .15s, border-color .15s;
}
.res-link:hover { text-decoration: none; background: var(--bg-card-hover); color: #fff; border-color: rgba(124, 58, 237, .5); }

/* middle: player / episodes */
.drama-main { display: flex; flex-direction: column; gap: 18px; }
.player-card {
  background: var(--player-bg); border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 9 / 16; max-height: 70vh;
  position: relative; box-shadow: var(--shadow-md);
}
.player-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.7));
}
.play-icon {
  font-size: 3rem; width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent-cyan); color: var(--on-cyan); display: flex; align-items: center; justify-content: center;
  padding-left: 6px; box-shadow: 0 6px 24px rgba(22, 200, 242, .35);
}
.ep-video { width: 100%; height: 100%; display: block; background: var(--player-bg); }

/* novel chapter reader（小说章节预览：暗色阅读面板） */
.player-card:has(.chapter-view) {
  background: var(--bg-card); aspect-ratio: auto; max-height: none;
  border: 1px solid var(--border-soft);
}
.chapter-view { padding: 28px 32px; max-height: 72vh; overflow-y: auto; }
.chapter-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.chapter-kicker {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--brand-pink); margin-bottom: 6px;
}
.chapter-title { font-size: 1.25rem; font-weight: 800; margin: 0; color: var(--text); line-height: 1.4; }
.chapter-text { font-size: 1.02rem; line-height: 1.85; color: var(--text-dim); overflow-wrap: break-word; word-break: break-word; }
.chapter-text p { margin: 0 0 1.05em; }
.chapter-text p:first-child::first-letter {
  font-size: 2.6em; float: left; line-height: .9; margin: .08em .14em 0 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800;
}
.player-playpage { position: relative; width: 100%; height: 100%; }
.nosource-box {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
  padding: 24px;
}
.nosource-tip { color: #fff; margin: 0; font-size: .95rem; text-align: center; }
.play-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(0,0,0,.45); color: #fff; text-decoration: none;
  transition: background .2s;
}
.play-overlay:hover { background: rgba(0,0,0,.55); text-decoration: none; }
.big-play { font-size: 3.5rem; }

.episodes-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm);
}
.episodes-panel h2 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 800; color: var(--text); }
.episodes-panel h2::before {
  content: ""; display: inline-block; width: 4px; height: 16px;
  background: var(--gradient-primary); border-radius: 2px; margin-right: 10px; vertical-align: -2px;
}
.ep-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-btn {
  background: var(--bg-muted); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 14px; cursor: pointer; font-size: .85rem; font-weight: 500;
  transition: color .15s, background .15s, border-color .15s;
}
.ep-btn:hover { color: #fff; background: var(--bg-card-hover); border-color: rgba(124, 58, 237, .5); }
.ep-btn.active { background: var(--accent-primary); color: #fff; border-color: transparent; font-weight: 700; }
.zp-eps .ep-btn { width: 100%; padding: 9px 6px; font-size: .82rem; }
.ep-result { margin-top: 8px; }
.ep-result h3 { margin: 10px 0; font-size: 1rem; color: var(--text); }

/* zip-player：DramaBox ZIP 资源包预览（视频字节走 CF 边缘，不经过源站） */
.player-card:has(.zp) { background: var(--bg-card); aspect-ratio: auto; max-height: none; border: 1px solid var(--border-soft); }
.zp { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.zp-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
/* 注意：video 的真实路径是 .zp > .zp-main > .ep-video，早期写成 .zp > .ep-video 从未命中。
   竖屏短剧多为 9:16，按容器全宽渲染会高达 ~870px 把选集挤出首屏，
   因此这里锁高度（68vh）让宽度由 aspect-ratio 反推，居中留黑边。 */
.zp .ep-video {
  display: block;
  height: min(68vh, 720px);
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  margin: 0 auto;
  background: #000;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}
.zp-bar { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.zp-hdr { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--text-dim); }
.zp-hdr-title { font-weight: 600; color: var(--text); }
.zp-hdr-now { font-variant-numeric: tabular-nums; }
.zp-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; align-content: start; }
.zp-status { min-height: 1.2em; font-size: .88rem; color: var(--text-dim); text-align: center; }
.zp-status:empty { display: none; }
.zp-dl {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--bg-muted); color: var(--text); text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 7px 14px; font-size: .85rem; font-weight: 600;
  transition: color .15s, background .15s, border-color .15s;
}
.zp-dl:hover { text-decoration: none; color: #fff; background: var(--bg-card-hover); border-color: rgba(124, 58, 237, .5); }
.zp-error { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 8px; text-align: center; }
.zp-error-msg { margin: 0; color: #fff; font-size: .92rem; max-width: 46ch; }
.zp-resume {
  background: var(--bg-card);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius);
  padding: 16px 14px;
  margin: 0 18px 14px;
  text-align: center;
}
.zp-resume-msg { margin: 0 0 12px; font-size: .95rem; color: var(--text); }
.zp-resume-msg strong { color: var(--brand-pink); }
.zp-resume-row { display: flex; gap: 10px; justify-content: center; }
.zp-resume-yes, .zp-resume-no {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 18px; cursor: pointer; font-weight: 600; font-size: .88rem;
  transition: color .15s, background .15s, border-color .15s;
}
.zp-resume-yes { background: var(--accent-primary); color: #fff; border-color: transparent; font-weight: 700; }
.zp-resume-no { background: var(--bg-muted); color: var(--text-dim); }
.zp-resume-no:hover { color: #fff; background: var(--bg-card-hover); }


/* right: promo card */
.promo-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.app-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  flex: 0 0 auto; overflow: hidden;
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.promo-card-head h2 { margin: 0; font-size: 1.1rem; line-height: 1.3; font-weight: 800; color: var(--text); }
.promo-card-head p { margin: 2px 0 0; font-size: .82rem; color: var(--text-dim); }

/* primary button: 主紫 CTA（Purple = Action） */
.promo-main-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--accent-primary); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 14px 16px;
  margin-bottom: 10px; box-shadow: 0 6px 18px rgba(124, 58, 237, .28);
  transition: filter .15s, transform .15s;
}
.promo-main-btn:hover { filter: brightness(1.08); transform: translateY(-1px); text-decoration: none; }
.promo-main-btn .main-icon { font-size: 1.3rem; line-height: 1; }
.promo-main-btn .main-text { display: flex; flex-direction: column; min-width: 0; }
.promo-main-btn .main-text strong { font-size: 1.02rem; font-weight: 700; }
.promo-main-btn .main-sub { font-size: .82rem; opacity: .9; margin-top: 2px; }

/* secondary button: 深色面 + 细描边 */
.promo-sub-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); color: var(--text); text-decoration: none;
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 13px 16px;
  margin-bottom: 16px; transition: border-color .15s, background .15s;
}
.promo-sub-btn:hover { background: var(--bg-card-hover); border-color: rgba(124, 58, 237, .55); text-decoration: none; }
.promo-sub-btn .sub-icon { font-size: 1.3rem; line-height: 1; }
.promo-sub-btn .sub-text { display: flex; flex-direction: column; min-width: 0; }
.promo-sub-btn .sub-text strong { font-size: 1rem; font-weight: 700; }
.promo-sub-btn .sub-sub { font-size: .8rem; color: var(--text-dim); margin-top: 2px; }

/* search code box: 淡紫底 */
.search-code-box { background: rgba(124, 58, 237, .12); border: 1px solid rgba(124, 58, 237, .28); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.search-code-box h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: var(--text); }
.search-code-tip { margin: 0 0 12px; font-size: .82rem; color: var(--text-dim); }

/* code copy button: 深底 */
.code-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  flex-wrap: wrap;
  background: var(--bg-muted); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 14px; cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.code-btn:hover { border-color: rgba(124, 58, 237, .55); }
.code-btn.copied { border-color: var(--success); background: rgba(114, 216, 60, .10); }
.code-btn .code-prefix { font-size: .78rem; color: var(--text-faint); white-space: nowrap; }
.code-btn .code-value {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-align: left;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  letter-spacing: 1px;
}
.code-btn .code-action {
  font-size: .78rem;
  color: var(--brand-pink);
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, .35);
  background: rgba(124, 58, 237, .10);
  flex: 0 0 auto;
}
.code-btn.copied .code-action { color: var(--success); border-color: rgba(114, 216, 60, .35); background: rgba(114, 216, 60, .10); }

/* share card */
.share-card h3 { margin: 0 0 12px; font-size: 1rem; font-weight: 800; color: var(--text); }
.share-btns { display: flex; flex-direction: column; gap: 8px; }
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; padding: 10px 14px; font-size: .9rem; font-weight: 500;
  border: none; cursor: pointer; text-decoration: none;
  transition: filter .15s;
}
.share-btn:hover { text-decoration: none; filter: brightness(1.12); }
.share-btn.fb { background: var(--facebook); color: #fff; }
.share-btn.tw { background: var(--twitter); color: #fff; }
.share-btn.cp { background: var(--bg-card-hover); color: var(--text); border: 1px solid var(--border-strong); }

/* generic copy button */
.btn-copy {
  background: var(--bg-muted); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 7px 14px; cursor: pointer; font-size: .88rem; font-weight: 600;
}
.btn-copy:hover { border-color: rgba(124, 58, 237, .55); color: #fff; }

/* promo generic resource rows */
.promo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.promo-label { flex: 0 0 100px; font-size: .85rem; color: var(--text-dim); }
.promo-input {
  flex: 1; min-width: 180px; background: var(--bg-muted); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 10px; font-size: .85rem;
}
.promo-input:focus { border-color: var(--accent-primary); outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.promo-copy {
  flex: 1; min-width: 200px; margin: 0; background: var(--bg-muted); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 7px 10px; font-size: .85rem; white-space: pre-wrap; font-family: inherit;
  overflow-wrap: anywhere; word-break: break-word; /* 长 URL 可断行，避免撑破移动端 */
}

.pending { color: var(--text-faint); }
.error { color: var(--danger); }
.error-page { text-align: center; padding: 80px 0; color: var(--text-dim); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-header);
  padding: 28px 0; margin-top: 48px;
}
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-logo .logo-text { font-size: 1.1rem; }
.footer-note { margin: 0; color: var(--text-faint); font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .drama-layout { grid-template-columns: 220px 1fr; }
  .drama-sidebar.right { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .promo-card, .share-card { flex: 1; min-width: 280px; }
  .main-nav { display: none; }
}
@media (max-width: 720px) {
  /* 头部：移动端重排，恢复左右边距，频道导航独立成行且不拥挤 */
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;          /* 关键：覆盖 .wrap 的 0 边距，避免贴边挤在一起 */
  }
  .logo { flex: 0 0 auto; order: 1; }
  .logo-text { font-size: 1.15rem; }   /* 缩小 logo 字号，给搜索框留出宽度 */
  .search-form {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    width: auto;
  }
  .search-form input {
    flex: 1; width: 100%;
    min-width: 0;                          /* 关键：input 内在宽度 ~310px，不设为 0 会撑破视口 → X 轴滚动 */
    padding: 9px 84px 9px 38px;            /* 按钮更紧凑，缩小右侧留白 */
    font-size: .88rem;
  }
  .search-form button { padding: 7px 12px; font-size: .82rem; right: 3px; }
  .main-nav {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;               /* 关键：允许收缩到视口宽度内，避免撑破页面导致 X 轴滚动 */
    display: flex;              /* 移动端显示频道导航（原 ≤1024px 隐藏） */
    gap: 20px;
    margin: 0;
    overflow-x: auto;           /* 频道较多时横向滚动，不挤压换行 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; padding: 4px 0; }
  .nav-link.active::after { bottom: -6px; height: 2px; }

  /* 一体化筛选卡：类型 tab 在窄屏收缩（分段胶囊样式，320px 不溢出） */
  .type-filter { margin: 16px 0 6px; padding: 12px 12px; }
  .type-tab { padding: 7px 14px; font-size: .9rem; gap: 6px; }
  .type-emoji { font-size: 1rem; }
  .type-divider { margin: 12px 0; }
  .app-chips { gap: 8px; }

  /* Hero spotlight 移动端：海报缩小与文字并排，375px 不溢出 */
  .hero-spotlight { grid-template-columns: 132px 1fr; gap: 16px; }
  .hero-title { font-size: 1.15rem; }
  .hero-desc { -webkit-line-clamp: 2; }
  .hero-btn-watch, .hero-btn-secondary { padding: 9px 18px; font-size: .9rem; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } /* 移动端相关推荐两列，避免窄屏单列浪费 */
  .footer-inner { flex-direction: column; text-align: center; }

  /* 详情页移动端：核心内容（播放器 / 章节正文）首屏优先，次要内容后置 */
  .drama-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .drama-main { order: 1; }              /* 视频 / 章节正文 首屏第一位 */
  .drama-sidebar.left { order: 2; }      /* 标题栏 / 简介 后置 */
  .drama-sidebar.right { order: 3; flex-direction: column; } /* 推广 / 分享按钮 后置并纵向堆叠 */
  .cover-card { display: none; }         /* 移动端省略封面，节省首屏空间（视频自带海报，小说为阅读区） */
  .player-card { max-height: 80vh; }     /* 略放宽，保证首屏看到视频主体 */
  .chapter-view { padding: 18px 16px; font-size: 1rem; max-height: 80vh; } /* 章节阅读区适配小屏 */
  .info-card h1 { font-size: 1.2rem; }
  .drama-sidebar { gap: 14px; }
}

/* 超小屏（≤360px，如 iPhone SE 一代）：隐藏 logo 文字只留图形标，搜索框获得更多可用宽度 */
@media (max-width: 360px) {
  .logo-text { display: none; }
  .logo-img { max-width: 160px; }   /* logo 图缩小，避免窄屏被搜索框挤压 */
  .search-form input { padding-right: 76px; }
}

/* ============================================================
   GEO 实体页（Platform / Genre）+ Drama 详情增强
   ============================================================ */

/* ---------- entity 页（/platform/* 与 /genre/* 共用） ---------- */
.entity-hero {
  display: flex; align-items: center; gap: 20px;
  margin: 8px 0 28px; padding: 24px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.entity-logo {
  width: 72px; height: 72px; flex: 0 0 auto;
  object-fit: contain; border-radius: 14px; background: #fff; padding: 6px;
}
.entity-hero-text { min-width: 0; }
.entity-hero-text h1 {
  margin: 0 0 8px; font-size: 1.55rem; font-weight: 800; line-height: 1.25;
  color: var(--text); overflow-wrap: break-word; word-break: break-word;
}
.entity-intro { margin: 0; color: var(--text-dim); font-size: .96rem; max-width: 760px; }

.entity-section { margin-top: 32px; }
.entity-section h2 {
  font-size: 1.15rem; font-weight: 800; margin: 0 0 16px; color: var(--text);
}
.entity-section h2::before {
  content: ""; display: inline-block; width: 5px; height: 18px;
  background: var(--gradient-primary); border-radius: 3px; margin-right: 10px; vertical-align: -3px;
}
.entity-desc { margin: 0; color: var(--text-dim); font-size: .96rem; line-height: 1.8; max-width: 820px; }

/* ---------- 首页品牌定位区（P1.1）：Dark OTT Hero ---------- */
.home-hero {
  margin: 24px 0 6px; padding: 28px 26px;
  background: var(--gradient-hero);
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.home-hero h1 {
  margin: 0 0 12px; font-size: 1.6rem; font-weight: 800; line-height: 1.3; color: var(--text);
}
.home-hero h1 .brand-gold { color: var(--text); }
.home-hero .hero-tagline {
  margin: 0 0 8px; color: var(--text); font-size: 1.05rem; font-weight: 600; letter-spacing: .2px;
}
.home-hero .hero-sub {
  margin: 0 0 22px; color: var(--text-dim); font-size: .98rem; line-height: 1.7; max-width: 860px;
}
/* Hero OTT spotlight：推荐短剧海报为视觉主角，UI 只做指引 */
.home-hero .hero-head { margin: 0 0 20px; }
.hero-spotlight {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center;
  margin: 0 0 22px;
}
.hero-poster { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-soft); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }
.hero-poster img { display: block; width: 100%; height: auto; object-fit: cover; }
.hero-feature { min-width: 0; }
.hero-badge {
  display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent-cyan); color: #06101A; font-size: .72rem; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase;
}
.hero-title { margin: 0 0 10px; font-size: 1.45rem; font-weight: 800; line-height: 1.3; color: var(--text); }
.hero-desc {
  margin: 0 0 16px; color: var(--text-dim); font-size: .92rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-btn-watch {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 999px;
  background: var(--accent-cyan); color: #06101A; font-weight: 800; font-size: .95rem; text-decoration: none;
  transition: filter .15s, transform .15s;
}
.hero-btn-watch:hover { filter: brightness(1.12); text-decoration: none; transform: translateY(-1px); }
.hero-btn-secondary {
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--border-strong);
  color: var(--text); font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.hero-btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card-hover); text-decoration: none; }
.hero-brandline { margin: 0; font-size: .78rem; color: var(--text-faint); letter-spacing: .2px; }
.home-hero .hero-stats {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 22px;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .stat-num { font-size: 1.35rem; font-weight: 800; color: var(--accent-cyan); line-height: 1.2; }
.hero-stat .stat-label { font-size: .8rem; color: var(--text-faint); }
.hero-section-title {
  font-size: 1.1rem; font-weight: 800; margin: 22px 0 14px; color: var(--text);
}
.hero-section-title::before {
  content: ""; display: inline-block; width: 5px; height: 16px;
  background: var(--gradient-primary); border-radius: 3px; margin-right: 10px; vertical-align: -2px;
}
.platform-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
}
.platform-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border-soft);
  color: var(--text); text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.platform-card:hover { transform: translateY(-3px); border-color: rgba(124, 58, 237, .45); text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.platform-card img {
  width: 34px; height: 34px; flex: 0 0 auto; object-fit: contain;
  border-radius: 8px; padding: 3px;
}
.platform-card .platform-name { font-weight: 700; font-size: .9rem; line-height: 1.25; min-width: 0; overflow-wrap: break-word; }

/* ---------- Drama 详情增强：摘要 / 别名 / 类型 / 主题 / FAQ ---------- */
.drama-summary {
  margin: 0 0 12px; padding: 12px 14px;
  font-size: .93rem; line-height: 1.65; color: var(--text);
  background: rgba(124, 58, 237, .08);
  border-left: 3px solid var(--accent-primary);
  border-radius: 6px;
}
.alt-titles { margin: 0 0 12px; font-size: .86rem; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.alt-titles .alt-label { font-weight: 700; color: var(--text-faint); margin-right: 2px; }
.alt-title {
  display: inline-block; padding: 1px 10px; border-radius: 999px;
  background: var(--bg-muted); color: var(--text-dim); font-size: .8rem; border: 1px solid var(--border);
}
.meta-pill-link { text-decoration: none; transition: background .15s, color .15s; }
.meta-pill-link:hover { color: var(--brand-pink); background: var(--bg-card-hover); text-decoration: none; }
.theme-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.theme-tag {
  font-size: .76rem; color: var(--text-dim); padding: 2px 11px; border-radius: 999px;
  background: var(--bg-muted); border: 1px solid var(--border-soft);
}

/* ---------- FAQ（自然文本，不做 FAQPage 富结果） ---------- */
.faq-list { margin: 0; }
.faq-item { margin: 0 0 12px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 12px; }
.faq-q { font-weight: 700; color: var(--text); font-size: .95rem; margin-bottom: 4px; }
.faq-q::before { content: "Q. "; color: var(--accent-cyan); }
.faq-a { color: var(--text-dim); font-size: .9rem; line-height: 1.7; margin: 0; }

/* ---------- 静态说明页（关于/免责/联系） ---------- */
.static-page { max-width: 760px; margin: 8px auto 40px; padding: 0 4px; }
.static-page h1 { font-size: 1.7rem; margin: 18px 0 8px; color: var(--text); }
.static-page h2 { font-size: 1.15rem; margin: 26px 0 8px; color: var(--text); }
.static-page p { line-height: 1.75; color: var(--text-dim); margin: 10px 0; }
.static-page .lede { font-size: 1.05rem; color: var(--text); }
.static-page .static-list { margin: 10px 0; padding-left: 22px; line-height: 1.9; color: var(--text-dim); }
.static-page .static-list li { margin: 4px 0; }
.static-page .back-link { margin-top: 28px; }
.static-page .back-link a { color: var(--brand-pink); font-weight: 600; text-decoration: none; }
.static-page .back-link a:hover { text-decoration: underline; color: #fff; }

/* 联系页卡片 */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 22px 0 12px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border-radius: 14px; background: var(--bg-card);
  border: 1px solid var(--border-soft); text-decoration: none; color: var(--text);
  box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s, box-shadow .15s;
}
.contact-card:hover { transform: translateY(-3px); border-color: rgba(124, 58, 237, .45); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); }
.contact-card .contact-icon { font-size: 1.8rem; }
.contact-card .contact-name { font-weight: 700; color: var(--text); }
.contact-card .contact-value { color: var(--text-dim); font-size: .95rem; word-break: break-all; }
.contact-note { font-size: .92rem; color: var(--text-faint); margin-top: 4px; }

/* 页脚导航 + 联系方式 */
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 12px 0 4px; }
.footer-nav a { color: var(--text-dim); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--brand-pink); }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0; }
.footer-contact-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim); text-decoration: none; font-size: .9rem; font-weight: 600;
}
.footer-contact-link:hover { color: var(--brand-pink); }

/* ---------- GEO Phase 3：内容网络页（Best 榜单 / Compare 对比 / Alternatives 替代） ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rank-item { position: relative; }
.rank-item .rank-num {
  position: absolute; left: -4px; top: -4px; z-index: 2;
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 800; font-size: 1rem; color: #FFFFFF;
  background: var(--gradient-primary); box-shadow: var(--shadow-sm);
}
.rank-link {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; padding-left: 24px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-soft);
  color: var(--text); text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.rank-link:hover { transform: translateY(-2px); border-color: rgba(124, 58, 237, .45); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); text-decoration: none; }
.rank-link .cover-wrap { flex: 0 0 96px; width: 96px; }
.rank-link .cover-wrap img { width: 96px; height: 128px; object-fit: cover; border-radius: 10px; }
.rank-body { min-width: 0; flex: 1; }
.rank-title { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--text); }
.rank-why { margin: 8px 0 0; font-size: .86rem; line-height: 1.65; color: var(--text-dim); }
.rank-date { color: var(--text-faint); }

.cmp-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); }
.cmp-table { width: 100%; border-collapse: collapse; background: var(--bg-card); min-width: 520px; }
.cmp-table th, .cmp-table td { padding: 12px 16px; text-align: left; font-size: .92rem; }
.cmp-table thead th { background: var(--bg-muted); color: var(--text); font-weight: 800; border-bottom: 1px solid var(--border); }
.cmp-table tbody th { color: var(--text-dim); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--border-soft); }
.cmp-table tbody td { color: var(--text); border-bottom: 1px solid var(--border-soft); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-logo { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-right: 6px; border-radius: 4px; background: #fff; padding: 1px; }
.cmp-note { margin: 10px 0 0; font-size: .82rem; color: var(--text-faint); }

.cmp-dramas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cmp-col { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 16px; }
.cmp-col h3 { margin: 0 0 10px; font-size: .98rem; color: var(--text); }
.cmp-drama-list { list-style: none; margin: 0; padding: 0; }
.cmp-drama-list li { padding: 7px 0; border-bottom: 1px dashed var(--border-soft); }
.cmp-drama-list li:last-child { border-bottom: none; }
.cmp-drama-link { color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.5; }
.cmp-drama-link:hover { color: var(--brand-pink); text-decoration: underline; }
.cmp-drama-meta { color: var(--text-faint); font-size: .82rem; }

.peer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.peer-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border-soft);
  color: var(--text); text-decoration: none;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.peer-link:hover { transform: translateY(-2px); border-color: rgba(124, 58, 237, .45); box-shadow: 0 8px 22px rgba(0, 0, 0, .4); text-decoration: none; }
.peer-logo { width: 44px; height: 44px; flex: 0 0 auto; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.peer-body { min-width: 0; flex: 1; }
.peer-name { margin: 0 0 4px; font-size: .98rem; font-weight: 700; color: var(--text); }
.peer-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--text-dim); }
.peer-genres { color: var(--text-faint); }
.peer-arrow { color: var(--text-faint); font-size: 1.4rem; line-height: 1; }
