/* ================================================
   공대생 할아버지, 미대생 할머니 — 공통 스타일 v2
   브랜드: 크림/테라코타/딥네이비/골드
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ── CSS 변수 ── */
:root {
  /* 브랜드 컬러 */
  --cream:        #FEFCF7;
  --cream-dark:   #F0E8DA;
  --cream-deeper: #E8D8C4;
  --terra:        #B85530;
  --terra-light:  #D4724E;
  --terra-dark:   #8F3E1E;
  --navy:         #162E4A;
  --navy-light:   #254D78;
  --navy-mid:     #1E3E61;
  --gold:         #C49520;
  --gold-light:   #DDB43A;
  --gold-pale:    #F5E6B8;

  /* 텍스트 — 고가독성 */
  --text:         #111827;   /* 최고 대비 — 제목, 본문 */
  --text-sub:     #1F2937;   /* 부제목, 주요 텍스트 */
  --text-light:   #374151;   /* 보조 텍스트 (이전 6B6B6B보다 훨씬 진함) */
  --text-muted:   #4B5563;   /* 날짜, 메타 정보 등 최소 표시 텍스트 */

  /* 배경 */
  --white:        #FFFFFF;
  --bg-section:   #F8F3EC;   /* 섹션 배경 */
  --bg-card:      #FFFEF9;   /* 카드 배경 (약간 따뜻한 흰색) */

  /* 테두리 */
  --border:       #C8B8A4;   /* 기본 테두리 — 충분히 보이도록 진하게 */
  --border-light: #DDD0BE;   /* 약한 구분선 */
  --border-card:  #B8A48E;   /* 카드 테두리 */
  --border-accent:#B85530;   /* 강조 테두리 (테라코타) */

  /* 그림자 */
  --shadow:       rgba(17, 28, 42, 0.12);
  --shadow-md:    rgba(17, 28, 42, 0.16);
  --shadow-lg:    rgba(17, 28, 42, 0.22);

  /* 형태 */
  --radius:       14px;
  --radius-sm:    8px;
  --radius-xs:    6px;
  --transition:   0.25s ease;
  --header-h:     66px;
}

/* ── 리셋 + 기본 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; outline: none; }
ul { list-style: none; }

/* ── 레이아웃 컨테이너 ── */
.container      { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section    { padding: 72px 0; }
.section-sm { padding: 44px 0; }

/* ── 타이포그래피 ── */
h1, h2, h3, h4, h5 {
  font-family: 'Noto Serif KR', serif;
  color: var(--navy);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { line-height: 1.85; color: var(--text-sub); }

/* 본문 읽기용 */
.prose {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.06rem;
  line-height: 2.05;
  color: var(--text);
  max-width: 680px;
  margin: 0 auto;
}
.prose p           { margin-bottom: 1.4em; }
.prose strong      { color: var(--terra-dark); font-weight: 700; }
.prose em          { color: var(--navy-mid); font-style: normal; font-weight: 600; }

/* ── 섹션 구분 ── */
.section-divider {
  border: none;
  border-top: 2px solid var(--border-light);
  margin: 0;
}
.section-title {
  text-align: center;
  margin-bottom: 44px;
}
.section-title h2   { margin-bottom: 10px; color: var(--navy); }
.section-title p    { color: var(--text-light); font-size: 0.96rem; line-height: 1.7; }
.section-title::after {
  content: '';
  display: block;
  width: 52px; height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
  margin: 16px auto 0;
  border-radius: 3px;
}

/* ── 헤더 (공통) ── */
.main-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254, 252, 247, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-light);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.main-header.scrolled {
  box-shadow: 0 3px 16px var(--shadow-md);
  border-bottom-color: var(--border);
}
.header-top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold), var(--terra));
  background-size: 200% 100%;
}
.nav-link-special {
  color: var(--gold-light) !important;
  font-weight: 700 !important;
}
.mobile-nav-special { color: var(--gold) !important; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 48px; width: auto; display: block; }
.logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: .9rem; font-weight: 700;
  color: var(--navy); line-height: 1.3;
}
.logo-text small { font-weight: 400; color: var(--terra); display: block; }

.desktop-nav { display: flex; gap: 2px; align-items: center; }

