/* ============================================================
   KINO·星际影院  H5 科技感设计系统
   深空黑 + 霓虹青 + 电光蓝 + 紫  ·  玻璃拟态 · 霓虹辉光 · 数据流
   ============================================================ */

/* ---------- 维语字体 Alkatip ---------- */
@font-face {
  font-family: "Alkatip";
  src: url("../fonts/alkatip.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alkatip";
  src: url("../fonts/alkatip.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #04060d;
  --bg-2: #080c18;
  --bg-3: #0d1226;
  --panel: rgba(13, 20, 44, 0.55);
  --panel-solid: #0b1122;
  --line: rgba(0, 229, 255, 0.14);
  --line-strong: rgba(0, 229, 255, 0.45);
  --cyan: #00e5ff;
  --blue: #3d7bff;
  --violet: #8b5cf6;
  --pink: #ff2d95;
  --amber: #ffb020;
  --green: #23e0a5;
  --text: #dce8ff;
  --text-dim: #7d8db3;
  --text-faint: #4a5878;
  --danger: #ff4d6d;
  --radius: 14px;
  --shadow-cyan: 0 0 22px rgba(0, 229, 255, 0.35);
  --font: "Alkatip", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
}

/* ---------- 主题风格: 暗红冷金 (红金史诗感) ---------- */
body[data-theme="redgold"] {
  --bg: #0b0607;
  --bg-2: #150a0c;
  --bg-3: #1d0f12;
  --panel: rgba(32, 12, 18, 0.55);
  --panel-solid: #170b0e;
  --line: rgba(255, 150, 70, 0.16);
  --line-strong: rgba(255, 170, 80, 0.5);
  --cyan: #ffa940;
  --blue: #e23b2e;
  --violet: #c9a227;
  --pink: #ff6a3d;
  --amber: #ffd166;
  --green: #ffb020;
  --text: #ffe8d6;
  --text-dim: #c9a58f;
  --text-faint: #8a6a58;
  --danger: #ff4d6d;
  --shadow-cyan: 0 0 22px rgba(255, 160, 64, 0.35);
}

/* ---------- 主题风格: 极夜紫金 (深紫夜空 + 紫罗兰 + 香槟金) ---------- */
body[data-theme="violet"] {
  --bg: #07060f;
  --bg-2: #0d0b1c;
  --bg-3: #141028;
  --panel: rgba(20, 16, 44, 0.55);
  --panel-solid: #100d22;
  --line: rgba(167, 139, 250, 0.16);
  --line-strong: rgba(167, 139, 250, 0.5);
  --cyan: #a78bfa;
  --blue: #6d5df6;
  --violet: #8b5cf6;
  --pink: #ff5fb0;
  --amber: #ffd166;
  --green: #34e0c0;
  --text: #ece6ff;
  --text-dim: #a99fd0;
  --text-faint: #645d8a;
  --danger: #ff4d6d;
  --shadow-cyan: 0 0 22px rgba(167, 139, 250, 0.35);
}

/* ---------- 主题风格: 晨曦白 (浅色明亮, 白灰内容 + 科技蓝) ---------- */
body[data-theme="light"] {
  --bg: #eef1f6;
  --bg-2: #e6eaf2;
  --bg-3: #dde3ee;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-solid: #ffffff;
  --line: rgba(31, 72, 140, 0.12);
  --line-strong: rgba(31, 72, 140, 0.32);
  --cyan: #1e7bff;
  --blue: #3d7bff;
  --violet: #7c5cf6;
  --pink: #ff3d8f;
  --amber: #ff9f1a;
  --green: #0fbf8f;
  --text: #152238;
  --text-dim: #5a6a85;
  --text-faint: #94a1b8;
  --danger: #ff4d6d;
  --shadow-cyan: 0 6px 24px rgba(30, 123, 255, 0.2);
}
/* 浅色主题: 亮底下的局部适配 */
body[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.88); }
body[data-theme="light"] .tabbar { background: rgba(255, 255, 255, 0.94); }
body[data-theme="light"] .search-box,
body[data-theme="light"] .icon-btn,
body[data-theme="light"] .field .input,
body[data-theme="light"] .field textarea,
body[data-theme="light"] .chip,
body[data-theme="light"] .ep-grid .ep,
body[data-theme="light"] .pay-item,
body[data-theme="light"] .plan-item,
body[data-theme="light"] .find-box,
body[data-theme="light"] .hot-chip,
body[data-theme="light"] .modal input,
body[data-theme="light"] .find-tip,
body[data-theme="light"] .skeleton,
body[data-theme="light"] .vip-badge { background: rgba(255, 255, 255, 0.9); }
body[data-theme="light"] .modal { background: linear-gradient(170deg, #ffffff, #f2f5fb); }
body[data-theme="light"] #toast { background: rgba(255, 255, 255, 0.96); }
body[data-theme="light"] .player-lock { background: radial-gradient(500px 300px at 50% 40%, rgba(30, 123, 255, 0.12), rgba(238, 241, 246, 0.92)); }
body[data-theme="light"] .uid-badge { color: #0b3f8f; }
body[data-theme="light"] .logo em { text-shadow: none; }
body[data-theme="light"] .tabbar .tab.on { text-shadow: none; }
body[data-theme="light"] .glow-text { text-shadow: none; }
body[data-theme="light"] .bg-grid { background-image: linear-gradient(rgba(30, 123, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 123, 255, 0.06) 1px, transparent 1px); }
body[data-theme="light"] .bg-glow { background: radial-gradient(600px 380px at 12% -5%, rgba(61, 123, 255, 0.1), transparent 60%), radial-gradient(700px 420px at 88% 0%, rgba(124, 92, 246, 0.08), transparent 60%), radial-gradient(520px 380px at 50% 110%, rgba(30, 123, 255, 0.06), transparent 60%); }
body[data-theme="light"] .auth-head .lg em { text-shadow: none; }
body[data-theme="light"] .vip-hero { background: linear-gradient(120deg, rgba(255, 159, 26, 0.12), rgba(255, 61, 143, 0.08), rgba(124, 92, 246, 0.1)); }

/* ---------- 主题风格: 清凉白 (纯白清爽, 淡青 + 淡蓝, 干净通透) ---------- */
body[data-theme="white"] {
  --bg: #f5f9fc;
  --bg-2: #eef4fa;
  --bg-3: #e4edf6;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-solid: #ffffff;
  --line: rgba(0, 168, 214, 0.10);
  --line-strong: rgba(0, 168, 214, 0.30);
  --cyan: #00a8d6;
  --blue: #1e90ff;
  --violet: #7c8cf6;
  --pink: #ff5f9e;
  --amber: #ffab2e;
  --green: #0ec9a6;
  --text: #0e2233;
  --text-dim: #5b7188;
  --text-faint: #9db1c4;
  --danger: #ff4d6d;
  --shadow-cyan: 0 6px 24px rgba(0, 168, 214, 0.14);
}
body[data-theme="white"] .topbar { background: rgba(255, 255, 255, 0.9); }
body[data-theme="white"] .tabbar { background: rgba(255, 255, 255, 0.95); }
body[data-theme="white"] .search-box,
body[data-theme="white"] .icon-btn,
body[data-theme="white"] .field .input,
body[data-theme="white"] .field textarea,
body[data-theme="white"] .chip,
body[data-theme="white"] .ep-grid .ep,
body[data-theme="white"] .pay-item,
body[data-theme="white"] .plan-item,
body[data-theme="white"] .find-box,
body[data-theme="white"] .hot-chip,
body[data-theme="white"] .modal input,
body[data-theme="white"] .find-tip,
body[data-theme="white"] .skeleton,
body[data-theme="white"] .vip-badge { background: rgba(255, 255, 255, 0.92); }
body[data-theme="white"] .modal { background: linear-gradient(170deg, #ffffff, #f0f6fb); }
body[data-theme="white"] #toast { background: rgba(255, 255, 255, 0.97); }
body[data-theme="white"] .player-lock { background: radial-gradient(500px 300px at 50% 40%, rgba(0, 168, 214, 0.10), rgba(245, 249, 252, 0.94)); }
body[data-theme="white"] .uid-badge { color: #0b6f9f; }
body[data-theme="white"] .logo em { text-shadow: none; }
body[data-theme="white"] .tabbar .tab.on { text-shadow: none; }
body[data-theme="white"] .glow-text { text-shadow: none; }
body[data-theme="white"] .bg-grid { background-image: linear-gradient(rgba(0, 168, 214, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 168, 214, 0.05) 1px, transparent 1px); }
body[data-theme="white"] .bg-glow { background: radial-gradient(600px 380px at 12% -5%, rgba(30, 144, 255, 0.08), transparent 60%), radial-gradient(700px 420px at 88% 0%, rgba(0, 168, 214, 0.06), transparent 60%), radial-gradient(520px 380px at 50% 110%, rgba(30, 144, 255, 0.05), transparent 60%); }
body[data-theme="white"] .auth-head .lg em { text-shadow: none; }
body[data-theme="white"] .vip-hero { background: linear-gradient(120deg, rgba(255, 171, 46, 0.10), rgba(255, 95, 158, 0.07), rgba(124, 140, 246, 0.09)); }

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
input, textarea, select, button { font-family: inherit; outline: none; }

/* ---------- 背景系统: 网格 + 径向光晕 + 扫描线 ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 80%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(600px 380px at 12% -5%, rgba(61,123,255,.20), transparent 60%),
    radial-gradient(700px 420px at 88% 0%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(520px 380px at 50% 110%, rgba(0,229,255,.10), transparent 60%);
}
.bg-scan {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
#particle-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ---------- 顶部导航 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(4, 7, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 19px; letter-spacing: 2px;
}
.logo .logo-mark {
  width: 30px; height: 30px; position: relative;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--violet));
  box-shadow: var(--shadow-cyan);
  font-size: 15px; color: #04121a;
}
.logo em { font-style: normal; color: var(--cyan); text-shadow: 0 0 12px rgba(0,229,255,.8); }
.logo .logo-img { height: 30px; max-height: 30px; width: auto; max-width: 140px; object-fit: contain; border-radius: 6px; }
.topbar .right { display: flex; align-items: center; gap: 10px; }

/* 搜索框 */
.search-box {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px;
  transition: .25s;
}
.search-box:focus-within { border-color: var(--line-strong); box-shadow: 0 0 14px rgba(0,229,255,.25); }
.search-box input { background: none; border: 0; color: var(--text); width: 130px; font-size: 14px; }
.search-box input::placeholder { color: var(--text-faint); }
.search-box .icon { color: var(--cyan); font-size: 15px; }

/* 首页搜索栏(独立一行, 轮播下方) */
.topbar-home { justify-content: center; }
.search-line { padding: 14px 16px 4px; }
.search-line .search-box { width: 100%; max-width: 560px; margin: 0 auto; }
.search-line .search-box input { width: 100%; }

/* 图标按钮 */
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; font-size: 18px; color: var(--text-dim);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: .2s; position: relative;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--cyan);
  background: linear-gradient(180deg, rgba(0,229,255,.10), rgba(0,229,255,.03));
  cursor: pointer; transition: .22s; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #03121c; border: none; box-shadow: 0 0 20px rgba(0,229,255,.35);
}
.btn-primary:active { box-shadow: 0 0 10px rgba(0,229,255,.3); }
.btn-vip {
  background: linear-gradient(90deg, var(--amber), var(--pink));
  color: #1a0b00; border: none; box-shadow: 0 0 20px rgba(255,176,32,.35);
}
.btn-ghost { background: transparent; color: var(--text-dim); border-color: rgba(255,255,255,.12); }
.btn-lg { padding: 13px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- 区块标题 ---------- */
.section { padding: 18px 16px 6px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sec-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: 1px;
}
.sec-title::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  box-shadow: 0 0 10px var(--cyan);
}
.sec-more { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 3px; }

/* ---------- 横向滚动卡片列表 ---------- */
.h-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 16px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }

/* 影片卡片 */
.movie-card { flex: 0 0 auto; width: 112px; position: relative; }
.movie-card .cover {
  position: relative; width: 100%; height: 0; padding-bottom: 150%;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-3);
}
.movie-card .cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; transition: .35s;
}
.movie-card:active .cover img { transform: scale(1.08); }
.movie-card .cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55));
}
.movie-card .score {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  font-size: 11px; font-weight: 800; color: var(--amber);
  background: rgba(0,0,0,.55); padding: 2px 6px; border-radius: 6px;
  border: 1px solid rgba(255,176,32,.4);
  backdrop-filter: blur(4px);
}
.movie-card .vip-tag {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  font-size: 10px; font-weight: 700; color: #1a0b00;
  background: linear-gradient(90deg, var(--amber), var(--pink));
  padding: 2px 7px; border-radius: 6px; box-shadow: 0 0 10px rgba(255,176,32,.5);
}
.movie-card .type-tag {
  position: absolute; bottom: 6px; left: 6px; z-index: 2;
  font-size: 10px; font-weight: 600; color: #cfeaff;
  background: rgba(9,28,50,.72);
  border: 1px solid rgba(63,158,255,.5);
  padding: 2px 7px; border-radius: 6px; backdrop-filter: blur(4px);
}
.movie-card .name {
  margin-top: 7px; font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: center;
}
.movie-card .meta { font-size: 11px; color: var(--text-faint); margin-top: 2px; text-align: center; }

