* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #0e0e11;
  color: #eaeaf0;
}

.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #15151b;
  padding: 14px 18px;
  border-radius: 10px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  background: #2c2cff;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #4545ff;
}

.panel {
  background: #15151b;
  margin-top: 20px;
  padding: 16px;
  border-radius: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row input {
  flex: 1;
}

input {
  background: #0e0e11;
  border: 1px solid #333;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
}

.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: #0f0f14;
  border-radius: 8px;
  overflow: hidden;
}

.thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.body {
  padding: 10px;
}

.title {
  font-weight: bold;
  margin-bottom: 6px;
}

.meta {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pill {
  background: #333;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
}

.pill.cat {
  background: #4444aa;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.like {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.like.on {
  color: red;
}
