    .community-header {
      background: linear-gradient(135deg, rgba(124,77,255,0.12), rgba(77,158,255,0.08));
      padding: 24px;
      border-radius: var(--radius);
      margin-bottom: 20px;
      border: 1px solid var(--border);
      box-shadow: 0 4px 12px rgba(124,77,255,0.1);
    }
    .community-title {
      font-size: 1.3rem;
      font-weight: 900;
      color: var(--text);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .community-fandom-label {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--primary);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .community-fandom-dropdown {
      padding: 14px 16px;
      background: var(--card);
      border: 2px solid var(--border);
      border-radius: 10px;
      color: var(--text);
      font-family: inherit;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.2s;
      width: 100%;
    }
    .community-fandom-dropdown:hover {
      border-color: var(--primary);
      background: rgba(124,77,255,0.05);
    }
    .community-fandom-dropdown:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(124,77,255,0.15);
    }
    .community-fandom-dropdown option {
      background: var(--card);
      color: var(--text);
      padding: 8px;
    }
    .community-fandom-dropdown option:checked {
      background: var(--primary);
      color: #fff;
    }

    .community-new-post-btn {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, var(--primary), #6a3de8);
      border: none;
      border-radius: 10px;
      color: #fff;
      font-weight: 800;
      font-family: inherit;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 12px rgba(124,77,255,0.3);
      position: relative;
      overflow: hidden;
    }
    .community-new-post-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(124,77,255,0.4);
    }
    .community-new-post-btn:active {
      transform: translateY(0);
    }

    .community-posts-section {
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-top: 12px;
    }
    .community-posts-section h3 {
      font-size: 0.9rem;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .post-item {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
    }
    .post-item:hover {
      border-color: var(--primary);
      box-shadow: 0 4px 16px rgba(124,77,255,0.15);
      transform: translateY(-2px);
    }

    /* 리스트 형식 게시물은 카드 스타일 제거 */
    .post-item.post-list-compact {
      background: transparent;
      border: none;
      border-radius: 0;
      padding: 12px 16px;
      overflow: visible;
    }
    .post-item.post-list-compact:hover {
      box-shadow: none;
      transform: none;
    }
    .post-item.post-list-compact::before {
      display: none;
    }

    /* ── 컴팩트 게시물 목록 (테이블 스타일) ── */
    .post-list-compact {
      padding: 12px 16px;
      display: flex;
      gap: 16px;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      border: none;
      border-bottom: 1px solid rgba(153, 153, 187, 0.3);
      background: transparent;
      border-radius: 0;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .post-list-compact:hover {
      background: rgba(124,77,255,0.08);
      transform: translateX(4px);
    }
    .post-list-title {
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--text);
      word-break: break-word;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      flex: 1;
    }
    .post-list-meta-row {
      display: flex;
      gap: 16px;
      align-items: center;
      flex-shrink: 0;
      flex-wrap: nowrap;
      justify-content: flex-end;
      white-space: nowrap;
    }
    .post-list-meta {
      font-size: 0.8rem;
      color: var(--muted);
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .post-list-left {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      flex: 1;
      min-width: 0;
    }
    .post-number {
      background: linear-gradient(135deg, rgba(124, 77, 255, 0.2) 0%, rgba(100, 150, 255, 0.15) 100%);
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--primary);
      white-space: nowrap;
      min-width: 45px;
      text-align: center;
    }
    .post-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
    }
    .post-list-indicators {
      display: flex;
      gap: 6px;
      align-items: center;
      flex-shrink: 0;
    }
    .post-comment-badge {
      font-size: 0.75rem;
      color: var(--primary);
      font-weight: 600;
      white-space: nowrap;
    }
    .post-image-badge {
      font-size: 0.85rem;
      color: var(--muted);
    }
    .post-meta-row-mobile {
      display: flex;
      gap: 4px;
      align-items: center;
      font-size: 0.8rem;
      flex-wrap: wrap;
    }
    .post-list-meta-divider {
      color: rgba(153, 153, 187, 0.8);
      font-size: 1rem;
      font-weight: 400;
      line-height: 0.8;
    }
    @media (max-width: 768px) {
      .post-list-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 12px;
      }
      .post-number {
        display: none;
      }
      .post-list-left {
        width: 100%;
        flex-direction: column;
        gap: 4px;
      }
      .post-title-row {
        margin-bottom: 4px;
      }
      .post-list-title {
        font-size: 0.9rem;
      }
      .post-meta-row-mobile {
        width: 100%;
        font-size: 0.8rem;
        gap: 5px;
      }
      .post-list-meta {
        font-size: 0.8rem;
      }
      .post-list-meta-divider {
        font-size: 1rem;
      }
    }
    .post-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, var(--pink), var(--primary), var(--blue));
      opacity: 0;
      transition: opacity 0.2s;
    }
    .post-item:hover::before {
      opacity: 1;
    }

    .post-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 14px;
      gap: 12px;
    }
    .post-header > div:first-child {
      flex: 1;
      min-width: 0;
    }
    .post-title {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--text);
      word-break: break-word;
      line-height: 1.4;
      margin-bottom: 8px;
    }
    .post-meta {
      display: flex;
      gap: 12px;
      align-items: center;
      font-size: 0.85rem;
      color: var(--muted);
      flex-wrap: wrap;
    }
    .post-author {
      font-weight: 700;
      color: var(--primary);
      padding: 2px 8px;
      background: rgba(124,77,255,0.1);
      border-radius: 4px;
    }
    .post-date {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .post-content {
      font-size: 0.95rem;
      line-height: 1.6;
      color: var(--text);
      margin-bottom: 14px;
      word-break: break-word;
      max-height: none;
      overflow: visible;
    }
    .post-image {
      width: 100%;
      border-radius: 10px;
      margin-bottom: 14px;
      max-height: 350px;
      object-fit: cover;
      border: 1px solid var(--border);
    }

    .post-actions {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--border);
    }
    .post-action-btn {
      padding: 10px 12px;
      background: transparent;
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--muted);
      font-size: 0.85rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: all 0.15s;
      min-height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .post-action-btn:hover {
      border-color: var(--primary);
      color: var(--primary);
      background: rgba(124,77,255,0.08);
    }
    .post-action-btn.danger {
      color: #ff4d4d;
      border-color: #ff4d4d55;
    }
    .post-action-btn.danger:hover {
      background: rgba(255,77,77,0.1);
      border-color: #ff4d4d;
    }

    .community-empty {
      text-align: center;
      padding: 60px 20px;
      color: var(--muted);
      background: linear-gradient(135deg, rgba(124,77,255,0.04), rgba(77,158,255,0.02));
      border: 1px dashed var(--border);
      border-radius: 16px;
      margin-top: 20px;
    }
    .community-empty-icon {
      font-size: 3rem;
      margin-bottom: 16px;
      display: inline-block;
      animation: float 3s ease-in-out infinite;
    }
    .community-empty-text {
      font-size: 1rem;
      line-height: 1.6;
      color: var(--text);
      font-weight: 500;
    }

    /* ── 게시물 작성 모달 ── */
    #postCreateModal {
      position: fixed !important;
      inset: 0 !important;
      background: rgba(0,0,0,0.7) !important;
      z-index: 999 !important;
      padding: 16px !important;
      align-items: center !important;
      justify-content: center !important;
      overflow-y: auto !important;
    }
    #postCreateModal > div {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px;
      width: 100%;
      max-width: 500px;
      max-height: 90vh;
      overflow-y: auto;
      animation: slideUp 0.3s ease;
    }
    #postCreateModal h2 {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text);
      margin: 0;
    }
    #postCreateModal input,
    #postCreateModal textarea {
      width: 100%;
      padding: 10px 12px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-family: inherit;
      font-size: 0.95rem;
      transition: all 0.15s;
    }
    #postCreateModal input:focus,
    #postCreateModal textarea:focus {
      outline: none;
      border-color: var(--primary);
      background: rgba(124,77,255,0.05);
    }
    #postCreateModal textarea {
      resize: vertical;
      min-height: 150px;
    }
    #imageUploadArea {
      position: relative;
      border: 2px dashed var(--border);
      border-radius: 8px;
      padding: 20px;
      text-align: center;
      background: rgba(124,77,255,0.03);
      cursor: pointer;
      transition: all 0.15s;
    }
    #imageUploadArea:hover {
      border-color: var(--primary);
      background: rgba(124,77,255,0.08);
    }

    /* 게시물 상세 페이지 */
    .post-detail-page {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--bg);
      z-index: 100;
      overflow: hidden; /* ← 외부 스크롤 차단, 내부 컨테이너만 스크롤 */
      display: flex;
      flex-direction: column;
    }

    .post-detail-header {
      position: sticky;
      top: 0;
      background: var(--card);
      border-bottom: 1px solid rgba(153, 153, 187, 0.3);
      padding: 12px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 101;
    }

    .back-btn {
      background: none;
      border: none;
      color: var(--primary);
      font-size: 1.5rem;
      cursor: pointer;
      padding: 8px;
      transition: all 0.2s;
    }

    .back-btn:hover {
      transform: scale(1.1);
      background: rgba(124,77,255,0.1);
      border-radius: 8px;
    }

    .post-detail-container {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch; /* iOS 모멘텀 스크롤 */
      scroll-behavior: smooth;
      padding: 16px;
      padding-bottom: 90px; /* sticky 바 높이만큼 여유 */
      max-width: 800px;
      margin: 0 auto;
      width: 100%;
    }

    /* 하단 sticky 액션 바 */
    .post-detail-sticky-bottom {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      padding-bottom: max(10px, env(safe-area-inset-bottom));
      background: var(--card);
      border-top: 1px solid var(--border);
      box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
    }
    .sticky-like-btn {
      display: flex; align-items: center; gap: 5px;
      background: rgba(255,100,100,0.08);
      border: 1px solid rgba(255,100,100,0.2);
      border-radius: 20px;
      padding: 7px 14px;
      cursor: pointer;
      color: var(--text);
      font-size: 0.9rem;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
      transition: all 0.2s;
    }
    .sticky-like-btn.liked {
      background: rgba(255,80,80,0.25);
      border-color: rgba(255,80,80,0.55);
    }
    .sticky-like-btn:hover { opacity: 0.8; }
    .sticky-comment-bar {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(124,77,255,0.07);
      border: 1px solid rgba(124,77,255,0.2);
      border-radius: 20px;
      padding: 8px 14px;
      cursor: text;
      min-width: 0;
    }
    .sticky-comment-bar textarea {
      flex: 1; background: none; border: none; outline: none;
      color: var(--text); font-family: inherit; font-size: 0.88rem;
      resize: none; height: 22px; line-height: 22px;
      padding: 0; overflow: hidden;
    }
    .sticky-comment-bar textarea::placeholder { color: var(--muted); }
    .sticky-comment-submit {
      background: var(--primary); border: none; border-radius: 14px;
      color: #fff; font-weight: 700; font-size: 0.82rem; font-family: inherit;
      padding: 5px 12px; cursor: pointer; white-space: nowrap;
      transition: all 0.2s; flex-shrink: 0; display: none;
    }
    .sticky-comment-submit.visible { display: block; }

    .post-detail-info {
      margin-bottom: 16px;
      padding-bottom: 16px;
      border-bottom: 2px solid rgba(124,77,255,0.3);
    }

    .post-detail-info h1 {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 8px;
      word-break: break-word;
    }

    .post-detail-meta {
      display: flex;
      gap: 12px;
      font-size: 0.85rem;
      color: var(--muted);
      flex-wrap: wrap;
    }

    .post-detail-actions {
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
      padding: 16px 0;
      border-bottom: 2px solid rgba(124,77,255,0.3);
      flex-wrap: wrap;
    }

    .post-detail-content {
      min-height: 160px;
      padding: 20px 16px;
      background: rgba(124,77,255,0.06);
      border-left: 3px solid rgba(124,77,255,0.3);
      border-radius: 8px;
      margin-bottom: 20px;
      line-height: 1.6;
      color: var(--text);
      word-break: break-word;
      white-space: pre-wrap;
    }

    .post-detail-content img {
      max-width: 100%;
      border-radius: 8px;
      margin-bottom: 16px;
    }

    .post-detail-comments {
      margin-top: 20px;
    }

    /* ── 모바일 최적화 ── */
    @media (max-width: 480px) {
      /* 헤더 영역 압축 */
      .community-header {
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 10px;
      }
      .community-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
      }
      .community-fandom-label {
        font-size: 0.75rem;
        margin-bottom: 5px;
      }
      .community-fandom-dropdown {
        padding: 8px 10px;
        font-size: 0.875rem;
        border-radius: 8px;
        margin-bottom: 6px;
        border-width: 1.5px;
      }
      .community-new-post-btn {
        padding: 9px;
        font-size: 0.875rem;
        border-radius: 8px;
      }
      /* 게시글 목록 간격 압축 */
      .community-posts-section {
        gap: 0;
        margin-top: 4px;
      }
      .post-list-compact {
        padding: 9px 10px;
        gap: 3px;
      }
      .post-list-title {
        font-size: 0.875rem;
      }
      .post-meta-row-mobile {
        font-size: 0.72rem;
        gap: 3px;
      }
      .post-list-meta {
        font-size: 0.72rem;
      }
      /* 게시글 상세 */
      .post-item { padding: 12px; gap: 6px; }
      .post-title { font-size: 0.95rem; }
      .post-meta { font-size: 0.75rem; gap: 6px; flex-wrap: wrap; }
      .post-content { font-size: 0.875rem; line-height: 1.5; }
      .post-image { max-height: 220px; }
      .post-actions { grid-template-columns: repeat(2, 1fr); gap: 5px; }
      .post-action-btn { font-size: 0.78rem !important; padding: 7px 6px !important; min-height: 36px; gap: 4px !important; }
      /* 상세 페이지 */
      .post-detail-info h1 { font-size: 1.1rem; margin-bottom: 5px; }
      .post-detail-meta { font-size: 0.75rem; gap: 8px; }
      .post-detail-content { padding: 10px 10px; font-size: 0.9rem; margin-bottom: 12px; }
      .post-detail-actions { padding: 8px 0; margin-bottom: 10px; gap: 6px; }
      .post-detail-comments { margin-top: 12px; }
      /* 글쓰기/새로고침 버튼 */
      #communityWriteArea { margin-bottom: 10px !important; gap: 8px !important; }
      #communityWriteBtn { padding: 9px 12px !important; font-size: 0.875rem !important; border-radius: 9px !important; }
      #communityRefreshBtn { padding: 9px 12px !important; font-size: 0.95rem !important; border-radius: 9px !important; }
      /* 정렬 버튼 */
      #sortButtonGroup { margin-bottom: 10px !important; gap: 6px !important; }
      #sortButtonGroup button { padding: 8px 6px !important; font-size: 0.8rem !important; min-width: 0 !important; border-radius: 8px !important; }
      /* 모달 */
      #postCreateModal > div { max-width: 95%; max-height: 85vh; padding: 14px; border-radius: 12px; }
      #postCreateModal { padding: 10px !important; }
    }

    @media (max-width: 768px) {
      .post-detail-page {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
      }
      .post-detail-container {
        padding: 12px;
      }
      .post-detail-info {
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 2px solid rgba(124,77,255,0.3);
      }
      .post-detail-info h1 {
        font-size: 1.25rem;
        margin-bottom: 6px;
      }
      .post-detail-meta {
        font-size: 0.8rem;
      }
      .post-detail-actions {
        margin-bottom: 16px;
        padding: 12px 0;
        border-bottom: 2px solid rgba(124,77,255,0.3);
      }
      .post-detail-content {
        min-height: 140px;
        padding: 16px 14px;
      }
      .post-detail-container { padding-bottom: 80px; }
      .post-detail-header {
        padding: 10px 12px;
      }
    }

    /* ── 팬덤 탭 바 ── */
    .fandom-tab-bar {
      display: flex;
      gap: 0;
      overflow: hidden;
      padding: 0;
      margin-bottom: 14px;
      border-bottom: 1px solid var(--border);
    }

    .fandom-tab {
      flex: 1;
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      padding: 10px 4px;
      border: none;
      border-bottom: 3px solid transparent;
      background: transparent;
      color: var(--muted);
      font-family: inherit;
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.15s;
      overflow: hidden;
      margin-bottom: -1px;
    }
    .fandom-tab .tab-label {
      display: block;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 100%;
      padding: 0 2px;
    }
    .fandom-tab .tab-sub {
      display: block;
      font-size: 0.58rem;
      opacity: 0.65;
      margin-top: 1px;
    }
    .fandom-tab:hover { color: var(--primary); }
    .fandom-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
      font-weight: 700;
      background: rgba(124,77,255,0.04);
    }

    /* ── 팬덤 배지 (전체 피드, 제목 옆 인라인) ── */
    .fandom-badge {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      padding: 2px 7px 2px 5px;
      border-radius: 10px;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.1px;
      border-width: 1px;
      border-style: solid;
      flex-shrink: 0;
      white-space: nowrap;
    }

    /* ── 전체 피드 더 보기 버튼 ── */
    .load-more-feed-btn {
      width: 100%;
      padding: 14px 20px;
      margin-top: 8px;
      background: rgba(124,77,255,0.07);
      border: 1.5px solid rgba(124,77,255,0.22);
      border-radius: 12px;
      color: var(--primary);
      font-family: inherit;
      font-weight: 700;
      font-size: 0.9rem;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .load-more-feed-btn:hover {
      background: rgba(124,77,255,0.14);
      border-color: rgba(124,77,255,0.45);
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(124,77,255,0.15);
    }
    .load-more-feed-btn:active {
      transform: translateY(0);
    }

    @media (max-width: 480px) {
      .fandom-tab { padding: 9px 2px; font-size: 0.68rem; }
      .fandom-tab-bar { margin-bottom: 10px; }
      .fandom-badge { font-size: 0.68rem; padding: 2px 6px 2px 5px; }
      .load-more-feed-btn { padding: 12px 16px; font-size: 0.85rem; }
    }

    /* ── HOT 배지 ── */
    .hot-badge {
      display: inline-flex; align-items: center; gap: 2px;
      background: linear-gradient(135deg, #ff5722, #ff9800);
      color: #fff; font-size: 0.62rem; font-weight: 800;
      padding: 2px 6px; border-radius: 6px; flex-shrink: 0;
      letter-spacing: 0.3px; box-shadow: 0 2px 6px rgba(255,87,34,0.4);
      animation: hotPulse 2s ease-in-out infinite;
    }
    @keyframes hotPulse {
      0%, 100% { box-shadow: 0 2px 6px rgba(255,87,34,0.4); }
      50% { box-shadow: 0 2px 12px rgba(255,87,34,0.7); }
    }

    /* ── 게시글 썸네일 ── (모바일 포함 항상 row 유지) */
    .post-list-compact { display: flex; align-items: center; gap: 12px; flex-direction: row; }
    .post-list-left { flex: 1; min-width: 0; }
    .post-thumbnail-wrap {
      flex-shrink: 0; width: 64px; height: 64px;
      border-radius: 8px; overflow: hidden;
      border: 1px solid var(--border);
    }
    .post-thumbnail-img {
      width: 100%; height: 100%; object-fit: cover;
      display: block; transition: transform 0.2s;
    }
    .post-item:hover .post-thumbnail-img { transform: scale(1.06); }

    /* ── 대댓글(답글) ── */
    .reply-section { margin-top: 8px; padding-left: 20px; border-left: 2px solid rgba(124,77,255,0.2); }
    .reply-toggle-btn {
      background: none; border: none; color: var(--primary);
      font-size: 0.78rem; font-weight: 600; cursor: pointer;
      padding: 4px 0; display: flex; align-items: center; gap: 4px;
      transition: opacity 0.2s;
    }
    .reply-toggle-btn:hover { opacity: 0.7; }
    .reply-item {
      padding: 8px 10px; background: rgba(124,77,255,0.05);
      border-radius: 8px; margin-bottom: 6px; font-size: 0.85rem;
    }
    .reply-input-area {
      display: none; margin-top: 8px; gap: 6px; flex-direction: column;
    }
    .reply-input-area.open { display: flex; }
    .reply-textarea {
      width: 100%; padding: 8px 10px; background: var(--bg);
      border: 1px solid rgba(124,77,255,0.3); border-radius: 8px;
      color: var(--text); font-family: inherit; font-size: 0.85rem;
      resize: none; min-height: 56px;
    }
    .reply-submit-btn {
      align-self: flex-end; padding: 7px 16px;
      background: var(--primary); border: none; border-radius: 8px;
      color: #fff; font-weight: 700; font-family: inherit;
      font-size: 0.82rem; cursor: pointer;
    }

    /* ── 맨 위로 버튼 ── */
    .scroll-to-top-btn {
      position: fixed; bottom: 80px; right: 18px; z-index: 900;
      width: 44px; height: 44px; border-radius: 50%;
      background: var(--primary); color: #fff; border: none;
      font-size: 1.2rem; font-weight: 700; cursor: pointer;
      display: none; align-items: center; justify-content: center;
      box-shadow: 0 4px 16px rgba(124,77,255,0.45);
      transition: all 0.2s; opacity: 0.9;
    }
    .scroll-to-top-btn:hover { opacity: 1; transform: translateY(-2px); }
    .scroll-to-top-btn.visible { display: flex; }

    /* ── 알림 벨 ── */
    .notif-bell-wrap { position: relative; flex-shrink: 0; }
    .notif-bell-btn {
      background: rgba(124,77,255,0.12); border: 1px solid rgba(124,77,255,0.25);
      border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--text);
      font-size: 1rem; line-height: 1; transition: all 0.2s;
      display: flex; align-items: center; gap: 4px;
    }
    .notif-bell-btn:hover { background: rgba(124,77,255,0.22); }
    .notif-badge {
      background: #e53935; color: #fff; font-size: 0.65rem; font-weight: 800;
      border-radius: 10px; padding: 1px 5px; min-width: 16px; text-align: center;
      line-height: 1.4;
    }
    .notif-panel {
      display: none; position: absolute; top: calc(100% + 8px); right: 0;
      width: 300px; max-height: 360px; overflow-y: auto;
      background: var(--card); border: 1px solid var(--border);
      border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
      z-index: 800; padding: 8px 0;
    }
    .notif-panel.open { display: block; }
    .notif-panel-header {
      padding: 10px 14px 6px; font-weight: 700; font-size: 0.85rem;
      color: var(--muted); border-bottom: 1px solid var(--border); margin-bottom: 4px;
      display: flex; justify-content: space-between; align-items: center;
    }
    .notif-item {
      padding: 10px 14px; cursor: pointer; transition: background 0.15s;
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .notif-item:hover { background: rgba(124,77,255,0.08); }
    .notif-item.unread { background: rgba(124,77,255,0.06); }
    .notif-item-text { font-size: 0.82rem; color: var(--text); line-height: 1.4; }
    .notif-item-time { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
    .notif-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 0.85rem; }

    @media (max-width: 480px) {
      .post-thumbnail-wrap { width: 52px; height: 52px; }
      .scroll-to-top-btn { bottom: 70px; right: 12px; width: 40px; height: 40px; font-size: 1rem; }
      .notif-panel { width: 260px; }
    }

    /* ── 게시글 본문 미리보기 (1줄) ── */
    .post-content-preview {
      font-size: 0.8rem;
      color: var(--muted);
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      line-height: 1.45;
      max-width: 100%;
      opacity: 0.8;
      margin-top: 1px;
    }
    @media (max-width: 480px) {
      .post-content-preview { font-size: 0.74rem; }
    }

    /* ── 날짜 구분선 ── */
    .date-separator {
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--muted);
      padding: 12px 16px 4px;
      letter-spacing: 0.8px;
      opacity: 0.6;
      user-select: none;
      pointer-events: none;
    }
    .date-separator:first-child {
      padding-top: 4px;
    }
    @media (max-width: 480px) {
      .date-separator { padding: 10px 12px 3px; font-size: 0.65rem; }
    }

    /* ── 우하단 FAB 글쓰기 버튼 ── */
    #communityFAB {
      position: fixed;
      bottom: 134px;
      right: 20px;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary) 0%, rgba(100,55,215,0.9) 100%);
      border: none;
      color: #fff;
      font-size: 1.25rem;
      cursor: pointer;
      z-index: 490;
      box-shadow: 0 6px 20px rgba(124,77,255,0.52);
      display: none;
      align-items: center;
      justify-content: center;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      line-height: 1;
    }
    #communityFAB:hover {
      transform: scale(1.12) translateY(-3px);
      box-shadow: 0 10px 28px rgba(124,77,255,0.62);
    }
    #communityFAB:active {
      transform: scale(0.93);
      box-shadow: 0 3px 10px rgba(124,77,255,0.4);
    }
    @media (max-width: 480px) {
      #communityFAB { width: 46px; height: 46px; font-size: 1.1rem; bottom: 120px; right: 14px; }
    }
