/* PhimHDC V4.0 — seamless transition below the homepage hero.
   Loaded after v8. Affects only the HOME page, not detail/watch pages.
   Keeps the admin-controlled slider, header scroll behavior and navigation. */
body.phdc-home:not(.phdc-detail-page) .phdc-hero,
body.phdc-home:not(.phdc-detail-page) .phdc-hero-media {
  background-color: #191a22;
}
/* End the image at the same color as the main page. A long and continuous
   fade replaces the visible flat dark strip at the bottom of V3.8. */
body.phdc-home:not(.phdc-detail-page) .phdc-hero-shade {
  background:
    linear-gradient(to top,
      #191a22 0%,
      rgba(25,26,34,.94) 5%,
      rgba(25,26,34,.70) 12%,
      rgba(25,26,34,.31) 24%,
      rgba(25,26,34,0) 43%),
    linear-gradient(to right,
      rgba(11,12,17,.68) 0%,
      rgba(11,12,17,.30) 32%,
      rgba(11,12,17,0) 72%),
    linear-gradient(to bottom,rgba(8,8,12,.36),transparent 26%);
}
/* Avoid a hard edge even where the active slide changes. This separate
   overlay sits under the poster strip and does not block pointer actions. */
body.phdc-home:not(.phdc-detail-page) .phdc-hero-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(to bottom,
    transparent 63%,
    rgba(25,26,34,.08) 73%,
    rgba(25,26,34,.40) 84%,
    rgba(25,26,34,.78) 94%,
    #191a22 100%);
}
body.phdc-home:not(.phdc-detail-page) .phdc-main {
  margin-top: -1px;
  padding-top: 0;
  background: #191a22;
}
body.phdc-home:not(.phdc-detail-page) .phdc-topics > h2 {
  margin-top: 1px;
}
@media (min-width: 801px) {
  /* The end of poster names should sit close to the first content block,
     rather than leaving a distinct 37px-wide blank horizontal band. */
  body.phdc-home:not(.phdc-detail-page) .phdc-hero-thumbnails { bottom: 10px; }
  body.phdc-home:not(.phdc-detail-page) .phdc-hero-controls { bottom: 77px; }
}
@media (max-width: 800px) {
  body.phdc-home:not(.phdc-detail-page) .phdc-hero-thumbnails { bottom: 19px; }
  body.phdc-home:not(.phdc-detail-page) .phdc-hero-controls { bottom: 193px; }
}
@media (max-width: 390px) {
  body.phdc-home:not(.phdc-detail-page) .phdc-hero-thumbnails { bottom: 14px; }
  body.phdc-home:not(.phdc-detail-page) .phdc-hero-controls { bottom: 159px; }
}
