/* XemPhimFun 1.2. Only navigation, search, interest cards and footer. */
.xpf-site .xpf-side{background:transparent}
.xpf-site .xpf-side::before{background:linear-gradient(90deg,#000000eb 0%,#000000b8 45%,#0000004d 78%,transparent 100%)}
.xpf-site .xpf-side:hover,.xpf-site .xpf-side:focus-within{width:240px}
.xpf-site .xpf-nav-item{width:240px;color:rgba(255,255,255,.65);padding:0 32px;gap:24px}
.xpf-site .xpf-nav-item>svg{height:22px;width:22px;stroke-width:2;filter:drop-shadow(0 1px 3px rgba(0,0,0,.9))}
.xpf-site .xpf-nav-item>span{color:rgba(255,255,255,.7);transform:none;transform-origin:left center;letter-spacing:.025em;transition:opacity .3s,transform .3s,color .3s}
.xpf-site .xpf-nav-item:hover,.xpf-site .xpf-nav-item:focus-visible{color:#fff}
.xpf-site .xpf-nav-item:hover>span,.xpf-site .xpf-nav-item:focus-visible>span{color:#fff;transform:scale(1.05)}
.xpf-site .xpf-nav-item.is-active{color:#ffc72c}
.xpf-site .xpf-nav-item.is-active>span{color:#ffc72c}
.xpf-site .xpf-side-bottom{display:flex;flex-shrink:0;flex-direction:column;align-items:flex-start;gap:8px;padding:0 0 20px 22px}
.xpf-site .xpf-side-tool{display:flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;background:none;border:0;color:rgba(255,255,255,.7);filter:drop-shadow(0 1px 3px rgba(0,0,0,.9));transition:color .2s}
.xpf-site .xpf-side-tool svg{width:20px;height:20px;stroke-width:2}
.xpf-site .xpf-side-tool:hover,.xpf-site .xpf-side-tool:focus-visible{color:#fff}
.xpf-site .xhd-account-links>button{border:1px solid #ffffff18;text-align:left;padding:10px 12px;border-radius:8px}
/* Input is the header: no second title or boxed input inside this dialog. */
.xpf-site #xpf-search{align-items:flex-start;padding:8vh 16px 16px;font-family:XHDInter,Inter,system-ui,sans-serif}
.xpf-site #xpf-search>.xhd-backdrop{background:rgba(0,0,0,.70);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.xpf-site #xpf-search .xpf-search-dialog{width:100%!important;max-width:640px!important;padding:0;max-height:calc(92vh - 16px)!important;max-height:calc(92dvh - 16px)!important;border-radius:16px;background:#0c0c0d;border:1px solid #ffffff1a;box-shadow:0 25px 50px -12px #0009;overflow:hidden}
.xpf-site #xpf-search .xpf-search-form{margin:0;padding:0;line-height:1.5}
.xpf-site .xpf-search-bar{display:flex;align-items:center;gap:12px;padding:0 16px;border-bottom:1px solid #ffffff1a}
.xpf-site .xpf-search-bar>button{display:flex;align-items:center;justify-content:center;flex-shrink:0;border:0;padding:0;background:none;color:#8a90a5;line-height:1}
.xpf-site .xpf-search-bar>button:hover{color:#fff}
.xpf-site .xpf-search-bar>button>svg{width:20px;height:20px}
.xpf-site .xpf-search-bar>input{flex:1;min-width:0;width:100%;height:56px;margin:0;padding:16px 0;background:transparent;border:0;border-radius:0;outline:0;box-shadow:none;color:#f4f4f5;font:400 16px/24px XHDInter,Inter,system-ui,sans-serif;appearance:none;-webkit-appearance:none}
.xpf-site .xpf-search-bar>input:focus-visible{outline:0;outline-offset:0}
.xpf-site .xpf-search-bar>input::placeholder{color:#8a90a5;opacity:1}
.xpf-site .xpf-search-bar>input::-webkit-search-cancel-button{display:none}
.xpf-site .xpf-search-bar kbd{font:400 10px/15px XHDInter,Inter,system-ui,sans-serif;flex-shrink:0;border:1px solid #ffffff1a;background:#ffffff0d;border-radius:3px;color:#8a90a5;padding:2px 6px;box-shadow:none}
.xpf-site .xpf-search-scroll{max-height:62vh;max-height:min(62dvh,calc(92dvh - 74px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#333 #0c0c0d}
.xpf-site .xpf-search-caption{padding:12px 16px 4px;font-size:11px;line-height:16.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#8a90a5}
.xpf-site .xpf-search-status{padding:24px 16px;text-align:center;font-size:14px;color:#8a90a5}
.xpf-site .xpf-search-status[hidden]{display:none!important}
.xpf-site .xpf-search-results{margin:0;padding:0}
.xpf-site .xpf-search-result{display:flex;align-items:center;gap:12px;width:100%;padding:10px 16px;min-width:0;background:transparent;color:#f4f4f5;transition:background .15s;text-align:left}
.xpf-site .xpf-search-result:hover{background:#ffffff08;color:#fff}
.xpf-site .xpf-search-result.is-active,.xpf-site .xpf-search-result:focus-visible{background:#ffffff0f;color:#fff}
.xpf-site .xpf-search-result>img{display:block;flex-shrink:0;width:42px;height:60px;object-fit:cover;object-position:center;border-radius:4px;background:#1a1a20}
.xpf-site .xpf-search-result-copy{display:block;flex:1;min-width:0}
.xpf-site .xpf-search-result strong{display:block;font-size:14px;line-height:21px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}
.xpf-site .xpf-search-result small{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:2px;font-size:12px;line-height:18px;color:#8a90a5}
.xpf-site .xpf-search-result .xpf-search-score{display:inline-flex;align-items:center;gap:2px;color:#ffb900;font-weight:500}
.xpf-site .xpf-search-score svg{width:12px;height:12px}
.xpf-site .xpf-search-type{text-transform:uppercase}
.xpf-site .xpf-search-result>.xpf-search-enter{width:16px;height:16px;flex-shrink:0;color:#8a90a5;visibility:hidden}
.xpf-site .xpf-search-result.is-active>.xpf-search-enter{visibility:visible}
.xpf-site .xpf-search-all,.xpf-site .xpf-search-retry{display:block;padding:12px 16px;width:100%;background:transparent;border:0;border-top:1px solid #ffffff1a;text-align:center;font-size:14px;line-height:21px;font-weight:500;color:#fff}
.xpf-site .xpf-search-all:hover,.xpf-site .xpf-search-retry:hover{background:#ffffff0a}
/* Reference interest cards: 96px, white solid glyphs, glass gradient and subtle lift. */
.xpf-site .xpf-topics h2{margin-bottom:20px;font-size:20px;line-height:28px;font-weight:600;letter-spacing:normal}
.xpf-site .xpf-topic-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.xpf-site .xpf-topic{height:96px;min-height:96px;padding:16px;border-radius:12px;border:1px solid #ffffff24;background:linear-gradient(145deg,#ffffff1a 0%,#ffffff0a 100%);backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);box-shadow:inset 0 1px #ffffff2e,0 8px 24px #00000059;transition:transform .3s,border-color .3s,background .3s,box-shadow .3s;overflow:hidden}
.xpf-site .xpf-topic:hover,.xpf-site .xpf-topic:focus-visible{background:linear-gradient(145deg,#ffffff29 0%,#ffffff12 100%);border-color:#ffffff3d;transform:translateY(-2px);box-shadow:inset 0 1px #ffffff42,0 12px 32px #00000080}
.xpf-site .xpf-topic>svg{height:24px;width:24px;margin:0 0 auto;color:#ffffffe6;stroke:none;flex-shrink:0}
.xpf-site .xpf-topic strong{font-size:13.6px;line-height:20.4px;font-weight:600;color:#fff}
.xpf-site .xpf-topic>span{font-size:11.2px;line-height:16.8px;color:#ffffff99;gap:4px;margin-top:0}
.xpf-site .xpf-topic>span svg{width:7px;height:7px}
/* Four real link groups and compact mobile footer, scoped away from movie pages. */
.xpf-site .xpf-footer{margin:64px 0 0 80px;padding:0;border-top:1px solid #ffffff0a;color:#ffffff59}
.xpf-site .xpf-footer-inner{max-width:1400px;margin:0 auto;padding:0 80px 0 0}
.xpf-site .xpf-footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,minmax(0,1fr));gap:32px;padding:40px 0}
.xpf-site .xpf-footer-about{grid-column:auto;min-width:0}
.xpf-site .xpf-footer .xpf-brand{font-size:18.9px;letter-spacing:.04em;gap:8px;line-height:1;margin-bottom:12px;color:#fff}
.xpf-site .xpf-footer .xpf-brand-word{font-size:inherit}
.xpf-site .xpf-footer .xpf-brand-word img{height:32px;max-height:32px;max-width:220px;width:auto}
.xpf-site .xpf-footer .xpf-brand-icon{width:32px;height:32px;flex-basis:32px}
.xpf-site .xpf-footer .xpf-brand-icon svg{width:30px;height:30px}
.xpf-site .xpf-footer-about>p{font-size:12.48px;line-height:1.7;margin:0 0 16px;max-width:320px;color:#ffffff59}
.xpf-site .xpf-footer h2{font-size:12.48px;line-height:1.5;color:#ffffff80;text-transform:uppercase;letter-spacing:.05em;font-weight:600;margin:0 0 12px}
.xpf-site .xpf-footer-column nav{display:flex;flex-direction:column;gap:6px;font-size:12.48px;line-height:24px}
.xpf-site .xpf-footer a{transition:color .15s}
.xpf-site .xpf-footer a:hover{color:#ffffffb3}
.xpf-site .xpf-footer-unavailable{cursor:default}
.xpf-site .xpf-footer .xpf-footer-social{display:flex;flex-direction:row;gap:8px;margin:0}
.xpf-site .xpf-footer-social>*{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:#ffffff40;transition:color .15s,background .15s}
.xpf-site .xpf-footer-social svg{width:12px;height:12px}
.xpf-site .xpf-footer-social>a:hover{color:#ffffff99;background:#ffffff0f}
.xpf-site .xpf-footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #ffffff0a;margin:0;padding:20px 0;font-size:11.2px;line-height:16.8px;color:#ffffff40}
.xpf-site .xpf-footer-mobile{display:none}
.xpf-site .xpf-to-top{display:flex;align-items:center;justify-content:center;width:40px;height:40px;right:24px;bottom:24px;padding:0;border:1px solid #ffffff26;border-radius:50%;background:linear-gradient(145deg,#24242e,#141419);box-shadow:inset 0 1px #ffffff1a;color:#fff}
.xpf-site .xpf-to-top[hidden]{display:none!important}
.xpf-site .xpf-to-top:hover{background:#303039}
@media(max-width:1024px){
 .xpf-site .xpf-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
 .xpf-site .xpf-footer-about{grid-column:1/-1}
}
@media(max-width:1023px){
 .xpf-site .xpf-footer{margin-left:0}
 .xpf-site .xpf-footer-inner{padding:0 32px}
 .xpf-site .xpf-footer-bottom{padding-bottom:90px}
 .xpf-site .xpf-to-top{bottom:84px;right:16px}
 .xpf-site .xpf-topic-grid{gap:10px}
}
@media(max-width:768px){
 .xpf-site .xpf-footer{margin-top:64px}
 .xpf-site .xpf-footer-inner{padding:20px 16px 0}
 .xpf-site .xpf-footer-grid{display:none}
 .xpf-site .xpf-footer-mobile{display:block;text-align:center}
 .xpf-site .xpf-footer-mobile .xpf-brand{font-size:16.8px;margin-bottom:8px}
 .xpf-site .xpf-footer-mobile .xpf-brand-icon{height:28px;width:28px;flex-basis:28px}
 .xpf-site .xpf-footer-mobile nav{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:4px 16px;padding:12px 0;font-size:11.2px;line-height:1.5}
 .xpf-site .xpf-footer-bottom{border:0;flex-direction:column;justify-content:center;gap:4px;padding:0 0 96px;text-align:center;font-size:10.4px;line-height:16px}
}
@media(max-width:767px){
 .xpf-site .xpf-topic-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .xpf-site .xpf-topics h2{font-size:20px;line-height:28px}
 .xpf-site .xpf-topic{padding:12px;height:96px;min-height:96px}
 .xpf-site .xpf-topic strong{font-size:12px;line-height:18px}
 .xpf-site .xpf-topic>span{font-size:10.5px;line-height:16px}
}
@media(max-width:639px){.xpf-site .xpf-search-bar kbd{display:none}}
@media(max-width:480px){
 .xpf-site .xpf-footer{margin-top:32px}
 .xpf-site .xpf-topic{padding:10px}
 .xpf-site #xpf-search{padding:8vh 12px 12px}
 .xpf-site .xpf-search-bar{gap:10px;padding:0 12px}
 .xpf-site .xpf-search-result{padding-inline:12px;gap:10px}
}
@media(prefers-reduced-motion:reduce){.xpf-site .xpf-topic,.xpf-site .xpf-nav-item>span,.xpf-site .xpf-search-result{transition:none}}


/* XemPhimFun v8: derive the collapsed rail mark from the owner-uploaded full logo. */
.xpf-site .xpf-brand-image{display:inline-flex;align-items:center;overflow:hidden;flex:0 0 auto;min-width:0}
.xpf-site .xpf-brand-image>img{display:block;width:210px;height:auto;max-width:none;object-fit:contain;object-position:left center}
.xpf-site .xpf-side-brand .xpf-brand-image{width:44px;transition:width .3s ease}
.xpf-site .xpf-side:hover .xpf-side-brand .xpf-brand-image,.xpf-site .xpf-side:focus-within .xpf-side-brand .xpf-brand-image{width:210px}
.xpf-site .xpf-footer .xpf-brand-image{width:auto;overflow:visible}
.xpf-site .xpf-footer .xpf-brand-image>img{height:32px;width:auto;max-width:220px}
@media(prefers-reduced-motion:reduce){.xpf-site .xpf-side-brand .xpf-brand-image{transition:none}}
