/* ===== GENERATE WAITING ===== */
.gen-waiting-card {
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.gen-waiting-thumb {
  width: 120px;
  height: 160px;
  border-radius: 16px;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
}

.gen-waiting-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gen-waiting-thumb > div {
  width: 100%;
  height: 100%;
}

.gen-waiting-emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.gen-waiting-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.gen-waiting-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.gen-waiting-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.gen-waiting-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.gen-waiting-countdown {
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
}

.gen-minimize-btn {
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.gen-waiting-social {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: opacity 0.3s ease;
  min-height: 20px;
}

/* ===== RESULT IMAGE WITH LOCK ===== */
.result-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  max-width: 220px;
  margin: 16px auto;
  border: 3px solid rgba(255,255,255,0.2);
}

.result-image-wrap img.result-image {
  width: 100%;
  display: block;
}

.result-image-wrap.locked img.result-image {
  filter: blur(3px) brightness(0.7);
}

.result-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.result-lock-icon {
  font-size: 2rem;
}

.result-lock-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 0 12px;
}

.watermark.hidden {
  display: none;
}

/* ===== SHARE BAR PRIMARY ===== */
.share-btn-primary {
  background: var(--accent);
  color: #000;
  flex: 1.5;
}

.share-btn-primary .share-icon {
  background: rgba(0,0,0,0.15);
}

/* ===== UNLOCK CTA UNLOCKED ===== */
.unlock-cta.unlocked {
  text-align: center;
  padding: 16px;
}

.unlock-cta.unlocked .unlock-title {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}

/* ===== SIMPLE RESULT PAGE (template) ===== */
.result-simple-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

.result-simple-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  width: 240px;
  max-width: 65vw;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.result-simple-img-wrap img.result-simple-img {
  width: 100%;
  display: block;
}

.result-wm {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.result-wm-icon {
  font-size: 0.7rem;
}

.result-wm-text {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}

.result-simple-img-wrap.locked img.result-simple-img {
  filter: blur(2px) brightness(0.75);
}

.result-simple-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.result-simple-lock-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.result-simple-lock-text {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 0 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.result-simple-wm {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.35);
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.save-bar-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #000;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px var(--accent-soft);
}

.save-bar-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px var(--accent-soft);
}

.save-bar-btn .save-bar-icon {
  font-size: 1.2rem;
}

.share-row-mini {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}

.share-mini-btn {
  flex: 1;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.share-mini-btn .brand-svg-icon,
.share-btn .share-icon .brand-svg-icon {
  display: block;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.share-mini-btn:active {
  background: var(--bg-card-hover);
}

.result-unlocked-tip {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

/* ===== 结果页热门推荐 ===== */
.result-hot {
  margin-top: 18px;
}
.result-hot .section-title {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 14px 0 8px;
  color: var(--text);
}
.result-hot-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.result-hot-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 92px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  font-family: inherit;
}
.result-hot-card .rh-emoji { font-size: 1.5rem; }
.result-hot-card .rh-name {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 86px;
}
.result-hot-card .rh-uses { font-size: 0.58rem; color: var(--text-muted); }
.result-hot-empty { font-size: 0.72rem; color: var(--text-muted); padding: 8px 0; }

/* ===== 剪映式文字预设 ===== */
.editor-preset-strip {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.editor-preset {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.editor-preset.active {
  background: var(--accent);
  color: #062b21;
  border-color: transparent;
}
