/* RockLists comments (song and artist pages, account pages). Uses the tokens from site.css. */
.comments { scroll-margin-top: 1rem; }
.comments .section-head { flex-wrap: wrap; }
.comment-count { color: var(--muted); font-weight: 600; }
.comment-sort { display: flex; gap: .9rem; font-size: .9rem; }
.comment-sort [aria-pressed="true"] { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.comment-compose { margin-bottom: 1.25rem; }
.comment-guest { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin: 0 0 1rem; }
.comment-form { display: grid; gap: .5rem; }
.comment-form textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper-2); color: var(--text); resize: vertical; min-height: 3.2rem; }
.comment-form textarea:focus { border-color: var(--accent-2); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.comment-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem; }
.comment-form-foot > :first-child { margin-right: auto; }
.comment-reply-form { margin: .5rem 0 .75rem 2.9rem; }
.comment-edit { margin: .4rem 0; }

.comment-list { display: grid; gap: .25rem; }
.comment-thread { border-top: 1px solid var(--line); padding-top: .85rem; padding-bottom: .35rem; }
.comment-thread:first-child { border-top: 0; padding-top: 0; }
.comment { display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; padding: .35rem 0; border-radius: var(--radius-sm); scroll-margin-top: 5rem; }
.comment-avatar { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.comment-avatar.is-empty { background: var(--paper-3); }
.comment-main { min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; line-height: 1.3; }
.comment-author { font-weight: 700; color: var(--text); }
.comment-time { color: var(--muted); }
.comment-badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.comment-badge.is-pin { background: #1d1a07; color: #f3d98b; }
.comment-badge.is-wait { background: #2a2210; color: #f3d98b; }
.comment-replyto { margin: .15rem 0 0; }
.comment-body { margin-top: .25rem; overflow-wrap: anywhere; color: var(--text-2); }
.comment-body p { margin: 0 0 .5rem; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-body a.mention { font-weight: 600; }
.comment-gone { margin: .35rem 0; font-style: italic; }
.comment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem; margin-top: .35rem; }
.comment-act { background: none; border: 0; padding: .15rem 0; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: none; }
.comment-act:hover { color: var(--text); }
.comment-act.danger:hover { color: #ff7b7b; }
.comment-act[data-c-like][aria-pressed="true"] { color: #ff5c8a; }
.comment-act[disabled] { cursor: default; opacity: .6; }
.comment-mod { display: inline-flex; flex-wrap: wrap; gap: .15rem .7rem; padding-left: .7rem; border-left: 1px solid var(--line-2); }
.comment-replies { margin-left: 2.9rem; }
.comment-replies:empty { display: none; }
.comment.is-reply { grid-template-columns: 1.8rem 1fr; }
.comment.is-reply .comment-avatar { width: 1.8rem; height: 1.8rem; font-size: .9rem; }
.comment.is-pending { background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(243, 217, 139, .04) 10px 20px); padding: .5rem; }
.comment.is-target, .comment.is-new { animation: comment-flash 2.4s ease-out; }
@keyframes comment-flash { from { background: var(--accent-soft); } to { background: transparent; } }
.comment-more { text-align: center; margin-top: 1rem; }

/* Profile and account pages */
.profile-comments { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.profile-comments p { margin: .2rem 0 0; color: var(--text-2); }
.notif-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .1rem; }
.notif-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; padding: .65rem .8rem; border-radius: var(--radius-sm); background: var(--paper-2); }
.notif-list li.is-unread { border-left: 3px solid var(--accent); }
.notif-list li.is-unread a { font-weight: 700; }

@media (max-width: 600px) {
  .comment-replies { margin-left: 1.2rem; }
  .comment-reply-form { margin-left: 1.2rem; }
  .comment-mod { border-left: 0; padding-left: 0; }
}
