.content-comments .content-comment-list,
.content-comments .content-comment-replies {
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-comments .content-comment-list {
    margin-top: 24px;
}

.content-comments .content-comment-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    margin-bottom: 18px;
}

.content-comments .content-comment-heading {
    margin: 0;
    color: #28272d;
    font-size: 21px;
    line-height: 1.35;
}

.content-comments .content-comment-sort {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.content-comments .content-comment-sort button {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid #ded5f5;
    border-radius: 999px;
    background: #fff;
    color: #667085;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.content-comments .content-comment-sort button:hover {
    border-color: #b9a8e6;
    background: #f3efff;
    color: #6042b0;
}

.content-comments .content-comment-sort button:focus-visible,
.content-comments .content-comment-more:focus-visible {
    outline: 2px solid #7657c8;
    outline-offset: 2px;
}

.content-comments .content-comment-sort button.is-active,
.content-comments .content-comment-sort button[aria-pressed="true"] {
    border-color: var(--tripbora-primary);
    background: var(--tripbora-primary);
    color: #fff;
}

.content-comments .content-comment-more-row {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.content-comments .content-comment-more {
    min-width: 148px;
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid #ded5f5;
    border-radius: 999px;
    background: #fff;
    color: #6042b0;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.content-comments .content-comment-more:hover {
    border-color: #b9a8e6;
    background: #f3efff;
}

.content-comments .content-comment-more:disabled {
    cursor: wait;
    opacity: 0.55;
}

.content-comments .content-comment-more[hidden] {
    display: none;
}

.content-comments .content-comment-item {
    min-width: 0;
    padding: 20px 0;
    border-top: 1px solid #ece8f7;
    background: transparent;
}

.content-comments .content-comment-item > .content-comment-card {
    border-radius: 10px;
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

.content-comments .content-comment-item.is-deep-link-target > .content-comment-card {
    background: #f3efff;
    box-shadow: 0 0 0 3px rgba(118, 87, 200, 0.24);
}

.content-comments .content-comment-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-width: 0;
}

.content-comments .content-comment-avatar {
    display: block;
    width: 40px;
    height: 40px;
    border: 1px solid #e6e1f1;
    border-radius: 50%;
    background: #fafafc;
    object-fit: cover;
}

.content-comments .content-comment-profile-link {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.content-comments .content-comment-writer-link {
    display: inline-flex;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.content-comments .content-comment-profile-link:hover .content-comment-avatar,
.content-comments .content-comment-profile-link:focus-visible .content-comment-avatar {
    border-color: #7657c8;
}

.content-comments .content-comment-writer-link:hover {
    color: #6042b0;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-comments .content-comment-profile-link:focus-visible,
.content-comments .content-comment-writer-link:focus-visible {
    outline: 2px solid #7657c8;
    outline-offset: 2px;
}

.content-comments .content-comment-body {
    min-width: 0;
}

.content-comments .content-comment-header {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    margin: 0 0 7px;
}

.content-comments .content-comment-nickname {
    min-width: 0;
    overflow: hidden;
    color: #28272d;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-comments .content-comment-author-tag {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f3efff;
    color: var(--tripbora-primary);
    font-size: 11px;
    font-weight: 700;
}

.content-comments .content-comment-meta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: #7a8580;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
    white-space: nowrap;
}

.content-comments .content-comment-edited {
    display: inline;
    gap: 0;
    margin-left: 0;
    color: #69756f;
    font-size: inherit;
}

.content-comments .content-comment-text {
    margin: 0;
    overflow-wrap: anywhere;
    color: #34323b;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-wrap;
}

.content-comments .content-comment-mention {
    margin-right: 5px;
    color: var(--tripbora-primary);
    cursor: default;
    font-weight: 700;
    text-decoration: none;
}

.content-comments .content-comment-mention:hover {
    color: var(--tripbora-primary);
    text-decoration: none;
}

.content-comments .content-comment-image {
    display: block;
    width: 180px;
    max-width: 100%;
    height: 180px;
    margin-top: 12px;
    border-radius: 10px;
    object-fit: cover;
}

.content-comments .content-comment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px 12px;
    margin: 10px 0 0;
    color: #6c7772;
    font-size: 13px;
}

.content-comments .content-comment-action,
.content-comments .content-comment-like-readonly {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 32px;
    margin: 0;
    padding: 3px 2px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    text-decoration: none;
}

.content-comments button.content-comment-action {
    cursor: pointer;
}

.content-comments .content-comment-actions button.content-comment-action:hover {
    border: 0;
    background: #f3efff;
    color: #6042b0;
    text-decoration: none;
}

.content-comments .content-comment-actions button.content-comment-action:focus-visible {
    outline: 2px solid #7657c8;
    outline-offset: 2px;
}

.content-comments .content-comment-actions button.content-comment-action:disabled {
    cursor: wait;
    opacity: 0.5;
}

.content-comments .translate-btn {
    color: #6042b0;
    font-weight: 600;
}

.content-comments .content-comment-translation-status {
    margin: 4px 0 0;
    color: #7a6258;
    font-size: 12px;
    line-height: 1.4;
}

.content-comments .content-comment-like-icon {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 150ms ease;
}

.content-comments button.content-comment-like:hover .content-comment-like-icon {
    transform: scale(1.08);
}

.content-comments .content-comment-like.is-liked {
    border: 0;
    background: transparent;
    color: #6042b0;
    font-weight: 700;
}

.content-comments .content-comment-like-count {
    min-width: 1ch;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    text-align: left;
}

.content-comments .content-comment-replies {
    margin: 16px 0 0 52px;
    padding-left: 16px;
    border-left: 1px solid #ded5f5;
}

.content-comments .content-comment-replies > .content-comment-item {
    margin: 0;
    padding: 16px 0;
}

.content-comments .content-comment-item.reply::before {
    content: none;
}

.content-comments .content-comment-deleted {
    color: #8a938f;
}

.content-comments .content-comment-deleted-text {
    margin: 0;
    padding: 4px 0;
    color: #8a938f;
    font-size: 14px;
    font-style: italic;
}

.content-comment-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 768px) {
    .content-comments .content-comment-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
    }

    .content-comments .content-comment-avatar {
        width: 38px;
        height: 38px;
    }

    .content-comments .content-comment-profile-link {
        width: 38px;
        height: 38px;
    }

    .content-comments .content-comment-replies {
        margin-left: 36px;
        padding-left: 14px;
    }
}

@media (max-width: 480px) {
    .content-comments .content-comment-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .content-comments .content-comment-sort {
        width: 100%;
        justify-content: flex-start;
    }

    .content-comments .content-comment-sort button {
        min-height: 44px;
        padding-inline: 13px;
    }

    .content-comments .content-comment-more {
        width: min(100%, 280px);
    }

    .content-comments .content-comment-item {
        padding: 18px 0;
    }

    .content-comments .content-comment-card {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .content-comments .content-comment-avatar {
        width: 36px;
        height: 36px;
    }

    .content-comments .content-comment-profile-link {
        width: 36px;
        height: 36px;
    }

    .content-comments .content-comment-header {
        flex-wrap: wrap;
        gap: 3px 7px;
    }

    .content-comments .content-comment-meta {
        flex-basis: 100%;
        margin-left: 0;
    }

    .content-comments .content-comment-actions {
        gap: 2px 10px;
    }

    .content-comments .content-comment-replies {
        margin-left: 20px;
        padding-left: 12px;
    }
}

@media (max-width: 320px) {
    .content-comments .content-comment-replies {
        margin-left: 14px;
        padding-left: 8px;
    }

    .content-comments .content-comment-actions {
        column-gap: 8px;
    }
}

/* 관리자 콘텐츠 조치 (ADMIN 에게만 노출) */
.content-moderation-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.content-moderation-reason {
    min-width: 0;
    width: 180px;
    height: 34px;
    padding: 0 10px;
    color: #34415e;
    border: 1px solid #dcd2d2;
    border-radius: 8px;
    font-size: 0.84rem;
}

.content-moderation-button {
    height: 34px;
    padding: 0 12px;
    color: #fff;
    background: #b04a42;
    border: 1px solid #b04a42;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.content-moderation-button:hover {
    background: #963c35;
    border-color: #963c35;
}

@media (max-width: 700px) {
    .content-moderation-form {
        width: 100%;
    }

    .content-moderation-reason {
        flex: 1 1 auto;
        width: auto;
    }
}

/* ===== 관리자 댓글 숨김 모달 (게시글 숨김 모달과 같은 디자인) ===== */
.content-moderation-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.45);
}

.content-moderation-modal[hidden] {
    display: none;
}

.content-moderation-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.content-moderation-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #9ca3af;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.content-moderation-modal-close:hover {
    color: #4b5563;
}

.content-moderation-modal-title {
    margin: 0 0 8px;
    color: #1f2937;
    font-size: 17px;
}

.content-moderation-modal-text {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 14px;
}

.content-moderation-modal-label {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.content-moderation-modal-reason {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    resize: vertical;
}

.content-moderation-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
}

.content-moderation-modal-cancel,
.content-moderation-modal-submit {
    padding: 7px 14px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.content-moderation-modal-cancel {
    color: #4b5563;
    background: #fff;
    border: 1px solid #d5d7db;
}

.content-moderation-modal-cancel:hover {
    background: #f6f7f8;
}

/* 숨김 처리는 destructive action */
.content-moderation-modal-submit {
    color: #fff;
    background: #b42318;
    border: 1px solid #b42318;
}

.content-moderation-modal-submit:hover {
    background: #9a1d14;
}

.content-moderation-modal-submit:disabled {
    cursor: wait;
    opacity: 0.6;
}
