/* Catalog style "demo48" — rating + comments add-on (loaded instead of _rate.css): glass cards, pill score keys, DEPO green selection. Mirrors /demo48/ (Connect · Spotlight: the card under the pointer lifts, the rest of the row steps back); based on the demo41 style. */
/*
 * Card: "★ 8.4/10 · 2 comments" as a quiet line. Post: the rating is a glass card with a big
 * Poppins score, a count chip and ten round keys (chosen = DEPO green). Comments are a glass card:
 * each comment a row with a round initial-less avatar, the form in dark fields with a green focus
 * ring.
 */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; color: var(--faint); font-size: 13px; }
.post__rating { color: var(--ink); font-weight: 700; }
.post__rating::before { content: "★ "; color: var(--yellow); }
.post__rating-max { color: var(--faint); font-weight: 400; }
.post__comments { text-decoration: none; }
.post__comments::before { content: "· "; }
.post__comments:hover { color: var(--ink); }
.post__flash { margin: 16px 0 0; }

.rating, .comments { margin-top: 16px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.rating__title, .comments__title { margin: 0 0 12px; font: 600 24px/1.2 var(--head); }
.rating__score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 20px; }
.rating__avg { font: 600 64px/0.95 var(--head); letter-spacing: -0.03em; }
.rating__max { color: var(--faint); font: 500 18px/1 var(--head); }
.rating__count { display: inline-grid; place-items: center; height: 26px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--soft); font-size: 13px; font-weight: 700; }
.rating__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.rating__scale { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.rating__legend { width: 100%; margin-bottom: 10px; padding: 0; color: var(--faint); font-size: 14px; }
.rating__opt { position: relative; }
.rating__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.rating__num { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; font: 500 16px/1 var(--head); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, transform 0.2s; }
.rating__opt:hover .rating__num { border-color: rgb(255 255 255 / 0.5); transform: translateY(-2px); }
.rating__input:checked + .rating__num { border-color: var(--green); background: var(--green); color: #fff; }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--green-hi); outline-offset: 3px; }
.rating__mine { margin: 0; color: var(--soft); }
.rating__mine-score { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 4px; border-radius: 50%; background: var(--green); color: #fff; font: 600 16px/1 var(--head); }

.comments__count { display: inline-grid; place-items: center; min-width: 30px; height: 24px; margin-left: 8px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; font: 700 12px/1 var(--text); color: var(--soft); vertical-align: 0.2em; }
.comments__list { display: grid; gap: 2px; margin: 4px 0 24px; padding: 0; list-style: none; }
.comment { position: relative; padding: 12px 12px 12px 64px; border-radius: 14px; }
.comment:hover { background: var(--card); }
.comment::before { content: ""; position: absolute; left: 12px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #2a5c35); }
.comment:nth-child(3n+2)::before { background: linear-gradient(135deg, var(--yellow), #8a6200); }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0 0 2px; color: var(--faint); font-size: 13px; }
.comment__author { color: var(--ink); font: 500 15px/1.3 var(--head); }
.comment__body { color: var(--soft); }
.comments__empty { margin: 0 0 20px; color: var(--soft); }
.comment-form { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.comment-form__field { display: grid; gap: 6px; margin: 0; }
.comment-form__label { color: var(--soft); font: 500 13px/1.3 var(--head); }
.comment-form__input, .comment-form__text { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgb(0 0 0 / 0.3); color: var(--ink); font: 400 15px/1.45 var(--text); }
.comment-form__input { max-width: 360px; }
.comment-form__text { min-height: 120px; resize: vertical; }
.comment-form__input:focus, .comment-form__text:focus { outline: none; border-color: var(--green-hi); box-shadow: 0 0 0 3px rgb(83 177 103 / 0.25); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.comment-form__note { color: var(--faint); font-size: 13px; }

@media (max-width: 520px) {
    .rating__num { width: 42px; height: 42px; }
    .rating__avg { font-size: 52px; }
}
