/* ==========================================================================
   film.css — F1 Film page (?film=<id>)
   Tokens only (see tokens.css). No hex colors.
   ========================================================================== */

.fp-view {
  min-height: calc(100dvh - var(--header-h));
}

/* ---- Sticky back bar ---- */
.fp-bar {
  justify-content: flex-start;
  gap: var(--space-3);
}

.fp-back {
  margin-left: calc(var(--space-2) * -1);
}

.fp-bar__title {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  min-width: 0;
  flex: 1 1 auto;
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  color: var(--text-1);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.fp-bar.is-condensed .fp-bar__title {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fp-bar__year {
  flex: none;
  font-size: var(--fs-12);
  font-weight: var(--fw-regular);
  color: var(--text-3);
}

/* ---- Body & Hero ---- */
.fp-body {
  padding: 0 0 var(--space-16);
}

.fp-body--empty {
  padding: var(--space-8) var(--space-6);
}

.fp-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-1);
  isolation: isolate;
}

.fp-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--surface-1);
}

.fp-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 42%, color-mix(in srgb, var(--bg) 45%, transparent) 100%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 84%, transparent) 0%, transparent 65%);
  pointer-events: none;
}

.fp-backdrop__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.52;
}

.fp-backdrop__wash {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(44px) saturate(1.15);
  transform: scale(1.25);
  opacity: 0.35;
}

.fp-backdrop__skel {
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 0.35;
}

.fp-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  align-items: end;
  gap: var(--space-6);
  max-width: 1120px;
  padding: var(--space-12) var(--space-6) var(--space-8);
}

.fp-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 188px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-hover), inset 0 0 0 1px var(--border-strong);
}

.fp-poster__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-poster__skel {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.fp-hero__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.fp-title {
  font-size: var(--fs-40);
  line-height: var(--lh-40);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-display);
  color: var(--text-1);
}

.fp-title--logo {
  margin-bottom: var(--space-1);
}

.fp-title__logo {
  max-width: min(85%, 380px);
  max-height: 92px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
}

.fp-alt {
  margin-top: calc(var(--space-1) * -1);
  color: var(--text-3);
  font-size: var(--fs-14);
}

.fp-meta {
  font-size: var(--fs-14);
  color: var(--text-2);
}

.fp-meta__rated {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
  color: var(--text-2);
}

.fp-ratings {
  gap: var(--space-1) 0;
  font-size: var(--fs-14);
}

.fp-rating {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.fp-rating__src {
  color: var(--text-3);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
}

.fp-rating__val {
  color: var(--text-1);
  font-weight: var(--fw-semibold);
}

.fp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.fp-actions__toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.fp-toggle[aria-pressed='true'].fp-toggle--seen svg {
  color: var(--seen);
}

/* ---- Content sections ---- */
.fp-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 1120px;
  padding: var(--space-6) var(--space-6) 0;
}

.fp-section {
  min-width: 0;
  scroll-margin-top: calc(var(--header-h) + var(--filterbar-h) + var(--space-4));
}

.fp-h {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  font-weight: var(--fw-semibold);
  color: var(--text-1);
}

.fp-count {
  color: var(--text-3);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
}

.fp-subtitle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  font-weight: var(--fw-medium);
  color: var(--text-2);
}

/* ---- Synopsis & Tagline ---- */
.fp-about {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 72ch;
}

.fp-tagline {
  color: var(--text-2);
  font-size: var(--fs-16);
  line-height: var(--lh-16);
  font-weight: var(--fw-medium);
}

.fp-plot {
  color: var(--text-1);
  font-size: var(--fs-16);
  line-height: var(--lh-16);
}

/* ---- Details definition grid ---- */
.fp-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4) var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.fp-details__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fp-details__row dt {
  color: var(--text-3);
  font-size: var(--fs-12);
  line-height: var(--lh-12);
  font-weight: var(--fw-medium);
}

.fp-details__row dd {
  color: var(--text-1);
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  font-variant-numeric: tabular-nums;
}

/* ---- Cast scroller ---- */
.fp-cast {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 128px;
  gap: var(--space-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 4px var(--space-3);
  margin: -4px -4px 0;
  scrollbar-width: thin;
}

.fp-cast > li {
  scroll-snap-align: start;
}

.fp-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: var(--space-3) var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  text-align: center;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    transform var(--dur-hover) var(--ease);
}

