/* site.css 之外的动效 */
.tab-indicator { width: 50%; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.tab-indicator.is-register { transform: translateX(100%); }

.login-card-enter { animation: login-enter .6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes login-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* 后台页用到、原站样式表未包含的宽度 */
.w-\[320px\] { width: 320px; }
.w-\[420px\] { width: 420px; }
.min-h-\[34px\] { min-height: 34px; }


/* 石榴AI 主题:配色取自 shiliu.chat,覆盖 site.css 的深色黑橙主题 */
:root {
  color-scheme: light;
  --background: #f9fafb;
  --foreground: #161242;
  --primary: #5b4cee;
  --primary-hover: #4a3af6;
  --secondary: #f1effe;
  --accent: #eceafd;
  --card: #fff;
  --card-hover: #f7f6ff;
  --border: #e7e5f4;
  --muted: #606266;
  --brand-gradient: linear-gradient(to right, #4a3af6, #cb4af6);
  --brand-wash: linear-gradient(180deg, #ece6fe 0%, #f5effe 45%, #f9fafb 100%);
  --color-orange-300: #a79ff7;
  --color-orange-400: #4a3af6;
  --color-orange-500: #5b4cee;
  --color-orange-600: #cb4af6;
}

body { background: var(--background); color: var(--foreground); }
::selection { background: rgba(91, 76, 238, .2); }
.text-muted-foreground { color: var(--muted); }

/* 主按钮:紫粉渐变白字 */
.bg-primary, .btn-primary, #submit {
  background-image: var(--brand-gradient);
  background-color: var(--primary);
  color: #fff;
  border-radius: 10px;
}
.bg-primary.h-full, .bg-primary.rounded-full, .bg-primary.rounded-r-full { border-radius: 9999px; }
.btn-primary:hover { box-shadow: 0 8px 16px rgba(91, 76, 238, .3); filter: none; }
.text-primary-foreground { color: #fff; }

/* 背景与导航 */
.bg-\[\#050505\] { background: var(--brand-wash); }
.bg-\[\#050505\]\/95 { background: rgba(255, 255, 255, .92); }
.mix-blend-difference { mix-blend-mode: normal; }
.border-white\/\[0\.06\] { border-color: var(--border); }

.bg-white\/\[0\.03\] { background-color: #fff; box-shadow: 0 8px 24px rgba(91, 76, 238, .08); }
.hover\:bg-white\/\[0\.06\]:hover { background-color: #fff; }
.backdrop-blur-xl.border-white\/10 { border-color: var(--border); }

/* 平台徽标与监视器 */
.bg-\[\#2a2a2d\] { background: var(--secondary); box-shadow: none; color: var(--primary); }
.bg-slate-950\/85 { background: rgba(255, 255, 255, .95); border-color: var(--border); }
.text-cyan-400\/80, .text-cyan-400\/60 { color: var(--primary); }
.border-cyan-400\/15, .border-cyan-400\/25 { border-color: var(--border); }

/* 卡片和控件圆角、阴影 */
.bg-card { box-shadow: 0 1px 2px rgba(22, 18, 66, .04); }
input[type="checkbox"], input[type="range"] { accent-color: #5b4cee; }

/* 深色工具类映射 */
.bg-black\/15 { background-color: rgba(255,255,255,.25); }
.bg-black\/40 { background-color: rgba(255,255,255,.88); }
.bg-black\/60 { background-color: rgba(255,255,255,.88); }
.bg-white\/10 { background-color: rgba(91,76,238,0.100); }
.bg-white\/20 { background-color: rgba(91,76,238,0.200); }
.bg-white\/5 { background-color: rgba(91,76,238,0.050); }
.bg-white\/\[0\.03\] { background-color: rgba(91,76,238,0.030); }
.border-white\/10 { border-color: rgba(91,76,238,0.16); }
.border-white\/8 { border-color: rgba(91,76,238,0.13); }
.border-white\/\[0\.06\] { border-color: rgba(91,76,238,0.10); }
.hover\:bg-white\/5:hover { background-color: rgba(91,76,238,0.050); }
.hover\:bg-white\/50:hover { background-color: rgba(91,76,238,0.500); }
.hover\:bg-white\/\[0\.06\]:hover { background-color: rgba(91,76,238,0.060); }
.hover\:border-white\/5:hover { border-color: rgba(91,76,238,0.08); }
.hover\:text-white:hover { color: var(--foreground); }
.hover\:text-white\/60:hover { color: rgba(22,18,66,0.60); }
.placeholder-white\/20::placeholder { color: rgba(22,18,66,.35); }
.text-black { color: #fff; }
.text-white { color: var(--foreground); }
.text-white\/30 { color: rgba(22,18,66,0.45); }
.text-white\/40 { color: rgba(22,18,66,0.45); }
.text-white\/50 { color: rgba(22,18,66,0.50); }
.text-white\/60 { color: rgba(22,18,66,0.60); }
.text-white\/70 { color: rgba(22,18,66,0.70); }
.text-white\/80 { color: rgba(22,18,66,0.80); }

.aspect-video { aspect-ratio: 16 / 9; }

/* 侧栏收起:保留图标栏和展开按钮 */
#sidebar.is-collapsed { width: 72px; }
#sidebar.is-collapsed > div { width: 100%; min-width: 0; }
#sidebar.is-collapsed > div > div:first-child { padding: 18px 0; }
#sidebar.is-collapsed > div > div:first-child > div { justify-content: center; }
#sidebar.is-collapsed > div > div:first-child a,
#sidebar.is-collapsed [data-fullscreen],
#sidebar.is-collapsed [data-toggle],
#sidebar.is-collapsed [data-kids],
#sidebar.is-collapsed nav span { display: none; }
#sidebar.is-collapsed nav a { justify-content: center; padding: 12px 0; }
#sidebar.is-collapsed nav a > div.w-5 { margin-left: 0; }

/* 登录页:左侧品牌区,右侧表单 */
.login-page { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; background: #fff; }
.login-hero {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  padding: 48px 64px; color: #fff;
  background:
    radial-gradient(60% 50% at 85% 15%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(70% 60% at 10% 95%, rgba(203, 74, 246, .55), transparent 70%),
    linear-gradient(145deg, #3a2be0 0%, #5b4cee 48%, #a13ff2 100%);
}
.login-hero::after {
  content: ''; position: absolute; right: -180px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 70px rgba(255, 255, 255, .05), 0 0 0 140px rgba(255, 255, 255, .03); pointer-events: none;
}
.login-hero-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-size: 24px; font-weight: 800; color: #fff; }
.login-hero-brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.login-hero-body { position: relative; z-index: 1; max-width: 560px; }
.login-hero h1 { margin: 0; font-size: clamp(44px, 5.2vw, 76px); line-height: 1.12; font-weight: 800; letter-spacing: .01em; color: #fff; }
.login-hero-body > p { margin: 24px 0 0; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, .82); }
.login-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 44px 0 0; padding: 0; list-style: none; }
.login-flow li { padding: 16px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.login-flow b { display: block; font-size: 16px; color: #fff; }
.login-flow span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.login-hero-foot { position: relative; z-index: 1; margin: 0; font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: #fff; }
.login-box { width: 100%; max-width: 440px; }
.login-mobile-brand { display: none; margin-bottom: 28px; }
.login-box h2 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.2; color: #161242; }
.login-sub { margin: 10px 0 0; font-size: 15px; color: #606266; }
.login-tabs { margin-top: 32px; border-bottom: 1px solid var(--border); }
.login-tabs button { font-size: 15px; }
.login-form { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.login-form label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #161242; }
.login-input { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: #fafaff; font-size: 16px; color: #161242; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.login-input::placeholder { color: #9793a9; }
.login-input:focus { border-color: #5b4cee; background: #fff; box-shadow: 0 0 0 4px rgba(91, 76, 238, .12); }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 54px; margin-top: 4px; border-radius: 12px; font-size: 16px; font-weight: 700; color: #fff; box-shadow: 0 12px 24px rgba(91, 76, 238, .28); transition: transform .2s, box-shadow .2s, opacity .2s; }
.login-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(91, 76, 238, .34); }
.login-submit:disabled { opacity: .6; }
.login-switch { margin: 24px 0 0; text-align: center; font-size: 14px; color: #606266; }
@media (max-width: 960px) {
  .login-page { grid-template-columns: minmax(0, 1fr); }
  .login-hero { padding: 24px 24px 32px; gap: 24px; }
  .login-hero-foot, .login-flow, .login-hero::after { display: none; }
  .login-hero-brand { font-size: 20px; }
  .login-hero-brand img { width: 36px; height: 36px; }
  .login-hero h1 { font-size: 34px; white-space: nowrap; }
  .login-hero h1 br { display: none; }
  .login-hero-body > p { margin-top: 10px; font-size: 14px; }
  .login-panel { align-items: flex-start; padding: 28px 24px 40px; }
  .login-box h2 { font-size: 26px; }
  .login-tabs { margin-top: 24px; }
}

/* 任务详情:主内容和监视器分栏,窄屏时监视器移到顶部 */
.task-detail { display: flex; align-items: flex-start; gap: 24px; width: 100%; max-width: 1160px; margin: 0 auto; }
.task-detail-main { flex: 1; min-width: 0; }
.task-monitor { position: sticky; top: 0; flex: 0 0 240px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); font-size: 13px; color: var(--foreground); }
.task-monitor h3 { font-size: 14px; font-weight: 700; }
.task-monitor-total { margin-top: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.task-monitor-total > div:first-child { display: flex; align-items: baseline; justify-content: space-between; color: var(--muted); }
.task-monitor-total b { font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--foreground); }
.task-monitor-bar { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: var(--secondary); }
.task-monitor-bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand-gradient); transition: width .4s; }
.task-monitor-head { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); }
.task-monitor ol { margin: 6px 0 0; padding: 0; list-style: none; }
.task-monitor li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 0; }
.task-monitor li > i { width: 8px; height: 8px; border-radius: 50%; background: #c9c6da; }
.task-monitor li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-monitor li > em { font-style: normal; font-size: 12px; color: var(--muted); }
.task-monitor li.is-done > i { background: #34b37e; }
.task-monitor li.is-running > i { background: var(--primary); }
.task-monitor li.is-running > em { color: var(--primary); font-weight: 600; }
.task-monitor li.is-failed > i { background: #e5484d; }
.task-monitor li.is-failed > em { color: #e5484d; font-weight: 600; }
.task-monitor li.is-skipped { color: #9793a9; }
.task-monitor li.is-skipped > i { background: transparent; box-shadow: inset 0 0 0 1px #c9c6da; }
.task-monitor p { margin-top: 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) {
  .task-detail { flex-direction: column-reverse; align-items: stretch; }
  .task-monitor { position: static; flex: none; }
}

/* 排期月历 */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week { padding: 4px 8px; font-size: 12px; color: var(--muted); }
.cal-cell { display: flex; flex-direction: column; gap: 2px; min-height: 92px; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-size: 12px; color: var(--muted); }
.cal-cell.is-blank { border-color: transparent; background: transparent; }
.cal-cell b { font-size: 13px; font-weight: 600; color: var(--foreground); }
.cal-cell span { font-weight: 600; color: var(--primary); }
.cal-cell em { font-style: normal; line-height: 1.4; }
.cal-cell.has-items:hover { border-color: var(--primary); }
.cal-cell.is-today { box-shadow: inset 0 0 0 1px var(--primary); }
@media (max-width: 760px) { .cal-cell { min-height: 64px; padding: 4px; } .cal-cell em { display: none; } }

.temp-password { padding: 12px 14px; border-radius: 10px; background: var(--secondary); font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .04em; color: var(--foreground); word-break: break-all; }

/* 批量操作、质检和诊断 */
.batch-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--primary); border-radius: 10px; background: var(--secondary); font-size: 13px; color: var(--foreground); }
.batch-bar[hidden] { display: none; }
.batch-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-log { margin-bottom: 24px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.qa-log ol { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.qa-log li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 6px 0; color: var(--foreground); }
.qa-log b.is-pass { color: #0f8a5f; }
.qa-log b.is-reject { color: #e5484d; }
.qa-log em { font-style: normal; font-size: 12px; color: var(--muted); }
.diag-warn { margin: 0; padding: 10px 14px 10px 28px; border-radius: 10px; background: rgba(229, 72, 77, .08); font-size: 13px; line-height: 1.7; color: #c62f35; list-style: disc; }
.diag-ok { padding: 10px 14px; border-radius: 10px; background: rgba(15, 138, 95, .08); font-size: 13px; color: #0f8a5f; }
.diag-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 0; }
.diag-facts dt { font-size: 12px; color: var(--muted); }
.diag-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--foreground); }
.diag-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--foreground); }
.diag-table th { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; font-weight: 500; color: var(--muted); }
.diag-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); }

/* 分镜编辑器 */
.shot-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.shot-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.shot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--foreground); }
.shot-head select, .shot-row textarea, .shot-row input { border: 1px solid var(--border); border-radius: 8px; background: var(--background); font-size: 14px; color: var(--foreground); outline: none; }
.shot-head select { padding: 4px 8px; font-size: 13px; }
.shot-row textarea, .shot-row input { width: 100%; padding: 8px 10px; }
.shot-row textarea:focus, .shot-row input:focus, .shot-head select:focus { border-color: var(--primary); }
.shot-tools { display: flex; gap: 4px; margin-left: auto; }
.shot-materials { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.shot-chip { max-width: 220px; padding: 3px 10px; overflow: hidden; border-radius: 999px; background: var(--secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; color: var(--primary); }
.shot-empty { padding: 28px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.shot-option { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 4px; font-size: 13px; color: var(--foreground); }
.shot-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-option em { font-style: normal; font-size: 12px; color: var(--muted); }
.shot-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.shot-clips video { height: 240px; }
.shot-clips span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* 任务模板编辑器 */
.tpl-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0; border-bottom: 1px solid var(--border); }
.tpl-tabs button { padding: 8px 12px; border-bottom: 2px solid transparent; font-size: 13px; color: var(--muted); }
.tpl-tabs button[aria-selected="true"] { border-color: var(--primary); font-weight: 600; color: var(--primary); }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tpl-grid[hidden] { display: none; }
.tpl-polish { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
.tpl-polish label { flex: 1; }
@media (max-width: 760px) { .tpl-grid { grid-template-columns: minmax(0, 1fr); } }

/* 任务详情:生成资源预览 */
.task-preview { margin-bottom: 32px; padding: 16px 20px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.task-preview-empty p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.task-preview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.task-preview-head [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px; }
.task-preview-head button { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.task-preview-head button:hover { background: var(--secondary); }
.task-preview-head button[aria-selected="true"] { background: var(--secondary); font-weight: 600; color: var(--primary); }
.task-preview-panel video { display: block; width: 100%; height: min(56vh, 520px); border-radius: 12px; background: #161242; object-fit: contain; }
.task-preview-audio { display: flex; align-items: center; gap: 16px; padding: 28px 20px; border-radius: 12px; background: var(--secondary); }
.task-preview-audio audio { flex: 1; min-width: 0; }
.task-preview-panel pre { max-height: min(56vh, 520px); padding: 16px; overflow: auto; border-radius: 12px; background: var(--secondary); font-size: 13px; line-height: 1.7; white-space: pre-wrap; color: var(--foreground); }
.task-preview-download { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* 后台页面和侧栏滚到底时留白,弹窗和看板列不受影响 */
#app main .flex-1.overflow-y-auto:not(.p-3):not([data-modal-root] *),
#sidebar .overflow-y-auto { padding-bottom: 80px; }

.nowrap-table th, .nowrap-table td { white-space: nowrap; }

/* 按钮多或窗口窄时操作区换到下一行,不挤压标题 */
.page-head { flex-wrap: wrap; }
.page-head > :first-child { flex: 1 1 240px; }
.page-head > :last-child { flex-wrap: wrap; }

/* 播放预览:深色放映区,平台模式叠加界面遮挡 */
.vp-root { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.vp-dialog { display: flex; flex-direction: column; width: min(960px, 100%); max-height: calc(100vh - 32px); overflow: hidden; border-radius: 16px; background: #0b0b12; color: #fff; }
.vp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.vp-head > div:first-child { flex: 1 1 240px; }
.vp-head h2 { overflow: hidden; font-size: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.vp-head p { margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.vp-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; }
.vp-tabs button { padding: 5px 12px; border-radius: 7px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.vp-tabs button.is-on { background: #5b4cee; color: #fff; }
.vp-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; color: rgba(255, 255, 255, .7); }
.vp-close:hover { background: rgba(255, 255, 255, .1); }
.vp-stage { display: flex; flex: 1; min-height: 0; justify-content: center; padding: 16px; background: #000; }
.vp-frame { position: relative; overflow: hidden; height: min(calc(100vh - 150px), 760px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 10px; background: #000; container-type: size; }
.vp-frame:not([data-vp-platform="standard"]) { aspect-ratio: 390 / 844; border-radius: 28px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .16); }
.vp-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.vp-frame[data-vp-platform="douyin"] video { bottom: auto; height: calc(100% * 760 / 844); }
.vp-frame[data-vp-platform="xiaohongshu"] video { bottom: auto; height: calc(100% * 754 / 844); }

/* 三个平台的 Feed 界面,尺寸按 390 宽的手机设计稿,用 --u 等比缩放 */
.feed { --u: calc(100cqw / 390); position: absolute; inset: 0; display: none; pointer-events: none; color: #fff; font-size: calc(15 * var(--u)); line-height: 1.4; }
[data-vp-platform="douyin"] .feed-douyin, [data-vp-platform="channels"] .feed-channels, [data-vp-platform="xiaohongshu"] .feed-xiaohongshu { display: block; }
.feed svg { display: block; width: 100%; height: 100%; }
.feed p { margin: 0; }
.feed i, .feed em { font-style: normal; }
.feed::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent); }
.feed::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(130 * var(--u)); background: linear-gradient(to bottom, rgba(0, 0, 0, .4), transparent); }
.feed > * { z-index: 1; }
.feed-status { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; height: calc(44 * var(--u)); padding: 0 calc(26 * var(--u)); }
.feed-status b { font-size: calc(15 * var(--u)); font-weight: 600; }
.feed-status span { display: flex; gap: calc(5 * var(--u)); }
.feed-status svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.feed-top { position: absolute; top: calc(46 * var(--u)); left: 0; right: 0; display: flex; align-items: center; gap: calc(14 * var(--u)); height: calc(44 * var(--u)); padding: 0 calc(14 * var(--u)); }
.feed-top i { flex: none; width: calc(25 * var(--u)); height: calc(25 * var(--u)); }
.feed-fill, .feed-tabs { flex: 1; }
.feed-tabs { display: flex; justify-content: center; gap: calc(22 * var(--u)); font-size: calc(17 * var(--u)); color: rgba(255, 255, 255, .7); }
.feed-tabs span { position: relative; padding: calc(6 * var(--u)) 0; }
.feed-tabs .is-on { color: #fff; font-weight: 700; }
.feed-tabs .is-on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: calc(24 * var(--u)); height: calc(3 * var(--u)); border-radius: 2px; background: #fff; transform: translateX(-50%); }
.feed-avatar { position: relative; display: flex; flex: none; align-items: center; justify-content: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; background: linear-gradient(135deg, #4a3af6, #cb4af6); font-size: calc(15 * var(--u)); font-weight: 700; }
.feed-action { display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); font-size: calc(12 * var(--u)); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.feed-action svg { width: calc(38 * var(--u)); height: calc(38 * var(--u)); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.feed-info { position: absolute; left: calc(14 * var(--u)); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.feed-info p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.feed-author { display: flex; align-items: center; gap: calc(8 * var(--u)); margin-bottom: calc(8 * var(--u)); }
.feed-author b { font-weight: 600; }
.feed-progress { position: absolute; left: 0; right: 0; height: calc(2 * var(--u)); background: rgba(255, 255, 255, .25); }
.feed-progress::after { content: ""; display: block; width: var(--feed-progress, 0%); height: 100%; background: #fff; }

.feed-douyin::before { bottom: calc(84 * var(--u)); }
.feed-douyin .feed-rail { position: absolute; right: calc(8 * var(--u)); bottom: calc(100 * var(--u)); display: flex; flex-direction: column; align-items: center; gap: calc(14 * var(--u)); width: calc(52 * var(--u)); }
.feed-douyin .feed-avatar { width: calc(48 * var(--u)); height: calc(48 * var(--u)); margin-bottom: calc(10 * var(--u)); border: calc(1.500 * var(--u)) solid #fff; }
.feed-douyin .feed-avatar em { position: absolute; left: 50%; bottom: calc(-10 * var(--u)); display: flex; align-items: center; justify-content: center; width: calc(20 * var(--u)); height: calc(20 * var(--u)); border-radius: 50%; background: #fe2c55; font-size: calc(15 * var(--u)); transform: translateX(-50%); }
.feed-disc { width: calc(44 * var(--u)); height: calc(44 * var(--u)); border: calc(8 * var(--u)) solid #222; border-radius: 50%; background: linear-gradient(135deg, #4a3af6, #cb4af6); animation: feed-spin 5s linear infinite; }
.is-paused .feed-disc { animation-play-state: paused; }
@keyframes feed-spin { to { transform: rotate(360deg); } }
.feed-douyin .feed-info { right: calc(80 * var(--u)); bottom: calc(100 * var(--u)); }
.feed-douyin .feed-info b { font-size: calc(17 * var(--u)); font-weight: 600; }
.feed-douyin .feed-info p { margin-top: calc(4 * var(--u)); }
.feed-music { display: flex; align-items: center; gap: calc(6 * var(--u)); margin-top: calc(8 * var(--u)); font-size: calc(14 * var(--u)); }
.feed-music svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
.feed-douyin .feed-progress { bottom: calc(84 * var(--u)); }
.feed-nav { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; height: calc(84 * var(--u)); padding-top: calc(10 * var(--u)); background: #000; font-size: calc(16 * var(--u)); text-align: center; color: rgba(255, 255, 255, .65); }
.feed-nav .is-on { color: #fff; font-weight: 700; }
.feed-nav i { justify-self: center; width: calc(42 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(8 * var(--u)); background: #fff; box-shadow: calc(-3 * var(--u)) 0 #25f4ee, calc(3 * var(--u)) 0 #fe2c55; font-size: calc(22 * var(--u)); font-weight: 700; line-height: calc(26 * var(--u)); color: #000; }

.feed-channels .feed-tabs { padding-left: calc(39 * var(--u)); }
.feed-channels .feed-info { right: calc(14 * var(--u)); bottom: calc(92 * var(--u)); }
.feed-channels .feed-author em { padding: calc(2 * var(--u)) calc(12 * var(--u)); border-radius: calc(4 * var(--u)); background: rgba(255, 255, 255, .2); font-size: calc(14 * var(--u)); color: #fa9d3b; }
.feed-channels .feed-progress { bottom: calc(80 * var(--u)); }
.feed-bar { position: absolute; left: calc(14 * var(--u)); right: calc(14 * var(--u)); display: flex; align-items: center; }
.feed-channels .feed-bar { bottom: calc(30 * var(--u)); justify-content: flex-end; gap: calc(26 * var(--u)); }
.feed-channels .feed-action svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); }
.feed-channels .feed-action span { display: none; }

.feed-xiaohongshu::before { bottom: calc(90 * var(--u)); }
.feed-xiaohongshu .feed-info { right: calc(14 * var(--u)); bottom: calc(106 * var(--u)); }
.feed-xiaohongshu .feed-author em { padding: calc(3 * var(--u)) calc(14 * var(--u)); border-radius: calc(14 * var(--u)); background: #ff2442; font-size: calc(13 * var(--u)); }
.feed-title { font-weight: 600; }
.feed-xiaohongshu .feed-progress { bottom: calc(90 * var(--u)); }
.feed-xiaohongshu .feed-bar { left: 0; right: 0; bottom: 0; gap: calc(14 * var(--u)); height: calc(90 * var(--u)); padding: calc(10 * var(--u)) calc(14 * var(--u)) calc(34 * var(--u)); background: #000; }
.feed-xiaohongshu .feed-action { flex-direction: row; gap: calc(3 * var(--u)); font-size: calc(13 * var(--u)); }
.feed-xiaohongshu .feed-action svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.feed-input { display: flex; flex: 1; align-items: center; gap: calc(6 * var(--u)); height: calc(36 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: calc(18 * var(--u)); background: rgba(255, 255, 255, .14); font-size: calc(14 * var(--u)); color: rgba(255, 255, 255, .6); }
.feed-input svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }

.feed-paused { position: absolute; top: 44%; left: 50%; display: none; width: 15cqw; height: 15cqw; pointer-events: none; color: rgba(255, 255, 255, .75); transform: translate(-50%, -50%); }
.vp-frame:not([data-vp-platform="standard"]).is-paused .feed-paused { display: block; }

/* 角色分组 */
.group-view { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.group-view[hidden], .group-form[hidden] { display: none; }
.group-form { display: flex; flex-direction: column; gap: 10px; }
.group-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.group-swatch { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(22, 18, 66, .12); }
.group-swatch.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #5b4cee; }
.import-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-foreground, #6b6b80); }
.import-steps span { padding: 3px 10px; border-radius: 999px; }
.import-steps span.is-on { background: rgba(91, 76, 238, .1); color: #5b4cee; font-weight: 600; }
.import-tab-on { border-color: #5b4cee; color: #5b4cee; }
.import-file { border-style: dashed; }
.import-hint { flex: 1; align-self: center; font-size: 12px; color: var(--muted-foreground, #6b6b80); }
[data-modal-root] button:disabled { cursor: not-allowed; opacity: .5; }

/* 素材审核:左列表右详情 */
.review-split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.review-split > div:last-child { position: sticky; top: 0; }
@media (max-width: 1100px) { .review-split { grid-template-columns: minmax(0, 1fr); } .review-split > div:last-child { position: static; order: -1; } }

.shot-avatar { margin-top: 6px; font-size: 12px; color: var(--muted-foreground, #6b6b80); }
.shot-avatar select { border: 1px solid rgba(22, 18, 66, .14); border-radius: 6px; padding: 2px 6px; background: transparent; font-size: 12px; }
.shot-avatar label { white-space: nowrap; }
.shot-avatar input[type="checkbox"] { flex: none; width: 14px; min-width: 14px; }
.shot-avatar select { width: auto; }
