:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-soft: #121216;
  --panel: #17171c;
  --card: #1a1a20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --txt: #f4f4f5;
  --txt-2: #a1a1aa;
  --txt-3: #6b6b75;
  --gold: #f5c344;
  --gold-soft: rgba(245, 195, 68, 0.14);
  --radius: 14px;
  --tab-h: 58px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -10%, #1c1a14 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--txt);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; padding: 0 14px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .5px; }
.brand small { font-weight: 500; font-size: 11px; color: var(--txt-3); }
.brand-dot { width: 9px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, var(--gold), #d99b16); }
.topnav { display: none; gap: 22px; font-size: 13px; color: var(--txt-2); }
.topnav a.active { color: var(--gold); font-weight: 700; }

.view { max-width: 1400px; margin: 0 auto; padding: 10px 0 24px; }
.wrap { padding: 0 12px; }

/* ---------- 底部 Tab ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(14, 14, 17, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; color: var(--txt-3);
}
.tabbar a.active { color: var(--gold); }
.tabbar .ic { font-size: 17px; line-height: 1; filter: grayscale(1) opacity(.75); }
.tabbar a.active .ic { filter: none; }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
  .topbar { padding: 0 28px; height: 60px; }
  .view { padding: 18px 0 48px; }
  .wrap { padding: 0 28px; }
}

/* ---------- 通用 ---------- */
.sec { margin: 18px 0 6px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.sec-title::before { content: ""; width: 4px; height: 17px; border-radius: 3px; background: var(--gold); }
.sec-more { font-size: 12px; color: var(--txt-3); }
.sec-more:hover { color: var(--txt); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(6, 1fr); gap: 18px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(6, 1fr); } }

.card { position: relative; }
.poster {
  position: relative; aspect-ratio: 10 / 14; border-radius: 10px; overflow: hidden;
  background: linear-gradient(160deg, #24242c, #14141a);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .poster img { transform: scale(1.05); }
.poster .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 8px; text-align: center; font-size: 12px; color: var(--txt-3);
}
.poster .remark {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 6px 5px; font-size: 11px; color: #fff; text-align: center;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.82));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card .name {
  margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--txt);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .sub { margin-top: 2px; font-size: 11px; color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; font-size: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--txt-2); cursor: pointer;
}
.chip.on { background: var(--gold-soft); border-color: rgba(245, 195, 68, .5); color: var(--gold); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--card); cursor: pointer; font-size: 13px;
}
.btn.primary { background: linear-gradient(180deg, var(--gold), #e0a825); color: #241a02; border-color: transparent; font-weight: 800; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
input.btn { min-width: 0; }
input.btn::placeholder { color: var(--txt-3); }
input.btn:focus { outline: none; border-color: rgba(245,195,68,.45); }

.skeleton { background: linear-gradient(90deg, #17171c 25%, #22222a 37%, #17171c 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }
.sk-poster { aspect-ratio: 10/14; }
.sk-line { height: 12px; margin-top: 8px; width: 80%; }

.empty { padding: 60px 20px; text-align: center; color: var(--txt-3); }
.err { padding: 40px 20px; text-align: center; color: #f87171; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; margin: 4px 12px 8px; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #1b1b22;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 6, 8, .92) 0%, rgba(6, 6, 8, .45) 45%, transparent 75%),
    linear-gradient(0deg, rgba(6, 6, 8, .9), transparent 55%);
}
.hero .info { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.hero h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.25; }
.hero p { margin: 0 0 10px; font-size: 12px; color: #c9c9d1; max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .tag { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 700; }
@media (min-width: 900px) { .hero { aspect-ratio: 21/7; margin: 8px 28px 12px; } .hero h2 { font-size: 30px; } }

/* ---------- 分类页筛选 ---------- */
.filters { display: grid; gap: 2px; }
.filter-row { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-label { flex: 0 0 auto; font-size: 12px; color: var(--txt-3); width: 34px; }

/* ---------- 排行 ---------- */
.rank-list { display: grid; gap: 2px; }
.rank-item { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.rank-no { width: 26px; text-align: center; font-weight: 800; font-style: italic; color: var(--txt-3); font-size: 14px; }
.rank-item:nth-child(1) .rank-no { color: #f5c344; }
.rank-item:nth-child(2) .rank-no { color: #d4d4d8; }
.rank-item:nth-child(3) .rank-no { color: #d19a66; }
.rank-thumb { width: 44px; height: 60px; border-radius: 8px; overflow: hidden; background: #22222a; flex: 0 0 auto; }
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-info { min-width: 0; flex: 1; }
.rank-info b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-info span { font-size: 11.5px; color: var(--txt-3); }

/* ---------- 详情 ---------- */
.detail-head { display: flex; gap: 14px; padding: 8px 12px 0; }
.detail-poster { width: 38%; max-width: 210px; aspect-ratio: 10/14; border-radius: 12px; overflow: hidden; background: #22222a; flex: 0 0 auto; box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-meta { min-width: 0; flex: 1; }
.detail-meta h1 { margin: 2px 0 8px; font-size: 19px; line-height: 1.3; }
.score { color: var(--gold); font-weight: 800; font-size: 15px; }
.kv { font-size: 12.5px; color: var(--txt-2); margin: 3px 0; }
.kv b { color: var(--txt-3); font-weight: 500; margin-right: 6px; }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.desc { padding: 14px 12px 0; font-size: 13px; color: #d4d4d8; line-height: 1.75; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-desc { margin-top: 6px; font-size: 12px; color: var(--gold); cursor: pointer; }

.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.ep {
  padding: 9px 6px; border-radius: 9px; text-align: center; font-size: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--txt-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.ep.on { border-color: rgba(245,195,68,.7); background: var(--gold-soft); color: var(--gold); font-weight: 700; }

/* ---------- 播放 ---------- */
.player-wrap { background: #000; }
.player-box { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.player-box video { width: 100%; height: 100%; background: #000; }
.player-tip {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 40%, #1b1b22, #08080a 70%);
}
.player-tip h3 { margin: 0; font-size: 15px; color: var(--gold); }
.player-tip p { margin: 0; font-size: 12.5px; color: var(--txt-2); max-width: 40ch; line-height: 1.7; }
.loading-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

.play-head { padding: 10px 12px 0; }
.play-head h1 { margin: 0 0 4px; font-size: 16px; }
.play-head .sub { font-size: 12px; color: var(--txt-3); }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 24px); transform: translateX(-50%);
  background: rgba(28,28,34,.96); border: 1px solid var(--line-strong); color: #fff;
  padding: 9px 16px; border-radius: 999px; font-size: 12.5px; z-index: 200;
  animation: tin .2s ease;
}
@keyframes tin { from { opacity: 0; transform: translate(-50%, 6px) } }

/* ---------- 我的 ---------- */
.mine-head { display: flex; align-items: center; gap: 12px; padding: 16px 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(140deg, var(--gold), #b57e10); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.mine-head b { font-size: 15px; }
.mine-head span { display: block; font-size: 12px; color: var(--txt-3); margin-top: 2px; }
.menu { margin: 4px 12px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.menu-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.menu-row:last-child { border-bottom: 0; }
.menu-row span { color: var(--txt-3); font-size: 12px; }

/* ---------- 新增：分段控件 / 站外角标 / 反馈表单 / 上游引导位 ---------- */
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; }
.seg button { border: 0; background: transparent; color: var(--txt-2); font-size: 12.5px; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--gold-soft); color: var(--gold); font-weight: 700; }

.badge {
  position: absolute; left: 6px; top: 6px; z-index: 3;
  padding: 1px 6px; border-radius: 5px; font-size: 10px; font-weight: 700;
  color: #241a02; background: var(--gold);
}

button.sec-more { border: 0; background: transparent; cursor: pointer; padding: 0; }

.card-panel { padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.hint { margin: 0 0 10px; font-size: 12px; color: var(--txt-3); line-height: 1.6; }
.field {
  width: 100%; padding: 10px 12px; border-radius: 10px; resize: vertical;
  background: #101014; border: 1px solid var(--line); color: var(--txt);
  font: inherit; font-size: 13px; line-height: 1.7;
}
.field:focus { outline: none; border-color: rgba(245, 195, 68, 0.45); }
.field-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.field-foot .hint { margin: 0; }

.feature-slot { margin: 6px 0 2px; border-radius: var(--radius); overflow: hidden; }
.feature-slot iframe, .feature-slot img { max-width: 100%; }
.feature-slot * { font-size: 12.5px; }

/* ================= 对齐原站：头部 / 首屏结构 / 栅格 ================= */
.topbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 62px;
  padding: 0 26px;
  background: #08080a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold);
  white-space: nowrap;
}
.brand-dot, .brand small { display: none; }
.topnav { display: flex; gap: 20px; font-size: 14px; color: #c6c6ce; }
.topnav a { white-space: nowrap; transition: color .15s; }
.topnav a:hover { color: #fff; }
.topnav a.active { color: var(--gold); font-weight: 700; }

.hsearch {
  display: flex; align-items: center; justify-self: center;
  width: min(460px, 100%); height: 36px;
  background: #17171c; border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px; padding: 0 6px 0 16px;
}
.hsearch input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  color: var(--txt); font-size: 13px;
}
.hsearch input::placeholder { color: #6b6b75; }
.hsearch button {
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: #9a9aa4; cursor: pointer; font-size: 13px;
}
.hsearch button:hover { color: var(--gold); }
.history-link { font-size: 13px; color: #9a9aa4; white-space: nowrap; }
.history-link:hover { color: #fff; }
.msearch { display: none; font-size: 15px; }

/* 内容容器与原站一致的左右留白 */
.view { max-width: 1280px; }
.wrap { padding: 0 26px; }
.sec { margin: 26px 0 4px; }
.sec-head { margin-bottom: 14px; }
.sec-title { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.sec-title::before { width: 4px; height: 18px; background: #f0a03c; }
.sec-more, button.sec-more { font-size: 12.5px; color: #8a8a94; }
.grid { gap: 18px; }
.card .name { margin-top: 8px; font-size: 13px; color: #e8e8ee; }
.poster { border-radius: 8px; }
.poster .remark { padding: 24px 6px 6px; font-size: 11.5px; }

/* 首屏「安卓App」条：整行通栏，与内容同宽 */
.feature-slot { margin: 18px 0 0; border-radius: 8px; overflow: hidden; }
.feature-slot > div { border-width: 1px !important; }

@media (max-width: 1023px) {
  .topbar { grid-template-columns: 1fr auto; gap: 12px; height: 54px; padding: 0 14px; background: rgba(10,10,12,.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 40; }
  .topnav, .hsearch, .history-link { display: none; }
  .msearch { display: block; color: #c6c6ce; }
  .wrap { padding: 0 12px; }
  .view { max-width: none; }
  .sec { margin: 18px 0 4px; }
  .grid { gap: 10px; }
}

/* FAQ 样式见文末（对齐官网） */

/* ---------- 账号 / 管理后台 ---------- */
.auth-panel { max-width: 460px; }
.auth-panel .field { margin-top: 10px; }
.role-tag { font-size: 11px; font-weight: 600; color: #241a02; background: var(--gold); border-radius: 5px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.mine-head .btn { align-self: flex-start; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 4px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 22px; color: var(--gold); font-weight: 800; }
.stat span { font-size: 12px; color: var(--txt-3); }

.table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.tr { display: grid; grid-template-columns: 70px 1fr 90px 90px; gap: 10px; padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--line); align-items: center; }
.tr:last-child { border-bottom: 0; }
.tr.th { color: var(--txt-3); font-size: 12px; background: rgba(255,255,255,0.03); }
.link-del { border: 0; background: transparent; color: #f87171; font-size: 12.5px; cursor: pointer; padding: 0; }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .tr { grid-template-columns: 44px 1fr 60px 60px; font-size: 12px; }
}

/* ================= 对齐官网：FAQ 列表 ================= */
.faq-list { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.faq { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; transition: background .15s;
}
.faq-q:hover { background: #252219; }
.faq-txt { flex: 1; padding-right: 16px; font-size: 17px; font-weight: 600; color: #f4f4f5; }
.faq-ico { color: var(--gold); font-size: 18px; line-height: 1; }
.faq-a {
  display: none; border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 20px 18px; font-size: 13.5px; line-height: 1.9; color: #d4d4d8;
}
.faq.open .faq-a { display: block; }
.faq-a p { margin: 8px 0; }
.faq-a ul { list-style: disc; margin: 8px 0; padding-left: 22px; }
.faq-a li { margin-bottom: 8px; }
.faq-a strong { font-weight: 700; }
.faq-a a { color: #e53935; text-decoration: none; }
.faq-a a:hover { color: var(--gold); }
.faq-actions { margin: 18px 0 8px; }
@media (max-width: 640px) {
  .faq-q { padding: 14px 12px; }
  .faq-txt { font-size: 15px; }
  .faq-a { padding: 12px; font-size: 13px; }
}

/* ================= 对齐官网：线路/筛选项胶囊 ================= */
.chips .chip, .seg button { transition: all .15s; }
.chips .chip {
  padding: 8px 20px;
  font-size: 13.5px;
  background: #1a1a20;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #b9b9c2;
}
.chips .chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.16); }
.chips .chip.on {
  background: rgba(245, 195, 68, 0.06);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 700;
}

/* ================= 对齐官网：播放页（watch） ================= */
.watch { padding: 0 26px 40px; }
.watch-player {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #0c0c10; border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px; overflow: hidden;
}
.watch-player video { width: 100%; height: 100%; background: #000; display: block; }

/* 线路浮层 */
.line-panel {
  position: absolute; top: 10px; right: 10px; z-index: 20;
  display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  width: min(520px, 62%); padding: 10px;
  background: rgba(18, 18, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px; backdrop-filter: blur(10px);
}
.line-panel.open { display: grid; }
.line-chip {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  padding: 7px 8px; border-radius: 8px; cursor: pointer;
  background: #1b1b21; border: 1px solid rgba(255, 255, 255, 0.07);
  color: #c3c3cc; font-size: 12px;
}
.line-chip:hover { border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.line-chip.on { border-color: var(--gold); color: var(--gold); font-weight: 700; }
.line-chip .dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.line-chip .lc-name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.line-chip .lc-badge { font-style: normal; font-size: 9.5px; color: #9a9aa4; flex: 0 0 auto; }
.line-chip.on .lc-badge { color: var(--gold); }

/* 标题行 */
.watch-meta { padding: 14px 2px 10px; }
.watch-meta h1 { margin: 0; font-size: 17px; font-weight: 700; color: var(--txt); }
.wm-name { color: var(--gold); }
.wm-sub { color: var(--txt-2); font-weight: 500; }

/* 安卓 App 条 */
.appbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px; margin: 0 0 18px;
  background: #131318; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 8px;
}
.appbar-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.appbar-left b { font-size: 13px; color: #e8e8ee; }
.appbar-left span { font-size: 12px; color: var(--txt-3); }
.appbar-btn {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 6px;
  background: var(--gold); color: #241a02; font-size: 12.5px; font-weight: 800;
}

/* 选集播放栏 */
.eps-head {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 2px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); margin-bottom: 14px;
}
.eps-title { font-size: 16px; font-weight: 800; color: var(--txt); }
.eps-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mini-btn {
  padding: 5px 10px; border-radius: 6px; cursor: pointer;
  background: #1b1b21; border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b9b9c2; font-size: 12px;
}
.mini-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.mini-btn.ghost { background: transparent; }
.line-btn {
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  background: rgba(245, 195, 68, 0.1); border: 1px solid rgba(245, 195, 68, 0.45);
  color: var(--gold); font-size: 12.5px; font-weight: 700;
}
.line-btn em { font-style: normal; margin-left: 5px; font-size: 10px; opacity: .8; }

/* 选集网格 */
.watch-eps { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.watch-eps .ep {
  padding: 9px 2px; border-radius: 6px; text-align: center;
  background: #17171d; border: 1px solid rgba(255, 255, 255, 0.06);
  color: #b9b9c2; font-size: 12px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.watch-eps .ep:hover { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.watch-eps .ep.on { border-color: var(--gold); color: var(--gold); font-weight: 700; background: rgba(245, 195, 68, 0.08); }

@media (max-width: 1023px) {
  .watch { padding: 0 12px 30px; }
  .line-panel { width: min(360px, 92%); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .watch-eps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .watch-meta h1 { font-size: 15px; }
  .appbar-left span { display: none; }
  .eps-head { flex-wrap: wrap; gap: 8px; }
  .eps-tools { margin-left: 0; }
}

/* 播放页：简介 / 初始提示 / 浮层位置 */
.watch-desc { margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: #b9b9c2; }
.watch-desc.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.desc-toggle { margin-top: 4px; padding: 0; border: 0; background: transparent; color: var(--gold); font-size: 12px; cursor: pointer; }
.choose-hint { font-size: 15px; font-weight: 700; color: var(--gold); letter-spacing: .5px; }
.player-tip h3.choose-hint { margin: 0; }

/* 浮层贴右下，与原站一致 */
.line-panel { top: auto; bottom: 14%; right: 14px; }
.line-chip .lc-badge { min-width: 16px; text-align: right; }
@media (max-width: 1023px) { .line-panel { bottom: 8%; right: 8px; } }

/* ================= 播放页：简介信息区（对齐原站） ================= */
.wm-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wm-toggle {
  flex: 0 0 auto; border: 0; background: transparent; cursor: pointer;
  color: var(--txt-2); font-size: 12.5px; padding: 2px 0;
}
.wm-toggle:hover { color: var(--gold); }

.watch-info { display: flex; gap: 20px; margin-top: 12px; }
.watch-info.hidden .wi-main { display: none; }
.wi-main { flex: 1; min-width: 0; }
.wi-tags { display: flex; gap: 8px; margin-bottom: 10px; }
.wi-tags span {
  padding: 2px 8px; border-radius: 4px; font-size: 11.5px;
  color: #b9b9c2; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.wi-desc { margin: 0 0 10px; font-size: 12.5px; line-height: 1.85; color: #b9b9c2; }
.wi-crew { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: #a8a8b2; }
.wi-crew b { color: var(--txt-3); font-weight: 500; }
.wi-poster {
  flex: 0 0 auto; width: 132px; aspect-ratio: 10 / 14; border-radius: 8px; overflow: hidden;
  background: #1b1b21; border: 1px solid rgba(255, 255, 255, 0.06);
}
.wi-poster img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1023px) {
  .wi-poster { width: 96px; }
  .wi-crew { gap: 10px; flex-direction: column; }
}

/* =====================================================================
   终局对齐（依据与原站的计算样式采样）
   body 16px/#000、头部 65px、导航 32px/15px/500、搜索 400×40 r20、
   内容 1400+32 留白、栅格 24px、区块标题 18px/700/#fff
   ===================================================================== */
body {
  background: #000;
  font-size: 16px;
  color: #f4f4f5;
}
.topbar {
  height: 65px;
  padding: 0 32px;
  background: rgba(12, 11, 9, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.brand { font-size: 20px; font-weight: 700; color: #eab308; letter-spacing: 0; }
.topnav { gap: 32px; font-size: 15px; color: #d4d4d8; }
.topnav a { font-weight: 500; }
.topnav a.active { color: #eab308; font-weight: 700; }
.hsearch {
  width: 400px; height: 40px; border-radius: 20px;
  background: rgba(30, 28, 26, 0.8); border-color: rgba(255, 255, 255, 0.06);
}
.hsearch input { font-size: 13.5px; }
.history-link { font-size: 13.5px; color: #a1a1aa; }

.view { max-width: 1400px; }
.wrap { padding: 0 32px; }
.grid { gap: 24px; }
.sec-title { font-size: 18px; font-weight: 700; color: #fff; }
.sec-title::before { background: #eab308; }
.sec-more, button.sec-more { color: #a1a1aa; }

/* 播放页容器（原站 1280） */
.watch { max-width: 1280px; margin: 0 auto; padding: 0 8px 40px; }

@media (min-width: 1200px) { .grid { grid-template-columns: repeat(6, 1fr); } }

@media (max-width: 1023px) {
  body { font-size: 15px; }
  .topbar { height: 54px; padding: 0 14px; }
  .brand { font-size: 17px; }
  .view { max-width: none; }
  .wrap { padding: 0 12px; }
  .grid { gap: 10px; }
  .watch { padding: 0 12px 30px; }
}

/* 播放页标题：原站 18px/700/#fff */
.watch-meta h1 { font-size: 18px; font-weight: 700; color: #fff; }
.wi-desc { color: #b9b9c2; }

/* ================= 线路浮层：贴右下并溢出播放器（对齐原站） ================= */
.watch-player { overflow: visible; }
.watch-player video { border-radius: 10px; }
.line-panel {
  right: -6px;
  bottom: -52px;
  top: auto;
  width: min(720px, 58%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(20, 20, 25, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  z-index: 30;
}
.line-chip {
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11.5px;
  gap: 5px;
}
.line-chip .lc-badge { font-size: 9.5px; color: #7a7a84; min-width: 14px; text-align: right; }
.line-chip.on .lc-badge { color: #eab308; font-weight: 700; }

/* 当前线路按钮：原站为金色实心 */
.line-btn {
  background: #eab308;
  color: #241a02;
  border-color: transparent;
  font-weight: 800;
}
.line-btn em { color: #241a02; }

@media (max-width: 1023px) {
  .line-panel {
    right: -4px;
    bottom: -44px;
    width: min(92%, 420px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 8px;
    gap: 5px;
  }
  .line-chip { height: 28px; font-size: 11px; }
}

/* ================= 自绘播放器控制条（对齐 ArtPlayer 观感） ================= */
.watch-player { cursor: default; }
.watch-player video { cursor: pointer; }
/* 播放提示层只用于展示，不能吃掉对视频的点击（否则点视频无反应） */
.watch-player .player-tip { pointer-events: none; }
.watch-player .player-tip .btn { pointer-events: auto; }

.vp-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 0 6px 4px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 55%, transparent 100%);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.vp-bar.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* 进度条 */
.vp-progress {
  position: relative; height: 14px; margin: 0 6px 2px;
  display: flex; align-items: center; cursor: pointer;
}
.vp-progress::before {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.vp-buffer { position: absolute; left: 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.32); width: 0; }
.vp-played { position: absolute; left: 0; height: 3px; border-radius: 2px; background: #eab308; width: 0; }
.vp-thumb {
  position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: 0;
  transition: opacity .12s;
}
.vp-progress:hover .vp-thumb, .vp-progress:hover .vp-played { }
.vp-progress:hover .vp-thumb { opacity: 1; }
.vp-progress:hover::before { height: 4px; }
.vp-progress:hover .vp-buffer, .vp-progress:hover .vp-played { height: 4px; }
.vp-tip {
  position: absolute; bottom: 16px; transform: translateX(-50%);
  padding: 2px 7px; border-radius: 4px; background: rgba(0, 0, 0, 0.82);
  color: #fff; font-size: 11px; opacity: 0; pointer-events: none; white-space: nowrap;
}
.vp-tip.show { opacity: 1; }

/* 按钮行 */
.vp-row { display: flex; align-items: center; height: 44px; }
.vp-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 4px; background: transparent; color: #fff; cursor: pointer; padding: 0;
}
.vp-btn:hover { background: rgba(255, 255, 255, 0.14); }
.vp-btn svg { width: 20px; height: 20px; fill: currentColor; }
.vp-btn.vp-text { width: auto; padding: 0 8px; font-size: 12.5px; font-weight: 600; color: #fff; }
.vp-time { padding: 0 8px; font-size: 12.5px; color: #f2f2f2; font-variant-numeric: tabular-nums; }
.vp-spacer { flex: 1; }

/* 图标切换 */
.vp-bar .vp-ico-pause, .vp-bar .vp-ico-muted, .vp-bar .vp-ico-exit { display: none; }
.vp-bar.playing .vp-ico-play { display: none; }
.vp-bar.playing .vp-ico-pause { display: block; }
.vp-btn.muted .vp-ico-vol { display: none; }
.vp-btn.muted .vp-ico-muted { display: block; }
.vp-btn.is-full .vp-ico-full { display: none; }
.vp-btn.is-full .vp-ico-exit { display: block; }

/* 音量 */
.vp-vol { display: flex; align-items: center; }
.vp-range {
  width: 0; opacity: 0; transition: width .18s ease, opacity .18s ease;
  accent-color: #eab308; height: 3px; cursor: pointer;
}
.vp-vol:hover .vp-range { width: 72px; opacity: 1; margin-right: 8px; }

/* 剧场模式 */
body.theater .watch-player { border-radius: 0; }
body.theater .view { max-width: none; }
body.theater .watch { max-width: none; padding-left: 0; padding-right: 0; }
body.theater .line-panel { right: 12px; }

@media (max-width: 1023px) {
  .vp-row { height: 40px; }
  .vp-btn { width: 36px; height: 36px; }
  .vp-btn svg { width: 18px; height: 18px; }
  .vp-time { font-size: 11.5px; padding: 0 4px; }
  .vp-vol:hover .vp-range { width: 54px; }
}

/* 控制条尺寸对齐原站（ArtPlayer）：行高 46、图标按钮 46×46 */
.vp-row { height: 46px; }
.vp-btn { width: 46px; height: 46px; }
.vp-btn svg { width: 22px; height: 22px; }
.vp-time { font-size: 13px; }
@media (max-width: 1023px) {
  .vp-row { height: 42px; }
  .vp-btn { width: 40px; height: 40px; }
  .vp-btn svg { width: 19px; height: 19px; }
}

/* ================= 播放器设置菜单 ================= */
.vp-menu-wrap { position: relative; }
.vp-menu {
  position: absolute; bottom: 52px; right: 0; z-index: 40;
  display: none; width: 232px; padding: 10px 12px;
  background: rgba(22, 22, 28, 0.98); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.vp-menu.open { display: block; }
.vp-menu-label { font-size: 11.5px; color: #8a8a94; margin: 6px 0 6px; }
.vp-menu-label:first-child { margin-top: 0; }
.vp-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.vp-menu-grid button {
  padding: 6px 4px; border-radius: 5px; cursor: pointer; font-size: 12px;
  background: #23232b; border: 1px solid transparent; color: #c9c9d2;
}
.vp-menu-grid button:hover { background: #2c2c36; color: #fff; }
.vp-menu-grid button.on { border-color: #eab308; color: #eab308; font-weight: 700; background: rgba(234, 179, 8, 0.1); }
.vp-menu-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px; color: #d4d4d8;
}
.vp-switch {
  min-width: 42px; padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: 11.5px;
  background: #2c2c36; border: 1px solid transparent; color: #c9c9d2;
}
.vp-switch.on { background: #eab308; color: #241a02; font-weight: 800; }
@media (max-width: 1023px) { .vp-menu { width: 210px; bottom: 46px; } }

/* ================= 选集分组（清晰度折叠） ================= */
.ep-groups { display: block; }
.ep-group { margin-bottom: 14px; }
.ep-group-head {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 12px; border-radius: 7px; background: #17171d;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.ep-group-head:hover { border-color: rgba(255, 255, 255, 0.16); }
.eg-label { font-size: 13px; font-weight: 700; color: #e8e8ee; }
.eg-count { font-size: 11px; color: #7a7a84; }
.eg-ico { margin-left: auto; color: #8a8a94; font-size: 13px; }
.ep-group > .eps { display: none; margin-top: 10px; }
.ep-group.open > .eps { display: grid; }

/* 后台线路选择：允许换行，避免横向截断 */
.card-panel .chips { flex-wrap: wrap; overflow: visible; }

/* ================= 后台：看板 / 线路表 / 开关 / 审计 ================= */
.stat-row { grid-template-columns: repeat(5, 1fr); }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12px; color: #b9b9c2; }
.bar-row:last-child { margin-bottom: 0; }
.bar-day { width: 46px; color: #8a8a94; }
.bar-track { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: linear-gradient(90deg, #eab308, #f5c344); border-radius: 4px; }
.bar-num { width: 34px; text-align: right; color: #e8e8ee; font-variant-numeric: tabular-nums; }

.table .tr.line-cols { grid-template-columns: 1fr 80px 90px 70px; }
.table .tr.user-cols { grid-template-columns: 50px 1fr 90px 80px 260px; }
.table .tr.log-cols { grid-template-columns: 130px 100px 120px 1fr; }

.num-input {
  width: 64px; padding: 4px 6px; border-radius: 5px; text-align: center;
  background: #101014; border: 1px solid rgba(255,255,255,.1); color: var(--txt); font-size: 12px;
}
.sw { position: relative; display: inline-block; width: 38px; height: 20px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: #3a3a44; transition: background .15s; }
.sw i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.sw input:checked + i { background: #eab308; }
.sw input:checked + i::after { transform: translateX(18px); }

.ops { display: flex; gap: 6px; flex-wrap: wrap; }
.op {
  padding: 3px 8px; border-radius: 5px; cursor: pointer; font-size: 11.5px;
  background: #23232b; border: 1px solid rgba(255,255,255,.08); color: #c9c9d2;
}
.op:hover { color: #fff; border-color: rgba(255,255,255,.2); }
.op.danger { color: #f87171; }
@media (max-width: 1100px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .table .tr.user-cols { grid-template-columns: 40px 1fr 70px 70px; }
  .table .tr.user-cols .ops { grid-column: 1 / -1; }
  .table .tr.log-cols { grid-template-columns: 100px 80px 1fr; }
  .table .tr.log-cols span:last-child { display: none; }
}

/* ================= 搜索结果：横向卡片（对齐原站） ================= */
.sr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 20px;              /* 行距留给封面外溢与角标 */
  padding-top: 34px;
}
.sr-card {
  position: relative;
  min-height: 175px;
  padding: 30px 20px 20px;
  background: #1a1815;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.sr-card:hover { background: #211e1a; border-color: rgba(234, 179, 8, 0.25); }

/* 类型角标：卡片右上外侧 */
.sr-tag {
  position: absolute; right: 0; top: -25px;
  height: 30px; line-height: 30px; padding: 0 10px;
  border-radius: 8px 8px 0 0;
  background: #26231c; color: #d4d4d8; font-size: 12px;
}
/* 封面：溢出卡片左上 */
.sr-poster {
  position: absolute; left: 0; top: -40px;
  width: 112px; height: 157px; border-radius: 6px; overflow: hidden;
  background: #14100d; display: block;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}
.sr-poster img { width: 100%; height: 100%; object-fit: cover; }
.sr-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #5b5b66; font-size: 11px; }
.sr-remarks {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 4px 3px; text-align: center; font-size: 10.5px; color: #fff;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.85));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sr-info { margin-left: 105px; min-height: 95px; }
.sr-title {
  font-size: 14px; font-weight: 700; color: #fff; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sr-meta {
  margin-top: 6px; font-size: 12px; color: #a1a1aa; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sr-actor { display: block; color: #8a8a94; }
.sr-btn {
  display: flex; align-items: center; justify-content: center;
  height: 30px; margin: 0 -10px; border-radius: 6px;
  background: #eab308; color: #241a02; font-size: 13px; font-weight: 800;
}
.sr-btn:hover { background: #f5c344; }

.search-empty { padding: 70px 20px; text-align: center; }
.se-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #e8e8ee; }
.se-sub { margin: 0; font-size: 13px; color: #8a8a94; }
.se-sub a { color: var(--gold); }

@media (max-width: 1023px) {
  .sr-grid { grid-template-columns: 1fr; gap: 40px 0; padding: 30px 0 10px; }
  .sr-card { padding: 24px 14px 14px; min-height: 150px; }
  .sr-poster { width: 92px; height: 128px; top: -32px; }
  .sr-info { margin-left: 86px; min-height: 78px; }
  .sr-title { font-size: 13.5px; }
}

/* 结果区固定宽度（原站 3×347 + 16 间距 = 1073），左对齐 */
.sr-grid { max-width: 1074px; column-gap: 16px; margin-right: auto; }
@media (max-width: 1023px) { .sr-grid { max-width: none; column-gap: 0; } }

/* 修复：1fr 允许被内容撑开，改用 minmax(0,1fr) 保证等宽 */
.sr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .sr-grid { grid-template-columns: minmax(0, 1fr); } }

/* 行距收紧，贴近原站（封面与角标允许轻微上溢） */
.sr-grid { row-gap: 30px; padding-top: 30px; }

/* ================= 分类页：对齐原站（容器 1290 / 胶囊 4px 金实心） ================= */
.type-page { max-width: 1290px; margin: 0 auto; }
.chip-filter {
  padding: 4px 12px !important;
  height: 28px;
  border-radius: 4px !important;
  border: 0 !important;
  background: #1a1815 !important;
  color: #c9c9d2 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.chip-filter:hover { background: #241f19 !important; color: #fff !important; }
.chip-filter.on {
  background: #eab308 !important;
  color: #000 !important;
  font-weight: 700;
}
.filter-label { width: 60px; font-size: 14px; color: #9ca3af; }
.filters .filter-row { gap: 8px; margin-bottom: 10px; }

/* ================= 排行榜：对齐原站（tabs / 前三名 / 列表） ================= */
.rank-page { max-width: 1184px; margin: 0 auto; }
.rank-tabs { display: flex; justify-content: center; gap: 4px; margin: 22px 0 30px; }
.rank-tab {
  width: 88px; height: 36px; border: 0; border-radius: 6px; cursor: pointer;
  background: #1a1815; color: #c9c9d2; font-size: 14px; font-weight: 500;
}
.rank-tab:hover { color: #fff; background: #241f19; }
.rank-tab.on { background: #eab308; color: #000; font-weight: 700; }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.podium-item { position: relative; display: block; }
.podium-item.first { margin-top: -32px; }
.podium-poster {
  border-radius: 12px; overflow: hidden; background: #14100d;
  border: 2px solid transparent;
}
.podium-item.first .podium-poster { border-color: #3f3f46; }
.podium-poster img { display: block; width: 100%; aspect-ratio: 380 / 508; object-fit: cover; }
.podium-no {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 12px; font-weight: 700;
}
.podium-item.first .podium-no { background: #eab308; color: #000; }
.podium-name { margin-top: 14px; text-align: center; font-size: 15px; font-weight: 700; color: #fff; }
.podium-meta { margin-top: 4px; text-align: center; font-size: 12px; color: #a1a1aa; }

.rank-rows { margin-top: 34px; }
.rank-row {
  display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 10px;
  height: 64px; padding: 0 14px; border-radius: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rank-row:hover { background: rgba(255, 255, 255, 0.04); }
.rr-no { text-align: center; font-size: 14px; color: #8a8a94; }
.rr-main b { display: block; font-size: 14px; font-weight: 600; color: #e8e8ee; }
.rr-main em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: #8a8a94; }
.rr-arrow { text-align: right; font-size: 18px; color: #6b6b75; }

@media (max-width: 1023px) {
  .type-page, .rank-page { max-width: none; }
  .podium { gap: 8px; }
  .podium-item.first { margin-top: -16px; }
  .podium-name { font-size: 13px; margin-top: 8px; }
  .rank-row { height: 58px; grid-template-columns: 32px 1fr 16px; }
}

/* 容器宽度按「内容宽」计算：加回左右 32px padding */
.type-page { max-width: 1354px; }   /* 内容 1290 */
.rank-page { max-width: 1248px; }   /* 内容 1184 */
@media (max-width: 1023px) { .type-page, .rank-page { max-width: none; } }

/* ================= 反馈弹层（对齐原站：居中、462 宽、前端验证码） ================= */
.fb-mask {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(2px);
}
.fb-dialog {
  position: relative;
  width: 510px; max-width: calc(100vw - 32px);
  padding: 24px;
  background: #1a1a1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.fb-close {
  position: absolute; right: 12px; top: 12px;
  width: 28px; height: 28px; border: 0; border-radius: 8px;
  background: transparent; color: #8a8a94; font-size: 14px; cursor: pointer;
}
.fb-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.fb-title { margin-bottom: 14px; font-size: 16px; font-weight: 800; color: #fff; }
.fb-ta {
  width: 100%; height: 154px; padding: 14px; resize: none;
  border-radius: 12px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f4f4f5; font-size: 14px; line-height: 1.7; font-family: inherit;
}
.fb-ta::placeholder, .fb-cap-input::placeholder { color: #6b6b75; }
.fb-ta:focus, .fb-cap-input:focus {
  outline: none; border-color: rgba(234, 179, 8, 0.5); background: rgba(255, 255, 255, 0.08);
}
.fb-row { display: flex; gap: 10px; margin-top: 12px; }
.fb-cap-input {
  flex: 1; min-width: 0; padding: 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f4f4f5; font-size: 15px; letter-spacing: 0.1em;
}
.fb-cap {
  width: 112px; height: 58px; flex: 0 0 auto; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #27272a; color: #eab308;
  font-size: 20px; font-weight: 900; letter-spacing: 0.2em;
  cursor: pointer; user-select: none; box-shadow: inset 0 2px 6px rgba(0,0,0,.4);
}
.fb-cap:hover { background: #33333a; }
.fb-err { min-height: 18px; margin-top: 8px; font-size: 12px; color: #f87171; }
.fb-submit {
  width: 100%; height: 44px; margin-top: 6px; border: 0; border-radius: 10px;
  background: #eab308; color: #241a02; font-size: 15px; font-weight: 800; cursor: pointer;
}
.fb-submit:hover { background: #f5c344; }
.fb-submit:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 640px) {
  .fb-dialog { padding: 18px; border-radius: 14px; }
  .fb-ta { height: 128px; }
}

/* 反馈弹层细节对齐：圆形关闭、按钮圆角 8、弹层 513 */
.fb-dialog { width: 513px; }
.fb-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: #d4d4d8;
  font-size: 13px; line-height: 1;
}
.fb-close:hover { background: rgba(255, 255, 255, 0.16); }
.fb-submit { height: 40px; border-radius: 8px; margin-top: 10px; }
.fb-title { font-size: 15px; font-weight: 700; }

/* ================= 移动端细节对齐（390 视口实测） ================= */
.tabbar {
  height: calc(57px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(3, 1fr);
  background: rgba(20, 18, 16, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tabbar a { font-size: 11.5px; color: #8a8a94; gap: 3px; }
.tabbar a.active { color: #eab308; }
.tabbar .tic { width: 20px; height: 20px; fill: currentColor; opacity: .8; }
.tabbar a.active .tic { opacity: 1; }
.tabbar .ic { display: none; }

@media (max-width: 1023px) {
  :root { --tab-h: 57px; }
  body { font-size: 16px; padding-bottom: calc(57px + env(safe-area-inset-bottom)); }
  .topbar {
    height: 65px; padding: 0 14px; position: sticky; top: 0; z-index: 40;
    background: rgba(12, 11, 9, 0.95); backdrop-filter: blur(12px);
    display: flex; align-items: center; gap: 10px;
  }
  .brand { font-size: 20px; flex: 0 0 auto; }
  /* 搜索框在移动端可见，占据剩余宽度 */
  .hsearch { display: flex !important; flex: 1 1 auto; width: auto !important; height: 38px; min-width: 0; }
  .hsearch input { font-size: 13px; }
  .hsearch button { width: 34px; }
  .msearch { display: none !important; }
  .history-link { display: flex !important; width: 28px; height: 28px; overflow: hidden; font-size: 0; color: #c6c6ce; align-items: center; justify-content: center; }
  .history-link::before { content: "🕘"; font-size: 16px; }
  .grid { gap: 12px; }
  .wrap { padding: 0 12px; }
}

/* 播放页：移动端独立返回条，隐藏站点顶栏 */
.mwatch-head { display: none; }
@media (max-width: 1023px) {
  body.is-play .topbar { display: none; }
  .mwatch-head {
    display: flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 14px;
    background: #0c0b09;
    position: sticky; top: 0; z-index: 45;
  }
  .mwatch-head .mb-back {
    width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 18px; line-height: 1;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
  }
  .mwatch-head .mb-title {
    flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: #eab308;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  body.is-play .watch { padding-top: 0; }
}

/* 顶栏图标统一为单色 SVG（替换 emoji） */
.hsearch button { display: flex; align-items: center; justify-content: center; }
.hsearch button svg { width: 18px; height: 18px; fill: #a1a1aa; }
.hsearch button:hover svg { fill: #eab308; }
.history-link { display: inline-flex; align-items: center; gap: 6px; }
.history-link svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 1023px) {
  .history-link { font-size: 0 !important; gap: 0; }
  .history-link span { display: none; }
  .history-link svg { width: 19px; height: 19px; }
  .history-link::before { content: none !important; }
}

/* 移动端播放器控制条：不换行、精简按钮 */
.vp-time { white-space: nowrap; }
@media (max-width: 640px) {
  .vp-row { height: 40px; gap: 2px; }
  .vp-btn { width: 34px; height: 34px; }
  .vp-btn svg { width: 17px; height: 17px; }
  .vp-time { font-size: 11px; padding: 0 4px; letter-spacing: -0.2px; }
  #vpTheater { display: none; }
  .vp-vol:hover .vp-range { width: 44px; }
}

/* ================= 播放器水印（品牌：木木追剧） ================= */
.vp-mark {
  position: absolute; left: 12px; top: 10px; z-index: 22;
  display: flex; align-items: center; gap: 6px;
  pointer-events: none; user-select: none;
  opacity: 0.9; transition: opacity .3s;
}
.vp-mark b {
  font-size: 15px; font-weight: 800; letter-spacing: 1px;
  color: #eab308; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.vp-mark i {
  font-style: normal; font-size: 10px; line-height: 1;
  padding: 3px 5px; border-radius: 4px;
  color: #241a02; background: #eab308; font-weight: 700;
}
.watch-player:hover .vp-mark { opacity: 0.55; }
@media (max-width: 640px) {
  .vp-mark { left: 10px; top: 8px; gap: 5px; }
  .vp-mark b { font-size: 13px; }
  .vp-mark i { font-size: 9px; padding: 2px 4px; }
}

/* ================= 分类页广告位（对齐原站结构） ================= */
.ad-wrap { margin-bottom: 16px; padding: 0 8px; }
.ad-box {
  position: relative; display: block; width: 100%;
  overflow: hidden; background: #000; border: 4px solid #000;
}
.ad-tag {
  position: absolute; left: 6px; top: 6px; z-index: 2;
  padding: 3px 6px; border-radius: 3px;
  background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.75);
  font-size: 10px; line-height: 1; font-weight: 400;
  font-family: "SimSun", "宋体", "Courier New", monospace;
}
.ad-img { display: block; width: 100%; height: 150px; object-fit: cover; }
.ad-holder { display: none; }
.ad-box.ad-fail .ad-holder {
  display: flex; align-items: center; justify-content: center;
  height: 150px; color: #5a5a63; font-size: 12px; letter-spacing: 2px;
  background: #050505;
}
@media (max-width: 1023px) {
  .ad-wrap { padding: 0 4px; margin-bottom: 12px; }
  .ad-img { height: 110px; }
  .ad-box.ad-fail .ad-holder { height: 110px; }
}

/* 后台广告位表单 */
.ad-form { display: grid; gap: 10px; }
.ad-field { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; }
.ad-field > span { font-size: 12.5px; color: #9ca3af; }
.ad-field .field { width: 100%; }
.ad-field .sw { justify-self: start; }

/* App 广告位：开关 + 输入框同一行（开关列固定 38px） */
.ad-field.has-sw { grid-template-columns: 90px 38px 1fr; }
.ad-field.has-sw .field { min-width: 0; }
.ad-field select.field { appearance: none; cursor: pointer; }

/* 运营表单：多行文本与三连输入 */
.ad-field textarea.field { min-height: 66px; resize: vertical; font-family: inherit; line-height: 1.6; padding-top: 8px; }
.ad-field .field[readonly] { opacity: .65; }
.ad-field > span > .field { min-width: 0; }

/* 多字段一行：每格带小标签，避免填了值之后看不出含义 */
.mini-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.mini-row .mini { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini-row .mini > b { font-size: 11.5px; font-weight: 500; color: #9ca3af; }
.mini-row .mini > .field { width: 100%; }
.mini-row > .btn { align-self: end; white-space: nowrap; height: 38px; }

/* CDK 表格 */
.table .tr.cdk-cols { grid-template-columns: 1fr 130px 90px 100px 160px; }
.table .tr.cdk-cols span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

