.nox-comments { color: #ececec; }
.nox-comments-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.nox-comments-head > div:first-child { display: grid; gap: 7px; }
.nox-comments-head > div:first-child > span { color: #707070; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.nox-comments-head h2 { margin: 0; color: #f1f1f1; font-size: clamp(24px,3vw,31px); letter-spacing: -.045em; }
.nox-comments-head h2 b { margin-left: 5px; color: #ef4254; font-size: .62em; font-weight: 760; vertical-align: 3px; }
.nox-comment-sort { display: flex; gap: 3px; padding: 3px; border: 1px solid #292929; border-radius: 6px; background: #111; }
.nox-comment-sort button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 4px; color: #686868; background: transparent; font: inherit; font-size: 10px; font-weight: 720; cursor: pointer; }
.nox-comment-sort button.is-active { color: #e8e8e8; background: #292929; }
.nox-comment-compose { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 13px; padding: 18px; border: 1px solid #2c2c2c; border-radius: 8px; background: #111; }
.nox-comment-avatar { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; color: #fff; background: #493036; font-size: 13px; font-weight: 800; }
.nox-comment-avatar[data-tone="1"] { background: #313e4f; }
.nox-comment-avatar[data-tone="2"] { background: #4b3037; }
.nox-comment-avatar[data-tone="3"] { background: #2c4641; }
.nox-comment-avatar[data-tone="4"] { background: #4a402d; }
.nox-comment-avatar[data-tone="5"] { background: #533139; }
.nox-comment-compose-main { min-width: 0; }
.nox-comment-writer { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.nox-comment-writer label { color: #696969; font-size: 9px; font-weight: 700; }
.nox-comment-writer input { width: min(180px,70%); padding: 0; border: 0; outline: 0; color: #d8d8d8; background: transparent; font: inherit; font-size: 11px; font-weight: 720; }
.nox-comment-compose textarea { display: block; width: 100%; min-height: 58px; resize: none; padding: 10px 0; border: 0; outline: 0; color: #e8e8e8; background: transparent; font: inherit; font-size: 13px; line-height: 1.65; }
.nox-comment-compose textarea::placeholder { color: #555; }
.nox-comment-compose footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 11px; border-top: 1px solid #242424; }
.nox-comment-compose footer > span { color: #595959; font-size: 9px; }
.nox-comment-compose footer > span b { color: #858585; font-weight: 650; }
.nox-comment-compose button[type="submit"] { display: flex; min-height: 34px; align-items: center; gap: 7px; padding: 0 12px; border: 0; border-radius: 5px; color: #fff; background: #eb3e50; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.nox-comment-compose button[type="submit"]:disabled { color: #666; background: #262626; cursor: default; }
.nox-comment-status { min-height: 18px; margin: 14px 0 0 51px; color: #777; font-size: 10px; }
.nox-comment-status.is-error { color: #f0707c; }
.nox-comment-list { margin-top: 12px; border-top: 1px solid #292929; }
.nox-comment-item { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 13px; padding: 22px 4px; border-bottom: 1px solid #252525; }
.nox-comment-content { min-width: 0; }
.nox-comment-meta { display: flex; align-items: center; gap: 7px; min-height: 20px; }
.nox-comment-meta strong { color: #d5d5d5; font-size: 11px; }
.nox-comment-meta time { color: #595959; font-size: 9px; }
.nox-comment-meta > span { padding: 2px 5px; border: 1px solid #343434; border-radius: 3px; color: #777; font-size: 8px; font-weight: 760; }
.nox-comment-content > p { margin: 8px 0 0; color: #aaa; font-size: 13px; line-height: 1.72; white-space: pre-wrap; overflow-wrap: anywhere; }
.nox-comment-actions { display: flex; align-items: center; gap: 13px; margin-top: 12px; }
.nox-comment-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: #666; background: transparent; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }
.nox-comment-actions button i { font-size: 12px; }
.nox-comment-actions button b { color: #777; font-weight: 680; }
.nox-comment-actions button.is-liked, .nox-comment-actions button.is-liked b { color: #ef4254; }
.nox-comment-actions .nox-comment-delete { margin-left: auto; }
.nox-comment-empty { display: grid; justify-items: center; padding: 54px 20px; color: #626262; text-align: center; }
.nox-comment-empty i { font-size: 24px; }
.nox-comment-empty strong { margin-top: 12px; color: #aaa; font-size: 13px; }
.nox-comment-empty span { margin-top: 5px; font-size: 10px; }
.nox-comments-reload { display: flex; min-height: 36px; align-items: center; gap: 7px; margin: 12px auto 0; padding: 0 13px; border: 1px solid #303030; border-radius: 5px; color: #aaa; background: #151515; font: inherit; font-size: 10px; cursor: pointer; }
.nox-comments-reload[hidden] { display: none; }
.story-comment-section .nox-comments-head h2 { font-size: 24px; }

@media (max-width: 720px) {
  .nox-comments-head { align-items: center; }
  .nox-comment-sort button { padding: 0 8px; }
  .nox-comment-compose { grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 14px; }
  .nox-comment-avatar { width: 32px; height: 32px; font-size: 11px; }
  .nox-comment-compose textarea { font-size: 12px; }
  .nox-comment-compose button[type="submit"] span { display: none; }
  .nox-comment-status { margin-left: 42px; }
  .nox-comment-item { grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 19px 2px; }
  .nox-comment-content > p { font-size: 12px; }
}

.nox-comments-login { display: inline-flex; align-items: center; margin: 4px 0 14px; padding: 10px 16px; border: 1px solid #4a3a41; border-radius: 10px; background: #221a1e; color: #f3eef1; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.nox-comments-login:hover { border-color: #ef3a58; }
