/* ============================================================
   《影子千金》全局样式 - 都市豪门复仇剧主题
   色彩：深黑 + 暗金 + 血红点缀
   ============================================================ */

/* === CSS 变量 === */
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #161616;
  --bg-card: #1e1e1e;
  --bg-elevated: #252525;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark: #8a6d2a;
  --text-primary: #f0e6d2;
  --text-secondary: #9a8f7c;
  --text-muted: #5a5048;
  --accent-red: #c0392b;
  --accent-red-dark: #922b21;
  --accent-blue: #2980b9;
  --border: rgba(201, 168, 76, 0.15);
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'PingFang SC', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --vh: 1vh;
}

/* === 重置 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--gold); text-decoration: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* === 滚动条 === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* === 页面容器 === */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ============================================================
   顶部导航栏
   ============================================================ */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
}
.nav-back {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  font-size: 20px;
  transition: background 0.2s;
}
.nav-back:active { background: rgba(255,255,255,0.12); }
.nav-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
}
.nav-right { width: 40px; }
.nav-points {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--gold-light);
  font-weight: 600;
}

/* ============================================================
   首页
   ============================================================ */
.home-content {
  padding-top: 56px;
  padding-bottom: 90px;
}

/* 剧名标题区 */
.hero-section {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a0a00 0%, #0d0d0d 50%, #000510 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('/img/poster.jpg') center/cover no-repeat;
  opacity: 0.35;
  filter: blur(2px);
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, var(--bg-primary) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 20px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 4px;
  text-shadow: 0 2px 20px rgba(201,168,76,0.5);
  margin-bottom: 6px;
}
.hero-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

/* 剧情简介 */
.section { padding: 20px 16px; }
.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}
.synopsis {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* 人物角色 */
.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.char-card:active { transform: scale(0.96); }
.char-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 6px;
  border: 2px solid var(--border);
}
.char-avatar.gold-border {
  border-color: var(--gold-dark);
  box-shadow: 0 0 8px rgba(201,168,76,0.3);
}
.char-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.char-role {
  font-size: 10px;
  color: var(--text-muted);
}
.char-tag {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  margin-top: 4px;
}

/* 角色详情弹层 */
.char-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.char-modal.show { opacity: 1; pointer-events: auto; }
.char-modal-content {
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
}
.char-modal-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-dark);
  margin: 0 auto 12px;
  display: block;
}
.char-modal-name {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.char-modal-meta {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.char-modal-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* 剧集列表 */
.episodes-list { display: flex; flex-direction: column; gap: 10px; }
.ep-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.ep-card:active { transform: scale(0.99); }
.ep-card.locked {
  opacity: 0.7;
}
.ep-card.free-badge {
  border-color: rgba(39, 174, 96, 0.4);
}
.ep-thumb {
  width: 80px; height: 56px;
  border-radius: 6px;
  background: var(--bg-elevated);
  object-fit: cover;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2a1a00, #1a0a00);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.ep-info { flex: 1; min-width: 0; }
.ep-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ep-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
}
.ep-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}
.ep-badge-free {
  background: rgba(39,174,96,0.15);
  color: #27ae60;
  border: 1px solid rgba(39,174,96,0.3);
}
.ep-badge-lock {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
}
.ep-badge-points {
  background: rgba(192,57,43,0.12);
  color: var(--accent-red);
  border: 1px solid rgba(192,57,43,0.25);
}
.ep-lock-icon {
  width: 36px; height: 36px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--gold);
}
.ep-unlocked-icon {
  width: 36px; height: 36px;
  background: rgba(39,174,96,0.1);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: #27ae60;
}
.ep-play-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: #1a0a00;
}

/* ============================================================
   播放页面
   ============================================================ */
.player-page {
  display: none;
  position: fixed; inset: 0;
  background: #000;
  z-index: 300;
  flex-direction: column;
}
.player-page.active { display: flex; }

/* 视频容器 */
.video-wrap {
  position: relative;
  width: 100%;
  background: #000;
  /* 16:9 固定比例 */
  padding-top: 56.25%;
}
.video-wrap video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
}
.video-error-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.9);
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}
.video-error-overlay.show { display: flex; }
.video-error-icon { font-size: 48px; }
.video-error-btn {
  background: var(--gold);
  color: #1a0a00;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
}

