/* 管理控制台样式：侧栏式后台，与前台主色 #ff3b22 保持一致 */
:root {
  --bg: #0e1014;
  --side: #14171d;
  --panel: #1a1e26;
  --panel-2: #21262f;
  --panel-3: #272d38;
  --line: #2c323d;
  --line-soft: rgba(255, 255, 255, .06);
  --text: #e9ecf1;
  --muted: #8d95a3;
  --dim: #646c79;
  --accent: #ff3b22;
  --accent-2: #ff7a2f;
  --ok: #46c98b;
  --shadow: 0 18px 44px rgba(0, 0, 0, .32);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
code { padding: 1px 6px; border-radius: 5px; background: var(--panel-3); font-size: 12px; color: #ffb49f; }
.icon { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }
::selection { background: rgba(255, 59, 34, .35); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { border-radius: 9px; background: #3a414e; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 品牌 ---------- */
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 8px 20px rgba(255, 59, 34, .3);
}
.brand-mark .icon { width: 19px; height: 19px; fill: currentColor; stroke-width: 1.2; }
.brand-text { font-size: 17px; font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.brand-text small { display: block; margin-top: 3px; font-size: 10px; font-weight: 500; letter-spacing: .22em; color: var(--muted); }

/* ---------- 登录页 ---------- */
.adm-login {
  display: grid; place-items: center; min-height: 100vh; padding: 24px; overflow: hidden;
  background: radial-gradient(circle at 18% 12%, #2a1a1c 0, transparent 46%),
              radial-gradient(circle at 86% 88%, #1b1a33 0, transparent 48%), #0d0f13;
}
.login-glow { position: fixed; z-index: 0; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-a { width: 420px; height: 420px; top: -150px; left: -110px; background: rgba(255, 59, 34, .34); }
.glow-b { width: 380px; height: 380px; bottom: -160px; right: -110px; background: rgba(101, 76, 255, .26); }
.login-wrap { position: relative; z-index: 1; width: min(420px, 100%); }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 26px; }
.login-card {
  padding: 34px 32px 26px; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(160deg, rgba(34, 39, 49, .96), rgba(22, 25, 32, .96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); backdrop-filter: blur(12px);
}
.login-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border: 1px solid rgba(255, 59, 34, .28); border-radius: 15px; color: #ff7557;
  background: rgba(255, 59, 34, .1);
}
.login-icon .icon { width: 26px; height: 26px; }
.login-card h1 { font-size: 25px; font-weight: 700; letter-spacing: .01em; }
.login-sub { margin-top: 7px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.login-card .field { margin-top: 24px; }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 66px !important; }
.toggle-pwd {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  padding: 4px 9px; border: 0; border-radius: 6px; background: var(--panel-3);
  color: var(--muted); font-size: 12px; cursor: pointer;
}
.toggle-pwd:hover { color: var(--text); }
.login-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 20px; font-size: 11.5px; color: var(--dim); }
.login-foot a { color: var(--muted); }
.login-foot a:hover { color: var(--accent); }

/* ---------- 通用按钮 / 输入 / 提示 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 20px; border: 1px solid transparent; border-radius: 9px;
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: transform .16s, filter .16s, background .16s, border-color .16s;
}
.btn .icon { width: 15px; height: 15px; }
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 20px rgba(255, 59, 34, .22); }
.btn.primary:hover { filter: brightness(1.09); transform: translateY(-1px); }
.btn.ghost { color: var(--text); border-color: var(--line); background: var(--panel-2); }
.btn.ghost:hover { border-color: var(--accent); color: #fff; }
.btn.small { height: 31px; padding: 0 13px; font-size: 12px; }
.btn.block { width: 100%; margin-top: 22px; }
.field input, .field select, .field textarea,
.quick-field input, .inline-form input, .mini-form input, .search-box input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  outline: 0; background: var(--panel-2); color: var(--text); font-size: 13px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus,
.quick-field input:focus, .inline-form input:focus, .mini-form input:focus, .search-box input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 59, 34, .12);
}
.field input::placeholder, .quick-field input::placeholder, .mini-form input::placeholder { color: var(--dim); }
.field textarea { resize: vertical; }
.field > span, .quick-field > span { display: block; margin-bottom: 7px; font-size: 12px; color: var(--muted); }
.alert { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 18px; padding: 12px 15px; border-radius: 10px; font-size: 13px; }
.alert .icon { width: 16px; height: 16px; margin-top: 2px; }
.alert.error { color: #ffb4a8; background: rgba(255, 59, 34, .1); border: 1px solid rgba(255, 59, 34, .28); }
.alert.ok { color: #a7e8c7; background: rgba(46, 180, 110, .09); border: 1px solid rgba(46, 180, 110, .25); }
.alert.ok a { color: #fff; text-decoration: underline; }

/* ---------- 控制台骨架 ---------- */
.adm-body { background: radial-gradient(circle at 78% -10%, rgba(255, 59, 34, .06), transparent 42%), var(--bg); }
.adm-shell { display: flex; min-height: 100vh; }
.side-overlay { display: none; }
.adm-side {
  position: sticky; top: 0; display: flex; flex-direction: column; flex: none;
  width: 248px; height: 100vh; padding: 24px 16px 18px;
  border-right: 1px solid var(--line-soft); background: var(--side);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 30px; }
.side-label { padding: 0 12px; margin: 16px 0 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; color: var(--dim); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 10px 13px; border-radius: 9px; font-size: 13.5px; color: var(--muted);
  transition: background .18s, color .18s;
}
.side-link .icon { width: 17px; height: 17px; }
.side-link:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.side-link.active { color: #fff; font-weight: 600; background: linear-gradient(90deg, rgba(255, 59, 34, .2), rgba(255, 59, 34, .04)); }
.side-link.active .icon { color: #ff6a4d; }
.side-dot { position: absolute; right: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.side-link .ext { margin-left: auto; font-size: 13px; font-style: normal; color: var(--dim); }
.side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.storage { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 9px; background: rgba(255, 255, 255, .03); }
.status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(70, 201, 139, .7); }
.storage strong { display: block; font-size: 12px; font-weight: 600; }
.storage small { display: block; font-size: 10.5px; color: var(--dim); }
.logout { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 9px; font-size: 13px; color: var(--muted); }
.logout:hover { color: #ff8b7a; background: rgba(255, 59, 34, .08); }
.logout .icon { width: 16px; height: 16px; }

.adm-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.adm-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  height: 66px; padding: 0 30px; border-bottom: 1px solid var(--line-soft);
  background: rgba(14, 16, 20, .82); backdrop-filter: blur(14px);
}
.nav-toggle { display: none; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); cursor: pointer; }
.nav-toggle .icon { width: 20px; height: 20px; }
.crumb { font-size: 13px; color: var(--dim); }
.crumb span { margin: 0 8px; }
.crumb strong { color: var(--text); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.top-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.top-btn:hover { color: var(--text); border-color: var(--accent); }
.top-btn .icon { width: 15px; height: 15px; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff8a4c, var(--accent)); }
.adm-main { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 28px 30px 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: .01em; }
.page-head p { margin-top: 5px; font-size: 13px; color: var(--muted); }
.page-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid rgba(70, 201, 139, .22); border-radius: 20px; font-size: 11.5px; color: #8ddcb4; background: rgba(70, 201, 139, .07); }
.page-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ---------- 统计卡 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 15px;
  padding: 18px 19px; border: 1px solid var(--line-soft); border-radius: 14px;
  background: linear-gradient(150deg, var(--panel), #171b22);
}
.stat-card::after { content: ''; position: absolute; right: -30px; bottom: -45px; width: 110px; height: 110px; border-radius: 50%; filter: blur(34px); opacity: .3; }
.stat-card.tone-red::after { background: var(--accent); }
.stat-card.tone-blue::after { background: #4d9dff; }
.stat-card.tone-purple::after { background: #a081ff; }
.stat-card.tone-orange::after { background: #ffae4d; }
.stat-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; }
.stat-icon .icon { width: 22px; height: 22px; }
.tone-red .stat-icon { color: #ff7457; background: rgba(255, 59, 34, .13); }
.tone-blue .stat-icon { color: #65aaff; background: rgba(77, 157, 255, .13); }
.tone-purple .stat-icon { color: #ad92ff; background: rgba(160, 129, 255, .13); }
.tone-orange .stat-icon { color: #ffbc6a; background: rgba(255, 174, 77, .13); }
.stat-body { position: relative; z-index: 1; min-width: 0; }
.stat-body span { display: block; font-size: 12px; color: var(--muted); }
.stat-body strong { display: block; margin: 1px 0 0; font-size: 27px; font-weight: 700; line-height: 1.25; letter-spacing: .01em; }
.stat-body small { display: block; font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 内容卡片 ---------- */
.adm-card { margin-bottom: 20px; padding: 22px 24px 24px; border: 1px solid var(--line-soft); border-radius: 15px; background: var(--panel); box-shadow: var(--shadow); }
.adm-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.card-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; color: #ff7557; background: rgba(255, 59, 34, .1); border: 1px solid rgba(255, 59, 34, .16); }
.card-icon .icon { width: 19px; height: 19px; }
.card-title h2 { font-size: 16px; font-weight: 700; }
.card-title p { margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.card-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 11px 14px; border-radius: 9px; font-size: 12px; line-height: 1.7; color: var(--muted); background: rgba(255, 255, 255, .025); }
.card-note .icon { width: 15px; height: 15px; margin-top: 3px; color: var(--accent-2); }
.card-note a { color: #ff8b6b; text-decoration: underline; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); color: var(--dim); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 59, 34, .12); }
.search-box .icon { width: 16px; height: 16px; }
.search-box input { width: 220px; padding: 8px 0; border: 0; box-shadow: none !important; background: transparent; }
.search-box input:focus { border: 0; box-shadow: none; }

/* ---------- 影片表单 ---------- */
.form-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px dashed var(--line); }
.form-section:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.form-section-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.sec-index { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; font-size: 11px; font-weight: 700; color: #ff9a80; background: rgba(255, 59, 34, .1); border: 1px solid rgba(255, 59, 34, .16); }
.form-section-head h3 { font-size: 14px; font-weight: 700; }
.form-section-head p { margin-top: 1px; font-size: 11.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 18px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field.wide { grid-column: 1 / -1; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.desc-field { display: block; margin-top: 16px; }

/* 播放地址：每行一集 + 实时集数预览 */
.play-editor { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); }
.play-editor .field > span { color: var(--text); font-weight: 600; }
.play-editor textarea {
  width: 100%; min-height: 112px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  outline: 0; background: var(--panel); color: var(--text); resize: vertical;
  font: 12.5px/1.8 ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
}
.play-editor textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 59, 34, .12); }
.play-editor textarea::placeholder { color: var(--dim); }
.play-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.play-count { padding: 4px 11px; border-radius: 20px; font-size: 11.5px; font-weight: 600; color: #ffad96; background: rgba(255, 59, 34, .12); white-space: nowrap; }
.play-desc { font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.ep-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ep-preview:empty { display: none; }
.ep-chip { padding: 4px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 11.5px; color: var(--muted); background: var(--panel); }
.ep-chip.more { color: var(--dim); border-style: dashed; }

/* ---------- 影片表格 ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; color: var(--dim); text-align: left; white-space: nowrap; }
.adm-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover td { background: rgba(255, 255, 255, .022); }
.adm-table td strong { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.adm-table td small { display: block; font-size: 10.5px; color: var(--dim); }
.adm-table .none { padding: 38px; text-align: center; color: var(--muted); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11.5px; color: #ffad96; background: rgba(255, 59, 34, .1); }
.dim { color: var(--dim); }
.score { font-weight: 700; color: #ffc46b; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; color: var(--dim); background: var(--panel-2); }
.badge.on { color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.ops { display: flex; align-items: center; gap: 12px; }
.ops .inline { display: inline-flex; }
.op { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.op .icon { width: 13px; height: 13px; }
.op:hover { color: #ff8b6b; }
.op.danger:hover { color: #ff6b5b; }
.op.small { padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); font-size: 11.5px; }
.op.small .icon { width: 14px; height: 14px; }
.op.small:hover { border-color: var(--accent); background: var(--accent); color: #fff; }

/* ---------- 影片搜索 / 筛选 / 分页 ---------- */
.movie-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.movie-filter .search-box { flex: 1 1 320px; min-width: 220px; }
.movie-filter .search-box input { width: 100%; min-width: 0; }
.filter-select {
  height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel-2); color: var(--text); font-size: 12.5px; cursor: pointer;
}
.filter-select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 59, 34, .12); }
.filter-summary { margin: 0 0 16px; font-size: 11.5px; line-height: 1.7; color: var(--dim); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-top: 18px; }
.pager a, .pager > span, .pager-jump input {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-2); color: var(--muted); font-size: 12px; text-decoration: none;
}
.pager a:hover { border-color: var(--accent); color: #ff8b6b; }
.pager .current { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; }
.pager .disabled, .pager .dots { border-color: transparent; background: none; opacity: .55; }
.pager-jump { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.pager-jump input[type="number"] { width: 68px; padding: 0 8px; color: var(--text); }
.pager-jump .btn { height: 34px; }
@media (max-width: 700px) {
  .movie-filter .search-box { flex: 1 1 100%; }
  .movie-filter .filter-select { flex: 1 1 120px; }
  .pager-jump { margin-left: 0; }
}

/* ---------- 分类管理 ---------- */
.quick-form { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.quick-field { min-width: 0; }
.quick-field input { width: 210px; }
.quick-field.short input { width: 100px; }
.quick-form .btn { margin-left: auto; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.cat-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-2); }
.cat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent), transparent 78%); opacity: .85; }
.cat-head { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.cat-head-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-head-main .inline-form:last-child { margin-left: auto; }
.cat-index { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; font-size: 11px; font-weight: 700; color: #ff9a80; background: rgba(255, 59, 34, .1); }
.cat-id { margin-top: 9px; font-size: 11px; color: var(--dim); }
.cat-id em { margin: 0 5px; font-style: normal; }
.cat-id b { color: #ff9a80; font-weight: 700; }
.cat-empty { padding: 16px; text-align: center; font-size: 12px; color: var(--dim); }
.inline-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inline-form input, .mini-form input { padding: 6px 9px; font-size: 12px; width: auto; }
.inline-form .group-name { width: 108px; font-size: 14px; font-weight: 700; }
.inline-form .sub-name { width: 94px; }
.inline-form .sort-input, .mini-form .sort-input { width: 56px; text-align: center; }
.sub-list { display: flex; flex-direction: column; gap: 7px; padding: 14px 0; }
.sub-item { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 7px 9px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--panel); }
.sub-item .count { margin-left: auto; font-size: 11px; color: var(--muted); }
.mini-form { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed var(--line); }
.mini-form input[type="text"] { flex: 1; min-width: 110px; }
.adm-footer { padding: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--dim); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-form .btn { margin-left: 0; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .adm-side { position: fixed; z-index: 60; left: 0; top: 0; transform: translateX(-100%); transition: transform .24s ease; box-shadow: 24px 0 60px rgba(0, 0, 0, .45); }
  .adm-shell.side-open .adm-side { transform: translateX(0); }
  .side-overlay { display: block; position: fixed; z-index: 50; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .24s, visibility .24s; }
  .adm-shell.side-open .side-overlay { opacity: 1; visibility: visible; }
  .nav-toggle { display: inline-flex; }
  .adm-topbar { padding: 0 18px; }
  .adm-main { padding: 22px 18px 34px; }
}
@media (max-width: 700px) {
  .login-card { padding: 28px 22px 22px; }
  .stat-grid { gap: 10px; }
  .stat-card { padding: 14px 13px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-icon .icon { width: 18px; height: 18px; }
  .stat-body strong { font-size: 22px; }
  .page-head h1 { font-size: 21px; }
  .adm-card { padding: 17px 15px 19px; }
  .adm-card-head { align-items: flex-start; }
  .form-grid, .form-grid.cols-2 { grid-template-columns: 1fr; gap: 14px; }
  .play-editor { padding: 12px; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { width: 100%; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .cat-grid { grid-template-columns: 1fr; }
  .quick-field input, .quick-field.short input { width: 100%; }
  .quick-field { flex: 1 1 140px; }
  .quick-form .btn { width: 100%; }
  .top-btn span { display: none; }
  .crumb { font-size: 12px; }
  .ops { gap: 9px; }
}

/* ---------------- 一键采集 ---------------- */
.collect-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.collect-tab { padding: 8px 15px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; color: var(--muted); background: var(--panel-2); cursor: pointer; }
.collect-tab:hover { border-color: var(--accent); color: #fff; }
.collect-tab.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.collect-pane { display: none; }
.collect-pane.active { display: block; }
.collect-hint { margin: 10px 0 0; font-size: 12px; line-height: 1.85; color: var(--muted); }
.collect-hint code { padding: 1px 5px; border-radius: 4px; background: var(--panel-2); }
.collect-log { max-height: 175px; overflow: auto; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 9px; font-size: 11.5px; line-height: 1.9; color: var(--muted); background: rgba(255, 255, 255, .025); }
.collect-log div { white-space: pre-wrap; word-break: break-all; }
.collect-item { display: flex; gap: 16px; padding: 17px 0; border-bottom: 1px dashed var(--line); }
.collect-item:last-child { border-bottom: 0; }
.collect-thumb { width: 100px; flex: none; }
.collect-thumb img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--panel-2); }
.collect-thumb img.cover-img { aspect-ratio: 16 / 6; margin-top: 7px; }
.collect-thumb .no-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 3; border-radius: 8px; font-size: 11px; color: var(--dim); background: var(--panel-2); }
.collect-body { flex: 1; min-width: 0; }
.collect-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; }
.collect-fields .field > span { margin-bottom: 5px; }
.collect-fields .wide { grid-column: 1 / -1; }
.collect-fields input { font-size: 12px; }
.collect-warn { margin-top: 10px; font-size: 11.5px; line-height: 1.7; color: #ffb4a8; }
.collect-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.collect-foot .hint { font-size: 12px; color: var(--muted); }
.collect-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.collect-pick input { width: 16px; height: 16px; accent-color: var(--accent); }
.collect-src { margin-top: 8px; font-size: 11px; color: var(--dim); word-break: break-all; }
@media (max-width: 900px) { .collect-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .collect-fields { grid-template-columns: 1fr; } .collect-item { flex-direction: column; } .collect-thumb { width: 120px; } }
.site-cats { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 4px; }
.site-progress { height: 8px; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.site-progress > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .4s ease; }
.site-stats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 4px; font-size: 12.5px; color: var(--muted); }
.site-stats strong { font-size: 14px; color: var(--text); }
