.yanyue-prompt-material-preview {
  position: fixed;
  z-index: 150;
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(104, 212, 208, 0.35);
  border-radius: 10px;
  color: var(--text, #f2f3f0);
  background: #11171d;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48);
  font: 12px/1.5 "Maple Mono CN", "Microsoft YaHei UI", sans-serif;
}

.yanyue-prompt-material-preview header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.yanyue-prompt-material-preview header strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.prompt-preview-token {
  flex-shrink: 0;
  color: var(--teal, #7dd7d2);
  font-size: 11px;
}

.prompt-preview-stage {
  display: grid;
  place-items: center;
  min-height: 180px;
  overflow: hidden;
  border-radius: 6px;
  background: #080b10;
}

.prompt-preview-stage img,
.prompt-preview-stage video {
  display: block;
  width: 100%;
  height: 220px;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}

.yanyue-prompt-material-preview[data-media-type="audio"] .prompt-preview-stage {
  min-height: 64px;
  background: transparent;
}

.prompt-preview-stage audio {
  display: block;
  width: 100%;
  height: 54px;
}

.prompt-preview-status {
  margin: 8px 2px 0;
  color: var(--muted, #a5b0b7);
}

.prompt-preview-play {
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(104, 212, 208, 0.4);
  border-radius: 5px;
  color: var(--teal, #7dd7d2);
  background: rgba(104, 212, 208, 0.08);
  cursor: pointer;
}

.prompt-preview-play:hover,
.prompt-preview-play:focus-visible {
  border-color: var(--teal, #7dd7d2);
  background: rgba(104, 212, 208, 0.16);
  outline: 2px solid transparent;
}

.yanyue-prompt-material-preview [hidden] {
  display: none;
}
