.fhc {
  --fhc-accent: #d4a853;
  --fhc-accent-strong: #f0c66a;
  --fhc-surface: #151515;
  --fhc-surface-raised: #1d1d1d;
  --fhc-border: rgba(255, 255, 255, .09);
  --fhc-text: #f3f3f3;
  --fhc-muted: #969696;
  box-sizing: border-box;
  width: 100%;
  margin-block: 30px;
  padding-block: 22px;
  border-block: 1px solid var(--fhc-border);
  color: var(--fhc-text);
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.fhc[hidden],
.fhc [hidden] {
  display: none !important;
}

.fhc *,
.fhc *::before,
.fhc *::after {
  box-sizing: border-box;
}

.fhc__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 18px;
}

.fhc__heading {
  min-width: 0;
}

.fhc__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-end: 6px;
  color: var(--fhc-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.fhc__crown {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.fhc__title {
  margin: 0;
  color: var(--fhc-text);
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.fhc__subtitle {
  margin: 6px 0 0;
  color: var(--fhc-muted);
  font-size: 13px;
  line-height: 1.45;
}

.fhc__fanclub {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(212, 168, 83, .36);
  border-radius: 9px;
  background: rgba(212, 168, 83, .1);
  color: var(--fhc-accent-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.fhc__fanclub svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.fhc__fanclub:hover {
  border-color: rgba(212, 168, 83, .65);
  background: rgba(212, 168, 83, .17);
  color: #ffe0a0;
  transform: translateY(-1px);
}

.fhc__facets {
  display: flex;
  gap: 8px;
  margin: 0 0 17px;
  padding: 1px 0 5px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 83, .45) transparent;
}

.fhc__facet {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--fhc-border);
  border-radius: 999px;
  background: var(--fhc-surface);
  color: #c9c9c9;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.fhc__facet:hover,
.fhc__facet.is-active {
  border-color: rgba(212, 168, 83, .48);
  background: rgba(212, 168, 83, .12);
  color: var(--fhc-accent-strong);
}

.fhc__facet-count {
  color: var(--fhc-muted);
  font-size: 11px;
}

.fhc__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 21px 15px;
}

.fhc-card {
  min-width: 0;
}

.fhc-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fhc-card__media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 9px;
  background: #202020;
  aspect-ratio: 16 / 9;
}

.fhc-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .2s ease, transform .25s ease;
}

.fhc-card__link:hover .fhc-card__image {
  filter: brightness(.82);
  transform: scale(1.025);
}

.fhc-card__play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  display: grid;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(0, 0, 0, .66);
  color: #fff;
  opacity: 0;
  place-items: center;
  transform: translate(-50%, -46%) scale(.88);
  transition: opacity .18s ease, transform .18s ease;
}

[dir="rtl"] .fhc-card__play {
  transform: translate(50%, -46%) scale(.88);
}

.fhc-card__play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.fhc-card__link--trailer:hover .fhc-card__play,
.fhc-card__link--trailer:focus-visible .fhc-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

[dir="rtl"] .fhc-card__link--trailer:hover .fhc-card__play,
[dir="rtl"] .fhc-card__link--trailer:focus-visible .fhc-card__play {
  transform: translate(50%, -50%) scale(1);
}

.fhc-card__duration,
.fhc-card__resolution {
  position: absolute;
  inset-block-end: 7px;
  z-index: 1;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .015em;
  line-height: 1.1;
}

.fhc-card__duration {
  inset-inline-end: 7px;
}

.fhc-card__resolution {
  inset-inline-start: 7px;
  color: var(--fhc-accent-strong);
}

.fhc-card__body {
  display: block;
  padding-block-start: 9px;
}

.fhc-card__title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fhc-text);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fhc-card__link:hover .fhc-card__title {
  color: var(--fhc-accent-strong);
}

