/* =========================================================
   community.css — 유피픽 커뮤니티 전용 스타일 v1
   피드(community.html) + 상세(community-post.html) 공용
   ========================================================= */

/* ── 공통 래퍼 ── */
.comm-wrap,
.comm-detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 88px;
  overflow-x: hidden;
}

/* ── 페이지 타이틀 ── */
.comm-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text, #111);
  margin: 0;
  letter-spacing: -0.3px;
}

/* =========================================================
   블라인드 게시판 안내 배너
   ========================================================= */
.comm-blind-banner {
  background: #f8f9fb;
  border-bottom: 1.5px solid #e8e8ea;
  padding: 20px 20px 16px;
  margin-bottom: 18px;
}

.comm-blind-banner-top {
  margin-bottom: 16px;
}

.comm-blind-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.comm-blind-copy {
  min-width: 0;
  text-align: left;
}

.comm-blind-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 8px;
}

/* ── 내 프로필 미니 카드 ── */
.comm-my-profile {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 214px;
  padding: 10px 12px;
  border: 1px solid #e7ebf3;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 10px 24px rgba(30, 41, 59, 0.08);
}
.comm-my-headline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}
.comm-my-title {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.comm-my-subs {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.comm-my-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 9px;
  background: #f1f5ff;
  color: #4564a8;
  line-height: 1.25;
}
.comm-my-status.hidden {
  display: none;
}
.comm-my-status strong {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  color: inherit;
}
.comm-my-status span {
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comm-my-status-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  transform: translateY(1px);
}
.comm-my-status.is-locked {
  background: #fff3f3;
  color: #d94141;
}
.comm-my-status.is-open {
  background: #eefaf3;
  color: #24834d;
}
.comm-my-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.comm-my-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid transparent;
  background: #f6f8fc;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, transform 0.14s;
  gap: 2px;
  min-width: 0;
}
.comm-my-stat:hover {
  background: #fff;
  border-color: #d8deea;
  transform: translateY(-1px);
}
.comm-my-stat-count {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}
.comm-my-stat-label {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
}

.comm-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.comm-blind-label {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 5px;
  line-height: 1.4;
  flex-shrink: 0;
}

.comm-blind-desc {
  font-size: 13px;
  color: var(--muted, #6e6e73);
  line-height: 1.6;
  margin: 0;
}

.comm-desc-emphasis {
  color: var(--text, #111);
  font-weight: 800;
}

.comm-page-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #7a7d86;
  white-space: nowrap;
}

/* 특징 3개 */
.comm-blind-features {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.comm-blind-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 150px;
  background: #fff;
  border: 1px solid #e8e8ea;
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.comm-blind-feature-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}

.comm-blind-feature div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comm-blind-feature strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text, #111);
}

.comm-blind-feature small {
  font-size: 11px;
  color: var(--muted, #6e6e73);
  line-height: 1.4;
}

/* 이용 규칙 */
.comm-blind-rules {
  background: #fff;
  border: 1px solid #e8e8ea;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.comm-blind-rules-label {
  font-size: 11px;
  font-weight: 700;
  color: #b07800;
  display: block;
  margin-bottom: 4px;
}

.comm-blind-rules-list {
  margin: 0;
  padding-left: 14px;
  list-style: disc;
}

.comm-blind-rules-list li {
  font-size: 11px;
  color: #666;
  line-height: 1.7;
}

.comm-blind-rules-list em {
  font-style: normal;
  color: #aaa;
}

.comm-blind-cache-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #5a7abf;
  line-height: 1.6;
  background: #f5f8ff;
  border: 1px solid #d4e0f7;
  border-radius: 6px;
  padding: 8px 12px;
  box-shadow: 0 1px 4px rgba(80,120,200,0.07);
}


/* 모바일 배너 */
@media (max-width: 640px) {
  .comm-blind-banner        { padding: 12px 12px 10px; margin-bottom: 14px; }
  .comm-blind-banner-top    { margin-bottom: 10px; }
  .comm-blind-head          { grid-template-columns: 1fr; gap: 10px; }
  .comm-blind-title-row     { margin-bottom: 6px; }
  .comm-title-stack         { gap: 1px; }
  .comm-my-profile          { justify-self: stretch; min-width: 0; padding: 8px; }
  .comm-my-status           { padding: 6px 7px; }
  .comm-my-status strong,
  .comm-my-status span      { font-size: 10px; }
  .comm-my-stat             { min-width: 0; padding: 5px 6px; }
  .comm-page-title          { font-size: 18px; }
  .comm-page-subtitle       { font-size: 11px; }
  .comm-blind-desc          { font-size: 12px; }

  .comm-blind-features      { flex-direction: column; gap: 4px; }
  .comm-blind-feature       { flex-direction: row; align-items: center; min-width: 0; padding: 6px 10px; gap: 8px; }
  .comm-blind-feature div   { flex-direction: row; align-items: center; gap: 6px; flex-wrap: nowrap; }
  .comm-blind-feature-icon  { font-size: 14px; }
  .comm-blind-feature strong { font-size: 12px; white-space: nowrap; }
  .comm-blind-feature small  { font-size: 11px; white-space: nowrap; }

  .comm-blind-rules         { padding: 6px 10px; }
  .comm-blind-rules-label   { font-size: 11px; margin-bottom: 3px; }
  .comm-blind-rules-list li { font-size: 11px; line-height: 1.65; }

  .comm-blind-cache-note    { font-size: 11px; margin-top: 8px; }
}

