:root{
  --bg:#0b1020;
  --panel:#121a32;
  --panel-2:#0e1530;
  --text:#eef2ff;
  --muted:#a9b1d6;
  --accent:#6aa1ff;
  --accent-2:#8ef6d1;
  --danger:#ff6b6b;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, #1d2a55 0%, transparent 60%),
              radial-gradient(1200px 800px at 110% 10%, #192a3a 0%, transparent 60%),
              var(--bg);
  color:var(--text);
}

.site-header{
  position:sticky; top:0; z-index:10;
  background: linear-gradient(180deg, rgba(11,16,32,.85), rgba(11,16,32,.6));
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.header-inner{
  max-width:1200px; margin:0 auto; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand{display:flex; align-items:center; gap:14px}
.logo{font-size:28px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4));}
.titles h1{margin:0; font-weight:700; letter-spacing:.3px}
.titles .subtitle{margin:2px 0 0; color:var(--muted); font-size:14px}

.stats{display:flex; gap:18px; flex-wrap:wrap}
.stat{display:flex; flex-direction:column; align-items:flex-end}
.stat span{font-size:20px; font-weight:700}
.stat label{font-size:12px; color:var(--muted)}

.container{max-width:1200px; margin:24px auto; padding:0 20px}

.controls{background:linear-gradient(180deg, rgba(18,26,50,.9), rgba(14,21,48,.8));
  border:1px solid rgba(255,255,255,.06); border-radius:var(--radius); padding:14px; box-shadow:var(--shadow);
}
.search-box{display:flex; gap:8px; align-items:center; background:#0c1430; border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:6px 8px}
.search-box input{flex:1; background:transparent; border:0; outline:none; color:var(--text); font-size:14px; padding:8px}
.search-box button{border:0; background:#1a2347; color:#bcd1ff; padding:8px 10px; border-radius:10px; cursor:pointer}
.search-box button:hover{background:#233066}
.control-row{display:flex; flex-wrap:wrap; gap:12px; margin-top:10px}
.control{display:flex; flex-direction:column; gap:6px}
.control label{font-size:12px; color:var(--muted)}
.control select, .control input[type="checkbox"]{
  background:#0c1430; border:1px solid rgba(255,255,255,.08); color:var(--text); border-radius:10px; padding:8px 10px; min-width:180px;
}
.control.toggles label{display:flex; align-items:center; gap:8px}

.grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; margin:18px 0 26px}
.card{position:relative; background:linear-gradient(180deg, rgba(27,36,72,.9), rgba(20,28,60,.9)); border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius); padding:14px; box-shadow:var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card .thumb{height:130px; border-radius:10px; overflow:hidden; background:#0c1430; border:1px solid rgba(255,255,255,.06); margin:6px 0 8px; display:flex; align-items:center; justify-content:center}
.card .thumb img{width:100%; height:100%; object-fit:cover; display:block; filter:saturate(1.05)}
.card:hover{transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.45); border-color: rgba(255,255,255,.16)}
.card-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.badge{font-size:12px; color:#e8f0ff; background:#1b2855; border:1px solid rgba(255,255,255,.08); padding:4px 8px; border-radius:999px}
.badge.type[data-type="Folder Index"]{background:rgba(110,175,255,.14); border-color:rgba(110,175,255,.35); color:#cfe5ff}
.badge.type[data-type="Single HTML"]{background:rgba(142,246,209,.12); border-color:rgba(142,246,209,.35); color:#d7ffee}
.badge.folder{max-width:55%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.title{margin:6px 0 8px; font-size:18px}
.meta{color:#cfe1ff}
.meta-row{display:flex; align-items:center; gap:12px}
.meta-row.small{color:var(--muted); font-size:12px; margin-top:6px}
.meta-item b{font-weight:700}
.actions{display:flex; gap:10px; margin-top:12px}
.btn{display:inline-block; text-decoration:none; padding:8px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.1); color:#e9f2ff; background:#12204a}
.btn.primary{background:linear-gradient(180deg, #2a4fb8, #1f3a8a); border-color:rgba(108,150,255,.45)}
.btn.primary:hover{filter:brightness(1.05)}
.btn.download{background:#13244f}
.btn.download:hover{background:#182b59}

.site-footer{border-top:1px solid rgba(255,255,255,.06); background:rgba(0,0,0,.2)}
.footer-inner{max-width:1200px; margin:0 auto; padding:14px 20px; display:flex; justify-content:space-between; color:var(--muted); font-size:13px}

@media (max-width:720px){
  .stats{display:none}
}
