:root{--bg:#08090c;--panel:#10141a;--panel2:#151a22;--line:#29313d;--text:#f7f8fb;--muted:#8d97a4;--gold:#ffc72c;--gold2:#ffad12;--green:#2bd78d;--amber:#ffad30;--purple:#9f7cff}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 50% -25%,#2c220e 0,transparent 24%),var(--bg);color:var(--text);font-family:"Inter","Noto Sans Khmer",sans-serif}button,input{font:inherit}button{cursor:pointer;color:inherit}svg{width:18px;height:18px}.search-topbar{height:70px;padding:0 3.2vw;display:flex;align-items:center;gap:28px;background:#090c11f2;border-bottom:1px solid #202731;position:sticky;top:0;z-index:50;backdrop-filter:blur(16px)}.brand{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:0;margin-right:20px}.brand-mark{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#ffe783,#ffc72c 48%,#e49600);color:#161100;transform:skew(-6deg)}.brand-mark svg{fill:currentColor}.brand-copy{text-align:left}.brand-copy b{font-size:19px}.brand-copy b span{color:var(--gold)}.brand-copy small{display:block;font-size:7px;letter-spacing:2px;color:#707a87;margin-top:2px}.search-topbar nav{display:flex;gap:22px}.search-topbar nav button{border:0;background:transparent;color:#9ba5b2;font-size:13px;font-weight:700}.search-topbar nav button:hover{color:var(--gold)}.header-search,.header-account{border:1px solid #2b333e;background:#11161d;height:40px;border-radius:11px;display:grid;place-items:center}.header-search{margin-left:auto;width:40px;color:var(--gold)}.header-account{width:40px;border-radius:50%;background:linear-gradient(145deg,#55513f,#17191f);font-weight:800}
.search-page{max-width:1460px;margin:auto;padding:42px 28px 90px}.search-heading small,.section-title small,.results-head small{display:block;font-size:9px;letter-spacing:2px;color:#798391;font-weight:900}.search-heading h1{font-size:32px;margin:6px 0 5px}.search-heading p{margin:0;color:#88929f;font-size:12px}.big-search{height:56px;border-radius:14px;border:1px solid #2a323e;background:#171c26;display:flex;align-items:center;gap:11px;padding:0 16px;margin-top:18px;box-shadow:inset 0 1px 0 #ffffff05}.big-search>svg{color:#87919f}.big-search input{flex:1;background:transparent;border:0;outline:none;color:#fff;font-size:14px}.big-search input::placeholder{color:#6f7885}.big-search button{width:34px;height:34px;border:0;border-radius:9px;background:#202631;display:grid;place-items:center;color:#8e98a5;opacity:0;pointer-events:none;transition:.2s}.big-search.has-text button{opacity:1;pointer-events:auto}
.filter-block{display:flex;align-items:flex-start;gap:12px;margin-top:13px}.filter-label{min-width:60px;color:#8d97a4;font-size:10px;padding-top:8px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chips button{position:relative;overflow:hidden;border:1px solid #303845;background:#11161d;color:#9ea7b3;border-radius:999px;padding:8px 12px;font-size:10px;font-weight:700;transition:transform .2s,border-color .2s,background .2s,color .2s,box-shadow .2s}.chips button:hover{transform:translateY(-1px);border-color:#655323}.chips button.active{background:#241b06;border-color:#b78d24;color:#ffd65b;box-shadow:0 0 0 1px #ffc72c18,0 8px 20px #0006;animation:filterChipPulse 2.2s ease-in-out infinite}@keyframes filterChipPulse{0%,100%{box-shadow:0 0 0 1px #ffc72c12,0 7px 18px #0005}50%{box-shadow:0 0 0 3px #ffc72c14,0 10px 24px #0007}}.genres{margin-top:28px;display:block}.genres .filter-label{display:block;margin-bottom:10px;padding:0}.genre-chips button{background:#181d27;color:#d0d5dc;border-color:#2f3742}
.trending-search,.results-section{margin-top:38px}.section-title,.results-head{display:flex;align-items:end;justify-content:space-between}.section-title h2,.results-head h2{font-size:22px;margin:5px 0 0}.section-title>svg{color:var(--gold)}.trend-list{margin-top:13px;border:1px solid #262d37;background:#11151d;border-radius:16px;overflow:hidden}.trend-item{min-height:62px;padding:0 16px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;border:0;border-bottom:1px solid #272f3a;background:transparent;width:100%;text-align:left}.trend-item:last-child{border-bottom:0}.trend-item:hover{background:#151b24}.trend-rank{font-size:14px;font-weight:900;color:#e6b830}.trend-copy b{display:block;font-size:12px}.trend-copy span{display:block;font-size:9px;color:#818b99;margin-top:4px}.trend-item>svg{color:#66717f;width:16px}.results-head>span{font-size:10px;color:#7f8998}.results-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:14px;margin-top:15px}
.search-card{cursor:pointer}.poster{position:relative;aspect-ratio:2/3;border-radius:13px;overflow:hidden;border:1px solid #222a34;background:#131820;transition:.22s}.search-card:hover .poster{transform:translateY(-4px);border-color:#856718;box-shadow:0 15px 32px #0008}.poster img{width:100%;height:100%;object-fit:cover}.poster:after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#080a0eef)}.quality,.price{position:absolute;z-index:3;top:8px;border-radius:5px;padding:4px 6px;font-size:8px;font-weight:900}.quality{left:8px;background:#0d1116db;border:1px solid #ffffff20}.price{right:8px}.price.free{background:var(--green);color:#062015}.price.p3000{background:#ffd54a;color:#171100}.price.p4000{background:var(--amber);color:#201100}.price.coming{background:var(--purple);color:#120d1d}.price.series{background:#617dff;color:#fff}.poster-title{position:absolute;z-index:3;left:9px;right:9px;bottom:8px;font-size:10px;font-weight:800;line-height:1.25}.poster-title small{display:block;color:#b6bec8;font-size:7px;margin-top:2px}.card-meta{font-size:8px;color:#7e8996;padding:6px 2px 0}.card-meta span{color:#ffd554}

.detail-modal{position:fixed;z-index:80;inset:0;background:#000c;backdrop-filter:blur(12px);display:none;place-items:center;padding:18px}.detail-modal.open{display:grid}.detail-card{width:min(900px,96vw);max-height:92vh;overflow:auto;background:#0e1218;border:1px solid #2c3540;border-radius:22px;position:relative;box-shadow:0 35px 110px #000}.detail-close{position:absolute;z-index:6;right:14px;top:14px;width:38px;height:38px;border-radius:50%;border:1px solid #3a424d;background:#0b0e13dc;display:grid;place-items:center}.detail-backdrop{height:300px;background-size:cover;background-position:center;position:relative}.detail-backdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0e1218,transparent 65%)}.detail-body{display:grid;grid-template-columns:170px 1fr;gap:22px;padding:0 26px 26px;margin-top:-80px;position:relative;z-index:3}.detail-poster{aspect-ratio:2/3;border-radius:13px;background-size:cover;background-position:center;border:1px solid #333c47}.detail-copy{padding-top:75px}.detail-tags{display:flex;gap:6px;flex-wrap:wrap}.detail-tags span{border-radius:5px;padding:5px 7px;background:#171d25;border:1px solid #343c47;font-size:8px;font-weight:900}.detail-copy h2{font-size:29px;margin:9px 0 0}.detail-copy h3{font-size:11px;color:#8e98a5;letter-spacing:1.3px;margin:4px 0}.detail-meta{font-size:10px;color:#b5bdc7;margin:12px 0}.detail-copy p{font-size:12px;line-height:1.7;color:#9aa4b0}.detail-action{border:0;border-radius:11px;padding:11px 15px;background:linear-gradient(135deg,var(--gold),var(--gold2));color:#171100;font-weight:900}
@media(max-width:1100px){.results-grid{grid-template-columns:repeat(5,1fr)}}
@media(max-width:850px){body{padding-bottom:66px}.search-topbar{height:62px;padding:0 14px;position:relative}.brand-copy small,.search-topbar nav{display:none}.brand-copy b{font-size:17px}.brand-mark{width:35px;height:35px}.search-page{padding:24px 14px 90px}.search-heading h1{font-size:25px}.search-heading p{font-size:10px}.big-search{height:50px;margin-top:14px}.filter-block{display:block}.filter-label{display:block;margin-bottom:8px;padding:0}.chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.chips button{white-space:nowrap}.genres{margin-top:20px}.trending-search,.results-section{margin-top:30px}.section-title h2,.results-head h2{font-size:19px}.trend-item{min-height:58px;padding:0 12px}.results-grid{grid-template-columns:repeat(3,1fr);gap:10px}







.detail-body{grid-template-columns:95px 1fr;gap:12px;padding:0 14px 18px;margin-top:-48px}.detail-backdrop{height:210px}.detail-copy{padding-top:42px}.detail-copy h2{font-size:20px}.detail-copy p{grid-column:1/3;font-size:10px}.detail-action{grid-column:1/3}.detail-modal{padding:8px}}
@media(max-width:430px){.results-grid{grid-template-columns:repeat(2,1fr)}.search-heading h1{font-size:23px}}

.pwa-standalone .search-topbar{padding-top:env(safe-area-inset-top);height:calc(70px + env(safe-area-inset-top))}



.header-account{overflow:hidden;padding:0}.header-account img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}

.search-play{position:absolute;z-index:5;left:50%;top:47%;width:44px;height:44px;border:0;border-radius:50%;background:linear-gradient(135deg,#ffd95c,#ffae12);color:#171100;display:grid;place-items:center;transform:translate(-50%,-50%) scale(.82);opacity:0;transition:.2s;box-shadow:0 0 0 7px #0006}.search-play svg{width:18px;height:18px;fill:currentColor}.search-card:hover .search-play,.search-card:active .search-play{opacity:1;transform:translate(-50%,-50%) scale(1)}

/* === v29 Poster Size Lock === */
.results-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.search-card{min-width:0;max-width:100%;overflow:hidden}
.search-card .poster{width:100%;aspect-ratio:2/3!important}
.poster-title{min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media(max-width:1100px){.results-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:850px){.results-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:430px){.results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* === v43 CINEGOLD Quality Corner === */
.search-card .poster .quality{
  top:0!important;left:0!important;min-width:45px;height:27px;
  padding:7px 11px 0 7px!important;border:0!important;border-radius:0 0 10px 0!important;
  background:linear-gradient(135deg,#ffd85a 0 61%,#ab7000 61% 68%,#191408 68% 100%)!important;
  color:#171100!important;clip-path:polygon(0 0,100% 0,84% 100%,0 100%);
  box-shadow:0 6px 15px #0007!important;font-size:7px!important;font-weight:950!important;letter-spacing:.4px;
}
@media(max-width:850px){

}

/* v43 long Coming label fit */
.search-card .price.coming{max-width:72px;white-space:normal;line-height:1.05;text-align:center;font-size:6px!important;padding:4px 5px!important}
.search-topbar nav [data-go="coming"]{font-size:11px}

/* === v44 CINEGOLD Premium Badge System === */
.search-card .poster .quality,.search-card .poster .price{
  top:9px!important;height:25px!important;padding:0 8px!important;border-radius:8px!important;
  clip-path:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  backdrop-filter:blur(9px)!important;-webkit-backdrop-filter:blur(9px)!important;
  font-size:7px!important;font-weight:900!important;letter-spacing:.3px!important;
  box-shadow:0 6px 16px #0008,inset 0 1px 0 #ffffff08!important;
}
.search-card .poster .quality{left:9px!important;min-width:40px!important;background:#12161be8!important;border:1px solid #786628!important;color:#f2cc58!important;box-shadow:0 6px 16px #0008,inset 2px 0 0 #ffc72c!important}
.search-card .poster .price{right:9px!important;left:auto!important}
.search-card .poster .price.free{background:#111b18e8!important;border:1px solid #2e5647!important;color:#99e0c3!important}
.search-card .poster .price.p3000{background:#211a0ee8!important;border:1px solid #745d25!important;color:#ffd46f!important}
.search-card .poster .price.p4000{background:#24170ee8!important;border:1px solid #754a2a!important;color:#ffb576!important}
.search-card .poster .price.coming{max-width:72px!important;white-space:normal!important;line-height:1.05!important;text-align:center!important;background:#1b1521e8!important;border:1px solid #59476a!important;color:#d8bbef!important;font-size:5.8px!important}
/* === v56 CINEGOLD SEARCH — distinct control-dock layout === */
@media(min-width:901px){
 .search-page{
  max-width:1480px!important;
  display:grid!important;
  grid-template-columns:330px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:22px 26px!important;
  align-items:start!important;
  padding:34px 28px 96px!important;
 }
 .search-hero{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  position:sticky!important;
  top:94px!important;
  padding:22px!important;
  border:1px solid #272f39!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#11161d,#0c1015)!important;
  box-shadow:0 24px 70px #0006!important;
 }
 .search-heading{
  padding:0 0 16px!important;
  border-bottom:1px solid #242c35!important;
 }
 .search-heading small{color:#d8ad34!important}
 .search-heading h1{font-size:27px!important;line-height:1.15!important;margin:7px 0 5px!important}
 .search-heading p{font-size:10px!important;line-height:1.6!important}
 .big-search{
  margin-top:16px!important;height:50px!important;
  background:#0d1218!important;border-color:#313a46!important;
  border-radius:13px!important;
 }
 .filter-block,.genres{display:block!important;margin-top:18px!important}
 .filter-label{
  display:block!important;min-width:0!important;padding:0!important;
  margin-bottom:8px!important;font-size:8px!important;
  letter-spacing:1.1px!important;text-transform:uppercase!important;
  color:#747f8c!important;font-weight:900!important;
 }
 .chips{display:flex!important;gap:7px!important;flex-wrap:wrap!important}
 .chips button{
  padding:7px 10px!important;font-size:9px!important;
  border-radius:9px!important;background:#151a22!important;
 }
 .chips button.active{
  background:#241b06!important;border-color:#8a6818!important;
  color:#ffd65b!important;box-shadow:inset 3px 0 0 #ffc72c!important;
 }
 .trending-search{grid-column:2!important;grid-row:1!important;margin-top:0!important}
 .results-section{grid-column:2!important;grid-row:2!important;margin-top:0!important}
 .trend-list{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;border:0!important;background:transparent!important;
  border-radius:0!important;overflow:visible!important;
 }
 .trend-item{
  min-height:78px!important;border:1px solid #28313b!important;
  border-radius:14px!important;background:#10151c!important;padding:12px 14px!important;
  grid-template-columns:34px minmax(0,1fr) auto!important;
 }
 .trend-item:hover{
  background:#151b23!important;border-color:#6f5920!important;
  transform:translateY(-2px)!important;
 }
 .trend-rank{
  width:28px!important;height:28px!important;border-radius:9px!important;
  display:grid!important;place-items:center!important;
  background:#201907!important;color:#ffd35a!important;font-size:12px!important;
 }
 .trend-copy b{font-size:11px!important}
 .trend-copy span{font-size:8px!important}
}@media(max-width:900px){
 .search-page{padding:16px 12px calc(110px + env(safe-area-inset-bottom))!important}
 .search-hero{
  padding:16px!important;border:1px solid #272f39!important;border-radius:18px!important;
  background:linear-gradient(180deg,#11161d,#0c1015)!important;
  box-shadow:0 16px 46px #0005!important;
 }
 .search-heading{padding-bottom:12px!important;border-bottom:1px solid #242c35!important}
 .search-heading small{color:#d8ad34!important}
 .search-heading h1{font-size:24px!important}
 .big-search{background:#0d1218!important;border-color:#313a46!important;border-radius:13px!important}
 .filter-block,.genres{margin-top:15px!important}
 .filter-label{font-size:8px!important;font-weight:900!important;letter-spacing:1px!important;text-transform:uppercase!important}
 .chips button{border-radius:9px!important;padding:8px 10px!important}
 .trending-search,.results-section{margin-top:22px!important}
 .trend-list{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;border:0!important;background:transparent!important;
 }
 .trend-item{
  min-height:82px!important;border:1px solid #28313b!important;border-radius:13px!important;
  background:#10151c!important;padding:10px!important;
  grid-template-columns:30px minmax(0,1fr)!important;
 }
 .trend-item>svg{display:none!important}
 .trend-copy b{font-size:10px!important;line-height:1.3!important}
 .trend-copy span{font-size:7px!important;line-height:1.4!important}
 .trend-rank{
  width:27px!important;height:27px!important;border-radius:8px!important;
  display:grid!important;place-items:center!important;background:#201907!important;color:#ffd35a!important;
 }
}
@media(max-width:420px){.trend-list{grid-template-columns:1fr!important}.results-grid{gap:9px!important}}
/* v57 2,000៛ content price */
.price.p2000{background:#f4c33d;color:#171100}
.search-card .poster .price.p2000{background:#211a0ee8!important;border:1px solid #6f5922!important;color:#ffd262!important}

/* === v104 Telegram Mini App safe shell === */
html[data-mini="1"] .search-topbar{display:none!important}
html[data-mini="1"] .search-page{
  padding-top:calc(max(var(--cg-tg-safe-top,0px),var(--tg-content-safe-area-inset-top,0px),var(--tg-safe-area-inset-top,0px)) + 12px)!important;
  padding-bottom:calc(90px + max(var(--cg-tg-safe-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px),env(safe-area-inset-bottom)))!important
}



@media(prefers-reduced-motion:reduce){.chips button{animation:none!important;transition:none!important}}
/* v64 LOCKED: mobile Genre chips must wrap; never horizontal-scroll. */
@media(max-width:900px){
  .search-hero .genre-chips{
    display:flex!important;
    flex-wrap:wrap!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    scroll-snap-type:none!important;
    -webkit-overflow-scrolling:auto!important;
    width:100%!important;
    max-width:100%!important;
    gap:8px!important;
  }
  .search-hero .genre-chips button{
    flex:0 0 auto!important;
    max-width:100%!important;
    white-space:nowrap!important;
    scroll-snap-align:none!important;
  }
}
/* v65 LOCKED: filter chips must read as raised, never inset/sunken. */
.search-hero .chips button{
  box-shadow:0 4px 10px rgba(0,0,0,.42)!important;
}
.search-hero .chips button.active{
  box-shadow:0 6px 16px rgba(0,0,0,.52),0 0 0 1px rgba(255,199,44,.18)!important;
}
/* v66 LOCKED: search-card quality/price badges are raised, never inset/sunken. */
.search-card .poster .quality,
.search-card .poster .price{
  box-shadow:0 7px 17px rgba(0,0,0,.52),0 -1px 0 rgba(255,255,255,.07)!important;
}

/* v312 1,000៛ search price */
.price.p1000{background:#5ab9ff;color:#061521}
.search-card .poster .price.p1000{background:#10283be8!important;border:1px solid #2d6b96!important;color:#83ceff!important}

/* v70 LOCKED: mobile Type + Country chips wrap; never horizontal-scroll. */
@media(max-width:900px){
  .search-hero .type-chips,
  .search-hero .country-chips{
    display:flex!important;
    flex-wrap:wrap!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    scroll-snap-type:none!important;
    -webkit-overflow-scrolling:auto!important;
    width:100%!important;
    max-width:100%!important;
    gap:8px!important;
  }
  .search-hero .type-chips button,
  .search-hero .country-chips button{
    flex:0 0 auto!important;
    max-width:100%!important;
    white-space:nowrap!important;
    scroll-snap-align:none!important;
  }
}

/* v71 LOCKED: premium poster badge shine — raised outer rim/glow, never inset. */
.search-card .poster .quality,
.search-card .poster .price{overflow:hidden!important;border-width:1px!important;border-style:solid!important;box-shadow:0 8px 18px rgba(0,0,0,.56),0 0 0 1px rgba(255,255,255,.05),0 0 10px rgba(255,199,44,.09)!important;text-shadow:0 1px 2px rgba(0,0,0,.7)!important}
.search-card .poster .quality{background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,0) 38%),linear-gradient(180deg,#1c2025f2,#0d1014f2)!important;border-color:#a18124!important;color:#ffd45b!important;box-shadow:0 8px 18px rgba(0,0,0,.56),0 0 0 1px rgba(255,199,44,.18),0 0 10px rgba(255,199,44,.15)!important}
.search-card .poster .price.free{background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,0) 38%),linear-gradient(180deg,#173329f2,#0b1814f2)!important;border-color:#3b8067!important;color:#9fe8ca!important;box-shadow:0 8px 18px rgba(0,0,0,.56),0 0 0 1px rgba(76,221,166,.15),0 0 10px rgba(76,221,166,.12)!important}
.search-card .poster .price.p1000{background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,0) 38%),linear-gradient(180deg,#153a54f2,#0b1b29f2)!important;border-color:#438bb9!important;color:#8dd7ff!important;box-shadow:0 8px 18px rgba(0,0,0,.56),0 0 0 1px rgba(91,187,255,.16),0 0 10px rgba(91,187,255,.13)!important}
.search-card .poster .price.p2000{background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,0) 38%),linear-gradient(180deg,#34270cf2,#171106f2)!important;border-color:#9a7624!important;color:#ffdb6d!important;box-shadow:0 8px 18px rgba(0,0,0,.56),0 0 0 1px rgba(255,199,44,.16),0 0 10px rgba(255,199,44,.13)!important}
.search-card .poster .price.p3000{background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,0) 38%),linear-gradient(180deg,#3a2c0ff2,#191207f2)!important;border-color:#a47d25!important;color:#ffdc71!important;box-shadow:0 8px 18px rgba(0,0,0,.56),0 0 0 1px rgba(255,199,44,.17),0 0 10px rgba(255,199,44,.14)!important}
.search-card .poster .price.p4000{background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,0) 38%),linear-gradient(180deg,#3d2111f2,#1a0f08f2)!important;border-color:#a7622f!important;color:#ffc088!important;box-shadow:0 8px 18px rgba(0,0,0,.56),0 0 0 1px rgba(255,158,82,.16),0 0 10px rgba(255,158,82,.13)!important}

/* Owner-approved bright rim: visual-only; badge dimensions and positions stay unchanged. */
.search-card .poster .quality{--nr-rim:#ffd43b;--nr-text:#ffe996;--nr-glow:255,212,59;--nr-surface:#28271d}
.search-card .poster .price.free{--nr-rim:#48eba2;--nr-text:#b9ffdc;--nr-glow:72,235,162;--nr-surface:#16372b}
.search-card .poster .price.p1000{--nr-rim:#59c2ff;--nr-text:#c1eaff;--nr-glow:89,194,255;--nr-surface:#17334a}
.search-card .poster .price.p2000{--nr-rim:#ffda61;--nr-text:#ffedb5;--nr-glow:255,218,97;--nr-surface:#3b301a}
.search-card .poster .price.p3000{--nr-rim:#ffc83d;--nr-text:#ffe69a;--nr-glow:255,200,61;--nr-surface:#3c2b14}
.search-card .poster .price.p4000{--nr-rim:#ff9d46;--nr-text:#ffd6ad;--nr-glow:255,157,70;--nr-surface:#432a1b}
.search-card .poster .price.coming{--nr-rim:#c98dff;--nr-text:#f1dcff;--nr-glow:201,141,255;--nr-surface:#2c1d38}
.search-card .poster .quality,
.search-card .poster .price.free,
.search-card .poster .price.p1000,
.search-card .poster .price.p2000,
.search-card .poster .price.p3000,
.search-card .poster .price.p4000,
.search-card .poster .price.coming{
  border-color:var(--nr-rim)!important;color:var(--nr-text)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,0) 42%),radial-gradient(ellipse at 0 0,rgba(var(--nr-glow),.24),transparent 68%),linear-gradient(180deg,var(--nr-surface),#101317)!important;
  box-shadow:0 7px 16px rgba(0,0,0,.55),0 0 0 1px rgba(var(--nr-glow),.22),0 0 13px rgba(var(--nr-glow),.24)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.8),0 0 7px rgba(var(--nr-glow),.18)!important;
}
.search-card .poster .quality::before,
.search-card .poster .price.free::before,
.search-card .poster .price.p1000::before,
.search-card .poster .price.p2000::before,
.search-card .poster .price.p3000::before,
.search-card .poster .price.p4000::before,
.search-card .poster .price.coming::before{
  content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;
  border-left:3px solid var(--nr-rim);pointer-events:none;
}
.search-card .poster .quality::after,
.search-card .poster .price.free::after,
.search-card .poster .price.p1000::after,
.search-card .poster .price.p2000::after,
.search-card .poster .price.p3000::after,
.search-card .poster .price.p4000::after,
.search-card .poster .price.coming::after{
  content:"";position:absolute;top:0;left:12%;right:12%;height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);pointer-events:none;
}

/* === v339 Mobile Search — every filter group fully visible like desktop === */
@media(max-width:900px){
  .search-hero .chips,
  .search-hero .type-chips,
  .search-hero .country-chips,
  .search-hero .quality-chips,
  .search-hero .price-chips,
  .search-hero .genre-chips{
    display:flex!important;
    flex-wrap:wrap!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    scroll-snap-type:none!important;
    -webkit-overflow-scrolling:auto!important;
    width:100%!important;
    max-width:100%!important;
    gap:8px!important;
  }
  .search-hero .chips button,
  .search-hero .type-chips button,
  .search-hero .country-chips button,
  .search-hero .quality-chips button,
  .search-hero .price-chips button,
  .search-hero .genre-chips button{
    flex:0 0 auto!important;
    max-width:100%!important;
    white-space:nowrap!important;
    scroll-snap-align:none!important;
  }
}


/* iPhone Safari: 16px prevents automatic zoom when a search field gains focus.
   Keep pinch-to-zoom enabled for accessibility. */
@media (max-width: 900px){
  .big-search input,
  input#searchInput{
    font-size:16px!important;
    line-height:1.4!important;
    -webkit-text-size-adjust:100%;
  }
}

/* v598: Short Coming Soon label, premium onyx and gold — no neon. */
.poster .price.coming{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#25221C!important;
  background-image:none!important;
  color:#FFE3A3!important;
  border:1px solid #C5A15A!important;
  box-shadow:0 2px 6px rgba(0,0,0,.30)!important;
  text-shadow:none!important;
  -webkit-text-stroke:0!important;
  filter:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  opacity:1!important;
  white-space:nowrap!important;
  width:max-content!important;
  max-width:calc(100% - 12px)!important;
  height:25px!important;
  min-height:23px!important;
  box-sizing:border-box!important;
  padding:0 9px!important;
  border-radius:8px!important;
  font:800 10px/1.25 "Noto Sans Khmer",Inter,sans-serif!important;
  letter-spacing:0!important;
  text-align:center!important;
}
.poster .price.coming::before,.poster .price.coming::after{
 content:none!important;
 display:none!important;
}
@media(max-width:600px){
 .poster .price.coming{
   font-size:9px!important;
   height:23px!important;
   min-height:22px!important;
   padding:0 7px!important;
   border-radius:7px!important;
 }
}

/* Keep poster-only HD/SD/FHD hidden consistently with Home and Catalog (v596). */
.poster .quality{display:none!important;visibility:hidden!important}

/* v599 — The free poster price label uses natural Khmer width. */
.poster .price.free{
 background:#10A575!important;
 background-image:none!important;
 border:1px solid #39C99B!important;
 color:#FFFFFF!important;
 -webkit-text-stroke:0!important;
 text-shadow:none!important;
 box-shadow:0 2px 5px rgba(0,0,0,.24)!important;
 backdrop-filter:none!important;
 filter:none!important;
 opacity:1!important;
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 white-space:nowrap!important;
 box-sizing:border-box!important;
 width:max-content!important;
 min-width:0!important;
 max-width:calc(100% - 10px)!important;
 height:27px!important;
 min-height:24px!important;
 padding:1px 9px!important;
 border-radius:9px!important;
 font:800 10px/1.2 "Noto Sans Khmer",Inter,sans-serif!important;
 letter-spacing:0!important;
 text-align:center!important;
}
.poster .price.free::before,.poster .price.free::after{
 content:none!important;
 display:none!important;
}
@media(max-width:600px){
 .poster .price.free{
   font-size:10px!important;
   height:26px!important;
   min-height:24px!important;
   padding:1px 8px!important;
   max-width:calc(100% - 10px)!important;
   border-radius:8px!important;
 }
}
