*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
body{margin:0;font-family:"Cairo","Segoe UI",Tahoma,"Noto Sans Arabic",system-ui,sans-serif;background:#fff6dc;color:#2b2350;font-size:22px}
header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:14px 18px;background:#ffd23f;box-shadow:0 3px 0 #f2b705}
h1{margin:0;font-size:1.5rem}
#back{border:0;background:#fff;border-radius:50%;width:56px;height:56px;font-size:28px;cursor:pointer;box-shadow:0 3px 0 #d9a400}
.grid{display:grid;gap:18px;padding:18px;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.card{display:block;text-decoration:none;color:#fff;border-radius:28px;overflow:hidden;background:var(--c);box-shadow:0 6px 0 rgba(0,0,0,.18);border:0;padding:0;text-align:center;font:inherit;cursor:pointer}
.card:active{transform:translateY(3px);box-shadow:0 3px 0 rgba(0,0,0,.18)}
.card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:#0002}
.card .t{padding:12px 12px 4px;font-weight:800;font-size:1.3rem}
.card .n{padding:0 12px 14px;font-size:1rem;opacity:.95}
.ep .num{display:inline-block;background:#fff;color:var(--c);border-radius:999px;min-width:44px;padding:2px 12px;margin-top:10px;font-weight:800}
.empty{padding:40px;text-align:center}
@media (prefers-reduced-motion:no-preference){.card{transition:transform .1s}}
.ph{width:100%;aspect-ratio:16/9;background:#0002;display:flex;align-items:center;justify-content:center}
.locked{background:#9b9bb0;box-shadow:0 6px 0 rgba(0,0,0,.18);cursor:default;filter:saturate(.3)}
.locked .ph{background:#6f6f86}
.locked .num{color:#6f6f86}
.lock{width:30%;max-width:110px}
.locked .n{font-size:1.05rem;font-weight:700;line-height:1.5}
.cv{position:relative}
.cv img{display:block}
.badge{position:absolute;inset:0;background:#4a4a60aa;display:flex;align-items:center;justify-content:center}
.badge .lock{width:26%;max-width:90px;filter:drop-shadow(0 3px 0 #0004)}
.sclosed{filter:saturate(.45)}
.sclosed .n{font-weight:700;line-height:1.5}

.badge{inset:auto;top:10px;right:10px;left:auto;width:64px;height:64px;border-radius:50%;background:#5b5b75;border:4px solid #fff;box-shadow:0 3px 0 #0003}
.badge .lock{width:56%;max-width:none;filter:none}
.ribbon{position:absolute;top:10px;left:10px;background:#fff;color:#5b5b75;font-weight:800;font-size:1rem;padding:4px 14px;border-radius:999px;box-shadow:0 3px 0 #0003}
.sclosed{filter:none;outline:6px dashed #fff;outline-offset:-10px}
.sclosed{box-shadow:0 0 0 5px #5b5b75,0 6px 0 5px rgba(0,0,0,.18)}
.sclosed .cv img{filter:brightness(.62) saturate(.6)}
.sclosed .t{color:#fff;text-shadow:0 2px 0 #0004}