/* ---------- 轮播 ---------- */
.banner-wrap { position: relative; padding: 14px 16px 4px; }
.swiper { border-radius: 16px; overflow: hidden; position: relative; width: 100%; height: 0; padding-bottom: 56.25%; border: 1px solid var(--line); }
.swiper .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; pointer-events: none; }
.swiper .slide.active { opacity: 1; pointer-events: auto; }
.swiper .slide img { width: 100%; height: 100%; object-fit: cover; }
.swiper .slide .mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4,6,13,.42) 58%, rgba(4,6,13,.92) 100%);
}
.swiper .slide .info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 44px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(2,4,10,.72) 58%, rgba(2,4,10,.95) 100%);
}
.swiper .slide .t {
  font-size: 27px; font-weight: 900; letter-spacing: .5px; color: #fff;
  -webkit-text-stroke: 1.5px rgba(0,0,0,.6);
  text-shadow: 0 3px 6px rgba(0,0,0,.95), 0 0 22px rgba(0,229,255,.4), 0 0 44px rgba(0,229,255,.18);
}
.swiper .slide .sub { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 7px; letter-spacing: .3px; }
.swiper .dots { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 5px; }
.swiper .dots i { width: 16px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); transition: .3s; }
.swiper .dots i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; justify-content: space-around; align-items: center;
  height: 62px; padding-bottom: env(safe-area-inset-bottom);
  background: rgba(6, 10, 22, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-faint); font-size: 11px; transition: .2s;
}
.tabbar .tab .ic { font-size: 21px; line-height: 1; }
.tabbar .tab.on { color: var(--cyan); text-shadow: 0 0 12px rgba(0,229,255,.7); }
.page { padding-bottom: 88px; }

