.film-page__hero-unauthorised {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.film-purchase__preview {
  position: relative;
  border: var(--border-1);
  border-radius: var(--radius-hero);
  background-color: black;
  box-shadow: var(--shadow-lg) !important;
  outline: 2px solid transparent;
  overflow: hidden;
  transition:
    box-shadow var(--dur-3) var(--ease-standard),
    outline-color var(--dur-3) var(--ease-standard);
}

.film-purchase__preview:has(.film-purchase__preview-button:hover) {
  outline-color: var(--link);
  box-shadow: 0 12px 12px color-mix(in srgb, var(--link-hover) 50%, transparent) !important;
}

.film-purchase__image-wrapper:not(:has(> .film-purchase__image)) {
  aspect-ratio: 16 / 9;
}

.film-purchase__preview-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--scrim-55);
  border: none;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-pill);
}
.film-version__option
{
background: var(--surface);
color: var(--text);
}
.film-purchase__preview-button:hover {
  background: var(--primary);
}

.film-purchase__preview-button i {
  position: relative;
  left: 3px;
}

.film-purchase__preview-label {
    background: rgba(255, 255, 255, 0.85);
    position: absolute;
    bottom: var(--space-3);
    left: var(--space-3);
    border-radius: var(--radius-xs);
    padding-block: var(--space-1);
    padding-inline: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--surface);
    font-weight: 500;
    font-size: var(--text-base);
}
.film-version__selector
{    
    border-radius: var(--radius-lg, 16px);    
    border: var(--border-1, 1px solid rgba(0, 0, 0, 0.08));
        border-color: var(--text-strong);
       color: var(--text-strong);
margin-top: 30px;
    background-color: transparent;
padding-inline: var(--space-4);
}
.film-purchase__access > *:not(:last-child) {
  margin-bottom: var(--space-6);
}

.film-purchase__access-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.film-purchase__access-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: var(--border-1);
  background: var(--surface-1);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
  padding: 11px;
}

.film-purchase__access-label {
  font-size: var(--text-lg);
}

.film-purchase__access-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    border-radius: var(--radius-sm);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    font-size: var(--text-sm);
    background: 
        color-mix(in srgb, var(--text) 10%, transparent);
    border: 1px solid 
        color-mix(in srgb, var(--text) 10%, transparent);
    color: var(--text-strong);
}

.film-purchase__access-title {
  font-size: 2rem;
}

.film-purchase__access-title:has(+ .film-purchase__access-subheading) {
   margin-bottom: var(--space-1) !important;
}


.film-purchase__access-description {
  font-size: var(--text-md);
}

.film-purchase__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.film-purchase__purchase-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  height: 52px;
  padding-inline: var(--space-4);
  border: none;
  border-radius: var(--radius-lg);
  background-color: var(--primary);
  color: var(--surface);
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  font-size: var(--text-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  justify-content: center;
}

.film-purchase__purchase-button:hover {
  color: var(--surface);
  background-color: var(--primary-hover);
}

.film-purchase__browse-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  height: 52px;
  padding-inline: var(--space-4);
  border: var(--border-1);
  border-color: var(--text-strong);
  border-radius: var(--radius-lg);
  background-color: transparent;
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  font-size: var(--text-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  justify-content: center;
}

.film-purchase__browse-button:hover {
  color: var(--text-strong);
  background-color: var(--surface-1);
}

body:not(.cmpl_embeds_v1) .cmpl_iframe_div {
    border: var(--border-1);
    border-radius: var(--radius-hero);
    background-color: black;
    box-shadow: var(--shadow-lg) !important;
    outline: 2px solid transparent;
    transition: box-shadow var(--dur-3) var(--ease-standard), outline-color var(--dur-3) var(--ease-standard);
}

body:not(.cmpl_embeds_v1) .cmpl_iframe_div:hover {
    outline-color: var(--link);
    box-shadow: 0 12px 12px 
color-mix(in srgb, var(--link-hover) 50%, transparent) !important;
}

.metadata-block {
  border: var(--border-1, 1px solid rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-lg, 16px);
  background: var(--surface-1);
  box-shadow: var(--shadow-md);
  max-width: 1376px;
  margin-block-end: var(--space-8);
  padding-block: var(--space-6);
  padding-inline: var(--space-6);
  position: relative;
}

.film-page__anchors-wrap {
  position: sticky;
  margin: calc(var(--space-6) * -1);
  padding: var(--space-6);
  top: 0;
  background: var(--surface-1);
  margin-block-end: 0;
  z-index: 1;
  border-bottom: var(--border-1);
}

/* Mobile toggle button (shown by default) */
.film-page__anchors-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: var(--border-1);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

/* Simple chevron (optional) */
.film-page__anchors-toggle-icon {
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur-2) var(--ease-standard);
}

.film-page__anchors-wrap.is-open .film-page__anchors-toggle-icon {
  transform: rotate(-135deg);
}