.fp-person:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.fp-person__avatar {
  --avatar-size: 64px;
  font-size: var(--fs-16);
}

.fp-person__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--text-1);
  font-size: var(--fs-14);
  line-height: var(--lh-14);
  font-weight: var(--fw-medium);
}

.fp-person__role {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  color: var(--text-3);
  font-size: var(--fs-12);
  line-height: var(--lh-12);
}

/* ---- Where to watch ---- */
.fp-watch {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fp-watch__row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-3);
}

.fp-watch__row dt {
  color: var(--text-3);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
}

.fp-providers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.fp-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text-1);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
}

.fp-provider.is-mine {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.fp-provider.is-mine svg {
  color: var(--seen);
}

.fp-note {
  margin-top: var(--space-2);
  color: var(--text-3);
  font-size: var(--fs-12);
}

.fp-muted {
  color: var(--text-3);
  font-size: var(--fs-14);
}

/* ---- Videos ---- */
.fp-videos__group + .fp-videos__group {
  margin-top: var(--space-4);
}

.fp-videos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: var(--space-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 4px 4px var(--space-2);
  margin: -4px -4px 0;
  scrollbar-width: thin;
}

.fp-video {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  text-align: left;
}

.fp-video__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

.fp-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-hover) var(--ease);
}

.fp-video:hover .fp-video__thumb img {
  transform: scale(1.03);
}

.fp-video__play {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--scrim-strong);
  color: var(--text-1);
}

.fp-video__name {
  color: var(--text-2);
  font-size: var(--fs-12);
  line-height: var(--lh-12);
  font-weight: var(--fw-medium);
}

.fp-video:hover .fp-video__name {
  color: var(--text-1);
}

/* ---- Awards ---- */
.fp-awards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.fp-awards__block {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
}

.fp-awards__title {
  margin-bottom: var(--space-3);
  color: var(--text-1);
  font-weight: var(--fw-semibold);
}

.fp-awards__block--razzies .fp-awards__icon {
  color: var(--razzie);
}

.fp-awards__sum {
  margin-left: auto;
  color: var(--text-2);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
}

.fp-awards__year {
  margin: var(--space-2) 0 var(--space-1);
  color: var(--text-3);
  font-size: var(--fs-12);
  font-weight: var(--fw-medium);
}

.fp-awards__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fp-award {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-2);
  color: var(--text-3);
  font-size: var(--fs-14);
  line-height: var(--lh-14);
}

.fp-award__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-1);
  transform: translateY(2px);
}

.fp-awards__block--razzies .fp-award__mark {
  color: var(--razzie);
}

.fp-award.is-win {
  color: var(--text-1);
}

.fp-award.is-win .fp-award__cat {
  font-weight: var(--fw-semibold);
}

.fp-award__text {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
  min-width: 0;
}

.fp-award__who {
  color: var(--text-3);
  font-size: var(--fs-12);
}

/* ---- Lists ---- */
.fp-lists {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.fp-listlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 38px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--text-1);
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.fp-listlink:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.fp-listlink__icon,
.fp-listlink__chev {
  color: var(--text-3);
}

/* ---- Keywords & Links ---- */
.fp-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fp-strips {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.fp-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---- Skeletons ---- */
.fp-skel-title {
  width: 55%;
  height: 36px;
  border-radius: var(--radius-sm);
}

.fp-skel-line {
  height: 14px;
  margin-top: var(--space-2);
}

.fp-skel-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

/* ---- Mobile helper elements (hidden or transparent on desktop ≥ 900 px) ---- */
.fp-bar__share {
  display: none;
}

.fp-hero__head {
  display: contents;
}

.fp-share__label {
  display: none;
}

.fp-cta__eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.fp-cta__eq i {
  display: block;
  width: 3px;
  background: currentColor;
  border-radius: 1px;
  animation: fp-eq-bounce 0.8s ease-in-out infinite alternate;
}

.fp-cta__eq i:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}

.fp-cta__eq i:nth-child(2) {
  height: 13px;
  animation-delay: 0.2s;
}