/* ---------- 海报大卡(详情/列表大图) ---------- */
.hero {
  position: relative; height: 260px; overflow: hidden;
}
.hero .bg { position: absolute; inset: 0; filter: blur(26px) saturate(1.2); transform: scale(1.15); object-fit: cover; width: 100%; height: 100%; opacity:.7; }
.hero .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,6,13,.35), var(--bg) 96%); }
.hero .content { position: absolute; left: 16px; right: 16px; bottom: 18px; display: flex; gap: 14px; align-items: center; }
.hero .poster { width: 152px; height: 228px; aspect-ratio: 2/3; position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 8px 30px rgba(0,0,0,.6); flex-shrink: 0; }
.hero .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .meta { flex: 1; min-width: 0; }
.hero .meta h1 { font-size: 22px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero .meta .line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-chip {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim); background: rgba(255,255,255,.04);
}
.tag-chip.hl { color: var(--cyan); border-color: var(--line-strong); }
.score-big { color: var(--amber); font-size: 15px; font-weight: 800; }

/* ---------- 通用卡片 / 列表行 ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(10px);
}
.row-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.row-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; backdrop-filter: blur(8px);
}
.row-card .thumb { width: 64px; position: relative; height: 0; padding-bottom: 150%; border-radius: 9px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); }
.row-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-card .info { flex: 1; min-width: 0; }
.row-card .info .t { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-card .info .d { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.row-card .info .d em { font-style: normal; color: var(--amber); font-weight: 700; }

/* ---------- VIP 卡片 ---------- */
.vip-hero { position: relative; margin: 16px; padding: 22px 18px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(120deg, rgba(255,176,32,.16), rgba(255,45,149,.14), rgba(139,92,246,.18));
  border: 1px solid rgba(255,176,32,.35); }
