.category-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px;
}

.category-hero {
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,.35);
  background: linear-gradient(180deg, #202c3c, #141c29);
  padding: 14px 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--gold-bright);
}

.category-summary {
  margin-top: 10px;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 700;
}

.category-h1 {
  margin: 10px 0 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.category-detail-card {
  overflow: hidden;
  border-radius: 16px;
  border: 4px solid var(--card-color);
  background: #fff;
}

.category-detail-head {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--panel);
}

.category-detail-head .category-emoji {
  font-size: 24px;
}

.category-detail-head .category-title {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 16px;
}

.site-grid .site-item {
  min-width: 0;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #f8f9fb;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}

.site-grid .site-item:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.empty-msg {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  color: #6b7280;
  font-weight: 800;
}

.back-row {
  padding: 24px 0 6px;
  text-align: center;
}

.back-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, #b8902b);
  color: #2a1d00;
  font-weight: 900;
}

.desktop-nav a.active {
  background: rgba(212,175,55,.22);
  color: var(--gold-bright);
}

@media (min-width: 640px) {
  .site-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .site-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
