/* ===== BOOK DETAIL ===== */

/* ── 성인 블러 오버레이 ── */
.adult-blur-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8,8,15,.95);
  display: flex; align-items: center; justify-content: center;
}
.blur-message-box { text-align: center; padding: 40px 32px; max-width: 360px; }
.blur-icon { font-size: 3rem; margin-bottom: 16px; }
.blur-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.blur-subtitle { font-size: .9rem; color: var(--text-secondary); margin-bottom: 24px; }
.blur-btn {
  display: inline-block; padding: 10px 28px;
  background: var(--accent); color: #fff; text-decoration: none;
  border-radius: 10px; font-size: .9rem; font-weight: 600;
}

/* ── 페이지 레이아웃 ── */
.bd-page {
  max-width: 1400px; margin: 0 auto;
  padding: 40px 40px 80px;
}
.bd-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.bd-main { min-width: 0; }

/* ── 표지 + 제목 (bd-main 상단) ── */
.bd-book-top {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.bd-book-top .bd-cover-box {
  width: 180px;
  flex-shrink: 0;
}
.bd-book-header { flex: 1; min-width: 0; padding-top: 4px; }

/* ── 제목 / 장르 ── */
.bd-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem; font-weight: 800;
  color: var(--text-primary); line-height: 1.25;
  margin-bottom: 14px;
}
.bd-genres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.genre-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
  border: 1px solid transparent;
  letter-spacing: .04em;
}
.bd-hashtag { font-size: .78rem; color: var(--text-muted); font-weight: 500; }
.bd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; margin-bottom: 16px; }
.bd-desc-top { margin-top: 0; }

