/* Catalog style "demo44" — rating + comments add-on: credits type, the scale as a row of ten screens, the score huge in Poppins. Mirrors /demo44/. */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: -4px 0 14px; color: var(--ink-3); font: 700 10.5px/1.3 var(--text); letter-spacing: 0.16em; text-transform: uppercase; }
.post__rating { color: var(--yellow); }
.post__rating-avg { font: 600 15px/1 var(--head); letter-spacing: 0; }
.post__rating-max { margin-left: 1px; color: var(--ink-3); }
.post__comments { color: var(--ink-2); text-decoration: none; }
.post__comments:hover { color: #fff; }

.post__flash { max-width: 780px; margin: 40px auto 0; }
.notice--ok { border-color: rgb(83 245 126 / 0.45); color: var(--spot); }

.rating, .comments { max-width: 780px; margin: 56px auto 0; }
.rating__title, .comments__title { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 700 12px/1 var(--text); letter-spacing: 0.28em; text-transform: uppercase; color: var(--yellow); }
.rating__title::after, .comments__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rating__score { display: flex; align-items: baseline; gap: 10px; margin: 0 0 20px; }
.rating__avg { font: 600 88px/0.85 var(--head); letter-spacing: -0.05em; }
.rating__max { font: 600 20px/1 var(--head); color: var(--ink-3); }
.rating__count { margin-left: 8px; color: var(--ink-3); font-size: 14px; }
.rating__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.rating__scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; width: 100%; margin: 0; padding: 0; border: 0; }
.rating__legend { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; color: var(--ink-2); font-size: 14px; }
.rating__opt { position: relative; }
.rating__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating__num { display: grid; place-items: center; aspect-ratio: 16 / 10; min-height: 44px; border-block: 4px solid var(--bar); border-radius: 4px; background: var(--panel); font: 600 20px/1 var(--head); color: var(--ink-2); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.rating__opt:hover .rating__num { color: #fff; background: #26252b; }
.rating__input:checked + .rating__num { background: var(--yellow); color: #111; }
.rating__input:focus-visible + .rating__num { outline: 2px solid var(--yellow); outline-offset: 2px; }
.rating__submit { font-family: var(--head); }
.rating__mine { margin: 0; line-height: 1.5; color: var(--ink-2); }
.rating__mine-score { font: 600 2em/1 var(--head); color: var(--yellow); }

.comments__count { color: var(--ink-3); }
.comments__list { display: grid; gap: 0; margin: 0 0 28px; padding: 0; list-style: none; }
.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 6px; color: var(--ink-3); font: 700 10.5px/1.3 var(--text); letter-spacing: 0.16em; text-transform: uppercase; }
.comment__author { color: #fff; font: 600 16px/1.2 var(--head); letter-spacing: 0; text-transform: none; }
.comment__body { color: rgb(255 255 255 / 0.86); overflow-wrap: anywhere; }
.comments__empty { color: var(--ink-3); }
.comment-form { display: grid; gap: 14px; padding: 24px; border-block: 6px solid var(--bar); border-radius: 6px; background: var(--panel); }
.comment-form__field { display: grid; gap: 6px; margin: 0; }
.comment-form__label { color: var(--ink-3); font: 700 10.5px/1.2 var(--text); letter-spacing: 0.18em; text-transform: uppercase; }
.comment-form__input, .comment-form__text { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px; background: #0d0d10; color: #fff; font: inherit; }
.comment-form__input { max-width: 360px; }
.comment-form__text { min-height: 120px; resize: vertical; }
.comment-form__input:focus, .comment-form__text:focus { border-color: var(--yellow); outline: none; box-shadow: 0 0 0 3px rgb(255 181 0 / 0.22); }
.comment-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.comment-form__submit { font-family: var(--head); }
.comment-form__note { color: var(--ink-3); font-size: 13px; }

@media (max-width: 560px) {
    .rating__scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
