:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --surface2: #fafafa;
  --border: #e8e8e8;
  --text: #333333;
  --muted: #999999;
  --primary: #1890ff;
  --primary-hover: #096dd9;
  --danger: #ff4d4f;
  --success: #52c41a;
  --radius: 8px;
  --header-h: 56px;
  --sidebar-w: 200px;
  --aside-w: 320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
.hidden { display: none !important; }

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, #e6f4ff 0%, var(--bg) 60%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.login-card h1 { font-size: 1.5rem; margin-bottom: 6px; }
.login-card p { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(24,144,255,.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: .875rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-sm { padding: 5px 12px; font-size: .82rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #cf1322; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-warning { background: #fa8c16; color: #fff; }
.btn-warning:hover { background: #d46b08; }

.error-msg { color: var(--danger); font-size: .85rem; margin-top: 12px; min-height: 1.2em; }

/* Top header */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.top-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.top-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  margin-right: 24px;
}
.top-logo-img {
  width: 32px; height: 32px;
  border-radius: 6px;
  object-fit: cover;
}
.top-logo-text { font-weight: 700; font-size: 1rem; white-space: nowrap; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
}
.top-nav-item {
  padding: 8px 18px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: .9rem;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
  font-family: inherit;
}
.top-nav-item:hover { color: var(--primary); background: #e6f7ff; }
.top-nav-item.active { color: var(--primary); font-weight: 600; background: #e6f7ff; }

.top-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 16px;
}
.top-search {
  width: 200px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .85rem;
  background: var(--surface2);
}
.top-search:focus { outline: none; border-color: var(--primary); background: var(--surface); }
.top-user { display: flex; align-items: center; gap: 8px; }
.top-user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #36cfc9, #1890ff);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600;
}
.top-user-name { font-size: .85rem; color: var(--text); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Home view */
.home-view {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}
.home-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; min-width: 0; }
.home-body-full { max-width: none; }

/* Dashboard strip */
.dash-strip {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.dash-strip::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.dash-strip-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.dash-strip-sub { font-size: .85rem; opacity: .85; margin-bottom: 20px; }
.dash-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.dash-stat { text-align: center; min-width: 72px; }
.dash-stat .n { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.dash-stat .l { display: block; font-size: .78rem; opacity: .85; margin-top: 4px; }
.dash-strip-loading { opacity: .8; font-size: .9rem; }

/* Module grid */
.module-section { min-height: 200px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1400px) { .module-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .module-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .module-grid { grid-template-columns: repeat(2, 1fr); } }

.module-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: box-shadow .2s, border-color .2s, transform .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.module-card:hover {
  border-color: #91d5ff;
  box-shadow: 0 4px 16px rgba(24,144,255,.12);
  transform: translateY(-2px);
}
.mod-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.mod-title { font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.mod-sub { font-size: .75rem; color: var(--muted); }

.module-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.pager-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.pager-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager-btn:disabled { opacity: .4; cursor: default; }
.pager-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d9d9d9;
  cursor: pointer;
}
.pager-dot.active { background: var(--primary); width: 20px; border-radius: 4px; }

/* Home aside */
.aside-notice {
  background: #e6f7ff;
  border: 1px solid #91d5ff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .82rem;
  color: #096dd9;
  margin-bottom: 16px;
  line-height: 1.5;
}
.aside-welcome {
  background: linear-gradient(180deg, #f0f5ff 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.aside-welcome h3 { font-size: 1.1rem; margin-bottom: 4px; }
.aside-welcome .sub { font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.aside-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}
.aside-quick-item {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px 8px;
  border: 1px solid var(--border);
}
.aside-quick-item .n { font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.aside-quick-item .l { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* Work view */
.work-view {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}
.work-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 12px 0;
}
.work-sidebar-label {
  padding: 8px 16px 6px;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.work-nav-item {
  display: block;
  width: 100%;
  padding: 10px 16px 10px 20px;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: .875rem;
  color: var(--text);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.work-nav-item:hover { background: #f5f5f5; color: var(--primary); }
.work-nav-item.active {
  background: #e6f7ff;
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 600;
}
.work-nav-home {
  display: block;
  width: calc(100% - 24px);
  margin: 16px 12px 0;
  padding: 8px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  cursor: pointer;
  font-family: inherit;
}
.work-nav-home:hover { border-color: var(--primary); color: var(--primary); }

.work-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.work-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  flex-shrink: 0;
}
.work-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}
.work-tab {
  padding: 0 16px;
  height: 44px;
  line-height: 44px;
  font-size: .9rem;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
}
.work-breadcrumb {
  font-size: .78rem;
  color: var(--muted);
  padding: 6px 0 0;
}
.work-breadcrumb a { cursor: pointer; }
.work-breadcrumb a:hover { text-decoration: underline; }

.content { padding: 16px 20px; overflow: auto; flex: 1; background: var(--bg); }
.content.content-flush { padding: 0; }

/* Tables & forms */
.flat-metrics {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: .875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.flat-metrics th, .flat-metrics td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.flat-metrics th { background: var(--surface2); color: var(--muted); font-weight: 600; width: 40%; }
.flat-metrics tr:last-child td, .flat-metrics tr:last-child th { border-bottom: none; }

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
  background: var(--surface);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.toolbar input, .toolbar select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .875rem;
}
.toolbar input { flex: 1; min-width: 140px; max-width: 240px; }

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  margin-bottom: 16px;
}
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #fafafa; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fafafa; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem; }
.badge-admin { background: #e6f7ff; color: #096dd9; }
.badge-ok { background: #f6ffed; color: #389e0d; }
.badge-warn { background: #fffbe6; color: #d48806; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions a, .actions button.link-btn {
  background: none; border: none; color: var(--primary);
  cursor: pointer; font-size: .875rem; padding: 0;
  font-family: inherit;
}
.actions a:hover, .actions button.link-btn:hover { text-decoration: underline; }
.empty { text-align: center; padding: 48px; color: var(--muted); }

.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 20px; border-radius: 8px; z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal {
  background: var(--surface); border-radius: 8px; padding: 24px;
  width: 100%; max-width: 420px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.modal h3 { margin-bottom: 16px; }
.modal-sub { color: var(--muted); font-size: .9rem; margin: -8px 0 16px; line-height: 1.5; }
.modal-form .field { margin-bottom: 14px; }
.modal-form .field:last-child { margin-bottom: 0; }
.field-hint { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.admin-form-modal { max-height: 90vh; overflow-y: auto; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.work-nav-divider {
  font-size: .72rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .04em; padding: 14px 12px 6px; margin-top: 4px;
  border-top: 1px solid var(--border);
}
.work-nav-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px 10px 16px;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.work-nav-group:hover { background: #f5f5f5; color: var(--primary); }
.work-nav-group.open { color: var(--primary); }
.work-nav-group .work-nav-caret {
  font-size: .7rem;
  color: var(--muted);
  transition: transform .15s ease;
}
.work-nav-group.open .work-nav-caret { transform: rotate(180deg); color: var(--primary); }
.work-nav-children { display: none; padding-bottom: 4px; }
.work-nav-children.open { display: block; }
.work-nav-item.work-nav-child {
  padding-left: 32px;
  font-size: .84rem;
  font-weight: 400;
}

/* Layout builder */
.layout-config { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h) - 44px); background: var(--surface); }
.layout-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface2);
}
.layout-tab {
  padding: 8px 14px; border: none; border-radius: 6px;
  background: transparent; color: var(--muted); font-size: .88rem; cursor: pointer;
}
.layout-tab:hover { background: var(--surface); color: var(--text); }
.layout-tab.active { background: var(--primary); color: #fff; }
.layout-toolbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.layout-toolbar .hint { flex: 1; font-size: .82rem; color: var(--muted); }
.layout-body { padding: 16px 20px; overflow: auto; flex: 1; background: var(--bg); }

.lb-section-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.lb-section-bar .field { margin: 0; flex: 1; min-width: 160px; }
.lb-section-bar .field input { padding: 6px 10px; font-size: .875rem; }
.lb-table th, .lb-table td { font-size: .875rem; }
.lb-table .actions { white-space: nowrap; }

.builder-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .builder-grid { grid-template-columns: 1fr; } }

.builder-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.builder-panel h4 { margin-bottom: 10px; font-size: .92rem; }
.builder-tab-item, .builder-comp-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
  background: var(--surface);
}
.builder-tab-item.active { border-color: var(--primary); background: #e6f7ff; }
.builder-tab-item .muted, .muted { color: var(--muted); font-size: .8rem; }
.builder-carousel-item {
  border: 1px dashed var(--border);
  padding: 10px; margin-bottom: 10px; border-radius: 6px;
}

.pagination { display: flex; gap: 8px; align-items: center; margin-top: 16px; color: var(--muted); font-size: .85rem; }

.points-tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 12px; }
.points-game-card { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 14px; background: var(--surface); }
.points-game-card h4 { margin: 0 0 10px; font-size: .95rem; }
.points-tier-block { background: var(--surface2); border-radius: 6px; padding: 10px; margin-bottom: 8px; }
.points-tier-block h5 { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.points-section-title { font-size: 1rem; font-weight: 600; margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.points-delta-pos { color: var(--success); }
.points-delta-neg { color: var(--danger); }

.upload-progress { margin: 12px 0 4px; }
.upload-progress-bar {
  height: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.upload-progress-bar > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), #69c0ff);
  transition: width .2s ease;
}
.upload-progress-text {
  margin-top: 6px;
  font-size: .85rem;
  color: var(--muted);
}
.upload-error {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  color: var(--danger);
  font-size: .875rem;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .home-aside { display: none; }
  .top-search { width: 140px; }
}
@media (max-width: 768px) {
  .top-nav { display: none; }
  .work-sidebar { width: 160px; }
}

/* 影视管理 · 配置区块 */
.admin-intro {
  background: linear-gradient(135deg, #f0f7ff 0%, #fafbff 100%);
  border: 1px solid #d6e8ff;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: .9rem;
  color: #555;
  line-height: 1.6;
}
.admin-intro p { margin: 0; }

.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.admin-section-flush { padding: 0; overflow: hidden; }
.admin-section-flush .table-wrap { border-radius: 12px; }

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-section-head h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
}
.admin-section-desc {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}

.admin-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f7fa;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: .85rem;
}
.admin-chip small {
  color: var(--muted);
  font-size: .75rem;
}
.admin-chip-edit,
.admin-chip-del {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: .78rem;
  color: var(--primary);
  padding: 0 2px;
}
.admin-chip-del { color: var(--danger); font-size: 1rem; line-height: 1; }

.admin-empty-hint { color: var(--muted); font-size: .85rem; }

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.admin-filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: .85rem;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  transition: all .15s;
}
.admin-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.admin-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th {
  text-align: left;
  padding: 10px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: #666;
  font-size: .8rem;
}
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }

.admin-cover-thumb {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface2);
}

.admin-mid-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .8125rem;
  font-family: ui-monospace, Consolas, monospace;
  background: #e8f4fd;
  color: #1565c0;
  cursor: help;
}

.admin-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: .75rem;
  background: #f0f0f0;
  color: #666;
}
.admin-tag-hot { background: #fff1f0; color: #cf1322; }
.admin-tag-rec { background: #e6f7ff; color: #096dd9; }
.admin-tag-ok { background: #f6ffed; color: #389e0d; }
.admin-tag-warn { background: #fff7e6; color: #d46b08; }

.admin-subtabs {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: .85rem;
  color: var(--muted);
}
.admin-subtab.active { color: var(--primary); font-weight: 600; }

/* 合集编辑侧栏（替代居中弹窗，避免嵌套滚动看不清） */
.admin-series-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 200;
  display: flex;
  justify-content: flex-end;
}
.admin-series-drawer {
  width: min(920px, 96vw);
  height: 100vh;
  background: var(--card);
  box-shadow: -8px 0 32px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
}
.admin-series-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.admin-series-drawer-head h3 { margin: 0; font-size: 1.1rem; }
.admin-series-drawer-head p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.admin-series-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 28px;
}
.admin-series-meta-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.admin-series-meta-grid .field { margin-bottom: 12px; }
.admin-ep-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-ep-table th,
.admin-ep-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.admin-ep-table th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.admin-ep-table .ep-title-cell { max-width: 280px; word-break: break-word; }
.admin-ep-table .ep-codec-cell { min-width: 120px; max-width: 160px; font-size: .78rem; }
.admin-ep-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 20px 0 10px; }
.admin-ep-tools h4 { margin: 0; font-size: .95rem; flex: 1 1 auto; min-width: 140px; }
.admin-ep-inline-form {
  background: var(--surface2);
  border-radius: 10px;
  padding: 12px;
  margin-top: 6px;
}
.admin-series-drawer-foot {
  display: flex;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--card);
}
