.cm { padding-top: 30px; }
.cm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cm-head p { margin: 0; }
.cm-sort { display: inline-flex; gap: 4px; padding: 4px; margin: 24px 0 20px; border-radius: 16px; background: rgba(10, 4, 30, .5); border: 1px solid var(--line); }
.cm-sort button { border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 12px; cursor: pointer; transition: background .2s, color .2s; }
.cm-sort button:hover { color: var(--text); }
.cm-sort button.on { background: linear-gradient(135deg, #a855f7, #ff4fd8); color: #fff; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cm-state { text-align: center; color: var(--muted); padding: 50px 0; font-size: 16px; }
.cm-state:empty { display: none; }
.cm-more { display: flex; justify-content: center; margin-top: 22px; }

.ucard { position: relative; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s; animation: cardIn .4s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.ucard:hover { transform: translateY(-5px); border-color: var(--line-hi); box-shadow: 0 24px 60px -20px rgba(168, 85, 247, .5); }
.ucard .thumb { display: block; height: 200px; overflow: hidden; background: #120828; }
.ucard .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.ucard:hover .thumb img { transform: scale(1.04); }
.ucard .meta { display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 16px; }
.ucard .txt { flex: 1; min-width: 0; }
.ucard h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.ucard h2 a { text-decoration: none; }
.ucard .sub { margin-top: 4px; font-size: 13px; color: var(--dim); }
.ucard .sub b { color: var(--muted); font-weight: 700; }

.vote {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 50px; padding: 6px 8px; border-radius: 14px; cursor: pointer;
  background: rgba(10, 4, 30, .5); border: 1px solid var(--line-hi); color: var(--muted); font-weight: 900; transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.vote .arrow { font-size: 15px; line-height: 1; }
.vote .n { font-size: 14px; }
.vote:hover { color: #fff; border-color: var(--lime); }
.vote:active { transform: scale(.92); }
.vote.on { background: var(--lime); color: #160b33; border-color: var(--lime); box-shadow: 0 8px 22px -8px rgba(184, 255, 60, .7); }
.vote.bump { animation: bump .35s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes bump { 40% { transform: scale(1.18); } }