.vip-hero::before { content:""; position:absolute; inset:0; background:
  radial-gradient(300px 120px at 20% 0%, rgba(255,176,32,.25), transparent 70%),
  radial-gradient(300px 120px at 90% 100%, rgba(255,45,149,.22), transparent 70%); }
.vip-hero .t { font-size: 22px; font-weight: 800; position: relative; }
.vip-hero .t em { font-style: normal; color: var(--amber); }
.vip-hero .d { font-size: 12px; color: var(--text-dim); margin-top: 6px; position: relative; }
.vip-hero .st { position: relative; margin-top: 12px; display: inline-flex; align-items:center; gap:6px; font-size: 12px; color: var(--green); }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 16px 10px; }
.plan {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 10px; text-align: center; position: relative; cursor: pointer; transition: .22s;
}
.plan .p-name { font-size: 14px; font-weight: 700; }
.plan .p-price { margin-top: 8px; font-size: 20px; font-weight: 800; color: var(--cyan); }
.plan .p-price small { font-size: 11px; color: var(--text-faint); font-weight: 400; }
.plan .p-old { font-size: 11px; color: var(--text-faint); text-decoration: line-through; margin-top: 2px; }
.plan .p-days { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.plan.on { border-color: var(--cyan); box-shadow: var(--shadow-cyan); background: linear-gradient(180deg, rgba(0,229,255,.10), rgba(61,123,255,.05)); }
.plan.hot::after { content:"HOT"; position:absolute; top:-8px; right:-6px; font-size:9px; font-weight:800;
  background: linear-gradient(90deg,var(--amber),var(--pink)); color:#1a0b00; padding:2px 7px; border-radius:6px; }

/* ---------- 表单 ---------- */
.form { padding: 20px 20px 8px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 7px; letter-spacing: 1px; }
.field .input {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; height: 48px;
  transition: .25s;
}
.field .input:focus-within { border-color: var(--cyan); box-shadow: 0 0 14px rgba(0,229,255,.22); }
.field .input .ic { color: var(--text-faint); font-size: 17px; }
.field .input input { flex: 1; background: none; border: 0; color: var(--text); font-size: 15px; height: 100%; }
.field .input input::placeholder { color: var(--text-faint); }
.field textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); padding: 12px 14px; font-size: 14px; resize: vertical; min-height: 90px;
}

