/* PhimHDC Home V3.7 — reference-aligned spotlight, upcoming shelf,
   footer and sticky header. Loaded ONLY on the independent homepage.
   Previous v2-v6 styling is left intact for predictable patch upgrades. */

/* The hero/header fade is appropriate at the TOP of the page only.
   After scrolling, the reference switches to an opaque #151519 bar. */
body.phdc-home .phdc-header.is-scrolled {
  background: #151519 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}
body.phdc-home .phdc-header.is-scrolled::before {
  content: none !important;
  display: none !important;
}
body.phdc-home .phdc-header.is-scrolled .phdc-search {
  background: #1a1a1f;
}

/* Spotlight layout — on the supplied sample the content has a narrower inset,
   the yellow play button is 70px and the outlined pill has two 68x50 controls. */
body.phdc-home .phdc-feature-section { margin-top: 12px; margin-bottom: 55px; }
body.phdc-home .phdc-feature {
  background: #2f3346;
  border-radius: 18px;
  height: clamp(420px, 34vw, 570px);
}
body.phdc-home .phdc-feature-slide { background: #2f3346; border-radius: 18px; }
body.phdc-home .phdc-feature-image {
  left: min(500px, 37%);
  width: calc(100% - min(500px, 37%));
}
body.phdc-home .phdc-feature-image > img {
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%, #000 100%);
  mask-image: linear-gradient(0deg, transparent 0%, #000 30%, #000 100%);
}
body.phdc-home .phdc-feature-image::after {
  background: linear-gradient(90deg,rgba(47,51,70,.94) 0%,rgba(47,51,70,.32) 31%,transparent 66%);
}
body.phdc-home .phdc-feature-shade {
  background: linear-gradient(90deg,#2f3346 0%,rgba(47,51,70,.96) 18%,rgba(47,51,70,.15) 61%,transparent 82%);
}
body.phdc-home .phdc-feature-copy {
  left: clamp(20px, 2.8%, 43px);
  top: 16.5%;
  width: min(650px, 54%);
  max-width: calc(100% - 38px);
}
body.phdc-home .phdc-feature-copy h3 { font-size: clamp(27px,2.1vw,33px); margin-bottom: 16px; }
body.phdc-home .phdc-feature-description {
  font-size: 16px;
  line-height: 1.6;
  max-width: 650px;
  min-height: 70px;
  margin-bottom: 18px;
  -webkit-line-clamp: 3;
}
body.phdc-home .phdc-feature-actions { align-items:center; gap:32px; }
body.phdc-home .phdc-feature-actions .phdc-feature-play {
  display: inline-flex;
  flex: 0 0 70px;
  width:70px;
  height:70px;
  border-radius:50%;
  background:linear-gradient(39deg,#fecf59,#fff1cc);
  color: #191b24 !important;
  border:0;
  box-shadow:none;
}
body.phdc-home .phdc-feature-actions .phdc-feature-play svg { width:28px; height:28px; }
body.phdc-home .phdc-feature-action-group {
  min-height:54px;
  display:inline-flex;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.08);
  border-radius:30px;
  background:transparent;
}
body.phdc-home .phdc-feature-actions .phdc-feature-fast,
body.phdc-home .phdc-feature-actions .phdc-feature-details {
  display:flex;
  flex:0 0 68px;
  width:68px;
  height:50px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff !important;
  align-items:center;
  justify-content:center;
  border-radius:0;
  transition:background .2s, color .2s;
}
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:hover,
body.phdc-home .phdc-feature-actions .phdc-feature-details:hover {
  color:#ffe6a2 !important;
  background:rgba(255,255,255,.09);
}
body.phdc-home .phdc-feature-actions .phdc-feature-fast svg,
body.phdc-home .phdc-feature-actions .phdc-feature-details svg { width:24px;height:24px; }
body.phdc-home .phdc-feature-dots { bottom:-41px; }
body.phdc-home .phdc-feature-dots button { width:12px;height:12px;flex:0 0 12px; }

/* Upcoming module — five true landscape/backdrop cards, not a hidden module.
   Only labelled-as-upcoming or strictly trailer-only records are displayed. */
body.phdc-home .phdc-upcoming {
  margin-top: 16px;
  margin-bottom: 29px;
}
body.phdc-home .phdc-upcoming .phdc-section-heading h2 {
  background:linear-gradient(235deg,#fff 30%,#674196 130%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}
body.phdc-home .phdc-upcoming-track {
  grid-auto-columns:calc((100% - 4 * 11px) / 5);
  gap:11px;
  padding-bottom:6px;
}
body.phdc-home .phdc-upcoming-card { display:block;min-width:0;scroll-snap-align:start; }
body.phdc-home .phdc-upcoming-image {
  display:block;
  position:relative;
  width:100%;
  aspect-ratio:1.68/1;
  border-radius:10px;
  overflow:hidden;
  background:#292d37;
}
body.phdc-home .phdc-upcoming-image img { width:100%;height:100%;object-fit:cover;transition:transform .25s ease; }
body.phdc-home .phdc-upcoming-card:hover .phdc-upcoming-image img { transform:scale(1.035); }
body.phdc-home .phdc-upcoming-label {
  display:inline-flex;
  align-items:center;
  position:absolute;
  z-index:2;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  color:#fff;
  background:#188d58;
  font-size:12px;
  line-height:1.3;
  padding:5px 11px;
  border-radius:4px 4px 0 0;
  white-space:nowrap;
}
body.phdc-home .phdc-upcoming-title {
  display:block;
  color:#e6e6e9;
  font-size:15px;
  font-weight:500;
  text-align:center;
  margin:12px 4px 0;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
body.phdc-home .phdc-upcoming-card:hover .phdc-upcoming-title { color:#ffdc89; }
body.phdc-home .phdc-upcoming-empty {
  margin:0;
  padding:23px 20px;
  border-radius:9px;
  background:#23252e;
  color:#bfc0c8;
  font-size:15px;
  text-align:center;
}

/* Footer replicates the reference proportions: charcoal strip, brand at
   the left, slash-separated real internal links + two short lines at right. */
body.phdc-home .phdc-footer {
  display:block;
  margin:0 0 0 var(--phdc-nav) !important;
  width:calc(100% - var(--phdc-nav));
  padding:25px 24px 27px;
  background:#202125;
  color:#eeeef1;
}
body.phdc-home .phdc-footer-inner {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  width:100%;
}
body.phdc-home .phdc-footer-brand { display:flex;align-items:center;flex:0 0 auto;width:155px; }
body.phdc-home .phdc-footer-brand img,
body.phdc-home .phdc-footer-brand img.phdc-admin-logo { width:155px;max-width:155px;height:auto;max-height:56px;object-fit:contain;object-position:left center; }
body.phdc-home .phdc-footer-right { flex:1 1 auto;min-width:0;text-align:right; }
body.phdc-home .phdc-footer .phdc-footer-links {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:0;
  font-size:14px;
  line-height:1.5;
  margin:0 0 9px;
  padding:0;
}
body.phdc-home .phdc-footer-links a { display:inline-block;position:relative;margin-left:23px;color:#ededf0;white-space:nowrap; }
body.phdc-home .phdc-footer-links a:not(:first-child)::before { content:"/";position:absolute;left:-14px;color:#b3b3ba; }
body.phdc-home .phdc-footer-links a:hover { color:#ffe29a; }
body.phdc-home .phdc-footer-copy { font-size:13px;line-height:1.5;max-width:none;color:#e4e4e6; }
body.phdc-home .phdc-footer-copy p { margin:2px 0; }

@media (max-width:1400px) {
  body.phdc-home .phdc-feature-copy { top:15.5%; width: min(610px, 57%); }
  body.phdc-home .phdc-feature-description { font-size:15px; }
  body.phdc-home .phdc-feature { height:clamp(420px, 36vw, 545px); }
  body.phdc-home .phdc-footer-copy { font-size:12px; }
}
@media (max-width:1100px) {
  body.phdc-home .phdc-feature-copy { width:60%;left:22px; }
  body.phdc-home .phdc-feature-image {left:28%;width:72%;}
  body.phdc-home .phdc-upcoming-track {grid-auto-columns:calc((100% - 2 * 10px) / 3);gap:10px;}
  body.phdc-home .phdc-footer-links a {margin-left:18px;}
  body.phdc-home .phdc-footer-links a:not(:first-child)::before {left:-12px;}
}
@media (max-width:800px) {
  body.phdc-home .phdc-header.is-scrolled { background:#151519 !important; }
  body.phdc-home .phdc-feature {height:375px;}
  body.phdc-home .phdc-feature-copy {top:17%;width:70%;left:18px;}
  body.phdc-home .phdc-feature-copy h3 {font-size:24px;margin-bottom:10px;}
  body.phdc-home .phdc-feature-description {font-size:13px;min-height:0;margin:0 0 13px;}
  body.phdc-home .phdc-feature-actions {gap:14px;}
  body.phdc-home .phdc-feature-actions .phdc-feature-play {flex-basis:54px;width:54px;height:54px;}
  body.phdc-home .phdc-feature-actions .phdc-feature-play svg {width:23px;height:23px;}
  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 {flex-basis:47px;width:47px;height:42px;}
  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:-33px;}
  body.phdc-home .phdc-upcoming-track {grid-auto-columns:calc((100% - 9px) / 2);gap:9px;}
  body.phdc-home .phdc-footer {margin:0 !important;width:100%;padding:22px 18px;}
  body.phdc-home .phdc-footer-inner {flex-wrap:wrap;gap:15px;}
  body.phdc-home .phdc-footer-right {flex-basis:100%;text-align:left;}
  body.phdc-home .phdc-footer .phdc-footer-links {justify-content:flex-start;flex-wrap:wrap;font-size:13px;row-gap:5px;}
  body.phdc-home .phdc-footer .phdc-footer-links a:first-child {margin-left:0;}
}
@media (max-width:520px) {
  body.phdc-home .phdc-feature {height:345px;border-radius:12px;}
  body.phdc-home .phdc-feature-slide {border-radius:12px;}
  body.phdc-home .phdc-feature-copy {left:13px;top:12%;width:83%;max-width:calc(100% - 26px);}
  body.phdc-home .phdc-feature-copy h3 {font-size:20px;margin-bottom:7px;}
  body.phdc-home .phdc-feature-description {font-size:11.5px;line-height:1.5;-webkit-line-clamp:3;max-width:90%;}
  body.phdc-home .phdc-feature-actions {gap:12px;}
  body.phdc-home .phdc-feature-actions .phdc-feature-play {flex-basis:49px;width:49px;height:49px;}
  body.phdc-home .phdc-feature-actions .phdc-feature-fast,
  body.phdc-home .phdc-feature-actions .phdc-feature-details {flex-basis:43px;width:43px;height:40px;}
  body.phdc-home .phdc-feature-action-group {min-height:44px;}
  body.phdc-home .phdc-upcoming-track {grid-auto-columns:75%;}
  body.phdc-home .phdc-upcoming-title {font-size:13px;}
}
@media (prefers-reduced-motion:reduce) {
  body.phdc-home .phdc-feature-actions a,body.phdc-home .phdc-upcoming-image img {transition:none!important;}
}
