/* Rentals with rushes: loaded only on project pages with "Rent this film" switched on, and on /watch/. */

.project-rent-block {
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  scroll-margin-top: calc(var(--nav-h) + 8.5rem);
}
.project-rent-block[hidden],
.rent-state[hidden],
.rent-film-note[hidden],
.rent-film-prices[hidden],
.rent-resume[hidden],
.rent-terms[hidden],
.rent-resume span[hidden],
.rent-fallback[hidden],
.rent-link[hidden] {
  display: none;
}
.page-hero + meta + .project-rent-block {
  margin-top: 0;
}
.rent-player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  min-height: 18rem;
  background-color: #000;
}
.rent-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.project-rent-block + .rent-bar + .project-about {
  margin-top: clamp(3rem, 7vw, 5rem);
}
.rent-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}
@media (min-width: 48em) {
  .rent-panel {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(2.5rem, 6vw, 5rem);
  }
}

.rent-offer-label {
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rent-offer-price {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.1;
  color: var(--text);
}
.rent-offer-summary {
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.rent-terms {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.rent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.75rem;
}
.rent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .75rem 2rem;
  border: 1px solid var(--accent);
  background-color: var(--accent);
  font: inherit;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: white;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.rent-button:hover,
.rent-button:focus-visible {
  background-color: transparent;
  color: var(--accent);
}
.rent-link,
.rent-note a {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: .2em;
}
.rent-link {
  font-size: .9375rem;
}
.rent-link:hover,
.rent-note a:hover {
  color: var(--accent);
}

/* Facts beside the offers, in the credits' label style */
.rent-facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.rent-facts dt {
  font-size: .625rem;
  line-height: 2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rent-facts dd {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--text);
}
.rent-note {
  margin-top: 1.5rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Bar that follows the reader once the Watch block has scrolled away. Moves with transform and opacity only. */
.rent-bar {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .75rem max(var(--gutter), env(safe-area-inset-left)) calc(.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background-color: var(--nav-bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s ease, visibility 0s linear .35s;
}
.rent-bar.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .rent-bar,
  .rent-bar.is-shown {
    transform: none;
  }
}
.rent-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
}
.rent-bar-text {
  display: grid;
  min-width: 0;
}
.rent-bar-title {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text);
}
.rent-bar-price {
  font-size: .6875rem;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rent-bar .rent-button {
  min-height: 2.75rem;
  padding: .5rem 1.5rem;
}

/* /watch/ landing page */
.rent-landing {
  max-width: 80rem;
  margin: 0 auto;
}
.rent-landing-head {
  max-width: 60rem;
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
}
.rent-landing-title {
  margin-top: .75rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--text);
}
.rent-landing-lead {
  max-width: 40rem;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.rent-films {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6rem);
  margin: clamp(3rem, 7vw, 5.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.rent-film {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 48em) {
  .rent-film {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    align-items: center;
  }
  .rent-film-media {
    grid-column: 1 / span 7;
  }
  .rent-film-info {
    --info-w: min(26rem, 100% - var(--gutter));
    grid-column: 8 / -1;
    justify-self: start;
    width: var(--info-w);
    margin-left: calc((100% - var(--info-w) - var(--gutter)) / 2);
  }
  .rent-film:nth-child(even) .rent-film-media {
    grid-column: 6 / span 7;
    grid-row: 1;
  }
  .rent-film:nth-child(even) .rent-film-info {
    grid-column: 1 / span 5;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    margin-right: calc((100% - var(--info-w) - var(--gutter)) / 2);
  }
}
.rent-film-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--img-bg);
}
.rent-film-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.rent-film-media:hover img {
  transform: scale(1.03);
}
.rent-film-title {
  margin-top: .75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: normal;
  line-height: 1.1;
}
.rent-film-title a {
  color: var(--text);
}
.rent-film-title a:hover {
  color: var(--accent);
}
.rent-film-text {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.rent-film-prices,
.rent-film-note {
  margin-top: 1.25rem;
  font-size: .75rem;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}
.rent-film-note {
  color: var(--accent-text, var(--accent));
}
.rent-film .rent-actions {
  margin-top: 1.5rem;
}
.rent-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: 60rem;
  margin: clamp(5rem, 10vw, 8rem) auto 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 48em) {
  .rent-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 3.5rem);
  }
}
.rent-steps li {
  counter-increment: step;
}
.rent-steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: .75rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--accent);
}
.rent-steps h3 {
  font-size: 1.375rem;
  font-weight: bold;
  line-height: 1.4;
  color: var(--text);
}
.rent-steps p {
  text-wrap: pretty;
  margin-top: .5rem;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.rent-landing-foot {
  max-width: 60rem;
  margin: clamp(3.5rem, 7vw, 5rem) auto clamp(4rem, 8vw, 6rem);
  font-size: 1rem;
  color: var(--text-muted);
}
.rent-owned {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.3;
  color: var(--text);
}
.rent-owned + .rent-actions {
  margin-top: 1.25rem;
}

/* Under the player: resume, fallback, coming soon */
.rent-resume,
.rent-fallback {
  margin-top: 1rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.rent-panel {
  margin-top: 2.5rem;
}
.rent-price {
  display: grid;
  gap: .375rem;
}
.rent-soon {
  max-width: 34rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.rent-state .rent-owned + .rent-terms {
  margin-top: .75rem;
}
.rent-small {
  margin-top: 1rem;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--text-faint);
}