/* ---------- Toast ---------- */
#toast {
  position: fixed; top: 14%; left: 50%; transform: translateX(-50%) translateY(-16px);
  z-index: 200; background: rgba(10,16,32,.92); border: 1px solid var(--line-strong);
  color: var(--text); padding: 11px 22px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .3s; backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(0,229,255,.18); white-space: nowrap; max-width: 86vw;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { border-color: rgba(255,77,109,.6); box-shadow: 0 0 24px rgba(255,77,109,.25); }

/* ---------- 加载中 / 空状态 ---------- */
.loading { display:flex; flex-direction: column; align-items:center; gap:12px; padding: 60px 0; color: var(--text-faint); }
.spinner { width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(0,229,255,.15); border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align:center; padding: 60px 20px; color: var(--text-faint); font-size: 14px; }

/* 骨架屏 */
.skeleton { position: relative; overflow: hidden; background: rgba(255,255,255,.05); }
.skeleton::after { content:""; position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.08), transparent);
  animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

/* ---------- 通用工具 ---------- */
.flex { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap8 { gap: 8px; } .gap10 { gap: 10px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.dim { color: var(--text-dim); }
.cyan { color: var(--cyan); }
.center { text-align: center; }
.hide { display: none !important; }
.glow-text { text-shadow: 0 0 14px rgba(0,229,255,.7); }

/* 网格卡片(电影列表页) */
.grid-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 4px 16px 16px; }
.grid-list .movie-card { width: 100%; min-width: 0; }
.grid-list .movie-card .name { width: 100%; }

/* 分集 */
.ep-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ep-grid .ep { text-align:center; padding: 8px 2px; font-size: 12px; border-radius: 9px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--text-dim); transition:.2s; }
.ep-grid .ep.on { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,229,255,.25); background: rgba(0,229,255,.07); }
.ep-grid .ep.lock { position: relative; overflow: hidden; }
.ep-grid .ep.lock::before {
  content: "VIP";
  position: absolute;
  top: 0; right: 0;
  font-size: 8px; font-weight: 800; letter-spacing: 0;
  background: linear-gradient(135deg, #ffb020, #ff2d95);
  color: #1a0b00;
  padding: 1px 5px 1px 7px;
  border-bottom-left-radius: 8px;
  line-height: 1.4;
}

/* 筛选栏 */
.filter-bar { display:flex; gap:8px; overflow-x:auto; padding: 8px 16px; scrollbar-width:none; }
.filter-bar::-webkit-scrollbar { display:none; }
.chip { flex:0 0 auto; font-size:13px; padding:7px 16px; border-radius:999px;
  border:1px solid var(--line); color:var(--text-dim); background:rgba(255,255,255,.03); cursor:pointer; transition:.2s; }
.chip.on { color:#03121c; background: linear-gradient(90deg,var(--cyan),var(--blue)); border-color:transparent; font-weight:600; box-shadow:0 0 14px rgba(0,229,255,.3); }

/* 支付方式 */
.pay-type { display:flex; gap:10px; }
.pay-item { flex:1; text-align:center; padding:14px 6px; border-radius:12px; border:1px solid var(--line);
  background:rgba(255,255,255,.03); cursor:pointer; transition:.2s; }
.pay-item .ic { font-size:24px; }
.pay-item .n { font-size:12px; color:var(--text-dim); margin-top:5px; }
.pay-item.on { border-color:var(--cyan); box-shadow:var(--shadow-cyan); background:rgba(0,229,255,.07); }

/* 播放页开通VIP弹窗 */
.plan-list { display:flex; flex-direction:column; gap:10px; margin:16px 0; }
.plan-item { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-radius:14px;
  border:1px solid var(--line); background:rgba(255,255,255,.03); cursor:pointer; transition:.2s; }
.plan-item .pi-n { font-size:15px; font-weight:700; }
.plan-item .pi-p { font-size:15px; font-weight:900; color:var(--amber); }
.plan-item .pi-p em { font-size:12px; color:var(--text-dim); font-weight:400; font-style:normal; }
.plan-item.on { border-color:var(--cyan); box-shadow:var(--shadow-cyan); background:rgba(0,229,255,.07); }
.vip-modal .pay-type { margin: 0 0 16px; }
.vip-modal .m-d { margin-bottom: 4px; }
.vip-open { cursor: pointer; border-color: var(--cyan) !important; color: var(--cyan) !important; box-shadow: var(--shadow-cyan); }

/* 空标题下划线动画 */
.link-line { position: relative; }
.link-line::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:1px; background:var(--cyan); transition:.3s; }
.link-line:active::after { width:100%; }

/* 头像 */
.avatar { width: 64px; height: 64px; border-radius: 50%; display:grid; place-items:center;
  font-size: 26px; font-weight:800; color:#03121c;
  background: linear-gradient(135deg,var(--cyan),var(--blue),var(--violet));
  box-shadow: 0 0 24px rgba(0,229,255,.35); overflow:hidden; }
.avatar img { width:100%; height:100%; object-fit:cover; }

/* 统计条(个人中心) */
.stat-row { display:flex; background:var(--panel); border:1px solid var(--line); border-radius:14px; margin: 0 16px; }
.stat-row .st { flex:1; text-align:center; padding:14px 0; }
.stat-row .st + .st { border-left:1px solid var(--line); }
.stat-row .st .v { font-size:20px; font-weight:800; color:var(--cyan); }
.stat-row .st .k { font-size:12px; color:var(--text-dim); margin-top:3px; }

/* 菜单项 */
.menu { margin: 14px 16px; }
.menu .mi { display:flex; align-items:center; gap:12px; padding:15px 14px;
  background:var(--panel); border:1px solid var(--line); border-radius:12px; margin-bottom:10px; cursor:pointer; transition:.2s; }
.menu .mi:active { transform:scale(.98); border-color:var(--line-strong); }
.menu .mi .ic { font-size:20px; }
.menu .mi .tx { flex:1; font-size:15px; font-weight:600; }
.menu .mi .ar { color:var(--text-faint); }

/* 登录/注册 页专用 */
.auth-page { min-height:100vh; display:flex; flex-direction:column; justify-content:center; padding: 0 26px; }
.auth-head { text-align:center; margin-bottom: 34px; }
.auth-head .lg { font-size: 34px; font-weight: 800; letter-spacing: 3px; }
.auth-head .lg em { font-style:normal; color: var(--cyan); text-shadow: 0 0 20px rgba(0,229,255,.8); }
.auth-head p { color: var(--text-faint); font-size: 13px; margin-top: 8px; letter-spacing: 2px; }
.auth-foot { text-align:center; margin-top: 22px; font-size: 13px; color: var(--text-faint); }
.auth-foot a { color: var(--cyan); }
.auth-hint { text-align:center; margin-top: 14px; font-size: 12px; color: var(--text-faint); line-height: 1.7; }

/* VIP 弹层 */
.modal-mask { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(3,5,12,.72); backdrop-filter: blur(6px); padding: 22px; }
.modal-mask.show { display: flex; }
.modal { position: relative; width: 100%; max-width: 360px; padding: 30px 22px 22px; border-radius: 20px;
  background: linear-gradient(170deg, #101830, #070b18); border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 50px rgba(0,229,255,.08); }
.modal .m-close { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.05); color: var(--text-faint); cursor: pointer; font-size: 14px; }
.modal .m-t { font-size: 18px; font-weight: 800; text-align: center; }
.modal .m-d { text-align: center; color: var(--text-dim); margin: 10px 0 18px; font-size: 13px; }

/* ---------- 幸运转盘 ---------- */
.wheel-wrap { direction: ltr; display: flex; justify-content: center; padding: 18px 16px 6px; }
.wheel { position: relative; width: min(330px, 88vw); height: min(330px, 88vw); }
.wheel-disc {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 6px rgba(10,16,32,.9), 0 0 46px rgba(0,229,255,.28), inset 0 0 40px rgba(0,0,0,.3);
}
.wheel-disc img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; display: block; }
.wheel-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 3;
  width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, #16223f, #070b18 72%);
  border: 2px solid rgba(0,229,255,.4); box-shadow: 0 0 30px rgba(0,229,255,.35), inset 0 0 24px rgba(0,0,0,.6); }