/* Mobile dropdown panel */
.film-page__anchors {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% - 22px) !important;
  left: 0;
  right: 0;
  border: var(--border-1);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-top: 0;
  margin-inline: var(--space-6);
}

.film-page__anchors-wrap.is-open .film-page__anchors {
  display: grid;
}

/* Make anchors full-width tappable on mobile */
.film-page__anchor {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-none);
  background: transparent;
  text-decoration: none;
  font-weight: 500;
}

.film-page__anchor:hover {
  background: var(--surface-1);
}

.film-page__anchor i {
  width: var(--space-4);
  text-align: center;
  margin-inline-end: var(--space-4);
}

.metadata-block__grid:has(+ :is(.metadata-block__grid, .metadata-block__row)),
.metadata-block__row:has(+ :is(.metadata-block__grid, .metadata-block__row)) {
  border-bottom: var(--border-1);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
}

.metadata-block__section:not(:last-of-type) {
  padding-bottom: var(--space-6);
  position: relative;
  margin-bottom: var(--space-6);
}

.metadata-block__section:not(:last-of-type):after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-strong);
  margin-inline: calc(var(--space-6) * -1);
}

.metadata-block h2 {
  font-size: var(--h3);
  line-height: var(--leading-tight);
  font-weight: 500;
  margin-block-end: var(--space-5);
}

.metadata-block__description,
.metadata-block__description p {
  line-height: var(--leading-loose);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.metadata-block__description li {
  line-height: var(--leading-loose);
}

.metadata-block__description a {
  text-decoration: none;
}

.metadata-block__description a:hover {
  text-decoration: underline;
}

.meta-list {
  display: grid;
  gap: 0.125rem;
  margin: 0 0 var(--space-4);
  line-height: var(--leading-loose);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: 0;
}

.meta-list__label {
  font-weight: 600;
  color: var(--text-strong);
  display: inline;
}

.meta-list__value {
  margin: 0;
  color: var(--text-muted);
  display: inline;
}

.film-page__recommendation-group:not(:last-of-type) {
  margin-bottom: var(--space-8);
}

.film-page__recommendation-heading,
.film-page__recommendation-group,
.expander__content {
  max-height: max-content;
  overflow: unset;
  transition: all var(--dur-3) var(--ease-standard);
}

.film-page__recommendations.expander[data-expander-state="collapsed"]
  .expander__content {
  max-height: 60.8px;
  overflow: hidden;
  transition: all var(--dur-3) var(--ease-standard);
}

.expander[data-expander-state="collapsed"] .film-page__recommendation-heading,
.expander[data-expander-state="collapsed"]
  .film-page__recommendation-group
  + .film-page__recommendation-group {
  overflow: hidden;
}
.film-page__recommendation-heading {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-block-end: var(--space-2);
}

.film-page__recommendation-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: var(--space-3);
  min-width: 0;
  column-gap: var(--space-2);
}

.film-page__recommendation-item a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  font-size: var(--text-sm);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.film-page__recommendation-item a:hover {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  border: 1px solid var(--primary);
  color: var(--primary-hover);
}

.educational-materials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}

.edu-card {
    box-shadow: var(--shadow-sm);
    border: var(--border-1);
    height: 100%;
    position: relative;
    outline: 2px solid transparent;
    bottom: 0;
    overflow: hidden;
    transition: all var(--dur-3) var(--ease-standard);
    transform: translateY(0px);
    border-radius: var(--radius-card);
    background: var(--surface);
    text-decoration: none;
}

a.edu-card:hover {
    bottom: -1px;
    box-shadow: 0 4px 8px 
        color-mix(in srgb, var(--link-hover) 50%, transparent);
    outline: 2px solid var(--link);
}

a.edu-card:focus-visible {
    bottom: -1px;
    box-shadow: 0 4px 8px 
        color-mix(in srgb, var(--link-hover) 50%, transparent);
    outline: 2px solid var(--link);
}
div.edu-card {
  opacity: 0.6;
  filter: grayscale(100%);
}

.edu-card__locked{
  opacity: 0.6;
  filter: grayscale(100%);
  pointer-events: none
}

/* Media slot */
.edu-card__media-slot {
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-card__frame {
  max-height: calc(140px - 16px);
  max-width: calc(100% - 16px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.edu-card--pdf .edu-card__frame {
  aspect-ratio: 3 / 4;
  height: 100%;
  width: auto;
}

.edu-card--video .edu-card__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.edu-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.edu-card__icon {
  width: 34px;
  height: 34px;
  color: white;
  opacity: 0.9;
}

.edu-card__play {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(229, 231, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.edu-card__play svg {
  width: 18px;
  height: 18px;
  fill: white;
  transform: translateX(1px);
}

.edu-card--pdf .edu-card__frame.edu-card__frame--icon {
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 70%),
        linear-gradient(to bottom, var(--surface), var(--surface-2));
    aspect-ratio: unset !important;
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    border-radius: var(--radius-none);
    box-shadow: none;
}

.edu-card__frame--icon-image {
    max-height: calc(100% - var(--space-8));
    max-width: 55%;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.8));
    transition: transform .25s ease, filter .25s ease;
}

a.edu-card:hover .edu-card__frame--icon-image {
    transform: translateY(-2px) scale(1.1);
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 1));
}

