/* 剧集管理平台 — 商业控制台皮肤 */
:root {
  --ink: #0c1730;
  --ink-2: #163056;
  --gold: #c6a15a;
  --gold-2: #e7d3a1;
  --paper: #eef2f7;
  --card: #ffffff;
  --text: #152033;
  --muted: #66758c;
  --line: #e4ebf5;
  --danger: #b42318;
  --ok: #0e7a62;
  --shadow: 0 18px 50px rgba(12, 23, 48, .08);
}

html, body { height: 100%; }
body.app-body, body.auth-body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(980px 420px at 100% -12%, rgba(198, 161, 90, .12), transparent 42%),
    radial-gradient(760px 360px at -8% 110%, rgba(22, 48, 86, .08), transparent 46%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

.app { display: flex; min-height: 100%; }

.side {
  width: 252px;
  flex-shrink: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(420px 220px at 20% 0%, rgba(198, 161, 90, .16), transparent 60%),
    linear-gradient(180deg, #101b33 0%, #0c1730 48%, #0a1428 100%);
  box-shadow: 8px 0 30px rgba(8, 16, 32, .12);
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #1a1408;
  background: linear-gradient(145deg, #f3e2b8, #c6a15a 55%, #8d6b2e);
  box-shadow: 0 8px 18px rgba(198, 161, 90, .28);
  flex-shrink: 0;
}
.brand-mark svg { width: 22px; height: 22px; display: block; }
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.25;
  max-width: 158px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-kicker {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(231, 211, 161, .78);
}
.nav { flex: 1; padding: 8px 12px 16px; overflow: auto; }
.nav-group {
  margin: 16px 8px 8px;
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .38);
}
.side a.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-size: 14px;
  transition: background .15s ease, color .15s ease;
}
.side a.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side a.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(198, 161, 90, .22), rgba(255, 255, 255, .05));
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav-ico { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.side-foot {
  padding: 16px 20px 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, .42);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  min-height: 72px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 40, 70, .06);
  position: sticky;
  top: 0;
  z-index: 10;
}
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
.top-title { min-width: 0; }
.crumb {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.topbar h1 {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}
.top-spacer { flex: 1; }
.top-date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.account-bar { display: flex; align-items: center; gap: 8px; }
.user-menu { position: relative; }
.user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(16, 34, 64, .04);
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.user-trigger:hover, .user-trigger[aria-expanded="true"] { border-color: #c5d2e6; }
.user-caret { width: 14px; height: 14px; color: #7d8ba0; }
.user-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(12, 23, 48, .14);
  z-index: 40;
}
.user-drop.show { display: block; }
.user-drop button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.user-drop button svg { width: 16px; height: 16px; color: var(--ink-2); }
.user-drop button:hover { background: #f4f7fb; }
.pwd-dialog { padding: 16px 22px 6px; }
.pwd-dialog .tip { margin-bottom: 16px; }
.pwd-dialog .pwd-actions { text-align: right; margin-bottom: 8px; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1a1408;
  font-weight: 700;
  background: linear-gradient(145deg, #f3e2b8, #c6a15a);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; padding-right: 4px; }
.user-meta strong { font-size: 13px; color: var(--ink); }
.user-meta span { font-size: 11px; color: var(--muted); }
.logout {
  margin-left: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-2) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  background: #f4f7fb;
}
.logout:hover { background: #e7eef8; }

.content { padding: 22px 24px 28px; flex: 1; }
.card {
  background: var(--card);
  border: 1px solid rgba(20, 40, 70, .05);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}
.card-form { max-width: 760px; }
.card-form-sm { max-width: 560px; }
.tip {
  color: #53627a;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f7f5ef;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
}
.tip code, .card code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(20, 49, 92, .06);
  color: var(--ink-2);
}
.filter-bar {
  background: linear-gradient(180deg, #fbfcfe, #f5f8fc);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px 2px;
  margin-bottom: 14px;
}
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.thumb, .cover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e6edf6;
}
#cacheOut {
  margin: 8px 0 4px;
  background: #0f1b30;
  color: #e7eef8;
  padding: 14px 16px;
  border-radius: 12px;
  min-height: 72px;
  font-size: 12px;
  line-height: 1.6;
}
#cacheOut:empty { display: none; }

.side-mask { display: none; }

.layui-btn {
  background: var(--ink-2);
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(22, 48, 86, .16);
}
.layui-btn:hover { background: #1d406f; opacity: 1; }
.layui-btn-primary {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid #d5deec;
  box-shadow: none;
}
.layui-btn-primary:hover { color: var(--ink); border-color: #b9c7dc; }
.layui-btn-normal { background: var(--ok); box-shadow: 0 6px 14px rgba(14, 122, 98, .16); }
.layui-btn-normal:hover { background: #0c6b56; }
.layui-btn-danger { background: var(--danger); box-shadow: 0 6px 14px rgba(180, 35, 24, .16); }
.layui-btn-danger:hover { background: #9d1e15; }
.layui-btn-xs, .layui-btn-sm { box-shadow: none; font-weight: 600; }
.layui-btn-fluid {
  height: 46px;
  line-height: 46px;
  border-radius: 12px;
  letter-spacing: .28em;
  font-size: 15px;
}

.layui-input, .layui-textarea, .layui-select {
  border-radius: 8px;
  border-color: #d9e2ef;
}
.layui-input:focus, .layui-textarea:focus {
  border-color: #8ea2c4 !important;
  box-shadow: 0 0 0 3px rgba(22, 48, 86, .08);
}
.layui-form-label { color: #3c4d66; font-weight: 600; }
.layui-form-select dl { border-radius: 10px; overflow: hidden; }
.layui-form-select dl dd.layui-this { background: var(--ink-2); }
.layui-form-onswitch { border-color: var(--ink-2) !important; background-color: var(--ink-2) !important; }
.layui-form-checked[lay-skin=primary] i { border-color: var(--ink-2) !important; background-color: var(--ink-2) !important; }

.layui-table-view {
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  overflow: hidden;
}
.layui-table th {
  background: #f6f8fc !important;
  color: #5c6b82 !important;
  font-weight: 600;
}
.layui-table td { color: #1c283b; border-color: #eef2f7 !important; }
.layui-table tbody tr:hover, .layui-table-hover { background: #f7f9fc !important; }
.layui-table-page { border-color: var(--line) !important; }
.layui-laypage .layui-laypage-curr .layui-laypage-em { background: var(--ink-2) !important; }
.layui-laypage a:hover { color: var(--ink-2); }
.layui-badge { border-radius: 999px; padding: 0 8px; }
.layui-badge-rim { border-radius: 999px; }

.layui-elem-field {
  border-color: var(--line);
  border-radius: 14px;
}
.layui-elem-field legend {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 10px;
}

.layui-layer {
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(12, 23, 48, .22) !important;
}
.layui-layer-title {
  background: #f7f9fc !important;
  color: var(--ink) !important;
  font-weight: 700 !important;
  border-bottom: 1px solid var(--line) !important;
  height: 48px !important;
  line-height: 48px !important;
}
.layui-layer-btn a { border-radius: 8px !important; font-weight: 600; }
.layui-layer-btn .layui-layer-btn0 { background: var(--ink-2) !important; border-color: var(--ink-2) !important; }

body.auth-body { min-height: 100%; background: #0c1730; }
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); }
.auth-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at -10% -10%, rgba(198, 161, 90, .28), transparent 52%),
    radial-gradient(700px 420px at 110% 90%, rgba(70, 120, 190, .28), transparent 50%),
    linear-gradient(165deg, #081226 0%, #12284a 52%, #0b1730 100%);
}
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), transparent 88%);
}
.auth-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 56px 64px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-lockup { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.hero-lockup .brand-kicker { color: var(--gold-2); }
.auth-hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: .01em;
}
.hero-desc {
  margin: 18px 0 0;
  max-width: 440px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.75;
}
.hero-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.hero-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
}
.hero-points span {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold-2);
  font-weight: 700;
  padding-top: 2px;
}
.hero-points strong { display: block; font-size: 15px; }
.hero-points em { display: block; margin-top: 2px; font-style: normal; color: rgba(255, 255, 255, .62); font-size: 13px; }
.auth-hero-foot {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .42);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background:
    radial-gradient(520px 240px at 80% 0%, rgba(198, 161, 90, .16), transparent 60%),
    #f6f4ef;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-kicker {
  font-size: 12px;
  letter-spacing: .28em;
  color: #8a7040;
  font-weight: 700;
}
.auth-card h2 {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}
.auth-sub { margin: 8px 0 22px; color: var(--muted); font-size: 14px; }
.auth-error {
  min-height: 0;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f0;
  color: var(--danger);
  border: 1px solid #ffd4d0;
  font-size: 13px;
}
.auth-error:empty { display: none; }
.field { position: relative; margin-bottom: 14px; }
.field svg {
  position: absolute;
  left: 14px;
  top: 15px;
  width: 18px;
  height: 18px;
  color: #8b97ab;
}
.auth-card .layui-input {
  height: 48px;
  line-height: 48px;
  padding-left: 42px;
  border-radius: 12px;
  border-color: #e3d9c8;
  background: #fff;
}
.auth-card .layui-form-item { margin-bottom: 0; }
.auth-note {
  margin: 14px 0 0;
  text-align: center;
  color: #8b8172;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .auth-hero-inner { padding: 40px 36px 32px; }
  .auth-hero h1 { font-size: 34px; }
  .hero-desc { font-size: 14px; }
  .hero-points { margin-top: 22px; gap: 10px; }
  .top-date { display: none; }
}

@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  .side.open { transform: none; }
  .side-mask.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 14, 28, .45);
    z-index: 15;
  }
  .top-date { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { min-height: auto; }
  .auth-hero-inner { padding: 32px 24px 28px; }
  .auth-hero h1 { font-size: 30px; }
  .hero-points { margin-top: 22px; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
}

/* 剧集库 */
.drama-page { min-width: 0; }
.studio-panel {
  background: #fff;
  border: 1px solid rgba(20, 40, 70, .06);
  border-radius: 18px;
  padding: 20px 20px 16px;
  box-shadow: var(--shadow);
}
.studio-note {
  margin: 0 0 14px;
  color: #7d8ba0;
  font-size: 12px;
  line-height: 1.6;
}
.studio-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.studio-field { min-width: 0; flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.studio-field > span {
  font-size: 12px;
  font-weight: 600;
  color: #5c6b82;
}
.input-ico { position: relative; }
.input-ico svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 16px;
  height: 16px;
  color: #8b97ab;
  pointer-events: none;
}
.input-ico .layui-input { padding-left: 36px; }
.drama-page .layui-input,
.drama-page .layui-form-select .layui-input {
  height: 40px;
  line-height: 40px;
  border-radius: 10px;
}
.drama-page .studio-field .layui-form-select,
.drama-page .studio-field .layui-input { width: 100%; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.drama-page .btn, .add-sheet .btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.drama-page .btn svg, .add-sheet .btn svg { width: 14px; height: 14px; }
.btn-ink { background: #163056; color: #fff; box-shadow: 0 6px 14px rgba(22, 48, 86, .16); }
.btn-ink:hover { background: #1d406f; }
.btn-ghost { background: #fff; color: #163056; border-color: #d5deec; }
.btn-ghost:hover { background: #f8fafc; border-color: #b7c6db; }
.btn-gold {
  color: #1a1408;
  background: linear-gradient(180deg, #f3e6c4 0%, #c6a15a 100%);
  box-shadow: 0 8px 16px rgba(198, 161, 90, .28);
}
.btn-gold:hover { filter: brightness(1.04); }
.btn-line-danger { background: #fff; color: var(--danger); border-color: #f0d0cc; }
.btn-line-danger:hover { background: #fff6f5; }
.drama-page .btn:focus-visible, .add-sheet .btn:focus-visible {
  outline: 2px solid #c6a15a;
  outline-offset: 2px;
}
.studio-sub {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 2px 12px;
}
.studio-stat { display: flex; align-items: baseline; gap: 8px; }
.studio-stat strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.studio-stat span { font-size: 13px; color: var(--muted); }
.studio-count { flex: 1; min-width: 160px; color: #7d8ba0; font-size: 13px; }
.mine-field { display: flex; align-items: center; }
.drama-page .mine-field .layui-form-checkbox { margin-top: 0; }
.view-switch {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: #f3f6fb;
}
.view-switch button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #66758c;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.view-switch button.on {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 34, 64, .08);
}
.select-bar {
  position: sticky;
  top: 88px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px 10px 16px;
  border-radius: 12px;
  color: #fff;
  background: #101b33;
  box-shadow: 0 12px 28px rgba(12, 23, 48, .18);
}
.select-bar[hidden] { display: none !important; }
.select-bar strong { font-variant-numeric: tabular-nums; }
.select-bar .spacer { flex: 1; }
.select-bar .btn { height: 32px; border-radius: 8px; }
.select-bar .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}
.select-bar .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.select-bar .btn-ink { box-shadow: none; background: #fff; color: var(--danger); }
.select-bar .btn-ink:hover { background: #fff6f5; }
.tick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.tick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.tick > span {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.page-tick em { font-style: normal; font-size: 13px; font-weight: 600; color: #3c4d66; }
.tick-light > span { border: 1.5px solid #c5d0e0; background: #fff; }
.poster-card > .tick > span {
  border: 1.5px solid rgba(255, 255, 255, .92);
  background: rgba(12, 23, 48, .42);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}
.tick input:checked + span,
.tick input:indeterminate + span {
  background: #c6a15a;
  border-color: #c6a15a;
}
.tick input:checked + span::after {
  content: "";
  display: block;
  width: 8px;
  height: 5px;
  border-left: 2px solid #1a1408;
  border-bottom: 2px solid #1a1408;
  transform: rotate(-45deg) translate(1px, -1px);
}
.tick input:indeterminate + span::after {
  content: "";
  display: block;
  width: 8px;
  height: 2px;
  background: #1a1408;
}
.drama-page .btn, .drama-page .layui-input, .add-sheet .btn, .add-sheet .layui-input { box-sizing: border-box; }
.tick input:focus-visible + span { box-shadow: 0 0 0 3px rgba(198, 161, 90, .45); }
#dramaStage { min-height: 240px; }
#dramaStage.is-dim { opacity: .42; pointer-events: none; }
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 22px 16px;
}
.poster-card { min-width: 0; cursor: pointer; }
.poster-card { position: relative; }
.poster-card > .tick { position: absolute; top: 10px; left: 10px; z-index: 4; }
.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #172033;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
}
.poster-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.poster-card:hover .poster-frame img { transform: scale(1.045); }
.poster-card:hover .poster-frame { box-shadow: 0 18px 34px rgba(16, 24, 40, .18); }
.poster-card.is-on .poster-frame {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #c6a15a, 0 14px 30px rgba(16, 24, 40, .16);
}
.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(243, 226, 184, .92);
}
.poster-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 12, 24, .62));
}
.ep-chip, .src-pill {
  z-index: 3;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.ep-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  color: #f6ead0;
  background: rgba(10, 16, 32, .72);
  backdrop-filter: blur(8px);
}
.src-pill {
  display: inline-flex;
  padding: 3px 8px;
  color: #163056;
  background: #f2f5fa;
}
.src-pill.src-agent { color: #4a3814; background: rgba(243, 226, 184, .95); }
.src-pill.src-admin { color: #163056; background: rgba(255, 255, 255, .94); }
.poster-title {
  margin: 10px 2px 0;
  min-height: 2.7em;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.poster-acct, .list-acct {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.poster-acct { margin-top: 8px; }
.poster-acct strong, .list-acct b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.poster-acct strong { font-size: 12px; color: #243044; }
.poster-acct em, .list-acct i {
  display: block;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.poster-acct > div, .list-acct > div { min-width: 0; }
.avatar-sm, .list-acct img, .poster-acct img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-fallback {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #1a1408;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(145deg, #f3e2b8, #c6a15a);
}
.id-chip {
  width: 100%;
  margin-top: 8px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: #f4f7fb;
  color: #3d4e68;
  font: inherit;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}
.id-chip span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.id-chip svg { width: 13px; height: 13px; flex-shrink: 0; opacity: .7; }
.id-chip:hover { background: #eaf0f8; color: var(--ink); }
.id-chip.copied { background: #f3e8cf; color: #6d5424; }
.poster-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #8b97ab;
  font-size: 11px;
}
.poster-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quiet-del {
  border: 0;
  background: transparent;
  color: #8b97ab;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 2px 2px 6px;
  flex-shrink: 0;
}
.quiet-del:hover { color: var(--danger); }
.catalog-list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
}
.catalog-row {
  min-width: 920px;
  display: grid;
  grid-template-columns: 36px 48px minmax(200px, 1.7fr) 64px minmax(160px, 1.15fr) 64px 128px 52px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #eef2f7;
  cursor: pointer;
}
.catalog-row.head {
  border-top: 0;
  background: #f6f8fc;
  color: #66758c;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
}
.catalog-row:hover:not(.head) { background: #f8fafc; }
.catalog-row.is-on:not(.head) { background: #fbf8f1; }
.mini-poster {
  position: relative;
  width: 40px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #172033;
}
.mini-poster img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-poster .poster-fallback { font-size: 16px; }
.mini-poster .poster-shade { display: none; }
.list-title { min-width: 0; }
.list-title strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-title .id-chip { margin-top: 4px; }
.list-ep { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.list-acct b { font-size: 13px; color: var(--ink); }
.list-src .src-pill { position: static; }
.list-src .src-api { color: #3c4d66; background: #f2f5fa; }
.list-src .src-admin { color: #163056; background: #e7eef8; }
.list-src .src-agent { color: #6d5424; background: #f8f1e3; }
.list-time b { display: block; font-size: 12px; font-weight: 600; color: #243044; }
.list-time i { font-style: normal; font-size: 11px; color: var(--muted); }
.studio-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 14px;
}
.studio-pager[hidden] { display: none !important; }
.pager-meta { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pager-pages { display: flex; align-items: center; gap: 4px; }
.page-btn, .pager-size {
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #3c4d66;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}
.page-btn { min-width: 34px; padding: 0 10px; cursor: pointer; }
.page-btn:hover { background: #f4f7fb; }
.page-btn.on { background: var(--ink); color: #fff; }
.page-btn:disabled { opacity: .35; cursor: default; }
.page-btn:disabled:hover { background: transparent; }
.page-gap { color: #98a4b8; padding: 0 2px; }
.pager-size { border-color: #d9e2ef; padding: 0 8px; background: #fff; }
.empty-studio { padding: 72px 16px 64px; text-align: center; }
.empty-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6d5424;
  background: linear-gradient(145deg, #f8f1e3, #f3e2b8);
}
.empty-mark svg { width: 28px; height: 28px; }
.empty-studio strong { display: block; color: var(--ink); font-size: 18px; }
.empty-studio p {
  max-width: 380px;
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.empty-studio.is-error .empty-mark { color: var(--danger); background: #fff1f0; }
.skeleton {
  background: linear-gradient(100deg, #e8eef6 30%, #f8fafc 50%, #e8eef6 70%);
  background-size: 220% 100%;
  animation: studio-shimmer 1.15s ease-in-out infinite;
}
.sk-line { height: 12px; margin-top: 12px; border-radius: 6px; }
.sk-line.short { width: 62%; }
.is-skeleton { pointer-events: none; cursor: default; }
@keyframes studio-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.add-sheet { padding: 6px 22px 18px; }
.add-lead { margin: 0 0 16px; color: #66758c; font-size: 13px; line-height: 1.65; }
.add-field { display: block; margin-bottom: 14px; }
.add-field > span {
  display: block;
  margin-bottom: 6px;
  color: #3c4d66;
  font-size: 12px;
  font-weight: 600;
}
.add-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
  .poster-frame img, .skeleton, .drama-page .btn { transition: none; animation: none; }
}
@media (max-width: 1180px) {
  .studio-actions { margin-left: 0; }
  .catalog-row {
    min-width: 0;
    grid-template-columns: 28px 44px minmax(0, 1.5fr) 52px minmax(0, 1fr) 48px;
  }
  .catalog-row > .list-src,
  .catalog-row > .list-time { display: none; }
}
@media (max-width: 640px) {
  .studio-panel { padding: 16px 14px 12px; }
  .studio-field { flex-basis: 100%; }
  .studio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .poster-title { font-size: 13px; }
  .studio-stat strong { font-size: 22px; }
  .select-bar { top: 64px; flex-wrap: wrap; }
}

/* —— 网站设置 —— */
.settings-page { max-width: 880px; display: flex; flex-direction: column; gap: 16px; }
.settings-lead {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.settings-lead code {
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #f3f6fb;
  color: var(--ink-2);
}
.settings-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eef2f7;
}
.settings-card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.settings-card-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.settings-card-body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.settings-field { display: flex; flex-direction: column; gap: 6px; }
.settings-field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.settings-field em {
  font-style: normal;
  font-size: 12px;
  color: #8a97ab;
}
.settings-field .layui-input,
.settings-field select {
  height: 40px;
  line-height: 40px;
  border-radius: 10px;
  border: 1px solid #d5deec;
}
.settings-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.settings-field-span { grid-column: 1 / -1; }
.token-row { display: flex; gap: 8px; align-items: center; }
.token-row .layui-input { flex: 1; }
.token-row .btn { height: 40px; min-width: 72px; flex-shrink: 0; }
.settings-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.settings-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f6fb;
  color: var(--muted);
}
.settings-badge.ok { background: #e8f7f1; color: var(--ok); }
.settings-badge.gold { background: #f8f1df; color: #8a6a2a; }
.settings-badge.off { background: #f4f6f9; color: #8a97ab; }
.settings-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}
.settings-switch-row strong { display: block; font-size: 14px; color: var(--ink); }
.settings-switch-row p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-actions .btn,
.settings-save-bar .btn,
.settings-page .btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.settings-foot-tip {
  margin: 0;
  padding: 0 20px 16px;
  font-size: 12px;
  color: var(--muted);
}
.settings-foot-tip code {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 5px;
  background: #f3f6fb;
}
.settings-out {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0c1730;
  color: #e7d3a1;
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
  max-height: 220px;
}
.settings-save-bar {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0 8px;
}
.settings-save-bar .btn-gold { min-width: 120px; }
@media (max-width: 720px) {
  .settings-grid-2,
  .settings-grid-3 { grid-template-columns: 1fr; }
}
