1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,715275,e=>{"use strict";var t=e.i(843476);let a=(0,e.i(271645).memo)(function({movie:e,className:a,itemClassName:r,isVerticalCard:l,extra:i}){let s=e.lang?.toLowerCase()||"",n=s.includes("vietsub")||s.includes("phụ Äá»")||!s.includes("thuyết minh")&&!s.includes("lá»ng tiếng"),o=s.includes("thuyết minh"),d=s.includes("lá»ng tiếng"),c=e.episode_current?.match(/\d+/),m=c&&"0"!==c[0]?` ${c[0]}`:e.episode_current?.toLowerCase()==="full"?" Full":"",h=!(c&&"0"!==c[0]||e.episode_current?.toLowerCase()==="full")&&(e.episode_current?.toLowerCase()==="trailer"||c&&"0"===c[0]||"Äang cáºp nháºt"===e.time),u=r||"text-[9px] md:text-[10.5px] px-1.5 md:px-2.5 py-[1px] md:py-[3px] rounded-full backdrop-blur-sm shadow-sm md:rounded-none whitespace-nowrap",p=r?"":"md:first:rounded-tl-md md:last:rounded-tr-md",x=l?"w-full flex-col md:flex-row md:flex-nowrap gap-1 md:gap-0 items-start md:items-end justify-start pl-1 sm:pl-2 md:pl-0 md:justify-center":"flex-wrap gap-1.5 justify-center px-1 md:gap-0 md:flex-nowrap";if(h){let e=(0,t.jsx)("span",{className:"text-[9px] md:text-[11px] font-bold px-1.5 md:px-3 py-0.5 md:py-1 bg-white text-black rounded-sm md:rounded-none md:rounded-t-md shadow-md z-10 transition-transform",children:"Sắp chiếu"});return l?(0,t.jsx)("div",{className:"w-full flex justify-center",children:e}):(0,t.jsx)("div",{className:`flex z-10 ${a||x}`,children:e})}let g=n&&o?"VS+TM":n?"PÄ":o?"TM":d?"LT":null,b=!!(n||o||d);return(0,t.jsxs)("div",{className:`flex z-10 ${a||x}`,children:[b&&g&&(0,t.jsx)("span",{className:`${u} ${p} ${r?"bg-[#5E6070]/95":"bg-white/90 text-[#0f1115]"}`,children:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"font-normal md:font-bold",children:[g,"."]}),(0,t.jsx)("span",{className:"font-bold",children:m})]})}),e.quality&&!r&&(0,t.jsxs)("span",{className:`${u} ${p} bg-[#F5C518]/90 text-[#0f1115]`,children:[(0,t.jsx)("span",{className:"font-normal md:font-bold",children:"QL."}),(0,t.jsxs)("span",{className:"font-bold",children:[" ",e.quality]})]}),i]})});e.s(["default",0,a])},298468,e=>{"use strict";var t=e.i(843476);let a=(0,e.i(475254).default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);var r=e.i(271645),l=e.i(78019);let i=null,s=null;function n({tmdb:e,variant:n="overlay",className:o=""}){return!function(e){let t=(0,l.buildViCDNSlug)(e),[a,n]=(0,r.useState)(()=>!!(t&&i?.has(t)));return(0,r.useEffect)(()=>{if(!t)return void n(!1);let e=!0;return(i?Promise.resolve(i):(!s&&(s=fetch("/api/song-ngu").then(e=>e.ok?e.json():{slugs:[]}).then(e=>i=new Set(e.slugs||[])).catch(()=>(s=null,new Set))),s)).then(a=>{e&&n(a.has(t))}),()=>{e=!1}},[t]),a}(e)?null:"strip"===n?(0,t.jsxs)("span",{className:`inline-flex items-center gap-0.5 text-[9px] md:text-[10.5px] px-1.5 md:px-2.5 py-[1px] md:py-[3px] rounded-full backdrop-blur-sm shadow-sm md:rounded-none md:first:rounded-tl-md md:last:rounded-tr-md whitespace-nowrap bg-purple-600/90 text-white font-bold ${o}`,children:[(0,t.jsx)(a,{className:"w-2.5 h-2.5 md:w-3 md:h-3"}),"Song Ngữ"]}):"pill"===n?(0,t.jsxs)("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded border border-purple-300/50 bg-purple-600/80 backdrop-blur-sm font-semibold text-white ${o}`,children:[(0,t.jsx)(a,{className:"w-4 h-4"}),"Song Ngữ"]}):(0,t.jsxs)("div",{className:`absolute z-[15] flex items-center gap-1.5 px-2 py-1 rounded-md bg-purple-600/90 backdrop-blur-sm border border-purple-300/40 text-[10px] md:text-[12px] font-bold text-white shadow-md pointer-events-none ${o||"top-2 right-2"}`,children:[(0,t.jsx)(a,{className:"w-3.5 h-3.5 md:w-4 md:h-4"}),"Song Ngữ"]})}e.s(["default",()=>n],298468)},918279,e=>{"use strict";function t(e){return e%2==0?"M 0,0.08 Q 0,0 0.08,0 L 0.93,0.092 Q 1,0.10 1,0.17 L 1,0.92 Q 1,1 0.92,1 L 0.08,1 Q 0,1 0,0.92 Z":"M 0,0.17 Q 0,0.10 0.07,0.092 L 0.92,0 Q 1,0 1,0.08 L 1,0.92 Q 1,1 0.92,1 L 0.08,1 Q 0,1 0,0.92 Z"}e.s(["getSvgClipPath",()=>t])},210570,e=>{"use strict";var t=e.i(843476),a=e.i(657688),r=e.i(271645);e.i(728762);var l=e.i(728116),i=e.i(715275),s=e.i(298468),n=e.i(918279),o=e.i(360860),d=e.i(644685);e.i(809754);let c=r.default.memo(function({movie:e,priority:c,disableClipPath:m,onRemoveFavorite:h,idx:u=0,hrefPrefix:p="/phim"}){let x=(0,l.getImageUrl)(e.poster_url),[g,b]=(0,r.useState)("/phim"===p&&/^[a-z0-9-]+$/.test(e.slug||"")&&x.startsWith("http")),f=`cc-${u}`,v=(0,n.getSvgClipPath)(u),w=(0,r.useRef)(0),[j,y]=(0,r.useState)(0);return(0,t.jsxs)("div",{className:"relative movie-card-wrapper",children:[(0,t.jsxs)(o.default,{href:`${p}/${e.slug}`,movieName:e.name,movieYear:e.year,className:"movie-card block group",children:[!m&&(0,t.jsx)("svg",{width:"0",height:"0",style:{position:"absolute"},"aria-hidden":"true",children:(0,t.jsx)("defs",{children:(0,t.jsx)("clipPath",{id:f,clipPathUnits:"objectBoundingBox",children:(0,t.jsx)("path",{d:v})})})}),(0,t.jsxs)("div",{className:`relative overflow-hidden bg-bg-card aspect-[2/3] shadow-lg flex items-center justify-center transition-all duration-300 group-hover:shadow-xl group-hover:shadow-black/50${m?" rounded-xl":""}`,style:m?void 0:{clipPath:`url(#${f})`},children:[(0,t.jsx)("svg",{className:"absolute w-12 h-12 text-white/10",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 4v16M17 4v16M3 8h4m10 0h4M3 12h18M3 16h4m10 0h4M4 20h16a1 1 0 001-1V5a1 1 0 00-1-1H4a1 1 0 00-1 1v14a1 1 0 001 1z"})}),(0,t.jsx)(a.default,{src:g?function(e,t="poster"){return`/anh-phim/${e}${"ngang"===t?"-vietsub-ngang.webp":"-vietsub.webp"}`}(e.slug):x,unoptimized:g,alt:(0,d.getMovieImageAlt)(e.name,e.origin_name),title:(0,d.getMovieImageTitle)(e.name,e.origin_name),fill:!0,sizes:"(max-width: 640px) 50vw, (max-width: 1024px) 25vw, 220px",className:"object-cover transition-transform duration-500 z-10 group-hover:scale-[1.07]",priority:c,loading:c?void 0:"lazy",onError:e=>{g?b(!1):w.current<2?(w.current+=1,setTimeout(()=>y(e=>e+1),600*w.current)):e.target.style.opacity="0"}},`${g?"seo":"cdn"}-${j}`),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-[45%] z-[11] pointer-events-none bg-gradient-to-t from-black/70 via-black/20 to-transparent"}),(0,t.jsx)("div",{className:"absolute inset-0 z-[12] bg-black/30 opacity-0 group-hover:opacity-100 transition-opacity duration-300 pointer-events-none"}),(0,t.jsx)("div",{className:"absolute inset-0 z-[13] flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity duration-300 pointer-events-none",children:(0,t.jsx)("div",{className:"w-12 h-12 rounded-full bg-black/50 backdrop-blur-sm border-2 border-white/70 flex items-center justify-center scale-75 group-hover:scale-100 transition-transform duration-300 ease-out shadow-lg",children:(0,t.jsx)("svg",{className:"w-5 h-5 text-white ml-0.5",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M8 5c0-.8.9-1.3 1.6-.9l9 6c.6.4.6 1.4 0 1.8l-9 6c-.7.4-1.6-.1-1.6-.9V5z"})})})}),(0,t.jsx)("div",{className:"movie-card-shine absolute inset-y-0 z-[14] w-[35%] pointer-events-none",style:{background:"linear-gradient(to right, transparent, rgba(255,255,255,0.13), transparent)"}}),(0,t.jsx)("div",{className:"absolute inset-x-0 bottom-0 z-[15] px-2 pb-2 flex items-end justify-start pointer-events-none",children:(0,t.jsx)(i.default,{movie:e,isVerticalCard:!0,extra:(0,t.jsx)(s.default,{tmdb:e.tmdb,variant:"strip"})})}),e.character&&(0,t.jsx)("div",{className:"absolute top-2 left-2 z-[15] px-1.5 py-0.5 rounded bg-black/60 backdrop-blur-sm text-[10px] text-[#F5C518] font-medium truncate max-w-[80%]",children:e.character})]}),(0,t.jsxs)("div",{className:"mt-2 px-0.5",children:[(0,t.jsx)("h3",{className:"text-[12px] sm:text-[13px] font-semibold text-white line-clamp-2 leading-tight group-hover:text-accent transition-colors",children:e.name}),e.origin_name&&e.origin_name!==e.name&&(0,t.jsx)("p",{className:"text-[10px] sm:text-[11px] text-gray-400 line-clamp-1 mt-0.5",children:e.origin_name})]})]}),h&&(0,t.jsx)("button",{onClick:t=>{t.preventDefault(),t.stopPropagation(),h(e.slug)},className:"absolute top-2 right-2 z-20 w-8 h-8 rounded-full bg-black/60 shadow-lg backdrop-blur-sm border border-white/10 flex items-center justify-center text-white/70 hover:text-white hover:bg-red-500/80 hover:border-red-500 hover:scale-110 active:scale-90 transition-all",title:"Bá» yêu thÃch",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M6 18L18 6M6 6l12 12"})})})]})});e.s(["default",0,c],210570)},952571,e=>{"use strict";let t=(0,e.i(475254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",()=>t],952571)},373375,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["ChevronLeft",()=>t],373375)},493886,e=>{"use strict";let t=(0,e.i(475254).default)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);e.s(["Film",()=>t],493886)},731989,e=>{"use strict";function t(e){return e.startsWith("pn-")?`/phim-ngan/${e.slice(3)}`:`/phim/${e}`}e.s(["commentSlugHref",()=>t])},667585,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"BailoutToCSR",{enumerable:!0,get:function(){return l}});let r=e.r(132061);function l({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,
1configurable:!0});return t}},309885,(e,t,a)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"encodeURIPath",{enumerable:!0,get:function(){return r}})},652157,(e,t,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(a,"PreloadChunks",{enumerable:!0,get:function(){return o}});let r=e.r(843476),l=e.r(174080),i=e.r(563599),s=e.r(309885),n=e.r(543369);function o({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let a=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;a.push(...e)}}if(0===a.length)return null;let o=(0,n.getDeploymentIdQueryOrEmptyString)();return(0,r.jsx)(r.Fragment,{children:a.map(e=>{let a=`${t.assetPrefix}/_next/${(0,s.encodeURIPath)(e)}${o}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:a,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,l.preload)(a,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},958377,e=>{"use strict";let t=(0,e.i(475254).default)("flame",[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]]);e.s(["Flame",()=>t],958377)},585259,e=>{"use strict";var t=e.i(958377),a=e.i(493886),r=e.i(475254);let l=(0,r.default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);var i=e.i(243553);let s=(0,r.default)("gamepad-2",[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]]),n=(0,r.default)("ghost",[["path",{d:"M9 10h.01",key:"qbtxuw"}],["path",{d:"M15 10h.01",key:"1qmjsl"}],["path",{d:"M12 2a8 8 0 0 0-8 8v12l3-3 2.5 2.5L12 19l2.5 2.5L17 19l3 3V10a8 8 0 0 0-8-8z",key:"uwwb07"}]]),o=(0,r.default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var d=e.i(283086);let c=[{label:"Phim 4K",href:"/phim-4k",bg:"from-[#7b1e3a] to-[#d95d39]",shadowColor:"#b83848",accentColor:"#fca5a5",Icon:t.Flame,image:"/images/4k.webp",imagePosition:"center top"},{label:"Chiếu Rạp",href:"/phim-chieu-rap",bg:"from-[#1a2980] to-[#26d0ce]",shadowColor:"#1578b0",accentColor:"#82c1e6",Icon:a.Film,image:"/images/chieurap.webp",imagePosition:"center center"},{label:"Hà n Quá»c",href:"/quoc-gia/han-quoc",bg:"from-[#ff4e8a] via-[#9f6bff] to-[#5f86ff]",shadowColor:"#3058c8",accentColor:"#bfdbfe",Icon:l,image:"/images/Hanquoc.webp",imagePosition:"center top"},{label:"Cá» Trang",href:"/the-loai/co-trang",bg:"from-[#9d174d] to-[#fbbf24]",shadowColor:"#cc7028",accentColor:"#fcd8a0",Icon:i.Crown,image:"/images/cotrang.webp",imagePosition:"center top"},{label:"Hoạt Hình",href:"/hoat-hinh",bg:"from-[#36d1dc] to-[#5b86e5]",shadowColor:"#1888c0",accentColor:"#bae6fd",Icon:s,image:"/images/hoathinh.webp",imagePosition:"center center"},{label:"Kinh Dá»",href:"/the-loai/kinh-di",bg:"from-[#1a0033] to-[#5b21b6]",shadowColor:"#5430b8",accentColor:"#d0c8f0",Icon:n,image:"/images/kinhdi.webp",imagePosition:"center center"},{label:"Ãu Mỹ",href:"/quoc-gia/au-my",bg:"from-[#8e0e00] to-[#c0c0c0]",shadowColor:"#c03060",accentColor:"#f0b8c0",Icon:o,image:"/images/aumy.webp",imagePosition:"center center"},{label:"Trung Quá»c",href:"/quoc-gia/trung-quoc",bg:"from-[#134E5E] to-[#71B280]",shadowColor:"#3090b8",accentColor:"#98e0e8",Icon:d.Sparkles,image:"/images/trungquoc.webp",imagePosition:"center top"}];e.s(["INTEREST_TOPICS",0,c],585259)},537093,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(522016),l=e.i(657688);e.i(728762);var i=e.i(728116),s=e.i(463059),n=e.i(952571),o=e.i(455090),d=e.i(557951),c=e.i(685131),m=e.i(711754),h=e.i(980401);e.i(941983);var u=e.i(264156),p=e.i(360860),x=e.i(644685);let g=null;function b(){return g||(g=window.matchMedia("(min-width: 768px)")),g}let f=e=>{let t=b();return t?(t.addEventListener("change",e),()=>t.removeEventListener("change",e)):()=>{}},v=()=>b()?.matches??!1,w=()=>!1,j=(0,a.memo)(function({idx:e,isActive:a,onClick:r}){return(0,t.jsx)("button",{onClick:()=>r(e),className:`rounded-full transition-all duration-300 ${a?"w-3 h-3 bg-[#FECF59]":"w-2.5 h-2.5 bg-white/30"}`,"aria-label":`Go to slide ${e+1}`})}),y=(0,a.memo)(function({count:e,currentIndex:r,onClick:l}){let i=(0,a.useMemo)(()=>Array.from({length:e},(e,t)=>t),[e]);return(0,t.jsx)("div",{className:"flex items-center justify-center gap-1.5 pt-3 pb-2 relative z-20",children:i.map(e=>(0,t.jsx)(j,{idx:e,isActive:e===r,onClick:l},e))})}),k=(0,a.memo)(function({name:e,posterUrl:a,idx:r,isActive:s,onClick:n}){return(0,t.jsx)("button",{onClick:()=>n(r),className:`relative shrink-0 w-[46px] h-[69px] lg:w-[62px] lg:h-[93px] 2 rounded-lg overflow-hidden snap-center cursor-pointer transition-all duration-300 ${s?"ring-2 ring-white shadow-[0_0_12px_rgba(255,255,255,0.3)] scale-100":"scale-95 opacity-80 hover:opacity-100 hover:scale-100"}`,"aria-label":`Go to ${e}`,children:(0,t.jsx)(l.default,{src:(0,i.getImageUrl)(a),alt:(0,x.getMovieImageAlt)(e),fill:!0,className:"object-cover",sizes:"70px",loading:"lazy"})})}),N=(0,a.memo)(function({movies:e,currentIndex:a,onClick:r}){return(0,t.jsx)("div",{className:"flex relative z-30 -mt-8 lg:-mt-10 px-10 justify-center overflow-x-auto scrollbar-hide snap-x items-end anime-mask-fade py-2",children:(0,t.jsx)("div",{className:"flex gap-1.5 md:gap-2",children:e.map((e,l)=>(0,t.jsx)(k,{name:e.name,posterUrl:e.poster_url,idx:l,isActive:l===a,onClick:r},`poster-${e.slug}-${l}`))})})});function C({movies:e,title:g="Thế giá»i Anime",href:b="/hoat-hinh",titleGradient:j}){let[k,C]=(0,a.useState)(0),M=(0,a.useRef)(null),_=(0,a.useSyncExternalStore)(f,v,w),{isFavorite:$,toggleFavorite:z}=(0,o.useFavorites)(),{user:I}=(0,d.useAuth)(),P=(0,a.useMemo)(()=>e?e.map(e=>({...e,clean_content:(0,m.cleanContent)(e.content)})):[],[e]),F=(0,a.useCallback)(e=>{(0,a.startTransition)(()=>C(e)),M.current?.slideToLoop(e)},[]),S=(0,a.useCallback)(e=>{(0,a.startTransition)(()=>C(e.realIndex))},[]),L=(0,a.useMemo)(()=>P&&0!==P.length?(0,t.jsx)("div",{className:`w-full rounded-[20px] md:rounded-[24px] overflow-hidden ${_?"anime-banner-wrap-desktop":"anime-banner-wrap-mobile"}`,children:(0,t.jsx)(h.Swiper,{onSwiper:e=>M.current=e,onSlideChange:S,slidesPerView:1,modules:[u.EffectFade],grabCursor:!0,effect:"fade",fadeEffect:{crossFade:!0},loop:P.length>1,className:"w-full",children:P.map((e,a)=>(0,t.jsx)(h.SwiperSlide,{children:({isActive:r,isPrev:s,isNext:o})=>{let d=0===a||r||s||o;return(0,t.jsx)("div",{className:`w-full relative ${r?"":"pointer-events-none"}`,children:_?(0,t.jsxs)("div",{className:"relative w-full aspect-video lg:aspect-[2.5/1] bg-[#12121a]",children:[(0,t.jsx)("div",{className:"absolute inset-0 w-[30%] bg-[#171a26] pointer-events-none"}),(0,t.jsx)("div",{className:"absolute inset-0 left-[30%]",children:d&&(0,t.jsx)(l.default,{src:(0,i.getImageUrl)(e.thumb_url),alt:(0,x.getMovieImageAlt)(e.name,e.origin_name),title:(0,x.getMovieImageTitle)(e.name,e.origin_name),fill:!0,sizes:"800px",quality:75,className:"object-cover object-top",priority:0===a})}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none opacity-30 anime-dot-overlay"}),(0,t.jsx)("div",{className:"absolute inset-0 pointer-events-none anime-left-gradient"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-[#12121a] via-trans
2parent to-transparent pointer-events-none"}),(0,t.jsx)("div",{className:"absolute inset-0 z-20 flex flex-col justify-center p-10 lg:p-12 pointer-events-none w-[40%] lg:w-[35%]",children:(0,t.jsxs)("div",{className:`w-full max-w-xl flex flex-col ${r?"pointer-events-auto":"pointer-events-none"}`,children:[(0,t.jsx)("h3",{className:"text-2xl lg:text-3xl font-bold text-white mb-1.5 leading-tight drop-shadow-lg truncate w-full",children:e.name}),(0,t.jsx)("p",{className:"text-[#FECF59] text-sm mb-3 font-medium drop-shadow-md truncate w-full",children:e.origin_name}),(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-1.5 mb-3 h-[30px] overflow-hidden shrink-0",children:[e.imdb&&e.imdb.vote_average>0&&(0,t.jsxs)("div",{className:"flex items-center text-[11px] font-bold rounded overflow-hidden border border-solid border-[rgba(245,197,24,0.5)]",children:[(0,t.jsx)("span",{className:"bg-[#F5C518] text-black px-1.5 py-0.5",children:"IMDb"}),(0,t.jsx)("span",{className:"bg-[rgba(245,197,24,0.1)] text-white px-1.5 py-0.5",children:e.imdb.vote_average.toFixed(1)})]}),e.tmdb&&e.tmdb.vote_average>0&&(0,t.jsxs)("div",{className:"flex items-center text-[11px] font-bold rounded overflow-hidden border border-solid border-[rgba(1,180,228,0.5)]",children:[(0,t.jsx)("span",{className:"bg-[#01B4E4] text-white px-1.5 py-0.5",children:"TMDb"}),(0,t.jsx)("span",{className:"bg-[rgba(1,180,228,0.1)] text-white px-1.5 py-0.5",children:e.tmdb.vote_average.toFixed(1)})]}),e.year&&e.year>0&&(0,t.jsx)("span",{className:"px-2 py-[4.5px] rounded-md border border-white bg-black/40 backdrop-blur-sm shadow-sm text-[11px] text-white/90",children:e.year}),e.episode_current&&(0,t.jsx)("span",{className:"px-2 py-[4.5px] rounded-md border border-white bg-black/40 backdrop-blur-sm shadow-sm text-[11px] text-white/90",children:e.episode_current})]}),e.category&&e.category.length>0&&(0,t.jsx)("div",{className:"flex items-center gap-1.5 mb-5 h-[26px] overflow-hidden shrink-0 whitespace-nowrap",children:e.category.slice(0,5).map(e=>(0,t.jsx)("span",{className:"text-[11px] text-white/50 bg-white/10 px-2 py-[3px] rounded-md backdrop-blur-sm shrink-0",children:e.name},e.id||e.slug))}),(0,t.jsx)("div",{className:"mb-6 lg:mb-8 w-full max-w-lg shrink-0",children:(0,t.jsx)("p",{className:"text-xs lg:text-sm text-white/80 font-normal leading-relaxed line-clamp-3 h-[54px] lg:h-[63px] overflow-hidden",children:e.clean_content})}),(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(p.default,{href:`/xem/${e.slug}`,movieName:e.name,movieYear:e.year,className:"anime-play-btn w-16 h-16 text-[#0f1115] rounded-full flex items-center justify-center transition-transform hover:scale-105 shadow-[0_0_15px_rgba(254,207,89,0.5)] shrink-0",tabIndex:r?0:-1,children:(0,t.jsx)("svg",{className:"relative w-12 h-12 text-[#0f1115]",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M8 5c0-.8.9-1.3 1.6-.9l9 6c.6.4.6 1.4 0 1.8l-9 6c-.7.4-1.6-.1-1.6-.9V5z"})})}),(0,t.jsxs)("div",{className:"flex bg-white/5 border border-white/20 rounded-full backdrop-blur-md h-14 items-center overflow-hidden shrink-0",children:[(0,t.jsx)("button",{className:"group/btn w-20 h-full flex items-center justify-center transition-all text-white active:scale-75",title:"Yêu thÃch",tabIndex:r?0:-1,onClick:()=>{I?z(e.slug):(0,c.showAuthToast)()},children:(0,t.jsx)("svg",{className:`w-6 h-6 transition-all duration-500 ease-[cubic-bezier(0.175,0.885,0.32,1.275)] group-hover/btn:scale-110 ${$(e.slug)?"text-[#FECF59] drop-shadow-[0_0_12px_rgba(254,207,89,0.6)] scale-110":"text-white scale-100"}`,fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"})})}),(0,t.jsx)("div",{className:"w-[1px] h-3/5 bg-white/20"}),(0,t.jsx)(p.default,{href:`/phim/${e.slug}`,movieName:e.name,movieYear:e.year,className:"group/link w-20 h-full flex items-center justify-center transition-colors text-white",tabIndex:r?0:-1,children:(0,t.jsx)(n.Info,{className:"w-7 h-7 text-[#0f1115] fill-white group-hover/link:fill-[#FECF59] [&>circle]:stroke-white group-hover/link:[&>circle]:stroke-[#FECF59] transition-all"})})]})]})]})})]}):(0,t.jsxs)("div",{className:"bg-[#171a26] flex flex-col w-full relative",children:[(0,t.jsxs)("div",{className:"relative w-full aspect-[16/10] overflow-hidden",children:[d&&(0,t.jsx)(l.default,{src:(0,i.getImageUrl)(e.thumb_url),alt:(0,x.getMovieImageAlt)(e.name,e.origin_name),title:(0,x.getMovieImageTitle)(e.name,e.origin_name),fill:!0,sizes:"100vw",quality:75,className:"object-cover object-top",priority:0===a}),(0,t.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-32 pointer-events-none z-20 anime-mobile-gradient"})]}),(0,t.jsxs)("div",{className:"px-5 pb-5 -mt-14 relative z-20 w-full",children:[(0,t.jsxs)("div",{className:"w-full flex flex-col pb-2",children:[(0,t.jsxs)("div",{className:"mb-2",children:[(0,t.jsx)("h3",{className:"text-base font-bold text-white mb-1 leading-tight truncate",children:e.name}),(0,t.jsx)("p",{className:"text-[#FECF59] text-[11px] mb-2.5 font-medium truncate",children:e.origin_name}),(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-1.5 mb-2 text-[10px] text-white/90 max-h-[26px] overflow-hidden",children:[e.imdb&&e.imdb.vote_average>0&&(0,t.jsxs)("div",{className:"flex items-center text-[10px] font-bold rounded overflow-hidden border border-solid border-[rgba(245,197,24,0.5)]",children:[(0,t.jsx)("span",{className:"bg-[#F5C518] text-black px-1 py-0.5",children:"IMDb"}),(0,t.jsx)("span",{className:"bg-[rgba(245,197,24,0.1)] text-white px-1 py-0.5",children:e.imdb.vote_average.toFixed(1)})]}),e.tmdb&&e.tmdb.vote_average>0&&(0,t.jsxs)("div",{className:"flex items-center text-[10px] font-bold rounded overflow-hidden border border-solid border-[rgba(1,180,228,0.5)]",children:[(0,t.jsx)("span",{className:"bg-[#01B4E4] text-white px-1 py-0.5",children:"TMDb"}),(0,t.jsx)("span",{className:"bg-[rgba(1,180,228,0.1)] text-white px-1 py-0.5",children:e.tmdb.vote_average.toFixed(1)})]}),e.year&&e.year>0&&(0,t.jsx)("span",{className:"px-2 py-[3px] rounded-md border border-white bg-black/30 shrink-0",children:e.year}
2),e.episode_current&&(0,t.jsx)("span",{className:"px-2 py-[3px] rounded-md border border-white bg-black/30 shrink-0",children:e.episode_current})]}),e.category&&e.category.length>0&&(0,t.jsx)("div",{className:"flex items-center flex-wrap gap-1.5 mb-2 max-h-[24px] overflow-hidden",children:e.category.slice(0,5).map(e=>(0,t.jsx)("span",{className:"text-[10px] text-white/50 bg-white/10 px-2 py-[3px] rounded-md shrink-0",children:e.name},e.id||e.slug))})]}),(0,t.jsx)("p",{className:"text-[13px] text-white/70 leading-relaxed line-clamp-3 overflow-hidden",children:e.clean_content})]}),(0,t.jsx)(p.default,{href:`/phim/${e.slug}`,movieName:e.name,movieYear:e.year,className:`absolute inset-0 z-50 ${r?"pointer-events-auto":"pointer-events-none"}`,tabIndex:r?0:-1})]})]})})}},e._id))})}):null,[P,_,S,$,z,I]);return e&&0!==e.length?(0,t.jsxs)("div",{className:"w-full mt-6 mb-12",children:[(0,t.jsxs)(r.default,{href:b,className:"inline-flex items-center gap-2 mb-6 group cursor-pointer",children:[(0,t.jsx)("h2",{className:"text-2xl md:text-3xl font-bold transition-colors",style:j?{background:`linear-gradient(90deg, ${j})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:"white"},children:g}),(0,t.jsx)("span",{className:"w-6 h-6 rounded-full border border-white/20 flex items-center justify-center group-hover:border-accent transition-colors",children:(0,t.jsx)(s.ChevronRight,{className:"w-4 h-4 text-white group-hover:text-accent transition-colors"})})]}),(0,t.jsxs)("div",{className:"relative w-full",children:[L,!_&&(0,t.jsx)(y,{count:e.length,currentIndex:k,onClick:F}),_&&(0,t.jsx)(N,{movies:e,currentIndex:k,onClick:F})]})]}):null}e.s(["default",()=>C])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.