.wheel-btn { width: 92px; height: 92px; border: 0; border-radius: 50%; cursor: pointer; color: #04121a;
  font-size: 13px; font-weight: 800; line-height: 1.45; letter-spacing: .5px;
  background: linear-gradient(145deg, #ffe08a, #ffb020 55%, #f08c00);
  box-shadow: 0 8px 24px rgba(255,176,32,.45), inset 0 1px 0 rgba(255,255,255,.6);
  transition: .15s; }
.wheel-btn:active { transform: scale(.94); }
.wheel-btn b { font-size: 15px; }
.wheel-pin { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid #ffd54a; filter: drop-shadow(0 3px 8px rgba(255,176,32,.7)); }
.wheel-pin::after { content: ""; position: absolute; top: -30px; left: -9px;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7d6, #ffb020); box-shadow: 0 0 12px rgba(255,176,32,.8); }

/* 奖励天数说明 */
.wheel-prizes { direction: rtl; text-align: center; padding: 6px 16px 4px; }
.wp-title { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.wp-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wp { display: inline-flex; align-items: baseline; gap: 2px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; color: var(--text-dim); background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.wp b { font-size: 17px; font-weight: 900; color: var(--amber); text-shadow: 0 0 10px rgba(255,176,32,.45); }
.wp.hot { border-color: rgba(255,176,32,.6); background: linear-gradient(90deg, rgba(255,176,32,.16), rgba(255,45,149,.12)); box-shadow: 0 0 16px rgba(255,176,32,.25); }
.wp.hot b { color: #ffd54a; }

/* 抽奖结果弹窗 */
.result-modal { text-align: center; padding-top: 36px; }
.rm-ic { font-size: 52px; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 0 18px rgba(255,176,32,.6)); }
.rm-t { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: var(--amber); }
.rm-days { margin: 14px 0 6px; }
.rm-days b { font-size: 46px; font-weight: 900; color: var(--amber); text-shadow: 0 0 24px rgba(255,176,32,.6); }
.rm-days span { font-size: 15px; color: var(--text-dim); margin-left: 6px; }
.rm-exp { font-size: 12px; color: var(--text-faint); margin-bottom: 18px; }

/* 播放器 */
.player-wrap { position: relative; background:#000; width:100%; height:0; padding-bottom:56.25%; overflow:hidden; }
.player-wrap video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.player-back { position:absolute; top:10px; left:10px; z-index:30; width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:19px; cursor:pointer;
  background:rgba(4,8,18,.55); border:1px solid rgba(0,229,255,.35); color:#e8f7ff;
  box-shadow:0 2px 14px rgba(0,0,0,.5), inset 0 0 12px rgba(0,229,255,.12); backdrop-filter:blur(6px);
  transition:.2s; }
.player-back:active { transform:scale(.92); }
.player-lock { position:absolute; inset:0; display:none; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  background: radial-gradient(500px 300px at 50% 40%, rgba(61,123,255,.16), rgba(4,6,13,.9)); }
.player-lock .ic { font-size:44px; filter: drop-shadow(0 0 16px rgba(255,176,32,.6)); }
.player-lock .tt { font-size:18px; font-weight:800; letter-spacing:1px; }
.player-lock .dd { font-size:12px; color:var(--text-dim); }
.sound-tip { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:28;
  padding:10px 20px; border-radius:999px; font-size:13px; font-weight:800; white-space:nowrap; cursor:pointer;
  color:#04121a; background:linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow:0 10px 30px rgba(0,0,0,.55); animation:soundTipPulse 1.8s ease-in-out infinite; }
@keyframes soundTipPulse { 0%,100%{opacity:1} 50%{opacity:.65} }
.player-actions { position:absolute; right:12px; bottom:14px; z-index:29; display:flex; gap:10px; }
.player-actions .pa-btn {
  width:42px; height:42px; border-radius:50%; font-size:19px; cursor:pointer; display:flex; align-items:center; justify-content:center;
  background:rgba(4,8,18,.55); border:1px solid rgba(0,229,255,.35); color:#e8f7ff;
  box-shadow:0 2px 14px rgba(0,0,0,.5); backdrop-filter:blur(6px); transition:.2s; }
.player-actions .pa-btn:active { transform:scale(.9); }
.cast-modal .m-d { text-align:center; font-size:12px; line-height:1.8; color:var(--text-dim); }
.cast-link { text-align:center; font-size:12px; color:var(--cyan); margin-top:4px; }

/* 后台管理端 H5 适配的基础样式由 admin.css 补充 */
@media (min-width: 560px) {
  body { max-width: 560px; margin: 0 auto; border-left:1px solid var(--line); border-right:1px solid var(--line); }
  .bg-grid, .bg-glow { max-width: 560px; margin: 0 auto; left:0; right:0; }
}

/* ---------- RTL (维吾尔语从右到左) 微调 ---------- */
[dir="rtl"] .player-back { left: auto; right: 10px; }
[dir="rtl"] .movie-card .vip-tag, [dir="rtl"] .movie-card .type-tag { left: auto; right: 6px; }
[dir="rtl"] .movie-card .score { right: auto; left: 6px; }
[dir="rtl"] .swiper .dots { right: auto; left: 12px; }
[dir="rtl"] .stat-row .st + .st { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .filter-bar, [dir="rtl"] .sort-bar { flex-direction: row-reverse; }

/* ===== 搜片页 find.html ===== */
.find-wrap { padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 22px; }
.find-hero { text-align: center; padding: 18px 0 6px; }
.find-logo { font-size: 30px; font-weight: 700; letter-spacing: 1px; color: var(--cyan); }
.find-sub { margin-top: 8px; font-size: 13px; color: var(--text-dim); letter-spacing: 2px; }
.find-search { display: flex; flex-direction: column; gap: 14px; }
.find-box { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.05);
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 0 18px; height: 56px;
  box-shadow: 0 0 0 1px rgba(0,229,255,.06), 0 0 24px rgba(0,229,255,.08); }
.find-box .ic { color: var(--cyan); font-size: 20px; }
.find-box input { flex: 1; background: none; border: 0; color: var(--text); font-size: 16px; outline: none; }
.find-box input::placeholder { color: var(--text-faint); }
.find-box:focus-within { border-color: var(--cyan); box-shadow: 0 0 18px rgba(0,229,255,.25); }
.find-actions { display: flex; gap: 12px; }
.btn-find { flex: 1.4; height: 50px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 600;
  color: #04121a; background: linear-gradient(135deg, #7cf7ff, #3fb6ff);
  box-shadow: 0 6px 20px rgba(0,229,255,.3); }
.btn-direct { flex: 1; height: 50px; border-radius: 14px; font-size: 15px; color: var(--cyan);
  background: rgba(0,229,255,.08); border: 1px solid rgba(0,229,255,.35); }
.find-tip { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.tip-t { font-size: 13px; color: var(--cyan); margin-bottom: 8px; font-weight: 600; }
.find-tip p { font-size: 13px; color: var(--text-dim); line-height: 1.9; margin: 0 0 14px; }
.find-hot { display: flex; flex-direction: column; gap: 12px; }
.hot-t { font-size: 13px; color: var(--text-dim); }
.hot-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hot-chip { padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--text);
  background: rgba(255,255,255,.05); border: 1px solid var(--line-strong); }
.hot-chip:active { background: rgba(0,229,255,.12); color: var(--cyan); }
/* ===== 个人中心 user.html ===== */
.user-card { display:flex; align-items:center; gap:14px; padding:20px 16px 14px; }
.user-card .info { flex:1; min-width:0; }
.user-card .nick { font-size:19px; font-weight:800; }
.user-card .uname { font-size:12px; color:var(--text-faint); margin-top:2px; }
.user-card .badges { display:flex; align-items:center; gap:8px; margin-top:7px; flex-wrap:wrap; }
.uid-badge { display:inline-block; padding:4px 12px; border-radius:999px; font-size:14px; font-weight:800;
  color:#fff; letter-spacing:1px; cursor:pointer; white-space:nowrap;
  background:linear-gradient(90deg, rgba(0,229,255,.25), rgba(0,229,255,.1));
  border:1px solid rgba(0,229,255,.55); box-shadow:0 0 12px rgba(0,229,255,.25); }
.uid-badge:active { transform:scale(.97); }
.user-card .btn-edit { flex-shrink:0; padding:8px 14px; border-radius:999px; font-size:13px; color:var(--cyan);
  background:rgba(0,229,255,.08); border:1px solid rgba(0,229,255,.35); }
.vip-badge { display:inline-block; padding:3px 10px; border-radius:999px; font-size:11px;
  color:var(--text-dim); background:rgba(255,255,255,.05); border:1px solid var(--line); margin-top:0; }
.logout-btn { display:block; width:calc(100% - 32px); margin:22px 16px; padding:14px; border-radius:14px;
  font-size:15px; color:#ff5a76; background:rgba(255,90,118,.08); border:1px solid rgba(255,90,118,.3); }
.modal input { width:100%; padding:12px 14px; margin-top:10px; border-radius:10px; font-size:14px; color:var(--text);
  background:rgba(255,255,255,.05); border:1px solid var(--line-strong); }
.modal input::placeholder { color:var(--text-faint); }
.modal-actions { display:flex; gap:12px; margin-top:18px; }
.modal-actions .btn { flex:1; }
/* ===== 登录/注册页补充 ===== */
.divider { display:flex; align-items:center; gap:12px; margin:18px 0 14px; color:var(--text-faint); font-size:12px; }
.divider::before, .divider::after { content:""; flex:1; height:1px; background:var(--line); }
.btn-wx { color:#04121a; background:linear-gradient(135deg,#2bdd70,#17b554); box-shadow:0 6px 20px rgba(43,221,112,.3); }