#navigation a[aria-current='location'] {
  color: #f4c5ff;
  text-decoration: underline;
  text-underline-offset: .4em;
}

#navigation a,
.menu-toggle,
.header-book,
.film-link {
  min-height: 44px;
}

.film-resources {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 16px;
  padding: 0 17px;
  border-top: 1px solid #fbe5ff26;
  color: #f5e9f5;
  font-size: 13px;
}

.film-transcript {
  flex: 1 1 auto;
  min-width: 0;
}

.film-transcript summary,
.film-resources a {
  min-height: 44px;
  padding: 12px 0;
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}

.film-transcript p {
  max-width: 62ch;
  margin: 0 0 12px;
  color: #e5d8e9;
}

.film-captions {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  margin-block: 4px;
  padding: 4px .7rem;
  border: 1px solid #d2b8de;
  border-radius: 999px;
  background: transparent;
  color: #f5e9f5;
  font: inherit;
}

.film-captions span {
  min-width: 2.2rem;
  color: #d2c3db;
  text-align: center;
}

.film-captions[aria-pressed='true'] {
  background: #f5e9f5;
  color: #261c2e;
}

.film-captions[aria-pressed='true'] span {
  color: inherit;
  font-weight: 700;
}

.film-captions:hover {
  box-shadow: inset 0 0 0 1px #d2b8de;
}

.film-resources a:hover,
.film-transcript summary:hover {
  color: #f4c5ff;
}

.film-format {
  margin: 4px 0 0;
  color: #d2c3db;
  font-size: .75rem;
}

.film-error {
  margin: 0;
  padding: 12px 17px;
  color: #f5e9f5;
  font-size: .85rem;
}

.film-dialog video {
  max-height: max(160px, calc(100dvh - 150px));
  object-fit: contain;
}

.film-dialog .close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.studio-film-label {
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: 999px;
  background: #211927e8;
  text-shadow: none;
}

#studio-film-length {
  color: #e4cfe8;
  white-space: nowrap;
}

.velle-studio-film .velle-film-icon {
  background: #211927b8;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (view-timeline-name: --studio-poster) and (animation-range: entry 0% entry 100%) {
    .velle-studio-film {
      view-timeline-name: --studio-poster;
    }

    .velle-studio-film img {
      animation: studio-poster-approach 1ms linear both;
      animation-timeline: --studio-poster;
      animation-range: entry 0% entry 100%;
    }

    @keyframes studio-poster-approach {
      from { scale: 1; }
      to { scale: 1.035; }
    }
  }
}
