.library-viewing { overflow: hidden; }
.library-viewer { width: min(1120px, calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid #decabb; border-radius: 18px; background: #fbfaf8; color: #111827; box-shadow: 0 40px 120px #0006; overflow: auto; }
.library-viewer::backdrop { background: #151820bd; backdrop-filter: blur(7px); }
.viewer-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid #dedbd4; }
.viewer-close { border: 1px solid #d7d0c8; background: #fff; border-radius: 50%; height: 44px; width: 44px; font-size: 15px; }
.viewer-top { position: sticky; top: 0; z-index: 2; background: #fbfaf8f5; backdrop-filter: blur(10px); }
.viewer-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 22px; }
.viewer-actions .viewer-enquire { background: #111827; color: #fff; border: 1px solid #111827; border-radius: 8px; padding: 13px 16px; font-size: 13px; font-weight: 600; text-align: center; }
.viewer-copy { min-height: 44px; border: 1px solid #d9bba3; border-radius: 8px; background: #fff3e7; padding: 10px 14px; font-size: 12px; }
.viewer-share-status { font-size: 12px; line-height: 1.6; color: #57534e; }
.viewer-share-status:empty { display: none; }
.viewer-share-link { width: 100%; padding: 8px; border: 1px solid #d9bba3; border-radius: 6px; font-size: 12px; margin-top: 8px; }
.viewer-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 0; }
.viewer-stage { padding: 24px; background: #efe8de; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.viewer-stage video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #111827; border-radius: 9px; }
.viewer-status { min-height: 34px; padding-top: 13px; font-size: 12px; line-height: 1.5; color: #4e5058; }
.viewer-details { min-width: 0; padding: 28px; }
.viewer-meta { font-size: 10px; color: #914015; font-weight: 600; margin-bottom: 14px; }
.viewer-details h2 { font-size: 26px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; }
.viewer-description { font-size: 13px; color: #565961; line-height: 1.7; margin: 17px 0; }
.viewer-guide { font-size: 12px; font-weight: 600; text-decoration: underline !important; text-underline-offset: 4px; }
.viewer-perspectives { border-top: 1px solid #dedbd4; margin-top: 27px; padding-top: 23px; }
.viewer-perspectives h3 { font-size: 11px; margin-bottom: 12px; font-weight: 600; }
.viewer-related { display: grid; gap: 7px; }
.viewer-related button { text-align: left; padding: 11px 13px; background: #fff; border: 1px solid #dedbd4; border-radius: 7px; font-size: 12px; }
.viewer-related button[aria-pressed="true"] { background: #f4dcc5; border-color: #c98c5d; }
.viewer-related button:hover { border-color: #994619; }
.viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 24px; border-top: 1px solid #dedbd4; }
.viewer-bottom span { font-size: 11px; color: #62636a; }
.viewer-bottom button { border: 0; background: transparent; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
@media (max-width: 760px) {
  .library-viewer { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .viewer-layout { grid-template-columns: 1fr; }
  .viewer-top { padding: 12px 17px; }
  .viewer-stage { padding: 17px; }
  .viewer-status { min-height: 0; }
  .viewer-status:empty { display: none; }
  .viewer-details { padding: 22px; }
  .viewer-details h2 { font-size: 23px; }
  .viewer-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .viewer-related button { font-size: 10px; padding: 10px 6px; text-align: center; }
  .viewer-bottom { padding: 16px 22px; }
  .viewer-bottom span { display: none; }
}
