/* 星辰影院 CMS —— 前台样式 */
:root {
  --bg: #0d1017;
  --bg2: #151a24;
  --card: #1a2029;
  --line: #262d39;
  --txt: #e6e9ef;
  --muted: #8a94a6;
  --main: #ff5f2e;
  --main2: #ff8a3d;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  padding-top: 56px;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 12px; }

/* 顶栏 */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 50;
  background: rgba(13, 16, 23, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; height: 56px; gap: 18px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--main), var(--main2)); box-shadow: 0 0 12px var(--main); }
.nav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); white-space: nowrap; font-size: 14px; }
.nav a:hover { color: var(--txt); background: var(--bg2); }
.nav a.on { color: #fff; background: linear-gradient(135deg, var(--main), var(--main2)); }
.search { display: flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.search input { border: 0; background: transparent; color: var(--txt); padding: 7px 14px; width: 150px; outline: none; font-size: 13px; }
.search button { border: 0; background: transparent; color: var(--muted); padding: 0 14px; cursor: pointer; }

/* 头图 */
.hero { margin: 22px 0 6px; padding: 26px 22px; border-radius: 16px; background: linear-gradient(115deg, #1c2230, #14181f 60%); border: 1px solid var(--line); }
.hero h1 { margin: 0 0 8px; font-size: 22px; }
.hero p { margin: 0; color: var(--muted); }
.hero b { color: var(--main2); }

/* 区块 */
.block { margin: 26px 0; }
.block-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.block-hd h2 { margin: 0; font-size: 18px; position: relative; padding-left: 12px; }
.block-hd h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 3px; background: linear-gradient(180deg, var(--main), var(--main2)); }
.more { margin-left: auto; color: var(--muted); font-size: 12px; }

/* 网格与卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 14px; }
.row-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-item { flex: 0 0 150px; }
.card {
  display: block; border-radius: 12px; overflow: hidden; background: var(--card);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.card-pic { position: relative; aspect-ratio: 3/4; background: #10141b; overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute; right: 0; bottom: 0; padding: 2px 7px; font-size: 11px;
  background: rgba(0, 0, 0, .65); color: #ffd7c2; border-radius: 8px 0 0 0;
}
.card-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff; opacity: 0; background: rgba(0, 0, 0, .45); transition: opacity .18s;
}
.card:hover .card-play { opacity: 1; }
.card-name { padding: 8px 9px 2px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { padding: 0 9px 9px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 面包屑与标题 */
.crumb { margin: 8px 0 16px; color: var(--muted); font-size: 12px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--main2); }
.page-title { font-size: 20px; margin: 4px 0 18px; }
.page-title small { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }

/* 详情 */
.detail { display: flex; gap: 24px; padding: 18px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; }
.detail-pic { flex: 0 0 200px; aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: #10141b; }
.detail-pic img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { flex: 1; min-width: 0; }
.detail-info h1 { margin: 2px 0 12px; font-size: 24px; }
.detail-info h1 small { font-size: 12px; color: var(--main2); font-weight: 400; margin-left: 8px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.detail-tags span { padding: 2px 9px; border-radius: 6px; background: var(--card); color: var(--muted); font-size: 12px; }
.detail-tags .score { color: #ffd166; background: rgba(255, 209, 102, .12); }
.line { margin: 6px 0; color: #cfd6e2; font-size: 13px; }
.line em { display: inline-block; width: 44px; color: var(--muted); font-style: normal; }
.btn-play {
  display: inline-block; margin-top: 16px; padding: 11px 26px; border-radius: 10px;
  background: linear-gradient(135deg, var(--main), var(--main2)); color: #fff; font-weight: 600;
  box-shadow: 0 6px 18px rgba(255, 95, 46, .28);
}
.btn-play.disabled { background: var(--card); color: var(--muted); box-shadow: none; }
.content { color: #c7cedb; font-size: 13.5px; line-height: 1.9; }

/* 选集 */
.eps { display: flex; flex-wrap: wrap; gap: 10px; }
.ep {
  padding: 8px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--line);
  font-size: 13px; color: #cfd6e2; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ep:hover { border-color: var(--main); color: #fff; }
.ep.on { background: linear-gradient(135deg, var(--main), var(--main2)); color: #fff; border-color: transparent; }
.ep.ghost { background: transparent; }

/* 播放器 */
.player-wrap { margin: 10px 0 20px; }
.player-box { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.player-box video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-box .loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; background: rgba(0, 0, 0, .45);
}
.play-title { font-size: 18px; margin: 12px 0 10px; }
.play-title small { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.play-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 分页 */
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 28px 0 10px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; padding: 6px 10px; text-align: center; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); font-size: 13px; color: #cfd6e2;
}
.pager .cur { background: linear-gradient(135deg, var(--main), var(--main2)); color: #fff; border-color: transparent; }
.pager .muted { background: none; border: 0; color: var(--muted); }

/* 其它 */
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.empty-box { text-align: center; padding: 80px 0; }
.empty-box h2 { font-size: 42px; margin: 0; color: var(--main); }
.foot { margin-top: 40px; padding: 22px 0 30px; border-top: 1px solid var(--line); }
.foot .notice { color: var(--muted); font-size: 12px; }
.foot .copy { color: #5c6678; font-size: 12px; }

@media (max-width: 720px) {
  .search { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); gap: 12px 10px; }
  .row-item { flex-basis: 110px; }
  .detail { flex-direction: column; gap: 14px; padding: 14px; }
  .detail-pic { flex: none; width: 46%; max-width: 190px; align-self: center; }
  .detail-info h1 { font-size: 19px; }
  .hero { padding: 18px; }
  .hero h1 { font-size: 18px; }
}
