:root{
  --bg:#0b0c10;
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.72);
  --line:rgba(255,255,255,.10);
  --card:rgba(18,23,38,.78);
}

*{box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial}
body{margin:0;background:var(--bg);color:var(--text);overflow-x:hidden}

.bg{
  position:fixed;inset:-40px;z-index:-1;
  background:
    radial-gradient(900px 500px at 10% 10%, rgba(99,102,241,.20), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(56,189,248,.16), transparent 55%),
    radial-gradient(700px 400px at 40% 90%, rgba(34,197,94,.10), transparent 55%);
}

.topbar{
  position:sticky;top:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.72);
  border-bottom:1px solid var(--line);
}

.brand{display:flex;gap:10px;align-items:center}
.logo{
  width:38px;height:38px;border-radius:14px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, rgba(99,102,241,.95), rgba(56,189,248,.85));
  font-weight:900;
}
.name{font-weight:900;letter-spacing:.2px}

.iconBtn{
  width:40px;height:40px;border-radius:14px;
  border:1px solid var(--line);
  background: rgba(18,23,38,.65);
  color:rgba(234,240,255,.9);
  display:grid;place-items:center;
  cursor:pointer;
}
.iconBtn:active{transform:translateY(1px)}

.searchBar{
  position:sticky;top:64px;z-index:19;
  padding:10px 12px;
  background: rgba(11,12,16,.72);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(10px);
}
.searchInner{
  max-width:1160px;margin:0 auto;
  display:flex;gap:10px;align-items:center;
}
.searchInner input{
  flex:1;
  border:1px solid var(--line);
  background: rgba(18,23,38,.65);
  color:var(--text);
  padding:12px 12px;
  border-radius:14px;
  outline:none;
  font-size:14px;
}
.hidden{display:none}

.wrap{max-width:1160px;margin:0 auto;padding:14px 12px 18px}

.muted{color:var(--muted);font-size:12px}

.chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.chip{
  padding:8px 12px;border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  font-size:12px;
}
.chip.active{border-color:rgba(125,211,252,.35);box-shadow:0 0 0 3px rgba(125,211,252,.12) inset}

/* LK21-ish poster grid */
.grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap:12px;
}

/* Card poster 9:16 */
.card{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(18,23,38,.55);
  overflow:hidden;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover{transform:translateY(-2px);border-color:rgba(125,211,252,.28);box-shadow:0 16px 44px rgba(0,0,0,.45)}

.poster{
  width:100%;
  aspect-ratio: 9 / 16;
  background: rgba(255,255,255,.06);
  position:relative;
}
.poster img{width:100%;height:100%;object-fit:cover;display:block}

.posterFallback{
  position:absolute;inset:0;
  display:grid;place-items:center;
  background:
    radial-gradient(500px 320px at 30% 30%, rgba(99,102,241,.22), transparent 55%),
    radial-gradient(500px 320px at 70% 20%, rgba(56,189,248,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}
.posterFallback span{font-weight:950;font-size:28px;opacity:.22;letter-spacing:1px}

/* Overlay (Play + Quality) */
.overlay{
  position:absolute;inset:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:10px;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.65));
  opacity:0;
  transition: opacity .12s ease;
}
.card:hover .overlay{opacity:1}
.card:active .overlay{opacity:1}

.qBadge{
  align-self:flex-start;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(18,23,38,.70);
  font-size:11px;
  letter-spacing:.2px;
}

.playBtn{
  align-self:center;
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(18,23,38,.72);
  color:var(--text);
}
.playBtn svg{width:18px;height:18px}

.body{padding:10px}
.title{
  font-weight:900;
  font-size:13px;
  line-height:1.2;
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.sub{
  margin-top:6px;
  color:var(--muted);
  font-size:11px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

/* Pager */
.pager{
  margin-top:14px;
  display:flex;align-items:center;justify-content:center;gap:12px;
}
.pageInfo{
  color:var(--muted);
  font-size:12px;
  padding:8px 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  border-radius:999px;
}
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.07);
  color:var(--text);
  padding:10px 14px;border-radius:999px;
  cursor:pointer;
}
.btn[disabled]{opacity:.45;cursor:not-allowed}

.empty,.error{margin-top:16px;display:grid;place-items:center}
.emptyBox,.errorBox{
  width:min(520px,100%);
  border:1px solid var(--line);
  border-radius:22px;
  background: rgba(18,23,38,.60);
  padding:16px;text-align:center;
}
.emptyTitle,.errorTitle{font-weight:950;margin-top:6px}
.emptySub,.errorSub{margin-top:6px;color:var(--muted);font-size:13px}

.foot{
  padding:18px 16px 30px;
  border-top:1px solid var(--line);
  background: rgba(11,12,16,.55);
  text-align:center;
}

/* rapet di HP */
@media (max-width: 420px){
  .grid{grid-template-columns: repeat(3, minmax(0, 1fr)); gap:10px;}
  .iconBtn{width:38px;height:38px;border-radius:14px}
}
