/* ═══════════════════════════════════════════════════════════
   CINEMA · 黑白编辑拼贴风（章节任务 / 手帐 zine 质感）
   与杂志风白底刊面截然不同：黑底、纸感、层叠、大数字
   ═══════════════════════════════════════════════════════════ */

.miya-chat-app.theme-cinema {
  --cin-bg: #060606;
  --cin-paper: #ece8df;
  --cin-paper-warm: #f3efe6;
  --cin-paper-dim: #d8d3c8;
  --cin-ink: #f2efe8;
  --cin-ink-soft: rgba(242, 239, 232, 0.62);
  --cin-ink-muted: rgba(242, 239, 232, 0.32);
  --cin-ink-faint: rgba(242, 239, 232, 0.14);
  --cin-line: rgba(255, 255, 255, 0.1);
  --cin-line-strong: rgba(255, 255, 255, 0.22);
  --cin-font-display: 'Cormorant Garamond', 'Noto Serif SC', serif;
  --cin-font-serif: 'Noto Serif SC', serif;
  --cin-font-tech: 'Inter', 'Noto Sans SC', sans-serif;
  --cin-font-mono: 'SF Mono', 'Menlo', monospace;
  --cin-tabbar-h: 76px;
  --cin-transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--cin-bg) !important;
}

/* Tab 壳层专用变量：不向下污染单聊 / 设置页 */
.theme-cinema .qq-pages,
.theme-cinema .cin-veil,
.theme-cinema .cin-tab-bar {
  --mc-bg: var(--cin-bg);
  --mc-bg-warm: var(--cin-bg);
  --mc-surface: #111111;
  --mc-ink: var(--cin-ink);
  --mc-ink-dim: var(--cin-ink-soft);
  --mc-ink-faint: var(--cin-ink-muted);
  --mc-line: var(--cin-line);
  --mc-line-strong: var(--cin-line-strong);
  color: var(--cin-ink);
  font-family: var(--cin-font-serif);
}

.miya-chat-app.cin-ui-enter {
  animation: cinReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.miya-chat-app.mag-ui-enter {
  animation: magPageTurn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes cinReveal {
  0% { opacity: 0; filter: contrast(1.2); }
  100% { opacity: 1; filter: contrast(1); }
}
@keyframes magPageTurn {
  0% { filter: brightness(1.3) saturate(0.6); }
  100% { filter: brightness(1) saturate(1); }
}

/* ── 装饰层：网格 / 大数字 / 扫描线 ── */
.theme-cinema .mc-veil { display: none !important; }
.theme-magazine .cin-veil,
.theme-noir .cin-veil { display: none !important; }

.theme-cinema .cin-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.theme-cinema .cin-veil__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 70%);
}
.theme-cinema .cin-veil__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.theme-cinema .cin-veil__ghost {
  position: absolute;
  font-family: var(--cin-font-display);
  font-weight: 300;
  line-height: 0.85;
  color: var(--cin-ink-faint);
  pointer-events: none;
  user-select: none;
}
.theme-cinema .cin-veil__ghost--a {
  top: 12%;
  right: -8%;
  font-size: clamp(140px, 42vw, 220px);
  letter-spacing: -0.04em;
}
.theme-cinema .cin-veil__ghost--b {
  bottom: 18%;
  left: -12%;
  font-size: clamp(100px, 32vw, 160px);
  opacity: 0.6;
}
.theme-cinema .cin-veil__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  opacity: 0.5;
}

/* ── 全局 ── */
.theme-cinema,
.theme-cinema .qq-pages,
.theme-cinema .qq-page,
.theme-cinema .qq-page__scroll,
.theme-cinema .qq-page--msg,
.theme-cinema .qq-page--feed,
.theme-cinema .qq-page--contacts,
.theme-cinema .qq-page--mine {
  background: var(--cin-bg) !important;
}
.theme-cinema .qq-chat-swipe__main { background: transparent !important; }
.theme-cinema .qq-page {
  transition: opacity var(--cin-transition), transform var(--cin-transition);
}
.theme-cinema .qq-page:not(.is-active) {
  opacity: 0;
  transform: translateY(8px);
}
.theme-cinema .qq-page.is-active {
  opacity: 1;
  transform: none;
}

.qq-topbar__btn--ui-switch { display: none; }
.qq-page--msg.is-active .qq-topbar__btn--ui-switch { display: flex; }

