/* Catalog: homepage, discovery, filters, ranking and movie listing surfaces. */
.apx-ranking,.apx-ranking *{box-sizing:border-box}
.apx-ranking{max-width:1500px;margin:0 auto;padding:clamp(14px,2vw,28px);color:#f5f7fb}
.apx-ranking__head{padding:clamp(18px,3vw,34px);border:1px solid rgba(255,255,255,.1);border-radius:18px;background:#151922;margin-bottom:18px}
.apx-ranking__kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#f5c518}
.apx-ranking__head h1{font-size:clamp(26px,4vw,44px);line-height:1.05;margin:8px 0}
.apx-ranking__head p{color:#9da7b8;max-width:760px}
.apx-ranking__filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;margin-top:18px}
.apx-ranking__filters label{display:grid;gap:5px;color:#aeb7c6;font-size:12px}
.apx-ranking__filters select,.apx-ranking__filters input{height:38px;min-width:145px;border:1px solid rgba(255,255,255,.14);border-radius:9px;background:#0f131a;color:#fff;padding:0 10px}
.apx-ranking__filters button,.apx-ranking__reset{height:38px;display:inline-flex;align-items:center;padding:0 14px;border:0;border-radius:9px;background:#f5c518;color:#111;font-weight:800;text-decoration:none}
.apx-ranking__reset{background:#272d38;color:#e7eaf0}
.apx-ranking__summary{margin:0 0 12px;color:#9da7b8;font-size:12px}
.apx-ranking__grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.apx-rank-card{min-width:0}
.apx-rank-card>a{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:#191e27;color:inherit;text-decoration:none}
.apx-rank-card__poster{position:relative;aspect-ratio:2/3;background:#0d1015;overflow:hidden}
.apx-rank-card__poster img{width:100%;height:100%;object-fit:cover}
.apx-rank-card__rank{position:absolute;z-index:2;top:8px;left:8px;padding:4px 8px;border-radius:999px;background:rgba(0,0,0,.76);color:#f5c518;font-weight:900;font-size:12px}
.apx-rank-card__body{padding:11px;display:grid;gap:8px}
.apx-rank-card__body h2{font-size:14px;line-height:1.35;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.apx-rank-card__rating{display:flex;justify-content:space-between;gap:8px;font-size:11px}
.apx-rank-card__rating strong{color:#f5c518}
.apx-rank-card__rating span{color:#929daf}
.apx-rank-card__meta{display:flex;gap:5px;flex-wrap:wrap}
.apx-rank-card__meta span{font-size:10px;color:#b8c0cc;background:#262c36;border-radius:5px;padding:3px 6px}
.apx-ranking__pages{display:flex;justify-content:center;margin-top:24px}
.apx-ranking__pages .page-numbers{display:inline-flex;min-width:36px;height:36px;align-items:center;justify-content:center;margin:3px;border-radius:8px;background:#222833;color:#fff;text-decoration:none}
.apx-ranking__pages .current{background:#f5c518;color:#111;font-weight:900}
@media (max-width:1180px){.apx-ranking__grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:860px){.apx-ranking__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:560px){.apx-ranking{padding:10px}.apx-ranking__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.apx-ranking__filters label{flex:1 1 42%}.apx-ranking__filters select,.apx-ranking__filters input{width:100%;min-width:0}.apx-rank-card__body{padding:9px}.apx-rank-card__rating{display:grid}}
.topmovie-thumb{position:relative}
.topmovie-year-badge{position:absolute;z-index:4;top:8px;right:8px;display:inline-flex;align-items:center;height:25px;padding:0 8px;border:1px solid rgba(255,255,255,.24);border-radius:999px;color:#f8fbff;background:rgba(10,14,20,.76);backdrop-filter:blur(10px);box-shadow:0 5px 14px rgba(0,0,0,.22);font-size:10px;font-weight:850;letter-spacing:.02em}
@media (max-width:640px){.topmovie-year-badge{top:6px;right:6px;height:23px;padding-inline:7px;font-size:9px}}
.apx-ranking__summary{display:flex;align-items:center;min-height:38px;padding:0 12px;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:#141922;color:#8e99a9;font-size:11px}
.apx-rank-card__rating strong{letter-spacing:.01em}
.apx-rank-card__rating span{opacity:.72}
.apx-sidebar-movies--ranking .apx-sidebar-movies__rank{left:auto;right:6px;background:#f5c518;color:#17120a}
.apx-sidebar-movies--ranking .apx-sidebar-movies__poster{filter:saturate(.92) contrast(1.03)}
.apx-catalog-grid{gap:clamp(12px,1.6vw,18px)!important;align-items:start}
.apx-catalog-card{display:block;height:100%;color:inherit;text-decoration:none;transition:transform .2s ease}
.apx-catalog-card__poster{position:relative;aspect-ratio:2/3;width:100%;overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:#0c1016;box-shadow:0 16px 34px -28px rgba(0,0,0,.95);transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.apx-catalog-card__poster>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;transition:transform .26s ease,filter .26s ease}
.apx-catalog-card__shade{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(4,6,9,.18) 0%,transparent 36%,rgba(4,6,9,.12) 52%,rgba(4,6,9,.9) 100%);pointer-events:none}
.apx-catalog-card__badges{position:absolute;z-index:3;inset:7px 7px auto;display:flex;align-items:flex-start;justify-content:space-between;gap:6px}
.apx-catalog-card__badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 7px;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:rgba(8,11,16,.8);backdrop-filter:blur(7px);color:#eff3f7;font-size:9px;font-weight:900;line-height:1;box-shadow:0 3px 12px rgba(0,0,0,.2)}
.apx-catalog-card__badge--quality{color:#8ef0ae;border-color:rgba(76,222,126,.24);background:rgba(13,50,27,.72)}
.apx-catalog-card__badge--year{color:#f4d86a}
.apx-catalog-card__status{position:absolute;z-index:3;left:7px;right:7px;bottom:7px;display:flex;justify-content:space-between;align-items:flex-end;gap:6px}
.apx-catalog-card__status span{max-width:72%;padding:4px 7px;border:1px solid rgba(255,255,255,.1);border-radius:7px;background:rgba(7,10,15,.8);backdrop-filter:blur(7px);color:#f0f4f8;font-size:9px;font-weight:850;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apx-catalog-card__status span:last-child{max-width:46%;color:#b8c4d2}
.apx-catalog-card__play{position:absolute;z-index:4;left:50%;top:50%;display:grid;width:46px;height:46px;place-items:center;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(9,13,19,.7);backdrop-filter:blur(10px);color:#fff;opacity:0;transform:translate(-50%,-42%) scale(.92);transition:opacity .2s ease,transform .2s ease}
.apx-catalog-card__play svg{width:20px;height:20px;margin-left:2px}
.apx-catalog-card__body{display:grid;gap:4px;padding:10px 2px 4px;text-align:left}
.apx-catalog-card__body h3{margin:0;color:#eef2f6;font-size:13px;font-weight:800;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .18s ease}
.apx-catalog-card__original{margin:0;color:#737f8f;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.apx-catalog-card__meta{display:flex;align-items:center;gap:6px;min-height:18px;color:#8995a5;font-size:9px;font-weight:700;white-space:nowrap;overflow:hidden}
.apx-catalog-card__meta span{overflow:hidden;text-overflow:ellipsis}
.apx-catalog-card__rating{color:#f3cd55!important}
@media (hover:hover){.apx-catalog-card:hover{transform:translateY(-3px)}.apx-catalog-card:hover .apx-catalog-card__poster{border-color:rgba(92,219,132,.28);box-shadow:0 24px 48px -28px rgba(0,0,0,.98)}.apx-catalog-card:hover .apx-catalog-card__poster>img{transform:scale(1.045);filter:saturate(1.06) contrast(1.03)}.apx-catalog-card:hover .apx-catalog-card__play{opacity:1;transform:translate(-50%,-50%) scale(1)}.apx-catalog-card:hover .apx-catalog-card__body h3{color:#78e89c}}
@media (max-width:767px){.apx-catalog-card__play{display:none}.apx-catalog-card__poster{border-radius:12px}.apx-catalog-card__body{padding-top:8px}}
.home-filter-wrap{margin:10px 0 18px!important;padding:14px 16px!important;border-top:1px solid var(--theme-border)!important;border-bottom:1px solid var(--theme-border)!important;background:linear-gradient(180deg,#171c24,#141920)!important}
.home-filter-container{max-width:none!important;margin:0!important}
.home-filter-form{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(132px,.72fr)!important;gap:10px!important;align-items:end!important}
.home-filter-form .filter-item{min-width:0!important}
.home-filter-form .filter-item label{display:block!important;margin:0 0 5px!important;color:#9aa5b3!important;font-size:10px!important;font-weight:750!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.home-filter-form .filter-item select{width:100%!important;min-width:0!important;height:42px!important;padding:0 34px 0 11px!important;border:1px solid var(--theme-border-strong)!important;border-radius:10px!important;background:#10151c!important;color:#e7edf4!important;font-size:12px!important;outline:none!important;box-shadow:none!important}
.home-filter-form .filter-item select:focus{border-color:rgba(79,141,247,.55)!important;box-shadow:0 0 0 3px rgba(79,141,247,.09)!important}
.home-filter-form .filter-submit{min-width:0!important}
.home-filter-form .filter-submit button{width:100%!important;height:42px!important;border:1px solid rgba(79,141,247,.45)!important;border-radius:10px!important;background:linear-gradient(135deg,#18b8df,#1678f2)!important;color:#fff!important;font-size:12px!important;font-weight:850!important;white-space:nowrap!important;box-shadow:0 12px 26px -18px rgba(31,141,255,.9)!important;transition:filter .16s ease,transform .16s ease!important}
.home-filter-form .filter-submit button:hover{filter:brightness(1.06)!important;transform:translateY(-1px)!important}
.apx-movie-section{min-width:0}
.apx-movie-section [data-apx-slider-track]{gap:10px!important;padding-bottom:10px!important}
.apx-movie-card{min-width:0;color:inherit;text-decoration:none!important}
.apx-movie-card__poster{border:1px solid var(--theme-border)!important;border-radius:12px!important;background:#0c1118!important;box-shadow:0 14px 30px -25px #000!important;isolation:isolate;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease!important}
.apx-movie-card__image{border-radius:12px!important;object-position:center top!important;transition:transform .24s ease,filter .24s ease!important}
.apx-movie-card__poster::after{content:"";position:absolute;inset:0;z-index:5;pointer-events:none;background:linear-gradient(180deg,rgba(3,5,8,.12) 0%,transparent 38%,rgba(3,5,8,.12) 57%,rgba(3,5,8,.72) 100%);border-radius:inherit}
.apx-movie-card__poster>.absolute.inset-0{z-index:10!important}
.apx-movie-card__poster .apiphim-badge{min-height:21px!important;max-width:48%!important;padding:3px 6px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:6px!important;background:rgba(8,12,18,.78)!important;backdrop-filter:blur(7px);font-size:8px!important;font-weight:850!important;line-height:1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.apx-movie-card__poster .apiphim-badge-quality{color:#9ceab4!important;border-color:rgba(69,213,119,.22)!important;background:rgba(12,46,26,.78)!important}
.apx-movie-card__poster .apiphim-badge-lang{color:#dce8f7!important}
.apx-movie-card__poster .absolute.flex.flex-col.text-white{max-width:calc(100% - 14px)!important;left:7px!important;right:auto!important;bottom:7px!important;transform:none!important;gap:4px!important;align-items:flex-start!important}
.apx-movie-card__poster .absolute.flex.flex-col.text-white span{display:block!important;max-width:100%!important;min-height:20px!important;padding:3px 6px!important;border-radius:6px!important;font-size:8px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.apx-movie-card__body{min-width:0!important;gap:3px!important;padding:8px 2px 3px!important}
.apx-movie-card__body h3{width:100%;min-width:0;margin:0!important;color:#e9eef4!important;font-size:12px!important;font-weight:750!important;line-height:1.3!important;text-align:center;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important}
.apx-movie-card__body p{width:100%;min-width:0;margin:0!important;color:#6f7b8b!important;font-size:9px!important;font-weight:600!important;line-height:1.25!important;text-align:center;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important}
@media (hover:hover){.apx-movie-card:hover .apx-movie-card__poster{border-color:rgba(58,166,160,.4)!important;box-shadow:0 20px 38px -26px rgba(0,0,0,.98)!important;transform:translateY(-2px)}.apx-movie-card:hover .apx-movie-card__image{transform:scale(1.035);filter:saturate(1.06) contrast(1.025)}.apx-movie-card:hover .apx-movie-card__body h3{color:#85dfba!important}}
.apx-ranking{color:var(--theme-text)!important}
.apx-ranking__head{padding:20px!important;border:1px solid var(--theme-border)!important;border-radius:16px!important;background:linear-gradient(145deg,#121824,#0f141d)!important}
.apx-ranking__kicker{color:#87aef8!important;font-size:10px!important;letter-spacing:.1em!important}
.apx-ranking__head h1{margin:6px 0!important;font-size:clamp(24px,3vw,34px)!important;line-height:1.12!important;letter-spacing:-.02em!important}
.apx-ranking__head p{margin:0!important;color:#8592a2!important;font-size:12px!important;line-height:1.55!important}
.apx-ranking__summary{min-height:34px!important;padding:0 10px!important;border-radius:9px!important;background:#111722!important;color:#7f8b9a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.apx-ranking__empty{grid-column:1/-1;display:grid;gap:4px;padding:24px;border:1px dashed rgba(255,255,255,.12);border-radius:14px;background:#111721;color:#e6edf4;text-align:center}
.apx-ranking__empty span{color:#7e8a99;font-size:12px}
.apx-rank-card>a{border-color:var(--theme-border)!important;border-radius:12px!important;background:#111722!important}
.apx-rank-card__poster{border-radius:12px 12px 0 0!important}
.apx-rank-card__body{gap:6px!important;padding:9px!important}
.apx-rank-card__body h2{font-size:12px!important;white-space:nowrap!important;text-overflow:ellipsis!important;display:block!important}
.apx-rank-card__rating{align-items:center!important;font-size:10px!important;white-space:nowrap!important}
.apx-rank-card__rating strong{color:#f2c84b!important}
.apx-rank-card__rating span{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#7d8999!important}
.apx-rank-card__meta{flex-wrap:nowrap!important;overflow:hidden!important}
.apx-rank-card__meta span{min-width:0;max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}
@media (max-width:980px){.home-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}.home-filter-form .filter-submit{grid-column:1/-1!important}.home-filter-form .filter-submit button{max-width:220px!important}}
@media (max-width:767px){.apx-movie-card__body h3{font-size:11px!important}}
@media (max-width:560px){.home-filter-wrap{padding:12px!important}.home-filter-form{grid-template-columns:1fr!important}.home-filter-form .filter-submit{grid-column:auto!important}.home-filter-form .filter-submit button{max-width:none!important}}
.apx-ranking__pages:empty{display:none!important}
@media (max-width:767px){.home-filter-wrap{padding:0!important}.home-filter-container{padding:12px 10px!important}.home-filter-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.home-filter-form .filter-item{min-width:0!important}.home-filter-form .filter-item label{margin:0 0 4px!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.home-filter-form .filter-item select{height:44px!important;padding:0 28px 0 10px!important;border-radius:10px!important;font-size:12px!important}.home-filter-form .filter-submit{grid-column:1/-1!important}.home-filter-form .filter-submit button{height:44px!important;max-width:none!important;border-radius:10px!important;font-size:12px!important}}
.apx-catalog-card__badges{top:7px!important}
.apx-catalog-card__badge--year{display:none!important}
.apx-catalog-card__status{left:7px!important;right:auto!important;bottom:7px!important;gap:0!important;max-width:calc(100% - 14px)!important;align-items:stretch!important}
.apx-catalog-card__status span{height:27px!important;display:flex!important;align-items:center!important;max-width:none!important;padding:0 8px!important;border-radius:0!important;font-size:9px!important;border:1px solid rgba(255,255,255,.12)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.apx-catalog-card__status span:first-child{border-radius:7px 0 0 7px!important;background:rgba(22,31,54,.94)!important;color:#f0f4fa!important}
.apx-catalog-card__status span:last-child{border-left:0!important;border-radius:0 7px 7px 0!important;background:rgba(225,49,75,.92)!important;color:#fff!important}
.apx-catalog-card__body h3{font-size:13px!important;line-height:1.32!important}
.apx-catalog-card__play{display:grid!important}
.apx-catalog-card__play{opacity:.16!important}
.apx-catalog-card:hover .apx-catalog-card__play,.apx-catalog-card:focus-visible .apx-catalog-card__play{opacity:1!important}
@media (max-width:767px){.apx-catalog-card__play{width:38px!important;height:38px!important;opacity:.34!important}.apx-catalog-card__play svg{width:17px!important;height:17px!important}.apx-catalog-card__status span{height:25px!important;padding-inline:6px!important;font-size:8px!important}}
.movie-card-item .apx-movie-card__poster{position:relative!important}
.movie-card-item .apx-movie-card__poster::after{content:"";position:absolute;z-index:31;left:50%;top:50%;display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(6,10,16,.72);color:#fff;font-size:15px;opacity:.12;transform:translate(-50%,-50%);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.movie-card-item:hover .apx-movie-card__poster::after,.movie-card-item:focus-visible .apx-movie-card__poster::after{opacity:1;transform:translate(-50%,-50%) scale(1.04)}
@media (max-width:767px){.movie-card-item .apx-movie-card__poster::after{width:38px;height:38px;font-size:13px;opacity:.28}}
.topmovie-thumb{position:relative}
.topmovie-thumb::after{content:"";position:absolute;z-index:4;left:50%;top:50%;display:grid;place-items:center;width:42px;height:42px;border-radius:999px;border:1px solid rgba(255,255,255,.22);background:rgba(7,11,17,.7);color:#fff;font-size:14px;opacity:.14;transform:translate(-50%,-50%);transition:.18s ease}
.topmovie-item:hover .topmovie-thumb::after,.topmovie-item:focus-visible .topmovie-thumb::after{opacity:1;transform:translate(-50%,-50%) scale(1.05)}
.topmovie-rank[data-rank="1"]{color:#ffd65a!important;text-shadow:0 3px 18px rgba(255,198,42,.36)}
.topmovie-rank[data-rank="2"]{color:#dbe4ee!important}
.topmovie-rank[data-rank="3"]{color:#d79a67!important}
.apx-poster-meta-bar{position:absolute!important;z-index:30!important;left:7px!important;bottom:7px!important;display:flex!important;align-items:stretch!important;gap:0!important;max-width:calc(100% - 14px)!important;min-width:0!important;font-size:9px!important;font-weight:800!important;line-height:1!important;filter:drop-shadow(0 5px 10px rgba(0,0,0,.34))}
.apx-poster-meta-bar>span{display:flex!important;align-items:center!important;height:27px!important;min-width:0!important;padding:0 8px!important;border:1px solid rgba(255,255,255,.13)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.apx-poster-meta-type{border-radius:7px 0 0 7px!important;background:rgba(22,31,54,.94)!important;color:#edf3fb!important}
.apx-poster-meta-status{border-left:0!important;border-radius:0 7px 7px 0!important;background:rgba(225,49,75,.93)!important;color:#fff!important}
@media (max-width:767px){.apx-poster-meta-bar{left:6px!important;bottom:6px!important;max-width:calc(100% - 12px)!important;font-size:8px!important}.apx-poster-meta-bar>span{height:25px!important;padding-inline:6px!important}}
.topmovie-year-badge{display:none!important}
.topmovie-title{display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;line-height:1.25!important}
@media (max-width:767px){.topmovie-thumb::after{opacity:.30}}
.topmovie-header{position:relative!important;
  padding-bottom:15px!important;
  margin-bottom:18px!important;}
.topmovie-header::after{content:"";position:absolute;left:0;bottom:0;width:70%;max-width:560px;height:1px;
  background:linear-gradient(90deg,rgba(152,169,190,.36),rgba(152,169,190,.11),transparent);
  pointer-events:none;}
.topmovie-header::before{content:"";position:absolute;z-index:1;left:0;bottom:-.5px;width:54px;height:2px;border-radius:999px;
  background:linear-gradient(90deg,var(--detail-green),var(--detail-teal));
  box-shadow:0 0 12px rgba(45,212,191,.16);pointer-events:none;}
.topmovie-header h2{margin:0!important;color:var(--detail-text)!important;font-size:var(--detail-title-size)!important;
  font-weight:850!important;line-height:1.22!important;letter-spacing:-.022em!important;text-transform:none!important;}
.topmovie-header h2::after{display:none!important}
.topmovie-year-badge{display:inline-flex!important;position:absolute;z-index:8;right:8px;top:8px;align-items:center;justify-content:center;min-height:27px;padding:0 8px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(8,12,18,.86);color:#eef3f8;font-size:10px;font-weight:900;line-height:1;backdrop-filter:blur(8px);box-shadow:0 8px 18px -14px #000}
.apx-movie-card--rank .apx-movie-card__poster{clip-path:none!important;-webkit-clip-path:none!important;overflow:hidden!important;border-radius:14px!important;border-color:transparent!important}
.apx-movie-card--rank .apx-movie-card__image{border-radius:14px!important;object-fit:cover!important}
.apx-movie-card--rank .apx-movie-card__poster::after{border-radius:14px!important}
.apx-movie-card--rank .apx-movie-card__poster::before{content:"";position:absolute;z-index:40;inset:0;pointer-events:none;border-radius:14px;box-shadow:inset 0 0 0 1.5px rgba(188,202,218,.42),inset 0 1px 0 rgba(255,255,255,.09)}
@media (max-width:767px){.topmovie-header{padding-bottom:12px!important;margin-bottom:14px!important}.topmovie-header::after{width:70%;max-width:none}.topmovie-header::before{width:44px}.topmovie-year-badge{right:6px;top:6px;min-height:24px;padding-inline:6px;font-size:9px}}
.apx-slideposter-widget{margin:0 0 26px}
.apx-slideposter-heading{margin:0 0 16px!important}
.apx-slideposter-widget>section{padding-top:0!important}
.apx-slideposter-widget.is-featured .apx-slideposter-heading::before{background:linear-gradient(90deg,#a3e635,#2dd4bf)!important;}
.apx-rank-card__body>.apx-rank-card__meta:first-of-type{margin-top:8px}
@media (max-width:767px){.apx-slideposter-widget{margin-bottom:20px}.apx-slideposter-heading{margin-bottom:12px!important}}
.apx-slideposter-widget{width:100%!important;margin:0 0 28px!important}
.apx-slideposter-heading{width:100%!important;margin:0 0 18px!important;padding:0 0 15px!important;
  align-items:center!important;justify-content:flex-start!important;}
.apx-slideposter-heading .section-title{margin:0!important;padding:0!important;font-size:var(--detail-title-size,24px)!important;
  font-weight:850!important;line-height:1.22!important;letter-spacing:-.022em!important;}
.apx-slideposter-heading .apx-widget-title-link{display:inline-flex!important;align-items:center!important;gap:7px!important}
.apx-slideposter-widget>section{margin-top:0!important;padding-top:0!important}
@media (max-width:767px){.apx-slideposter-widget{margin-bottom:22px!important}.apx-slideposter-heading{margin-bottom:14px!important;padding-bottom:12px!important}.apx-slideposter-heading .section-title{font-size:20px!important}}
.apx-ranking__filters{display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:10px;
  margin-top:18px;}
.apx-ranking__filters label{display:grid;
  gap:6px;
  min-width:170px;
  color:#aeb7c6;
  font-size:12px;
  font-weight:650;}
.apx-ranking__filters select{width:100%;
  height:40px;
  min-width:170px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:#0d131d;
  color:#f7f9fc;
  padding:0 34px 0 11px;
  font-size:13px;
  outline:none;
  transition:border-color .18s ease,background-color .18s ease,box-shadow .18s ease;}
.apx-ranking__filters select:hover,.apx-ranking__filters select:focus{border-color:rgba(135,174,248,.58);
  background:#111925;
  box-shadow:0 0 0 3px rgba(78,129,230,.11);}
.apx-ranking__filters button,.apx-ranking__reset{min-height:40px;
  border-radius:10px!important;
  padding:0 15px!important;
  white-space:nowrap;}
.apx-ranking__filters button{cursor:pointer;}
.apx-ranking__active-filters{display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:10px;}
.apx-ranking__filter-chip{display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:4px 9px;
  border:1px solid rgba(135,174,248,.2);
  border-radius:999px;
  background:rgba(58,93,157,.18);
  color:#cbdcff;
  font-size:11px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  transition:border-color .18s ease,background-color .18s ease,color .18s ease;}
.apx-ranking__filter-chip span{color:#88a5d7;
  font-size:15px;
  line-height:1;}
.apx-ranking__filter-chip:hover,.apx-ranking__filter-chip:focus-visible{border-color:rgba(135,174,248,.46);
  background:rgba(58,93,157,.3);
  color:#fff;}
.apx-ranking__empty{margin-bottom:16px;}
@media (max-width:640px){.apx-ranking__filters{display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;}.apx-ranking__filters label{min-width:0;}.apx-ranking__filters select{min-width:0;}.apx-ranking__filters button,.apx-ranking__reset{width:100%;
    justify-content:center;}}
@media (max-width:390px){.apx-ranking__filters{grid-template-columns:1fr;}}

/* Filter page. */

.apiphim-nav-wrap {
  margin: 12px 0 18px;
  padding: 10px 14px;
  border-radius: 12px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;

  background: rgba(20,20,20,.85);
  backdrop-filter: blur(8px);

  border: 1px solid #666;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.apiphim-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.apiphim-nav-item {
    font-size: 13px;
    color: #d1d5db;
}
.apiphim-nav-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
}
.apiphim-nav-divider {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
}


.filter-bar {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;

  background: rgba(20,20,20,.9);
  backdrop-filter: blur(8px);

  border: 1px solid #444;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 16px;
}

.filter-item label {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.filter-item select {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    background: #1c1e26;
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    padding: 0 12px;
}

.filter-submit {
    display: flex;
    align-items: flex-end;
}
.filter-submit button {
    height: 42px;
    padding: 0 36px;
    border-radius: 14px;
    border: 1px solid rgba(0, 180, 255, 0.35);

    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #ffffff;

    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4px;
    white-space: nowrap;
    cursor: pointer;

    transition: all 0.25s ease;

    box-shadow:
        0 4px 14px rgba(0, 114, 255, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.15);
}


.filter-submit button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 22px rgba(0, 114, 255, 0.55),
        inset 0 1px 0 rgba(255,255,255,0.25);
}


.filter-submit button:active {
    transform: translateY(0);
    box-shadow:
        0 3px 10px rgba(0, 114, 255, 0.35),
        inset 0 2px 6px rgba(0,0,0,0.25);
}


.filter-submit button:focus-visible {
    outline: 2px solid #00c6ff;
    outline-offset: 2px;
}


.filter-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 18px;
}


.movie-item {
    background: #15171d;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.55);
}

.movie-thumb {
    position: relative;
}

.movie-thumb img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}


.movie-badge {
    position: absolute;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 7px;
    line-height: 1.2;
    z-index: 2;
}
.movie-quality {
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg,#facc15,#ca8a04);
    color: #111;
    font-weight: 700;
}
.movie-view {
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,.65);
    color: #fff;
}
.movie-lang {
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg,#2563eb,#1e40af);
    color: #fff;
    font-weight: 700;
}
.movie-episode {
    bottom: 8px;
    right: 8px;
    color: #fff;
    font-weight: 600;
}

.movie-episode-grey {
    background: linear-gradient(
        135deg,
        rgba(15,23,42,.85),
        rgba(0,0,0,.85)
    );
}
.movie-episode-red {
    background-color: rgb(220 38 38);
}
.movie-episode-orange {
    background-color: rgb(249 115 22);
}


.movie-title {
    padding: 10px 8px 12px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    line-height: 1.35;
    background: #31394F;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.filter-pagination {
    margin: 36px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-pagination a,
.filter-pagination span {
    min-width: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #1c1e26;
    color: #ccc;
    text-align: center;
}
.filter-pagination .current {
    background: linear-gradient(135deg,#22c55e,#16a34a);
    color: #04110a;
    font-weight: 700;
}


@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: repeat(2,1fr);
    }
    .filter-submit {
        grid-column: 1 / -1;
        justify-content: center;
    }
    .filter-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 14px;
    }
    .movie-title {
        font-size: 13px;
    }
    .movie-badge {
        font-size: 11px;
        padding: 2px 7px;
    }
}

/* Search page. */
.apiphim-search-page,
.apiphim-search-page * {
    box-sizing: border-box;
}

.apiphim-search-page {
    --search-panel: #171b24;
    --search-panel-deep: #11151d;
    --search-card: #1b202a;
    --search-border: rgba(157, 169, 194, .18);
    --search-text: #f5f7fb;
    --search-muted: #99a4b8;
    --search-green: #24e256;
    --search-blue: #45c7f4;
    --search-purple: #9b7cff;
    width: 100%;
    padding: clamp(16px, 3vw, 34px) clamp(12px, 2vw, 24px);
    color: var(--search-text);
}

.apiphim-search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 30%);
    gap: clamp(22px, 3vw, 38px);
    max-width: 1440px;
    margin: 0 auto;
}

.apiphim-search-main {
    min-width: 0;
}

.apiphim-search-head {
    overflow: hidden;
    padding: clamp(16px, 2.5vw, 24px);
    border: 1px solid var(--search-border);
    border-radius: 16px;
    background:
        radial-gradient(circle at 8% 0, rgba(36, 226, 86, .09), transparent 28%),
        radial-gradient(circle at 96% 100%, rgba(155, 124, 255, .08), transparent 30%),
        linear-gradient(180deg, var(--search-panel), var(--search-panel-deep));
    box-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}

.apiphim-search-title {
    margin: 0;
    color: #fff;
    font-size: clamp(21px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.apiphim-search-title strong {
    color: var(--search-green);
}

.apiphim-search-mode {
    display: inline-flex;
    align-items: center;
    margin-top: 9px;
    padding: 5px 9px;
    border: 1px solid var(--search-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .035);
    color: var(--search-muted);
    font-size: 11px;
    font-weight: 700;
}

.apiphim-search-mode b {
    margin-left: 4px;
    color: #fff;
}

.apiphim-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    margin-top: 17px;
}

.apiphim-search-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(157, 169, 194, .24);
    border-radius: 10px;
    background: #0f131a;
    color: #fff;
    font: 600 13px/1 "Inter", sans-serif;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.apiphim-search-input::placeholder {
    color: #707b8e;
}

.apiphim-search-input:focus {
    border-color: rgba(69, 199, 244, .62);
    box-shadow: 0 0 0 3px rgba(69, 199, 244, .10);
}

.apiphim-search-submit {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--search-border);
    border-radius: 10px;
    background: #252b36;
    color: #f5f7fb;
    font: 750 12px/1 "Inter", sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.apiphim-search-submit:hover,
.apiphim-search-submit:focus-visible {
    border-color: rgba(69, 199, 244, .48);
    background: #2c3442;
    transform: translateY(-1px);
    outline: none;
}

.apiphim-search-submit--all {
    border-color: rgba(36, 226, 86, .35);
    background: linear-gradient(135deg, #1c8c42, #22b455);
    color: #fff;
}

.apiphim-search-submit--all:hover,
.apiphim-search-submit--all:focus-visible {
    border-color: rgba(36, 226, 86, .68);
    background: linear-gradient(135deg, #20a34b, #28c660);
}

.apiphim-search-help {
    margin: 10px 0 0;
    color: var(--search-muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.apiphim-semantic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.apiphim-semantic-box {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--search-border);
    border-radius: 11px;
    background: linear-gradient(180deg, #1c212b, #151922);
}

.apiphim-semantic-title {
    margin-bottom: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

.apiphim-semantic-items {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.apiphim-semantic-items a {
    max-width: 100%;
    overflow: hidden;
    padding: 5px 7px;
    border: 1px solid rgba(157, 169, 194, .13);
    border-radius: 6px;
    background: #0f1319;
    color: #cfd6e1;
    font-size: 10.5px;
    font-weight: 650;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.apiphim-semantic-items a:hover,
.apiphim-semantic-items a:focus-visible {
    border-color: rgba(36, 226, 86, .38);
    background: rgba(36, 226, 86, .10);
    color: #fff;
    outline: none;
}

.apiphim-search-highlight {
    padding: 0 2px;
    border-radius: 3px;
    background: #ffd43b;
    color: #101218;
}

.apiphim-search-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.apiphim-search-card {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.apiphim-search-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--search-border);
    border-radius: 8px;
    background: #0c0f15;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .23);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.apiphim-search-card:hover .apiphim-search-poster,
.apiphim-search-card:focus-visible .apiphim-search-poster {
    border-color: rgba(36, 226, 86, .46);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .34);
    transform: translateY(-4px);
}

.apiphim-search-card:focus-visible {
    outline: none;
}

.apiphim-search-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .32s ease, filter .32s ease;
}

.apiphim-search-card:hover img,
.apiphim-search-card:focus-visible img {
    filter: saturate(1.05);
    transform: scale(1.05);
}

.apiphim-search-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 48%, rgba(0, 0, 0, .32));
}

.apiphim-search-badge {
    position: absolute;
    top: 6px;
    z-index: 3;
    max-width: 44%;
    overflow: hidden;
    padding: 4px 6px;
    border-radius: 5px;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .28);
}

.apiphim-search-badge--quality {
    left: 6px;
    background: rgba(139, 92, 246, .92);
}

.apiphim-search-badge--lang {
    right: 6px;
    background: rgba(14, 165, 233, .92);
}

.apiphim-search-episode {
    position: absolute;
    z-index: 3;
    bottom: 7px;
    left: 50%;
    max-width: calc(100% - 14px);
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 5px;
    color: #fff;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateX(-50%);
}

.apiphim-search-info {
    min-width: 0;
    padding: 8px 3px 2px;
    text-align: center;
}

.apiphim-search-movie-title,
.apiphim-search-original-title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.apiphim-search-movie-title {
    color: #e8edf5;
    font-size: 12.5px;
    font-weight: 750;
}

.apiphim-search-card:hover .apiphim-search-movie-title,
.apiphim-search-card:focus-visible .apiphim-search-movie-title {
    color: var(--search-green);
}

.apiphim-search-original-title {
    margin-top: 3px;
    color: #727e91;
    font-size: 10.5px;
}

.apiphim-search-empty {
    margin-top: 20px;
    padding: 44px 18px;
    border: 1px dashed rgba(157, 169, 194, .25);
    border-radius: 13px;
    background: rgba(255, 255, 255, .025);
    text-align: center;
}

.apiphim-search-empty-icon {
    margin-bottom: 8px;
    font-size: 35px;
    opacity: .5;
}

.apiphim-search-empty h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
}

.apiphim-search-empty p {
    margin: 7px 0 0;
    color: var(--search-muted);
    font-size: 12px;
}

.apiphim-search-expand {
    display: inline-flex;
    margin-top: 14px;
    padding: 9px 13px;
    border: 1px solid rgba(36, 226, 86, .34);
    border-radius: 8px;
    background: rgba(36, 226, 86, .10);
    color: #eaffef;
    font-size: 11.5px;
    font-weight: 750;
    text-decoration: none;
}

.apiphim-search-pagination {
    margin-top: 24px;
}

.apiphim-search-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.apiphim-search-pagination a,
.apiphim-search-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 9px;
    border: 1px solid var(--search-border);
    border-radius: 7px;
    background: #1b202a;
    color: #dce2eb;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.apiphim-search-pagination .current,
.apiphim-search-pagination a:hover {
    border-color: rgba(36, 226, 86, .48);
    background: var(--search-green);
    color: #07110a;
}

.apiphim-search-sidebar {
    min-width: 0;
}

@media (max-width: 1180px) {
    .apiphim-search-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .apiphim-search-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .apiphim-search-sidebar {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .apiphim-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .apiphim-search-input {
        grid-column: 1 / -1;
    }

    .apiphim-search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }
}

@media (max-width: 520px) {
    .apiphim-search-page {
        padding: 9px 7px 18px;
    }

    .apiphim-search-head {
        padding: 13px 10px;
        border-radius: 12px;
    }

    .apiphim-search-form {
        gap: 6px;
    }

    .apiphim-search-submit {
        padding: 0 8px;
        font-size: 10.5px;
    }

    .apiphim-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 15px;
    }

    .apiphim-search-movie-title {
        font-size: 11.5px;
    }

    .apiphim-search-original-title {
        font-size: 9.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .apiphim-search-submit,
    .apiphim-search-card,
    .apiphim-search-poster,
    .apiphim-search-poster img {
        transition: none !important;
    }
}

/* Homepage/category rhythm and compact poster metadata. */
.home-sections-layout{
  width:100%;
  min-width:0;
  padding:26px var(--section-gutter-desktop) 34px;
  box-sizing:border-box;
}
.home-sections-layout .apx-movie-section{
  width:100%;
  min-width:0;
  margin:0 0 var(--section-space-desktop)!important;
  padding:0!important;
}
.home-sections-layout .apx-movie-section:last-child{margin-bottom:0!important}
.home-sections-layout .apx-movie-section>section>header{padding-left:0!important;padding-right:0!important}
.home-sections-layout .apx-movie-card__body h3{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  white-space:normal!important;
  font-size:14px!important;
  line-height:1.36!important;
}

/* Slide widget heading shares the homepage gutter while the artwork stays full-width. */
.apx-slideposter-widget{margin-bottom:var(--section-space-desktop)!important}
.apx-slideposter-heading{
  width:auto!important;
  margin-left:var(--section-gutter-desktop)!important;
  margin-right:var(--section-gutter-desktop)!important;
  margin-bottom:16px!important;
  padding:0 0 13px!important;
}
.apx-slideposter-heading .section-title{font-size:var(--section-title-size)!important}
.apx-slideposter-widget>section{padding-top:0!important}

/* Compact segmented type + episode/status strip on poster cards. */
.apx-poster-meta-bar,
.apx-catalog-card__status{
  bottom:6px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:0!important;
  width:max-content!important;
  height:22px!important;
  min-height:22px!important;
  max-width:calc(100% - 12px)!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.20)!important;
  border-radius:7px!important;
  background:rgba(8,12,20,.86)!important;
  box-shadow:0 6px 16px rgba(0,0,0,.30),inset 0 1px rgba(255,255,255,.05)!important;
  backdrop-filter:blur(7px)!important;
}
.apx-poster-meta-bar>span,
.apx-catalog-card__status span{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  height:100%!important;
  min-height:0!important;
  padding:0 6px!important;
  font-size:8px!important;
  line-height:1!important;
  border:0!important;
  border-radius:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.apx-poster-meta-type,
.apx-catalog-card__status span:first-child{
  border-radius:0!important;
  background:rgba(22,31,54,.96)!important;
  color:#edf3fb!important;
}
.apx-poster-meta-status,
.apx-catalog-card__status span:last-child{
  border-left:1px solid rgba(255,255,255,.18)!important;
  border-radius:0!important;
  background:rgba(225,49,75,.95)!important;
  color:#fff!important;
}

/* XemPhim v1.9.34 — Dual Artwork Homepage Slider: Cover background + Poster foreground. */
.apx-hero-slider{
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
}
.apx-hero-slider__viewport{position:relative;width:100%;min-width:0;overflow:hidden}
.apx-hero-slider__track{
  display:flex;
  gap:10px;
  width:100%;
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.apx-hero-slider__track::-webkit-scrollbar{display:none}
.apx-hero-slide{
  position:relative;
  flex:0 0 100%!important;
  width:100%!important;
  min-width:0;
  color:#fff!important;
  text-decoration:none!important;
  scroll-snap-align:start;
}
.apx-hero-slide__media{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border:1px solid rgba(148,163,184,.20);
  border-radius:16px;
  background:
    radial-gradient(circle at 22% 22%,rgba(192,132,252,.13),transparent 34%),
    radial-gradient(circle at 82% 78%,rgba(68,199,244,.10),transparent 38%),
    #080d14;
  isolation:isolate;
  box-shadow:inset 0 1px rgba(255,255,255,.035),0 20px 48px -34px #000;
}
.apx-hero-slide__cover{
  position:absolute;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  filter:saturate(1.02) contrast(1.03) brightness(.82);
  transform:scale(1.001);
  transition:transform .34s ease,filter .34s ease;
}
.apx-hero-slide__shade{
  position:absolute;
  z-index:1;
  inset:0;
  background:
    linear-gradient(90deg,rgba(4,8,15,.74) 0%,rgba(4,8,15,.28) 40%,rgba(4,8,15,.16) 68%,rgba(4,8,15,.42) 100%),
    linear-gradient(180deg,rgba(3,7,13,.08) 15%,rgba(3,7,13,.22) 48%,rgba(3,7,13,.94) 100%),
    linear-gradient(135deg,rgba(192,132,252,.11),transparent 46%,rgba(68,199,244,.10));
  pointer-events:none;
  transition:background .28s ease;
}
.apx-hero-slide__poster-frame{
  position:absolute;
  z-index:4;
  left:clamp(12px,2vw,18px);
  bottom:clamp(12px,2vw,18px);
  width:clamp(88px,25%,148px);
  max-height:76%;
  aspect-ratio:2/3;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.26);
  border-radius:11px;
  background:#111827;
  box-shadow:0 20px 36px -16px rgba(0,0,0,.92),0 0 0 1px rgba(192,132,252,.09);
  transform:translateY(0);
  transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease;
}
.apx-hero-slide__poster{
  display:block;
  width:100%;
  height:100%;
  aspect-ratio:2/3;
  object-fit:cover;
  object-position:center top;
}
.apx-hero-slide__play{
  position:absolute;
  z-index:5;
  left:50%;
  top:50%;
  display:grid;
  width:52px;
  height:52px;
  place-items:center;
  border:1px solid rgba(68,199,244,.62);
  border-radius:50%;
  background:rgba(7,14,24,.74);
  color:#e7fbff;
  box-shadow:0 16px 34px -18px rgba(68,199,244,.95),inset 0 1px rgba(255,255,255,.08);
  opacity:0;
  transform:translate(-50%,-50%) scale(.84);
  transition:opacity .20s ease,transform .20s ease,background .20s ease;
  pointer-events:none;
  backdrop-filter:blur(8px);
}
.apx-hero-slide__play svg{width:24px;height:24px;margin-left:2px}
.apx-hero-slide__content{
  position:absolute;
  z-index:4;
  left:clamp(16px,2vw,22px);
  right:clamp(16px,2vw,22px);
  bottom:clamp(14px,2vw,20px);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:6px 10px;
  align-items:end;
}
.apx-hero-slide__media.has-poster .apx-hero-slide__content{left:clamp(120px,30%,178px)}
.apx-hero-slide__title{
  grid-column:1/-1;
  margin:0;
  max-width:100%;
  color:#fff;
  font-size:clamp(18px,1.8vw,25px);
  font-weight:900;
  line-height:1.12;
  letter-spacing:-.028em;
  text-shadow:0 2px 14px rgba(0,0,0,.92);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.apx-hero-slide__original{
  grid-column:1/-1;
  margin:0;
  max-width:100%;
  overflow:hidden;
  color:#cbd5e1;
  font-size:10.5px;
  font-weight:700;
  line-height:1.3;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.apx-hero-slide__badges{display:flex;align-items:center;gap:6px;min-width:0}
.apx-hero-slide__badge{
  display:inline-flex;
  min-height:24px;
  align-items:center;
  padding:0 8px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:7px;
  font-size:9px;
  font-weight:900;
  line-height:1;
  box-shadow:0 8px 18px -13px #000;
}
.apx-hero-slide__badge--status{border-color:rgba(110,231,183,.30);background:rgba(110,231,183,.12);color:#b9f9df}
.apx-hero-slide__badge--quality{border-color:rgba(192,132,252,.32);background:rgba(192,132,252,.13);color:#ead7ff}
.apx-hero-slide__meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0;
  min-width:0;
  color:#cbd5e1;
  font-size:9px;
  font-weight:750;
}
.apx-hero-slide__meta span{display:inline-flex;align-items:center;white-space:nowrap}
.apx-hero-slide__meta span+span::before{content:"";width:3px;height:3px;margin:0 6px;border-radius:50%;background:#64748b}
.apx-hero-slide__cta{
  grid-column:2;
  grid-row:3/5;
  align-self:end;
  display:inline-flex;
  min-height:32px;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 11px;
  border:1px solid rgba(68,199,244,.42);
  border-radius:8px;
  background:rgba(15,42,86,.82);
  color:#dff8ff;
  font-size:10px;
  font-weight:900;
  box-shadow:0 10px 28px -18px rgba(68,199,244,.9);
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.apx-hero-slider__nav{
  position:absolute;
  z-index:8;
  right:12px;
  top:12px;
  display:flex;
  gap:6px;
}
.apx-hero-slider__nav-button{
  display:grid;
  width:32px;
  height:32px;
  place-items:center;
  border:1px solid rgba(255,255,255,.16);
  border-radius:8px;
  background:rgba(4,8,15,.72);
  color:#fff;
  font-size:23px;
  line-height:1;
  backdrop-filter:blur(8px);
}
.apx-hero-slider__nav-button:hover,.apx-hero-slider__nav-button:focus-visible{border-color:#44c7f4;background:#102a56;outline:none}
.apx-hero-slider__dots{
  position:absolute;
  z-index:9;
  left:50%;
  bottom:8px;
  display:flex;
  gap:5px;
  transform:translateX(-50%);
}
.apx-hero-slider__dots .apx-slider-dot{width:9px;height:4px;background:rgba(148,163,184,.62)}
.apx-hero-slider__dots .apx-slider-dot.is-active{width:24px;background:linear-gradient(90deg,#c084fc,#44c7f4)}

@media (hover:hover) and (pointer:fine){
  .apx-hero-slide:hover .apx-hero-slide__cover,.apx-hero-slide:focus-visible .apx-hero-slide__cover{transform:scale(1.032);filter:saturate(1.06) contrast(1.04) brightness(.72)}
  .apx-hero-slide:hover .apx-hero-slide__poster-frame,.apx-hero-slide:focus-visible .apx-hero-slide__poster-frame{transform:translateY(-3px);border-color:rgba(192,132,252,.52);box-shadow:0 22px 40px -16px rgba(0,0,0,.95),0 0 0 1px rgba(192,132,252,.16)}
  .apx-hero-slide:hover .apx-hero-slide__play,.apx-hero-slide:focus-visible .apx-hero-slide__play{opacity:1;transform:translate(-50%,-50%) scale(1)}
  .apx-hero-slide:hover .apx-hero-slide__cta,.apx-hero-slide:focus-visible .apx-hero-slide__cta{border-color:rgba(68,199,244,.72);background:rgba(16,57,105,.94);transform:translateY(-1px)}
}

/* XemPhim v1.9.35 — Compact Dual Artwork Slider: restore v1.9.33 desktop density while retaining Cover + Poster. */
@media (min-width:768px){
  .apx-hero-slide{flex-basis:calc((100% - 10px)/2)!important;width:calc((100% - 10px)/2)!important}
}
@media (min-width:1024px){
  .apx-hero-slide{flex-basis:calc((100% - 20px)/3)!important;width:calc((100% - 20px)/3)!important}
  .apx-hero-slide__poster-frame{
    left:10px;
    bottom:10px;
    width:clamp(68px,23%,96px);
    max-height:72%;
    border-radius:9px;
  }
  .apx-hero-slide__media.has-poster .apx-hero-slide__content{left:clamp(92px,28%,118px)}
  .apx-hero-slide__content{right:10px;bottom:10px;gap:4px 6px}
  .apx-hero-slide__title{font-size:clamp(14px,1.25vw,19px);line-height:1.12;letter-spacing:-.022em}
  .apx-hero-slide__original{font-size:8.5px;line-height:1.2}
  .apx-hero-slide__badges{gap:4px}
  .apx-hero-slide__badge{min-height:20px;padding:0 6px;border-radius:6px;font-size:7.5px}
  .apx-hero-slide__meta{font-size:7.8px}
  .apx-hero-slide__meta span+span::before{width:2.5px;height:2.5px;margin:0 4px}
  .apx-hero-slide__cta{min-height:28px;gap:4px;padding:0 8px;border-radius:7px;font-size:8.5px}
  .apx-hero-slide__play{width:42px;height:42px}
  .apx-hero-slide__play svg{width:20px;height:20px}
  .apx-hero-slider__nav{right:9px;top:9px;gap:5px}
  .apx-hero-slider__nav-button{width:28px;height:28px;border-radius:7px;font-size:20px}
  .apx-hero-slider__dots{bottom:6px;gap:4px}
  .apx-hero-slider__dots .apx-slider-dot{width:8px;height:3px}
  .apx-hero-slider__dots .apx-slider-dot.is-active{width:20px}
}
@media (max-width:767px){
  .home-sections-layout{padding:20px var(--section-gutter-mobile) 28px}
  .home-sections-layout .apx-movie-section{margin-bottom:var(--section-space-mobile)!important}
  .home-sections-layout .apx-movie-section .section-heading{margin-bottom:14px!important}
  .home-sections-layout .apx-movie-card__body{min-height:54px;padding:7px 2px!important}
  .home-sections-layout .apx-movie-card__body h3{min-height:2.72em;font-size:14px!important}
  .home-sections-layout .apx-movie-card__body p{font-size:10px!important}
  .apx-slideposter-widget{margin-bottom:var(--section-space-mobile)!important}
  .apx-slideposter-heading{
    margin-left:var(--section-gutter-mobile)!important;
    margin-right:var(--section-gutter-mobile)!important;
    margin-bottom:14px!important;
    padding-bottom:12px!important;
  }
  .apx-poster-meta-bar,.apx-catalog-card__status{height:20px!important;min-height:20px!important}
  .apx-poster-meta-bar>span,.apx-catalog-card__status span{
    height:100%!important;
    min-height:0!important;
    padding-inline:5px!important;
    font-size:7.5px!important;
  }
  .apx-hero-slider__track{gap:0}
  .apx-hero-slide{flex-basis:100%!important;width:100%!important}
  .apx-hero-slide__media{aspect-ratio:16/9;border-left:0;border-right:0;border-radius:0}
  .apx-hero-slide__poster-frame{left:10px;bottom:11px;width:clamp(74px,26%,100px);border-radius:8px}
  .apx-hero-slide__media.has-poster .apx-hero-slide__content{left:calc(clamp(74px,26%,100px) + 20px)}
  .apx-hero-slide__content{right:11px;bottom:11px;gap:4px 6px}
  .apx-hero-slide__title{font-size:clamp(15px,4.6vw,19px);line-height:1.14}
  .apx-hero-slide__original{font-size:9px}
  .apx-hero-slide__badge{min-height:20px;padding-inline:6px;font-size:7.5px}
  .apx-hero-slide__meta{font-size:7.8px}
  .apx-hero-slide__cta{display:none}
  .apx-hero-slide__play{display:none}
  .apx-hero-slider__nav{display:none}
  .apx-hero-slider__dots{bottom:6px}
}

/* ================================================================
   XemPhim v1.9.18 — Homepage Discovery / Tìm Phim
   ================================================================ */
.apx-home-discovery{
  position:relative;
  margin:18px 16px 28px;
  padding:18px;
  overflow:hidden;
  border:1px solid rgba(92,139,255,.22);
  border-radius:20px;
  background:
    radial-gradient(circle at 0 0,rgba(68,199,244,.13),transparent 34%),
    radial-gradient(circle at 100% 100%,rgba(78,222,142,.08),transparent 34%),
    linear-gradient(145deg,#171d27,#11161e 70%);
  box-shadow:0 18px 42px -30px rgba(0,0,0,.9),inset 0 1px rgba(255,255,255,.04);
}
.apx-home-discovery::before{content:"";position:absolute;inset:0 auto auto 0;width:160px;height:2px;background:linear-gradient(90deg,#44c7f4,rgba(68,199,244,0));pointer-events:none}
.apx-home-discovery__head{position:relative;z-index:1;display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.075)}
.apx-home-discovery__eyebrow{display:block;margin-bottom:4px;color:#65d4f5;font-size:9px;font-weight:900;letter-spacing:.18em}
.apx-home-discovery__head h2{margin:0;color:#f6f8fb;font-family:Quicksand,system-ui,sans-serif;font-size:clamp(20px,2.4vw,28px);font-weight:800;line-height:1.1}
.apx-home-discovery__head p{max-width:480px;margin:0;color:#8f9aa8;font-size:11px;line-height:1.55;text-align:right}
.apx-home-discovery .home-filter-form{position:relative;z-index:1;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(138px,.7fr)!important;gap:10px!important;align-items:end!important}
.apx-home-discovery .filter-item label{display:block!important;margin:0 0 6px!important;color:#a7b2c0!important;font-size:10px!important;font-weight:800!important;letter-spacing:.02em}
.apx-home-discovery .filter-item select{width:100%!important;height:44px!important;padding:0 34px 0 11px!important;border:1px solid rgba(255,255,255,.11)!important;border-radius:11px!important;background:#0d131b!important;color:#eef2f7!important;font-size:12px!important;outline:none!important;box-shadow:inset 0 1px rgba(255,255,255,.02)!important}
.apx-home-discovery .filter-item select:focus{border-color:rgba(68,199,244,.6)!important;box-shadow:0 0 0 3px rgba(68,199,244,.09)!important}
.apx-home-discovery .filter-submit button{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:100%!important;height:44px!important;border:1px solid rgba(68,199,244,.48)!important;border-radius:11px!important;background:linear-gradient(135deg,#18b8df,#1768ea)!important;color:#fff!important;font-size:12px!important;font-weight:900!important;box-shadow:0 12px 26px -18px rgba(31,141,255,.95)!important;cursor:pointer!important;transition:transform .16s ease,filter .16s ease!important}
.apx-home-discovery .filter-submit button:hover,.apx-home-discovery .filter-submit button:focus-visible{filter:brightness(1.07)!important;transform:translateY(-1px)!important;outline:none!important}
.apx-home-discovery__alpha{position:relative;z-index:1;margin-top:17px;padding-top:15px;border-top:1px solid rgba(255,255,255,.075)}
.apx-home-discovery__alpha-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:10px}
.apx-home-discovery__alpha-head strong{color:#e9eef5;font-size:12px;font-weight:850}
.apx-home-discovery__alpha-head span{color:#788596;font-size:10px}
.apx-home-discovery__alpha-nav{grid-template-columns:repeat(14,minmax(0,1fr))!important;gap:6px!important}
.apx-home-discovery__alpha-nav .apx-alpha-key{min-width:0!important;min-height:34px!important;border-color:rgba(255,255,255,.085)!important;background:#1d2531!important;color:#cbd4df!important}
.apx-home-discovery__alpha-nav .apx-alpha-key:hover,.apx-home-discovery__alpha-nav .apx-alpha-key:focus-visible{border-color:rgba(68,199,244,.6)!important;background:#44c7f4!important;color:#071018!important}
@media(max-width:980px){
  .apx-home-discovery .home-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .apx-home-discovery .filter-submit{grid-column:1/-1!important}
  .apx-home-discovery .filter-submit button{max-width:none!important}
  .apx-home-discovery__alpha-nav{grid-template-columns:repeat(9,minmax(0,1fr))!important}
}
@media(max-width:640px){
  .apx-home-discovery{margin:14px 10px 22px;padding:14px;border-radius:16px}
  .apx-home-discovery__head{display:block;margin-bottom:13px;padding-bottom:12px}
  .apx-home-discovery__head p{margin-top:6px;text-align:left}
  .apx-home-discovery .home-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .apx-home-discovery .filter-item select,.apx-home-discovery .filter-submit button{height:44px!important}
  .apx-home-discovery__alpha-head{display:block}.apx-home-discovery__alpha-head span{display:block;margin-top:3px}
  .apx-home-discovery__alpha-nav{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:5px!important}
}
@media(max-width:390px){
  .apx-home-discovery .home-filter-form{grid-template-columns:1fr!important}
  .apx-home-discovery .filter-submit{grid-column:auto!important}
}

/* XemPhim v1.9.19 — Homepage Discovery interaction + primary CTA. */
.apx-home-discovery__head{padding-right:52px}
.apx-home-discovery__toggle{position:absolute;top:0;right:0;display:grid;width:40px;height:40px;place-items:center;padding:0;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:linear-gradient(145deg,#19212d,#10151d);color:#b8c5d3;box-shadow:inset 0 1px rgba(255,255,255,.04);cursor:pointer;transition:transform .18s ease,border-color .18s ease,color .18s ease,background .18s ease}
.apx-home-discovery__toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .22s ease}
.apx-home-discovery__toggle:hover,.apx-home-discovery__toggle:focus-visible{border-color:rgba(68,199,244,.55);background:#172432;color:#72dcfa;outline:none}
.apx-home-discovery.is-collapsed .apx-home-discovery__toggle svg{transform:rotate(180deg)}
.apx-home-discovery__content{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .24s ease,opacity .2s ease}
.apx-home-discovery__content-inner{min-height:0;overflow:hidden}
.apx-home-discovery.is-collapsed .apx-home-discovery__content{grid-template-rows:0fr;opacity:0;pointer-events:none}
.apx-home-discovery.is-collapsed .apx-home-discovery__head{margin-bottom:0;padding-bottom:0;border-bottom-color:transparent}
.apx-home-discovery .apx-home-discovery__filter-button{position:relative;isolation:isolate;min-height:46px!important;border-color:rgba(76,224,155,.58)!important;background:linear-gradient(135deg,#17b96a 0%,#16a8ba 54%,#1681dd 100%)!important;box-shadow:0 13px 28px -17px rgba(31,211,127,.75),inset 0 1px rgba(255,255,255,.2)!important;font-size:12.5px!important;letter-spacing:.01em!important;overflow:hidden}
.apx-home-discovery .apx-home-discovery__filter-button::before{content:"";position:absolute;z-index:-1;inset:1px 1px auto;height:45%;border-radius:10px 10px 45% 45%;background:linear-gradient(180deg,rgba(255,255,255,.18),transparent);pointer-events:none}
.apx-home-discovery__filter-icon{display:grid;width:24px;height:24px;place-items:center;border-radius:8px;background:rgba(4,31,25,.2)}
.apx-home-discovery__filter-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.apx-home-discovery__filter-arrow{margin-left:auto;font-size:15px;line-height:1;transition:transform .16s ease}
.apx-home-discovery .apx-home-discovery__filter-button:hover .apx-home-discovery__filter-arrow,.apx-home-discovery .apx-home-discovery__filter-button:focus-visible .apx-home-discovery__filter-arrow{transform:translateX(2px)}
@media (max-width:767px){.apx-home-discovery__head{padding-right:48px}.apx-home-discovery__toggle{width:38px;height:38px;border-radius:11px}.apx-home-discovery .apx-home-discovery__filter-button{min-height:46px!important}}
@media (prefers-reduced-motion:reduce){.apx-home-discovery__toggle,.apx-home-discovery__toggle svg,.apx-home-discovery__content,.apx-home-discovery__filter-arrow{transition:none!important}}

/* v1.9.19 small-screen hardening */
@media (max-width:1023px){
  .apx-catalog-grid,.apiphim-search-grid,.apx-ranking__grid,.filter-grid{min-width:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
  .apx-catalog-card,.apx-movie-card,.apiphim-search-card,.apx-rank-card,.movie-card-item{min-width:0!important;max-width:100%!important}
  .apx-catalog-card__poster img,.apx-movie-card__poster img,.apx-rank-card__poster img{width:100%!important;height:100%!important;object-fit:cover!important}
  .apx-home-discovery{max-width:calc(100% - 20px)!important;box-sizing:border-box!important}
}
@media (max-width:767px){
  .apx-catalog-grid,.apiphim-search-grid,.apx-ranking__grid,.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .apx-catalog-card__body,.apx-movie-card__body,.apx-rank-card__body{min-width:0!important;padding-left:8px!important;padding-right:8px!important}
  .apx-catalog-card h2,.apx-catalog-card h3,.apx-movie-card h2,.apx-movie-card h3,.apx-rank-card h2,.apx-rank-card h3{display:-webkit-box!important;overflow:hidden!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2;white-space:normal!important;overflow-wrap:anywhere!important}
  .apx-catalog-card__meta,.apx-movie-card__meta,.apx-rank-card__meta{min-width:0!important;flex-wrap:wrap!important;gap:4px!important}
  .apx-catalog-card__badges{max-width:calc(100% - 12px)!important;gap:4px!important}
  .apx-catalog-card__badge{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .apx-home-discovery{margin:12px 8px 20px!important;max-width:calc(100% - 16px)!important;padding:13px!important}
  .apx-home-discovery__toggle{touch-action:manipulation}
  .apx-home-discovery .filter-item select,.apx-home-discovery .apx-home-discovery__filter-button{min-height:46px!important;font-size:13px!important}
  .apx-home-discovery__alpha-nav .apx-alpha-key{min-height:40px!important;display:grid!important;place-items:center!important}
}
@media (max-width:390px){
  .apx-catalog-grid,.apiphim-search-grid,.apx-ranking__grid,.filter-grid{gap:7px!important}
  .apx-home-discovery{margin-inline:6px!important;max-width:calc(100% - 12px)!important;padding:12px!important}
  .apx-home-discovery__alpha-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}

/* XemPhim v1.9.41 — Homepage slider and section polish */
.apx-slideposter-widget{
  box-sizing:border-box!important;
  width:auto!important;
  margin:0 var(--section-gutter-desktop) var(--section-space-desktop)!important;
  padding:16px!important;
  border:1px solid rgba(148,163,184,.12)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(18,24,34,.88),rgba(10,15,23,.82))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 18px 44px -40px #000!important;
}
.apx-slideposter-heading{
  margin-left:0!important;
  margin-right:0!important;
}
.apx-hero-slider__viewport{border-radius:15px!important}
.apx-hero-slide__media{border-radius:15px!important}
.apx-hero-slider__nav{
  top:10px!important;
  right:10px!important;
  align-items:center!important;
  gap:5px!important;
}
.apx-hero-slider__counter{
  display:inline-flex;
  min-width:54px;
  height:28px;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0 8px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:8px;
  background:rgba(4,8,15,.72);
  color:#98a7b9;
  font-size:9px;
  font-weight:800;
  line-height:1;
  letter-spacing:.04em;
  box-shadow:inset 0 1px rgba(255,255,255,.04);
  backdrop-filter:blur(8px);
}
.apx-hero-slider__counter strong{color:#f5c84b;font-size:10px;font-weight:900}
.apx-hero-slider__dots{display:none!important}

.home-sections-layout .apx-movie-section{
  position:relative;
  overflow:hidden;
  padding:16px!important;
  border:1px solid rgba(148,163,184,.10)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(20,26,36,.68),rgba(12,17,24,.60))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.02),0 16px 38px -42px #000!important;
}
.home-sections-layout .apx-movie-section::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:92px;
  height:1px;
  background:linear-gradient(90deg,rgba(245,200,75,.55),transparent);
  pointer-events:none;
}
.home-sections-layout .apx-movie-section .section-heading{position:relative;z-index:2}
.home-sections-layout .apx-movie-section [data-apx-slider-track]{position:relative;z-index:1}

@media (max-width:767px){
  .apx-slideposter-widget{
    margin:0 var(--section-gutter-mobile) var(--section-space-mobile)!important;
    padding:12px!important;
    border-radius:16px!important;
  }
  .apx-slideposter-heading{margin-bottom:12px!important;padding-bottom:11px!important}
  .apx-hero-slider__viewport,.apx-hero-slide__media{border-radius:13px!important}
  .apx-hero-slide__media{
    aspect-ratio:16/9!important;
    border:1px solid rgba(148,163,184,.18)!important;
  }
  .apx-hero-slide__poster-frame{
    left:10px!important;
    bottom:10px!important;
    width:clamp(72px,24%,94px)!important;
    max-height:74%!important;
  }
  .apx-hero-slide__media.has-poster .apx-hero-slide__content{
    left:calc(clamp(72px,24%,94px) + 18px)!important;
  }
  .apx-hero-slide__content{
    right:9px!important;
    bottom:9px!important;
    gap:4px 6px!important;
    padding:8px 9px!important;
    border:1px solid rgba(255,255,255,.09)!important;
    border-radius:10px!important;
    background:linear-gradient(145deg,rgba(8,13,21,.72),rgba(8,13,21,.46))!important;
    box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
    backdrop-filter:blur(7px);
  }
  .apx-hero-slide__title{font-size:clamp(14px,4.15vw,18px)!important;line-height:1.15!important}
  .apx-hero-slide__original{font-size:8.5px!important}
  .apx-hero-slide__badge{min-height:19px!important;padding-inline:6px!important;font-size:7px!important}
  .apx-hero-slide__meta{max-width:100%;overflow:hidden;font-size:7.5px!important;white-space:nowrap}
  .apx-hero-slider__nav{display:flex!important;top:8px!important;right:8px!important}
  .apx-hero-slider__nav-button{display:grid!important;width:27px!important;height:27px!important;border-radius:8px!important;font-size:18px!important}
  .apx-hero-slider__counter{height:27px;min-width:50px;padding-inline:7px;font-size:8px}
  .apx-hero-slider__counter strong{font-size:9px}
  .home-sections-layout .apx-movie-section{
    padding:12px!important;
    border-radius:16px!important;
  }
  .home-sections-layout .apx-movie-section .section-heading{margin-bottom:12px!important}
}
@media (max-width:360px){
  .apx-slideposter-widget{margin-left:12px!important;margin-right:12px!important;padding:10px!important}
  .home-sections-layout{padding-left:12px!important;padding-right:12px!important}
  .home-sections-layout .apx-movie-section{padding:10px!important;border-radius:14px!important}
  .apx-hero-slider__nav-button{width:25px!important;height:25px!important}
  .apx-hero-slider__counter{height:25px;min-width:46px;padding-inline:6px}
}

/* XemPhim v1.9.48 — unified SVG play overlays */
.apx-catalog-card__play.apx-unified-play-icon,
.apx-hero-slide__play.apx-unified-play-icon{
  width:52px!important;
  height:52px!important;
  border-color:rgba(255,255,255,.28)!important;
  background:rgba(5,8,13,.74)!important;
  color:#fff!important;
  box-shadow:0 14px 34px -20px rgba(0,0,0,.96),inset 0 1px rgba(255,255,255,.08)!important;
}
.apx-catalog-card__play.apx-unified-play-icon .apx-unified-play-icon__glyph,
.apx-hero-slide__play.apx-unified-play-icon .apx-unified-play-icon__glyph{
  width:22px!important;
  height:22px!important;
  margin:0!important;
}
@media (hover:hover) and (pointer:fine){
  .apx-catalog-card:hover .apx-catalog-card__play.apx-unified-play-icon,
  .apx-catalog-card:focus-visible .apx-catalog-card__play.apx-unified-play-icon,
  .apx-hero-slide:hover .apx-hero-slide__play.apx-unified-play-icon,
  .apx-hero-slide:focus-visible .apx-hero-slide__play.apx-unified-play-icon{
    opacity:1!important;
    transform:translate(-50%,-50%) scale(1)!important;
  }
}
@media (max-width:767px){
  .apx-catalog-card__play.apx-unified-play-icon,
  .apx-hero-slide__play.apx-unified-play-icon{width:46px!important;height:46px!important}
  .apx-catalog-card__play.apx-unified-play-icon .apx-unified-play-icon__glyph,
  .apx-hero-slide__play.apx-unified-play-icon .apx-unified-play-icon__glyph{width:20px!important;height:20px!important}
}

.movie-card-item .apx-movie-card__poster::after,
.topmovie-thumb::after{
  background-color:rgba(6,10,16,.72)!important;
  background-image:url('../images/icons/play-white.svg')!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:20px 20px!important;
  color:transparent!important;
  pointer-events:none!important;
}
@media (max-width:767px){
  .movie-card-item .apx-movie-card__poster::after,
  .topmovie-thumb::after{background-size:18px 18px!important}
}
@media (max-width:767px){
  .apx-hero-slide__play.apx-unified-play-icon{display:grid!important;opacity:.18!important}
}

/* XemPhim v1.9.50 — Updated Movies Table */
.apx-movie-table{width:min(100% - 32px,1460px);margin:28px auto 40px;color:#e8edf5;font-family:Quicksand,system-ui,sans-serif}.apx-movie-table__head{margin-bottom:18px}.apx-movie-table__kicker{display:block;color:#f5c84b;font-size:12px;font-weight:800;letter-spacing:.14em}.apx-movie-table__head h1{margin:6px 0 3px;font-size:clamp(28px,3vw,42px);line-height:1.05;color:#fff}.apx-movie-table__head p{margin:0;color:#8f9bad}.apx-movie-table__frame{overflow:hidden;border:1px solid rgba(148,163,184,.2);border-radius:16px;background:#0d131d;box-shadow:0 18px 54px -42px #000}.apx-movie-table__thead,.apx-movie-table__row{display:grid;grid-template-columns:minmax(300px,2.4fr) 70px minmax(110px,.9fr) 100px 100px 100px minmax(150px,1.1fr) 150px;align-items:center}.apx-movie-table__thead{min-height:44px;padding:0 14px;border-bottom:1px solid rgba(56,189,248,.35);background:#101824;color:#9aa7b8;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.apx-movie-table__row{min-height:88px;padding:8px 14px;border-bottom:1px solid rgba(148,163,184,.16);transition:background .16s ease,border-color .16s ease}.apx-movie-table__row:last-child{border-bottom:0}.apx-movie-table__row:hover{background:rgba(30,41,59,.38)}.apx-movie-table__movie{display:flex;align-items:center;gap:12px;min-width:0}.apx-movie-table__poster{display:block;width:48px;min-width:48px;height:72px;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:7px;background:#161d28}.apx-movie-table__poster img{display:block;width:100%;height:100%;object-fit:cover}.apx-movie-table__title{display:block;max-width:100%;overflow:hidden;color:#f8fafc;font-size:14px;font-weight:800;line-height:1.35;text-overflow:ellipsis}.apx-movie-table__title:hover{color:#f5c84b}.apx-movie-table__original{display:block;margin-top:3px;max-width:100%;overflow:hidden;color:#7f8b9c;font-size:11px;line-height:1.35;text-overflow:ellipsis}.apx-movie-table__year,.apx-movie-table__type{color:#b7c1ce;font-size:12px;font-weight:650}.apx-movie-table__status .apx-episode-status{display:inline-flex;padding:4px 8px;border:1px solid rgba(56,189,248,.28);border-radius:999px;font-size:11px;font-weight:750}.apx-movie-table__rating span{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}.apx-movie-table__rating--tmdb span{border:1px solid rgba(56,189,248,.42);background:rgba(14,116,144,.15);color:#67e8f9}.apx-movie-table__rating--imdb span{border:1px solid rgba(245,200,75,.42);background:rgba(161,98,7,.13);color:#f5c84b}.apx-movie-table__countries{display:flex;flex-wrap:wrap;gap:5px 7px}.apx-country{display:inline-flex;align-items:center;gap:5px;min-width:0;color:#aeb8c5;font-size:10px;font-weight:650}.apx-country img{display:block;width:24px;height:16px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.12)}.apx-country span{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.apx-movie-table__updated{color:#fb7185;font-size:10px;font-weight:650;white-space:nowrap}.apx-movie-table .is-muted{color:#5f6b7a}.apx-movie-table__empty{padding:34px;text-align:center;color:#9aa7b8}
@media(max-width:1100px){.apx-movie-table__thead,.apx-movie-table__row{grid-template-columns:minmax(260px,2fr) 64px minmax(105px,.8fr) 110px 105px 145px}.apx-movie-table__thead span:nth-child(5),.apx-movie-table__thead span:nth-child(6),.apx-movie-table__row>.apx-movie-table__rating--imdb,.apx-movie-table__row>.apx-movie-table__type{display:none}}
@media(max-width:720px){.apx-movie-table{width:calc(100% - 24px);margin-top:20px}.apx-movie-table__frame{border-radius:13px}.apx-movie-table__thead{display:none}.apx-movie-table__row{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:12px;min-height:0}.apx-movie-table__movie{grid-column:1/-1;align-items:flex-start}.apx-movie-table__poster{width:54px;min-width:54px;height:81px}.apx-movie-table__year,.apx-movie-table__status,.apx-movie-table__rating,.apx-movie-table__type,.apx-movie-table__countries,.apx-movie-table__updated{display:flex!important;align-items:center;gap:6px;min-width:0}.apx-movie-table__row>[data-label]::before{content:attr(data-label);color:#667386;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.apx-movie-table__countries{grid-column:1/-1}.apx-movie-table__updated{grid-column:1/-1}.apx-movie-table__title{font-size:14px}.apx-movie-table__original{white-space:normal}.apx-country span{max-width:120px}}

/* v1.9.50 mobile movie list compact row + compact pagination fix */
.apx-movie-table__mobile-meta{display:none}
.apx-movie-table__page-summary{margin:18px 0 -8px;color:#7f8b9c;font-size:11px;font-weight:700;text-align:center;letter-spacing:.01em}
.apx-movie-table .apx-pagination--movie-list{margin-top:14px}
.apx-movie-table .apx-pagination--movie-list .apx-pagination__controls{gap:5px}
@media(max-width:720px){
  .apx-movie-table{width:calc(100% - 20px);margin-top:18px}
  .apx-movie-table__frame{border-radius:12px}
  .apx-movie-table__row{display:block;min-height:0;padding:10px 11px;border-bottom:1px solid rgba(148,163,184,.14)}
  .apx-movie-table__row:hover{background:transparent}
  .apx-movie-table__row>[data-label]::before{display:none!important;content:none!important}
  .apx-movie-table__row>.apx-movie-table__year,
  .apx-movie-table__row>.apx-movie-table__status,
  .apx-movie-table__row>.apx-movie-table__rating,
  .apx-movie-table__row>.apx-movie-table__type,
  .apx-movie-table__row>.apx-movie-table__countries,
  .apx-movie-table__row>.apx-movie-table__updated{display:none!important}
  .apx-movie-table__movie{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:start;gap:10px;min-width:0}
  .apx-movie-table__poster{width:58px;min-width:58px;height:84px;border-radius:8px}
  .apx-movie-table__copy{min-width:0;padding-top:1px}
  .apx-movie-table__title{display:-webkit-box;overflow:hidden;font-size:15px;line-height:1.28;font-weight:800;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;text-overflow:ellipsis}
  .apx-movie-table__original{margin-top:2px;overflow:hidden;color:#788596;font-size:11px;line-height:1.3;white-space:nowrap;text-overflow:ellipsis}
  .apx-movie-table__mobile-meta{display:grid;gap:5px;margin-top:7px;min-width:0}
  .apx-movie-table__mobile-facts{display:flex;align-items:center;gap:5px;min-width:0;color:#aeb8c5;font-size:10px;font-weight:700;line-height:1.2}
  .apx-movie-table__mobile-facts>span{display:inline-flex;align-items:center;min-width:0;white-space:nowrap}
  .apx-movie-table__mobile-facts>span+span::before{content:'·';margin-right:5px;color:#4d5968}
  .apx-movie-table__mobile-status{max-width:42%;overflow:hidden;color:#d9e4ef;text-overflow:ellipsis}
  .apx-movie-table__mobile-country{display:flex;align-items:center;gap:5px;min-width:0;color:#98a5b4;font-size:10px;font-weight:650;line-height:1.2}
  .apx-movie-table__mobile-country img{display:block;width:22px;height:15px;flex:0 0 auto;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.10)}
  .apx-movie-table__mobile-country>span:not(.apx-movie-table__mobile-more){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .apx-movie-table__mobile-more{color:#657284;white-space:nowrap}
  .apx-movie-table__mobile-ratings{display:flex;align-items:center;gap:6px;min-width:0;font-size:9px;font-weight:800;line-height:1.2}
  .apx-movie-table__mobile-ratings span{display:inline-flex;align-items:center;height:22px;padding:0 7px;border-radius:999px;white-space:nowrap}
  .apx-movie-table__mobile-ratings .is-tmdb{border:1px solid rgba(56,189,248,.32);background:rgba(14,116,144,.12);color:#67e8f9}
  .apx-movie-table__mobile-ratings .is-imdb{border:1px solid rgba(245,200,75,.32);background:rgba(161,98,7,.10);color:#f5c84b}
  .apx-movie-table__mobile-ratings time{margin-left:auto;overflow:hidden;color:#778496;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
  .apx-movie-table__page-summary{margin:16px 0 -6px;font-size:10px;color:#748091}
  .apx-movie-table .apx-pagination--movie-list{margin:12px 0 4px;gap:0}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__summary,
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__position{display:none!important}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__controls{gap:4px!important;justify-content:center!important;flex-wrap:nowrap!important}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__window--desktop{display:none!important}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__window--mobile{display:flex!important;gap:4px!important}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__page,
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__nav{min-width:34px!important;height:34px!important;padding:0 7px!important;border-radius:8px!important;font-size:10px!important}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__ellipsis{width:12px!important;height:34px!important;font-size:11px!important}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__nav-text{display:none!important}
}
@media(max-width:380px){
  .apx-movie-table__row{padding:9px 10px}
  .apx-movie-table__movie{grid-template-columns:54px minmax(0,1fr);gap:9px}
  .apx-movie-table__poster{width:54px;min-width:54px;height:81px}
  .apx-movie-table__title{font-size:14px}
  .apx-movie-table__mobile-ratings{gap:4px;font-size:8.5px}
  .apx-movie-table__mobile-ratings span{height:21px;padding-inline:6px}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__controls,
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__window--mobile{gap:2px!important}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__page,
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__nav{min-width:31px!important;height:31px!important;padding-inline:5px!important}
  .apx-movie-table .apx-pagination--movie-list .apx-pagination__ellipsis{width:9px!important;height:31px!important}
}
