.drama-page-wrapper[data-v-7440da99]{padding:24px;background-color:var(--df-color-bg-console);color:var(--df-color-text-strong)}
.header[data-v-7440da99]{position:relative;display:flex;justify-content:space-between;align-items:center;height:132px;padding:24px;margin-bottom:24px;border-radius:16px;opacity:1;box-shadow:inset 1px 1px .5px var(--df-color-fill),inset -1px -1px .5px var(--df-color-fill-soft);overflow:hidden}
.header .header-bg[data-v-7440da99]{position:absolute;left:0;top:-6px;bottom:0;width:100%;background:url(assets/banner-bg-DMwSWg9u.png) no-repeat;background-size:cover}
.header .header-left[data-v-7440da99]{display:flex;flex-direction:column;gap:12px}
.header .header-left .title[data-v-7440da99]{font-size:18px;font-weight:600;color:var(--df-color-text-strong)}
.header .header-left .description[data-v-7440da99]{font-size:12px;line-height:18px;color:var(--df-color-text-strong)}
.header .header-right[data-v-7440da99]{position:absolute;right:40px;top:6px;width:200px;height:120px;background:url(assets/banner-right-C2ZSloOB.png) no-repeat;background-size:contain}
.toolbar[data-v-7440da99]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.toolbar .search-group[data-v-7440da99]{display:flex;align-items:center;gap:8px}
.toolbar .search-group .search-input[data-v-7440da99]{width:400px}
.toolbar .search-group .search-input[data-v-7440da99] .el-input__wrapper{border-radius:4px;border-width:1px;border-color:var(--df-color-border);background-color:transparent;box-shadow:none}
.toolbar .search-group .search-input[data-v-7440da99] .el-input__wrapper .el-input__inner{color:var(--df-color-text-strong)}
.toolbar .search-group .search-btn[data-v-7440da99]{cursor:pointer;color:var(--el-text-color-placeholder);margin:0}
.toolbar .search-group .refresh_btn[data-v-7440da99]{background-color:transparent;border-radius:4px;height:32px;width:32px}
.drama-grid[data-v-7440da99]{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:var(--margin-4x);min-height:300px}
.drama-list-tip[data-v-7440da99]{margin:24px 0 0;text-align:center;font-size:12px;line-height:20px;color:var(--df-color-text-faint)}
.empty-state[data-v-7440da99]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:100px 0 20px}
.empty-state .empty-img[data-v-7440da99]{width:100px;height:100px}
.empty-state .empty-title[data-v-7440da99]{font-size:16px;font-weight:600;line-height:24px;color:var(--df-color-text-strong)}
.drama-card[data-v-7440da99]{background:var(--df-color-surface-raised);border-radius:8px;cursor:pointer;position:relative}
.drama-card .drama-top[data-v-7440da99]{position:relative;width:100%;height:235px;display:flex;align-items:center;justify-content:center}
.drama-card .drama-top .drama-image[data-v-7440da99]{width:100%;height:100%;border-top-left-radius:8px;border-top-right-radius:8px}
.drama-card .drama-top .drama-image-holder[data-v-7440da99]{width:140px;height:100px}
.drama-card .drama-top .drama-tags[data-v-7440da99]{position:absolute;left:16px;bottom:12px;display:flex;gap:8px}
.drama-card .drama-top .drama-tags .tag[data-v-7440da99]{padding:2px 8px;background:var(--df-color-tag-bg);border-radius:4px;color:var(--df-color-tag-text);font-size:12px;height:22px;display:flex;align-items:center;gap:4px}
.drama-card .drama-info[data-v-7440da99]{display:flex;flex-direction:column;background:var(--df-color-surface-sunken);padding:12px 16px;gap:4px;border-bottom-left-radius:8px;border-bottom-right-radius:8px}
.drama-card .drama-info .drama-title-row[data-v-7440da99]{display:flex;justify-content:space-between;align-items:center;gap:8px}
.drama-card .drama-info .drama-title-row .drama-title[data-v-7440da99]{flex:1;font-size:14px;line-height:24px;color:var(--df-color-text-strong);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drama-card .drama-info .drama-title-row .more-icon[data-v-7440da99]{display:inline-block;width:16px;height:16px;background-color:var(--df-color-text-secondary);cursor:pointer;mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='13.234375953674316'%20height='2.143749952316284'%20viewBox='0%200%2013.234375953674316%202.143749952316284'%3e%3cpath%20d='M0,1.071875C0,1.6624999,0.48125002,2.14375,1.071875,2.14375C1.6624999,2.14375,2.14375,1.6624999,2.14375,1.071875C2.14375,0.48125002,1.6624999,0,1.071875,0C0.48125002,0,0,0.48125002,0,1.071875ZM5.4906249,1.071875C5.4906249,1.6624999,5.9718742,2.14375,6.5625,2.14375C7.1531253,2.14375,7.6343746,1.6624999,7.6343746,1.071875C7.6343746,0.48125002,7.1531253,0,6.5625,0C5.9718742,0,5.4906249,0.48125002,5.4906249,1.071875ZM11.090625,1.071875C11.090625,1.6624999,11.571875,2.14375,12.162498,2.14375C12.753124,2.14375,13.234375,1.6624999,13.234375,1.071875C13.234375,0.48125002,12.753124,0,12.162498,0C11.571875,0,11.090625,0.48125002,11.090625,1.071875Z'%20fill='%23E5EAF3'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/svg%3e") no-repeat center/contain;-webkit-mask:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='none'%20version='1.1'%20width='13.234375953674316'%20height='2.143749952316284'%20viewBox='0%200%2013.234375953674316%202.143749952316284'%3e%3cpath%20d='M0,1.071875C0,1.6624999,0.48125002,2.14375,1.071875,2.14375C1.6624999,2.14375,2.14375,1.6624999,2.14375,1.071875C2.14375,0.48125002,1.6624999,0,1.071875,0C0.48125002,0,0,0.48125002,0,1.071875ZM5.4906249,1.071875C5.4906249,1.6624999,5.9718742,2.14375,6.5625,2.14375C7.1531253,2.14375,7.6343746,1.6624999,7.6343746,1.071875C7.6343746,0.48125002,7.1531253,0,6.5625,0C5.9718742,0,5.4906249,0.48125002,5.4906249,1.071875ZM11.090625,1.071875C11.090625,1.6624999,11.571875,2.14375,12.162498,2.14375C12.753124,2.14375,13.234375,1.6624999,13.234375,1.071875C13.234375,0.48125002,12.753124,0,12.162498,0C11.571875,0,11.090625,0.48125002,11.090625,1.071875Z'%20fill='%23E5EAF3'%20fill-opacity='1'%20style='mix-blend-mode:passthrough'/%3e%3c/svg%3e") no-repeat center/contain}
.drama-card .drama-info .drama-title-row .edit-input[data-v-7440da99]{flex:1}
.drama-card .drama-info .drama-meta[data-v-7440da99]{display:flex;justify-content:space-between;align-items:flex-end;gap:8px;font-size:12px;color:var(--df-color-text-soft)}
.drama-card .drama-info .drama-meta .author[data-v-7440da99]{flex:1;min-width:0;height:16px}
.drama-card .drama-info .drama-meta .date[data-v-7440da99]{flex-shrink:0;white-space:nowrap}
.drama-card[data-v-7440da99] .el-image__error{background:var(--df-color-surface-raised)}
body { background: var(--df-color-bg-console); }
.drama-page-wrapper { margin-left: var(--sidebar-width); min-height: calc(100vh - 48px); }
.header-left { z-index: 1; }
.toolbar button, .toolbar input { height: 32px; border: 1px solid var(--df-color-border); border-radius: 4px; background: transparent; color: var(--df-color-text-strong); padding: 0 12px; }
.toolbar .primary { background: var(--df-color-primary-fill); border-color: var(--df-color-primary-fill); color: var(--df-color-primary-text); }
.drama-page-wrapper[data-v-7440da99] { padding-top: 44px; padding-right: 44px; }
.drama-disclaimer { position: absolute; bottom: 20px; left: var(--sidebar-width); right: 0; margin: 0; text-align: center; font-size: 12px; color: var(--df-color-text-soft); }
.toolbar .refresh_btn { padding: 0; }
#create-dialog {
  width: min(1042px, 94vw);
  max-height: 90vh;
  padding: 0;
  color: var(--df-color-text);
  background: var(--df-color-surface-sunken);
  border: 1px solid var(--df-color-surface-active);
  border-radius: 12px;
}
#create-dialog::backdrop { background: var(--df-color-mask); }
#create-dialog h2 { margin: 0; padding: 20px 24px; font-size: 18px; }
.create-drama-fields { max-height: 60vh; overflow-y: auto; padding: 0 24px; }
.form-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: start; margin-bottom: 16px; }
/* 对标 CuteDesign el-form-item__label：32 高 + line-height，与控件垂直居中 */
.form-row > span:first-child {
  height: 32px;
  line-height: 32px;
  padding: 0;
  box-sizing: border-box;
  color: var(--df-color-text);
}
.form-row > span.counted-field { padding: 0; }
.form-row label { margin-right: 16px; }
.form-row input:not([type="radio"], [type="file"], [type="checkbox"]), .form-row select, .form-row textarea {
  background: var(--df-color-bg-console);
  border: 1px solid var(--df-color-border);
  border-radius: 4px;
  color: inherit;
  font: inherit;
  box-sizing: border-box;
}
.form-row input:not([type="radio"], [type="file"], [type="checkbox"], [type="number"]), .form-row select {
  height: 32px;
  padding: 0 12px;
}
.form-row input[type="number"] { width: 80px; height: 32px; padding: 0 12px; }
.form-row textarea { resize: vertical; min-height: 160px; padding: 5px 11px; }
.upload-row p { margin: 8px 0 0; color: var(--df-color-text-dim); font-size: 12px; }
.drama-upload-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--df-color-text-muted); }
.drama-upload-tools button { height: 32px; padding: 0 12px; border: 1px solid var(--df-color-border-input); border-radius: 4px; background: transparent; color: var(--df-color-text); }
.drama-upload-tools #use-script-example { margin-left: auto; padding: 0; border: 0; color: var(--df-color-accent); }
#create-dialog footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px; border-top: 1px solid var(--df-color-surface-active); }
.create-drama-fields textarea { padding: 5px 11px; border-color: var(--df-color-border-strong); }
.create-drama-fields textarea::placeholder { color: var(--df-color-text-muted); }
.form-row .counted-field { position: relative; display: grid; min-width: 0; padding: 0; }
.counted-field .field-count { position: absolute; right: 12px; bottom: 8px; color: var(--df-color-text-muted); font-size: 12px; pointer-events: none; }
.counted-field input { padding-right: 58px !important; }
.counted-field textarea { padding-bottom: 25px; }
#create-dialog footer button {
  height: 32px;
  border: 1px solid var(--df-color-border);
  border-radius: 4px;
  padding: 0 16px;
  background: var(--df-color-surface-raised);
  color: var(--df-color-text);
  box-sizing: border-box;
}
#create-dialog footer .primary {
  background: var(--df-color-primary);
  border-color: var(--df-color-primary);
  color: var(--df-color-primary-text);
}
#create-dialog footer .primary:disabled {
  opacity: .55;
  cursor: not-allowed;
}
#create-dialog { background: var(--df-color-surface-panel); border-radius: 8px; }
#create-dialog h2 { font-size: 16px; border-bottom: 1px solid var(--df-color-fill-soft); }
.create-dialog-close { position: absolute; top: 12px; right: 16px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--df-color-text-muted); font-size: 20px; }
.create-dialog-close:hover { color: var(--df-color-text-strong); }
.create-drama-fields { padding-top: 24px; scrollbar-color: var(--df-color-border-input) var(--df-color-surface-panel); scrollbar-width: thin; }
#create-dialog { color-scheme: dark; }
#create-dialog .form-row { min-height: 32px; margin-bottom: 24px; }
#create-dialog input[type="radio"] { accent-color: var(--df-color-primary-hover); }
/* 画面比例：线上 ratio-radio-group（style-card-wrap-4N77jNlP.css / data-v-3943ee9c）
   组底 #262727 + 圆角 8；段 flex:1 / min-height 48 / padding 0 8 / 段间 12；选中段 #3b4048 圆角 8；
   图标 16px mask（top 8）、文字 12px/16px（bottom 6，未选 #cfd3dc、选中 #e5eaf3） */
