.fm-page { background: #f6f7f6; min-height: 100vh; }
.fm-wrap { padding: 12px 16px 24px; }
.fm-hero {
  border-radius: 16px; padding: 18px 16px; color: #fff; margin-bottom: 12px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 215, 0, .25), transparent 55%),
    linear-gradient(135deg, #1f5c48, #2d6b58 60%, #3d7f68);
  box-shadow: 0 2px 12px rgba(45, 107, 88, .25);
}
.fm-hero b { display: block; font-size: 18px; margin-bottom: 6px; }
.fm-hero p { margin: 0; font-size: 13px; line-height: 1.6; opacity: .92; }
.fm-quota {
  display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.18); font-size: 12px; font-weight: 600;
}
.fm-quota a { color: #ffe08a; margin-left: 6px; }
.fm-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.fm-label { display: block; margin: 14px 0 8px; font-size: 14px; font-weight: 700; color: #1a3c34; }
.fm-label:first-child { margin-top: 0; }
.fm-label small { font-weight: 400; color: #8a9590; font-size: 12px; }
.fm-hint { margin: 6px 0 0; color: #8a9590; font-size: 12px; line-height: 1.5; }
.fm-input, .fm-area {
  width: 100%; box-sizing: border-box; border: 1px solid #e3e8e6; border-radius: 10px;
  padding: 11px 12px; font-size: 15px; background: #fff; color: #1a1a1a;
}
.fm-area { min-height: 88px; resize: vertical; font-family: inherit; }

/* 主题风格 */
.fm-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm-theme {
  border: 1.5px solid #e3e8e6; border-radius: 12px; padding: 10px 12px; cursor: pointer;
  background: #fafbfa; transition: border-color .15s, background .15s;
}
.fm-theme b { display: block; font-size: 14px; color: #1a3c34; }
.fm-theme span { display: block; margin-top: 3px; font-size: 11px; color: #6b7a75; line-height: 1.4; }
.fm-theme.active { border-color: #1a5c4a; background: #e7f4ee; }
.fm-theme.active b { color: #1a5c4a; }

/* 照片格 */
.fm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fm-cell {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #eef1f0;
}
.fm-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-cell .rm {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 22px; text-align: center;
}
.fm-cell .idx {
  position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 11px;
}
.fm-cell.uploading::after {
  content: '上传中…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.7); color: #1a5c4a; font-size: 12px; font-weight: 600;
}
.fm-add {
  aspect-ratio: 1 / 1; border: 1.5px dashed #c9d3cf; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; color: #8a9590; font-size: 28px; background: #fafbfa;
}

/* 视频 */
.fm-video { display: flex; align-items: center; gap: 10px; }
.fm-video-add {
  border: 1.5px dashed #c9d3cf; border-radius: 10px; padding: 12px; background: #fafbfa;
  color: #1a5c4a; font-size: 14px; width: 100%;
}
.fm-video-chip {
  display: flex; align-items: center; gap: 8px; background: #e7f4ee; border-radius: 10px; padding: 10px 12px;
  font-size: 13px; color: #1a5c4a; width: 100%; box-sizing: border-box;
}
.fm-video-chip video { width: 72px; height: 48px; border-radius: 6px; object-fit: cover; background: #000; }
.fm-video-chip .rm { margin-left: auto; color: #6b7a75; font-size: 18px; padding: 0 4px; }

/* 时长 */
.fm-seg { display: flex; gap: 8px; }
.fm-seg button {
  flex: 1; border: 1.5px solid #e3e8e6; border-radius: 10px; padding: 10px 0; background: #fafbfa;
  font-size: 14px; color: #3d4f49;
}
.fm-seg button.active { border-color: #1a5c4a; background: #e7f4ee; color: #1a5c4a; font-weight: 700; }

.fm-submit {
  width: 100%; margin-top: 18px; border: none; border-radius: 12px; padding: 14px;
  background: #1a5c4a; color: #fff; font-size: 16px; font-weight: 700;
}
.fm-submit:disabled { opacity: .55; }
.fm-disclaimer { margin: 10px 0 0; color: #9aa5a0; font-size: 11px; line-height: 1.5; }
.fm-muted { color: #8a9590; font-size: 12px; margin: 4px 0 0; }
.fm-empty { color: #6b7280; font-size: 14px; text-align: center; padding: 24px 8px; margin: 0; }
.fm-section-title { margin: 18px 0 10px; font-size: 16px; font-weight: 700; color: #1a3c34; }

/* 我的短片 */
.fm-item { background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.fm-player { position: relative; background: #0d1a16; }
.fm-player video { width: 100%; max-height: 70vh; display: block; background: #000; }
.fm-player.portrait video { max-height: 78vh; }
.fm-cover { position: relative; aspect-ratio: 16 / 9; background: #0d1a16 center / cover no-repeat; }
.fm-cover .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; background: rgba(13, 26, 22, .55); gap: 8px; padding: 12px; text-align: center;
}
.fm-cover .overlay b { font-size: 15px; }
.fm-cover .overlay span { font-size: 12px; opacity: .85; }
.fm-progress { width: 60%; height: 4px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.fm-progress i { display: block; height: 100%; width: 35%; background: #ffe08a; border-radius: 999px; animation: fmSlide 1.6s ease-in-out infinite; }
@keyframes fmSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.fm-body { padding: 12px 14px 14px; }
.fm-body h3 { margin: 0; font-size: 16px; color: #1a3c34; }
.fm-body p { margin: 6px 0 0; font-size: 13px; color: #4b5b56; line-height: 1.6; }
.fm-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.fm-tag { padding: 2px 8px; border-radius: 999px; background: #eef1f0; color: #4b5b56; font-size: 12px; }
.fm-tag.ok { background: #e7f4ee; color: #1a6b5c; }
.fm-tag.bad { background: #fdecec; color: #b42318; }
.fm-tag.run { background: #fff5d6; color: #8a5a00; }
.fm-actions { display: flex; gap: 8px; margin-top: 12px; }
.fm-actions a, .fm-actions button {
  flex: 1; text-align: center; border-radius: 10px; padding: 10px 0; font-size: 14px; text-decoration: none;
  border: 1px solid #1a5c4a; color: #1a5c4a; background: #fff;
}
.fm-actions .primary { background: #1a5c4a; color: #fff; }
.fm-error { margin-top: 8px; color: #b42318; font-size: 13px; }
.fm-share-card { padding: 0; overflow: hidden; }
.fm-share-title { margin: 12px 14px 0; font-size: 18px; color: #1a3c34; }
.fm-share-synopsis { margin: 6px 14px 0; font-size: 14px; color: #4b5b56; line-height: 1.6; }
.fm-share-card .fm-muted, .fm-share-card .fm-disclaimer { margin-left: 14px; margin-right: 14px; }
.fm-cta {
  display: block; margin: 14px; padding: 12px; border-radius: 12px; text-align: center;
  background: #1a5c4a; color: #fff; font-weight: 700; text-decoration: none;
}
.fm-toast {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); max-width: 86vw;
  background: #1a3c34; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 14px; z-index: 20;
}
.fm-toast.err { background: #b42318; }
