:root{
  --bg:#0b0b0b;
  --panel:#101010;
  --panel2:#0f0f0f;
  --text:#eaeaea;
  --muted:#9a9a9a;
  --gold:#b58b2a;
  --line:#242424;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar{
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, #111, #0b0b0b);
}

.title{
  font-weight:800;
  font-size:20px;
  letter-spacing:0.2px;
  display:flex;
  align-items:baseline;
  gap:10px;
}

.ver{
  font-size:12px;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 2px 8px;
}

.layout{
  display:flex;
  min-height: calc(100vh - 56px);
}

.sidebar{
  width: 280px;
  min-width: 280px;
  border-right: 1px solid var(--line);
  background: var(--panel2);
  padding: 14px;
}

.sidebar__title{
  font-weight:800;
  margin-bottom: 10px;
  color: var(--gold);
}

.content{
  flex: 1;
  padding: 16px;
}

.statusbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.status{
  color: var(--muted);
  white-space: pre-wrap;
}

.section{
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 10px;
  margin-bottom: 10px;
}

.section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.section__title{
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
}

.pills{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.pill{
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}

.pill--active{
  border-color: var(--gold);
  color: var(--text);
}

.checkboxRow{
  display:flex;
  align-items:center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.btn{
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
}

.btn--ghost{
  background: transparent;
  color: var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap:14px;
}

.card{
  background: var(--panel);
  border:1px solid var(--line);
  padding:12px;
}

.card img{
  width:100%;
  height:240px;
  object-fit:contain;
  background:#0a0a0a;
  border:1px solid var(--line);
}

.card .name{
  margin:10px 0 6px;
  font-weight:800;
}

.card .meta{
  font-size:13px;
  color: var(--muted);
  line-height:1.35;
}

.badge{
  display:inline-block;
  margin-top:8px;
  font-size:12px;
  padding:3px 8px;
  border:1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 900px){
  .layout{ flex-direction: column; }
  .sidebar{
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}