.drama-ratios { display: flex; gap: 0; width: fit-content; border-radius: 8px; background: var(--df-color-ratio-group-bg); }
.drama-ratios label { position: relative; flex: 1; width: 56px; min-height: 48px; margin: 0 12px 0 0; padding: 0 8px; cursor: pointer; }
.drama-ratios label:first-child { border-radius: 8px 0 0 8px; }
.drama-ratios label:last-child { border-radius: 0 8px 8px 0; margin-right: 0; }
.drama-ratios input { position: absolute; opacity: 0; }
.drama-ratios span { position: absolute; right: 0; bottom: 6px; left: 0; color: var(--df-color-text-soft); font-size: 12px; line-height: 16px; text-align: center; }
.drama-ratios span::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  transform: translateX(-50%);
  -webkit-mask: var(--df-ratio-mask-16-9) center / contain no-repeat;
  mask: var(--df-ratio-mask-16-9) center / contain no-repeat;
}
.drama-ratios label:nth-child(1) span::before { -webkit-mask-image: var(--df-ratio-mask-9-16); mask-image: var(--df-ratio-mask-9-16); }
.drama-ratios label:nth-child(2) span::before { -webkit-mask-image: var(--df-ratio-mask-16-9); mask-image: var(--df-ratio-mask-16-9); }
.drama-ratios label:nth-child(3) span::before { -webkit-mask-image: var(--df-ratio-mask-1-1); mask-image: var(--df-ratio-mask-1-1); }
.drama-ratios label:nth-child(4) span::before { -webkit-mask-image: var(--df-ratio-mask-3-4); mask-image: var(--df-ratio-mask-3-4); }
.drama-ratios label:nth-child(5) span::before { -webkit-mask-image: var(--df-ratio-mask-4-3); mask-image: var(--df-ratio-mask-4-3); }
.drama-ratios label:has(input:checked) { border-radius: 8px; background: var(--df-color-surface-active); }
.drama-ratios label:has(input:checked) span { color: var(--df-color-text); }
.drama-ratios input:focus-visible + span { outline: 2px solid var(--df-color-accent); }
.drama-recommended { margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: var(--df-color-recommended-bg); color: var(--df-color-recommended-text); }
.drama-style-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.drama-style-toolbar > span { border: 1px solid var(--df-color-border); border-radius: 4px; padding: 7px 12px; min-width: 120px; }
.drama-style-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) {
  .drama-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .drama-style-toolbar { flex-wrap: wrap; }
}
.drama-style-card { text-align: left; padding: 0 0 10px; overflow: hidden; border: 1px solid var(--df-color-border-input); border-radius: 8px; background: var(--df-color-surface-raised); }
.drama-style-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 8px; }
.drama-style-card[aria-pressed="true"] { border-color: var(--df-color-accent); }
.drama-style-entry { position: relative; min-width: 0; }
.drama-style-entry .drama-style-card { width: 100%; }
.drama-style-card .drama-style-name { display: block; padding: 0 28px 0 10px; }
.drama-style-favorite { position: absolute; right: 6px; bottom: 6px; border: 0; background: var(--df-color-surface-raised); }
.drama-style-favorite[aria-pressed="true"] { color: var(--df-color-accent); }
.form-row .drama-style-toolbar input[type="checkbox"] { accent-color: var(--df-color-primary-hover); padding: 0; }
#open-custom-style { margin-left: auto; padding: 7px 12px; border: 1px solid var(--df-color-border-input); border-radius: 4px; background: transparent; }
#custom-style-dialog { width: min(542px, 94vw); padding: 0; border: 1px solid var(--df-color-surface-active); border-radius: 8px; background: var(--df-color-surface-panel); color: var(--df-color-text); color-scheme: dark; }
#custom-style-dialog::backdrop { background: var(--df-color-mask); }
#custom-style-dialog h2 { margin: 0; padding: 16px 24px; border-bottom: 1px solid var(--df-color-fill-soft); font-size: 16px; }
.custom-style-fields { padding: 24px 24px 4px; }
.custom-style-fields .form-row { grid-template-columns: 92px minmax(0, 1fr); }
.custom-style-fields textarea { min-height: 96px; }
#custom-style-dialog footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--df-color-fill-soft); }
#custom-style-dialog footer button { padding: 7px 16px; border: 1px solid var(--df-color-border-input); border-radius: 4px; background: transparent; }
#custom-style-dialog footer button[type="submit"] { background: var(--df-color-primary-hover); border-color: var(--df-color-primary-hover); }
.empty-state[hidden] { display: none; }
.local-drama { text-decoration: none; }
.local-drama[hidden], .drama-grid[hidden] { display: none; }
.drama-card .visibility svg { flex-shrink: 0; fill: currentColor; }