.edu-card__body {
    padding-block: var(--space-3);
    padding-inline: var(--space-4);
}

.edu-card__title {
    margin-bottom: var(--space-1);
    font-size: var(--h5);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--text-strong);
    line-height: var(--leading-normal);
}

.edu-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: var(--text-xs);
}

.edu-card__cta {
  font-weight: 700;
  color: white;
  text-transform: none;
  letter-spacing: normal;
}

.media-container, .presentation-item {
    background: var(--surface) !important;
}

.film-page .content-carousel {
   margin-bottom: 0;
   padding-bottom: 0;
}

/* 320px / 20rem */
@media only screen and (min-width: 20rem) {
}

/* 480px / 30rem */
@media only screen and (min-width: 30rem) {
    .film-purchase__actions {
        flex-direction: row;
    }
    .educational-materials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 640px / 40rem */
@media only screen and (min-width: 40rem) {
    .educational-materials__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 48rem / 768px */
@media only screen and (min-width: 48rem) {
  .film-page__anchors-toggle {
    display: none;
  }

  .film-page__anchors-wrap {
    border-bottom: var(--border-1);
    border-color: var(--border-strong);
    padding-block: var(--space-0);
    margin-block-end: var(--space-4);
    padding-inline: var(--space-0);
    z-index: 1;
  }

  .film-page__anchors {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: transparent;
    box-shadow: none;
    margin-inline: 0;
    gap: 0;
    overflow: hidden;
    background: var(--surface-1);
  }

  .film-page__anchor {
        position: relative;
        color: var(--text-muted);
        padding-inline: var(--space-4);
        font-size: var(--text-xs);
        font-weight: 500;
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: var(--space-2);
        flex-basis: 100%;
        justify-content: center;
  }

  .film-page__anchor:hover {
    color: var(--text-strong);
    background: color-mix(in srgb, var(--surface-2) 75%, transparent);
  }

.film-page__anchor i {
    margin-inline-end: 0;
    font-size: var(--text-lg);
}

  .film-page__anchor-active {
    color: var(--primary);
  }

  .film-page__anchor-active:hover {
    color: var(--primary-hover);
  }

  .film-page__anchor-active::after {
    content: "";
    bottom: -1px;
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--primary);
    left: 0;
    right: 0;
  }
}

/* 64rem / 1024px */
@media only screen and (min-width: 64rem) {
  .film-page__hero-unauthorised {
    flex-direction: row;
    align-items: center;
  }

  .film-page__hero-unauthorised > * {
    flex: 1;
  }

  .film-purchase__access > *:not(:last-child) {
    margin-bottom: var(--space-4);
  }

  .film-purchase__access-subheading {
    font-size: var(--text-sm);
  }

  .film-purchase__purchase-button,
  .film-purchase__browse-button {
    width: auto;
  }

    .film-purchase__preview-label {
        font-size: var(--text-sm);
        bottom: var(--space-5);
        left: var(--space-5);
        padding-block: var(--space-1);
        padding-inline: var(--space-2);
        gap: var(--space-2);
    }

  .film-page__anchor {
      padding-inline: var(--space-10);
      padding-block: var(--space-4);
  }

    .educational-materials__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 80rem / 1280px */
@media only screen and (min-width: 80rem) {

    .film-purchase__access > *:not(:last-child) {
        margin-bottom: var(--space-6);
    }

    .film-page__anchor {
    flex-direction: row;
    gap: var(--space-4);
    text-align: start;
    font-size: var(--text-sm);
    flex-basis: unset;
    }

  
  .metadata-block {
    padding-block: var(--space-8);
    padding-inline: var(--space-12);
  }

.meta-list__row {
    display: flex;
}

.meta-list__row .meta-list__item:not(:last-of-type):after {
    content: "•";
    margin-left: var(--space-2);
    margin-right: var(--space-3);
}

  .metadata-block__section:not(:last-of-type) {
    padding-bottom: var(--space-8);
    margin-bottom: var(--space-8);
  }

  .metadata-block__grid:has(+ :is(.metadata-block__grid, .metadata-block__row)),
  .metadata-block__row:has(+ :is(.metadata-block__grid, .metadata-block__row)) {
    padding-bottom: var(--space-8);
    margin-bottom: var(--space-8);
  }

  .film-page__anchors-wrap {
    margin-inline: calc(var(--space-12) * -1);
    margin-block-end: var(--space-8);
    margin-block-start: calc(-1 * var(--space-8));
  }

  .metadata-block__section:not(:last-of-type):after {
    margin-inline: calc(var(--space-12) * -1);
  }

    .educational-materials__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* 96rem / 1536px */
@media only screen and (min-width: 96rem) {
}
