:root { --bg:#f6f7fb; --card:#fff; --text:#1f2430; --muted:#6b7280; --primary:#4f46e5; --border:#e5e7eb; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; background:var(--bg); color:var(--text); line-height:1.5; }
a { color:inherit; text-decoration:none; }
.container { max-width:1200px; margin:0 auto; padding:0 16px; }
.muted { color:var(--muted); }

.site-header { background:#fff; border-bottom:1px solid var(--border); position:sticky; top:0; z-index:10; }
.header-row { display:flex; gap:16px; align-items:center; padding-top:12px; padding-bottom:12px; flex-wrap:wrap; }
.logo { font-weight:800; font-size:1.5rem; color:var(--primary); }
.search { flex:1; display:flex; gap:8px; min-width:240px; }
.search input { flex:1; padding:10px 14px; border:1px solid var(--border); border-radius:8px; font-size:1rem; }
.cats { display:flex; gap:8px; overflow-x:auto; padding-bottom:10px; }
.cats a { white-space:nowrap; padding:6px 14px; border:1px solid var(--border); border-radius:999px; font-size:.9rem; background:#fff; }
.cats a:hover, .cats a.active { background:var(--primary); color:#fff; border-color:var(--primary); }

.btn { display:inline-block; padding:10px 16px; background:var(--primary); color:#fff; border:0; border-radius:8px; font-size:.95rem; font-weight:600; cursor:pointer; text-align:center; }
.btn:hover { opacity:.9; }
.btn-block { display:block; width:100%; }
.btn-big { padding:14px 28px; font-size:1.1rem; }
.btn-disabled { background:#9ca3af; pointer-events:none; cursor:not-allowed; }

.checker {
  background-color:#fff;
  background-image: linear-gradient(45deg,#e9e9ee 25%,transparent 25%,transparent 75%,#e9e9ee 75%),
                    linear-gradient(45deg,#e9e9ee 25%,transparent 25%,transparent 75%,#e9e9ee 75%);
  background-size:20px 20px; background-position:0 0,10px 10px;
}

.page-title { font-size:1.4rem; margin:20px 0 0; }
.grid { column-width:220px; column-gap:16px; margin:20px 0; }
.card { break-inside:avoid; margin-bottom:16px; background:var(--card); border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.thumb { display:block; }
.thumb img { display:block; width:100%; height:auto; }
.card-body { padding:12px; }
.card-body h3 { font-size:.95rem; margin:0 0 4px; }
.meta { color:var(--muted); font-size:.8rem; margin:0 0 10px; }
.empty { text-align:center; color:var(--muted); padding:60px 0; }

.pagination { display:flex; justify-content:center; align-items:center; gap:16px; margin:24px 0 40px; }

.detail { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:24px; margin:24px 0; }
.preview { border:1px solid var(--border); border-radius:12px; padding:16px; display:flex; justify-content:center; }
.preview img { display:block; max-width:100%; height:auto; }
.info { background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px; align-self:start; }
.info h1 { margin-top:0; font-size:1.4rem; }
dl { display:grid; grid-template-columns:auto 1fr; gap:6px 16px; margin:0 0 16px; }
dt { color:var(--muted); } dd { margin:0; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:20px; }
.chips a { background:#eef2ff; color:var(--primary); padding:3px 10px; border-radius:999px; font-size:.8rem; }

.wait { max-width:520px; margin:40px auto; text-align:center; background:#fff; border:1px solid var(--border); border-radius:12px; padding:24px; }
.ad-box { margin:20px 0; padding:8px; border:1px dashed var(--border); border-radius:8px; min-height:100px; overflow:hidden; }
.ad-box small { display:block; color:var(--muted); margin-bottom:6px; }
.ad-placeholder { background:#f3f4f6; color:var(--muted); padding:40px 10px; font-size:.85rem; }
#count { font-size:1.3rem; color:var(--primary); }

.footer { text-align:center; color:var(--muted); padding:30px 0; font-size:.85rem; }

@media (max-width:700px) {
  .grid { column-width:150px; column-gap:10px; }
  .card { margin-bottom:10px; }
  .detail { grid-template-columns:1fr; }
}

/* Hero section */
.hero { background:linear-gradient(135deg,#4f46e5 0%,#7c3aed 100%); color:#fff; position:relative; overflow:hidden; }
.hero::before { content:""; position:absolute; inset:0; opacity:.08;
  background-image:linear-gradient(45deg,#fff 25%,transparent 25%,transparent 75%,#fff 75%),linear-gradient(45deg,#fff 25%,transparent 25%,transparent 75%,#fff 75%);
  background-size:30px 30px; background-position:0 0,15px 15px; }
.hero-inner { position:relative; text-align:center; padding-top:56px; padding-bottom:56px; }
.hero h1 { margin:0 0 10px; font-size:2.2rem; line-height:1.2; }
.hero-sub { margin:0 auto 24px; max-width:560px; opacity:.92; font-size:1.05rem; }
.hero-search { display:flex; max-width:680px; margin:0 auto; background:#fff; border-radius:999px; padding:6px; box-shadow:0 10px 30px rgba(0,0,0,.25); }
.hero-search input { flex:1; min-width:0; border:0; outline:0; background:transparent; padding:12px 18px; font-size:1.05rem; color:var(--text); }
.hero-search button { border:0; background:var(--primary); color:#fff; font-weight:700; font-size:1rem; padding:12px 28px; border-radius:999px; cursor:pointer; }
.hero-search button:hover { opacity:.92; }
.hero-cats { margin-top:18px; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; align-items:center; font-size:.9rem; }
.hero-cats span { opacity:.85; }
.hero-cats a { background:rgba(255,255,255,.18); padding:4px 14px; border-radius:999px; }
.hero-cats a:hover { background:rgba(255,255,255,.32); }
@media (max-width:700px) {
  .hero-inner { padding-top:36px; padding-bottom:36px; }
  .hero h1 { font-size:1.55rem; }
  .hero-search button { padding:12px 18px; }
}

/* Breadcrumb, about, related */
.breadcrumb { font-size:.85rem; color:var(--muted); margin:16px 0 0; display:flex; flex-wrap:wrap; gap:6px; }
.breadcrumb a { color:var(--primary); }
.about { background:#fff; border:1px solid var(--border); border-radius:12px; padding:16px 20px; margin:0 0 24px; }
.about h2, .related h2 { font-size:1.15rem; margin:0 0 8px; }
.about p { margin:0; color:#374151; }
.about a { color:var(--primary); }
.related { margin-bottom:30px; }

/* Ad slots (বিজ্ঞাপনের জায়গা) */
.ad-slot { text-align:center; margin:16px auto; max-width:100%; overflow:hidden; }
.ad-slot .ad-label { display:block; color:var(--muted); font-size:.7rem; margin-bottom:4px; }
.ad-slot-preview { margin:16px auto; max-width:480px; padding:14px; border:2px dashed #f59e0b; background:#fffbeb; color:#92400e; font-size:.85rem; text-align:center; border-radius:8px; }
.ad-slot-preview code { font-size:.8rem; }

/* Download page layout: মাঝখানে কার্ড, দুই পাশে 160x600 জায়গা (বড় স্ক্রিনে) */
.wait-layout { display:block; }
.wait-side { text-align:center; }
@media (min-width:1000px) {
  .wait-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,520px) minmax(0,1fr); gap:20px; align-items:start; max-width:1100px; margin:0 auto; }
  .wait-layout .wait { margin:40px 0; width:100%; }
  .wait-side { position:sticky; top:90px; margin-top:40px; }
  .wait-side .ad-slot { margin:0 auto; }
}
/* ফোনে 300x250 / 320x50 যেন কেটে না যায় */
@media (max-width:700px) {
  .wait { padding:16px 8px; }
  .ad-box { padding:4px 0; }
}
