:root {
  --bg: #0e0f12;
  --panel: #1a1d24;
  --accent: #37f3a0;
  --text: #f5f6f8;
  --muted: #9aa3af;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  background: radial-gradient(circle at top, #1a2030, #0e0f12 60%);
  color: var(--text);
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 8px;
}

.sub {
  color: var(--muted);
  max-width: 620px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--panel);
  border-radius: 16px;
  padding: 18px;
  min-height: 280px;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.cover {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
}

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

.item .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.item .meta strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.item .meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.muted {
  color: var(--muted);
}

.votes {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

button {
  background: var(--accent);
  border: none;
  color: #0c0f12;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.vote-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  padding: 0;
  transition: all 0.2s ease;
}

.vote-btn.voted {
  background: var(--accent);
  border-color: var(--accent);
  color: #0c0f12;
}


.form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 16px;
}

@media (max-width: 700px) {
  .shell {
    padding: 20px 12px 40px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 14px;
  }

  .item {
    padding: 8px 10px;
    gap: 10px;
  }

  .cover {
    width: 48px;
    height: 48px;
  }

  .vote-btn {
    width: 28px;
    height: 28px;
  }

  .votes {
    gap: 4px;
  }
}
