/* 逆牒 · Gaycest 档案室 — 旧信笺视觉
   暖纸米底(非纯白, OLED友好) + 墨黑字 + 赭红火漆主色 + 淡墨线
   System fonts only, 0 external requests */
:root {
  --bg: #F3EADC;          /* 暖纸米底 */
  --bg2: #F7F1E4;         /* 略浅的信纸 */
  --paper: #FAF5EA;       /* 卡片纸面 */
  --ink: #2B2620;         /* 墨黑主字 */
  --ink-dim: #5C5244;     /* 淡墨 */
  --ink-faint: #8A7C66;   /* 灰墨 */
  --line: #C9B99B;        /* 淡墨线 */
  --line-strong: #AFA086;
  --seal: #A63A28;        /* 赭红火漆 YES */
  --seal-dim: #7E2C1E;
  --amber: #D8901F;       /* 琥珀 存疑 */
  --grey: #8A8580;        /* 钢灰 NO */
  --serif: Georgia, "Times New Roman", "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
  background-image:
    radial-gradient(1000px 420px at 85% -8%, rgba(166,58,40,0.06), transparent 60%),
    radial-gradient(700px 500px at -8% 108%, rgba(201,185,155,0.35), transparent 55%);
}
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }

/* ── 登录门 ───────────────────── */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(700px 500px at 50% 30%, #F8F1E3, var(--bg) 72%);
}
.gate-inner { text-align: center; padding: 40px 32px; width: min(92vw, 360px); }
.gate-seal { width: 88px; height: 88px; margin: 0 auto 18px; color: var(--seal); opacity: 0.85; }
.gate-title {
  font-family: var(--serif); font-size: 34px; font-weight: 700;
  letter-spacing: 0.42em; text-indent: 0.42em; color: var(--ink);
}
.gate-sub { color: var(--ink-dim); font-size: 14px; letter-spacing: 0.14em; margin: 8px 0 30px; }
.gate-input {
  width: 100%; padding: 14px 16px; font-size: 17px; letter-spacing: 0.3em; text-align: center;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--ink); outline: none;
}
.gate-input:focus { border-color: var(--seal); box-shadow: 0 0 0 2px rgba(166,58,40,0.14); }
.gate-btn {
  width: 100%; margin-top: 16px; padding: 13px; font-size: 16px; letter-spacing: 0.5em;
  background: linear-gradient(180deg, #b5472f, var(--seal)); border: none; border-radius: 8px;
  color: #FBEFE4; font-weight: 700;
  box-shadow: 0 3px 0 var(--seal-dim);
}
.gate-btn:active { transform: translateY(2px); box-shadow: none; }
.gate-err { color: var(--seal); font-size: 14px; margin-top: 14px; min-height: 20px; }

/* ── 顶栏 ─────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243,234,220,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 10px;
}
.topbar-main { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.brand-wrap { display: flex; align-items: baseline; gap: 10px; }
.brand {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  letter-spacing: 0.3em; color: var(--ink);
}
.brand-mark { color: var(--seal); font-size: 13px; letter-spacing: 0.08em; margin-left: 2px; }
.brand-sub { color: var(--ink-faint); font-size: 12px; text-decoration: none; border-bottom: 1px dashed var(--ink-faint); }
.brand-sub:hover { color: var(--seal); border-color: var(--seal); }
.top-actions { display: flex; gap: 8px; position: relative; align-items: center; }
.icon-btn {
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink-dim); width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  position: relative; font-family: var(--sans); font-size: 15px;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { background: rgba(166,58,40,0.08); }
.font-ctrl { display: flex; gap: 6px; }
.btn-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--seal); color: #fff; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; font-family: var(--mono);
}

/* ── 页签 ─────────────────────── */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tab {
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--ink-dim); font-size: 15px; padding: 4px 14px 6px; font-family: var(--serif);
  letter-spacing: 0.2em;
}
.tab.active { color: var(--seal); border-bottom-color: var(--seal); font-weight: 700; }

