/* PageSpeed: header reserve, FA swap, skip-link, headings, contrast, focus */

:root {
  --zf-header-h: 75px;
}

#header {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  overflow: visible;
  padding-top: env(safe-area-inset-top, 0px);
  min-height: calc(var(--zf-header-h) + env(safe-area-inset-top, 0px));
  box-sizing: border-box;
}

#header .topbar {
  height: var(--zf-header-h);
  min-height: var(--zf-header-h);
  max-height: var(--zf-header-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

#header .topbar .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--zf-header-h);
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

#header .tb-left,
#header .tb-right {
  display: flex;
  align-items: center;
  float: none;
  height: var(--zf-header-h);
}

#header .logo {
  padding: 0;
  display: flex;
  align-items: center;
  height: var(--zf-header-h);
}

#header .search-box {
  top: calc(var(--zf-header-h) + env(safe-area-inset-top, 0px));
}

#header .user-menu {
  top: calc(var(--zf-header-h) + env(safe-area-inset-top, 0px));
}

.main-content {
  padding-top: calc(var(--zf-header-h) + env(safe-area-inset-top, 0px));
}

.main-content.home {
  margin-top: calc(var(--zf-header-h) + env(safe-area-inset-top, 0px));
  padding-top: 0;
}

.main-content.single {
  padding-top: calc(var(--zf-header-h) + env(safe-area-inset-top, 0px));
}

.main-content.archive.blog {
  margin-top: calc(var(--zf-header-h) + env(safe-area-inset-top, 0px));
}

header:not(#header) {
  position: static !important;
  top: auto !important;
  z-index: auto;
  width: auto;
}

#header .logo img {
  height: 35px;
  width: auto;
  min-height: 28px;
  max-height: 35px;
}

#header .logo .fpp-wordmark {
  font-size: 26px;
}

#header .logo .fpp-wordmark {
  font-size: 26px;
}

#header .primary-nav {
  float: left;
  overflow: visible;
  position: static;
}

button.mobile-control {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0;
  line-height: 1;
}

#header .search-wrap .search-btn,
#header .search-box .search-close-btn {
  background: transparent;
  border: 0;
  color: #fff;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

#header .search-wrap .search-btn svg,
#header .search-close-btn svg,
#header .search-close-btn .zf-hdr-icon {
  padding: 0;
  margin: 0;
  width: 20px;
  height: 20px;
  display: block;
  position: static;
  float: none;
  left: auto;
  top: auto;
  fill: currentColor;
}

#header .search-box.fullw .search-close-btn {
  z-index: 2;
}

.zf-hdr-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  pointer-events: none;
}

.mobile-control,
.search-btn,
.search-close-btn {
  cursor: pointer;
}

@font-face {
  font-family: "Font Awesome 6 Pro";
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  font-display: swap;
}

.module-title h2 {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

.home-blog-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  position: static;
  width: 100%;
}

.home-blog-head h2 {
  margin: 0;
  font-size: 1.4vw;
  font-weight: 600;
  line-height: 1.3;
}

.zf-categories-bar {
  margin: 8px 0 20px;
  clear: both;
}

.zf-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zf-cat-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.zf-cat-chip:hover {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
}

.item-date,
.data-views,
.data-runtime,
.ep-date,
.caracter,
.footer .text p,
.zf-feat-genre,
.details-info,
.item-desc h3 + span {
  color: #e6e6e6;
}

.zf-featured-module .featured-menu li a {
  color: #e6e6e6;
}

.zf-feat-rating,
.data-imdb,
.top-rating-average,
.rating,
.details-rating {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.mobile-control:focus-visible,
.search-btn:focus-visible,
.search-close-btn:focus-visible,
.owl-nav button:focus-visible,
.user-control:focus-visible,
.btn-login:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0 !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  word-wrap: normal !important;
}

.skip-link:focus,
.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none !important;
  height: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 8px 16px !important;
  position: fixed !important;
  left: 8px !important;
  top: 8px !important;
  z-index: 100000;
  background: #111;
  color: #fff;
  text-decoration: none;
  outline: 2px solid #fff;
}

@media screen and (max-width: 949px) {
  #header .primary-nav {
    display: block;
    float: none;
    position: static;
  }

  #header .main-menu {
    z-index: 60;
    top: calc(var(--zf-header-h) + env(safe-area-inset-top, 0px));
    max-height: calc(100vh - var(--zf-header-h) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  button.mobile-control {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    padding: 0 12px 0 0;
    height: var(--zf-header-h);
    position: relative;
    z-index: 61;
  }

  .home-blog-head h2 {
    font-size: 20px;
  }
}

@media screen and (max-width: 899px) {
  :root {
    --zf-header-h: 70px;
  }
}

