/* XemPhimFun site polish 1.2: homepage only. Movie player 1.1 is untouched. */
/* Treat the trailer as a centred background. Its 16:9 canvas is sized in JS.
   The overscan stays inside the hero, never enlarging the page itself. */
.xpf-home-main .xpf-hero .xpf-inline-trailer{overflow:hidden;background:transparent;transition:opacity .7s ease;}
.xpf-home-main .xpf-hero .xpf-inline-trailer-player{
 inset:auto;left:50%;top:50%;width:var(--xpf-trailer-width,120%);height:var(--xpf-trailer-height,120%);
 max-width:none;max-height:none;transform:translate(-50%,-50%);pointer-events:none;
}
.xpf-home-main .xpf-hero .xpf-inline-trailer-player>iframe,
.xpf-home-main .xpf-hero .xpf-inline-trailer-player>div{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;border:0;pointer-events:none;}
/* Fade both edges into the site's own black, instead of abrupt letterbox edges. */
.xpf-home-main .xpf-hero.has-trailer .xpf-slide-gradient{
 background:linear-gradient(180deg,#08080c 0%,#08080c 10%,rgba(8,8,12,.8) 22%,rgba(8,8,12,.3) 42%,rgba(8,8,12,.55) 62%,rgba(8,8,12,.95) 82%,#08080c 92%,#08080c 100%),linear-gradient(90deg,rgba(8,8,12,.58),rgba(8,8,12,.22) 42%,rgba(8,8,12,.08) 75%);
}
.xpf-home-main .xpf-hero.has-trailer .xpf-slide.is-active .xpf-backdrop{transition:opacity .7s ease;}
.xpf-home-main .xpf-anime-bg{object-position:center;opacity:.72;}
.xpf-home-main .xpf-anime-shade{background:linear-gradient(90deg,rgba(8,8,16,.96) 0%,rgba(8,8,16,.86) 26%,rgba(8,8,16,.38) 58%,rgba(8,8,16,.14) 100%);}
/* Use a different, less heavy title face; no new font download or site-wide change. */
.xpf-site .xpf-home-main .xpf-anime-copy h2{font-family:"Segoe UI",Arial,sans-serif;font-size:32px;line-height:1.2;font-weight:700;letter-spacing:-.02em;text-shadow:0 2px 16px #0006;}
@media(max-width:1200px){.xpf-site .xpf-home-main .xpf-anime-copy h2{font-size:28px;}}
@media(max-width:768px){
 .xpf-site .xpf-home-main .xpf-anime-copy h2{font-size:26px;line-height:1.22;}
 .xpf-home-main .xpf-anime-bg{object-position:60% center;}
 .xpf-home-main .xpf-hero.has-trailer .xpf-slide-gradient{background:linear-gradient(180deg,#08080c 0%,rgba(8,8,12,.84) 12%,rgba(8,8,12,.2) 38%,rgba(8,8,12,.62) 60%,#08080c 96%);}
}
@media(max-width:480px){.xpf-site .xpf-home-main .xpf-anime-copy h2{font-size:25px;}.xpf-home-main .xpf-anime-shade{background:linear-gradient(90deg,rgba(8,8,16,.94),rgba(8,8,16,.72) 72%,rgba(8,8,16,.6));}}
@media(prefers-reduced-motion:reduce){.xpf-home-main .xpf-hero .xpf-inline-trailer,.xpf-home-main .xpf-hero.has-trailer .xpf-slide.is-active .xpf-backdrop{transition:none;}}
