.poster-preview {
  width: min(920px, calc(100vw - 32px));
  height: calc(100dvh - 32px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid #d9c8b4;
  border-radius: 16px;
  background: #f8f3eb;
  color: #44332a;
  box-shadow: 0 20px 80px rgba(25, 17, 10, .28);
  overflow: hidden;
}
.poster-preview[open] { display: flex; flex-direction: column; }
.poster-preview::backdrop { background: rgba(31, 23, 17, .7); }
.poster-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #e2d6c6;
  background: #fffaf3;
}
.poster-preview__header h2 { margin: 0; color: #796a5b; font-size: 13px; font-weight: 500; }
.poster-preview__return {
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #44332a;
  color: #fffaf3;
  font: 600 15px/1.4 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.poster-preview__return:focus-visible { outline: 3px solid #b39b78; outline-offset: 3px; }
.poster-preview__scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.poster-preview__image { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; border: 0; border-radius: 0; }
.poster-preview__error { margin: 0; padding: 24px; color: #8a3b30; text-align: center; }
.poster-preview__error[hidden] { display: none; }

@media (max-width: 600px) {
  .poster-preview { width: 100%; height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .poster-preview__header { padding: max(8px, env(safe-area-inset-top)) 12px 8px; }
  .poster-preview__scroll { padding-bottom: env(safe-area-inset-bottom); }
}
