/* ============ PlayHub 用户端样式 ============ */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --card: #16161f;
  --line: #262632;
  --text: #f0f0f5;
  --sub: #8a8a9a;
  --acc: #f6610f;
  --acc2: #ff8c42;
  --radius: 12px;
}

html, body { background: var(--bg); color: var(--text); font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display:block; }

/* 顶部栏 */
.topbar {
  position: sticky; top:0; z-index:50;
  display:flex; align-items:center; gap:16px;
  padding:14px 20px; background:rgba(10,10,15,.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.logo { font-size:22px; font-weight:800; color:var(--acc); letter-spacing:.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.searchbox {
  flex:1; min-width:0; max-width:520px; display:flex; align-items:center;
  background:var(--card); border:1px solid var(--line); border-radius:20px; padding:8px 14px;
}
.searchbox input { flex:1; background:transparent; border:none; outline:none; color:var(--text); font-size:14px; }
.searchbox button { background:none; border:none; color:var(--sub); font-size:16px; cursor:pointer; }
.lang-switch {
  background:var(--card); border:1px solid var(--line); color:var(--text);
  border-radius:16px; padding:6px 10px; font-size:13px; outline:none; cursor:pointer;
}

/* 公告条 */
.notice-bar {
  display:flex; align-items:center; gap:10px;
  padding:8px 14px; background:linear-gradient(90deg,var(--acc),var(--acc2));
  color:#fff; font-size:13px; text-align:center;
}
.notice-text { flex:1; }
.notice-x { cursor:pointer; opacity:.85; font-size:15px; padding:0 4px; }

/* 设备限制遮罩 */
.device-block { position:fixed; inset:0; z-index:9999; background:var(--bg); display:flex; align-items:center; justify-content:center; padding:24px; overflow-y:auto; }
.device-block-box { text-align:center; max-width:360px; }
.device-block-ico { font-size:56px; margin-bottom:12px; }
.device-block-box h2 { font-size:20px; line-height:1.4; margin-bottom:20px; color:var(--text); }
.block-feats { list-style:none; margin:0 0 20px; padding:0; text-align:left; display:inline-block; }
.block-feats li { color:var(--text); font-size:15px; line-height:2; }
.block-feats li::before { content:'✓'; color:var(--acc); font-weight:700; margin-right:8px; }
.block-slogan { color:var(--text); font-size:16px; font-weight:600; margin-bottom:16px; }
.block-note { color:var(--sub); font-size:13px; }

/* 手机窄屏：顶栏收缩，避免超出宽度 */
@media (max-width:640px) {
  .topbar { gap:8px; padding:10px 12px; }
  .logo { font-size:16px; letter-spacing:0; }
  .searchbox { padding:6px 10px; }
  .searchbox input { font-size:13px; }
  .lang-switch { font-size:12px; padding:5px 8px; max-width:90px; }
}

/* 容器 */
.container { max-width:1100px; margin:0 auto; padding:16px 20px 40px; }

/* 语种导航 */
.langbar { display:flex; gap:8px; overflow-x:auto; padding:14px 20px 4px; }
.langbar::-webkit-scrollbar { display:none; }
.langchip {
  flex-shrink:0; padding:7px 16px; border-radius:18px; cursor:pointer;
  background:var(--card); border:1px solid var(--line); color:var(--sub); font-size:13px;
  transition:.2s;
}
.langchip.active { background:var(--acc); border-color:var(--acc); color:#fff; }

/* 轮播 */
.banner {
  position:relative; margin:16px 20px; border-radius:var(--radius); overflow:hidden;
  height:280px; background:var(--card);
}
.banner img { width:100%; height:100%; object-fit:cover; }
.banner .mask { position:absolute; inset:0; background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.banner .info { position:absolute; left:20px; bottom:20px; right:20px; }
.banner .info h2 { font-size:22px; margin-bottom:6px; }
.banner .info p { color:#ddd; font-size:13px; max-width:520px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

/* 网格 */
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:14px; }
.card {
  background:var(--card); border-radius:var(--radius); overflow:hidden; cursor:pointer;
  transition:transform .2s, box-shadow .2s; border:1px solid var(--line);
}
.card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,.5); }
.card .poster { position:relative; aspect-ratio:3/4; background:#222; }
.card .poster img { width:100%; height:100%; object-fit:cover; }
.card .ep-tag { position:absolute; right:8px; bottom:8px; background:rgba(0,0,0,.7); padding:2px 8px; border-radius:10px; font-size:11px; }
.card .body { padding:10px 12px 12px; }
.card .title { font-size:14px; line-height:1.3; height:36px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.card .meta { margin-top:6px; font-size:12px; color:var(--sub); display:flex; gap:8px; }

/* 分区标题 */
.section-title { font-size:18px; font-weight:700; margin:24px 20px 14px; display:flex; align-items:center; gap:8px; }
.section-title::before { content:''; width:4px; height:18px; background:var(--acc); border-radius:2px; }

/* 分页 */
.pager { display:flex; justify-content:center; gap:8px; margin:28px 0; }
.pager button { padding:8px 14px; background:var(--card); border:1px solid var(--line); color:var(--text); border-radius:8px; cursor:pointer; }
.pager button:disabled { opacity:.4; cursor:default; }
.pager button.cur { background:var(--acc); border-color:var(--acc); color:#fff; }

/* 详情页 */
.detail-hero { position:relative; padding:24px 20px; overflow:hidden; }
.detail-hero .bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:blur(30px) brightness(.4); transform:scale(1.2); z-index:0; }
.detail-hero .inner { position:relative; z-index:1; display:flex; gap:20px; align-items:flex-end; }
.detail-hero .cover { width:140px; aspect-ratio:3/4; border-radius:10px; overflow:hidden; flex-shrink:0; box-shadow:0 8px 30px rgba(0,0,0,.6); }
.detail-hero .cover img { width:100%; height:100%; object-fit:cover; }
.detail-hero .info h1 { font-size:24px; margin-bottom:10px; }
.detail-hero .meta { color:var(--sub); font-size:13px; margin-bottom:14px; display:flex; flex-wrap:wrap; gap:12px; }
.detail-hero .tags span { display:inline-block; background:var(--card); border:1px solid var(--line); padding:3px 10px; border-radius:12px; font-size:12px; margin-right:6px; color:var(--sub); }
.detail-hero .desc { color:#cfcfd8; font-size:14px; line-height:1.7; margin-top:12px; max-width:680px; }

/* 选集 */
.ep-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(64px, 1fr)); gap:10px; margin:16px 20px; }
.ep-btn {
  padding:12px 0; text-align:center; border-radius:8px; cursor:pointer; font-size:14px;
  background:var(--card); border:1px solid var(--line); color:var(--text); transition:.15s;
}
.ep-btn:hover { border-color:var(--acc); }
.ep-btn.active { background:var(--acc); border-color:var(--acc); color:#fff; }
.ep-btn.locked { color:var(--sub); }
.ep-btn.locked .lock-ico { margin-right:3px; }

/* 播放页 */
.play-wrap { max-width:480px; margin:0 auto; }
.video-box { position:relative; background:#000; }
.video-box video { width:100%; aspect-ratio:9/16; background:#000; display:block; }
.play-title { padding:16px 20px 8px; font-size:18px; font-weight:700; }
.play-sub { padding:0 20px 16px; color:var(--sub); font-size:13px; }

/* 锁集弹窗 */
.modal-mask { position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:200; display:flex; align-items:center; justify-content:center; padding:24px; }
.modal {
  background:var(--bg2); border:1px solid var(--line); border-radius:16px; padding:28px 24px;
  max-width:360px; width:100%; text-align:center;
}
.modal .m-banner { width:100%; border-radius:10px; margin-bottom:16px; max-height:180px; object-fit:cover; }
.modal h3 { font-size:20px; margin-bottom:10px; }
.modal p { color:var(--sub); font-size:14px; line-height:1.6; margin-bottom:20px; }
.btn {
  display:block; width:100%; padding:14px; border-radius:10px; border:none; cursor:pointer;
  font-size:15px; font-weight:700; margin-bottom:10px;
}
.btn.primary { background:var(--acc); color:#fff; }
.btn.ghost { background:transparent; color:var(--sub); border:1px solid var(--line); }

.empty { text-align:center; color:var(--sub); padding:60px 20px; font-size:14px; }
.loading { text-align:center; color:var(--sub); padding:60px 20px; }

/* 底部版权 */
.site-footer {
  text-align:center; padding:24px 20px 40px; color:var(--sub);
  border-top:1px solid var(--line); margin:24px 20px 0;
}
.site-footer .footer-copy { font-size:13px; margin-bottom:8px; }
.site-footer .footer-disclaimer { font-size:12px; opacity:.7; line-height:1.6; }

@media (max-width:600px) {
  .banner { height:200px; }
  .detail-hero .inner { flex-direction:column; align-items:center; text-align:center; }
  .detail-hero .desc { text-align:left; }
  .grid { grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); }
}