@media screen and (max-width: 599px) {
  :root {
    --zf-header-h: 60px;
  }

  #header .logo img {
    height: 28px;
    min-height: 28px;
  }

  #header .logo .fpp-wordmark {
    font-size: 22px;
  }

  #header .user-avatar {
    width: 32px;
    height: 32px;
  }

  #header .search-btn svg,
  #header .search-btn .zf-hdr-icon {
    padding: 0;
  }
}

.details-desc a.zeta-silo-engine-link,
.display-page-heading a.zeta-silo-engine-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zeta-silo-engine-p {
  margin: 0 0 12px;
}

.main-content.no-sidebar main,
.main-content:not(:has(aside)) main {
  width: 100%;
  max-width: 100%;
  padding-right: 0;
  padding-left: 0;
  margin-right: 0;
  float: none;
}

/* Watch pages: sidebar related widgets are desktop-only.
   On mobile, "You May Also Like" is the related section. */
@media screen and (max-width: 999px) {
  .main-content.single.sidebar aside,
  .main-content.single aside {
    display: none !important;
  }

  .main-content.single.sidebar main,
  .main-content.single main,
  .main-content.single.sidebar .content-body > main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .content-similar {
    padding: 16px 0 8px;
    clear: both;
  }

  .content-similar .content-title .title-head {
    font-size: 18px;
  }

  .content-similar.fixed .similar-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .content-similar.fixed .similar-item,
  .content-similar.fixed .similar-item.show {
    width: calc(50% - 5px) !important;
    margin: 0 !important;
    padding: 0 0 72% !important;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  .content-similar.fixed .similar-item img,
  .content-similar.fixed .similar-item .thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .content-similar.slider .similar-module,
  .content-similar .similar-module {
    margin: 0;
  }

  .content-similar.slider .module-content.owl-carousel {
    padding: 0 0 8px;
  }
}

@media screen and (max-width: 479px) {
  .content-similar.fixed .similar-item,
  .content-similar.fixed .similar-item.show {
    width: calc(50% - 5px) !important;
  }
}

/* PageSpeed: CLS helpers — scoped only; do not override theme .display-item / .mli-thumb layout */
.zf-featured-card .zf-feat-img,
.zf-feat-img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}

.zf-featured-carousel .owl-stage-outer,
.zf-hero-spotlight-carousel .owl-stage-outer {
  min-height: 200px;
}

/* Top 20 / trending: one poster + rank number */
.home-module.trending .module-item .item-data > a {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 200px;
}

.home-module.trending .trending-poster {
  position: relative;
  z-index: 2;
  float: right;
  width: 45% !important;
  max-width: 220px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  height: auto;
}

.home-module.trending .top-num {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Poster CLS: reserve 2:3 before remote TMDB images paint */
.module-content .mli-thumb,
.module-item a .thumb .mli-thumb,
.vertical .module-item .mli-thumb,
.vt-module-content .module-item .mli-thumb {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.horizontal .module-item .mli-thumb {
  aspect-ratio: 16 / 9;
}

.home-module.trending .top-num .num {
  position: absolute;
  left: 0;
  bottom: 0;
  line-height: 0.9;
}

.zf-hero-lcp-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.zf-hero-slide {
  position: relative;
  overflow: hidden;
}

.zf-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.zf-featured-module .featured-tab[hidden],
.zf-featured-module .featured-tab:not(.show) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.zf-featured-module .featured-tab.show {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  pointer-events: auto !important;
}

button.search-btn,
button.search-close-btn,
button.mobile-control {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.item-desc-btn button {
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 6px;
}

.item-desc,
.zf-feat-meta-row,
.zf-feat-genre {
  color: #e0e0e0;
}

/* Modest carousel reserve only — hero height owned by front.featured.css */
.home-module.slider .module-content.owl-carousel,
.home-module.trending .module-content.owl-carousel {
  min-height: 220px;
}

/* Below-fold modules: skip layout/paint until near viewport */
.main-content.home .home-module:nth-child(n+3) {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

/* Desktop contrast: hero chrome on dark imagery */
.zf-hero-dot-separator {
  color: #c5cdd8 !important;
}

.zf-hero-overview,
.zf-hero-genres,
.zf-hero-year,
.zf-hero-category-tag {
  color: #e8edf4 !important;
}

.zf-hero-meta-row,
.zf-feat-meta-row,
.zf-feat-genre,
.item-desc-title h3,
.module-header .module-title,
.module-header a {
  color: #f0f0f0 !important;
}

#header .primary-nav .menu-link,
#header .tb-right a,
#header .search-wrap .search-btn {
  color: #f5f5f5;
}

.player-qbtn button.btn-expand,
.player-qbtn button.btn-report,
.content-share .share-btn li button.share-view-more {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.content-share .share-btn li button.share-view-more {
  font-size: 10px;
  text-transform: uppercase;
  line-height: 15px;
  color: #fff;
  background: #1a1a1a;
  padding: 8px;
  display: none;
}