/* ── 섹션 공통 ── */
.bd-section { margin-bottom: 40px; }
.bd-section-title {
  font-size: 1rem; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.bd-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bd-section-head .bd-section-title { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.bd-desc { font-size: .92rem; color: var(--text-secondary); line-height: 1.85; }

/* ── 버튼 공통 ── */
.bd-btn-sm {
  padding: 5px 14px; border-radius: 8px;
  background: var(--accent); color: #fff; border: none;
  font-size: .78rem; font-weight: 600; cursor: pointer;
}
.bd-btn-primary {
  padding: 9px 20px; border-radius: 4px;
  background: #111; color: #fff; border: none;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.bd-btn-primary:hover { background: #5b4cf5; }
.bd-btn-outline {
  padding: 9px 20px; border-radius: 4px;
  background: transparent; color: #555;
  border: 1px solid #bbb;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: border-color .15s, color .15s;
}
.bd-btn-outline:hover { border-color: #333; color: #111; }
.bd-del-btn {
  padding: 4px 10px; border-radius: 4px;
  background: transparent; color: #dc2626;
  border: 1px solid #fca5a5;
  font-size: .75rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .15s;
}
.bd-del-btn:hover { background: rgba(220,38,38,.07); }

/* ── 공지사항 ── */
.announcement-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
}
.announcement-card.pinned { background: rgba(91,76,245,.1); }
.pin-badge { font-size: .72rem; color: var(--accent); font-weight: 700; display: block; margin-bottom: 6px; }
.announcement-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.announcement-title { font-size: .92rem; font-weight: 700; color: var(--text-primary); }
.announcement-date { font-size: .75rem; color: var(--text-muted); }
.announcement-body { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 10px; }
.announcement-footer { display: flex; justify-content: space-between; align-items: center; }
.announcement-author { font-size: .78rem; color: var(--text-muted); font-style: italic; }

/* ── 에피소드 목록 ── */
.episodes-grid { display: flex; flex-direction: column; gap: 4px; }
.episode-wrapper { display: flex; align-items: center; gap: 6px; }
.drag-handle {
  color: var(--text-muted); cursor: grab; padding: 6px 4px;
  flex-shrink: 0; opacity: .5;
}
.drag-handle:hover { opacity: 1; }
.episode-card {
  flex: 1; display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--bg-card);
  text-decoration: none; color: var(--text-primary);
  transition: background .15s;
  min-width: 0;
}
.episode-card:hover { background: var(--bg-card-hover); }
.ep-thumb {
  width: 38px; height: 50px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  background: rgba(91,76,245,.15);
  display: flex; align-items: center; justify-content: center;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-num-text { font-size: .7rem; font-weight: 700; color: var(--accent); }
.episode-info { flex: 1; min-width: 0; }
.episode-title { font-size: .9rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.episode-meta { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }
.episode-play-icon { color: var(--accent); font-size: .85rem; flex-shrink: 0; }
.ep-owner-btns { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
/* 수정·삭제·번역이 높이와 모서리가 제각각이라 줄이 어수선했다 → 한 벌로 맞춘다 */
.ep-owner-btns > .ep-btn-edit,
.ep-owner-btns > .ep-btn-del,
.ep-owner-btns > .ep-btn-translate {
  height: 26px; padding: 0 10px; border-radius: 7px;
  font-size: .72rem; font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.ep-btn-edit {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(99,102,241,.15); color: #818cf8;
  font-size: .72rem; font-weight: 600; text-decoration: none;
}
.ep-btn-del {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(239,68,68,.12); color: #f87171;
  border: none; font-size: .72rem; font-weight: 600; cursor: pointer;
}

/* ── 페이지네이션 ── */
.bd-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  background: var(--bg-card); border-radius: 8px;
  color: var(--text-muted); text-decoration: none;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s; border: none;
}
.page-btn:hover, .page-btn.active { background: var(--accent); color: #fff; }

/* ── 리뷰 작성 ── */
.star-rating-input { display: flex; gap: 8px; margin-bottom: 12px; }
.star { font-size: 1.6rem; cursor: pointer; color: var(--text-muted); transition: color .1s; }
.star.selected, .star:hover { color: #facc15; }
.review-textarea {
  width: 100%; min-height: 90px;
  background: var(--bg-card); border: none;
  border-radius: 10px; padding: 12px 14px;
  color: var(--text-primary); font-size: .88rem;
  resize: vertical; outline: none; font-family: inherit;
  margin-bottom: 10px; display: block;
}
.review-textarea:focus { background: var(--bg-card-hover); }
.review-textarea::placeholder { color: var(--text-muted); }
.submit-review-btn {
  padding: 9px 22px; background: var(--accent);
  border: none; color: #fff; border-radius: 10px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
}

/* ── 리뷰 목록 ── */
.review-item { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.reviewer-info { display: flex; align-items: center; gap: 8px; }
.reviewer-name { font-size: .85rem; font-weight: 700; color: var(--text-primary); }
.review-stars { font-size: .85rem; color: #facc15; }
.review-date { font-size: .75rem; color: var(--text-muted); }
.review-text { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; }

/* ── 독자 통계 ── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.glass-card {
  background: var(--bg-card); border-radius: 14px;
  padding: 20px;
}
.glass-card.tint-violet { background: rgba(91,76,245,.1); }
.glass-card.tint-cyan { background: rgba(6,182,212,.07); }
.card-label { display: flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--text-muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.card-label-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.donut-wrapper { display: flex; align-items: center; gap: 16px; }
.donut-svg-wrap { position: relative; flex-shrink: 0; }
.donut-center-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-num { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.small-txt { font-size: .65rem; color: var(--text-muted); }
.donut-legend { display: flex; flex-direction: column; gap: 6px; }
.bar-chart-wrap { display: flex; flex-direction: column; gap: 8px; }

/* ── 댓글 ── */
.comment-input {
  width: 100%; min-height: 80px;
  background: var(--bg-card); border: none;
  border-radius: 10px; padding: 12px 14px;
  color: var(--text-primary); font-size: .88rem;
  resize: vertical; outline: none; font-family: inherit;
  margin-bottom: 8px; display: block;
}
.comment-input:focus { background: var(--bg-card-hover); }
.comment-input::placeholder { color: var(--text-muted); }
.submit-comment-btn {
  padding: 8px 20px; background: var(--accent);
  border: none; color: #fff; border-radius: 10px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
}
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.comment-item:last-child { border-bottom: none; }
.comment-author { font-size: .85rem; font-weight: 700; color: var(--text-primary); }
.comment-date { font-size: .75rem; color: var(--text-muted); }
.comment-text { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }
.comment-reply { margin-top: 10px; padding: 10px 14px; background: var(--bg-tertiary); border-radius: 8px; }

/* ── 사이드바 ── */
.bd-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }

.bd-cover-box {
  width: 100%; overflow: hidden;
  aspect-ratio: 2/3; background: var(--bg-card);
  border-radius: 14px;
}
.bd-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(91,76,245,.15), rgba(59,130,246,.08));
  font-size: 2.5rem; font-weight: 800; color: var(--text-muted);
}

.bd-sidebar-card {
  background: var(--bg-card); border-radius: 14px; padding: 16px;
}
.bd-rating-card { text-align: center; padding: 18px 16px; }
.bd-rating-num { display: block; font-size: 2.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.bd-rating-stars { display: flex; justify-content: center; gap: 4px; margin: 8px 0; font-size: 1.1rem; color: var(--text-muted); }
.bd-rating-stars .active { color: #facc15; }
.bd-rating-count { font-size: .78rem; color: var(--text-muted); }

.bd-sidebar-actions { display: flex; flex-direction: column; gap: 8px; }
.bd-btn-continue {
  display: block; text-align: center;
  padding: 11px 16px; border-radius: 12px;
  background: var(--accent); color: #fff;
  text-decoration: none; font-size: .9rem; font-weight: 700;
  transition: opacity .2s;
}
.bd-btn-continue:hover { opacity: .88; }
.bd-btn-bookmark {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px;
  background: var(--bg-tertiary); color: var(--text-secondary);
  border: none; font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.bd-btn-bookmark:hover, .bd-btn-bookmark.bookmarked { background: rgba(91,76,245,.2); color: var(--accent); }
.bd-btn-share {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 12px;
  background: var(--bg-tertiary); color: var(--text-muted);
  border: none; font-size: .85rem; cursor: pointer;
  transition: background .2s;
}
.bd-btn-share:hover { background: var(--bg-hover); color: var(--text-primary); }

.bd-info-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.bd-info-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border-color); }
.bd-info-row:last-child { border-bottom: none; }
.bd-info-key { font-size: .82rem; color: var(--text-muted); }
.bd-info-val { font-size: .82rem; font-weight: 600; color: var(--text-primary); }

.status-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.status-badge.ongoing { background: rgba(22,163,74,.12); color: #16a34a; }
.status-badge.paused  { background: rgba(217,119,6,.12);  color: #b45309; }
.status-badge.ended   { background: rgba(100,116,139,.12); color: #64748b; }

.bd-author-card { }
.bd-author-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.bd-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), rgba(59,130,246,.5));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.bd-author-name { font-size: .9rem; font-weight: 700; color: var(--text-primary); }
.bd-author-sub  { font-size: .75rem; color: var(--accent); margin-top: 2px; }

.bd-related-item { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); margin-bottom: 10px; }
.bd-related-item:last-child { margin-bottom: 0; }
.bd-related-thumb {
  width: 34px; height: 46px; flex-shrink: 0;
  border-radius: 5px; overflow: hidden;
  object-fit: cover;
}
.bd-related-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: rgba(91,76,245,.2); font-size: .8rem; font-weight: 700; color: var(--accent);
}
.bd-related-title { font-size: .84rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.bd-related-title:hover { color: var(--accent); }
.bd-related-meta { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }

/* ── 작가 목소리 ── */
.bd-voice-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.bd-voice-item:last-child { border-bottom: none; padding-bottom: 0; }
.bd-voice-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  display: flex; align-items: center; justify-content: center;
  color: #818cf8;
}
.bd-voice-info { min-width: 0; }
.bd-voice-name { font-size: .84rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-voice-meta { font-size: .72rem; color: var(--accent); margin-top: 1px; }

/* ── 섹션 네비게이션 ── */
.bd-section-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.bd-section-nav::-webkit-scrollbar { display: none; }
.bd-snav-link {
  padding: 10px 18px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.bd-snav-link:hover,
.bd-snav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── 작가 댓글 강조 ── */
.comment-by-author {
  border-left: 3px solid #818cf8;
  padding-left: 12px !important;
  background: rgba(129,140,248,.05);
  border-radius: 0 8px 8px 0;
}
.author-name { color: #818cf8 !important; }
.author-badge {
  display: inline-block;
  background: rgba(129,140,248,.2);
  color: #818cf8;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: .02em;
}
.comment-reply-author { font-size: .85rem; font-weight: 700; color: var(--text-secondary); }
.reply-by-author { border-left: 2px solid #818cf8; }

/* ── 답글 ── */
.reply-actions { margin-top: 8px; }
.reply-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.reply-toggle-btn:hover { color: var(--accent); background: rgba(129,140,248,.1); }
.reply-form { margin-top: 10px; }
.reply-input { min-height: 60px !important; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .bd-page { padding: 32px 24px 80px; }
  .bd-layout { grid-template-columns: 1fr 260px; gap: 32px; }
}
@media (max-width: 860px) {
  .bd-layout { grid-template-columns: 1fr 220px; gap: 20px; }
  .bd-sidebar { position: static; font-size: .84rem; }
  .bd-sidebar-card { padding: 14px; }
  .bd-info-label { font-size: .72rem; }
  .bd-info-value { font-size: .78rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .bd-book-top .bd-cover-box { width: 140px; }
}

/* ── 모바일: 우측 패널을 슬라이드 드로어로 ── */
@media (max-width: 760px) {
  /* 전체 폰트 축소 */
  .bd-page { padding: 14px 14px 60px; font-size: .82rem; }
  .bd-title { font-size: 1.15rem; }
  .bd-book-top { gap: 14px; }
  .bd-book-top .bd-cover-box { width: 100px; }
  .bd-layout { grid-template-columns: 1fr; gap: 0; }
  .bd-snav-link { padding: 8px 12px; font-size: .76rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bd-stat-val { font-size: 1.1rem; }
  .bd-episode-row { font-size: .8rem; }
  .bd-ep-num { font-size: .7rem; }
  .bd-review-text { font-size: .82rem; }

  /* 우측 사이드 → 슬라이드 드로어 */
  .bd-sidebar {
    position: fixed;
    top: 0; right: -100%; bottom: 0;
    width: min(300px, 85vw);
    z-index: 600;
    overflow-y: auto;
    transition: right .25s cubic-bezier(.4,0,.2,1);
    box-shadow: -4px 0 24px rgba(0,0,0,.3);
    background: var(--bg-primary);
    padding: 0;
    gap: 0;
  }
  .bd-sidebar.drawer-open { right: 0; }

  .bd-sidebar-card { border-radius: 0; border-left: none; border-right: none; border-top: none; }

  /* 드로어 뒷배경 */
  .bd-side-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 599;
  }
  .bd-side-backdrop.open { display: block; }

  /* 플로팅 토글 버튼 */
  .bd-side-toggle {
    display: flex;
    position: fixed;
    bottom: 24px; right: 16px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    border: none; color: #fff;
    cursor: pointer; z-index: 590;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
    transition: transform .15s;
  }
  .bd-side-toggle:active { transform: scale(.92); }

  /* 드로어 내부 닫기 버튼 */
  .bd-side-close-btn {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 14px 16px;
    background: none; border: none; border-bottom: 1px solid var(--border-color);
    color: var(--text-muted); font-size: .8rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
  }
}
@media (min-width: 761px) {
  .bd-side-backdrop,
  .bd-side-toggle,
  .bd-side-close-btn { display: none !important; }
}

@media (max-width: 480px) {
  .bd-snav-link { padding: 7px 10px; font-size: .74rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Announcement form ── */
#announcementForm {
  display: none;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: #f7f7f7;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
}
.bd-ann-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  color: #111;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.bd-ann-input:focus { border-color: #5b4cf5; }
.bd-ann-textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  color: #111;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 10px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.bd-ann-textarea:focus { border-color: #5b4cf5; }
.bd-ann-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  user-select: none;
}
.bd-btn-row { display: flex; gap: 8px; }
.announcement-footer form, .ep-owner-btns form { margin: 0; }
.bd-empty-note { color: var(--text-muted); font-size: .9rem; }
.bd-ep-count-hint { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.bd-empty-state { text-align: center; color: var(--text-muted); padding: 40px 0; }
.bd-comment-input-wrap { margin-bottom: 24px; }
.comment-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.reply-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.reply-btn-row { display: flex; gap: 8px; margin-top: 6px; }
.reply-form { display: none; }
.bd-rating-val { color: var(--accent); font-weight: 700; }

/* ── Episode edit modal (ep-em) ── */
.ep-em-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.52);z-index:9000;display:none;align-items:center;justify-content:center;padding:20px;}
.ep-em-backdrop.on{display:flex;}
.ep-em-modal{background:#fff;width:100%;max-width:480px;padding:36px 32px 32px;position:relative;}
.ep-em-close{position:absolute;top:14px;right:16px;background:none;border:none;font-size:22px;color:#999;cursor:pointer;line-height:1;}
.ep-em-close:hover{color:#111;}
.ep-em-eyebrow{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#5b4cf5;margin-bottom:8px;}
.ep-em-title{font-size:1.1rem;font-weight:800;color:#111;margin-bottom:4px;}
.ep-em-sub{font-size:.8rem;color:#999;margin-bottom:28px;}
.ep-em-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.ep-em-card{display:flex;flex-direction:column;gap:10px;padding:22px 18px 18px;border:1.5px solid #e8e8e8;text-decoration:none;color:#111;cursor:pointer;transition:border-color .14s,box-shadow .14s;}
.ep-em-card:hover{border-color:#111;box-shadow:0 4px 16px rgba(0,0,0,.09);}
.ep-em-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;}
.ep-em-icon.beginner{background:#f0eeff;}
.ep-em-icon.expert{background:#f5f5f5;}
.ep-em-label{font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;}
.ep-em-label.beginner{color:#5b4cf5;}
.ep-em-label.expert{color:#555;}
.ep-em-name{font-size:.92rem;font-weight:800;color:#111;}
.ep-em-desc{font-size:.75rem;color:#888;line-height:1.6;}
.ep-em-badge{font-size:.66rem;font-weight:700;padding:2px 8px;align-self:flex-start;}
.ep-em-badge.beginner{background:#f0eeff;color:#5b4cf5;}
.ep-em-badge.expert{background:#f5f5f5;color:#555;}
@media(max-width:400px){.ep-em-cards{grid-template-columns:1fr;}}

/* ── Stats chart dot colors ── */
.card-label-dot-violet { background: var(--creator-accent-light); }
.card-label-dot-cyan { background: #67e8f9; }

/* 에피소드 언어 선택 — 언어가 둘 이상인 작품에만 뜬다 */
.bd-lang-select {
  margin-left: 10px;
  padding: 4px 8px;
  font-size: .8rem;
  font-family: inherit;
  color: #111;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle;
}
.bd-lang-select:hover { border-color: #111; }
.bd-lang-select:focus { outline: none; border-color: #5b4cf5; }

/* 에피소드 번역 — 작가에게만 보인다 */
.ep-btn-translate {
  font-family: inherit;
  color: #0f766e;
  background: rgba(15,118,110,.12);
  border: none;
  cursor: pointer;
}
.ep-btn-translate:hover:not(:disabled) { background: rgba(15,118,110,.22); }
.ep-btn-translate:disabled { opacity: .5; cursor: default; }

/* 전체 번역 (작가 전용) */
.bd-transall {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 12px; padding-left: 12px;
  border-left: 1px solid #e5e5e5;      /* 제목과 도구를 눈으로 갈라 준다 */
  vertical-align: middle;
}
.bd-transall-label { font-size: .72rem; font-weight: 500; color: #999; }
.bd-transall-lang {
  height: 26px; padding: 0 6px; border-radius: 7px;
  font-size: .74rem; font-family: inherit; color: #111;
  background: #fff; border: 1px solid #ddd; cursor: pointer;
}
.bd-transall-btn {
  height: 26px; padding: 0 10px; border-radius: 7px;
  font-size: .72rem; font-weight: 600; font-family: inherit; line-height: 1;
  color: #0f766e; background: rgba(15,118,110,.12);
  border: none; cursor: pointer;
}
.bd-transall-btn:hover:not(:disabled) { background: rgba(15,118,110,.22); }
.bd-transall-btn:disabled { opacity: .55; cursor: default; }