/* =========================================================
   페이지네이션
   ========================================================= */

.comm-page-btn {
  min-width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1.5px solid var(--border, #e5e5e7);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #111);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.13s;
  padding: 0 3px;
}

.comm-page-btn:hover {
  border-color: #aaa;
  background: #f8f9fa;
}

.comm-page-btn.active {
  background: var(--text, #111);
  border-color: var(--text, #111);
  color: #fff;
  font-weight: 700;
}

.comm-page-ellipsis {
  font-size: 13px;
  color: var(--muted, #6e6e73);
  padding: 0 4px;
  line-height: 36px;
}

/* =========================================================
   카테고리 필터 칩
   ========================================================= */
.comm-filter-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1.5px solid #e8e8ea;
  margin-bottom: 16px;
}
.comm-filter-bar::-webkit-scrollbar { display: none; }

.comm-chip {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.14s, border-bottom-color 0.14s;
  font-family: inherit;
}
.comm-chip:hover {
  color: #333;
}
.comm-chip.active {
  color: #111;
  font-weight: 700;
  border-bottom-color: #111;
  background: transparent;
}

/* =========================================================
   게시글 목록 테이블 (DC스타일)
   ========================================================= */
.comm-table-wrap {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.comm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
}

.comm-table th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border, #e5e5e7);
  white-space: nowrap;
}

.comm-table td {
  padding: 8px 8px;
  border-bottom: 1px solid #f1f1f3;
  color: #444;
  vertical-align: middle;
}

.comm-table tr:last-child td {
  border-bottom: none;
}

.comm-table tr.comm-post-item {
  cursor: pointer;
  transition: background-color 0.1s;
}
.comm-table tr.comm-post-item:hover {
  background-color: #fafbfc;
}

.comm-table .col-id     { width: 60px; color: #888; }
.comm-table .col-cat    { width: 90px; }
.comm-table .col-title  { text-align: left; padding-left: 16px; }
.comm-table .col-author { width: 110px; }
.comm-table .col-date   { width: 80px; color: #888; }
.comm-table .col-views  { width: 60px; color: #888; }
.comm-table .col-likes  { width: 60px; color: #888; }

.comm-table .comm-post-notice td {
  background-color: #fcfcfd;
}

.comm-table .comm-post-notice .comm-post-title {
  font-weight: 700;
}

.comm-table .comm-post-notice .col-id {
  font-weight: bold;
  color: #ff4757;
}

.comm-table .comm-post-title {
  font-size: 14px;
  color: #111;
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comm-table .comm-post-comment-count {
  font-size: 12px;
  color: #ff4757;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}

.comm-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #ff4757;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
  transform: translateY(-1px);
}

.comm-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f1f3;
  color: #555;
}

.comm-table .comm-author-text {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.comm-table .comm-subs-chip {
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
  line-height: 1.3;
}

.comm-table .comm-author-admin {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

/* 구간별 튜버 칩 단색 배경색 설정 — 전역 (리스트·상세 공용) */
.chip-wait { background: #ccc;    color: #444; }
.chip-50   { background: #ccc;    color: #444; }
.chip-100  { background: #ffeaa7; color: #444; }
.chip-1k   { background: #fdcb6e; color: #444; }
.chip-10k  { background: #ffb142; color: #444; }
.chip-50k  { background: #ff793f; color: #fff; }
.chip-100k { background: #ff5252; color: #fff; }
.chip-500k { background: #b33939; color: #fff; }
.chip-1m   { background: #111111; color: #fff; }
.chip-admin { background: #4c55dd; color: #fff; }

/* ── 튜버 칩 공용 (리스트·상세 페이지 공통) ── */
.comm-subs-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.comm-author-text {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.comm-author-text.comm-author-admin {
  gap: 2px;
  color: #111;
  font-weight: 800;
  font-size: 12px;
}
/* 공지 뱃지 (상세 페이지) */
.comm-notice-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #e07400;
  background: #fff0e6;
  padding: 3px 9px;
  border-radius: 20px;
  vertical-align: middle;
}

/* ── 데스크톱: 모바일 전용 요소 숨김 ── */
.comm-post-mobile-meta  { display: none; }
.comm-mobile-notice-badge,
.comm-mobile-sep,
.comm-mobile-time,
.comm-mobile-views,
.comm-mobile-likes      { display: none; }

/* 모바일 대응: 테이블 → 리스트 변환 */
@media (max-width: 640px) {

  /* ── 1. 배너: 엣지투엣지 + 컴팩트 ── */
  .comm-blind-banner {
    margin: -20px -6px 14px;
    padding: 16px 14px 14px;
    border-bottom-color: #e0e0e4;
  }
  .comm-blind-features,
  .comm-blind-rules,
  .comm-blind-desc {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
  }
  .comm-blind-cache-note {
    margin-top: 8px;
    font-size: 11px;
    color: #5a7abf;
    border-top: 1px solid #f0f0f2;
    padding-top: 8px;
  }

  /* ── 2. 필터 칩: 탭 스타일 ── */
  .comm-filter-bar {
    margin: 0;
    padding: 0;
    gap: 0;
    border-bottom: 1px solid #ebebed;
  }
  .comm-chip {
    padding: 10px 14px;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin-bottom: -1px;
  }
  .comm-chip:hover {
    color: #333;
    border-bottom-color: transparent;
    background: transparent;
  }
  .comm-chip.active {
    color: #111;
    background: transparent;
    border-bottom-color: #111;
    font-weight: 700;
  }

  /* ── 3. 테이블 래퍼: wrap과 동일 폭 (마진 제거) ── */
  .comm-table-wrap {
    border-radius: 0;
    border: none;
    margin: 0;
  }

  /* ── 4. 테이블 → 블록 ── */
  .comm-table        { display: block; }
  .comm-table thead  { display: none; }
  .comm-table tbody  { display: block; }

  /* ── 5. 각 행 → 세로 flex (DC 스타일) ── */
  .comm-table tr.comm-post-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 9px 0;
    gap: 0;
    border-bottom: 1px solid #efefef;
    background: #fff;
  }
  .comm-table tr.comm-post-notice { background: #fffdf7; }
  .comm-table tr.comm-post-item:active { background: #f5f5f8; }

  /* ── 6. 모든 td 숨기고 제목만 표시 ── */
  .comm-table td { display: none !important; }

  .comm-table td.col-title {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 0;
    border: none;
    gap: 5px;
    /* 구분선과 동일한 좌우 여백 */
    padding-left: 0;
    padding-right: 0;
  }

  /* ── 7. 제목 줄 — 2줄 wrap (DC 스타일) ── */
  .comm-title-main {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
  }

  .comm-table .comm-post-title {
    font-size: 14.5px;
    font-weight: 500;
    color: #111;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
  }

  .comm-table .comm-post-comment-count {
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1.45;
  }

  .comm-new-badge {
    width: 12px;
    height: 12px;
    font-size: 8px;
  }

  /* ── 8. 메타 줄 ── */
  .comm-post-mobile-meta {
    display: flex !important;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .comm-mobile-notice-badge,
  .comm-mobile-sep,
  .comm-mobile-time,
  .comm-mobile-views,
  .comm-mobile-likes { display: inline-flex !important; align-items: center; }

  .comm-mobile-notice-badge {
    font-size: 10px;
    font-weight: 700;
    color: #ff4757;
    flex-shrink: 0;
    margin-right: 5px;
  }

  .comm-mobile-sep {
    color: #d8d8dc;
    font-size: 10px;
    padding: 0 4px;
    flex-shrink: 0;
    font-weight: 300;
  }

  .comm-mobile-time   { font-size: 11px; color: #aaa; white-space: nowrap; flex-shrink: 0; }
  .comm-mobile-views  { font-size: 11px; color: #bbb; white-space: nowrap; flex-shrink: 0; }
  .comm-mobile-likes  { font-size: 11px; color: #bbb; white-space: nowrap; flex-shrink: 0; }

  .comm-post-mobile-meta .comm-category-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-right: 2px;
    font-weight: 600;
  }
  .comm-post-mobile-meta .comm-author-text  { font-size: 11px; color: #999; flex-shrink: 0; }
  .comm-post-mobile-meta .comm-subs-chip    { font-size: 9px; padding: 1px 4px; }
  .comm-post-mobile-meta .comm-author-admin { font-size: 11px; color: #999; flex-shrink: 0; }

  /* ── 9. 스켈레톤 ── */
  .comm-skeleton-item     { display: block !important; padding: 12px 0; }
  .comm-skeleton-item td  { display: block !important; padding: 0; border: none; }

}

/* =========================================================
   상세 페이지 — 모바일 최적화
   ========================================================= */
@media (max-width: 640px) {
  .comm-detail-wrap {
    padding: 0 0 80px;
  }

  /* 게시글 카드: 좌우 패딩만 추가 */
  .comm-detail-card {
    padding: 16px 14px 0;
  }

  /* 헤더 — 모바일 */
  .comm-detail-title {
    font-size: 15px;
    padding: 14px 0 10px;
    border-bottom-color: #efefef;
    letter-spacing: -0.4px;
  }
  .comm-detail-info-row {
    padding: 9px 0;
    border-bottom-color: #efefef;
  }
  .comm-detail-info-right { font-size: 11px; }
  .comm-detail-content-wrap { padding-top: 16px; }
  .comm-detail-time  { font-size: 11px; }
  .comm-author-text  { font-size: 11px; }
  .comm-subs-chip    { font-size: 9px; padding: 3px 5px; }

  /* 본문 */
  .comm-detail-content { font-size: 15px; line-height: 1.8; }

  /* 추천·댓글 수 푸터 */
  .comm-detail-footer {
    margin-top: 16px;
    padding: 16px 0;
    border-top-color: #efefef;
  }
  .comm-like-btn { font-size: 13px; padding: 9px 28px; }

  /* 댓글 섹션 */
  .comm-comments-card {
    padding: 16px 14px 20px;
    border-top-color: #ebebed;
  }

  .comm-comments-title {
    font-size: 13px;
    padding-bottom: 12px;
    border-bottom-color: #efefef;
    margin-bottom: 14px;
  }

  /* 댓글 입력창 */
  .comm-comment-input-row {
    margin-bottom: 16px;
  }
  .comm-comment-input {
    font-size: 14px;
    border-radius: 8px;
  }
  .comm-comment-submit {
    font-size: 13px;
    border-radius: 8px;
  }

  /* 댓글 아이템 */
  .comm-comment-item {
    padding: 6px 0;
  }
  .comm-comment-meta {
    gap: 6px;
    margin-bottom: 3px;
  }
  .comm-comment-content {
    font-size: 14px;
    line-height: 1.6;
  }
  .comm-comment-time {
    font-size: 11px;
  }
}

/* =========================================================
   빈 상태 / 로딩 스켈레톤
   ========================================================= */
.comm-empty td {
  text-align: center;
  padding: 64px 24px;
  color: var(--muted, #6e6e73);
  font-size: 15px;
  line-height: 1.6;
}
.comm-empty-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
}

.comm-skeleton-item td {
  padding: 16px 8px;
}
.comm-skeleton-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: commShimmer 1.4s infinite;
  border-radius: 6px;
  height: 13px;
  margin-bottom: 10px;
}
.comm-skeleton-line:last-child { margin-bottom: 0; }
.comm-skeleton-line.short  { width: 38%; }
.comm-skeleton-line.medium { width: 65%; }
.comm-skeleton-line.full   { width: 100%; }

@keyframes commShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================
   Quill 에디터 — 글쓰기 모달
   ========================================================= */
.comm-quill-wrap {
  margin-bottom: 16px;
}
.comm-quill-wrap .ql-toolbar {
  border-radius: 10px 10px 0 0;
  border: 1.5px solid var(--border, #e5e5e7);
  border-bottom: 1px solid var(--border, #e5e5e7);
  background: #f7f8fa;
}
.comm-quill-wrap .ql-container {
  border-radius: 0 0 10px 10px;
  border: 1.5px solid var(--border, #e5e5e7);
  border-top: none;
  min-height: 180px;
  font-size: 15px;
  font-family: 'Spoqa Han Sans Neo', 'Noto Sans KR', sans-serif;
}
.comm-quill-wrap .ql-editor {
  min-height: 180px;
  line-height: 1.7;
}
.comm-quill-wrap .ql-editor.ql-blank::before {
  color: var(--muted, #6e6e73);
  font-style: normal;
}
.comm-quill-wrap .ql-container:focus-within {
  border-color: var(--text, #111);
}

/* Quill 에디터 — 상세 본문 렌더링 */
.comm-quill-content p         { margin-bottom: 0.6em; line-height: 1.75; }
.comm-quill-content h2        { font-size: 18px; font-weight: 700; margin: 1em 0 0.4em; }
.comm-quill-content h3        { font-size: 16px; font-weight: 700; margin: 0.8em 0 0.4em; }
.comm-quill-content blockquote {
  border-left: 3px solid var(--border, #e5e5e7);
  padding-left: 14px;
  color: var(--muted, #6e6e73);
  margin: 0.6em 0;
}
.comm-quill-content pre       { background: #f4f4f6; padding: 12px; border-radius: 8px; font-size: 13px; overflow-x: auto; }
.comm-quill-content ul,
.comm-quill-content ol        { padding-left: 1.5em; margin-bottom: 0.6em; }
.comm-quill-content li        { margin-bottom: 0.2em; }
.comm-quill-content a         { color: #2563eb; text-decoration: underline; }
.comm-quill-content strong    { font-weight: 700; }

/* =========================================================
   페이지네이션
   ========================================================= */
.comm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .comm-pagination { margin-top: 12px; }
}

/* =========================================================
   검색 바
   ========================================================= */
.comm-search-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 480px;
  height: 42px;
  margin-top: 14px;
  margin-left: auto;
  margin-right: auto;
  border: 1.5px solid var(--border, #e5e5e7);
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
  box-sizing: border-box;
}
.comm-search-bar:focus-within {
  border-color: #999;
  background: #fff;
}

.comm-search-type {
  flex: 0 0 76px;
  padding: 0 8px 0 12px;
  border: none;
  border-right: 1.5px solid var(--border, #e5e5e7);
  font-size: 13px;
  font-family: inherit;
  color: var(--muted, #6e6e73);
  background: transparent;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.comm-search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 12px;
  border: none;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  outline: none;
  color: var(--text, #111);
}
.comm-search-input::placeholder { color: #c0c0c4; }

.comm-search-btn {
  flex: 0 0 42px;
  border: none;
  border-left: 1.5px solid var(--border, #e5e5e7);
  background: transparent;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.13s;
}
.comm-search-btn:hover { color: var(--text, #111); }

@media (max-width: 640px) {
  .comm-search-bar   { height: 40px; }
  .comm-search-type  { flex: 0 0 68px; font-size: 12px; padding: 0 6px 0 10px; }
  .comm-search-input { font-size: 13px; }
}

/* =========================================================
   글쓰기 FAB 버튼
   ========================================================= */
.comm-write-btn {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text, #111);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.15s;
  z-index: 100;
}
.comm-write-btn:hover { transform: scale(1.08); }
.comm-write-btn.hidden { display: none; }
.community-post-page .comm-post-write-fab {
  text-decoration: none;
}

/* =========================================================
   글쓰기 모달 (하단 시트)
   ========================================================= */
.comm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.comm-modal-backdrop.hidden { display: none; }

.comm-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 1100px;
  padding: 24px 20px 44px;
  max-height: 92vh;
  overflow-y: auto;
}

.comm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.comm-modal-title { font-size: 17px; font-weight: 700; }
.comm-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--muted, #6e6e73);
  padding: 4px 6px;
  line-height: 1;
}
.comm-modal-close:hover { color: var(--text, #111); }

.comm-modal-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted, #6e6e73);
  margin-bottom: 6px;
  display: block;
}

.comm-modal-select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border, #e5e5e7);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
  appearance: none;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  cursor: pointer;
}
.comm-modal-select:focus { outline: none; border-color: var(--text, #111); }

.comm-modal-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border, #e5e5e7);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.comm-modal-input:focus { outline: none; border-color: var(--text, #111); }

.comm-modal-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border, #e5e5e7);
  border-radius: 10px;
  font-size: 14px;
  min-height: 160px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 16px;
}
.comm-modal-textarea:focus { outline: none; border-color: var(--text, #111); }

.comm-modal-submit {
  width: 100%;
  padding: 14px;
  background: var(--text, #111);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.comm-modal-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.comm-char-count {
  text-align: right;
  font-size: 12px;
  color: var(--muted, #6e6e73);
  margin-top: -10px;
  margin-bottom: 14px;
}

/* =========================================================
   상세 페이지 — 뒤로가기
   ========================================================= */
.comm-post-nav {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border, #e5e5e7);
  border-bottom: 1px solid var(--border, #e5e5e7);
}

.comm-nav-btn {
  flex: 1;
  padding: 13px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted, #6e6e73);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.13s, background 0.13s;
  text-align: center;
}
.comm-nav-btn:hover:not(:disabled) { color: var(--text, #111); background: #f8f9fb; }
.comm-nav-btn:disabled { color: #ccc; cursor: default; }

.comm-nav-list {
  border-left: 1px solid var(--border, #e5e5e7);
  border-right: 1px solid var(--border, #e5e5e7);
  font-weight: 600;
  color: var(--text, #111);
}
.comm-nav-list:hover { background: #f8f9fb; }
/* 모바일 */
@media (max-width: 640px) {
  .comm-post-nav { border-top-color: #efefef; border-bottom-color: #efefef; }
  .comm-nav-list { border-left-color: #efefef; border-right-color: #efefef; }
  .comm-nav-btn  { padding: 13px 6px; font-size: 13px; }
}

/* =========================================================
   상세 페이지 — 게시글 본문
   ========================================================= */
.comm-detail-card {
  background: #fff;
  padding: 20px 0 0;
  margin-bottom: 0;
}

/* ── DC인사이드 스타일 헤더 ── */
.comm-detail-header {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* [말머리] 인라인 프리픽스 */
.comm-detail-cat-prefix {
  font-size: inherit;
  font-weight: 700;
  color: #555;
  margin-right: 2px;
}
.comm-detail-cat-prefix.notice { color: #e07400; }

.comm-detail-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border, #e5e5e7);
  letter-spacing: -0.3px;
  word-break: break-word;
}

/* 작성자 | 날짜 ↔ 조회 | 추천 | 댓글 */
.comm-detail-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #e5e5e7);
  flex-wrap: wrap;
  gap: 6px;
}

.comm-detail-info-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  line-height: 1;
}

.comm-detail-info-right {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: var(--muted, #6e6e73);
  line-height: 1;
}

.comm-info-sep {
  color: #d0d0d4;
  padding: 0 6px;
  font-size: 11px;
  line-height: 1;
}

.comm-detail-time {
  font-size: 12px;
  color: var(--muted, #6e6e73);
  line-height: 1;
}

/* 칩 내부 세로 정렬 보정 */
.comm-detail-info-left .comm-author-text {
  line-height: 1;
}

.comm-detail-cat-row  { display: none; }
.comm-detail-author-row { display: none; }
.comm-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ── 본문 + Teasing 오버레이 ── */
.comm-detail-content-wrap {
  position: relative;
  min-height: 80px;
  padding-top: 20px;
}

.comm-detail-content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text, #111);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
}
.comm-detail-content img,
.comm-quill-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 8px;
  object-fit: contain;
}
.comm-youtube-embed {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 18px 0 4px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}
.comm-youtube-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.comm-detail-content .ql-video,
.comm-detail-content iframe[src*="youtube.com/embed"],
.comm-detail-content iframe[src*="youtube-nocookie.com/embed"] {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 18px 0 4px;
  border: 0;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}
.comm-detail-content.blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  min-height: 140px;
}

.comm-detail-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
}
.comm-detail-lock-overlay.hidden { display: none; }

.comm-detail-lock-icon { font-size: 34px; }

.comm-detail-lock-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #111);
  line-height: 1.55;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* ── 좋아요 푸터 ── */
.comm-detail-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border, #e5e5e7);
}

.comm-like-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 32px;
  min-width: 124px;
  border-radius: 6px;
  border: 1.5px solid var(--border, #e5e5e7);
  background: #fff;
  cursor: pointer;
  transition: all 0.14s;
  font-family: inherit;
  color: var(--muted, #6e6e73);
  letter-spacing: -0.2px;
  -webkit-tap-highlight-color: transparent;
}
.comm-like-btn:active {
  transform: scale(0.97);
}
.comm-like-btn:hover:not(:disabled) {
  border-color: #aaa;
  background: #f8f9fb;
  color: var(--text, #111);
}
.comm-like-btn.liked {
  border-color: #ff4757;
  color: #ff4757;
  background: #fff5f6;
}
.comm-like-btn.is-pending {
  box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.1);
}
.comm-like-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.comm-detail-comment-count {
  font-size: 14px;
  color: var(--muted, #6e6e73);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =========================================================
   댓글 섹션
   ========================================================= */
.comm-comments-card {
  background: #fff;
  padding: 24px 0 8px;
  border-top: 1px solid #f1f1f1;
  margin-top: 8px;
}

.comm-comments-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  padding-bottom: 18px;
  border-bottom: none;
  margin-bottom: 0;
  color: #0f0f0f;
  letter-spacing: -0.02em;
}

/* ── 댓글 잠금 안내 (subs < 50) ── */
.comm-comments-locked {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted, #6e6e73);
  font-size: 14px;
  line-height: 1.6;
}
.comm-comments-locked-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

/* ── 댓글 목록 잠금 (구독자 미달) ── */
.comm-comment-list-wrap {
  position: relative;
}
.comm-comment-list-wrap.locked {
  overflow: hidden;
  min-height: 120px;
}
.comm-comment-list.blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  min-height: 120px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%),
                      linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: destination-in;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%),
              linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 8%, rgba(0,0,0,1) 92%, rgba(0,0,0,0) 100%);
  mask-composite: intersect;
}
.comm-comment-list-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
}
.comm-comment-list-lock-overlay .comm-detail-lock-icon {
  font-size: 20px;
}
.comm-comment-list-lock-overlay .comm-detail-lock-text {
  font-size: 12px;
  max-width: 220px;
}
.comm-comment-list-lock-overlay.standalone {
  position: static;
  padding: 28px 16px;
}
.comm-comment-list-lock-overlay.standalone .comm-detail-lock-icon {
  font-size: 26px;
}
.comm-comment-list-lock-overlay.standalone .comm-detail-lock-text {
  font-size: 13px;
}

/* ── 댓글 입력 ── */
.comm-comment-input-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 34px;
}

.comm-comment-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 0 8px;
  border: none;
  border-bottom: 1px solid #d9d9d9;
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  background: transparent;
}
.comm-comment-input:focus {
  outline: none;
  border-bottom-color: #0f0f0f;
}

.comm-comment-submit {
  padding: 0 18px;
  height: 34px;
  background: #0f0f0f;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: -0.2px;
  transition: background 0.14s, opacity 0.14s;
  flex-shrink: 0;
}
.comm-comment-submit:hover { background: #111; }
.comm-comment-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── 댓글 리스트 ── */
.comm-comment-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comm-comment-item {
  padding: 12px 0 10px;
  border-bottom: none;
}
.comm-comment-item:last-child { border-bottom: none; padding-bottom: 0; }
.comm-comment-item:first-child { padding-top: 0; }

.comm-comment-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  min-width: 0;
}

.comm-comment-meta .comm-author-text {
  padding: 1px 3px;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  gap: 2px;
}
.comm-comment-meta .comm-subs-chip {
  font-size: 10px;
  padding: 2px 6px;
  transform: none;
}
.comm-comment-meta .comm-author-text.comm-author-admin {
  color: #111;
  font-size: 12px;
  font-weight: 800;
  gap: 2px;
}

.comm-comment-time {
  font-size: 12px;
  color: #606060;
  margin-left: 0;
  flex-shrink: 0;
}

.comm-comment-author-badge {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 7px;
  border-radius: 3px;
  background: #0f0f0f;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.comm-comment-content {
  font-size: 14px;
  color: #0f0f0f;
  line-height: 1.62;
  word-break: break-word;
  margin: 0;
}

.comm-no-comments {
  text-align: center;
  padding: 24px 0 8px;
  font-size: 14px;
  color: var(--muted, #6e6e73);
}

/* =========================================================
   본인 글 수정/삭제 버튼 (게시글 푸터 우측)
   ========================================================= */
.comm-detail-footer {
  position: relative; /* own-actions 절대 위치 기준 */
}

.comm-post-own-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
}

.comm-own-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1.5px solid var(--border, #e5e5e7);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s;
  letter-spacing: -0.2px;
}

.comm-own-edit {
  color: #2563eb;
  border-color: #bfdbfe;
}
.comm-own-edit:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.comm-own-delete {
  color: #dc2626;
  border-color: #fecaca;
}
.comm-own-delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.comm-own-write {
  color: #111;
  border-color: #d1d5db;
}
.comm-own-write:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.comm-comment-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.comm-comment-reactions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.comm-comment-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #606060;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.comm-comment-react-btn:hover {
  background: #f2f2f2;
  color: #0f0f0f;
}
.comm-comment-react-btn.active {
  color: #0f0f0f;
  background: #f2f2f2;
}
.comm-comment-react-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.comm-react-count {
  min-width: 8px;
  font-weight: 700;
}

.comm-comment-reply-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #0f0f0f;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.comm-comment-reply-btn:hover {
  background: #f2f2f2;
  color: #111;
}

.comm-comment-replies {
  margin-top: 4px;
  margin-left: 24px;
  padding-left: 14px;
  border-left: 1px solid #e5e5e5;
}
.comm-comment-replies:empty {
  display: none;
}

.comm-comment-reply-item {
  padding: 10px 0 8px;
  border-bottom: none;
}
.comm-comment-reply-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comm-reply-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 2px 24px;
  padding-left: 14px;
}
.comm-reply-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 0 7px;
  border: none;
  border-bottom: 1px solid #d9d9d9;
  border-radius: 0;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
}
.comm-reply-input:focus {
  outline: none;
  border-bottom-color: #0f0f0f;
}
.comm-reply-submit,
.comm-reply-cancel {
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.comm-reply-submit {
  border: none;
  background: #0f0f0f;
  color: #fff;
}
.comm-reply-submit:hover { background: #111; }
.comm-reply-submit:disabled,
.comm-reply-cancel:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.comm-reply-cancel {
  border: none;
  background: transparent;
  color: #606060;
}
.comm-reply-cancel:hover {
  background: #f2f2f2;
  color: #111;
}

/* =========================================================
   댓글 케밥 메뉴 (본인 댓글)
   ========================================================= */
.comm-comment-actions {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

/* 3점 버튼 */
.comm-comment-kebab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  transition: background 0.14s;
}
.comm-comment-kebab:hover {
  background: #f2f2f2;
}
.comm-comment-kebab span {
  display: block;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #9ca3af;
}
.comm-comment-kebab:hover span {
  background: #4b5563;
}

/* =========================================================
   글쓴이 클릭 컨텍스트 메뉴
   ========================================================= */
.comm-author-text {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 1px 3px;
  transition: background 0.12s;
}
.comm-author-text:hover {
  background: #f0f1f3;
}

.comm-author-menu {
  position: absolute;
  z-index: 9000;
  background: #fff;
  border: 1px solid #e5e5e7;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  min-width: 160px;
  overflow: hidden;
  padding: 4px 0;
}
.comm-author-menu.hidden { display: none; }

.comm-author-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 13.5px;
  color: #222;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.1s;
}
.comm-author-menu-item:hover { background: #f5f6f8; }
.comm-author-menu-item.hidden { display: none; }

/* =========================================================
   내가 쓴 글 / 내 댓글 단 글 칩 구분선
   ========================================================= */
.comm-chip-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: #ddd;
  align-self: center;
  margin: 0 4px;
  flex-shrink: 0;
}
.comm-chip-mine { font-weight: 600; }

/* =========================================================
   작성자 필터 배너
   ========================================================= */
.comm-author-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #3730a3;
  font-weight: 500;
}
.comm-author-filter-bar.hidden { display: none; }

.comm-author-filter-clear {
  margin-left: auto;
  background: none;
  border: 1px solid #a5b4fc;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  color: #4f46e5;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.1s;
}
.comm-author-filter-clear:hover { background: #e0e7ff; }

/* 드롭다운 메뉴 */
.comm-comment-actions-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 90px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 200;
  overflow: hidden;
}
.comm-comment-actions-menu.hidden {
  display: none;
}
.comm-comment-actions-menu button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.1s;
  color: var(--text, #111);
}
.comm-comment-actions-menu button:hover {
  background: #f9fafb;
}
.comm-comment-action-delete {
  color: #dc2626 !important;
}
.comm-comment-action-delete:hover {
  background: #fef2f2 !important;
}

/* =========================================================
   댓글 인라인 수정 영역
   ========================================================= */
.comm-comment-edit-wrap {
  margin-top: 4px;
}

.comm-comment-edit-textarea {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1.5px solid #6366f1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.55;
  resize: none;
  box-sizing: border-box;
  outline: none;
  color: var(--text, #111);
  transition: border-color 0.14s;
}
.comm-comment-edit-textarea:focus {
  border-color: #4f46e5;
}

.comm-comment-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

.comm-comment-edit-cancel,
.comm-comment-edit-save {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.14s;
  letter-spacing: -0.2px;
}

.comm-comment-edit-cancel {
  border: 1.5px solid var(--border, #e5e5e7);
  background: #fff;
  color: var(--muted, #6e6e73);
}
.comm-comment-edit-cancel:hover {
  background: #f3f4f6;
  color: var(--text, #111);
}

.comm-comment-edit-save {
  border: none;
  background: #111;
  color: #fff;
}
.comm-comment-edit-save:hover { background: #333; }
.comm-comment-edit-save:disabled { opacity: 0.4; cursor: not-allowed; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 640px) {
  .community-post-page main {
    padding-top: 4px;
  }
  .comm-wrap,
  .comm-detail-wrap  { padding: 4px 6px 126px; }
  .comm-detail-title { font-size: 18px; }
  .comm-modal        { padding: 20px 16px 40px; }
  .comm-write-btn    { bottom: 20px; right: 14px; width: 48px; height: 48px; }
  .community-post-page .comm-post-write-fab {
    bottom: calc(74px + env(safe-area-inset-bottom));
    right: 14px;
    width: 46px;
    height: 46px;
    z-index: 79;
  }

  .comm-chip         { padding: 6px 12px; font-size: 12px; }
  .comm-filter-bar   { gap: 6px; margin-bottom: 10px; }

  .comm-pagination   { gap: 3px; flex-wrap: wrap; }
  .comm-page-btn     { min-width: 28px; height: 28px; font-size: 11px; border-radius: 6px; }
  .comm-page-ellipsis { padding: 0 2px; font-size: 12px; }

  /* 본인 글 수정/삭제 버튼 모바일 */
  .comm-post-own-actions {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
  }
  .comm-detail-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
  .comm-own-btn {
    flex: 1;
    justify-content: center;
    height: 38px;
  }

  .comm-comment-replies {
    margin-left: 14px;
    padding-left: 10px;
  }
  .comm-reply-form {
    margin-left: 14px;
    padding-left: 10px;
    flex-wrap: wrap;
  }
  .comm-reply-input {
    flex-basis: 100%;
  }

  .community-post-page .comm-comment-input-row {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #eceff3;
    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
  }
  .community-post-page .comm-comment-input {
    height: 38px;
    padding: 0 13px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 14px;
  }
  .community-post-page .comm-comment-input:focus {
    border-color: #111;
    background: #fff;
  }
  .community-post-page .comm-comment-submit {
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
  }

  /* 댓글 케밥 드롭다운 모바일 — 버튼 오른쪽 기준으로 화면 안쪽에 열림 */
  .comm-comment-actions-menu {
    right: 0;
    left: auto;
    min-width: 96px;
  }
}