.theme-cinema .noir-header-area,
.theme-cinema .noir-chat-search,
.theme-cinema .noir-moments-header,
.theme-cinema .noir-stories-row,
.theme-cinema .noir-moments-grid,
.theme-cinema #qq-group-list,
.theme-cinema .noir-me-header,
.theme-cinema .noir-deco-line,
.theme-cinema .noir-me-stats,
.theme-cinema #qq-mine-menu,
.theme-cinema .noir-me-footer,
.theme-cinema .noir-contacts-alpha,
.theme-cinema .noir-tab-bar { display: none !important; }

.theme-magazine .cin-feed-stage,
.theme-noir .cin-feed-stage,
.theme-magazine .cin-cast-stage,
.theme-noir .cin-cast-stage,
.theme-magazine .cin-director-stage,
.theme-noir .cin-director-stage { display: none !important; }

.qq-topbar__btn--ui-switch {
  position: absolute;
  top: calc(12px + var(--mc-safe-t));
  right: 28px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 5;
  -webkit-appearance: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.qq-topbar__btn--ui-switch svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.qq-topbar__btn--ui-switch .ui-switch-icon--mag { display: none; }
.qq-topbar__btn--ui-switch.is-cinema-active .ui-switch-icon--cin { display: none; }
.qq-topbar__btn--ui-switch.is-cinema-active .ui-switch-icon--mag { display: block; }
.theme-noir .qq-topbar__btn--ui-switch,
.theme-magazine .qq-topbar__btn--ui-switch {
  border: 1px solid var(--noir-border-light);
  border-radius: 50%;
  background: var(--noir-bg-card);
  color: var(--noir-text-secondary);
}
.theme-noir .qq-topbar__btn--ui-switch:hover,
.theme-magazine .qq-topbar__btn--ui-switch:hover {
  border-color: var(--noir-border-medium);
  color: var(--noir-text-primary);
  box-shadow: var(--noir-shadow-lift);
}
.theme-cinema .qq-topbar__btn--ui-switch {
  border: 1px solid var(--cin-line-strong);
  border-radius: 0;
  background: rgba(255,255,255,0.04);
  color: var(--cin-ink-soft);
}
.theme-cinema .qq-topbar__btn--ui-switch:hover {
  background: var(--cin-paper);
  color: #111;
}

/* ═══════════════════════════════════════════════════════════
   ① 对话 · 章节横向选场
   ═══════════════════════════════════════════════════════════ */
.theme-cinema .qq-page--msg {
  display: flex;
  flex-direction: column;
}

.theme-cinema .cin-msg-header {
  padding: calc(42px + var(--mc-safe-t)) 20px 10px;
  position: relative;
  flex-shrink: 0;
  z-index: 3;
}
.theme-cinema .cin-inbox-back {
  position: absolute;
  top: calc(10px + var(--mc-safe-t));
  left: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cin-line-strong);
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--cin-ink-soft);
  -webkit-appearance: none;
}
.theme-cinema .cin-inbox-back svg { width: 16px; height: 16px; }

.theme-cinema .cin-msg-header__layer {
  position: relative;
  min-height: 48px;
  padding-left: 4px;
}
.theme-cinema .cin-msg-header__ghost {
  position: absolute;
  top: -18px;
  right: 0;
  font-family: var(--cin-font-display);
  font-size: clamp(72px, 22vw, 108px);
  font-weight: 300;
  line-height: 1;
  color: var(--cin-ink-faint);
  pointer-events: none;
}
.theme-cinema .cin-msg-header__copy {
  position: relative;
  z-index: 1;
}
.theme-cinema .cin-msg-header__title {
  font-family: var(--cin-font-display);
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--cin-ink);
  margin: 0;
  line-height: 1.05;
}

.theme-cinema .cin-chat-search {
  margin: 0 20px 8px;
  position: relative;
  flex-shrink: 0;
  z-index: 3;
}
.theme-cinema .cin-chat-search input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: none;
  border-bottom: 1px solid var(--cin-line-strong);
  border-radius: 0;
  padding: 10px 0 10px 28px;
  font-family: var(--cin-font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cin-ink);
  outline: none;
  -webkit-appearance: none;
}
.theme-cinema .cin-chat-search input::placeholder { color: var(--cin-ink-muted); }
.theme-cinema .cin-chat-search input:focus { border-bottom-color: var(--cin-paper); }
.theme-cinema .cin-chat-search::before {
  content: '⌕';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--cin-ink-muted);
  pointer-events: none;
}

