/* ==========================================================================
   Magi 2 AI Video Generator 高保真玻璃输入卡片 + 8条成片无缝滚动示例条 + 桌面透明悬浮栏
   ========================================================================== */
.mp-composer-shell {
  width: 100%;
  max-width: 844px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 40;
}

.mp-composer-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  position: relative;
  z-index: 20;
}

/* 桌面端左侧竖向 4 图标参考轨 */
.mp-rail {
  flex: 0 0 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  border-radius: 18px;
  background: rgba(14, 14, 18, 0.66);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52);
  position: relative;
  z-index: 15;
}

.mp-rail-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.mp-rail-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.mp-rail-btn.is-active {
  background: var(--primary);
  color: #0B0B10;
  box-shadow: 0 0 18px rgba(198, 242, 78, 0.34);
}

.mp-rail-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(14, 16, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 60;
}

.mp-rail-btn:hover .mp-rail-tooltip,
.mp-rail-btn:focus-visible .mp-rail-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* 玻璃输入主卡（显式抬高层级，确保浮层压在下方视频案例之上） */
.mp-composer-card {
  flex: 1;
  min-width: 0;
  background: rgba(14, 14, 18, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52);
  padding: 16px 16px 14px;
  position: relative;
  z-index: 30;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.mp-composer-card.is-focused {
  border-color: rgba(198, 242, 78, 0.38);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(198, 242, 78, 0.16);
}

.mp-mobile-tabs,
.mp-mobile-model-row {
  display: none;
}

.mp-composer-top {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 12px;
}

.mp-frames-group {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}

.mp-frame-slot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.mp-frame-slot {
  width: 60px;
  height: 66px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.mp-frame-slot:hover {
  border-color: rgba(198, 242, 78, 0.42);
  background: rgba(198, 242, 78, 0.06);
  color: var(--text);
}

.mp-frame-slot.has-file {
  border-style: solid;
  border-color: rgba(198, 242, 78, 0.5);
  color: #fff;
}

.mp-frame-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.mp-frame-clear {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 3;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: none;
  background: rgba(8, 9, 13, 0.84);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mp-frame-clear:hover {
  background: var(--accent);
  color: #0B0B10;
}

.mp-frame-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mp-frame-optional {
  font-size: 12px;
  color: var(--muted);
  line-height: 1;
}

.mp-swap-btn {
  width: 24px;
  height: 24px;
  margin-top: 21px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, transform .2s ease;
}

.mp-swap-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.mp-swap-btn.is-rotated {
  transform: rotate(180deg);
}

.mp-prompt-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mp-prompt-input {
  width: 100%;
  min-height: 86px;
  resize: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.55;
  padding: 4px 2px;
  outline: none;
}

.mp-prompt-input::placeholder {
  color: rgba(244, 244, 247, 0.44);
}

.mp-char-count {
  display: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-top: 6px;
}

/* 多模态参考紧凑展开区（仅切换 Multimodal Reference 时可见） */
.mp-mm-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-mm-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.mp-mm-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.mp-mm-quota {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.mp-url-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mp-url-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(8, 9, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mp-ref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.mp-upload-note {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.mp-ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: var(--text);
}

.mp-ref-chip-kind {
  font-family: var(--font-mono);
  color: var(--primary);
}

.mp-ref-chip button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0 2px;
}

/* 桌面端底栏严格单行胶囊 */
.mp-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 35;
}

.mp-composer-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
}

.mp-pill-wrap {
  position: relative;
  z-index: 40;
}

.mp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.mp-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.mp-pill[aria-expanded="true"] {
  border-color: rgba(198, 242, 78, 0.4);
  background: rgba(198, 242, 78, 0.09);
}

.mp-pill--model {
  cursor: default;
  background: rgba(255, 255, 255, 0.035);
}

.mp-pill--mono {
  font-family: var(--font-mono);
  font-size: 12px;
}

.mp-audio-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(198, 242, 78, 0.7);
}

.mp-pill--audio.is-muted .mp-audio-dot {
  background: var(--muted);
  box-shadow: none;
}

.mp-pill--audio.is-muted {
  color: var(--muted);
}

.mp-composer-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mp-credits-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.mp-credits-tag strong {
  color: var(--text);
  font-weight: 600;
}

.mp-generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #0B0B10;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(198, 242, 78, 0.24);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.mp-generate-btn:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(198, 242, 78, 0.32);
}