/* ── 드롭다운 메뉴 ── */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  background: var(--white);
  border: 1.5px solid var(--border-card);
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--shadow-md);
  padding: 6px 0;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: .87rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  color: var(--terra);
  background: rgba(184,85,48,.07);
  padding-left: 22px;
}
.nav-link {
  padding: 7px 13px; border-radius: 8px;
  font-size: .87rem; font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.nav-link:hover {
  color: var(--terra);
  background: rgba(184, 85, 48, 0.07);
  border-color: rgba(184, 85, 48, 0.18);
}
.nav-link.active {
  color: var(--terra);
  background: rgba(184, 85, 48, 0.10);
  border-color: rgba(184, 85, 48, 0.25);
  font-weight: 600;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.user-nick {
  font-size: .85rem; font-weight: 600;
  color: var(--navy); padding: 4px 10px;
  background: var(--cream-dark);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; background: var(--cream-dark);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: all .3s;
}

.mobile-menu {
  display: none; flex-direction: column;
  background: var(--white);
  border-top: 2px solid var(--border);
  padding: 8px 0;
  box-shadow: 0 8px 24px var(--shadow);
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  padding: 14px 20px; font-size: .95rem; font-weight: 500;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover {
  background: var(--cream-dark);
  color: var(--terra);
  padding-left: 26px;
}

@media (max-width: 800px) {
  .desktop-nav { display: none; }
  .hamburger   { display: flex; }
}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  min-height: 44px; /* 모바일 터치 친화적 */
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--terra), var(--terra-dark));
  color: #fff;
  border: 2px solid var(--terra-dark);
  box-shadow: 0 2px 10px rgba(184, 85, 48, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--terra-light), var(--terra));
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(184, 85, 48, 0.45);
  border-color: var(--terra);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(184, 85, 48, 0.3); }
.btn-secondary:active { transform: translateY(0); }
.btn-navy:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(22, 46, 74, 0.25); }
.btn-gold:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(196, 149, 32, 0.25); }
.btn-secondary {
  background: transparent;
  color: var(--terra);
  border: 2px solid var(--terra);
}
.btn-secondary:hover {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 4px 14px rgba(184, 85, 48, 0.35);
}
.btn-navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff;
  border: 2px solid var(--navy-mid);
  box-shadow: 0 2px 10px rgba(22, 46, 74, 0.3);
}
.btn-navy:hover {
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(22, 46, 74, 0.4);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  border: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(196, 149, 32, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(196, 149, 32, 0.4);
}
.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--border-card);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--cream-dark);
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid var(--border-light);
}
.btn-ghost:hover {
  background: var(--cream-dark);
  border-color: var(--border);
  color: var(--text-sub);
}
.btn-sm  { padding: 7px 16px; font-size: 0.82rem; min-height: 36px; }
.btn-lg  { padding: 15px 36px; font-size: 1.02rem; }

/* ── 카드 ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border-card);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 1px 4px var(--shadow);
}
.card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--shadow-md);
  border-color: var(--terra-light);
}
.card:hover::before { opacity: 1; }
.card:hover h3, .card:hover h4 { color: var(--terra-dark); }
.card-body { padding: 22px; }
.card-img   { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* 에피소드 카드 */
.episode-card { cursor: pointer; }
.episode-card .part-badge {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--terra-dark);
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px;
  margin-bottom: 8px; letter-spacing: 0.4px;
  border: 1px solid rgba(196, 149, 32, 0.35);
}
.episode-card .ep-number {
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 5px; font-weight: 500;
}
.episode-card h3 {
  font-size: 1.05rem; margin-bottom: 8px; color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.episode-card .ep-preview {
  font-size: 0.88rem; color: var(--text-light);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px; line-height: 1.65;
}
.episode-card .ep-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.ep-meta span { display: flex; align-items: center; gap: 4px; }

/* ── 그리드 ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── 배지 ── */
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-terra {
  background: rgba(184,85,48,0.12);
  color: var(--terra-dark);
  border: 1px solid rgba(184,85,48,0.25);
}
.badge-navy {
  background: rgba(22,46,74,0.10);
  color: var(--navy);
  border: 1px solid rgba(22,46,74,0.2);
}
.badge-gold {
  background: var(--gold-pale);
  color: #7A5E10;
  border: 1px solid rgba(196,149,32,0.35);
}

/* ── 태그 ── */
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 5px 13px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem; color: var(--text-light);
  font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  background: var(--white);
}
.tag:hover, .tag.active {
  border-color: var(--terra);
  color: var(--terra-dark);
  background: rgba(184,85,48,0.07);
  font-weight: 600;
}