.theme-cinema .qq-page__scroll--msg {
  padding: 0 0 calc(12px + var(--cin-tabbar-h) + var(--mc-safe-b));
  flex: 1;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.theme-cinema .mc-ed-index { display: none !important; }

/* 横向章节轨道 */
.theme-cinema .qq-chat-list {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 24px 28px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
}
.theme-cinema .qq-chat-list::-webkit-scrollbar { display: none; }
.theme-cinema .qq-chat-list > .qq-chat-swipe,
.theme-cinema .qq-chat-list > .qq-chat-item {
  flex: 0 0 78%;
  max-width: 300px;
  scroll-snap-align: center;
}
.theme-cinema .qq-chat-list > .qq-chat-swipe .qq-chat-swipe__actions { display: none; }
.theme-cinema .qq-chat-list > .qq-chat-swipe .qq-chat-swipe__main { transform: none !important; }

.theme-cinema .qq-chat-item {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
}

/* 章节卡片 */
.theme-cinema .cin-scene {
  position: relative;
  height: 100%;
  transition: transform var(--cin-transition), opacity var(--cin-transition);
  transform: scale(0.94);
  opacity: 0.42;
}
.theme-cinema .cin-scene.is-focus {
  transform: scale(1);
  opacity: 1;
}
.theme-cinema .cin-scene__ghost {
  position: absolute;
  top: -28px;
  left: -8px;
  font-family: var(--cin-font-display);
  font-size: clamp(88px, 26vw, 120px);
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  z-index: 0;
}
.theme-cinema .cin-scene__paper {
  position: relative;
  z-index: 1;
  background: var(--cin-paper);
  color: #141414;
  padding: 14px 14px 12px 22px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 18px 40px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.65);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.theme-cinema .cin-scene__ruler {
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  background: repeating-linear-gradient(
    180deg,
    #111 0, #111 1px,
    transparent 1px, transparent 6px
  );
  opacity: 0.15;
}
.theme-cinema .cin-scene__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.theme-cinema .cin-scene__label {
  font-family: var(--cin-font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  color: rgba(20,20,20,0.45);
}
.theme-cinema .cin-scene__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #111;
  color: var(--cin-paper);
  font-family: var(--cin-font-mono);
  font-size: 0.52rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-cinema .cin-scene__stage {
  position: relative;
  flex: 1;
  min-height: 168px;
  margin-bottom: 12px;
  overflow: hidden;
}
.theme-cinema .cin-scene__ava {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}
.theme-cinema .cin-scene__title-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(0deg, rgba(236,232,223,0.96) 0%, transparent 100%);
}
.theme-cinema .cin-scene__title {
  font-family: var(--cin-font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #111;
  margin: 0;
  line-height: 1.2;
}
.theme-cinema .cin-scene__pin {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--cin-font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  color: rgba(20,20,20,0.5);
  vertical-align: middle;
}
.theme-cinema .cin-scene__preview {
  font-family: var(--cin-font-serif);
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(20,20,20,0.62);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.theme-cinema .cin-scene__foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(20,20,20,0.12);
}
.theme-cinema .cin-scene__status {
  font-family: var(--cin-font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(20,20,20,0.45);
}
.theme-cinema .cin-scene__time {
  font-family: var(--cin-font-mono);
  font-size: 0.52rem;
  color: rgba(20,20,20,0.35);
}
.theme-cinema .cin-scene__goto {
  font-family: var(--cin-font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  padding: 6px 12px;
  background: #111;
  color: var(--cin-paper);
}
.theme-cinema .cin-scene__idx {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--cin-font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(20,20,20,0.25);
}

.theme-cinema .qq-chat-empty {
  width: 100%;
  text-align: center;
  padding: 56px 28px;
  font-family: var(--cin-font-serif);
  font-size: 0.85rem;
  color: var(--cin-ink-muted);
}
.theme-cinema .qq-chat-empty span {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════════════════
   ② 动态 · 手帐排片
   ═══════════════════════════════════════════════════════════ */
.theme-cinema .cin-feed-stage {
  padding: calc(36px + var(--mc-safe-t)) 0 calc(20px + var(--cin-tabbar-h) + var(--mc-safe-b));
  position: relative;
  z-index: 3;
}
.theme-cinema .cin-feed-header {
  position: relative;
  padding: 0 20px 18px;
  min-height: 72px;
}
.theme-cinema .cin-feed-header__ghost {
  position: absolute;
  top: -20px;
  right: 12px;
  font-family: var(--cin-font-display);
  font-size: clamp(64px, 20vw, 96px);
  color: var(--cin-ink-faint);
  line-height: 1;
}
.theme-cinema .cin-feed-header__label {
  display: block;
  font-family: var(--cin-font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cin-ink-muted);
  margin-bottom: 4px;
}
.theme-cinema .cin-feed-header__title {
  font-family: var(--cin-font-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--cin-ink);
  margin: 0;
  line-height: 1;
}
.theme-cinema .cin-feed-header__date {
  font-family: var(--cin-font-tech);
  font-size: 0.68rem;
  color: var(--cin-ink-muted);
  margin-top: 6px;
}

.theme-cinema .cin-stories {
  display: flex;
  gap: 10px;
  padding: 0 20px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.theme-cinema .cin-stories::-webkit-scrollbar { display: none; }
.theme-cinema .cin-story {
  flex-shrink: 0;
  width: 58px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-appearance: none;
}
.theme-cinema .cin-story__ring {
  width: 54px;
  height: 54px;
  border: 1px solid var(--cin-line-strong);
  padding: 2px;
  overflow: hidden;
}
.theme-cinema .cin-story__ring::before { display: none; }
.theme-cinema .cin-story__ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-cinema .cin-story__name {
  font-family: var(--cin-font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.06em;
  color: var(--cin-ink-muted);
  text-align: center;
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-cinema .cin-poster-rail-wrap {
  overflow: hidden;
}
.theme-cinema .cin-poster-rail {
  display: flex;
  gap: 14px;
  padding: 0 20px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.theme-cinema .cin-poster-rail::-webkit-scrollbar { display: none; }

.theme-cinema .cin-sheet {
  flex: 0 0 68%;
  max-width: 240px;
  scroll-snap-align: start;
  position: relative;
}
.theme-cinema .cin-sheet__ghost {
  position: absolute;
  top: -16px;
  left: -4px;
  font-family: var(--cin-font-display);
  font-size: 3.2rem;
  color: var(--cin-ink-faint);
  z-index: 0;
}
.theme-cinema .cin-sheet__paper {
  position: relative;
  z-index: 1;
  background: var(--cin-paper-warm);
  color: #141414;
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
  transform: rotate(-0.6deg);
}
.theme-cinema .cin-sheet:nth-child(even) .cin-sheet__paper { transform: rotate(0.8deg); }
.theme-cinema .cin-sheet__tag {
  display: inline-block;
  font-family: var(--cin-font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  padding: 2px 6px;
  background: #111;
  color: var(--cin-paper);
  margin-bottom: 8px;
}
.theme-cinema .cin-sheet__tag--dim {
  background: transparent;
  border: 1px solid rgba(20,20,20,0.25);
  color: rgba(20,20,20,0.45);
}
.theme-cinema .cin-sheet__visual {
  aspect-ratio: 4 / 5;
  background: #ddd8cf;
  margin-bottom: 10px;
  overflow: hidden;
}
.theme-cinema .cin-sheet__placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cin-font-serif);
  font-size: 0.78rem;
  color: rgba(20,20,20,0.45);
  text-align: center;
  padding: 12px;
}
.theme-cinema .cin-sheet__title {
  font-family: var(--cin-font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.theme-cinema .cin-sheet__meta {
  font-family: var(--cin-font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(20,20,20,0.42);
}

/* ═══════════════════════════════════════════════════════════
   ③ 演员 · 拼贴卡司（不展示人设）
   ═══════════════════════════════════════════════════════════ */
.theme-cinema .cin-cast-stage {
  padding: calc(36px + var(--mc-safe-t)) 0 calc(20px + var(--cin-tabbar-h) + var(--mc-safe-b));
  position: relative;
  z-index: 3;
}
.theme-cinema .cin-cast-header {
  position: relative;
  padding: 0 20px 16px;
}
.theme-cinema .cin-cast-header__ghost {
  position: absolute;
  top: -22px;
  right: 8px;
  font-family: var(--cin-font-display);
  font-size: clamp(64px, 20vw, 96px);
  color: var(--cin-ink-faint);
  line-height: 1;
}
.theme-cinema .cin-cast-header__label {
  display: block;
  font-family: var(--cin-font-tech);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cin-ink-muted);
  margin-bottom: 4px;
}
.theme-cinema .cin-cast-header__title {
  font-family: var(--cin-font-display);
  font-size: 2rem;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--cin-ink);
  margin: 0;
  line-height: 1;
}
.theme-cinema .cin-cast-header__sub {
  font-family: var(--cin-font-tech);
  font-size: 0.68rem;
  color: var(--cin-ink-muted);
  margin-top: 6px;
}
.theme-cinema .cin-cast-alpha { display: none !important; }

.theme-cinema .cin-cast-rail {
  display: flex;
  gap: 18px;
  padding: 8px 20px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  align-items: flex-start;
}
.theme-cinema .cin-cast-rail::-webkit-scrollbar { display: none; }

.theme-cinema .cin-cast-card {
  flex: 0 0 120px;
  scroll-snap-align: start;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  -webkit-appearance: none;
  transform: rotate(var(--cin-rot, 0deg));
}
.theme-cinema .cin-cast-card__ghost {
  position: absolute;
  font-family: var(--cin-font-display);
  font-size: 2.8rem;
  color: var(--cin-ink-faint);
  top: -12px;
  left: -6px;
  pointer-events: none;
}
.theme-cinema .cin-cast-card {
  position: relative;
}
.theme-cinema .cin-cast-card__paper {
  position: relative;
  background: var(--cin-paper);
  color: #141414;
  padding: 18px 10px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.38);
}
.theme-cinema .cin-cast-card__clip {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 10px;
  background: #333;
  border-radius: 2px 2px 0 0;
  box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
.theme-cinema .cin-cast-card__clip::before,
.theme-cinema .cin-cast-card__clip::after {
  content: '';
  position: absolute;
  top: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #888;
}
.theme-cinema .cin-cast-card__clip::before { left: 5px; }
.theme-cinema .cin-cast-card__clip::after { right: 5px; }
.theme-cinema .cin-cast-card__holes {
  position: absolute;
  left: 6px;
  top: 20px;
  bottom: 20px;
  width: 8px;
  background:
    radial-gradient(circle, rgba(20,20,20,0.18) 2px, transparent 2px) center 0 / 8px 14px repeat-y;
}
.theme-cinema .cin-cast-card__frame {
  width: 72px;
  height: 88px;
  margin: 0 auto 8px;
  overflow: hidden;
  border: 1px solid rgba(20,20,20,0.15);
  background: #ddd8cf;
}
.theme-cinema .cin-cast-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-cinema .cin-cast-card__num {
  display: block;
  font-family: var(--cin-font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  color: rgba(20,20,20,0.35);
  margin-bottom: 4px;
}
.theme-cinema .cin-cast-card__name {
  display: block;
  font-family: var(--cin-font-display);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-cinema .cin-contacts-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--cin-ink-muted);
  font-size: 0.85rem;
}
.theme-cinema .cin-contacts-empty span {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
}

/* ═══════════════════════════════════════════════════════════
   ④ 档案 · 导剪室手帐
   ═══════════════════════════════════════════════════════════ */
.theme-cinema .cin-director-stage {
  padding: calc(36px + var(--mc-safe-t)) 0 calc(20px + var(--cin-tabbar-h) + var(--mc-safe-b));
  position: relative;
  z-index: 3;
}
.theme-cinema .cin-director-header {
  padding: 0 20px 16px;
  text-align: center;
}
.theme-cinema .cin-clapper {
  display: inline-block;
  margin-bottom: 12px;
}
.theme-cinema .cin-clapper__top {
  width: 80px;
  height: 14px;
  background: repeating-linear-gradient(90deg, #f2efe8 0, #f2efe8 10px, #111 10px, #111 20px);
  transform: rotate(-3deg);
  transform-origin: left bottom;
  margin: 0 auto -1px;
  border: 1px solid var(--cin-line-strong);
}
.theme-cinema .cin-clapper__body {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  background: var(--cin-paper);
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
}
.theme-cinema .cin-clapper__body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.theme-cinema .cin-director-name {
  font-family: var(--cin-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  color: var(--cin-ink);
  margin-top: 12px;
  cursor: pointer;
}
.theme-cinema .cin-director-id {
  font-family: var(--cin-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--cin-ink-muted);
  margin-top: 4px;
}
.theme-cinema .cin-director-credit {
  font-family: var(--cin-font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--cin-ink-muted);
  margin-top: 2px;
}

.theme-cinema .cin-box-office {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 20px;
}
.theme-cinema .cin-box-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--cin-line);
  padding: 14px 6px;
  text-align: center;
}
.theme-cinema .cin-box-stat__num {
  font-family: var(--cin-font-display);
  font-size: 1.5rem;
  color: var(--cin-ink);
  line-height: 1;
}
.theme-cinema .cin-box-stat__label {
  font-family: var(--cin-font-mono);
  font-size: 0.46rem;
  letter-spacing: 0.18em;
  color: var(--cin-ink-muted);
  margin-top: 6px;
  text-transform: uppercase;
}

.theme-cinema .cin-chapters {
  padding: 0 20px;
}
.theme-cinema .cin-chapters__head {
  font-family: var(--cin-font-tech);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  color: var(--cin-ink-muted);
  margin-bottom: 8px;
}
.theme-cinema .cin-chapters .cin-chapter {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--cin-line);
  cursor: pointer;
}
.theme-cinema .cin-chapter__num {
  font-family: var(--cin-font-display);
  font-size: 1.1rem;
  color: var(--cin-ink-muted);
  line-height: 1;
}
.theme-cinema .cin-chapters .cin-chapter__title {
  font-family: var(--cin-font-serif);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--cin-ink);
}
.theme-cinema .cin-chapter__arrow {
  color: var(--cin-ink-muted);
  font-size: 0.85rem;
}

.theme-cinema .cin-director-footer {
  text-align: center;
  padding: 20px 20px 8px;
}
.theme-cinema .cin-director-footer__text {
  font-family: var(--cin-font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  color: var(--cin-ink-muted);
}

/* ═══════════════════════════════════════════════════════════
   底栏 · 章节任务式分栏
   ═══════════════════════════════════════════════════════════ */
.theme-cinema .cin-tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--cin-tabbar-h) + var(--mc-safe-b));
  padding: 0 16px var(--mc-safe-b);
  background: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--cin-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 10;
}
.theme-cinema .cin-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 6px 4px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--cin-ink-muted);
  -webkit-appearance: none;
  transition: var(--cin-transition);
}
.theme-cinema .cin-tab-item.is-active {
  background: var(--cin-paper);
  color: #111;
  border-color: var(--cin-paper);
}
.theme-cinema .cin-tab-item.is-active .cin-tab-icon {
  stroke: #111;
}
.theme-cinema .cin-tab-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-cinema .cin-tab-label {
  font-family: var(--cin-font-tech);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
}

.theme-magazine .cin-msg-header,
.theme-magazine .cin-chat-search,
.theme-magazine .cin-feed-stage,
.theme-magazine .cin-cast-stage,
.theme-magazine .cin-director-stage,
.theme-magazine .cin-tab-bar,
.theme-noir .cin-msg-header,
.theme-noir .cin-chat-search,
.theme-noir .cin-feed-stage,
.theme-noir .cin-cast-stage,
.theme-noir .cin-director-stage,
.theme-noir .cin-tab-bar { display: none !important; }

.theme-cinema.qq-room-open .cin-veil,
.theme-cinema.qq-room-open .cin-tab-bar { opacity: 0; pointer-events: none; }

body.miya-chat-cinema-open {
  background: #060606 !important;
}

/* ── 单聊隔离：电影风 Tab UI 不影响聊天室 ── */
.theme-cinema .qq-room {
  --mc-bg: #FFFFFF;
  --mc-bg-warm: #F5F5F5;
  --mc-surface: #FFFFFF;
  --mc-surface-glass: #FFFFFF;
  --mc-ink: #0A0A0A;
  --mc-ink-dim: #666666;
  --mc-ink-faint: #999999;
  --mc-line: rgba(0, 0, 0, 0.1);
  --mc-line-strong: rgba(0, 0, 0, 0.18);
  --mc-accent: #1A1A1A;
  --mc-accent-soft: rgba(0, 0, 0, 0.05);
  --mc-gold-soft: rgba(0, 0, 0, 0.08);
  --qq-bg: #FFFFFF;
  --qq-surface: #FFFFFF;
  --qq-text: #0A0A0A;
  --qq-text-2: #666666;
  --qq-text-3: #999999;
  --qq-divider: rgba(0, 0, 0, 0.1);
  color: #0A0A0A;
  font-family: "Jost", "Noto Sans SC", sans-serif;
  background: #f5f5f3;
}
