.book-film-trigger {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.book-film-trigger .book-front { display: block; }

.book-film-label {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: #0c2330;
  color: var(--gold);
  font: 600 12px/1.25 system-ui, sans-serif;
  white-space: nowrap;
}

.book-film-trigger:is(:hover, :focus-visible) .book-film-label {
  background: var(--gold);
  color: var(--bg);
}

html:has(.book-film-dialog[open]) { overflow: hidden; }

.book-film-dialog {
  width: calc(100% - 24px);
  max-width: min(1080px, calc((100dvh - 108px) * 16 / 9));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(10px, 2vw, 20px);
  border: 1px solid #bfa16380;
  border-radius: 8px;
  background: #0c2330;
  color: var(--text);
  box-shadow: 0 24px 90px #0009;
  overscroll-behavior: contain;
}

.book-film-dialog::backdrop { background: #03121aec; }

.book-film-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.book-film-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(23px, 4vw, 36px);
  line-height: 1.15;
}

.book-film-meta {
  margin: 0;
  color: var(--muted);
  font: 500 12px/1.4 system-ui, sans-serif;
}

.book-film-close {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: 600 14px/1.25 system-ui, sans-serif;
  white-space: nowrap;
}

.book-film-close:hover { border-color: var(--gold); }
.book-film-close:focus-visible { outline-offset: 2px; }

.book-film-dialog video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #03090f;
}

.book-film-status {
  margin: 8px 0 0;
  color: var(--muted);
  font: 14px/1.4 system-ui, sans-serif;
}