/* 播放控制栏 */
.player-controls {
  background: var(--bg-secondary);
  padding: 12px 16px 16px;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.player-ep-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.player-ep-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* 进度条 */
.progress-bar-wrap {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.progress-time {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 36px;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.1s linear;
}
.progress-thumb {
  position: absolute;
  width: 12px; height: 12px;
  background: var(--gold-light);
  border-radius: 50%;
  top: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(201,168,76,0.5);
  transition: left 0.1s linear;
}

/* 操控按钮 */
.player-btns {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.player-btn-group {
  display: flex; gap: 12px;
}
.ctrl-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.ctrl-btn:active { background: rgba(255,255,255,0.15); transform: scale(0.96); }
.ctrl-btn.active {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.4);
  color: var(--gold-light);
}
.ctrl-btn-icon { font-size: 16px; }

/* 集数切换 */
.ep-switcher {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ep-switcher::-webkit-scrollbar { display: none; }
.ep-switch-btn {
  flex-shrink: 0;
  min-width: 60px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 0 12px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.ep-switch-btn.current {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.5);
  color: var(--gold-light);
}
.ep-switch-btn.locked {
  opacity: 0.5;
}
.ep-switch-btn.unlocked {
  color: #27ae60;
}

/* 字幕区 */
.subtitle-area {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.subtitle-label {
  font-size: 10px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.subtitle-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  min-height: 44px;
}

/* 集简介 */
.ep-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
}

/* 连续播放提示 */
.autoplay-toast {
  position: fixed;
  top: 70px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: white;
  font-size: 13px;
  padding: 8px 20px;
  border-radius: 20px;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.autoplay-toast.show { opacity: 1; }

/* ============================================================
   个人中心
   ============================================================ */
.profile-content {
  padding-top: 56px;
  padding-bottom: 90px;
}
.profile-header {
  background: linear-gradient(135deg, #1a0a00, #0d0d0d);
  padding: 40px 20px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.profile-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--gold-dark);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.profile-id {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.profile-points-card {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 24px;
  padding: 8px 20px;
}
.profile-points-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
}
.profile-points-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.profile-menu {
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.menu-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.menu-item:active { background: var(--bg-elevated); }
.menu-icon {
  width: 40px; height: 40px;
  background: rgba(201,168,76,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.menu-icon.green { background: rgba(39,174,96,0.1); }
.menu-icon.red { background: rgba(192,57,43,0.1); }
.menu-text { flex: 1; }
.menu-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.menu-desc { font-size: 11px; color: var(--text-muted); }
.menu-arrow { font-size: 16px; color: var(--text-muted); }

/* 已解锁剧集列表 */
.unlocked-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.unlocked-ep-card {
  background: var(--bg-card);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
}
.unlocked-ep-num {
  font-size: 16px;
  font-weight: 800;
  color: #27ae60;
  margin-bottom: 2px;
}
.unlocked-ep-name {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.empty-unlocked {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.empty-icon { font-size: 48px; margin-bottom: 10px; }

/* ============================================================
   解锁弹窗
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%; max-width: 340px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s;
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-lock-icon {
  font-size: 48px;
  margin-bottom: 14px;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.modal-ep-name {
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.modal-cost {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.modal-cost-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.modal-balance {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
}
.modal-balance strong { color: var(--gold); }
.modal-balance.insufficient strong { color: var(--accent-red); }
.modal-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.modal-btn:active { transform: scale(0.97); }
.modal-btn-primary {
  background: var(--gold);
  color: #1a0a00;
}
.modal-btn-danger {
  background: var(--accent-red);
  color: white;
}
.modal-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}
.modal-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}
.modal-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold);
  font-size: 13px;
}
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   底部 Tab 导航
   ============================================================ */
.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  background: rgba(13,13,13,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tab-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  background: none; border: none;
}
.tab-item.active { color: var(--gold); }
.tab-icon { font-size: 22px; line-height: 1; }
.tab-label { letter-spacing: 0.5px; }

/* ============================================================
   分享面板
   ============================================================ */
.share-panel {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.share-panel.show { opacity: 1; pointer-events: auto; }
.share-content {
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 40px;
  width: 100%;
}
.share-title {
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 20px;
}
.share-link-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.share-link-text {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: monospace;
}
.share-copy-btn {
  background: var(--gold);
  color: #1a0a00;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 6px;
  flex-shrink: 0;
}
.share-ways {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.share-way {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
}
.share-way-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.share-way-name { font-size: 11px; color: var(--text-secondary); }
.share-close-btn {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ============================================================
   Toast 提示
   ============================================================ */
.toast {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%) translateY(-10px);
  background: rgba(30,30,30,0.97);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.toast.success { border-color: rgba(39,174,96,0.4); color: #27ae60; }
.toast.error { border-color: rgba(192,57,43,0.4); color: #e74c3c; }
.toast.gold { border-color: rgba(201,168,76,0.4); color: var(--gold-light); }

/* ============================================================
   加载状态
   ============================================================ */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
}
.loading-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--gold-light);
  letter-spacing: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}
.loading-bar {
  width: 120px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  animation: loading 1.5s ease-in-out infinite;
}
@keyframes loading { 0% { width: 0; } 50% { width: 80%; } 100% { width: 100%; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

/* ============================================================
   移动端安全适配
   ============================================================ */
@media (max-width: 480px) {
  .hero-title { font-size: 22px; letter-spacing: 2px; }
  .hero-section { height: 240px; }
  .char-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .char-avatar { width: 40px; height: 40px; }
  .char-name { font-size: 10px; }
  .ep-thumb { width: 68px; height: 48px; }
}

/* iOS 微信浏览器修复 */
@supports (-webkit-touch-callout: none) {
  body { min-height: -webkit-fill-available; }
  .tab-bar { padding-bottom: 20px; }
}

/* 全屏播放器 */
:fullscreen .player-controls,
:-webkit-full-screen .player-controls {
  max-height: 40vh;
  overflow-y: auto;
}
