/* Catalog style "demo31" — rating + comments add-on (loaded instead of _rate.css): glass panels, the score as the big glowing counter, 1–10 as round speciality-style chips, signal green on the chosen one. Mirrors /demo31/ like demo31.css. */

/* counters on cards */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: -2px 0 10px; font-size: 12px; color: var(--dim); }
.post__rating { font-weight: 600; color: var(--ink); }
.post__rating-avg { font: 800 16px/1 var(--display); letter-spacing: -0.03em; }
.post__rating-max { margin-left: 1px; color: var(--dim); }
.post__comments { text-decoration: none; }
.post__comments:hover { color: var(--ink); text-decoration: underline; }
.post__flash { margin: 32px 0 0; }
.notice--ok { border-color: var(--sig); color: var(--sig); }

/* rating */
.rating { margin-top: 40px; padding: 22px; border-radius: 16px; background: var(--chip); border: 1px solid var(--edge); }
.rating__title, .comments__title { margin: 0 0 14px; font: 600 19px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.rating__score { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px; }
.rating__avg { font: 800 56px/1 var(--display); letter-spacing: -0.05em; color: var(--ink); text-shadow: 0 0 30px var(--sig-glow); }
.rating__max { font: 600 16px/1 var(--display); color: var(--dim); }
.rating__count { margin-left: 8px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.rating__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.rating__scale { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.rating__legend { width: 100%; margin-bottom: 10px; padding: 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.rating__opt { position: relative; }
.rating__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--edge-2); font: 600 14px/1 var(--mono); color: var(--ink); cursor: pointer; transition: background 0.15s, box-shadow 0.15s; }
.rating__opt:hover .rating__num { box-shadow: inset 0 0 0 1.5px var(--sig); }
.rating__input:checked + .rating__num { background: var(--sig); color: var(--sig-ink); box-shadow: 0 0 0 2px var(--sig), 0 0 18px 2px var(--sig-glow); }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--sig); outline-offset: 3px; }
.rating__submit { cursor: pointer; font-family: var(--display); }
.rating__mine { margin: 0; line-height: 1.5; color: var(--ink-2); }
.rating__mine-score { font: 800 1.8em/1 var(--display); color: var(--ink); }

/* comments */
.comments { margin-top: 40px; }
.comments__count { color: var(--dim); font-family: var(--mono); font-weight: 500; }
.comments__list { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.comment { padding: 14px 16px; border-radius: 14px; background: var(--chip); border: 1px solid var(--edge); }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 6px; font-size: 11.5px; color: var(--dim); }
.comment__author { font: 600 13.5px/1.3 var(--mono); color: var(--ink); }
.comment__author::before { content: "● "; color: var(--sig); text-shadow: 0 0 8px var(--sig); }
.comment__body { color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.comments__empty { color: var(--dim); }
.comment-form { display: grid; gap: 14px; padding: 20px; border-radius: 16px; background: var(--chip); border: 1px solid var(--edge); }
.comment-form__field { display: grid; gap: 6px; margin: 0; }
.comment-form__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.comment-form__input, .comment-form__text { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--edge-2); background: var(--panel-solid); color: var(--ink); font: 400 14px/1.5 var(--mono); }
.comment-form__input { max-width: 360px; }
.comment-form__text { resize: vertical; min-height: 110px; }
.comment-form__input:focus, .comment-form__text:focus { outline: none; border-color: var(--sig); box-shadow: 0 0 0 3px var(--sig-glow); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.comment-form__submit { cursor: pointer; }
.comment-form__note { color: var(--dim); font-size: 12px; }
