/* Catalog style "demo39" — rating + comments add-on: glass tiles, numbers as a ten-tile bento row, yellow serif score. Mirrors /demo39/. */
.post__stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: -2px 0 10px; color: var(--ink-3); font-size: 12.5px; }
.post__rating { color: var(--yellow); font-weight: 700; }
.post__rating-avg { font: 400 17px/1 var(--num); }
.post__rating-max { margin-left: 1px; color: var(--ink-3); font-weight: 400; }
.post__comments { color: var(--ink-2); text-decoration: none; }
.post__comments:hover { color: #fff; text-decoration: underline; }

.post__flash { margin: var(--gap) 0 0; }
.notice--ok { border-color: rgb(83 245 126 / 0.45); color: var(--spot); }

.rating { margin-top: var(--gap); padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r); background: var(--tile); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.rating__title, .comments__title { margin: 0 0 14px; font: 600 26px/1.15 var(--head); letter-spacing: -0.02em; }
.rating__score { display: flex; align-items: baseline; gap: 8px; margin: 0 0 18px; }
.rating__avg { font: 400 72px/0.9 var(--num); color: var(--yellow); }
.rating__max { font-size: 18px; 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%; max-width: 620px; 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: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: rgb(0 0 0 / 0.2); font: 400 22px/1 var(--num); cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.rating__opt:hover .rating__num { border-color: var(--line-2); }
.rating__input:checked + .rating__num { border-color: var(--yellow); background: var(--yellow); color: #18171a; }
.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: 400 1.9em/1 var(--num); color: var(--yellow); }

.comments { margin-top: var(--gap); }
.comments__count { color: var(--ink-3); font-weight: 500; }
.comments__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); margin: 0 0 var(--gap); padding: 0; list-style: none; }
.comment { padding: 18px 20px; }
.comment__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 6px; color: var(--ink-3); font-size: 12.5px; }
.comment__author { color: #fff; font: 600 15px/1.3 var(--head); }
.comment__body { color: rgb(255 255 255 / 0.86); overflow-wrap: anywhere; }
.comments__empty { color: var(--ink-3); }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px var(--gap); padding: clamp(20px, 3vw, 30px); }
.comment-form__field { display: grid; gap: 6px; margin: 0; }
.comment-form__field--body, .comment-form__actions { grid-column: 1 / -1; }
.comment-form__label { color: var(--ink-3); font: 700 11px/1.2 var(--text); letter-spacing: 0.16em; text-transform: uppercase; }
.comment-form__input, .comment-form__text { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgb(0 0 0 / 0.3); color: #fff; font: inherit; }
.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)); }
    .comment-form { grid-template-columns: 1fr; }
}
