.movie .sample-player-layout {
  max-width: 100%;
}

/* Keep the player centered at its existing size; actions live outside it. */
.sample-player-layout > .control,
.sample-player-layout > .bookmark {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
  margin-top: 12px;
  padding: 0 10px;
}

/* 960px player plus room for a 84px rail and a 16px gap on the right. */
@media (min-width: 1180px) {
  .sample-player-layout > .control,
  .sample-player-layout > .bookmark {
    position: absolute;
    display: block;
    left: calc(100% + 16px);
    right: auto;
    width: 84px;
    margin-top: 0;
    padding: 0;
  }
}

.sample-player-shell {
  position: relative;
  width: 100%;
  background: #000;
}

.sample-player-shell .nf-player {
  width: 100%;
}

.nf-ui-sample .nf-skip-btn,
.nf-ui-sample .nf-control-row > .nf-ctrl-btn:nth-child(2),
.nf-ui-sample .nf-control-row > .nf-ctrl-btn:nth-child(3) {
  display: none;
}

.sample-recommendations {
  position: absolute;
  right: 0;
  bottom: 70px;
  left: 0;
  z-index: 24;
  padding: 10px 48px 12px 14px;
  color: #fff;
  background: rgba(12, 12, 12, .92);
  border-top: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .28);
}

.sample-recommendations[hidden] {
  display: none;
}

.sample-recommendations__title {
  display: block;
  margin: 0 0 8px;
  color: #fff;
  font: 700 14px/1.3 Arial, sans-serif;
}

.sample-recommendations__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font: 400 28px/1 Arial, sans-serif;
}

.sample-recommendations__close:hover,
.sample-recommendations__close:focus-visible {
  background: rgba(255, 255, 255, .14);
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.sample-recommendations__track {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.sample-recommendations__item {
  flex: 0 0 min(27%, 190px);
  min-width: 128px;
}

.sample-recommendations__link {
  display: block;
  color: #fff;
  text-decoration: none;
}

.sample-recommendations__image {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #292929;
  border-radius: 4px;
}

.sample-recommendations__image img,
.sample-recommendations__image .recommendation-frame {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.sample-recommendations__image .recommendation-frame {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.sample-recommendations__name {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #fff;
  font: 600 12px/1.3 Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-recommendations__link:hover .sample-recommendations__name,
.sample-recommendations__link:focus-visible .sample-recommendations__name {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .sample-recommendations {
    bottom: 61px;
    padding: 8px 46px 9px 10px;
  }

  .sample-recommendations__title {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .sample-recommendations__item {
    flex-basis: 42%;
    min-width: 112px;
  }

  .sample-recommendations__name {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sample-recommendations *,
  .sample-recommendations *::before,
  .sample-recommendations *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
