:root {
  --gap: 12px;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  color: #111;
  background: #fafafa;
}

header {
  max-width: 1100px;
  margin: 24px auto 8px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a {
  opacity: 0.6;
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}

.card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #eee;
  text-decoration: none;
  color: inherit;
}

.thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
}

.meta {
  padding: 10px 12px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

button,
input,
label {
  font: inherit;
}

.admin-wrap {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.table th {
  background: #fafafa;
  text-align: left;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efefef;
  font-size: 12px;
}

.actions button {
  margin-right: 6px;
}
