/* PHIMHDC HOME V3.8 — restores the continuous reference fade,
   true end-of-hero sticky state and the two-mask reference spotlight.
   This is intentionally scoped to the independent homepage. */

/* A single uninterrupted image under the logo / sidebar / search.
   V3.6 used a 215px clip-path in header::before: it produced the visible
   bright vertical seam reported by the user. No clipping on header. */
body.phdc-home .phdc-header:not(.is-scrolled) {
  background: linear-gradient(180deg,
     rgba(14,15,20,.83) 0%,
     rgba(14,15,20,.59) 44%,
     rgba(14,15,20,0) 100%) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.phdc-home .phdc-header::before,
body.phdc-home .phdc-header.is-scrolled::before {
  content: none !important;
  display: none !important;
  clip-path: none !important;
}
body.phdc-home .phdc-header.is-scrolled {
  background: #151519 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
/* Background fades are drawn on the full-width hero, rather than separate
   left- and right-hand panels. The poster thumbnails stay above the layers. */
body.phdc-home .phdc-hero::before,
body.phdc-home .phdc-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 3;
}
body.phdc-home .phdc-hero::before {
  inset: 0 0 auto;
  height: 245px;
  background: linear-gradient(180deg,
     rgba(14,15,20,.75) 0%,
     rgba(14,15,20,.44) 35%,
     rgba(14,15,20,.14) 72%,
     rgba(14,15,20,0) 100%);
}
body.phdc-home .phdc-hero::after {
  inset: 0;
  background: linear-gradient(90deg,
     rgba(12,13,18,.66) 0%,
     rgba(12,13,18,.55) 10%,
     rgba(12,13,18,.27) 26%,
     rgba(12,13,18,0) 52%);
}
@media (min-width: 801px) {
  /* The hero itself supplies the glass shade, including behind the logo.
     Removing the second opaque sidebar gradient removes the x=215px seam. */
  body.phdc-home .phdc-sidebar:not(.is-solid) {
    background: transparent !important;
    box-shadow: none !important;
  }
  body.phdc-home .phdc-sidebar.is-solid {
    background: linear-gradient(90deg,#15161e 0%,#191a22 76%,rgba(25,26,34,.91) 100%) !important;
  }
}

/* Reference movie-slider HTML: slide-elements -> cover-fade -> cover-image.
   Two independent masks create the soft panorama with no extra dark slab. */
body.phdc-home .phdc-feature-section { margin-top: 17px; margin-bottom: 58px; }
body.phdc-home .phdc-feature {
  position: relative;
  isolation: isolate;
  height: 490px;
  border-radius: 19px;
  overflow: visible;
  background: #2f3346;
}
body.phdc-home .phdc-feature-slide {
  background: #2f3346;
  border-radius: 19px;
  overflow: hidden;
}
body.phdc-home .phdc-feature-slide::after {
  background-image: radial-gradient(rgba(255,255,255,.19) .65px,transparent .8px);
  background-size: 5px 5px;
  opacity: .18;
}
body.phdc-home .phdc-feature-image {
  position: absolute;
  inset: 0 0 0 auto;
  left: 500px;
  width: calc(100% - 500px);
  height: 100%;
  overflow: hidden;
  z-index: 0;
  -webkit-mask-image: linear-gradient(0deg,transparent 0%,#000 50%,#000 100%);
  mask-image: linear-gradient(0deg,transparent 0%,#000 50%,#000 100%);
}
body.phdc-home .phdc-feature-cover {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg,transparent 0%,rgba(0,0,0,.2) 15%,#000 40%,#000 80%,transparent 99%);
  mask-image: linear-gradient(90deg,transparent 0%,rgba(0,0,0,.2) 15%,#000 40%,#000 80%,transparent 99%);
}
body.phdc-home .phdc-feature-cover > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}
body.phdc-home .phdc-feature-image::after,
body.phdc-home .phdc-feature-shade { display: none !important; }
body.phdc-home .phdc-feature-copy {
  position: relative;
  inset: auto;
  z-index: 4;
  width: 100%;
  max-width: 700px;
  padding: 100px 50px;
  margin: 0;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}
body.phdc-home .phdc-feature-copy h3 {
  font: 700 32px/1.5 Arial,Helvetica,sans-serif;
  letter-spacing: 0;
  margin: 0 0 16px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.phdc-home .phdc-feature-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  line-height: 1.35;
}
body.phdc-home .phdc-feature-tags span {
  padding: 3px 9px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 4px;
  color: #fff;
  background: rgba(255,255,255,.04);
}
body.phdc-home .phdc-feature-description {
  font: 400 16px/1.6 Arial,Helvetica,sans-serif;
  max-width: 650px;
  min-height: calc(16px * 1.6 * 3);
  margin: 0 0 16px;
  -webkit-line-clamp: 3;
}
body.phdc-home .phdc-feature-actions { gap: 32px; align-items: center; }
body.phdc-home .phdc-feature-actions .phdc-feature-play {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  background: linear-gradient(39deg,#fecf59,#fff1cc);
  border-radius: 50%;
  color: #191b24 !important;
  box-shadow: none;
}
body.phdc-home .phdc-feature-actions .phdc-feature-play svg { width: 28px; height: 28px; }
body.phdc-home .phdc-feature-action-group {
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(255,255,255,.07);
  min-height: 54px;
  border-radius: 30px;
  overflow: hidden;
  background: transparent;
}
body.phdc-home .phdc-feature-actions .phdc-feature-fast,
body.phdc-home .phdc-feature-actions .phdc-feature-details {
  flex: 0 0 68px;
  min-width: 68px;
  width: 68px;
  height: 50px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.phdc-home .phdc-feature-actions .phdc-feature-fast {
  border-right: 2px solid rgba(255,255,255,.07);
}
body.phdc-home .phdc-feature-actions .phdc-feature-fast svg,
body.phdc-home .phdc-feature-actions .phdc-feature-details svg { width: 20px; height: 20px; }
body.phdc-home .phdc-feature-dots {
  bottom: -36px;
  gap: 8px;
}
body.phdc-home .phdc-feature-dots button {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: #49463d;
}
body.phdc-home .phdc-feature-dots button.is-active { background: #ffdc84; }

@media (max-width: 1200px) {
  body.phdc-home .phdc-feature { height: 460px; }
  body.phdc-home .phdc-feature-image { left: min(390px,35%); width: calc(100% - min(390px,35%)); }
  body.phdc-home .phdc-feature-copy { max-width: 650px; padding: 78px 34px; }
  body.phdc-home .phdc-feature-copy h3 { font-size: 28px; }
  body.phdc-home .phdc-feature-description { font-size: 15px; }
}
@media (max-width: 800px) {
  body.phdc-home .phdc-feature { height: 395px; }
  body.phdc-home .phdc-feature-copy { padding: 66px 24px; max-width: 580px; }
  body.phdc-home .phdc-feature-copy h3 { font-size: 25px; margin-bottom: 10px; }
  body.phdc-home .phdc-feature-image { left: 26%; width: 74%; }
  body.phdc-home .phdc-feature-description { font-size: 13px; min-height: 0; }
  body.phdc-home .phdc-feature-actions { gap: 16px; }
  body.phdc-home .phdc-feature-actions .phdc-feature-play { flex-basis: 55px; width:55px; height:55px; }
  body.phdc-home .phdc-feature-action-group { min-height: 46px; }
  body.phdc-home .phdc-feature-actions .phdc-feature-fast,
  body.phdc-home .phdc-feature-actions .phdc-feature-details { min-width:48px; flex-basis:48px; width:48px; height:42px; }
  body.phdc-home .phdc-feature-dots { bottom: -30px; gap:7px; }
  body.phdc-home .phdc-feature-dots button { width:11px;height:11px;flex-basis:11px; }
  body.phdc-home .phdc-hero::before { height: 185px; }
}
@media (max-width: 520px) {
  body.phdc-home .phdc-feature { height: 348px; border-radius: 12px; }
  body.phdc-home .phdc-feature-slide { border-radius: 12px; }
  body.phdc-home .phdc-feature-copy { padding: 38px 15px; }
  body.phdc-home .phdc-feature-copy h3 { font-size: 21px; }
  body.phdc-home .phdc-feature-tags { font-size: 11px; margin-bottom: 11px; }
  body.phdc-home .phdc-feature-tags span { padding:2px 5px; }
  body.phdc-home .phdc-feature-description { font-size: 12px; max-width: 92%; }
  body.phdc-home .phdc-feature-actions .phdc-feature-play { flex-basis: 49px; width:49px; height:49px; }
  body.phdc-home .phdc-feature-actions .phdc-feature-play svg { width:22px;height:22px; }
  body.phdc-home .phdc-feature-action-group { min-height: 42px; }
  body.phdc-home .phdc-feature-actions .phdc-feature-fast,
  body.phdc-home .phdc-feature-actions .phdc-feature-details { min-width:42px; flex-basis:42px; width:42px; height:38px; }
  body.phdc-home .phdc-feature-actions .phdc-feature-fast svg,
  body.phdc-home .phdc-feature-actions .phdc-feature-details svg { width:18px;height:18px; }
  body.phdc-home .phdc-feature-section { margin-bottom: 48px; }
}


/* V4.3 — continuous 0–500px header fade (homepage, detail & watch).
   --phdc-header-fade is updated by phdc-home-v2.js. The overlay is
   non-interactive and never covers menu/search buttons. */
body.phdc-home .phdc-header,
body.phdc-home .phdc-header:not(.is-scrolled),
body.phdc-home .phdc-header.is-scrolled {
  position: fixed;
  background: linear-gradient(180deg,
    rgba(14,15,20,.83) 0%,
    rgba(14,15,20,.59) 48%,
    rgba(14,15,20,0) 100%) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.phdc-home .phdc-header::before,
body.phdc-home .phdc-header.is-scrolled::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #151519 !important;
  opacity: var(--phdc-header-fade, 0);
  border: none !important;
  border-radius: 0 !important;
  clip-path: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
  z-index: 0 !important;
  transition: opacity .06s linear;
}
body.phdc-home .phdc-header .phdc-header-inner {
  position: relative;
  z-index: 1;
}
