.video-studio-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid #eadbea;
  border-radius: 14px;
  background: #fff2f8;
  color: #8b2858;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  margin: 8px 0 28px;
}
.video-studio-entry:hover { background: #ffe6f2; box-shadow: 0 10px 24px rgba(45,36,79,.1); }
.video-studio-entry:active { transform: scale(.98); }
.video-studio {
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 112px;
  padding: 32px;
  border: 1px solid #eaeaf0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(38,31,67,.09);
}
.video-studio[hidden] { display: none; }
.studio-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.studio-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 38px;
  height: 38px;
  border: 1px solid #ececf2;
  border-radius: 50%;
  background: #f7f7fa;
  color: #777987;
  font: 700 22px/1 inherit;
  cursor: pointer;
}
.has-video-studio .result-actions { display: none; }
.has-video-studio .wechat-fab { display: none !important; }
.studio-kicker { margin: 0 0 8px; color: #ff5d9f; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.studio-heading h2 { margin: 0; color: #17171c; font-size: clamp(26px, 4vw, 40px); line-height: 1.12; }
.studio-heading p:last-child { max-width: 560px; margin: 10px 0 0; color: #6f7180; line-height: 1.7; }
.studio-beta { flex: none; padding: 8px 12px; border-radius: 999px; background: #f3edff; color: #7254a8; font-size: 12px; font-weight: 800; }
.studio-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 28px; align-items: start; }
.studio-controls { display: grid; gap: 16px; }
.studio-block { padding: 20px; border: 1px solid #ececf2; border-radius: 18px; background: #fafafd; }
.studio-block h3 { margin: 0 0 7px; color: #24242b; font-size: 16px; }
.studio-block p { margin: 0 0 14px; color: #777987; font-size: 14px; line-height: 1.6; }
.studio-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px dashed #d9cddd;
  border-radius: 14px;
  background: #fff;
  color: #34323b;
  font-weight: 700;
  cursor: pointer;
}
.studio-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.studio-file span { color: #ff5d9f; font-size: 13px; }
.studio-voice-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-bottom: 10px; }
.studio-voice-row select,.studio-voice-row button {
  min-height: 48px;
  border: 1px solid #e4e4eb;
  border-radius: 14px;
  background: #fff;
  color: #292931;
  font: inherit;
  font-weight: 700;
}
.studio-voice-row select { padding: 0 14px; }
.studio-voice-row button { padding: 0 16px; border-color: #ffc6df; background: #fff0f7; color: #9b2f61; cursor: pointer; }
.studio-voice-row button:disabled { cursor: wait; opacity: .65; }
.studio-voice-status { min-height: 20px; color: #8a5d76 !important; font-size: 13px !important; }
.studio-voice-status + audio { width: 100%; height: 42px; margin: 0 0 14px; }
.studio-music-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #ececf2;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.studio-music-toggle input { margin-top: 3px; accent-color: #ff6fae; }
.studio-music-toggle span { display: grid; gap: 4px; }
.studio-music-toggle b { color: #34343c; font-size: 14px; }
.studio-music-toggle small { color: #858793; font-size: 12px; line-height: 1.5; }
.studio-thumbs { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; scrollbar-width: thin; }
.studio-thumb { position: relative; flex: 0 0 76px; aspect-ratio: 9/16; overflow: hidden; border-radius: 10px; background: #ebeaf0; }
.studio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.studio-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(18,18,22,.72); color: #fff; cursor: pointer; }
.studio-empty { color: #9a9ca7; font-size: 13px; }
.studio-analysis { margin-top: 16px; padding: 16px; border: 1px solid #e7e7ed; border-radius: 18px; background: #fff; }
.studio-analysis[data-state="loading"] { border-color: #ffc2dc; box-shadow: 0 0 0 4px rgba(255,111,174,.08); }
.studio-analysis[data-state="success"] { border-color: #bde8cf; }
.studio-analysis[data-state="error"] { border-color: #f0c8b8; }
.studio-analysis-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-analysis-head>div { display: flex; align-items: center; gap: 8px; }
.studio-analysis-head span { padding: 5px 8px; border-radius: 99px; background: #fff0f7; color: #d84283; font-size: 11px; font-weight: 800; }
.studio-analysis-head b { color: #292a31; font-size: 14px; }
.studio-analysis-head button { border: 0; border-radius: 10px; padding: 8px 11px; background: #2d244f; color: #fff; font-size: 12px; font-weight: 750; cursor: pointer; }
.studio-analysis-head button:disabled { opacity: .55; cursor: wait; }
.studio-analysis>p { margin: 10px 0 0; color: #777986; font-size: 12px; line-height: 1.6; }
.studio-analysis-result { display: grid; gap: 12px; margin-top: 14px; }
.studio-analysis-result label { display: grid; gap: 7px; color: #555762; font-size: 12px; font-weight: 750; }
.studio-analysis-result input,.studio-analysis-result textarea { width: 100%; border: 1px solid #e1e2e8; border-radius: 12px; padding: 11px 12px; background: #fafafd; color: #292a31; font: inherit; resize: vertical; }
.studio-analysis-result input:focus,.studio-analysis-result textarea:focus { outline: 0; border-color: #ff6fae; box-shadow: 0 0 0 4px rgba(255,111,174,.1); }
.studio-analysis-warning { padding: 12px; border-radius: 12px; background: #fff8e8; color: #725b25; font-size: 12px; }
.studio-analysis-warning b { display: block; margin-bottom: 6px; }
.studio-analysis-warning ul { margin: 0; padding-left: 18px; line-height: 1.65; }
.studio-promo { margin-top: 16px; padding: 16px; border: 1px solid #e7e7ed; border-radius: 18px; background: linear-gradient(145deg,#fff,#faf8ff); }
.studio-promo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-promo-head>div { display: flex; align-items: center; gap: 8px; }
.studio-promo-head span { padding: 5px 8px; border-radius: 99px; background: #f0ecff; color: #6f4cd5; font-size: 11px; font-weight: 800; }
.studio-promo-head b { color: #292a31; font-size: 14px; }
.studio-promo-head small { color: #a0a1aa; font-size: 10px; letter-spacing: .08em; }
.studio-promo>p { margin: 10px 0 12px; color: #777986; font-size: 12px; line-height: 1.6; }
.studio-promo-styles { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.studio-promo-styles label { flex: 0 0 auto; cursor: pointer; }
.studio-promo-styles input { position: absolute; opacity: 0; pointer-events: none; }
.studio-promo-styles span { display: block; padding: 9px 11px; border: 1px solid #e3e3ea; border-radius: 12px; background: #fff; color: #5f606b; font-size: 12px; font-weight: 700; }
.studio-promo-styles input:checked+span { border-color: #ff6fae; background: #fff0f7; color: #c83677; }
.studio-promo-actions { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 10px; margin-top: 12px; }
.studio-promo-actions select,.studio-promo-actions button { min-height: 44px; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 750; }
.studio-promo-actions select { border: 1px solid #e2e2e9; padding: 0 10px; background: #fff; color: #555762; }
.studio-promo-actions button { border: 0; background: linear-gradient(135deg,#7a5bea,#ff6fae); color: #fff; cursor: pointer; }
.studio-promo-actions button:disabled { opacity: .6; cursor: wait; }
.studio-promo-status { min-height: 20px; }
.studio-promo-result { margin-top: 12px; overflow: hidden; border: 1px solid #e7e7ed; border-radius: 16px; background: #fff; }
.studio-promo-result img { display: block; width: 100%; max-height: 460px; object-fit: contain; background: #f0f0f4; }
.studio-promo-result>div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.studio-promo-result a,.studio-promo-result button { display: flex; min-height: 42px; align-items: center; justify-content: center; border: 0; border-radius: 11px; font: inherit; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.studio-promo-result a { background: #2d244f; color: #fff; }
.studio-promo-result button { background: #fff0f7; color: #c83677; }
.studio-format { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.studio-format label { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #e7e7ed; border-radius: 14px; background: #fff; color: #555762; font-size: 14px; }
.studio-format input { accent-color: #ff6fae; }
.studio-note { padding: 13px 15px; border-radius: 14px; background: #fff8e8; color: #725b25; font-size: 13px; line-height: 1.6; }
.studio-render {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: #ff6fae;
  color: #fff;
  box-shadow: 0 9px 0 #2d244f;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.studio-render:active { transform: translateY(3px); box-shadow: 0 6px 0 #2d244f; }
.studio-render:disabled { cursor: wait; opacity: .68; }
.studio-progress { height: 6px; overflow: hidden; border-radius: 99px; background: #ececf2; }
.studio-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff6fae,#a37dff); transition: width .2s linear; }
.studio-progress-text { min-height: 20px; margin: 7px 0 0; color: #6f7180; font-size: 13px; }
.studio-preview {
  position: sticky;
  top: 20px;
  padding: 14px;
  border-radius: 24px;
  background: #17171c;
  box-shadow: 0 24px 50px rgba(23,23,28,.22);
}
.studio-preview canvas,.studio-preview video { display: block; width: 100%; aspect-ratio: 9/16; border-radius: 16px; background: #20212a; object-fit: cover; }
.studio-preview video[hidden],.studio-preview canvas[hidden] { display: none; }
.studio-preview-label { display: flex; justify-content: space-between; gap: 10px; padding: 12px 4px 2px; color: #c9c9d2; font-size: 12px; }
.studio-download {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  border-radius: 14px;
  background: #fff;
  color: #17171c;
  font-weight: 800;
  text-decoration: none;
}
.studio-download.ready { display: flex; }
.studio-heading-tools { display: flex; align-items: center; gap: 8px; }
.studio-heading-tools>button { border: 1px solid #e4e4eb; border-radius: 99px; padding: 8px 11px; background: #fff; color: #4d4e58; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.studio-heading-tools>button b { display: inline-grid; min-width: 19px; height: 19px; margin-left: 4px; place-items: center; border-radius: 50%; background: #fff0f7; color: #c83677; font-size: 10px; }
.studio-history { margin: -4px 0 20px; padding: 16px; border: 1px solid #e7e7ed; border-radius: 18px; background: #f8f8fb; }
.studio-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.studio-history-head>div { display: grid; gap: 3px; }
.studio-history-head b { color: #292a31; font-size: 15px; }
.studio-history-head span { color: #858793; font-size: 11px; }
.studio-history-head button { border: 0; background: transparent; color: #a24670; font-size: 12px; cursor: pointer; }
.studio-history-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.studio-history-list>p { grid-column: 1/-1; margin: 8px 0; color: #8c8e99; font-size: 12px; text-align: center; }
.studio-history-list article { min-width: 0; overflow: hidden; border: 1px solid #e5e5eb; border-radius: 14px; background: #fff; }
.studio-history-list article>img,.studio-history-list article>video { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #17171c; }
.studio-history-list article>div { display: grid; gap: 5px; padding: 10px; }
.studio-history-list article b { overflow: hidden; color: #34343c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.studio-history-list article span { color: #92939c; font-size: 10px; }
.studio-history-list article>div>div { display: flex; gap: 6px; margin-top: 3px; }
.studio-history-list article a,.studio-history-list article button { flex: 1; border: 0; border-radius: 8px; padding: 7px; background: #f2efff; color: #6044b5; font: inherit; font-size: 10px; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.studio-history-list article button { background: #fff0f4; color: #b7486f; }
@media (max-width: 760px) {
  .video-studio { width: calc(100% - 32px); margin-top: 16px; padding: 20px; border-radius: 24px; }
  .studio-heading { gap: 12px; padding-right: 30px; }
  .studio-close { top: -6px; right: -6px; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-preview { position: static; width: min(260px,100%); margin: 0 auto; grid-row: 1; }
  .studio-format { grid-template-columns: 1fr; }
  .studio-voice-row { grid-template-columns: 1fr; }
  .video-studio-entry { width: 100%; margin-bottom: 20px; }
  .studio-heading-tools { align-self: flex-start; }
  .studio-history-list { display: flex; overflow-x: auto; }
  .studio-history-list article { flex: 0 0 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-studio-entry,.studio-render,.studio-progress i { transition: none; }
}