/* ── 筛选 ─────────────────────── */
.filter-wrap { display: flex; flex-direction: column; gap: 8px; }
.filter-group { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.filter-label {
  font-size: 12px; color: var(--ink-faint); letter-spacing: 0.2em;
  flex-shrink: 0; width: 34px; line-height: 26px;
}
.f-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.f-chips.scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; padding-bottom: 2px; }
.chip {
  background: transparent; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink-dim); font-size: 13px; padding: 3px 12px; line-height: 1.7;
  white-space: nowrap;
}
.chip.active { background: rgba(166,58,40,0.10); border-color: var(--seal); color: var(--seal); }
.chip-cnt { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); margin-left: 3px; }
.chip.active .chip-cnt { color: var(--seal); }
.filter-row2 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 180px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 12px;
}
.search-ic { width: 15px; height: 15px; color: var(--ink-faint); }
.search input {
  background: none; border: none; outline: none; color: var(--ink);
  font-size: 15px; width: 100%;
}
.search input::placeholder { color: var(--ink-faint); }
.actor-select {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font-size: 14px; padding: 7px 8px; max-width: 150px;
}

/* ── 档案画廊 ─────────────────── */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; padding: 14px 16px 80px;
}
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding: 20px 24px 100px; } }

.fcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; position: relative;
  box-shadow: 0 1px 0 rgba(43,38,32,0.04);
}
.fcard:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 4px 12px rgba(43,38,32,0.08); }
.fcard-imgwrap { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #E7DAC2; }
.fcard-imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.fcard-imgwrap .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(43,38,32,0.55));
}
.fcard-series {
  position: absolute; top: 6px; left: 8px;
  font-family: var(--sans); font-size: 10.5px; color: rgba(251,240,228,0.95);
  background: rgba(43,38,32,0.55); padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.04em; max-width: 72%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fcard-stamp {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--serif); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  border-radius: 4px; padding: 2px 8px; box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.stamp-YES { background: var(--seal); color: #fff; border: 1px solid var(--seal-dim); }
.stamp-NO { background: var(--grey); color: #F2EDE4; border: 1px solid #6f6a65; }
.stamp-UNCLEAR { background: var(--amber); color: #3A2C0A; border: 1px solid #a86a10; }
.stamp-UNJUDGED {
  background: rgba(243,234,220,0.92); color: var(--ink-faint);
  border: 1px dashed var(--ink-faint);
}
.fcard-body { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fcard-title { font-size: 14px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fcard-title-en { font-size: 11px; color: var(--ink-faint); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fcard-rel {
  font-family: var(--serif); font-size: 12.5px; color: var(--seal);
  margin-top: 3px; line-height: 1.4;
}
.fcard-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.fcard-year { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.fcard-year.pending { color: var(--ink-faint); }
.fcard-conf { font-size: 10px; color: var(--ink-faint); }

.status { text-align: center; color: var(--ink-faint); padding: 24px; font-size: 14px; }

/* ── 系列视图 ─────────────────── */
.series { padding: 0 16px 90px; }
.series-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; padding-top: 12px;
}
@media (min-width: 900px) { .series-list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } }
.series-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.15s;
  display: flex; flex-direction: column;
}
.series-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.series-cover { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #E7DAC2; }
.series-cover img { width: 100%; height: 100%; object-fit: cover; }
.series-cover .veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(43,38,32,0.5)); }
.series-name {
  position: absolute; left: 8px; bottom: 6px; right: 8px;
  font-family: var(--serif); font-size: 13px; color: #FBF0E4; font-weight: 700;
  text-shadow: 0 1px 3px rgba(43,38,32,0.6);
}
.series-body { padding: 8px 10px 10px; }
.series-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-dim); font-family: var(--mono); }
.series-meta .yes { color: var(--seal); }

/* ── 提审视图 ─────────────────── */
.review { padding: 0 16px 90px; }
.rv-head { display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.rv-title { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 0.12em; }
.rv-count { font-family: var(--mono); font-size: 13px; color: var(--seal); }
.rv-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; margin-bottom: 12px;
}
.rv-headline { display: flex; gap: 12px; }
.rv-thumb { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #E7DAC2; }
.rv-title2 { font-size: 16px; line-height: 1.4; margin-bottom: 2px; }
.rv-title2-en { font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; }
.rv-rel { font-family: var(--serif); font-size: 13px; color: var(--seal); margin-bottom: 6px; }
.rv-desc {
  font-size: 13px; color: var(--ink-dim); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.rv-actions { display: flex; gap: 8px; }
.rv-btn {
  flex: 1; padding: 10px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600;
}
.rv-btn.yes { border-color: var(--seal); color: var(--seal); }
.rv-btn.yes:active { background: rgba(166,58,40,0.14); }
.rv-btn.no { border-color: var(--grey); color: var(--ink-dim); }
.rv-btn.no:active { background: rgba(138,133,128,0.16); }
.rv-btn.skp { border-color: var(--amber); color: var(--amber); }
.rv-btn.undo { flex: 0; border-color: var(--line); color: var(--ink-faint); font-size: 13px; font-weight: 400; padding: 10px 12px; }
.rv-btn:disabled { opacity: 0.4; cursor: default; }
.rv-empty { text-align: center; color: var(--ink-faint); padding: 50px 0; font-size: 15px; }

/* ── 详情弹层 ─────────────────── */
.detail { position: fixed; inset: 0; z-index: 90; }
.detail-scrim { position: absolute; inset: 0; background: rgba(43,38,32,0.55); }
.detail-panel {
  position: absolute; inset: 0;
  background: var(--bg2);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 820px) {
  .detail-panel { inset: 24px auto 24px 50%; transform: translateX(-50%); width: min(760px, 96vw); border-radius: 14px; border: 1px solid var(--line-strong); }
}
.detail-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: rgba(247,241,228,0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.d-no { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); letter-spacing: 0.1em; }
.d-hero { position: relative; }
.d-hero img { width: 100%; max-height: 62vh; object-fit: cover; background: #E7DAC2; }
.d-hero-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,241,228,0.05) 30%, rgba(43,38,32,0.9) 100%); }
.d-hero-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 18px; }
.d-title { font-family: var(--serif); font-size: 23px; line-height: 1.35; font-weight: 700; letter-spacing: 0.03em; color: #FBF0E4; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.d-title-en { font-size: 13px; color: #E9DDC8; margin-top: 3px; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.d-relation { margin-top: 8px; font-family: var(--serif); font-size: 17px; color: #F3C9A2; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.d-seal {
  position: absolute; top: 12px; right: 12px;
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--serif); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.d-seal.seal-YES { background: radial-gradient(circle at 35% 30%, #c25740, var(--seal) 65%, var(--seal-dim)); color: #FBEFE4; border: 2px solid rgba(251,239,228,0.7); }
.d-seal.seal-UNCLEAR { background: radial-gradient(circle at 35% 30%, #e7ab46, var(--amber) 65%, #a86a10); color: #3A2C0A; border: 2px solid rgba(255,243,214,0.7); }
.d-seal.seal-NO { background: radial-gradient(circle at 35% 30%, #a09a95, var(--grey) 65%, #6f6a65); color: #F2EDE4; border: 2px solid rgba(242,237,228,0.7); }
.d-seal.seal-UNJUDGED { background: rgba(250,245,234,0.92); color: var(--ink-faint); border: 2px dashed var(--ink-faint); }
.d-meta { padding: 16px 18px 60px; }
.d-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  font-size: 11px; padding: 3px 9px; border-radius: 12px; border: 1px solid var(--line-strong);
  color: var(--ink-dim); letter-spacing: 0.05em;
}
.badge.seal-yes { border-color: var(--seal); color: var(--seal); }
.badge.seal-no { border-color: var(--grey); color: var(--ink-faint); }
.badge.seal-pending { border-color: var(--amber); color: var(--amber); }
.d-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.d-tag {
  font-size: 11px; padding: 2px 10px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-dim);
}
.d-photos { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-bottom: 6px; }
.d-photo {
  width: 84px; height: 112px; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line); flex-shrink: 0; cursor: pointer; background: #E7DAC2;
}
.d-photo.active { border-color: var(--seal); box-shadow: 0 0 0 2px rgba(166,58,40,0.25); }
.d-cols { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 720px) { .d-cols { flex-direction: row; } .d-col-main { flex: 1.3; } .d-col-side { flex: 1; } }
.d-sec {
  font-family: var(--serif); font-size: 14px; color: var(--seal); letter-spacing: 0.2em;
  margin: 6px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line);
}
.d-desc-zh { font-size: 15px; line-height: 2; color: var(--ink); white-space: pre-line; }
.d-en-wrap { margin-top: 10px; }
.d-en-wrap summary { font-size: 12px; color: var(--ink-faint); cursor: pointer; letter-spacing: 0.1em; }
.d-desc-en { font-size: 13px; color: var(--ink-dim); line-height: 1.7; white-space: pre-line; margin-top: 6px; }
.d-actors { display: flex; flex-direction: column; gap: 8px; }
.d-actor {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; cursor: pointer;
}
.d-actor:hover { border-color: var(--line-strong); }
.d-actor-badge {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EFE3CB, #DBc9A8);
  border: 1px solid var(--line-strong); font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--seal);
}
.d-actor-main { flex: 1; min-width: 0; }
.d-actor-name { font-size: 15px; font-weight: 600; }
.d-actor-real { font-size: 11px; color: var(--ink-faint); }
.d-actor-role {
  font-size: 12px; color: var(--seal); font-family: var(--serif); flex-shrink: 0;
  border: 1px solid rgba(166,58,40,0.4); border-radius: 10px; padding: 1px 8px;
}
.d-evidence { display: flex; flex-direction: column; gap: 6px; }
.d-ev {
  border-left: 2px solid var(--seal-dim); padding: 4px 0 4px 10px;
  font-size: 12.5px; color: var(--ink-dim); line-height: 1.7;
}
.d-ev .src { display: block; font-size: 11px; color: var(--ink-faint); margin-top: 2px; font-family: var(--mono); }
.d-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.d-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--seal); text-decoration: none;
  border: 1px solid rgba(166,58,40,0.4); border-radius: 6px; padding: 6px 10px;
}
.d-link:hover { background: rgba(166,58,40,0.08); }
.d-link svg { width: 13px; height: 13px; }