.fp-cta__eq i:nth-child(3) {
  height: 9px;
  animation-delay: 0.4s;
}

@keyframes fp-eq-bounce {
  0% {
    transform: scaleY(0.45);
  }
  100% {
    transform: scaleY(1);
  }
}

.fp-plot__more,
button.fp-plot__more.link {
  display: none;
}

.fp-similar-mob {
  display: none;
}

.fp-scores-sec {
  display: none;
}

.fp-meta__genres-line {
  display: none;
}

/* ---- Mobile & Tablet (≤ 899 px or coarse landscape) ---- */
@media (max-width: 899px), (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .fp-body {
    padding-bottom: calc(var(--tabbar-total, 64px) + var(--space-6));
  }

  /* §8(a) Overlay top bar: Back & Share in 44px translucent circles, turns solid on scroll, sits at top: var(--dock-h) */
  .fp-view .view__header.fp-bar,
  body.layout-stacked .view__header.fp-bar {
    position: sticky;
    top: var(--dock-h, 0px);
    z-index: var(--z-sticky);
    height: var(--appbar-h, 52px);
    min-height: 52px;
    padding: 0 var(--space-3);
    justify-content: space-between;
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  }

  .fp-view .view__header.fp-bar.is-condensed,
  body.layout-stacked .view__header.fp-bar.is-condensed {
    background: var(--surface-1);
    border-bottom: 1px solid var(--hairline);
  }

  .fp-back,
  .fp-bar__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--bg) 68%, transparent);
    border: 1px solid var(--border);
    color: var(--text-1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .fp-view .sr-only {
    overflow: hidden;
  }

  .fp-section,
  .fp-videos__group {
    overflow-x: clip;
  }

  .fp-back__label {
    display: none;
  }

  .fp-bar__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    justify-content: center;
    text-align: center;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
  }

  .fp-bar__title .truncate {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* §8(b) Hero: 16:9 backdrop, skipped when playing in dock; 100x150 poster; title 28/600; meta row */
  .fp-hero {
    margin-top: calc(-1 * var(--appbar-h, 52px));
    min-height: 0;
  }

  .fp-backdrop {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 260px;
  }

  .fp-backdrop.is-skipped,
  .fp-hero--no-backdrop .fp-backdrop {
    display: none;
  }

  .fp-hero--no-backdrop {
    margin-top: 0;
  }

  .fp-hero__inner {
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: end;
    gap: var(--space-3) var(--space-4);
    padding: 0 var(--space-4) var(--space-4);
    margin-top: -56px;
    position: relative;
    z-index: 2;
  }

  .fp-hero--no-backdrop .fp-hero__inner {
    margin-top: var(--space-2);
    align-items: start;
  }

  .fp-poster {
    width: 100px;
    border-radius: var(--radius-md);
  }

  /* Phone (< 600 px): unwrap .fp-hero__info so .fp-actions spans full width beneath poster + head */
  .fp-hero__info {
    display: contents;
  }

  .fp-hero__head {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
    align-self: end;
  }

  .fp-title {
    font-size: var(--fs-28);
    line-height: var(--lh-28);
    font-weight: var(--fw-semibold);
  }

  .fp-title__logo {
    max-height: 52px;
  }

  .fp-meta {
    font-size: var(--fs-12);
    line-height: var(--lh-12);
    gap: 4px 0;
  }

  .fp-meta > .fp-meta__genre {
    display: none;
  }

  .fp-meta > * + *::before {
    content: none;
  }

  .fp-meta > .fp-meta__year:has(~ .fp-meta__runtime, ~ .fp-meta__rated)::after,
  .fp-meta > .fp-meta__runtime:has(~ .fp-meta__rated)::after {
    content: '·';
    display: inline-block;
    margin: 0 6px;
    color: var(--text-3);
  }

  .fp-meta > .fp-meta__genres-line {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-2);
  }

  .fp-meta .fp-genre {
    pointer-events: none;
    text-decoration: none;
    color: var(--text-2);
  }

  .fp-hero__head .fp-ratings {
    display: none;
  }

  /* §8(c) Full-width amber Play trailer button (48 px) */
  .fp-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    width: 100%;
    margin-top: var(--space-1);
  }

  .fp-cta {
    width: 100%;
    height: 48px;
    min-height: 48px;
    justify-content: center;
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-md);
  }

  .fp-cta.is-playing {
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: none;
  }

  /* §8(d) 4-up action row: Seen · Watchlist · Favorite · Share, icon above label, equal widths, ~60px tall */
  .fp-actions__toggles {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }

  .fp-actions__toggles .fp-toggle,
  .fp-actions__toggles .fp-share,
  html.touch .fp-actions__toggles .btn--icon.fp-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    min-height: 60px;
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: var(--space-2) var(--space-1);
    border-radius: var(--radius-md);
    font-size: var(--fs-12);
    line-height: var(--lh-12);
    font-weight: var(--fw-medium);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fp-share__label {
    display: inline;
  }

  /* §8(e) Sections with 24 px rhythm */
  .fp-sections {
    gap: var(--space-6);
    padding: var(--space-4) var(--space-4) 0;
  }

  .fp-scores-sec {
    display: block;
  }

  .fp-scores {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .fp-score-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: var(--space-2) var(--space-3);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--fs-12);
  }

  .fp-score-chip__src {
    color: var(--text-3);
    font-weight: var(--fw-medium);
  }

  .fp-score-chip__val {
    color: var(--text-1);
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
  }

  /* Overview with collapsible 4-line clamp and "more" button */
  .fp-plot.is-clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }

  .fp-plot__more,
  button.fp-plot__more.link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 var(--space-2);
    margin-left: calc(-1 * var(--space-2));
    font-size: var(--fs-14);
    font-weight: var(--fw-semibold);
    color: var(--text-1);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
    background: none;
    border: 0;
    cursor: pointer;
    align-self: flex-start;
  }

  /* Crew & facts rows */
  .fp-details {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .fp-details__row dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
  }

  .fp-details button.link[data-person] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding: 6px var(--space-3);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: var(--fs-12);
  }

  .fp-sep {
    display: none;
  }

  /* Cast carousel with round photos */
  .fp-cast {
    grid-auto-columns: 96px;
    gap: var(--space-3);
    scroll-snap-type: x proximity;
  }

  .fp-person {
    min-height: 112px;
    padding: var(--space-2) var(--space-1);
  }

  /* Videos carousel */
  .fp-videos {
    grid-auto-columns: 240px;
    scroll-snap-type: x proximity;
  }

  /* Where to watch */
  .fp-watch__row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  /* Lists, keywords & external links touch targets (≥ 44px) */
  .fp-listlink {
    min-height: 44px;
    width: 100%;
    justify-content: flex-start;
    padding: var(--space-2) var(--space-3);
  }

  .fp-listlink__chev {
    margin-left: auto;
  }

  .fp-keyword,
  .fp-keywords__more {
    min-height: 44px;
    min-width: 44px;
    padding: 0 var(--space-3);
    display: inline-flex;
    align-items: center;
  }

  .fp-link {
    min-height: 44px;
    min-width: 44px;
    padding: 0 var(--space-3);
    display: inline-flex;
    align-items: center;
  }

  /* "More like this" heading swap on mobile */
  .fp-similar-desk {
    display: none;
  }

  .fp-similar-mob {
    display: inline;
  }

  /* §8(g) Tablet (600–899 px): two-column hero, poster left (~200 px) and info right */
  @media (min-width: 600px) {
    .fp-hero__inner {
      grid-template-columns: 200px minmax(0, 1fr);
      align-items: end;
      gap: var(--space-6);
      padding: var(--space-6) var(--space-5) var(--space-5);
      margin-top: -80px;
    }

    .fp-poster {
      width: 200px;
    }

    .fp-hero__info {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
      min-width: 0;
    }

    .fp-hero__head {
      display: contents;
    }

    .fp-hero__head .fp-ratings {
      display: flex;
    }

    .fp-scores-sec {
      display: none;
    }

    .fp-actions {
      grid-column: auto;
    }

    .fp-cta {
      width: auto;
      align-self: flex-start;
      padding: 0 var(--space-6);
    }

    .fp-sections {
      padding: var(--space-5) var(--space-5) 0;
    }

    .fp-details {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}
