/* Theme */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
:root{
  --bg: #0b0f17;
  --panel: #111827;
  --panel-2: #0f172a;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #22c55e;
  --border: #1f2937;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --panel-alt:#0c1220;
}
body{
  background: radial-gradient(1200px 600px at 20% -10%, #0d1422 0%, #060a11 60%), var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}
.container{ width: min(1100px, 92%); margin-inline: auto; }

/* Header */
.site-header{ position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(130%) blur(8px); background: #060a11a6; border-bottom: 1px solid var(--border);}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; gap:10px; align-items:center; color:var(--text); font-weight:700; }
.logo{ width:28px; height:28px; }
.nav a{ color:var(--muted); margin-left:16px; font-weight:600; }
.nav a:hover{ color:var(--text); }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; padding:12px 16px; border-radius:12px; border:1px solid var(--border); font-weight:700; }
.btn.primary{ background: var(--primary); color:#052e15; border-color:#16a34a; box-shadow: var(--shadow); }
.btn.ghost{ background: transparent; color:var(--text); }
.btn.sm{ padding:8px 12px; border-radius:10px; }

/* Folder Layout */
.folder{ padding:28px 0; }
.folder-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.fid{ margin:0; }
.meta-line{ color:var(--muted); font-size:14px; }
.folder-actions .btn{ margin-left:8px; }
.toolbar{ display:flex; align-items:center; justify-content:space-between; background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:10px 12px; margin:12px 0; }
.toolbar .search{ background:#0b1220; border:1px solid var(--border); color:var(--text); padding:8px 10px; border-radius:10px; }
.list{ border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.row{ display:grid; grid-template-columns:1.2fr .2fr .2fr .3fr; gap:12px; padding:12px 14px; background:var(--panel); }
.row:nth-child(even){ background:var(--panel-2); }
.row.head{ background:var(--panel-alt); border-bottom:1px solid var(--border); font-weight:700; }
.col{ display:flex; align-items:center; }
.file{ display:flex; gap:10px; align-items:center; }
.thumb{ width:46px; height:30px; background:var(--panel-alt); border:1px solid var(--border); border-radius:6px; }
.title{ font-weight:700; }
.sub{ font-size:12px; color:var(--muted); }
.pager{ color:var(--muted); font-size:14px; margin-top:10px; }

/* Footer */
.site-footer{ border-top:1px solid var(--border); padding:18px 0; color:var(--muted); }

/* Responsive */
@media (max-width: 900px){
  .row{ grid-template-columns: 1fr; gap: 6px; }
  .col.act{ justify-content:flex-start; gap:8px; }
}
