/* High-fidelity video prompt reverse engineering. */
.hot-replication-card {
  background:
    radial-gradient(circle at 10% 2%, rgba(87, 111, 226, .10), transparent 25%),
    #f5f7fc;
}

.hot-replication-head {
  border-bottom-color: rgba(74, 87, 143, .10);
  background: rgba(249, 250, 255, .95);
  box-shadow: 0 8px 24px rgba(42, 54, 99, .06);
  backdrop-filter: blur(18px);
}

.hot-replication-guide {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 12px 14px 0;
  padding: 14px;
  border: 1px solid rgba(93, 111, 207, .16);
  border-radius: 19px;
  background: linear-gradient(135deg, #eef2ff, #f3edff);
}

.hot-replication-guide > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #5b78e6, #7659cd);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 9px 18px rgba(82, 91, 190, .20);
}

.hot-replication-guide > div { display: grid; gap: 4px; min-width: 0; }
.hot-replication-guide strong { color: #28344e; font-size: 13px; font-weight: 850; }
.hot-replication-guide small { color: #788399; font-size: 9px; line-height: 1.45; }

.hot-replication-form {
  margin: 11px 14px 0;
  padding: 14px;
  border: 1px solid rgba(79, 96, 151, .11);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 30px rgba(40, 54, 97, .07);
}

.hot-replication-upload {
  border: 1px dashed rgba(91, 120, 230, .34) !important;
  border-radius: 17px !important;
  background: linear-gradient(135deg, #f4f6ff, #f8f4ff) !important;
}

.hot-replication-upload > span::before {
  content: "＋";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 7px;
  border-radius: 8px;
  background: #6375dc;
  color: #fff;
  font-size: 14px;
}

.hot-replication-form label > span em {
  margin-left: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #eef1f8;
  color: #8791a3;
  font-size: 8px;
  font-style: normal;
}

.hot-replication-authorized {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  padding: 10px 11px;
  border: 1px solid rgba(88, 105, 156, .10);
  border-radius: 13px;
  background: #f8f9fc;
}

.hot-replication-authorized input {
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px;
  min-height: 18px !important;
  padding: 0 !important;
  accent-color: #6375dc;
}

.hot-replication-authorized span { color: #68758a; font-size: 10px; line-height: 1.4; }
.hot-replication-form .primary { background: linear-gradient(135deg, #5978e7, #7256cc); box-shadow: 0 10px 22px rgba(75, 82, 157, .18); }

.hot-replication-result { padding: 12px 14px 24px; }
.hot-replication-sheet.result-mode .hot-replication-guide,
.hot-replication-sheet.result-mode .hot-replication-form { display: none; }
.hot-replication-sheet.result-mode .hot-replication-result { padding-top: 14px; }
.hot-replication-summary { display: grid; gap: 10px; }
.hot-replication-kv { border-color: rgba(91, 120, 230, .16); border-radius: 17px; background: linear-gradient(135deg, #f1f4ff, #f6f1ff); }

.hot-replication-frames {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.hot-replication-frames figure {
  position: relative;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  margin: 0;
  border-radius: 12px;
  background: #111827;
}

.hot-replication-frames img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.hot-replication-frames figcaption {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(8, 13, 24, .68);
  color: #fff;
  font-size: 8px;
  backdrop-filter: blur(6px);
}

.hot-replication-summary section {
  border-color: rgba(86, 104, 160, .11);
  border-radius: 17px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 20px rgba(40, 54, 97, .045);
}

.hot-replication-timeline { border-left: 3px solid #6375dc !important; }
.hot-replication-timeline li { position: relative; padding-left: 3px; }
.hot-replication-timeline li::marker { color: #6375dc; font-weight: 900; }
.hot-replication-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hot-replication-detail-grid section { min-width: 0; }
.hot-replication-detail-grid h4 { color: #35415a; }

.hot-replication-master-prompt {
  border-color: rgba(91, 120, 230, .20) !important;
  background: linear-gradient(145deg, #f8f9ff, #f7f3ff) !important;
}

.hot-replication-master-prompt pre {
  max-height: 300px;
  border: 1px solid rgba(91, 120, 230, .12);
  background: rgba(255, 255, 255, .88);
  color: #34415a;
}

.hot-replication-negative-prompt { background: #fff9f5 !important; }
.hot-replication-negative-prompt h4 { color: #b46645; }
.hot-replication-actions { grid-template-columns: 1.35fr 1fr; }
.hot-replication-actions .hot-replication-use { border-color: transparent; background: linear-gradient(135deg, #5978e7, #7256cc); }
.hot-replication-actions .hot-replication-use strong,
.hot-replication-actions .hot-replication-use small { color: #fff; }
.hot-replication-actions .hot-replication-copy { border-color: rgba(91, 120, 230, .18); background: #f3f5ff; }
.hot-replication-actions .hot-replication-new {
  grid-column: 1 / -1;
  min-height: 52px;
  border-color: rgba(91, 120, 230, .22);
  background: linear-gradient(135deg, #eef2ff, #f3edff);
}
.hot-replication-actions .hot-replication-new strong { color: #5267c8; }
.hot-replication-actions .hot-replication-new small { color: #7b86a2; }
.hot-replication-actions .hot-replication-close-result {
  grid-column: 1 / -1;
  min-height: 44px;
  border: 1px solid rgba(104, 117, 138, .18);
  border-radius: 14px;
  background: #f6f7fa;
  color: #5f6978;
}
.hot-replication-safe { border-radius: 12px; background: #f6f7fa; color: #8b94a3; }

html.theme-dark .hot-replication-card { background: radial-gradient(circle at 10% 2%, rgba(85, 111, 196, .12), transparent 25%), #090b0e; }
html.theme-dark .hot-replication-head { background: rgba(9, 11, 14, .94); border-bottom-color: rgba(217, 169, 87, .14); }
html.theme-dark .hot-replication-guide { border-color: rgba(112, 137, 218, .16); background: linear-gradient(135deg, #171e31, #221a31); }
html.theme-dark .hot-replication-guide strong { color: #eef2fa !important; }
html.theme-dark .hot-replication-guide small { color: #969dad !important; }
html.theme-dark .hot-replication-form,
html.theme-dark .hot-replication-summary section { border-color: rgba(217, 169, 87, .13); background: #111419; box-shadow: none; }
html.theme-dark .hot-replication-upload { border-color: rgba(112, 137, 218, .26) !important; background: linear-gradient(135deg, #171d2d, #211a2f) !important; }
html.theme-dark .hot-replication-authorized { border-color: rgba(137, 153, 183, .12); background: #15191f; }
html.theme-dark .hot-replication-kv,
html.theme-dark .hot-replication-master-prompt { border-color: rgba(112, 137, 218, .18) !important; background: linear-gradient(135deg, #171d2e, #211a2f) !important; }
html.theme-dark .hot-replication-master-prompt pre { border-color: rgba(112, 137, 218, .15); background: #0d1118; color: #d9deea; }
html.theme-dark .hot-replication-negative-prompt { background: #211713 !important; }
html.theme-dark .hot-replication-actions .hot-replication-copy { border-color: rgba(112, 137, 218, .18); background: #171d2d; }
html.theme-dark .hot-replication-actions .hot-replication-new { border-color: rgba(112, 137, 218, .20); background: linear-gradient(135deg, #171d2e, #211a2f); }
html.theme-dark .hot-replication-actions .hot-replication-new strong { color: #bdc8f6; }
html.theme-dark .hot-replication-actions .hot-replication-new small { color: #8e98ad; }
html.theme-dark .hot-replication-actions .hot-replication-close-result { border-color: rgba(137, 153, 183, .14); background: #15191f; color: #aeb6c4; }
html.theme-dark .hot-replication-safe { background: #15181d; color: #828a98; }

@media (max-width: 350px) {
  .hot-replication-detail-grid { grid-template-columns: 1fr; }
  .hot-replication-frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hot-replication-actions { grid-template-columns: 1fr; }
}