/* ── 폼 ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.87rem; font-weight: 600;
  color: var(--navy); margin-bottom: 7px;
}
.form-control {
  width: 100%; padding: 11px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.92rem;
  background: var(--white); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-height: 44px;
}
.form-control:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px rgba(184,85,48,0.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.65; }

/* ── 토스트 ── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  padding: 13px 20px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  animation: slideIn 0.3s ease;
  max-width: 300px;
  border: 1.5px solid transparent;
}
.toast-success { background: #0F4C28; color: #fff; border-color: #166534; }
.toast-error   { background: #8B1C1C; color: #fff; border-color: #991B1B; }
.toast-info    { background: var(--navy); color: #fff; border-color: var(--navy-light); }
@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* ── 모달 ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--border-card);
  padding: 36px; max-width: 480px; width: 100%;
  transform: translateY(24px); transition: transform var(--transition);
  box-shadow: 0 20px 60px var(--shadow-lg);
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--cream-dark); border: 1.5px solid var(--border);
  font-size: 1rem; color: var(--text-light);
  border-radius: 6px; padding: 4px 9px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--cream-deeper); color: var(--text); }
.modal h3 { margin-bottom: 22px; }

/* ── 로딩 스피너 ── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--terra);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 44px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 좋아요 버튼 ── */
.like-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); padding: 8px 16px;
  border: 2px solid var(--border-card);
  border-radius: 50px; font-size: 0.88rem; font-weight: 600;
  color: var(--text-light); transition: all var(--transition);
  min-height: 40px;
}
.like-btn:hover, .like-btn.liked {
  border-color: #D43060;
  color: #D43060;
  background: rgba(212,48,96,0.06);
  box-shadow: 0 2px 8px rgba(212,48,96,0.2);
}
.like-btn.liked .like-icon { animation: heartPop 0.3s ease; }
@keyframes heartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ── 댓글 ── */
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
  display: flex; gap: 13px;
  padding: 16px;
  background: var(--cream-dark);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
}
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--terra), var(--terra-dark));
  color: #fff; border: 2px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(184,85,48,0.3);
}
.comment-content .comment-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.comment-author { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.comment-date   { font-size: 0.78rem; color: var(--text-muted); }
.comment-text   { font-size: 0.92rem; line-height: 1.7; color: var(--text-sub); }

/* ── 탭 ── */
.tab-list {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.tab-btn {
  padding: 10px 18px; font-size: 0.9rem; font-weight: 600;
  color: var(--text-light); background: none;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all var(--transition); border-radius: 6px 6px 0 0;
  min-height: 44px;
}
.tab-btn.active, .tab-btn:hover { color: var(--terra); }
.tab-btn.active {
  border-bottom-color: var(--terra);
  background: rgba(184,85,48,0.05);
}
.tab-pane        { display: none; }
.tab-pane.active { display: block; }

/* ── 공유 버튼 ── */
.share-group { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  transition: all var(--transition);
  border: 2px solid var(--border-card);
  min-height: 40px;
}
.share-btn:hover { transform: translateY(-2px); }
.share-kakao  { border-color: #CCA800; background: #FAE100; color: #3A1D1D; }
.share-kakao:hover { background: #F5D900; box-shadow: 0 4px 12px rgba(204,168,0,0.35); }
.share-twitter { border-color: #1A8FD8; color: #1DA1F2; background: #E8F5FE; }
.share-twitter:hover { background: #1DA1F2; color: #fff; border-color: #1DA1F2; }
.share-copy    { border-color: var(--border-card); color: var(--text-light); background: var(--white); }
.share-copy:hover { background: var(--cream-dark); border-color: var(--border); color: var(--text-sub); }

/* ── 프로그레스 바 ── */
.progress-bar {
  width: 100%; height: 10px;
  background: var(--cream-deeper);
  border-radius: 5px; overflow: hidden;
  border: 1px solid var(--border-light);
}
.progress-fill {
  height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--terra), var(--gold-light));
  transition: width 0.9s ease;
  box-shadow: 0 0 6px rgba(184,85,48,0.4);
}

/* ── 빈 상태 ── */
.empty-state {
  text-align: center; padding: 56px 20px;
  color: var(--text-muted);
  background: var(--cream-dark);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
}
.empty-state .empty-icon {
  font-size: 2.8rem; margin-bottom: 14px; opacity: 0.5;
}
.empty-state h4 { color: var(--text-sub); margin-bottom: 8px; }

/* ── 섹션 배경 패턴 ── */
.section-cream  { background: var(--cream-dark); border-top: 2px solid var(--border-light); border-bottom: 2px solid var(--border-light); }
.section-white  { background: var(--white); }
.section-navy   { background: var(--navy); }

/* ── 인포 블록 (강조 텍스트 영역) ── */
.info-block {
  background: var(--gold-pale);
  border: 2px solid rgba(196,149,32,0.4);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.info-block p { color: var(--text-sub); font-size: 0.92rem; }

.tip-block {
  background: rgba(22,46,74,0.06);
  border: 1.5px solid rgba(22,46,74,0.18);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

/* ── 푸터 ── */
.main-footer {
  background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
  color: rgba(255,255,255,0.95);
  padding: 56px 0 28px;
  border-top: 3px solid var(--terra);
}
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  font-style: italic;
  font-family: 'Noto Serif KR', serif;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 44px; margin-bottom: 36px;
}
.footer-logo { margin-bottom: 12px; }
.footer-logo-img { height: 112px; width: auto; display: block; }
.footer-logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-desc {
  font-size: 0.87rem; line-height: 1.8;
  color: rgba(255,255,255,0.82);
}
.main-footer h5 {
  color: rgba(255,255,255,0.98); font-size: 0.88rem;
  margin-bottom: 14px; letter-spacing: 0.04em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-links li + li { margin-top: 8px; }
.footer-links a {
  font-size: 0.87rem; color: rgba(255,255,255,0.78);
  transition: color var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a::before {
  content: '›'; color: var(--gold-light); font-size: 1rem;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px; text-align: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
}

/* ── 유틸리티 ── */
.text-center  { text-align: center; }
.text-terra   { color: var(--terra); }
.text-navy    { color: var(--navy); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-light   { color: var(--text-light); }
.fw-bold      { font-weight: 700; }
.fw-semibold  { font-weight: 600; }
.hidden       { display: none !important; }
.d-flex       { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 16px; }
.mt-1 { margin-top: 4px; }   .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }  .mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }.mb-4 { margin-bottom: 24px; }

/* ── 반응형 — 모바일 최적화 ── */
@media (max-width: 768px) {
  .section    { padding: 44px 0; }
  .section-sm { padding: 28px 0; }
  .container  { padding: 0 16px; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.08rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .btn        { min-height: 48px; padding: 12px 22px; }
  .btn-sm     { min-height: 40px; }
  .section-title { margin-bottom: 28px; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.45rem; }
  .share-group { gap: 6px; }
  .share-btn   { padding: 7px 12px; font-size: 0.78rem; }
  .toast-container { bottom: 16px; right: 12px; left: 12px; }
  .toast { max-width: 100%; }
}

/* ── 파트 네비게이터 (공통 — episodes / episode-detail) ── */
.part-nav-bar {
  background: var(--white, #fff);
  border-bottom: 2px solid var(--border, #E8DDD0);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.part-nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.part-nav-inner::-webkit-scrollbar { display: none; }
.part-nav-btn {
  flex-shrink: 0;
  padding: 14px 18px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  min-height: 48px;
  font-family: inherit;
}
.part-nav-btn:hover { color: var(--terra); background: rgba(184,85,48,.05); }
.part-nav-btn.active {
  color: var(--terra-dark);
  border-bottom-color: var(--terra);
  background: rgba(184,85,48,.06);
  font-weight: 700;
}
@media (max-width: 480px) {
  .part-nav-btn { padding: 12px 14px; font-size: .82rem; }
}

/* ── 스크롤 reveal 애니메이션 ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