.mp-generate-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.mp-generate-mobile-credits {
  display: none;
}

/* 浮层（模式下拉 + 参数设置） */
.mp-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 262px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(16, 18, 26, 0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
  z-index: 120;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.mp-popover.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mp-popover--settings {
  left: auto;
  right: 0;
  min-width: 292px;
  padding: 14px;
}

.mp-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mp-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.mp-dropdown-item.is-selected {
  background: rgba(198, 242, 78, 0.12);
}

.mp-dropdown-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.mp-dropdown-desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.mp-dropdown-check {
  color: var(--primary);
  opacity: 0;
  flex-shrink: 0;
}

.mp-dropdown-item.is-selected .mp-dropdown-check {
  opacity: 1;
}

.mp-setting-group + .mp-setting-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mp-setting-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.mp-setting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.mp-setting-grid.is-auto {
  opacity: .55;
}

.mp-setting-chip {
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-setting-chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.mp-setting-chip.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #0B0B10;
  font-weight: 700;
}

.mp-setting-fixed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(198, 242, 78, 0.08);
  border: 1px solid rgba(198, 242, 78, 0.34);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
}

.mp-composer-footnote {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  max-width: none;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 244, 247, 0.72);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.mp-composer-footnote a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mp-feedback {
  position: relative;
  z-index: 5;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(18, 20, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  line-height: 1.5;
}

.mp-feedback.is-error {
  border-color: rgba(255, 122, 89, 0.45);
  background: rgba(255, 122, 89, 0.12);
}

.mp-feedback.is-ok {
  border-color: rgba(198, 242, 78, 0.45);
}

.mp-feedback-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mp-output {
  position: relative;
  z-index: 5;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(18, 20, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mp-output video {
  width: 100%;
  border-radius: 12px;
  background: #08090D;
}

.mp-output-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* 卡片下方：8 条全部 MAGI-2 真实成片无缝横向滚动轨道（悬停或聚焦自动暂停，绝不遮挡上方输入卡浮层） */
.mp-hero-reels-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 30px auto 0;
  overflow: hidden;
  padding: 6px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.mp-hero-reels-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  animation: mp-reels-marquee 46s linear infinite;
  will-change: transform;
}

.mp-hero-reels-viewport:hover .mp-hero-reels-track,
.mp-hero-reels-viewport:focus-within .mp-hero-reels-track {
  animation-play-state: paused;
}

@keyframes mp-reels-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 7px), 0, 0); }
}

.mp-reel-card {
  position: relative;
  flex: 0 0 236px;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #12141B;
  padding: 0;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transition: transform .25s ease, border-color .18s ease, box-shadow .25s ease;
}

.mp-reel-card:hover,
.mp-reel-card.is-selected {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(198, 242, 78, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.62);
}

.mp-reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-reel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 9, 13, 0.9) 100%);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.mp-reel-card:hover .mp-reel-caption,
.mp-reel-card:focus-visible .mp-reel-caption {
  opacity: 1;
  transform: translateY(0);
}

.mp-reel-prompt {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-reel-hint {
  display: inline-block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
}

.mp-spec-strip {
  position: relative;
  z-index: 1;
  margin: 22px auto 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(244, 244, 247, 0.72);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
}

/* 桌面端非首屏底部透明悬浮简洁输入框 */
.mp-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 18px);
  width: min(640px, calc(100vw - 48px));
  height: 58px;
  padding: 8px 10px 8px 12px;
  border-radius: 20px;
  background: rgba(12, 13, 19, 0.52);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 860;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease, transform .26s ease, background-color .18s ease, border-color .18s ease;
}

