*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --text: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg: #F9FAFB;
  --card: #FFFFFF;
  --border: #E5E7EB;
  --radius: 16px;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
}

.cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #3B82F6 100%);
  position: relative;
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 40px;
}

.body {
  padding: 20px;
}

.title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.meta-item { display: inline-flex; align-items: center; gap: 4px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: #EFF6FF;
  padding: 4px 10px;
  border-radius: 999px;
}

.owner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #FAFBFC;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.owner-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:active { opacity: 0.85; }

.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border); }

.footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

.footer a { color: var(--text-muted); text-decoration: none; }

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.35;
}

.skeleton {
  background: linear-gradient(90deg, #F3F4F6 0%, #E5E7EB 50%, #F3F4F6 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skel-title { height: 26px; width: 70%; margin-bottom: 10px; }
.skel-desc { height: 14px; width: 100%; margin-bottom: 6px; }
.skel-desc.short { width: 60%; }