.fhc-card__studio {
  display: block;
  overflow: hidden;
  margin-block-start: 4px;
  color: var(--fhc-muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fhc-card--skeleton {
  pointer-events: none;
}

.fhc-card--skeleton .fhc-card__media,
.fhc-card--skeleton .fhc-card__body span {
  background: linear-gradient(100deg, #1b1b1b 22%, #272727 38%, #1b1b1b 54%);
  background-size: 220% 100%;
  animation: fhc-skeleton 1.25s ease-in-out infinite;
}

.fhc-card--skeleton .fhc-card__body span {
  display: block;
  width: 88%;
  height: 12px;
  margin-block-end: 7px;
  border-radius: 4px;
}

.fhc-card--skeleton .fhc-card__body span:last-child {
  width: 46%;
  height: 9px;
}

@keyframes fhc-skeleton {
  to { background-position-x: -220%; }
}

.fhc__footer {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 41px;
  margin-block-start: 22px;
}

.fhc__load-more,
.fhc__page {
  min-height: 38px;
  border: 1px solid var(--fhc-border);
  border-radius: 8px;
  background: var(--fhc-surface-raised);
  color: #dedede;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.fhc__load-more {
  min-width: 145px;
  padding: 9px 18px;
}

.fhc__load-more:hover,
.fhc__page:hover:not(:disabled),
.fhc__page.is-current {
  border-color: rgba(212, 168, 83, .5);
  background: rgba(212, 168, 83, .13);
  color: var(--fhc-accent-strong);
}

.fhc__load-more:disabled,
.fhc__page:disabled {
  cursor: default;
  opacity: .45;
}

.fhc__pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fhc__page {
  min-width: 38px;
  padding: 7px 10px;
}

.fhc__page--previous,
.fhc__page--next {
  min-width: 86px;
}

.fhc__page-dots {
  color: var(--fhc-muted);
  padding-inline: 3px;
}

.fhc__more {
  margin-inline-start: auto;
  color: var(--fhc-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.fhc__more:hover {
  color: var(--fhc-accent-strong);
  text-decoration: underline;
}

.fhc__disclosure {
  color: #737373;
  font-size: 10px;
  letter-spacing: .025em;
  white-space: nowrap;
}

.fhc__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.fhc :focus-visible,
.fhc-modal :focus-visible {
  outline: 2px solid var(--fhc-accent, #d4a853);
  outline-offset: 3px;
}

body.fhc-modal-open {
  overflow: hidden;
}

.fhc-modal {
  --fhc-accent: #d4a853;
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  padding: 24px;
  background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(8px);
  place-items: center;
}

.fhc-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .75fr);
  width: min(1050px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: #141414;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .7);
  color: #f4f4f4;
}

.fhc-modal__close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
  place-items: center;
}

.fhc-modal__player {
  position: relative;
  min-height: 330px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.fhc-modal__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fhc-modal__info {
  display: flex;
  min-width: 0;
  padding: 30px 24px 24px;
  overflow-y: auto;
  flex-direction: column;
  justify-content: center;
}

.fhc-modal__brand {
  color: var(--fhc-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fhc-modal__title {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.17;
}

.fhc-modal__details {
  margin: 11px 0 0;
  color: #969696;
  font-size: 13px;
  line-height: 1.45;
}

.fhc-modal__cta {
  display: block;
  margin-block-start: 25px;
  padding: 13px 18px;
  border-radius: 9px;
  background: var(--fhc-accent);
  color: #16110a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.fhc-modal__cta:hover {
  background: #e8bd61;
  color: #0c0904;
}

.fhc-modal__disclosure {
  margin-block-start: 9px;
  color: #6f6f6f;
  font-size: 10px;
  text-align: center;
}

.fhc-modal__end {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: rgba(0, 0, 0, .88);
  flex-direction: column;
}

.fhc-modal__end-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 750;
  text-align: center;
}

.fhc-modal__end .fhc-modal__cta {
  width: min(350px, 100%);
  margin: 0;
}

.fhc-modal__replay {
  margin-block-start: 12px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 7px;
  background: transparent;
  color: #cfcfcf;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

/* Context CTA beside individual actor/studio names. */
.fhc-entity-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-inline-start: 10px;
  vertical-align: middle;
}

.fhc-entity-link {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(212, 168, 83, .28);
  border-radius: 999px;
  background: rgba(212, 168, 83, .08);
  color: #d8b56e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.fhc-entity-link:hover,
.fhc-entity-link:focus-visible {
  border-color: rgba(212, 168, 83, .58);
  background: rgba(212, 168, 83, .15);
  color: #f0c66a;
}

.fhc-entity-link--fanclub::before {
  content: "♥";
  margin-inline-end: 5px;
  font-size: 10px;
}

.holder-box > .asside > .title .fhc-entity-links {
  display: flex;
  margin: 8px 0 0;
}

/* Non-interruptive CTA shown once per session/video at midpoint (end fallback). */
.fhc-player-host {
  position: relative;
}

.fhc-player-cta {
  position: absolute;
  inset-block-end: 62px;
  inset-inline-start: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(570px, calc(100% - 28px));
  min-height: 48px;
  padding: 8px 42px 8px 12px;
  border: 1px solid rgba(240, 198, 106, .34);
  border-radius: 10px;
  background: rgba(13, 13, 13, .93);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .42);
  color: #f2f2f2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

.fhc-player-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fhc-player-cta__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.fhc-player-cta__brand {
  color: #d4a853;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.fhc-player-cta__message {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fhc-player-cta__action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 7px;
  background: #d4a853;
  color: #171109;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.fhc-player-cta__action:hover,
.fhc-player-cta__action:focus-visible {
  background: #efc66e;
  color: #0f0b06;
}

.fhc-player-cta__close {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-end: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  place-items: center;
}

.fhc-player-cta__close:hover,
.fhc-player-cta__close:focus-visible {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

html.light .fhc {
  --fhc-surface: #f5f5f5;
  --fhc-surface-raised: #f2f2f2;
  --fhc-border: rgba(0, 0, 0, .1);
  --fhc-text: #242424;
  --fhc-muted: #707070;
}

html.light .fhc-card__media {
  background: #e9e9e9;
}

html.light .fhc-card--skeleton .fhc-card__media,
html.light .fhc-card--skeleton .fhc-card__body span {
  background: linear-gradient(100deg, #e9e9e9 22%, #f4f4f4 38%, #e9e9e9 54%);
  background-size: 220% 100%;
}

@media (max-width: 1019px) {
  .fhc__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fhc__pagination {
    flex-wrap: wrap;
  }

  .fhc__page--previous,
  .fhc__page--next {
    min-width: 76px;
  }

  .fhc-modal__dialog {
    grid-template-columns: minmax(0, 1.45fr) minmax(235px, .7fr);
  }
}

@media (max-width: 759px) {
  .fhc {
    margin-block: 24px;
    padding-block: 18px;
  }

  .fhc__header {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .fhc__fanclub {
    align-self: flex-start;
  }

  .fhc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .fhc-card__play {
    width: 38px;
    height: 38px;
    opacity: .92;
    transform: translate(-50%, -50%) scale(1);
  }

  [dir="rtl"] .fhc-card__play {
    transform: translate(50%, -50%) scale(1);
  }

  .fhc-card__title {
    font-size: 13px;
  }

  .fhc__footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .fhc__pagination {
    width: 100%;
    justify-content: center;
  }

  .fhc__page {
    min-width: 35px;
    min-height: 35px;
    padding: 6px 8px;
  }

  .fhc__page--previous,
  .fhc__page--next {
    font-size: 0;
    min-width: 35px;
  }

  .fhc__page--previous::before {
    content: "‹";
    font-size: 20px;
  }

  .fhc__page--next::before {
    content: "›";
    font-size: 20px;
  }

  .fhc__more {
    margin-inline-start: 0;
  }

  .fhc__disclosure {
    margin-inline-start: auto;
  }

  .fhc-modal {
    align-items: end;
    padding: 0;
  }

  .fhc-modal__dialog {
    display: block;
    width: 100%;
    max-height: 94vh;
    overflow-y: auto;
    border: 0;
    border-radius: 15px 15px 0 0;
  }

  .fhc-modal__player {
    min-height: 0;
  }

  .fhc-modal__info {
    padding: 19px 16px calc(22px + env(safe-area-inset-bottom));
  }

  .fhc-modal__close {
    inset-block-start: 9px;
    inset-inline-end: 9px;
  }

  .fhc-entity-links {
    margin: 7px 0 0;
  }

  .fhc-player-cta {
    inset-block-end: 52px;
    inset-inline: 8px;
    gap: 8px;
    width: auto;
    max-width: none;
    min-height: 44px;
    padding: 7px 38px 7px 10px;
  }

  .fhc-player-cta__message {
    font-size: 12px;
  }
}

@media (max-width: 410px) {
  .fhc__subtitle {
    font-size: 12px;
  }

  .fhc-card__duration,
  .fhc-card__resolution {
    inset-block-end: 5px;
    padding: 2px 5px;
    font-size: 10px;
  }

  .fhc-card__duration {
    inset-inline-end: 5px;
  }

  .fhc-card__resolution {
    inset-inline-start: 5px;
  }

  .fhc-player-cta {
    gap: 7px;
  }

  .fhc-player-cta__brand {
    font-size: 9px;
  }

  .fhc-player-cta__action {
    min-height: 30px;
    padding-inline: 9px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fhc *,
  .fhc *::before,
  .fhc *::after,
  .fhc-modal *,
  .fhc-modal *::before,
  .fhc-modal *::after,
  .fhc-player-cta,
  .fhc-player-cta * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
