/* Shared comment surface for episode, music, and concert detail pages. */
.comment-container {
  width: 100%;
  max-width: 900px;
  margin: clamp(46px, 7vw, 76px) auto 0;
}

#comments-section .comment-container {
  max-width: none;
  margin-top: 0;
}

.comment-section {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(147, 91, 190, 0.13);
  border-radius: clamp(22px, 3vw, 30px);
  background:
    radial-gradient(circle at 92% 0%, rgba(215, 167, 244, 0.18), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(249, 246, 253, 0.97));
  box-shadow: 0 24px 70px rgba(82, 54, 105, 0.09);
  text-align: left;
}

.comment-section::before {
  content: "";
  position: absolute;
  top: -58px;
  right: 8%;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(185, 133, 232, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(185, 133, 232, 0.035), 0 0 0 44px rgba(185, 133, 232, 0.025);
  pointer-events: none;
}

.comment-section-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding: 0 2px 20px;
  border-bottom: 1px solid rgba(116, 89, 143, 0.12);
}

.comment-eyebrow,
.comment-composer-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--eyebrow, #935bbe);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.comment-title {
  margin: 0;
  color: var(--ink, #352b42);
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.comment-section-intro {
  max-width: 620px;
  margin: 9px 0 0;
  color: var(--ink-soft, #7d7288);
  font-size: 0.88rem;
  line-height: 1.7;
}

.comment-count {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid rgba(147, 91, 190, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft, #7d7288);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.comment-list {
  display: grid;
  gap: 12px;
  scroll-margin-top: 82px;
}

.comment-pagination {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto minmax(112px, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 2px;
}

.comment-pagination[hidden] {
  display: none;
}

.comment-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(147, 91, 190, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink, #352b42);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.comment-page-btn:first-child {
  justify-self: start;
}

.comment-page-btn:last-child {
  justify-self: end;
}

.comment-page-btn:hover:not(:disabled),
.comment-page-btn:focus-visible {
  border-color: rgba(147, 91, 190, 0.32);
  background: rgba(247, 239, 252, 0.94);
  color: var(--eyebrow, #935bbe);
  transform: translateY(-1px);
}

.comment-page-btn:focus-visible {
  outline: 2px solid rgba(147, 91, 190, 0.28);
  outline-offset: 2px;
}

.comment-page-btn:disabled {
  cursor: default;
  opacity: 0.4;
}

.comment-page-status {
  color: var(--ink-soft, #7d7288);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.comment-section .comment-empty {
  display: grid;
  min-height: 132px;
  place-content: center;
  gap: 5px;
  margin: 0;
  padding: 28px;
  border: 1px dashed rgba(147, 91, 190, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft, #7d7288);
  text-align: center;
}

.comment-section .comment-empty strong {
  color: var(--ink, #352b42);
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
}

.comment-section .comment-empty span {
  font-size: 0.82rem;
}

.comment-section .comment-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(120, 90, 150, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(82, 54, 105, 0.045);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) {
  .comment-section .comment-item:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 91, 190, 0.25);
    box-shadow: 0 13px 30px rgba(82, 54, 105, 0.075);
  }
}

.comment-section .comment-avatar {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: visible;
  border-radius: 20px;
  background: linear-gradient(145deg, #fbf7ff, #eee2fa);
  color: inherit;
  isolation: isolate;
}

.comment-avatar-halo {
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(185, 133, 232, 0.1), 0 6px 18px rgba(112, 77, 139, 0.1);
}

.comment-section .comment-avatar img {
  display: block;
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: saturate(1.06) drop-shadow(0 4px 5px rgba(70, 43, 92, 0.14));
  transform: translateY(-2px);
}

.comment-section .comment-body {
  min-width: 0;
  padding-top: 3px;
}

.comment-section .comment-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  margin: 0 0 8px;
}

.comment-section .comment-name {
  color: var(--ink, #352b42);
  font-size: 0.94rem;
  font-weight: 700;
}

.comment-section .comment-time {
  color: var(--ink-soft, #7d7288);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.comment-section .comment-content {
  margin: 0;
  color: var(--ink, #352b42);
  font-size: 0.91rem;
  line-height: 1.75;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 7px;
}

.comment-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 42px;
  padding: 3px 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft, #7d7288);
  font-family: inherit;
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.comment-like-btn:hover:not(:disabled),
.comment-like-btn:focus-visible {
  background: rgba(244, 222, 239, 0.58);
  color: #bd648c;
  transform: translateY(-1px);
}

.comment-like-btn:focus-visible {
  outline: 2px solid rgba(193, 105, 146, 0.2);
  outline-offset: 2px;
}

.comment-like-btn.is-liked {
  color: #c05f89;
}

.comment-like-btn:disabled {
  opacity: 1;
  cursor: default;
}

.comment-like-btn.is-loading {
  opacity: 0.55;
}

.comment-like-icon {
  font-size: 0.88rem;
  line-height: 1;
}

.comment-content-shell {
  position: relative;
  min-height: 78px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px dashed rgba(147, 91, 190, 0.2);
  border-radius: 13px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, rgba(241, 230, 255, 0.74), rgba(247, 242, 252, 0.9));
  outline: none;
}

.comment-content-shell:has(.comment-spoiler-hint:focus-visible) {
  border-color: var(--primary, #b985e8);
  box-shadow: 0 0 0 3px rgba(185, 133, 232, 0.16);
}

.comment-spoiler-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 3px;
  color: #75518e;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.comment-spoiler-hint span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.comment-spoiler-hint small {
  color: var(--ink-soft, #7d7288);
  font-size: 0.68rem;
}

.comment-content-shell.is-concealed .comment-content {
  user-select: none;
  filter: blur(9px);
  opacity: 0.28;
  transform: scale(0.99);
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.comment-content-shell.is-concealed .comment-actions {
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px);
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.comment-content-shell.is-revealed .comment-spoiler-hint {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.comment-content-shell.is-revealed .comment-content {
  user-select: text;
  filter: none;
  opacity: 1;
  transform: none;
}

.comment-content-shell.is-revealed .comment-actions {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

@media (hover: hover) {
  .comment-content-shell.is-concealed:hover .comment-spoiler-hint {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
  }

  .comment-content-shell.is-concealed:hover .comment-content {
    user-select: text;
    filter: none;
    opacity: 1;
    transform: none;
  }

  .comment-content-shell.is-concealed:hover .comment-actions {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
}

.comment-section .comment-form {
  position: relative;
  margin: 28px 0 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(147, 91, 190, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.comment-composer-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.comment-composer-head strong {
  display: block;
  color: var(--ink, #352b42);
  font-family: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.comment-shortcut {
  color: var(--ink-soft, #7d7288);
  font-size: 0.69rem;
}

.comment-field {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink, #352b42);
  font-size: 0.78rem;
  font-weight: 650;
}

.comment-field > span small {
  margin-left: 4px;
  color: var(--ink-soft, #7d7288);
  font-size: 0.68rem;
  font-weight: 500;
}

.comment-identity-fields {
  display: grid;
  grid-template-columns: minmax(0, 340px) max-content;
  align-items: start;
  gap: 16px;
  min-height: 96px;
  margin-bottom: 16px;
}

.comment-identity-fields .comment-field,
.comment-identity-fields .comment-avatar-field {
  margin-bottom: 0;
}

.comment-name-field {
  min-width: 0;
  gap: 9px;
}

.comment-avatar-field {
  position: relative;
  z-index: 4;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.comment-avatar-field legend {
  margin-bottom: 9px;
  padding: 0;
  color: var(--ink, #352b42);
  font-size: 0.78rem;
  font-weight: 650;
}

.comment-avatar-field legend small {
  margin-left: 4px;
  color: var(--ink-soft, #7d7288);
  font-size: 0.68rem;
  font-weight: 500;
}

.comment-avatar-selector {
  position: relative;
  width: max-content;
}

.comment-avatar-toggle {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  gap: 3px;
  width: 72px;
  min-width: 72px;
  height: 60px;
  padding: 3px 5px 3px 4px;
  border: 1px solid rgba(147, 91, 190, 0.16);
  border-radius: 17px;
  background: rgba(252, 249, 254, 0.98);
  box-shadow: 0 6px 16px rgba(82, 54, 105, 0.07);
  color: #9b6ec0;
  cursor: pointer;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.comment-avatar-toggle:hover,
.comment-avatar-toggle:focus-visible,
.comment-avatar-selector.is-open .comment-avatar-toggle {
  border-color: rgba(147, 91, 190, 0.34);
  box-shadow: 0 8px 20px rgba(104, 65, 133, 0.12);
}

.comment-avatar-toggle:focus-visible {
  outline: 3px solid rgba(185, 133, 232, 0.18);
  outline-offset: 2px;
}

.comment-avatar-toggle-preview {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f3ebf8;
  box-shadow: inset 0 0 0 1px rgba(147, 91, 190, 0.1);
}

.comment-avatar-toggle-preview img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
}

.comment-avatar-random-mark {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: radial-gradient(circle, rgba(236, 216, 249, 0.86), rgba(248, 241, 253, 0.74));
  font-size: 1.35rem;
  line-height: 1;
}

.comment-avatar-toggle-caret {
  flex: 0 0 auto;
  font-size: 0.72rem;
  transform: translateY(-1px);
  transition: transform 170ms ease;
}

.comment-avatar-selector.is-open .comment-avatar-toggle-caret {
  transform: translateY(1px) rotate(180deg);
}

.comment-avatar-picker {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 54px);
  gap: 4px;
  width: max-content;
  padding: 10px;
  border: 1px solid rgba(147, 91, 190, 0.14);
  border-radius: 19px;
  background: rgba(255, 253, 255, 0.97);
  box-shadow: 0 18px 46px rgba(79, 48, 101, 0.17);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 150ms ease, visibility 150ms ease, transform 170ms ease;
}

.comment-avatar-selector.is-open .comment-avatar-picker {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.comment-avatar-choice {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--ink-soft, #7d7288);
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.comment-avatar-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.comment-avatar-choice-image {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #f3ebf8;
  box-shadow: inset 0 0 0 1px rgba(147, 91, 190, 0.08);
  color: #aa75d1;
  font-size: 1.25rem;
  line-height: 1;
}

.comment-avatar-choice-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  filter: saturate(0.9) contrast(0.98);
}

.comment-avatar-choice:hover {
  background: radial-gradient(circle, rgba(229, 207, 245, 0.7), rgba(245, 237, 251, 0.18) 68%, transparent 72%);
  transform: scale(1.06);
}

.comment-avatar-choice:has(input:checked) {
  background: radial-gradient(circle, rgba(215, 183, 239, 0.76), rgba(244, 232, 251, 0.4) 68%, transparent 72%);
  color: #8d57b7;
}

.comment-avatar-choice:has(input:focus-visible) {
  outline: 3px solid rgba(185, 133, 232, 0.2);
  outline-offset: 2px;
}

.comment-avatar-choice:has(input:checked) .comment-avatar-choice-image {
  filter: drop-shadow(0 5px 8px rgba(102, 61, 133, 0.12));
}

.comment-avatar-choice.is-random .comment-avatar-choice-image {
  color: #a86cda;
  background: radial-gradient(circle, rgba(236, 216, 249, 0.86), rgba(248, 241, 253, 0.74));
}

.comment-section .comment-avatar img[src$="/11-tomari.webp"] {
  filter: brightness(1.08) saturate(1.06) drop-shadow(0 4px 5px rgba(70, 43, 92, 0.14));
}

.comment-avatar-toggle-preview img[src$="/11-tomari.webp"],
.comment-avatar-choice-image img[src$="/11-tomari.webp"] {
  filter: brightness(1.04) saturate(0.9) contrast(0.98);
}

.comment-section .comment-name-input,
.comment-section .comment-textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  border: 1px solid rgba(116, 89, 143, 0.16);
  border-radius: 13px;
  background: rgba(253, 251, 255, 0.94);
  color: var(--ink, #352b42);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 400;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.comment-section .comment-name-input {
  height: 60px;
  padding: 11px 14px;
}

.comment-section .comment-textarea {
  min-height: 118px;
  padding: 13px 14px;
  line-height: 1.65;
  resize: vertical;
}

.comment-section .comment-name-input::placeholder,
.comment-section .comment-textarea::placeholder {
  color: #a096a8;
}

.comment-section .comment-name-input:focus,
.comment-section .comment-textarea:focus {
  border-color: var(--primary, #b985e8);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(185, 133, 232, 0.14);
}

.comment-spoiler-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 18px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--ink, #352b42);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.comment-spoiler-option:hover,
.comment-spoiler-option:has(.comment-spoiler-input:focus-visible) {
  border-color: rgba(147, 91, 190, 0.15);
  background: rgba(241, 230, 255, 0.38);
}

.comment-spoiler-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.comment-spoiler-check {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid rgba(116, 89, 143, 0.28);
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
  transition: border-color 180ms ease, background 180ms ease;
}

.comment-spoiler-input:checked + .comment-spoiler-check {
  border-color: var(--primary, #b985e8);
  background: linear-gradient(135deg, var(--primary, #b985e8), var(--secondary, #d7a7f4));
}

.comment-spoiler-input:checked + .comment-spoiler-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.comment-spoiler-option strong,
.comment-spoiler-option small {
  display: block;
}

.comment-spoiler-option strong {
  font-size: 0.8rem;
}

.comment-spoiler-option small {
  margin-top: 3px;
  color: var(--ink-soft, #7d7288);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.5;
}

.comment-section .form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
}

.comment-section .form-actions > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
}

.comment-section .char-count,
.comment-section .comment-identity-note {
  color: var(--ink-soft, #7d7288);
  font-size: 0.69rem;
  font-variant-numeric: tabular-nums;
}

.comment-section .comment-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 132px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #a86cda, #c28bea);
  box-shadow: 0 9px 20px rgba(153, 94, 199, 0.22);
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.comment-section .comment-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #9e60d1, #ba7fe7);
  box-shadow: 0 12px 25px rgba(153, 94, 199, 0.28);
}

.comment-section .comment-submit-btn:focus-visible {
  outline: 3px solid rgba(185, 133, 232, 0.24);
  outline-offset: 3px;
}

.comment-section .comment-submit-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.comment-section .comment-form-message {
  margin: 14px 0 0;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
}

.comment-section .comment-form-message[hidden] {
  display: none;
}

.comment-section .comment-form-message-success {
  background: rgba(122, 199, 196, 0.14);
  color: #2c6e6a;
}

.comment-section .comment-form-message-error {
  background: rgba(255, 143, 163, 0.14);
  color: #a52f49;
}

@media (max-width: 620px) {
  .comment-container {
    margin-top: 38px;
  }

  .comment-section {
    padding: 19px 14px;
    border-radius: 22px;
  }

  .comment-section-head {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-inline: 4px;
  }

  .comment-section-intro {
    font-size: 0.8rem;
  }

  .comment-count {
    margin-top: 18px;
    padding: 5px 9px;
    font-size: 0.68rem;
  }

  .comment-section .comment-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 15px 13px;
    border-radius: 15px;
  }

  .comment-pagination {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    margin-top: 15px;
  }

  .comment-page-btn {
    min-width: 0;
    min-height: 38px;
    padding-inline: 12px;
  }

  .comment-section .comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .comment-section .comment-avatar img {
    width: 52px;
    height: 52px;
  }

  .comment-section .comment-header {
    display: grid;
    gap: 1px;
    margin-bottom: 7px;
  }

  .comment-section .comment-content {
    font-size: 0.85rem;
    line-height: 1.68;
  }

  .comment-content-shell {
    min-height: 82px;
    margin-left: -2px;
    padding: 11px 12px;
  }

  .comment-section .comment-form {
    margin-top: 20px;
    padding: 18px 14px;
    border-radius: 17px;
  }

  .comment-composer-head {
    margin-bottom: 17px;
  }

  .comment-shortcut {
    display: none;
  }

  .comment-identity-fields {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 12px;
  }

  .comment-spoiler-option {
    padding-inline: 6px;
  }

  .comment-avatar-picker {
    right: 0;
    left: auto;
    grid-template-columns: repeat(4, 50px);
    gap: 3px;
    padding: 8px;
    transform-origin: top right;
  }

  .comment-avatar-choice {
    width: 50px;
    height: 50px;
  }

  .comment-avatar-choice-image,
  .comment-avatar-choice-image img {
    width: 46px;
    height: 46px;
  }

  .comment-section .form-actions {
    align-items: flex-end;
  }

  .comment-section .comment-identity-note {
    display: block;
  }

  .comment-section .comment-submit-btn {
    min-width: 118px;
    padding-inline: 15px;
  }
}

@media (max-width: 390px) {
  .comment-section .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-section .comment-submit-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .comment-section *,
  .comment-section *::before,
  .comment-section *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
