/* A member-app film within the existing Home transparency section. */
body.page .availability--app {
  gap: 0;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px);
  scroll-margin-top: calc(var(--navbar-height) + 20px);
}

.club-app__intro {
  max-width: 720px;
  margin: 32px auto 28px;
}

.club-app__eyebrow {
  color: var(--accent);
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.club-app__intro h3 {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.club-app__intro > p:last-child {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

.club-film {
  position: relative;
  scroll-margin-top: calc(var(--navbar-height, 96px) + 20px);
  isolation: isolate;
  width: min(100%, 1200px);
  max-width: 100%;
  min-width: 0;
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #070e15;
  border: 1px solid rgb(212 175 55 / 40%);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgb(0 0 0 / 24%);
}

.club-film__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.club-film [hidden] {
  display: none !important;
}

/* The poster is a normal link on phones, touch devices and without JavaScript. */
.club-film__native {
  position: relative;
  display: block;
  color: #07131d;
  text-decoration: none;
  touch-action: manipulation;
}

.club-film__poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.club-film__native::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, rgb(3 12 20 / 65%), rgb(3 12 20 / 12%) 70%);
}

.club-film__native-action {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
}

.club-film__inline {
  display: none;
}

/* Wide touch screens also keep the direct link, including phones in landscape. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .club-film[data-enhanced="true"] .club-film__native { display: none; }
  .club-film[data-enhanced="true"] .club-film__inline { display: block; }
}

.club-film__launch {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(0deg, rgb(3 12 20 / 65%), rgb(3 12 20 / 12%) 70%);
}

.club-film__play,
.club-film__open,
.club-film__native-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 154px;
  min-height: 56px;
  height: auto;
  max-width: 100%;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #07131d;
  box-shadow: 0 4px 24px rgb(0 0 0 / 35%);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.club-film__play svg,
.club-film__native-action svg {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}

.club-film[data-enhanced="true"] .club-film__open {
  min-height: 44px;
  padding: 8px 16px;
  border-color: rgb(255 255 255 / 60%);
  background: rgb(3 12 20 / 80%);
  color: #fff;
  font-size: .875rem;
}

.club-film__status {
  max-width: 34ch;
  margin: 0;
  color: #fff;
  font-family: var(--sans);
  font-size: .875rem;
  line-height: 1.35;
  text-align: center;
}

.club-film[data-playback-state="retry"] {
  min-height: 180px;
}

.club-film[data-playback-state="retry"] .club-film__launch {
  background: rgb(3 12 20 / 94%);
}

.club-film__video:focus-visible,
.club-film__native:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -4px;
}

.club-film__play:focus-visible,
.club-film__open:focus-visible,
.club-app__actions .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.club-app__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

body.page .availability--app .club-app__actions .button {
  min-height: 46px;
  font-size: .875rem;
  letter-spacing: .08em;
}

@media (max-width: 560px) {
  .club-app__intro { margin-top: 24px; }
  .club-film { border-radius: 8px; }
  .club-film__launch { gap: 4px; padding: 8px; }
  .club-film__play,
  .club-film__native-action { min-height: 48px; padding: 8px 16px; }
  .club-app__actions { width: 100%; }
  body.page .availability--app .club-app__actions .button { width: 100%; }
}
