/* MoviezMpire original design enhanced: preserve existing gold brand and horizontal browsing. */
:root { --primary:#f5c518; --primary-color:#f5c518; --bg:#101116; --bg-card:#1b1c24; --text:#f8f8fa; --text-muted:#abb0c0; --border:#ffffff19; --input-bg:#23242e; --header-bg:rgba(13,15,20,.94); color-scheme:dark; }
html{scroll-behavior:smooth;scroll-padding-top:150px}*,*::before,*::after{box-sizing:border-box}
body{background:#101116!important;color:#f6f6f9!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;line-height:1.5;overflow-x:hidden}
body:before{content:"";pointer-events:none;position:fixed;top:-380px;left:10%;right:10%;height:520px;background:radial-gradient(ellipse,#f5c51812,transparent 68%);z-index:-1}
a,button{ -webkit-tap-highlight-color:transparent }a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #f5c518!important;outline-offset:3px}
.header-wrapper{position:sticky;top:0;z-index:10000!important;background:rgba(13,15,20,.93)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid #ffffff1b!important;box-shadow:0 4px 30px #0007!important}
.main-header{max-width:1570px;margin:auto;min-height:72px!important;height:auto!important;padding:12px clamp(16px,4vw,64px)!important;gap:clamp(10px,2vw,25px)!important}
.logo img{height:45px!important;max-width:170px;object-fit:contain}
.search-container{max-width:570px!important;margin:0;position:relative;min-height:46px;background:#252733!important;border:1px solid #ffffff23!important;box-shadow:inset 0 1px 1px #ffffff0a;border-radius:15px!important;padding:4px 5px 4px 14px!important}
.search-container:focus-within{border-color:#f5c51899!important;box-shadow:0 0 0 4px #f5c51819}
#search-input{height:36px;min-width:0;font-size:15px!important;color:#fff!important;padding-right:8px}#search-input::placeholder{color:#969aa8}
#search-button{min-height:36px;padding:6px 16px!important;border-radius:10px!important;background:linear-gradient(125deg,#ffe077,#f5c518)!important;color:#15110b!important;cursor:pointer}
.search-suggestions{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#1b1d26;box-shadow:0 15px 50px #000b;border:1px solid #ffffff30;border-radius:16px;overflow:hidden;max-height:360px;overflow-y:auto;z-index:10010}.search-suggestions[hidden]{display:none}
.search-suggestion{display:flex;gap:11px;align-items:center;padding:9px 12px;color:#fafafa;text-decoration:none;border-bottom:1px solid #ffffff12}.search-suggestion:hover,.search-suggestion:focus{background:#2e303b}.search-suggestion img{width:37px;height:55px;border-radius:6px;object-fit:cover}.search-suggestion small{display:block;color:#b5b9c7;margin-top:3px}.suggestion-empty{padding:18px;color:#aeb5c7}
.btn-login{border-radius:12px!important;padding:10px 14px!important;background:#e73740!important;white-space:nowrap}
.top-nav{gap:2px;max-width:1580px;margin:auto;padding:0 clamp(12px,4vw,62px)!important;scrollbar-width:none;background:transparent!important}
.top-nav a{padding:12px 14px!important;border-bottom:3px solid transparent!important;white-space:nowrap;color:#c4c8d1!important;font-size:.86rem!important;transition:.2s}.top-nav a:hover{color:#fff!important;background:#ffffff0d!important}.top-nav a.active{color:#f5c518!important;border-bottom-color:#f5c518!important}
/* Original banner retained but upgraded for readable mobile content */
body .banner-carousel{height:min(66vh,640px)!important;min-height:360px;margin:0 0 24px!important;border-bottom:1px solid #ffffff18;background:#111}
body .banner-slide{background-position:center 35%!important;background-size:cover!important}
body .banner-slide::after{background:linear-gradient(90deg,#0c0d10 0%,#101116c9 40%,#10111624 100%),linear-gradient(0deg,#101116f5 0%,transparent 40%)!important}
body .slide-content{width:min(100%,1400px);padding:clamp(20px,4vw,70px)!important}
body .slide-info h3{font-size:clamp(1.9rem,5vw,3.8rem)!important;max-width:760px;line-height:1.12;text-wrap:balance;letter-spacing:-.04em}
body .watch-btn{background:linear-gradient(135deg,#ffe27d,#f5c518)!important;color:#17120b!important;box-shadow:0 12px 26px #0008!important;padding:12px 22px!important;border-radius:12px!important;display:inline-flex;align-items:center;gap:9px}
body .categories-section{top:109px!important;padding:12px clamp(16px,4vw,62px)!important;margin:0 0 20px!important;background:#101116ee!important;border-bottom:1px solid #ffffff11;z-index:90!important;scrollbar-width:none}
body .category-filters{gap:9px!important}
body .category-filter{background:#242630!important;border:1px solid #ffffff24!important;color:#e8eaf0!important;border-radius:30px!important;padding:9px 15px!important;white-space:nowrap}
body .category-filter:hover{border-color:#f5c51888!important;color:#f5c518!important}
body .category-filter.active{background:#f5c518!important;color:#17130c!important;font-weight:800}
body section.movie-section{max-width:1580px;margin:0 auto 34px!important;padding:0 clamp(16px,4vw,62px)!important}
body .section-header{padding:0 0 13px!important;margin:0 0 16px!important;border-bottom:1px solid #ffffff1c!important;display:flex;align-items:center;gap:12px}
body .section-header h3,body .section-header h4{font-size:clamp(1rem,2.3vw,1.3rem)!important;line-height:1.3;margin:0!important;color:#f6f6f8!important;letter-spacing:-.015em;text-transform:none!important}
body .section-header h3::before{content:"";display:inline-block;height:18px;width:4px;background:linear-gradient(#fbe18a,#ec9c15);border-radius:5px;margin-right:10px;vertical-align:-3px}
body .see-all{color:#f5c518!important;font-weight:700!important;font-size:.83rem!important;flex-shrink:0;margin-left:auto}
body .movie-carousel{display:flex!important;gap:clamp(10px,1.5vw,18px)!important;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#f5c51855 transparent;padding:2px 0 18px!important}
body .movie-card{flex:0 0 clamp(138px,14vw,188px)!important;min-width:0;scroll-snap-align:start;transition:transform .22s ease!important;position:relative}
body .movie-card:hover{transform:translateY(-6px)!important}
body .movie-card img{height:auto!important;aspect-ratio:2/3;object-fit:cover;width:100%;border-radius:13px!important;border:1px solid #ffffff20;box-shadow:0 9px 20px #0006;display:block;background:#23242d}
body .movie-card a:focus-visible img{border:2px solid #f5c518!important}
body .movie-card p{font-size:.9rem!important;color:#f2f3f6!important;text-align:left!important;line-height:1.4;font-weight:660!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:9px 1px 2px!important}
body .upcoming-date{color:#d5bc66!important;font-size:.78rem!important;text-align:left!important}
body .reminder-btn{z-index:3;background:#111c!important;border:1px solid #fff3}
body .custom-section-container{max-width:1440px;margin:32px auto!important;border-radius:20px!important;background:linear-gradient(135deg,#1a1b25,#242331)!important;border:1px solid #ffffff20!important;padding:clamp(18px,3vw,36px)!important}
body .highlight-card-right{border-radius:15px!important;background-size:cover}
body .highlight-button{border-radius:12px!important;font-weight:750}
body .news-card{background:#20212b!important;border-radius:13px!important;border:1px solid #ffffff15;transition:transform .2s}.news-card:hover{transform:translateY(-3px);background:#2b2d39!important}
/* Regional pages, cards and existing streaming modal. */
body .container{max-width:1530px!important}
body .page-title{font-size:clamp(1.65rem,4vw,2.5rem)!important;letter-spacing:-.03em}
body .movie-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))!important;gap:22px 14px!important}
body .poster-container{border-radius:14px!important;border:1px solid #ffffff15}
body .movie-card img,body .card img{transition:filter .2s ease}
body #mpireModal{background:#0a0b0ff2!important;backdrop-filter:blur(12px)}
body .modal-nav{border-bottom:1px solid #ffffff20!important;min-height:65px}
body .modal-body{padding:clamp(10px,3vw,30px)!important}
body .source-card,body .episode-card{border-radius:14px!important}
body .btn-stream{background:linear-gradient(125deg,#f5c518,#e2ae20)!important;color:#111!important;border-radius:10px!important}
body .btn-action,body .btn-ep{min-height:45px;touch-action:manipulation}
.stream-hint{color:#bec0cb;text-align:center;font-size:.83rem;padding:12px}
/* Search results */
.mp-search{width:min(1450px,100%);padding:30px clamp(16px,4vw,60px) 70px;margin:auto}
.mp-search h1{font-size:clamp(1.7rem,4vw,2.7rem);letter-spacing:-.035em;margin:.35rem 0}
.mp-search p.intro{color:#aeb4c0;margin:0 0 22px}
.mp-search-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:14px 0 20px;border-top:1px solid #ffffff16}
.mp-pills{display:flex;gap:9px;flex-wrap:wrap}.mp-pill{padding:9px 14px;border-radius:999px;border:1px solid #ffffff23;color:#e6e6e9;background:#262732;text-decoration:none;font-weight:650;font-size:.86rem}.mp-pill.selected{background:#f5c518;color:#121113;border-color:#f5c518}
.mp-sort{padding:10px 12px;color:#f6f6f9;background:#262732;border:1px solid #ffffff28;border-radius:10px}
.mp-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:20px 14px}.mp-result{overflow:hidden;display:block;text-decoration:none;color:#fff;border-radius:15px;background:#20212a;border:1px solid #ffffff15;transition:transform .2s,border-color .2s}.mp-result:hover{transform:translateY(-5px);border-color:#f5c51870}.mp-result img{display:block;width:100%;aspect-ratio:2/3;object-fit:cover;background:#2d2e35}.mp-result-info{padding:11px 11px 14px}.mp-result strong{font-size:.93rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}.mp-result small{color:#aab0bd;display:block;margin-top:6px}.mp-result-rating{color:#f5c518!important}.mp-pagination{display:flex;gap:10px;justify-content:center;margin:28px 0}.mp-pagination a{padding:10px 18px;background:#272934;border:1px solid #ffffff28;border-radius:10px;color:#f5c518;text-decoration:none}.mp-empty{padding:36px;border:1px solid #ffffff17;border-radius:14px;background:#1d1e28}
@media(max-width:768px){
 .main-header{flex-wrap:wrap!important;justify-content:space-between!important;padding:10px 14px!important;gap:10px!important}
 .main-header .logo{order:1}.main-header .auth-actions{order:2}.main-header .search-container{order:3;flex:0 0 100%;max-width:100%!important;margin:0!important}
 .logo img{height:34px!important}.top-nav{padding:0 9px!important}.top-nav a{padding:10px 12px!important;font-size:.81rem!important}
 body .categories-section{top:126px!important;padding:10px 14px!important}
 body .banner-carousel{height:370px!important;min-height:370px!important}
 body .banner-slide::after{background:linear-gradient(0deg,#101116 0%,#101116a4 52%,#10111644 100%)!important}
 body .slide-content{align-items:flex-end!important;padding:22px!important}body .slide-content img{display:none!important}
 body .slide-info h3{font-size:clamp(1.7rem,6.5vw,2.65rem)!important;margin:0 0 7px}
 body .slide-info p{font-size:.85rem!important;margin:0 0 15px!important}
 body .movie-card{flex-basis:142px!important}body section.movie-section{padding:0 14px!important;margin-bottom:23px!important}
 body .section-header{margin-bottom:10px!important}body .category-filter{font-size:.8rem;padding:8px 13px!important}
 body .hero{height:30vh!important}body .main-info{display:flex;flex-wrap:wrap;gap:16px}body .poster-img{width:125px!important}body .details{min-width:0;flex:1 1 180px}
 body .movie-title,body .tv-title h1{font-size:clamp(1.65rem,6vw,2.2rem)!important}body .content-wrapper{margin-top:-60px!important}
 body .episode-card{gap:11px!important;padding:10px!important}.ep-img-wrap{width:108px!important;height:77px!important}.ep-info{min-width:0}.ep-actions{flex-wrap:wrap}
 body .movie-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:17px 11px!important}
 .mp-search{padding:20px 13px 95px}.mp-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mp-search-toolbar{align-items:stretch}.mp-sort{width:100%}
}
@media(max-width:380px){body .movie-card{flex-basis:128px!important}.btn-login{padding:8px 10px!important}.logo img{max-width:115px}.mp-result-info{padding:9px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* v5 refinements: original gold style, stronger mobile film browsing */
.top-nav{overscroll-behavior-x:contain;scroll-snap-type:x proximity}.top-nav a{scroll-snap-align:start}
.movie-card,.mp-result{content-visibility:auto;contain-intrinsic-size:auto 270px}
@media(min-width:900px){body .movie-section{padding-left:clamp(24px,4vw,64px)!important;padding-right:clamp(24px,4vw,64px)!important}}
@media(max-width:768px){.bottom-nav{height:calc(64px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}body .banner-carousel{height:385px!important}body .section-header h3{font-size:1rem!important;line-height:1.35}body .see-all{min-height:35px;display:inline-flex;align-items:center;font-weight:700}body #mpireModal .modal-body{padding:8px!important}body #mpireModal iframe{height:65vh!important}}