.console-top-links { display: flex; align-items: center; gap: 24px; }
.console-top-links a { color: inherit; text-decoration: none; }
.toolbar .search-group { position: relative; }
.toolbar .search-group__icon { position: absolute; top: 6px; right: 48px; width: 20px; height: 20px; fill: var(--df-color-text-faint); pointer-events: none; }
.drama-disclaimer { right: 44px; bottom: 20px; left: 124px; }

/* ---------- 剧集卡片更多操作（P-03） ---------- */
.drama-title-row { display: flex; align-items: center; gap: var(--df-space-2); }
.card-more {
  flex: none;
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  border-radius: var(--df-radius-sm);
  background: transparent;
  color: var(--df-color-text-faint);
  font: inherit;
  font-size: var(--df-font-size-lg);
  line-height: 1;
  cursor: pointer;
}
.card-more:hover { background: var(--df-color-surface-hover); color: var(--df-color-text); }
/* 菜单外壳复用 .df-menu */
.drama-card-menu { min-width: 132px; }
.drama-card-menu .is-danger { color: var(--df-color-danger); }

@media (forced-colors: none) {
  html[data-theme="light"] #create-dialog input[type="radio"]:not([name="ratio"]) {
    appearance: none;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border: 1px solid var(--df-color-control-edge);
    border-radius: 50%;
    background: var(--df-color-surface);
    vertical-align: middle;
  }
  html[data-theme="light"] #create-dialog input[type="radio"]:not([name="ratio"]):checked {
    border: 4px solid var(--df-color-primary-active);
  }
  html[data-theme="light"] #create-dialog input[type="radio"]:not([name="ratio"]):focus-visible {
    outline: 2px solid var(--df-color-focus-ring);
    outline-offset: 2px;
  }
}