/* ── 图集大图浮层 ─────────────────-- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(28,24,18,0.95); }
.lb-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
}
.lb-idx { font-family: var(--mono); font-size: 13px; color: #EDE3D0; }
.lb-head .icon-btn { color: #EDE3D0; border-color: rgba(237,227,208,0.3); }
.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; }
.lb-stage img {
  width: 100%; height: 100%; object-fit: contain; user-select: none;
  -webkit-user-drag: none; touch-action: pan-y;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(237,227,208,0.35);
  color: #EDE3D0; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-nav:active { background: rgba(255,255,255,0.25); }
@media (max-width: 480px) {
  .lb-nav { width: 40px; height: 40px; font-size: 22px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}

/* ── 演员详情 ─────────────────── */
.a-hero { display: flex; gap: 16px; padding: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.a-avatar-wrap { flex-shrink: 0; }
.a-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-strong); background: #E7DAC2; }
.a-avatar-fallback {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EFE3CB, #DBC9A8);
  border: 2px solid var(--line-strong);
  font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--seal);
}
.a-hero-txt { min-width: 0; }
.a-stats { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.a-stat { font-family: var(--mono); font-size: 13px; color: var(--ink-dim); }
.a-stat b { color: var(--seal); font-weight: 600; }
.a-films { display: flex; flex-direction: column; gap: 8px; }
.a-film {
  display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 8px;
  background: var(--paper); border: 1px solid var(--line); cursor: pointer;
}
.a-film:hover { border-color: var(--line-strong); }
.a-film img { width: 40px; height: 54px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.a-film-main { flex: 1; min-width: 0; }
.a-film-title { font-size: 13.5px; line-height: 1.4; }
.a-film-sub { font-size: 11.5px; color: var(--ink-faint); }
.a-film-rel { font-size: 12px; color: var(--seal); }
.a-film-verdict { font-size: 10px; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.a-info { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-dim); }
.a-info .kv { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.a-info .kv b { color: var(--ink); font-weight: 500; }
.a-costars { display: flex; flex-direction: column; gap: 6px; }
.a-costar {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; cursor: pointer;
  background: var(--paper); border: 1px solid transparent;
}
.a-costar:hover { border-color: var(--line-strong); }
.a-costar-badge {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EFE3CB, #DBC9A8);
  border: 1px solid var(--line-strong); font-size: 11px; font-weight: 700; color: var(--seal); font-family: var(--serif);
}
.a-costar-name { font-size: 13px; flex: 1; }
.a-costar-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.cnt-inline { color: var(--seal); font-family: var(--mono); font-size: 13px; }

/* ── 掌牒修正 & 历史 ───────────────── */
.d-edit { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ed-label { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.1em; }
.ed-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-row2 { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ed-btn {
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-dim);
  border-radius: 14px; padding: 3px 11px; font-size: 12px; cursor: pointer; line-height: 1.7;
}
.ed-btn.on { background: rgba(166,58,40,0.12); border-color: var(--seal); color: var(--seal); }
.ed-btn[data-v="YES"] { border-color: rgba(166,58,40,0.55); }
.ed-btn[data-v="YES"].on { background: var(--seal); border-color: var(--seal-dim); color: #FBEFE4; }
.ed-btn[data-v="NO"] { border-color: rgba(138,133,128,0.6); }
.ed-btn[data-v="NO"].on { background: var(--grey); border-color: #6f6a65; color: #F2EDE4; }
.ed-btn[data-v="UNCLEAR"] { border-color: rgba(216,144,31,0.6); }
.ed-btn[data-v="UNCLEAR"].on { background: var(--amber); border-color: #a86a10; color: #3A2C0A; }
.ed-btn.primary { background: rgba(166,58,40,0.14); border-color: var(--seal); color: var(--seal); font-weight: 600; }
.ed-btn.ghost { border-color: var(--line); }
.ed-fields { display: flex; flex-direction: column; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.ed-fields select, .ed-fields input {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px;
  color: var(--ink); padding: 6px 8px; font-size: 13px; min-width: 0; flex: 1;
}
.ed-fields select { max-width: 130px; }
.ed-fields input[type="text"] { width: 100%; }
.d-history { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.d-log { font-size: 11px; line-height: 1.6; color: var(--ink-dim); border-left: 2px solid var(--line-strong); padding-left: 7px; }
.d-log b { color: var(--seal); font-weight: 600; }
.log-old { color: var(--ink-faint); text-decoration: line-through; }
.log-new { color: #3E7C4F; }
.log-note { color: var(--ink-faint); font-style: italic; margin-left: 4px; }
.log-time { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-faint); opacity: 0.7; }

/* ── 加载更多 ─────────────────── */
.load-more-wrap { display: flex; justify-content: center; padding: 14px 0 30px; }
.load-more {
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink-dim);
  padding: 10px 28px; border-radius: 20px; font-size: 14px; cursor: pointer;
}
.load-more:hover { border-color: var(--seal); color: var(--seal); }

/* ── toast ────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); border: 1px solid rgba(243,234,220,0.3);
  padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 300;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}