.mp-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mp-dock:hover,
.mp-dock:focus-within {
  background: rgba(14, 15, 22, 0.84);
  border-color: rgba(255, 255, 255, 0.2);
}

.mp-dock:focus-within {
  border-color: rgba(198, 242, 78, 0.4);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(198, 242, 78, 0.16);
}

.mp-dock-frames {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.mp-dock-frame {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.mp-dock-frame:hover {
  border-color: rgba(198, 242, 78, 0.45);
  color: var(--text);
}

.mp-dock-frame.has-file {
  border-style: solid;
  border-color: rgba(198, 242, 78, 0.5);
  background: rgba(198, 242, 78, 0.16);
  color: var(--primary);
}

.mp-dock-swap {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}

.mp-dock-swap:hover {
  color: var(--text);
}

.mp-dock-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  outline: none;
  padding: 0 4px;
}

.mp-dock-input::placeholder {
  color: rgba(244, 244, 247, 0.48);
}

.mp-dock-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.mp-dock-send:hover,
.mp-dock.has-text .mp-dock-send {
  background: var(--primary);
  color: #0B0B10;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(198, 242, 78, 0.28);
}

@media (max-width: 900px) and (min-width: 769px) {
  .mp-composer-bar { flex-wrap: wrap; row-gap: 10px; }
  .mp-composer-submit { margin-left: auto; }
}

@media (max-width: 768px) {
  .mp-rail,
  .mp-dock { display: none !important; }
  .mp-composer-card { padding: 14px; border-radius: 20px; background: rgba(14, 15, 21, 0.8); }
  .mp-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
  }
  .mp-mobile-tab {
    min-height: 44px;
    padding: 0 8px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
  }
  .mp-mobile-tab.is-active { background: var(--primary); color: #0B0B10; font-weight: 700; }
  .mp-mobile-model-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
  }
  .mp-composer-top { flex-direction: column; gap: 12px; }
  .mp-frames-group {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    gap: 10px;
  }
  .mp-frame-slot-wrap { flex: 1; }
  .mp-frame-slot { width: 100%; height: 76px; border-style: solid; border-color: rgba(255, 255, 255, 0.08); }
  .mp-swap-btn { margin-top: 0; width: 44px; height: 44px; flex-shrink: 0; }
  .mp-prompt-box { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); }
  .mp-prompt-input { min-height: 92px; font-size: 15px; }
  .mp-char-count { display: block; }
  .mp-composer-bar { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 0; border-top: none; }
  .mp-pill-wrap--mode, .mp-pill--model { display: none; }
  .mp-composer-pills { width: 100%; justify-content: space-between; }
  .mp-pill { min-height: 44px; padding: 0 14px; }
  .mp-pill-wrap--settings { flex: 1; }
  .mp-pill-wrap--settings .mp-pill { width: 100%; justify-content: space-between; }
  .mp-popover--settings { left: 0; right: 0; min-width: 0; width: 100%; }
  .mp-setting-chip { min-height: 44px; }
  .mp-composer-submit { width: 100%; }
  .mp-credits-tag { display: none; }
  .mp-generate-btn { width: 100%; min-height: 48px; justify-content: space-between; padding: 0 18px; border-radius: 14px; font-size: 15px; }
  .mp-generate-mobile-credits {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(11, 11, 16, 0.14);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
  }
  /* 移动端改为手势自由横滑，只展示原 8 条不重复副本 */
  .mp-hero-reels-viewport {
    margin-top: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }
  .mp-hero-reels-viewport::-webkit-scrollbar { display: none; }
  .mp-hero-reels-track { animation: none; gap: 12px; }
  .mp-reel-card.is-clone { display: none; }
  .mp-reel-card { flex: 0 0 74vw; max-width: 280px; scroll-snap-align: start; }
  .mp-reel-caption { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-hero-reels-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .mp-hero-reels-track { animation: none; }
  .mp-reel-card.is-clone { display: none; }
}
