/* ============================================================
   백석TV — 유일한 CSS (유튜브 홈 결)
   흰 머리줄 + 가운데 검색창, 작은 추천 배너(남색), 칩 줄, 촘촘한 설교 격자
   강조는 차분한 금빛 하나(핵심 버튼·진행 막대), 호버는 밝기·그림자로만
   ============================================================ */
:root {
  --ink: #161c2a;
  --ink-2: #3a4356;
  --muted: #646d7e;
  --line: #e4e7ec;
  --bg: #ffffff;
  --fog: #f2f3f6;
  --chip: #eef0f4;
  --navy: #111a2d;
  --navy-2: #0b1222;
  --navy-line: rgba(255, 255, 255, .14);
  --gold: #b8975f;
  --gold-deep: #9c7c46;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 26, 45, .06), 0 8px 24px -12px rgba(17, 26, 45, .18);
  --shadow-lift: 0 2px 4px rgba(17, 26, 45, .08), 0 18px 40px -18px rgba(17, 26, 45, .35);
  --wrap: 1760px;
  --gutter: clamp(16px, 3vw, 40px);
  --hx-l: 12px; --hx-r: 20px; /* 머리줄 좌우 여백 — 바닥글도 같이 */
  --bar-h: 68px; /* 로고·검색 줄 */
  --ps-h: 94px; /* 목사님 줄 */
  --tn-h: 0px; /* 폰: 로고 줄 아래 탭 줄 */
  --head-h: calc(var(--bar-h) + var(--tn-h) + var(--ps-h)); /* 위에 붙어 있는 머리 전체 */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* 폰: 누를 때 뜨는 파란 네모(브라우저 기본)를 없애고, 누른 것만 그 모양 그대로 살짝 어둡게 */
* { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  :where(button, a, [role="tab"], label, summary):active { filter: brightness(.88); transition: filter 0s; }
}
html { touch-action: manipulation; /* 두 번 눌러 확대 막음 — scroll-behavior: smooth 는 뺌 (화면 바꿀 때·뒤로 가기 때 스크롤이 스르륵 움직여 멀미남) */ scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 18px; line-height: 1.55;
  letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--gold-deep); letter-spacing: .02em; }
[hidden] { display: none !important; } /* .btn 등 display 를 준 요소도 hidden 이면 숨김 */
.empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--muted); }
.linkbtn { border: 0; background: none; padding: 0; margin-left: 8px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font-size: 17px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: filter .2s, box-shadow .2s, background-color .2s;
}
.btn svg { width: 18px; height: 18px; }
/* 다른 설교: 섞기 — 굵은 선 + 꽉 찬 화살촉 (작게 봐도 또렷하게) */
.btn .ic-shuffle { width: 20px; height: 20px; stroke-width: 2.3; stroke-linecap: butt; }
.ic-shuffle .ah { fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; } /* 투명 테두리면 고배율 화면에서 둥근 끝에 세로 줄이 비침 → 같은 색으로 */
.btn-gold svg, .btn-dark svg { fill: currentColor; stroke: none; }
.btn-gold:hover { filter: brightness(1.07); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-dark:hover { filter: brightness(1.3); }
.btn-line { background: var(--bg); border-color: var(--line); color: var(--ink); }
.btn-line:hover { background: var(--fog); }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }

/* ---------- 머리줄 (흰 바탕 + 가운데 검색창) ---------- */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-in { position: relative; height: var(--bar-h); display: flex; align-items: center; gap: 16px; padding: 0 var(--hx-r) 0 var(--hx-l); }
.head-end { flex: none; width: 165px; } /* 검색창이 화면 가운데 오도록 로고 폭만큼 */
.logo { flex: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
/* 서비스 이름: BS 심볼 + 시스템 글꼴 '백석TV 온라인방송국' (머리줄·바닥글 같은 모양) */
.logo { gap: 9px; font-family: system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
.logo img { width: 34px; height: 34px; }
.logo b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.logo span { font-size: 16px; font-weight: 600; letter-spacing: -.02em; color: var(--ink-2); }
.logo .beta { align-self: flex-start; margin: 9px 0 0 -4px; font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: .02em; color: #9aa1ad; line-height: 1; }

/* ---------- 목사님 줄 (유튜브 구독 줄처럼) — 머리줄 아래 늘 붙어 있음, 올리거나 '펼침'이면 아래로 펼쳐 모두 ---------- */
.pstrip { position: relative; height: var(--ps-h); }
.ps-in { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; max-height: var(--ps-h); overflow: hidden; background: #fff; border-bottom: 1px solid transparent; transition: max-height .3s cubic-bezier(.22, .8, .24, 1), box-shadow .25s ease, border-color .25s ease; } /* 펼침·접기 빠르게 (2026-10-28 '부드럽지만 느리다') */
.ps-list { flex: 1; min-width: 0; display: flex; gap: 2px; padding: 4px 8px 6px 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.ps-list::-webkit-scrollbar { display: none; }
.ps-p { flex: none; width: 86px; display: grid; justify-items: center; align-content: start; gap: 5px; padding: 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.ps-p:hover { background: var(--fog); }
.ps-avw { position: relative; width: 56px; height: 56px; }
.ps-av { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #e4e8ef; }
.ps-av img { position: absolute; left: 50%; top: 3px; width: 150%; max-width: none; height: auto; transform: translateX(-50%); opacity: 0; transition: opacity .35s ease; } /* 투명 배경 상반신 사진 → 얼굴만 */
.ps-av img.ok { opacity: 1; }
.ps-p.on .ps-av { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }
.ps-new { position: absolute; right: 1px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: #c9a05a; box-shadow: 0 0 0 2.5px #fff; overflow: hidden; } /* 새 설교 — 오른쪽 위 금빛 점, 빛이 가끔 스침 */
.ps-new::after, .new-badge::after { content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 55%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-20deg); animation: badgeShine 3.8s ease-in-out infinite; }
.ps-new, .new-badge { animation: goldFlash 3.8s ease-in-out infinite; } /* 빛이 스칠 때 점이 한 번 환하게 */
@keyframes goldFlash { 0%, 66%, 100% { filter: none; } 82% { filter: brightness(1.35) saturate(1.15) drop-shadow(0 0 4px rgba(236, 200, 120, .95)); } }
.ps-n { max-width: 100%; font-size: 13.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-c { display: none; max-width: 100%; margin-top: -4px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-lock { cursor: pointer; }
.ps-lock .ps-av { filter: grayscale(.4); opacity: .75; }
.ps-sk { pointer-events: none; }
.ps-sk .ps-av, .ps-sk .ps-n { background: linear-gradient(90deg, var(--fog) 0%, #e8ebf0 50%, var(--fog) 100%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; }
.ps-sk .ps-n { width: 54px; height: 13px; margin-top: 3px; border-radius: 5px; }
.ps-more { flex: none; display: inline-flex; align-items: center; gap: 4px; height: calc(var(--ps-h) - 28px); margin: 4px 0; padding: 0 18px 0 16px; border: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 30%); color: var(--gold-deep); font-size: 15.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ps-more svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .25s; }
.ps-more:hover { color: #7c602f; }
.pstrip.open .ps-in { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; /* 펼칠 때 잠깐 생겼다 사라지는 스크롤 막대 숨김 (넘치면 굴려서 봄) */ border-bottom-color: var(--line); box-shadow: 0 28px 48px -26px rgba(17, 26, 45, .42); }
.pstrip.open .ps-in::-webkit-scrollbar { display: none; }
.pstrip.open .ps-list, .pstrip.closing .ps-list { flex-wrap: wrap; overflow: visible; row-gap: 8px; padding-bottom: 14px; }
/* 둘째 줄부터: 펼칠 땐 차례로 살며시 떠오르고, 접을 땐 먼저 스르르 사라짐 */
.pstrip.open .ps-r2 { animation: psIn .28s cubic-bezier(.22, .8, .24, 1) both; animation-delay: calc(20ms + var(--k, 0) * 6ms); }
.pstrip.closing .ps-r2 { opacity: 0; transform: translateY(-6px); transition: opacity .14s ease, transform .18s ease; }
@keyframes psIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
.pstrip.open .ps-more svg { transform: rotate(180deg); }
/* PC: 마우스가 닿은 얼굴·이름이 크게, 양옆은 조금씩 — 지나가면 파도처럼 커졌다 작아짐 (자리는 그대로, 모양만 커짐) */
@media (hover: hover) and (pointer: fine) {
  :root { --ps-h: 132px; }
  .ps-list { padding-top: 26px; }
  /* PC 는 얼굴·이름을 크게 (2026-10-28 — 한 줄에 3명쯤 덜) */
  .ps-p { width: 102px; gap: 6px; }
  .ps-avw { width: 68px; height: 68px; }
  .ps-n { font-size: 15px; }
  .ps-new { width: 15px; height: 15px; }
  .pstrip.open .ps-list { row-gap: 30px; }
  .ps-p { position: relative; }
  .ps-p:hover { background: none; z-index: 2; }
  .ps-avw { transform-origin: 50% 88%; transition: transform .42s cubic-bezier(.2, .8, .2, 1); }
  .ps-n { transform-origin: 50% 0; transition: transform .42s cubic-bezier(.2, .8, .2, 1), color .3s; }
  .ps-av { transition: box-shadow .42s ease; }
  .ps-p:hover .ps-avw { transform: scale(1.5); }
  .ps-p:hover .ps-n { transform: translateY(7px) scale(1.28); font-weight: 700; overflow: visible; }
  .ps-p:hover .ps-av { box-shadow: 0 10px 22px -8px rgba(17, 26, 45, .45); }
  .ps-p:hover + .ps-p .ps-avw, .ps-p:has(+ .ps-p:hover) .ps-avw { transform: scale(1.22); }
  .ps-p:hover + .ps-p .ps-n, .ps-p:has(+ .ps-p:hover) .ps-n { transform: translateY(3px) scale(1.1); }
  .ps-p:hover + .ps-p + .ps-p .ps-avw, .ps-p:has(+ .ps-p + .ps-p:hover) .ps-avw { transform: scale(1.08); }
}
.hsearch { flex: 1; max-width: 640px; margin: 0 auto; display: flex; height: 44px; border: 1px solid #d5d9e0; border-radius: 999px; overflow: hidden; background: var(--bg); transition: box-shadow .2s, border-color .2s; }
.hsearch:focus-within { border-color: #a9b0bd; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .06); }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 20px; font: inherit; font-size: 17px; color: var(--ink); background: none; }
.hsearch .hs-go { flex: none; width: 64px; border: 0; border-left: 1px solid #d5d9e0; background: var(--fog); cursor: pointer; display: grid; place-items: center; }
.hsearch .hs-go:hover { background: var(--chip); }
.hs-back, .search-open { display: none; }
.search-open { flex: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: none; cursor: pointer; place-items: center; color: var(--ink); }
.search-open:hover { background: var(--fog); }
.search-open svg { width: 24px; height: 24px; stroke-width: 2; }
.hsearch .hs-go svg { width: 20px; height: 20px; }
.menu-btn { display: block; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; padding: 0; position: relative; transition: background-color .2s; }
.menu-btn:hover { background: var(--fog); }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-btn i:nth-child(1) { top: 15px; } .menu-btn i:nth-child(2) { top: 21px; right: 20px; background: var(--gold); } .menu-btn i:nth-child(3) { top: 27px; right: 16px; }

/* ---------- 왼쪽 메뉴 (유튜브처럼) — 넓은 화면은 펼침/아이콘만, 좁은 화면은 서랍 ---------- */
.side {
  position: fixed; z-index: 45; top: var(--head-h); left: 0; bottom: 0; width: 248px; padding: 8px 12px 24px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); scrollbar-width: thin; scrollbar-color: transparent transparent; transition: transform .28s cubic-bezier(.2, .7, .2, 1), width .25s ease;
}
.side:hover { scrollbar-color: #cfd4dc transparent; }
.side-sec { padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-h { margin: 4px 12px 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.si {
  width: 100%; display: flex; align-items: center; gap: 18px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none;
  font-size: 16px; text-align: left; color: var(--ink); cursor: pointer; transition: background-color .15s;
}
.si:hover { background: var(--fog); }
.si.on { background: var(--chip); font-weight: 700; }
.si svg { width: 22px; height: 22px; }
.si > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
.si .si-av { flex: none; position: relative; width: 30px; height: 30px; margin: 0 -3px; border-radius: 50%; overflow: hidden; background: #e4e8ef; }
.si-av img { position: absolute; left: 50%; top: 2px; width: 150%; max-width: none; height: auto; transform: translateX(-50%); } /* 투명 배경 상반신 사진 → 얼굴만 */
.si small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.2; }
.si-more.up svg { transform: rotate(180deg); } /* 접기는 위 화살표 */
.si-off > span { line-height: 1.3; }
.si-off { cursor: default; color: var(--muted); }
.si-off:hover { background: none; }
.side-foot { padding: 16px 12px 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.side-foot p { margin: 0 0 2px; }
.side-dim { position: fixed; inset: 0; z-index: 44; background: rgba(8, 12, 22, .4); opacity: 0; pointer-events: none; transition: opacity .25s; }

/* 백석총회 바로가기 (pgak.net, 새 창) — 총회 파랑으로 눈에 띄게. PC 는 머리줄 오른쪽, 폰은 탭 줄 끝 */
.hq-link { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; margin-left: auto; border-radius: 999px; background: #0c4da2; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; box-shadow: 0 4px 12px -6px rgba(12, 77, 162, .8); transition: filter .2s, box-shadow .2s; }
.hq-link:has(.hq-logo) { gap: 7px; padding-left: 5px; }
.hq-logo { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #fff; }
.hq-link:hover { filter: brightness(1.12); box-shadow: 0 6px 16px -6px rgba(12, 77, 162, .9); }
.search-open + .hq-link { margin-left: 4px; } /* 돋보기 → 총회 → 동그라미 순 */
.hq-in-tn { display: none; }
body.searching .hq-link { visibility: hidden; }
@media (max-width: 860px) {
  .head-in > .hq-link { display: none; }
  .hq-in-tn { display: inline-flex; height: 32px; margin: 0 0 0 6px; padding: 0 14px 0 4px; font-size: 14.5px; }
  .hq-in-tn .hq-logo { width: 24px; height: 24px; }
}
/* ---------- 위쪽 탭 (PC·가로 태블릿 861px~, 창을 반으로 줄여도 같게) — 왼쪽 메뉴 대신. 고른 탭은 금색 밑줄 ---------- */
.tnav { display: none; }
@keyframes hsLine { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@media (min-width: 861px) {
  .menu-btn, .side, .side-dim, .head-end { display: none; }
  :root { --hx-l: 24px; }
  .tnav { display: flex; align-items: center; gap: 2px; margin-left: 28px; height: 100%; }
  .hsearch { display: none; }
  .search-open { display: grid; }
  body.searching .tnav { visibility: hidden; }
  /* 돋보기 → 밑줄 한 줄짜리 검색칸 (상자·버튼 없이), 바로 입력 */
  body.searching .hsearch { display: flex; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: min(460px, 44vw); max-width: none; height: 40px; margin: 0; z-index: 2;
    border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: var(--bg); box-shadow: none; animation: hsLine .22s ease-out; }
  body.searching .hsearch:focus-within { border-color: var(--gold); box-shadow: none; }
  body.searching .hsearch input { padding: 0 6px 0 2px; font-size: 17px; }
  body.searching .hsearch .hs-go { width: 40px; border: 0; background: none; color: var(--ink); }
  body.searching .search-open { visibility: hidden; }
}
.tn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: none;
  font: inherit; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s;
}
.tn:hover { background: var(--fog); color: var(--ink); }
.tn.on { color: var(--ink); font-weight: 700; }
.tn.on::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 3px; border-radius: 3px; background: var(--gold); }
.tn svg { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .2s; }
.tn-rand svg { width: 20px; height: 20px; stroke-width: 1.8; }
/* 아무 설교나: 누르면 주사위가 앞으로 데굴데굴 (rollDice) */
.rolling svg { animation: diceRoll .86s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes diceRoll {
  0% { transform: none; }
  20% { transform: translate(3px, -5px) rotate(110deg); }
  45% { transform: translate(7px, 0) rotate(250deg); }
  65% { transform: translate(9px, -2px) rotate(320deg); }
  82% { transform: translate(5px, 0) rotate(360deg); }
  100% { transform: none; }
}
.tn-dd { position: relative; }
.tn-dd .tn.on::after { right: 36px; }
.tn-dd.open > .tn { background: var(--fog); color: var(--ink); }
.tn-dd.open > .tn svg { transform: rotate(180deg); }
.tn-panel {
  position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; min-width: 250px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  box-shadow: 0 20px 44px -18px rgba(8, 12, 22, .4); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.tn-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* 마우스가 탭→판으로 내려가는 틈 */
.tn-dd.open .tn-panel { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.tn-topics .tn-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: 460px; }
.tn-panel .si { gap: 12px; min-height: 42px; font-size: 15.5px; }
.tn-panel .si svg { width: 20px; height: 20px; }
@media (min-width: 861px) and (max-width: 1180px) { /* 좁은 PC 창: 탭을 조금 촘촘히 */
  :root { --hx-l: 16px; --hx-r: 12px; }
  .head-in { gap: 10px; }
  .tnav { margin-left: 8px; }
  .tn { padding: 0 11px; font-size: 15.5px; }
  .tn.on::after { left: 11px; right: 11px; }
  .tn-dd .tn.on::after { right: 30px; }
}
@media (min-width: 861px) and (max-width: 1040px) { .logo span { display: none; } }

/* ---------- 홈 — 영상 영역은 유튜브처럼 좌우 꽉 채움 ---------- */
main.wrap { max-width: none; padding-top: 12px; padding-bottom: 24px; }

/* ---------- 1. 추천 설교 — 유튜브 홈 첫 줄처럼 큰 카드 4개 ---------- */
.pick { margin: 4px 0 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.pick-h { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: clamp(22px, 1.6vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.pick-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; } /* 칸 수는 아래 .grid 와 늘 같게 */
.pick-cards .card { animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.pick-cards .card-title { font-size: 19px; }
.pick-h svg { width: 26px; height: 26px; fill: var(--gold); stroke: none; color: var(--gold); filter: drop-shadow(0 2px 4px rgba(156, 117, 54, .35)); }
/* 추천 표시 — 금빛 그러데이션 + 별, 빛이 한 번씩 스쳐 지나감 */
.thumb-badge {
  position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(135deg, #ecd39a 0%, #c9a05a 45%, #9d7638 100%); color: #fff; font-size: 12.5px; line-height: 1.4; font-style: normal; font-weight: 800; letter-spacing: .02em;
  text-shadow: 0 1px 1px rgba(80, 55, 15, .45); box-shadow: 0 6px 16px -4px rgba(120, 85, 30, .7), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(90, 60, 20, .35);
}
.thumb-badge svg { width: 12px; height: 12px; fill: #fff8e6; stroke: none; filter: drop-shadow(0 1px 1px rgba(80, 55, 15, .4)); }
.thumb-badge::after { content: ''; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-20deg); animation: badgeShine 3.6s ease-in-out infinite; }
@keyframes badgeShine { 0%, 65% { left: -70%; } 100% { left: 140%; } }
.pick .card:hover .thumb { box-shadow: 0 0 0 3px #d9b875, 0 14px 32px -14px rgba(120, 85, 30, .6); }
.pick .thumb { transition: box-shadow .25s; }

/* ---------- 2. 칩 줄 ---------- */
.chips {
  position: sticky; top: var(--head-h); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 14px 0; margin: 4px 0 8px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); overflow-x: auto; scrollbar-width: none; scroll-margin-top: var(--head-h);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--chip); color: var(--ink); font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .2s;
}
.chip:hover { background: #e2e5eb; }
.chip.on { background: var(--ink); color: #fff; }
.chip-p { padding-left: 4px; }
.chip-p img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #dfe4ec; }
.chip-sep { flex: none; width: 1px; height: 26px; background: var(--line); margin: 0 2px; }

/* ---------- 3. 설교 격자 (유튜브 카드) ---------- */
.feed { padding-bottom: 8px; }
.feed-head { margin-bottom: 18px; }
.feed-head h2 { font-size: clamp(22px, 1.6vw, 26px); }
.feed-note { margin: 0 0 16px; font-size: 17px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 18px; }
.grid-shelf .card:nth-child(n+5) { display: none; }
@media (min-width: 2200px) { .grid, .pick-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } .grid-shelf .card:nth-child(5) { display: grid; } }
.feed-more { display: flex; justify-content: center; margin-top: 36px; }
.feed-more .btn { min-width: 220px; }
.card { display: grid; gap: 12px; align-content: start; min-width: 0; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #d9dee6; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.thumb.nothumb, .rel-th.nothumb { background: radial-gradient(circle at 70% 90%, rgba(184, 151, 95, .3), transparent 50%), linear-gradient(135deg, #1b2440, #0e1628); }
.thumb.nothumb img, .rel-th.nothumb img { object-fit: contain; object-position: 50% 100%; }
.thumb em { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 6px; background: rgba(11, 18, 34, .82); color: #fff; font-size: 13.5px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.thumb-play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .38); color: var(--navy); box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s;
}
.thumb-play svg { width: 24px; height: 24px; fill: currentColor; stroke: none; margin-left: 3px; }
.thumb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .35); }
.thumb-bar i { display: block; height: 100%; background: var(--gold); }
.card:hover .thumb img { transform: scale(1.03); filter: brightness(.86); }
.card:hover .thumb-play, .card:focus-visible .thumb-play { opacity: 1; transform: none; }
.card-body { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; }
.card-body.no-av { grid-template-columns: minmax(0, 1fr); }
.av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #e4e8ef; }
.av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.card-tx { display: grid; gap: 3px; min-width: 0; }
.card-title { font-size: 17.5px; line-height: 1.42; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-who { font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; flex-wrap: nowrap; align-items: center; white-space: nowrap; overflow: hidden; /* 날짜 · 조회수 한 줄로 늘 같은 자리 */ font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.meta i { flex: none; width: 3px; height: 3px; margin: 0 7px; border-radius: 50%; background: #b5bcc8; }

/* ---------- 선반 (오늘의 한 편·설교자·다른 메뉴) ---------- */
.shelf { padding: 40px 0 8px; margin-top: 40px; border-top: 1px solid var(--line); }
.shelf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; }
.shelf-head h2 small { margin-left: 10px; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.shelf-head h2 { margin: 0; font-size: clamp(24px, 1.8vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.shelf-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } /* 두 단추 가로 크기 같게 */
.seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--fog); }
/* 고른 칸 배경이 슥 미끄러짐 (site.js B.seg) */
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--bg); box-shadow: 0 1px 3px rgba(17, 26, 45, .14); transition: transform .34s cubic-bezier(.22, .8, .24, 1), width .34s cubic-bezier(.22, .8, .24, 1); pointer-events: none; }
.seg.has-ind button { position: relative; transition: color .25s; }
.seg.has-ind button.on { background: none; box-shadow: none; }
.seg button { border: 0; background: none; padding: 0 16px; height: 38px; border-radius: 999px; font-size: 15.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(17, 26, 45, .14); }

/* 설교자 — 사진을 크게 (원본 191×162 투명 배경) */
.people { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 28px 16px; }
.person { display: grid; gap: 12px; align-content: start; min-width: 0; }
.person-ph { position: relative; display: block; aspect-ratio: 191 / 162; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #eef1f6 0%, #dde3ec 100%); transition: box-shadow .25s; }
.new-badge { position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; background: #c9a05a; box-shadow: 0 0 0 3px #fff; } /* 최근 5일 안에 새 설교 — 오른쪽 위 금빛 점 (목사님 줄과 같은 결) */
.si-new { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #c9a05a; } /* 유튜브 구독 목록처럼 새 영상 점 */
.person-ph img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; transition: transform .5s ease; }
.person:hover .person-ph { box-shadow: var(--shadow-lift); }
.person:hover .person-ph img { transform: scale(1.04); }
.person-tx { display: grid; gap: 2px; min-width: 0; line-height: 1.4; padding: 0 2px; }
.person-tx b { font-size: 19px; font-weight: 700; }
.person-tx small { font-size: 15px; color: var(--muted); }
.person-last.muted { color: var(--muted); }
.person.locked { cursor: pointer; }
.si-lock { cursor: pointer; }
.si-lock:hover { background: none; }
.person-last { margin-top: 4px; font-size: 15.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .meta { font-size: 14px; }

/* ---------- 바닥글 ---------- */
.site-foot { margin-top: 56px; background: var(--navy-2); color: rgba(255, 255, 255, .62); padding: 44px 0 52px; font-size: 15px; }
.foot-in { display: grid; gap: 10px; padding: 0 var(--hx-r) 0 var(--hx-l); } /* 머리줄과 같은 좌우 여백 (왼쪽 정렬) */
.foot-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; color: #fff; font-family: system-ui, -apple-system, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; }
.foot-brand img { width: 30px; height: 30px; }
.foot-brand b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.foot-brand span { font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.site-foot p { margin: 0; }
.site-foot p span { margin-left: 18px; }
.site-foot .copy { color: rgba(255, 255, 255, .42); font-size: 14px; }

/* ---------- 창 (재생·설교자) ---------- */
.layer { position: fixed; inset: 0; z-index: 100; overflow-y: auto; padding: clamp(0px, 3vw, 40px) var(--gutter); background: rgba(8, 12, 22, .82); backdrop-filter: blur(6px); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.layer-box { position: relative; max-width: 1280px; margin: 0 auto; background: var(--bg); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.layer-pp .layer-box { max-width: 1080px; }
.layer-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(11, 18, 34, .6); color: #fff; transition: background-color .2s; }
.layer-x:hover { background: rgba(11, 18, 34, .85); }
.layer-x svg { width: 22px; height: 22px; stroke-width: 2; }
.layer-pp .layer-x { background: var(--fog); color: var(--ink); }
.pp { padding: clamp(24px, 3vw, 44px); }
.pp-head { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 36px; padding-right: 40px; }
.pp-photo { border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #eef1f6, #dde3ec); aspect-ratio: 191 / 162; }
.pp-photo img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.pp h2 { margin: 0 0 14px; font-size: clamp(30px, 3vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -.025em; }
.pp-info { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 17px; color: var(--ink-2); }
.pp-info li { display: flex; gap: 10px; align-items: flex-start; }
.pp-info svg { margin-top: 4px; color: var(--muted); }
.copyable { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: copy; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.copyable::after { content: '복사'; display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 6px; background: var(--chip); color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.6; text-decoration: none; vertical-align: 1px; }
.copyable:hover { text-decoration-color: currentColor; }
.copyable:hover::after { background: var(--ink); color: #fff; }
.pp-info small { display: block; font-size: 15px; color: var(--muted); }
.pp-info a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.cards { display: grid; gap: 28px 20px; }
.cards-pp { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- 불러오는 동안 — 자리만 회색으로 (빈 제목만 뜨지 않게) ---------- */
body.loading .shelf, body.loading .site-foot { visibility: hidden; }
.sk { pointer-events: none; }
.sk .thumb, .sk-line { background: linear-gradient(90deg, var(--fog) 0%, #e8ebf0 50%, var(--fog) 100%); background-size: 200% 100%; animation: shimmer 1.2s ease-in-out infinite; }
.sk-line { display: block; height: 16px; border-radius: 6px; }
.sk-line.short { width: 60%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- 보기 화면 (유튜브 보기 화면 결) — 왼쪽 영상·정보·더 볼 것, 오른쪽 다른 설교 ---------- */
.watch { display: none; }
/* 넓게 채우되, 영상 높이는 첫 화면에 제목·좋아요 줄까지 보이도록 (영상 폭 = 남는 높이 × 16/9 + 오른쪽 목록) */
body.watching .watch { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 28px; max-width: calc((100vh - var(--head-h) - 260px) * 16 / 9 + 528px + 2 * var(--gutter)); margin: 0 auto; padding: 16px var(--gutter) 24px; }
body.watching main.wrap { display: none; }
.player { position: relative; background: #000; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
/* 플레이어 단추 (유튜브 결) — 아래 그늘 위에 진행 막대, 둥근 반투명 묶음 단추 */
.yp { position: relative; user-select: none; -webkit-user-select: none; }
.yp video { cursor: pointer; }
.yp:not(.show) video { cursor: none; }
.yp-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); pointer-events: none; opacity: 0; transition: opacity .25s; }
.yp-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px 10px; opacity: 0; transition: opacity .25s; }
.yp.show .yp-shade, .yp.show .yp-bar { opacity: 1; }
.yp-prog { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; margin: 0 4px; outline: none; }
.yp-prog::before, .yp-buf, .yp-fill { content: ''; position: absolute; left: 0; height: 4px; border-radius: 2px; transition: height .15s; }
.yp-prog::before { right: 0; background: rgba(255, 255, 255, .25); }
.yp-buf { width: 0; background: rgba(255, 255, 255, .42); }
.yp-fill { width: 0; background: var(--gold); }
.yp-prog:hover::before, .yp-prog:hover .yp-buf, .yp-prog:hover .yp-fill, .yp.drag .yp-prog::before, .yp.drag .yp-buf, .yp.drag .yp-fill { height: 6px; }
.yp-knob { position: absolute; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); transform: scale(0); transition: transform .15s; }
.yp-prog:hover .yp-knob, .yp.drag .yp-knob, .yp-prog:focus-visible .yp-knob { transform: scale(1); }
.yp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.yp-prog:hover .yp-tip { opacity: 1; }
.yp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.yp-grp { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(20, 20, 20, .5); backdrop-filter: blur(8px); color: #fff; }
.yp-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer; transition: background-color .15s; }
.yp-btn:hover { background: rgba(255, 255, 255, .14); }
.yp-btn svg { width: 24px; height: 24px; stroke-width: 2; }
.yp-play svg { width: 26px; height: 26px; }
.yp-speed em { position: absolute; right: 2px; bottom: 4px; padding: 0 3px; border-radius: 4px; background: var(--gold); font-size: 10px; font-style: normal; font-weight: 800; line-height: 1.35; }
.yp-vol { display: flex; align-items: center; }
.yp-vr { width: 0; opacity: 0; margin: 0; transition: width .2s, opacity .2s, margin .2s; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--v, 100%), rgba(255, 255, 255, .3) var(--v, 100%)); cursor: pointer; }
.yp-vol:hover .yp-vr, .yp-vr:focus { width: 72px; opacity: 1; margin: 0 10px 0 2px; }
.yp-vr::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.yp-vr::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.yp-time { padding: 0 14px 0 6px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.yp-speedw { position: relative; }
.yp-menu { position: absolute; right: 0; bottom: 54px; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(58px, auto)); gap: 4px; padding: 8px; border-radius: 12px; background: rgba(28, 28, 28, .92); backdrop-filter: blur(10px); color: #fff; }
.yp-menu b { grid-column: 1 / -1; padding: 2px 6px 4px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.yp-menu button { border: 0; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #fff; padding: 7px 10px; white-space: nowrap; line-height: 1.3; text-align: center; font-size: 15px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.yp-menu button:hover { background: rgba(255, 255, 255, .16); }
.yp-menu button.on { background: var(--gold); color: #fff; font-weight: 800; }
/* 꾹 누르면 2배속 — 위 가운데 '2배 ▶▶' (유튜브처럼) */
.yp video { -webkit-touch-callout: none; }
.yp-2x { /* 꾹 눌러 2배 — 아래쪽 금색 판 (속도계 + ×2) */
  position: absolute; z-index: 3; left: 50%; bottom: 72px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 10px; border-radius: 14px;
  background: linear-gradient(135deg, #ecd39a 0%, #c9a05a 45%, #9d7638 100%); color: #fff; text-shadow: 0 1px 1px rgba(80, 55, 15, .45);
  box-shadow: 0 10px 24px -8px rgba(60, 40, 10, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
  transform: translate(-50%, 8px) scale(.94); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.yp.hold2x .yp-2x { opacity: 1; transform: translate(-50%, 0); }
.yp-2x b { font-size: 20px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.yp-2x small { font-size: 13px; font-weight: 600; opacity: .95; }
.yp-2x-g { width: 26px; height: 26px; stroke: #fff; stroke-width: 2.2; fill: none; }
.yp-2x-g circle { fill: #fff; stroke: none; }
.yp-2x-n { transform-origin: 12px 16.5px; transform: rotate(-80deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.yp.hold2x .yp-2x-n { transform: rotate(0); }
/* 화면 가운데 잠깐 뜨는 표시 (재생·정지·5초 이동·음량) */
.yp-flash { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: rgba(0, 0, 0, .5); color: #fff; opacity: 0; pointer-events: none; }
.yp-flash svg { width: 32px; height: 32px; stroke-width: 2; }
.yp-flash em { font-size: 12px; font-style: normal; font-weight: 700; }
.yp-flash.on { animation: ypFlash .6s ease-out; }
@keyframes ypFlash { 0% { opacity: 1; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.25); } }
/* 멈춰 있을 때 가운데 큰 재생 단추 대신 — 받는 중이면 도는 고리 */
.yp.wait::after { content: ''; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: ypSpin .8s linear infinite; pointer-events: none; }
@keyframes ypSpin { to { transform: rotate(360deg); } }
.yp.fs { border-radius: 0; }
.yp.fs video { object-fit: contain; }
@media (max-width: 600px) {
  .yp-bar { padding: 0 4px 4px; }
  .yp-btn { width: 40px; height: 40px; }
  .yp-time { font-size: 13px; padding: 0 10px 0 2px; }
  .yp-vr { display: none; }
}
.w-title { margin: 14px 0 10px; font-size: clamp(21px, 1.5vw, 25px); line-height: 1.4; font-weight: 700; letter-spacing: -.02em; }
.w-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.w-ch { display: flex; align-items: center; gap: 16px; min-width: 0; }
.w-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.w-who img { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 6%; background: #e4e8ef; }
.w-who span { display: grid; min-width: 0; line-height: 1.3; }
.w-who b { font-size: 18px; font-weight: 700; }
.w-who small { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-who:hover b { text-decoration: underline; text-underline-offset: 3px; }
.w-info { flex: none; position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, filter .2s; }
/* 교회정보: 마우스를 올리면 살짝 떠오르고, 교회 아이콘이 통통 튀고, 금빛이 한 번 스침 */
.w-info::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(226, 192, 126, .55), transparent); transform: skewX(-20deg); pointer-events: none; }
.w-info:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(17, 26, 45, .7), 0 0 0 2px rgba(201, 160, 90, .55); filter: none; }
.w-info:hover::after { animation: infoShine .7s ease-out; }
.w-info:hover svg { animation: infoHop .6s cubic-bezier(.3, 1.6, .5, 1); color: #e2c07e; }
@keyframes infoShine { from { left: -60%; } to { left: 130%; } }
@keyframes infoHop { 0% { transform: translateY(0); } 40% { transform: translateY(-4px) rotate(-8deg); } 100% { transform: none; } }
.w-acts { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--chip); font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.pill:hover { background: #e2e5eb; }
.pill svg { width: 22px; height: 22px; }
.pill.on { background: var(--ink); color: #fff; }
.pill.on svg { fill: currentColor; }
.w-desc { margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: var(--fog); font-size: 16px; }
.w-desc p { margin: 0 0 8px; }
.w-desc p:last-child { margin-bottom: 0; color: var(--ink-2); }
.w-desc-top { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.w-desc-top span { color: var(--muted); }
.w-desc .tags { margin: 0 0 8px; }
.w-verse { display: flex; align-items: center; gap: 8px; }
.w-verse svg { color: var(--gold-deep); }
/* 댓글 자리 대신: 교회 안내 카드 */
.w-church { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.wc-ph { align-self: start; border-radius: 14px; overflow: hidden; aspect-ratio: 191 / 162; background: linear-gradient(180deg, #eef1f6, #dde3ec); }
.wc-ph img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.wc-ph.wide { aspect-ratio: auto; background: none; }
.wc-ph.wide img { height: auto; }
.w-church h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.wc-who { margin: 2px 0 14px; color: var(--muted); font-size: 16px; }
.wc-h { margin: 4px 0 6px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.wc-worship dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; margin: 0 0 16px; font-size: 16px; }
.wc-worship dt { color: var(--muted); }
.wc-worship dd { margin: 0; font-weight: 600; }
.wc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.w-sec { margin-top: 36px; }
.w-sec h3 { margin: 0 0 16px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.w-sec h3 small { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.w-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w-cards .card { animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms); }
/* 오른쪽: 이 목사님의 다른 설교 · 비슷한 설교 */
.w-side { min-width: 0; }
.w-side-h { margin: 0 0 10px; font-size: 17px; font-weight: 700; }
.rels { display: grid; gap: 8px; margin-bottom: 24px; }
.rel { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px; align-items: start; padding: 4px; margin: 0 -4px; border-radius: 12px; transition: background-color .2s; }
.rel:hover { background: var(--fog); }
.rel-th { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #d9dee6; }
.rel-th img { width: 100%; height: 100%; object-fit: cover; }
.rel-th em { position: absolute; right: 5px; bottom: 5px; padding: 0 5px; border-radius: 5px; background: rgba(11, 18, 34, .82); color: #fff; font-size: 12.5px; font-style: normal; font-weight: 600; }
.rel-tx { display: grid; gap: 2px; min-width: 0; }
.rel-tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 17px; line-height: 1.4; font-weight: 600; }
.rel-tx small { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 맨 위로 — kchrs.kr 과 같은 모양 (흰 동그라미 + 가는 화살표), 스크롤을 내리면 오른쪽 아래에 나타남 */
.totop { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #222; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 3px 10px rgba(0, 0, 0, .12); opacity: 0; visibility: hidden; transform: scale(.6); transition: opacity .2s, transform .28s, visibility 0s linear .28s; }
.totop.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s 80ms, transform .28s, visibility; }
.totop.show:hover { transform: translateY(-2px); }
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 600px) { .totop { right: 16px; bottom: 16px; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 16px; font-weight: 600; border: 1px solid rgba(226, 192, 126, .5); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 교회정보 창 — 탭 + bstv.kr 미니홈에서 가져온 글 */
.pp-tabs { display: flex; gap: 4px; margin: 0 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tabs a { flex: none; padding: 12px 16px; font-size: 17px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s; }
.pp-tabs a:hover { color: var(--ink); }
.pp-tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.pp-body { min-height: 240px; animation: rise .25s ease both; }
.pp-wait { color: var(--muted); }
/* 교회정보 글 — ciBuild 가 다시 그린 모양 */
.ci { font-size: 17px; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.ci-main { min-width: 0; }
.ci p { margin: 0 0 16px; }
.ci a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.ci h4 { display: flex; align-items: center; gap: 10px; margin: 32px 0 14px; font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ci h4:first-child { margin-top: 0; }
.ci h4 span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: linear-gradient(135deg, #ecd39a, #c9a05a 55%, #9d7638); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.ci h4:not(:has(span))::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--gold); }
/* 목록: 점이 세로 줄로 이어진 연혁 모양 */
.ci-list { list-style: none; margin: 0 0 20px; padding: 0 0 0 4px; }
.ci-list li { position: relative; padding: 5px 0 5px 24px; }
.ci-list li::before { content: ''; position: absolute; left: 3px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.ci-list li::after { content: ''; position: absolute; left: 8px; top: 27px; bottom: -11px; width: 1px; background: #e7dcc6; }
.ci-list li:last-child::after { display: none; }
.ci-list span { color: var(--ink); font-weight: 600; }
/* 성경 구절 인용 */
.ci-quote { position: relative; margin: 4px 0 22px !important; padding: 18px 22px 18px 54px; border-radius: 14px; background: linear-gradient(135deg, #faf6ee, #f4ede0); color: #5b4a2c; font-size: 17px; line-height: 1.75; }
.ci-quote::before { content: '“'; position: absolute; left: 18px; top: 4px; font-family: Georgia, serif; font-size: 52px; line-height: 1; color: #c9a05a; }
/* 프로필 탭: 왼쪽 사진 카드(따라 내려옴) + 오른쪽 글 */
.ci-profile { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.ci-portrait { position: sticky; top: 16px; display: grid; gap: 2px; text-align: center; }
.ci-portrait span { display: block; margin-bottom: 12px; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: radial-gradient(circle at 50% 30%, #fff, #e9edf3 70%); box-shadow: inset 0 0 0 1px rgba(17, 26, 45, .05); }
.ci-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.ci-portrait b { font-size: 19px; color: var(--ink); }
.ci-portrait small { font-size: 15px; color: var(--muted); }
/* 맨 위 큰 사진 (교회소개·예배시간) */
.ci-hero { margin: 0 0 30px; text-align: center; }
/* 원본보다 크게 늘리지 않고(작은 사진이 깨지지 않게), 자르지도 않음 */
.ci-hero img { display: inline-block; width: auto; max-width: 100%; height: auto; max-height: 520px; border-radius: 16px; vertical-align: top; }
.ci-intro .ci-main, .ci-worship .ci-main { max-width: 820px; }
/* 시간표 카드 */
.ci-card { margin: 0 0 22px; padding: 22px 24px 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.ci-card h4 { margin: 0 0 10px !important; }
.ci-tbw { margin: 0 0 22px; }
.ci-tb { display: grid; }
.ci-tr { display: flex; gap: 4px 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.ci-tr:first-child { border-top: 0; }
.ci-name { flex: 1 1 auto; display: grid; min-width: 6em; line-height: 1.45; } /* 이름은 시간에 밀려 찌그러지지 않게 */
.ci-name b { font-weight: 600; color: var(--ink); }
.ci-name small { font-size: 14.5px; color: var(--muted); }
.ci-time { flex: 0 1 auto; max-width: 62%; margin-left: auto; text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; } /* 긴 시간은 줄을 바꿔 오른쪽 정렬 (한 줄로 밀어 이름을 짓누르지 않게) */
.ci-worship .ci-main { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 22px; align-items: start; }
.ci-worship .ci-main > :not(.ci-card) { grid-column: 1 / -1; }
.ci-worship .ci-main:not(:has(.ci-card ~ .ci-card)) .ci-card { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 760px; } /* 시간표가 하나면 반쪽에 붙지 않게 — 위 사진처럼 가운데로 */
/* 정보 칸 (주소·전화·팩스) */
.ci-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 22px; }
.ci-info div { padding: 14px 18px; border-radius: 14px; background: var(--fog); }
.ci-info dt { font-size: 14px; font-weight: 700; color: var(--gold-deep); }
.ci-info dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.ci-map .ci-list li::before { border-color: var(--navy); }
/* 사진 모음 */
.ci-gallery { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 14px; margin: 10px 0 0; }
.ci-gallery a { display: block; max-width: 100%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s; }
.ci-gallery a:hover { box-shadow: var(--shadow-lift); }
.ci-gallery img { display: block; width: auto; max-width: 100%; height: auto; max-height: 440px; } /* 원본 크기·비율 그대로 (늘리지·자르지 않음) */
.ci-profile .ci-gallery { justify-content: flex-start; margin-top: 24px; }
@media (max-width: 760px) {
  .ci-profile { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ci-portrait { position: static; grid-template-columns: 96px minmax(0, 1fr); text-align: left; align-items: center; gap: 0 16px; }
  .ci-portrait span { grid-row: span 2; margin: 0; }
  .ci-worship .ci-main { grid-template-columns: minmax(0, 1fr); }
  .ci-card { padding: 18px 16px 6px; }
  /* 폰: 이름 위, 시간 아래 (한 줄에 나란히 두면 둘 다 좁아져 글자가 세로로 쌓임) */
  .ci-tr { display: block; }
  .ci-time { display: block; max-width: none; margin-top: 3px; text-align: left; }
}
.pp-map { border-radius: 14px; overflow: hidden; background: var(--fog); }
.pp-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.pp-mapacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }

/* ---------- 썸네일 마우스 미리보기 ---------- */
.hv { position: absolute; inset: 0; z-index: 2; display: block; background: #000; opacity: 0; transition: opacity .25s; }
.thumb.hv-play .hv { opacity: 1; }
.hv video { width: 100%; height: 100%; display: block; object-fit: cover; }
.thumb.hv-on .thumb-play { z-index: 3; pointer-events: none; } /* 미리보기가 돌아도 재생 단추는 그대로 */
.thumb.hv-on > em { z-index: 3; }
.thumb.hv-play > em { display: none; }
.thumb.hv-on img { filter: none !important; transform: none !important; }
.hv-snd { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; transition: background-color .2s, transform .2s; }
.hv-snd:hover { background: rgba(0, 0, 0, .8); transform: scale(1.06); }
.hv-snd svg { width: 20px; height: 20px; stroke-width: 2.2; }
.hv-left { position: absolute; right: 8px; bottom: 12px; padding: 1px 6px; border-radius: 6px; background: rgba(11, 18, 34, .82); color: #fff; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.hv-left:empty { display: none; }
.thumb.hv-low .hv-left { opacity: 0; }
/* 타임라인: 평소엔 맨 아래 얇은 줄, 아래쪽으로 내리면 굵어지고 동그라미·시간 */
.hv-tl { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; cursor: pointer; transition: left .2s, right .2s, bottom .2s, height .2s; }
.hv-tl::before, .hv-buf, .hv-fill { content: ''; position: absolute; left: 0; top: 0; bottom: 0; }
.hv-tl::before { right: 0; background: rgba(255, 255, 255, .3); }
.hv-buf { width: 0; background: rgba(255, 255, 255, .45); }
.hv-fill { width: 0; background: var(--gold); }
.hv-dot { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .15s; }
.hv-tip { position: absolute; bottom: 14px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.thumb.hv-low .hv-tl { left: 10px; right: 10px; bottom: 10px; height: 5px; }
.thumb.hv-low .hv-tl::before, .thumb.hv-low .hv-buf, .thumb.hv-low .hv-fill { border-radius: 3px; }
.thumb.hv-low .hv-dot { transform: scale(1); }
.thumb.hv-low .hv-tip { opacity: 1; }
.thumb.hv-low .hv::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, rgba(0, 0, 0, .5)); pointer-events: none; }
.hv-tl { z-index: 2; }
/* 건너뛰는 중 — 가운데 도는 고리 + '12:34로 이동 중' */
.hv-wait { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(8, 12, 22, .35); color: #fff; opacity: 0; pointer-events: none; transition: opacity .15s; }
.hv-wait i { width: 40px; height: 40px; border-radius: 50%; border: 3.5px solid rgba(255, 255, 255, .28); border-top-color: #f0d79f; animation: ypSpin .75s linear infinite; }
.hv-wait b { padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.thumb.hv-busy .hv-wait { opacity: 1; }
.thumb.hv-busy .hv-dot { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(201, 160, 90, .35); }
.hv-tl::after { content: ''; position: absolute; left: 0; right: 0; top: -14px; bottom: -8px; } /* 누르는 자리 넉넉하게 */

/* ---------- 첫 방문 팝업 — 강추 설교 미리 듣기 ---------- */
.pop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px var(--gutter); overflow-y: auto; background: rgba(8, 12, 22, .86); animation: fade .3s ease; transition: opacity .2s; } /* 흐림(backdrop-filter)은 고배율 화면에서 단추 글자 둘레에 세로 줄이 비쳐서 뺌 */
.pop.out { opacity: 0; }
.pop-box { position: relative; width: 100%; max-width: 920px; border-radius: 22px; overflow: hidden; background: var(--bg); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7); animation: boxIn .4s cubic-bezier(.2, .7, .2, 1) backwards; }
/* 창틀 — 별·'강력추천 설교 미리듣기'·닫기를 영상 위로 빼서 영상을 가리지 않게 */
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; background: linear-gradient(315deg, #ecd39a, #c9a05a 45%, #9d7638); } /* 창틀 전체를 금빛으로 채움 (왼쪽이 짙고 오른쪽이 밝게) */
.pop-head .pop-badge { padding: 0; background: none; box-shadow: none; }
.pop-x { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(70, 48, 15, .38); color: #fff; cursor: pointer; transition: background-color .2s; }
.pop-x:hover { background: rgba(70, 48, 15, .55); }
.pop-x svg { width: 22px; height: 22px; stroke-width: 2; }
.pop-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pop-stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.pop-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px 9px 15px; border-radius: 999px; background: linear-gradient(135deg, #ecd39a, #c9a05a 45%, #9d7638); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 1px 1px rgba(80, 55, 15, .45); box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .55); }
.pop-badge svg { width: 18px; height: 18px; fill: #fff8e6; stroke: none; }
.pop-load { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(8, 12, 22, .55); color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.pop-load i { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .25); border-top-color: #e2c07e; animation: ypSpin .8s linear infinite; }
.pop-load b { padding: 5px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.pop-stage.loading .pop-load { opacity: 1; }
.pop-stage.loading .pop-sound { opacity: 0; pointer-events: none; }
.pop-count { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; background: rgba(11, 18, 34, .62); backdrop-filter: blur(6px); color: #fff; font-size: 14px; font-weight: 600; }
.pop-count svg { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; transform: rotate(-90deg); fill: none; stroke-width: 3; }
.pop-count svg circle { stroke: rgba(255, 255, 255, .22); }
.pop-count .pop-ring { stroke: #e2c07e; stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 0; }
.pop-count b { position: relative; width: 32px; text-align: center; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pop-count.wait { opacity: .6; }
.pop-stage.muted::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(8, 12, 22, .1), rgba(8, 12, 22, .45)); pointer-events: none; } /* 소리 꺼져 있을 땐 화면을 살짝 어둡게 — 가운데 단추로 눈이 가게 */
.pop-sound { /* 소리 꺼져 있을 땐 화면 가운데 금빛 큰 단추 — 켜면 오른쪽 아래 작게 */
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 14px; height: 74px; padding: 0 30px 0 22px;
  border: 0; border-radius: 999px; background: linear-gradient(135deg, #f1dba6 0%, #d2aa62 45%, #a87d3b 100%); color: #fff; cursor: pointer; text-align: left;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .6); animation: soundBob 1.6s ease-in-out infinite; transition: filter .2s;
}
.pop-sound:hover { filter: brightness(1.08); animation-play-state: paused; transform: translate(-50%, -50%) scale(1.06); }
.ps-ring { position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(241, 219, 166, .9); animation: soundRing 1.8s ease-out infinite; pointer-events: none; }
.ps-ring2 { animation-delay: .9s; }
.ps-eq { display: flex; align-items: flex-end; gap: 4px; height: 30px; }
.ps-eq i { width: 5px; border-radius: 3px; background: #fff; box-shadow: 0 1px 2px rgba(80, 55, 15, .4); animation: eqBar .9s ease-in-out infinite; }
.ps-eq i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.ps-eq i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.ps-eq i:nth-child(3) { height: 60%; animation-delay: -.1s; }
.ps-eq i:nth-child(4) { height: 80%; animation-delay: -.7s; }
.ps-t { display: grid; line-height: 1.25; text-shadow: 0 1px 2px rgba(80, 55, 15, .5); }
.ps-t b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.ps-t small { font-size: 13.5px; font-weight: 600; opacity: .92; }
.ps-vol { display: none; width: 20px; height: 20px; stroke-width: 2; }
.pl-unmute { z-index: 6; } /* 보기 화면 플레이어 위 (주소로 바로 들어와 소리 없이 재생될 때) */
.pop-stage .pop-sound.on { display: none; } /* 팝업은 소리를 켜면 단추를 없앰 ('소리 끄기' 안 둠) */
.pop-sound.on { left: auto; top: auto; right: 14px; bottom: 14px; transform: none; height: 40px; padding: 0 16px 0 12px; gap: 7px; background: rgba(11, 18, 34, .7); box-shadow: none; animation: none; }
.pop-sound.on:hover { transform: none; }
.pop-sound.on .ps-ring, .pop-sound.on .ps-eq, .pop-sound.on .ps-t small { display: none; }
.pop-sound.on .ps-vol { display: block; }
.pop-sound.on .ps-t b { font-size: 15px; font-weight: 700; }
@keyframes soundBob { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.05); } }
@keyframes soundRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35, 1.7); opacity: 0; } }
@keyframes eqBar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.ps-eq i { transform-origin: bottom; }
.pop-info { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 24px 16px; }
.pop-info.in .pop-tx, .pop-info.in .pop-ph { animation: rise .35s ease backwards; } /* 끝나면 레이어를 남기지 않게 backwards */
.pop-ph { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #e4e8ef; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d9b875; }
.pop-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.pop-tx { min-width: 0; }
.pop-church { margin: 0; font-size: 15px; font-weight: 600; color: var(--gold-deep); }
.pop-title { margin: 2px 0 2px; font-size: clamp(20px, 2vw, 24px); line-height: 1.35; font-weight: 700; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pop-meta { margin: 0; font-size: 14.5px; color: var(--muted); }
.pop-go { min-height: 50px; padding: 0 26px; font-size: 17px; will-change: transform; backface-visibility: hidden; } /* 고배율 화면에서 화면 조각(타일) 이음매가 금빛 위에 흰 세로줄로 비쳐서 — 단추를 따로 한 조각으로 그림 */
.pop-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; padding: 0 24px 22px; }
.pop-tab { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pop-tab:hover { background: var(--fog); }
.pop-tab.on { border-color: #d9b875; background: #fbf7ef; box-shadow: 0 6px 16px -10px rgba(120, 85, 30, .5); }
.pop-tav { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #e4e8ef; }
.pop-tav img { position: absolute; left: 50%; top: 2px; width: 150%; max-width: none; transform: translateX(-50%); }
.pop-tn { display: grid; min-width: 0; line-height: 1.3; }
.pop-tn b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-tn small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-bar { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(17, 26, 45, .08); overflow: hidden; }
.pop-bar i { display: block; width: 0; height: 100%; background: var(--gold); }
.pop-ph img, .pop-tav img { opacity: 0; transition: opacity .35s ease; }
.pop-ph img.ok, .pop-tav img.ok { opacity: 1; }
@media (max-width: 760px) {
  .pop { padding: 12px; place-items: center; align-items: safe center; } /* 폰에서도 화면 가운데 (화면보다 길면 위가 잘리지 않게 safe) */
  .pop-info { grid-template-columns: 56px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .pop-ph { width: 56px; height: 56px; }
  .pop-go { grid-column: 1 / -1; width: 100%; }
  .pop-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 16px; }
  .pop-head { padding: 8px 10px 8px 16px; }
  .pop-head .pop-badge { padding: 0; font-size: 16px; }
  .pop-x { width: 38px; height: 38px; }
  .pop-sound { height: 60px; padding: 0 20px 0 16px; gap: 10px; }
  .ps-t b { font-size: 17px; }
  .ps-t small { font-size: 12px; }
  .ps-eq { height: 24px; }
}

/* ---------- 거르기 이름표·태그 ---------- */
.feed-note:empty { display: none; }
.fn { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 20px; font-size: 16px; color: var(--muted); animation: rise .3s ease both; }
.fn b { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.fn img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; background: #e4e8ef; }
.fn a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.fn .fn-q { color: var(--ink-2); }
.fn .linkbtn { margin-left: auto; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tags button { border: 0; padding: 4px 12px; border-radius: 999px; background: var(--chip); color: var(--ink-2); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .15s; }
.tags button:hover { background: #e2e5eb; }

/* 이럴 때 듣는 설교 — 주제 타일 (썸네일 셋을 겹쳐 재생목록처럼) */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }
.topic { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.topic-pics { position: relative; display: block; aspect-ratio: 16 / 9; margin-top: 14px; }
.topic-pics img { position: absolute; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: #d9dee6; transition: opacity .35s ease, transform .4s ease, filter .3s; }
.topic-pics img:nth-child(1) { inset: 0; z-index: 3; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset; }
.topic-pics img:nth-child(2) { left: 5%; width: 90%; height: 90%; top: -7px; z-index: 2; filter: brightness(.72) saturate(.9); border-radius: 12px 12px 0 0; }
.topic-pics img:nth-child(3) { left: 10%; width: 80%; height: 80%; top: -13px; z-index: 1; filter: brightness(.5) saturate(.8); border-radius: 10px 10px 0 0; }
.topic-count { position: absolute; z-index: 4; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: 6px; background: rgba(11, 18, 34, .82); color: #fff; font-size: 13.5px; font-weight: 600; }
.topic-count svg { width: 16px; height: 16px; }
.topic-all { position: absolute; z-index: 5; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); background: rgba(11, 18, 34, .55); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .02em; opacity: 0; transition: opacity .25s; }
.topic-all svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.topic:hover .topic-all, .topic:focus-visible .topic-all { opacity: 1; }
.topic:hover .topic-pics img:nth-child(1) { transform: scale(1.02); }
.topic-tx { display: grid; gap: 3px; min-width: 0; }
.topic-tx b { font-size: 18px; font-weight: 700; line-height: 1.4; }
.topic-tx small { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- 부드럽게 — 사진은 받아지면 스며들고, 카드는 차례로 떠오르고, 창은 살짝 올라오며 ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes boxIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.thumb img, .av img, .person-ph img, .rel-th img, .wc-ph img, .topic-pics img, .chip-p img, .si-av img, .pp-photo img { opacity: 0; }
.thumb img.ok, .av img.ok, .person-ph img.ok, .rel-th img.ok, .wc-ph img.ok, .topic-pics img.ok, .chip-p img.ok, .si-av img.ok, .pp-photo img.ok { opacity: 1; }
.thumb img { transition: opacity .35s ease, transform .5s ease, filter .3s; }
.av img, .rel-th img, .wc-ph img, .si-av img, .pp-photo img { transition: opacity .35s ease; }
.person-ph img { transition: opacity .35s ease, transform .5s ease; }
.grid .card, .people .person, .cards-pp .card { animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms); }
.grid { transition: opacity .13s ease; }
.grid.out { opacity: 0; }
.layer-box { animation: boxIn .32s cubic-bezier(.2, .7, .2, 1) both; }
.layer.swap { animation: none; }
.layer.swap .layer-box { animation: rise .25s ease both; }
.layer { transition: opacity .18s ease; }
.layer.out { opacity: 0; }
.layer.out .layer-box { transform: translateY(8px) scale(.99); transition: transform .18s ease; }

/* ---------- 로그인·말씀 출석 (member.js) — 머리줄 오른쪽 끝 ---------- */
.acct { position: relative; flex: none; display: flex; align-items: center; margin-left: 4px; }
.acct-in { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.acct-in:hover { background: var(--fog); }
.acct-in svg { width: 20px; height: 20px; }
.acct-me { display: inline-flex; align-items: center; height: 40px; padding: 0 2px; border: 0; background: none; cursor: pointer; }
.acct-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 16px; font-weight: 700; }
.acct-me:hover .acct-av { filter: brightness(1.3); }
.acct-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 80; width: min(320px, calc(100vw - 24px)); padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow-lift); animation: rise .2s ease both; }
/* 폰·세로 태블릿: 머리줄 바로 아래 화면 폭 가득, 위에서 아래로 서랍처럼 열림 (뒤는 어둡게) */
@media (max-width: 860px) {
  .acct-pop { position: fixed; left: 0; right: 0; top: var(--bar-h); width: auto; max-height: calc(100dvh - var(--bar-h)); overflow-y: auto; padding: 20px var(--gutter) 22px;
    border: 0; border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; box-shadow: 0 18px 40px -16px rgba(8, 12, 22, .45), 0 0 0 100vmax rgba(8, 12, 22, .38);
    animation: acctDrawer .34s cubic-bezier(.22, .8, .24, 1) both; }
  .acct-pop::before { display: none; }
  .acct-pop .ap-dots { gap: 6px; }
  .acct-pop .ap-i { min-height: 50px; font-size: 17px; }
}
@keyframes acctDrawer { from { clip-path: inset(0 0 100% 0 round 0 0 22px 22px); transform: translateY(-8px); } to { clip-path: inset(0 0 0 0 round 0 0 22px 22px); transform: none; } }
.acct-pop p { margin: 0; }
.ap-mail { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-big { margin-top: 6px !important; font-size: 20px; font-weight: 700; }
.ap-big b { color: var(--gold-deep); }
.ap-sub { margin-top: 2px !important; font-size: 14px; color: var(--muted); line-height: 1.45; }
.ap-dots { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; margin-top: 14px; }
.ap-dots i { aspect-ratio: 1; border-radius: 4px; background: var(--chip); }
.ap-dots i.on { background: var(--gold); }
.ap-dots i.now { box-shadow: 0 0 0 1.5px var(--ink); }
.ap-cap { display: flex; justify-content: space-between; margin-top: 4px !important; font-size: 12px; color: #9aa1ad; }

.ap-login { width: 100%; margin-top: 12px; }
/* 출석 배지 — 7일 구리 · 30일 은 · 100일 금 메달, 못 받은 것은 회색 */
.bd-row { display: flex; gap: 10px; margin-top: 12px; }
.bd { display: flex; align-items: center; gap: 12px; }
.bd-m { position: relative; display: block; width: 40px; height: 40px; flex: none; }
.bd-m svg { width: 100%; height: 100%; }
.bd-m b { position: absolute; left: 0; right: 0; top: 41%; transform: translateY(-50%); text-align: center; font-size: 12px; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.bd-m .bd-rib { fill: #c9ced8; }
.bd-m .bd-c { fill: #d9dde4; }
.bd-m .bd-in { fill: #c3c8d1; stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; }
.bd-m.b7.on .bd-rib { fill: #8a5a3b; } .bd-m.b7.on .bd-c { fill: #c08457; } .bd-m.b7.on .bd-in { fill: #a96d44; }
.bd-m.b30.on .bd-rib { fill: #5d6b80; } .bd-m.b30.on .bd-c { fill: #c9d2de; } .bd-m.b30.on .bd-in { fill: #9aa8ba; }
.bd-m.b100.on .bd-rib { fill: #8c6526; } .bd-m.b100.on .bd-c { fill: #e2c07e; } .bd-m.b100.on .bd-in { fill: #c99a45; }
.bd-m.on { filter: drop-shadow(0 3px 6px rgba(120, 85, 30, .35)); }
.bd-row.big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.bd-row.big .bd { position: relative; padding: 14px 16px; border-radius: var(--radius); background: var(--fog); }
.bd-row.big .bd.on { background: #f6efe2; }
.bd-row.big .bd-m { width: 56px; height: 56px; }
.bd-row.big .bd-m b { font-size: 16px; }
.bd p { margin: 0; display: grid; gap: 2px; }
.bd p b { font-size: 16px; }
.bd p small { font-size: 14px; color: var(--muted); }
.bd.on p small { color: var(--gold-deep); font-weight: 600; }
.bd-bar { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 4px; border-radius: 4px; background: #dfe3ea; overflow: hidden; }
.bd-bar i { display: block; height: 100%; background: var(--gold); }
.me-badges { margin-top: 24px; }
.me-badges h3 { margin: 0 0 12px; font-size: 18px; }
.me-badges h3 small { margin-left: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.bd-pop { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; background: rgba(8, 12, 22, .45); animation: fade .3s ease; cursor: pointer; }
.bd-pop.out { opacity: 0; transition: opacity .4s; }
.bd-pop-in { display: grid; justify-items: center; gap: 6px; padding: 30px 40px 26px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lift); animation: bdIn .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.bd-pop-in .bd-m { width: 96px; height: 96px; animation: bdSpin 1.2s ease-out both; }
.bd-pop-in .bd-m b { font-size: 26px; }
.bd-pop-t { margin: 8px 0 0; font-size: 22px; font-weight: 800; }
.bd-pop-s { margin: 0; font-size: 16px; color: var(--gold-deep); font-weight: 600; }
@keyframes bdIn { from { transform: scale(.6); opacity: 0; } }
@keyframes bdSpin { from { transform: rotateY(-180deg) scale(.7); } }
@media (max-width: 600px) {
  .bd-row.big { grid-template-columns: minmax(0, 1fr); }
}
.ap-list { display: grid; margin: 14px -8px -6px; padding-top: 8px; border-top: 1px solid var(--line); }
.ap-i { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 16px; text-align: left; cursor: pointer; }
.ap-i:hover { background: var(--fog); }
.ap-i svg { width: 20px; height: 20px; color: var(--ink-2); }
.ap-i span { flex: 1; }
.ap-i em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--gold-deep); }
.ap-out { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--muted); }
.acct-pop::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* 동그라미와 메뉴 사이 틈 — 마우스가 지나가도 안 닫히게 */

/* 마이페이지 (#/me) */
.layer-me { display: flex; flex-direction: column; overflow: hidden; padding-top: 24px; padding-bottom: 24px; } /* 마이페이지 — 칸을 바꿔도 창 크기는 그대로, 안쪽만 스크롤 */
.mebox { display: flex; flex-direction: column; width: 100%; max-width: 1080px; height: min(860px, calc(100dvh - 48px)); margin: auto; padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0; }
.mebox .layer-x { background: var(--fog); color: var(--ink); }
.me-head { display: flex; align-items: center; gap: 16px; padding-right: 48px; }
.me-head .me-av { width: 60px; height: 60px; font-size: 26px; flex: none; }
.me-head h2 { margin: 0; font-size: clamp(24px, 2vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.me-head p { margin: 2px 0 0; font-size: 16px; color: var(--muted); overflow-wrap: anywhere; }
.me-tabs { display: flex; gap: 4px; margin: 24px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.me-tabs::-webkit-scrollbar { display: none; }
.me-tabs a { position: relative; flex: none; padding: 12px 16px; font-size: 16.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.me-tabs a:hover { color: var(--ink); }
.me-tabs a.on { color: var(--ink); font-weight: 700; }
.me-tabs a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--gold); }
.me-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 2px clamp(24px, 4vw, 44px); }
.me-note { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.me-att + .me-note { margin: 16px 0 0; }
.me-att { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.me-stats { display: grid; grid-template-rows: repeat(3, auto); gap: 12px; }
.me-stat { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; padding: 16px 20px; border-radius: var(--radius); background: var(--fog); }
.me-stat small { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.me-stat b { grid-row: span 2; font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.me-stat b em { margin-left: 2px; font-size: 17px; font-style: normal; font-weight: 600; }
.me-stat span { font-size: 14px; color: var(--muted); }
.me-stat.gold { background: #f6efe2; }
.me-stat.gold b { color: var(--gold-deep); }
.me-cal { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.mc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mc-head b { font-size: 18px; }
.mc-head small { flex: 1; font-size: 14px; color: var(--gold-deep); font-weight: 600; }
.mc-nav { order: 9; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); cursor: pointer; }
.mc-nav svg { transform: rotate(90deg); }
.mc-nav.nx svg { transform: rotate(-90deg); }
.mc-nav:disabled { opacity: .35; cursor: default; }
.mc-week, .mc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.mc-week span { font-size: 13px; color: var(--muted); padding-bottom: 4px; }
.mc-days i { display: grid; place-items: center; aspect-ratio: 1; max-height: 44px; border-radius: 50%; font-size: 14px; font-style: normal; color: var(--ink-2); }
.mc-days i.on { background: var(--gold); color: #fff; font-weight: 700; }
.mc-days i.now { box-shadow: inset 0 0 0 2px var(--ink); }
.mc-days i.after { color: #c3c8d1; }
.me-sec { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.me-sec h3 { margin: 0 0 16px; font-size: 21px; font-weight: 700; }
.me-sec h3 small { margin-left: 6px; font-size: 15px; font-weight: 500; color: var(--muted); }
.me-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; }
.me-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.me-pager button { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 15px; cursor: pointer; font-variant-numeric: tabular-nums; }
.me-pager button:hover { background: var(--fog); }
.me-pager button.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.me-pager button:disabled { opacity: .35; cursor: default; }
.me-pager button svg { width: 18px; height: 18px; transform: rotate(90deg); }
.me-pager button:last-child svg { transform: rotate(-90deg); }
.me-empty { margin: 0; padding: 20px; border-radius: var(--radius); background: var(--fog); color: var(--muted); font-size: 16px; }
.me-pw { max-width: 420px; }
.me-h4 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.me-out { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.me-leave { max-width: 420px; margin-top: 16px; padding: 16px; border-radius: var(--radius); background: #fbf1f0; }
.me-leave > p:first-child { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: #7a2f2a; }
.me-leave-go { background: #b3403a; border-color: #b3403a; color: #fff; }
@media (max-width: 860px) {
  .mebox { height: 100dvh; max-width: none; border-radius: 0; padding: 22px 16px 0; } /* 폰: 화면 가득, 안쪽만 스크롤 */
  .me-att { grid-template-columns: minmax(0, 1fr); }
  .me-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 로그인 창 — 교회정보 창과 같은 바탕, 상자만 작게 */
.layer-m { display: grid; place-items: center; }
.mbox { width: 100%; max-width: 440px; padding: 34px 28px 24px; border-radius: 20px; overflow: visible; }
.mbox .layer-x { background: var(--fog); color: var(--ink); }
.m-mark { width: 40px; height: 40px; margin-bottom: 12px; }
.mbox h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.m-lead { margin: 6px 0 20px; font-size: 16px; color: var(--muted); }
.m-lead b { color: var(--gold-deep); }
.mf { display: grid; gap: 6px; margin-bottom: 14px; }
.mf span { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.mf small { margin-left: 4px; font-weight: 500; color: var(--muted); }
.mf input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font: inherit; font-size: 17px; color: var(--ink); user-select: text; -webkit-user-select: text; }
.mf input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 26, 45, .08); }
.mcode { display: grid; gap: 12px; margin-bottom: 14px; }
.mcode .mf { margin: 0; }
.mc-send { width: 100%; }
#mCode { letter-spacing: .3em; font-size: 20px; font-weight: 700; }
.merr { min-height: 1.4em; margin: 0 0 8px; font-size: 15px; color: #b3403a; }
.mgo { width: 100%; min-height: 52px; font-size: 17px; }
.btn.busy { opacity: .6; pointer-events: none; }
.mlinks { display: flex; justify-content: center; gap: 4px; margin: 14px 0 0; }
.mlinks button { border: 0; background: none; padding: 6px 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mlinks button + button { border-left: 1px solid var(--line); text-decoration-color: var(--line); }

/* 다음 설교 — 영상이 끝나면 위에 카드, 8초 세고 넘어감 */
.upnext { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 16px; background: rgba(8, 12, 22, .82); backdrop-filter: blur(4px); color: #fff; animation: fade .3s ease; }
.un-h { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .8); }
.un-h b { color: #e2c07e; }
.un-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: center; width: min(560px, 86vw); }
.un-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.un-th img { width: 100%; height: 100%; object-fit: cover; }
.un-ring { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%) rotate(-90deg); }
.un-ring circle { fill: rgba(8, 12, 22, .55); stroke: rgba(255, 255, 255, .25); stroke-width: 3; }
.un-ring .un-arc { fill: none; stroke: #e2c07e; stroke-dasharray: 132; stroke-dashoffset: 132; animation: unArc linear forwards; }
@keyframes unArc { to { stroke-dashoffset: 0; } }
.un-tx b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 19px; line-height: 1.35; }
.un-tx small { display: block; margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.un-acts { display: flex; gap: 8px; }
@media (max-width: 600px) {
  .upnext { gap: 10px; }
  .un-h { font-size: 15px; }
  .un-card { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; }
  .un-ring { width: 40px; height: 40px; }
  .un-tx b { font-size: 15px; }
  .un-tx small { font-size: 13px; }
  .un-acts .btn { min-height: 36px; padding: 0 14px; font-size: 14px; }
}

/* 쇼츠 — 홈 줄: 세로 카드(유튜브 쇼츠 줄처럼), 가로 설교 영상은 흐린 배경 위 가운데 */
.sh-logo { display: inline-block; width: 22px; height: 26px; margin-right: 8px; vertical-align: -3px; border-radius: 7px; background: linear-gradient(160deg, var(--gold), var(--gold-deep)); clip-path: polygon(25% 0, 100% 0, 75% 50%, 100% 50%, 25% 100%, 45% 55%, 0 55%); }
.shorts { margin: 0 0 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); } /* 추천 설교 바로 아래 */
.shorts.off { display: none; }
.shorts .shelf-head h2 { margin: 0; font-size: clamp(22px, 1.6vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.shorts .shelf-head h2 small { margin-left: 10px; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.sh-arrows { display: flex; gap: 6px; }
.sh-arrows .btn { width: 40px; padding: 0; }
.shorts-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6); gap: 16px; /* 유튜브 쇼츠 줄처럼 한 줄 6개, 화면 폭에 맞춤 */ overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.shorts-row::-webkit-scrollbar { display: none; }
@media (max-width: 1280px) { .shorts-row { grid-auto-columns: calc((100% - 4 * 16px) / 5); } }
@media (max-width: 1000px) { .shorts-row { grid-auto-columns: calc((100% - 3 * 14px) / 4); gap: 14px; } }
.short { display: grid; gap: 8px; align-content: start; min-width: 0; scroll-snap-align: start; animation: rise .38s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 30ms); }
.sh-th { position: relative; display: block; aspect-ratio: 2 / 3; /* 실제 쇼츠(9:16)보다 위아래를 잘라 짧게 */ border-radius: 14px; overflow: hidden; background: var(--navy); }
.sh-th .sh-bg { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; filter: blur(18px) brightness(.55) saturate(1.1); }
.sh-th .sh-img { position: absolute; left: 0; top: 50%; width: 100%; transform: translateY(-50%); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6); transition: transform .4s ease; }
.short:hover .sh-img { transform: translateY(-50%) scale(1.04); }
.sh-th .sh-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.short:hover .sh-pic { transform: scale(1.04); }
.sh-th em { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgba(8, 12, 22, .7); color: #fff; font-size: 13px; font-style: normal; font-weight: 600; }
.short b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 600; line-height: 1.4; }
.short small { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .shorts-row { grid-auto-columns: 40%; gap: 10px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; scroll-padding: 0 var(--gutter); }
  .sh-arrows { display: none; }
  .short b { font-size: 15.5px; }
}

/* 쇼츠 보기 화면 — 화면 가운데 9:16 틀, 위·아래로 넘김 */
.sh-stage { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; overflow: hidden; background: rgba(12, 18, 32, .42); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); animation: fade .25s ease; overscroll-behavior: contain; touch-action: none; } /* 뒤로 홈이 흐린 유리처럼 비침 */
.sh-frame { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.sh-frame { position: relative; width: min(100vw, 100dvh * 9 / 16); height: min(100dvh, 100vw * 16 / 9); overflow: hidden; background: radial-gradient(90% 50% at 50% 42%, #1c2742, #090d18 75%); } /* 9:16 — 화면이 더 좁으면 폭에 맞춤 */
@media (min-width: 761px) { .sh-frame { width: min(100vw, (100dvh - 40px) * 9 / 16); height: calc(100dvh - 40px); border-radius: 18px; } }
@media (max-width: 760px) { .sh-frame { width: 100vw; height: 100dvh; } } /* 폰은 화면 가득 */
.sh-ghost { position: fixed; z-index: 2; pointer-events: none; } /* 넘길 때 밀려 나가는 지난 화면 사본 */
.sh-fbg { display: none; } /* 보기 화면엔 썸네일을 깔지 않음 — 바탕은 .sh-frame 그라데이션 */
.sh-v { position: absolute; left: 50%; top: 42%; height: 70%; width: auto; aspect-ratio: 16 / 9; max-width: none; transform: translate(-50%, -50%); object-fit: cover; background: transparent; opacity: 0; transition: opacity .35s ease; } /* 위아래로 크게 — 양옆은 잘림 */
.sh-v.on { opacity: 1; }
.sh-still { position: absolute; left: 50%; top: 42%; height: 70%; width: auto; aspect-ratio: 16 / 9; max-width: none; transform: translate(-50%, -50%); object-fit: cover; } /* 영상이 뜨기 전 같은 자리에 그 장면 그림 */
.sh-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 26px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .55) 60%, transparent); }
.sh-who { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.sh-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: #2a3247; }
.sh-who span { display: grid; line-height: 1.3; }
.sh-who b { font-size: 16px; }
.sh-who small { font-size: 13.5px; opacity: .75; }
.sh-info h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-verse { margin: 6px 0 14px; font-size: 14.5px; opacity: .75; }
.sh-full { min-height: 40px; }
.sh-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.sh-bar i { display: block; height: 100%; width: 0; background: #e2c07e; transition: width .25s linear; }
.sh-tap { position: absolute; left: 0; right: 0; top: 64px; bottom: 45%; border: 0; background: none; cursor: pointer; outline: none; } /* 눌렀을 때 테두리 줄 안 보이게 */
.sh-snd { position: absolute; right: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(8, 12, 22, .55); color: #fff; cursor: pointer; font-size: 14px; font-weight: 600; }
.sh-snd svg { width: 22px; height: 22px; }
.sh-snd.off { background: #b8975f; padding-right: 14px; }
.sh-x { position: fixed; top: 16px; left: 16px; z-index: 3; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(12, 18, 32, .55); color: #fff; cursor: pointer; }
.sh-x svg { width: 24px; height: 24px; stroke-width: 2; }
.sh-nav { position: fixed; right: max(16px, calc(50% - 28.125vh - 80px)); top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
.sh-nav button { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(12, 18, 32, .55); color: #fff; cursor: pointer; transition: background-color .2s; }
.sh-nav button:hover { background: rgba(12, 18, 32, .75); }
.sh-nav button:first-child svg { transform: rotate(180deg); }
.sh-nav button:disabled { opacity: .25; cursor: default; }
.sh-nav svg { width: 26px; height: 26px; stroke-width: 2.2; }
@media (max-width: 760px) {
  .sh-nav { display: none; }
  .sh-x { top: 12px; left: 12px; background: rgba(8, 12, 22, .45); }
}

/* 특별 서비스 — 장식 없이 사이트 색·글꼴 그대로, 모양으로만 구별 (2026-10-27 'AI 같다' 반려 뒤)
   블레싱 365: 남색 단색 알약 + 숫자만 금색 / 말씀 필사: 가는 선 테두리 + 펜 */
.tn.tn-bless, .tn.tn-pilsa { height: 36px; border-radius: 999px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; transition: background-color .15s, border-color .15s; }
.tn.tn-bless { gap: 4px; margin-left: 10px; padding: 0 15px; background: #f9dce5; color: #6e2a42; } /* 벚꽃색 단색 */
.tn-bless .tb-n { font-weight: 700; color: #c4587a; font-variant-numeric: tabular-nums; }
.tn.tn-bless:hover { background: #fdeef3; color: #8a3453; }
.tn.tn-pilsa { gap: 6px; margin-left: 6px; padding: 0 15px 0 12px; background: none; color: var(--ink); box-shadow: inset 0 0 0 1px #cdd2da; }
.tn-pilsa svg { width: 16px; height: 16px; color: var(--ink-2); stroke-width: 1.8; }
.tn.tn-pilsa:hover { background: var(--fog); color: var(--ink); }
.tn.tn-bless.on::after, .tn.tn-pilsa.on::after { display: none; }
@media (max-width: 860px) {
  .tnav > * { order: 2; } .tnav > .tn:first-child { order: 0; } .tnav > .tn-bless, .tnav > .tn-pilsa { order: 1; } /* 폰: 홈 다음에 바로 (끝에 숨지 않게) */
  .tn.tn-bless, .tn.tn-pilsa { height: 32px; font-size: 14.5px; }
  .tn.tn-bless { margin-left: 4px; padding: 0 12px; }
  .tn.tn-pilsa { margin: 0 4px 0 6px; padding: 0 12px 0 10px; }
}
/* 탭이 하나 늘어 좁은 PC 창에서는 줄임: '아무 설교나'는 주사위만, 더 좁으면 '온라인방송국'·별 빼기 */
@media (min-width: 861px) and (max-width: 1360px) { .tn-rand-t { display: none; } .tn.tn-rand { padding: 0 12px; } }
@media (min-width: 861px) and (max-width: 1180px) { .logo span, .logo .beta { display: none; } }
.tn-short { display: none; }
@media (min-width: 861px) and (max-width: 1000px) { .tn-long { display: none; } .tn-short { display: inline; } .tn.tn-bless { margin-left: 4px; padding: 0 12px; } .tn.tn-pilsa { margin-left: 6px; padding: 0 11px 0 9px; } }
@media (min-width: 861px) and (max-width: 1000px) { .head-in { gap: 8px; } .tnav { margin-left: 12px; } .tn { padding: 0 8px; } .head-in > .hq-link { width: 36px; padding: 0 5px; font-size: 0; gap: 0; } /* 총회는 로고만 */ }

/* 블레싱365 화면 — 봄날 벚꽃: 연분홍 하늘, 꽃잎이 하늘하늘 떨어짐, 자두빛 고운바탕 글 (2026-10-27 사용자) */
.bl-stage { --rose: #c4587a; --plum: #4a2433; --soft: #a66a7e;
  position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: auto 1fr auto; overflow-y: auto; color: var(--plum);
  background: radial-gradient(90% 60% at 85% 0%, #fde3eb 0%, transparent 60%), radial-gradient(70% 50% at 0% 100%, #fbe0e8 0%, transparent 65%), linear-gradient(180deg, #fbeef2 0%, #fff8f9 55%, #fdf2f5 100%); animation: fade .4s ease; }
/* 꽃잎 — 크기·속도·흔들림을 조금씩 달리해 떨어짐 */
.bl-petals { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.bl-petals i { position: absolute; top: -6vh; left: var(--x); width: var(--s); height: calc(var(--s) * .78); border-radius: 100% 0 100% 0 / 85% 0 100% 15%;
  background: linear-gradient(135deg, #ffe4ec 0%, #f6b9cb 70%, #ef9fb6 100%); opacity: var(--o, .9); box-shadow: inset -1px -1px 2px rgba(214, 120, 150, .25);
  animation: blFall var(--d) linear infinite, blSway calc(var(--d) / 3) ease-in-out infinite alternate; animation-delay: var(--dl), var(--dl); }
@keyframes blFall { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(var(--dx), 112vh, 0) rotate(540deg); } }
@keyframes blSway { from { margin-left: -14px; } to { margin-left: 14px; } }
.bl-top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 3vw, 36px); }
.bl-brand { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 23px; font-weight: 600; letter-spacing: .12em; color: var(--rose); }
.bl-brand i { font-style: italic; letter-spacing: .04em; }
.bl-x { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #f0cbd6; border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--plum); cursor: pointer; }
.bl-x svg { width: 22px; height: 22px; stroke-width: 2; }
.bl-main { position: relative; display: grid; align-content: center; justify-items: center; padding: 12px clamp(20px, 6vw, 80px); text-align: center; }
.bl-main > * { animation: blIn 1s cubic-bezier(.2, .7, .2, 1) both; }
.bl-main > :nth-child(2) { animation-delay: .12s; } .bl-main > :nth-child(3) { animation-delay: .24s; } .bl-main > :nth-child(4) { animation-delay: .4s; } .bl-main > :nth-child(5) { animation-delay: .65s; }
@keyframes blIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.bl-date { margin: 0; font-size: 15px; letter-spacing: .06em; color: var(--soft); }
.bl-day { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 0; font-family: 'Gowun Batang', serif; font-size: clamp(17px, 1.6vw, 21px); color: var(--soft); }
.bl-day b { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; font-size: clamp(72px, 9vw, 124px); line-height: .9; color: var(--rose); }
.bl-orn { display: flex; align-items: center; gap: 14px; margin: 22px 0 26px; color: #e59ab1; font-size: 14px; }
.bl-orn i { width: 56px; height: 1px; background: linear-gradient(90deg, transparent, #eeb3c5, transparent); }
.bl-text { max-width: 20em; margin: 0; font-family: 'Gowun Batang', serif; font-size: clamp(25px, 2.7vw, 42px); font-weight: 700; line-height: 1.75; letter-spacing: -.01em; word-break: keep-all; color: var(--plum); }
.bl-text.mid { font-size: clamp(23px, 2.3vw, 36px); }
.bl-text.long { max-width: 24em; font-size: clamp(21px, 1.9vw, 30px); }
.bl-ref { margin: 26px 0 0; font-family: 'Gowun Batang', serif; font-size: clamp(17px, 1.5vw, 21px); font-weight: 700; color: var(--rose); letter-spacing: .04em; }
.bl-ref::before { content: '— '; }
.bl-ref small { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--soft); }
.bl-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(16px, 3vw, 36px) 26px; }
.bl-days { display: flex; gap: 8px; }
.bl-days button { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 14px; border: 1px solid #f0cbd6; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--plum); font-size: 15px; cursor: pointer; }
.bl-days button svg { width: 18px; height: 18px; transform: rotate(90deg); }
.bl-days button:last-child svg { transform: rotate(-90deg); }
.bl-days button:disabled { opacity: .35; cursor: default; }
.bl-days .bl-today { border-color: var(--rose); color: var(--rose); }
.bl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border: 1px solid #f0cbd6; border-radius: 999px; background: rgba(255, 255, 255, .75); color: var(--plum); font-size: 16px; font-weight: 600; cursor: pointer; }
.bl-btn:hover { background: #fff; }
.bl-btn svg { width: 18px; height: 18px; }
.bl-btn.gold { background: var(--rose); border-color: var(--rose); color: #fff; }
.bl-btn.gold svg { fill: currentColor; stroke: none; }
@media (max-width: 600px) {
  .bl-foot { flex-direction: column-reverse; align-items: stretch; }
  .bl-acts { display: grid; grid-template-columns: minmax(0, 1fr); }
  .bl-btn { justify-content: center; }
  .bl-days { justify-content: center; }
  .bl-text { font-size: 23px; }
  .bl-text.mid { font-size: 21px; }
  .bl-text.long { font-size: 19px; }
}
@media (max-width: 600px) {
  .acct-in { width: 38px; padding: 0; justify-content: center; }
  .acct-in span { display: none; }
  .acct-av { width: 32px; height: 32px; font-size: 15px; }
  .mbox { padding: 30px 20px 20px; }
}
body.searching .acct { visibility: hidden; }

/* ---------- 말씀 필사 (pilsa.js) — 사이트 색 그대로(흰 바탕·옅은 회색·남색·검정 글), 본문만 고운바탕 (2026-10-27 'AI 같다' 반려 뒤) ---------- */
/* 말씀 필사 결 — 색은 사이트 그대로(회색 바탕·남색), 감성은 고운바탕 제목·숫자·공책 줄로 (2026-10-27 미색은 반려) */
body.pl-boot::after { content: ''; position: fixed; inset: 0; z-index: 119; background: #f6f7f9; } /* 새로 고침 때 필사 창이 열리기 전까지 덮개 */
.pl-stage { --pg: #f6f7f9; --rule: #e9ecf0; --ink2: var(--ink); --guide: #b2b8c2; --err: #c62828; --errbg: #fde8e8;
  position: fixed; inset: 0; z-index: 120; overflow-y: auto; background: var(--pg); color: var(--ink2); animation: fade .25s ease; }
/* 위 막대 — 아래 내용 폭(--w)에 맞춰 가운데: 처음 화면 1100 · 쓰기 화면 880 */
.pl-top { --w: 1100px; --g: clamp(16px, 3vw, 32px); position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px max(var(--g), calc((100% - var(--w)) / 2 + var(--g))); background: #fff; border-bottom: 1px solid var(--line); }
.pl-brand { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'Gowun Batang', serif; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.pl-brand .pl-ver { font-family: 'Pretendard Variable', Pretendard, sans-serif; }
.pl-pen svg, .pl-fin-mark svg { width: 22px; height: 22px; color: var(--navy); }
.pl-x, .pl-back { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink2); cursor: pointer; }
.pl-x:hover, .pl-back:hover { background: var(--fog); }
.pl-x svg { width: 20px; height: 20px; stroke-width: 2; }
.pl-back svg { width: 22px; height: 22px; transform: rotate(90deg); }
.pl-gate { max-width: 560px; margin: 0 auto; padding: clamp(32px, 8vh, 80px) clamp(18px, 4vw, 32px) 60px; text-align: center; }
.pl-gate-v { margin: 0 0 26px; font-family: 'Gowun Batang', serif; font-size: clamp(22px, 3vw, 28px); line-height: 1.6; color: var(--guide); }
.pl-gate-v small { display: block; margin-top: 4px; font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 14px; color: var(--muted); }
.pl-gate h2 { margin: 0 0 18px; font-size: clamp(21px, 2.4vw, 25px); font-weight: 800; letter-spacing: -.02em; }
.pl-gate ul { display: inline-grid; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; text-align: left; font-size: 16px; color: var(--ink-2); }
.pl-gate li { position: relative; padding-left: 20px; }
.pl-gate li::before { content: ''; position: absolute; left: 4px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.pl-gate-acts { display: flex; justify-content: center; gap: 8px; }
.pl-gate-acts .btn { min-width: 132px; }
.pl-gate-s { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.layer-m { z-index: 130; } /* 필사 창 위에도 로그인 창이 뜨게 */
.pl-home { max-width: 1100px; margin: 0 auto; padding: 22px clamp(16px, 3vw, 32px) 60px; }
.pl-photo { position: relative; margin: 6px 0 16px; height: clamp(150px, 20vw, 230px); border-radius: 14px; overflow: hidden; background: #d9dde4; }
.pl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-photo::after { content: ''; position: absolute; inset: 0; background: rgba(15, 23, 42, .18); }
.pl-photo figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 1; padding: 6px 12px; border-radius: 8px; background: rgba(15, 23, 42, .55); color: #fff; font-family: 'Gowun Batang', serif; font-size: 16px; font-weight: 700; }
/* 처음 화면 한눈에 — 성경 전체 % + 66권 막대 / 오늘·연속 + 최근 4주 막대그래프 */
.pl-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.pl-total, .pl-side > div, .pl-week { padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pl-big { margin: 0; line-height: 1; }
.pl-big b { font-family: 'Gowun Batang', serif; font-size: 56px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
.pl-big em { margin-left: 2px; font-size: 22px; font-style: normal; font-weight: 700; color: var(--navy); }
.pl-sub { margin: 6px 0 14px; font-size: 15px; color: var(--muted); }
.pl-sub b { color: var(--ink2); }
.pl-shelf { display: flex; align-items: flex-end; gap: 2px; height: 46px; }
.pl-shelf i { position: relative; flex-basis: 0; min-width: 2px; height: 100%; border-radius: 2px; background: #e8ebf0; overflow: hidden; }
.pl-shelf i.nt { margin-left: 6px; }
.pl-shelf s, .pl-bars s { position: absolute; left: 0; right: 0; bottom: 0; background: var(--navy); }
.pl-shelf-cap { display: flex; justify-content: space-between; margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.pl-side { display: grid; gap: 12px; }
.pl-side .pl-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; border: 0; background: none; }
.pl-mini div { display: grid; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pl-mini b { font-family: 'Gowun Batang', serif; font-size: 30px; font-weight: 700; line-height: 1.1; }
.pl-mini b em { margin-left: 2px; font-size: 15px; font-style: normal; font-weight: 600; }
.pl-mini small { font-size: 14px; color: var(--muted); }
.pl-wh { display: flex; justify-content: space-between; margin: 0 0 10px; font-size: 14px; }
.pl-wh span { color: var(--muted); }
.pl-bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.pl-bars i { position: relative; flex: 1; height: 100%; border-radius: 2px; background: #f0f2f5; overflow: hidden; }
.pl-bars i.now { box-shadow: inset 0 0 0 1px var(--navy); }
/* 성경 고르기 + 리더보드 두 칸 */
.pl-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; margin-top: 28px; }
.pl-cols.one { grid-template-columns: minmax(0, 1fr); }
.pl-cols .pl-books { margin-top: 0; }
.pl-rank { padding: 18px 18px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.pl-rank h3 { margin: 0 0 12px; font-size: 18px; }
.pl-rank h3 small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.pl-rank ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pl-rank li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; grid-template-areas: 'rk nm ct' 'rk br br'; align-items: center; column-gap: 8px; padding: 8px 6px; border-radius: 10px; }
.pl-rank li.me { background: #eef2f9; }
.pl-rank .rk { grid-area: rk; font-size: 16px; font-weight: 800; text-align: center; color: var(--muted); }
.pl-rank li:nth-child(-n+3) .rk { color: var(--navy); }
.pl-rank .nm { grid-area: nm; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-rank .nm em { margin-left: 4px; padding: 0 6px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 11px; font-style: normal; }
.pl-rank .ct { grid-area: ct; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-rank .br { grid-area: br; height: 4px; margin-top: 5px; border-radius: 4px; background: #eef0f3; overflow: hidden; }
.pl-rank .br s { display: block; height: 100%; background: var(--navy); }
.pl-rk-me, .pl-rk-load { margin: 10px 4px 0; font-size: 13px; color: var(--muted); }
.pl-rk-me b { color: var(--navy); }
.pl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pl-stats div { display: grid; padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.pl-stats b { font-size: 28px; font-weight: 800; line-height: 1.1; }
.pl-stats b em { margin-left: 2px; font-size: 15px; font-style: normal; font-weight: 600; }
.pl-stats small { font-size: 14px; color: var(--muted); }
.pl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pl-card { display: grid; gap: 6px; align-content: start; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; cursor: pointer; color: var(--ink2); transition: border-color .15s; }
.pl-card:hover { border-color: #b9c0cc; }
.pl-card small { font-size: 14px; font-weight: 700; color: var(--muted); }
.pl-card b { font-family: 'Gowun Batang', serif; font-size: 22px; }
.pl-card span { font-family: 'Gowun Batang', serif; font-size: 16px; line-height: 1.7; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-card em { justify-self: start; margin-top: 6px; padding: 8px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 15px; font-style: normal; font-weight: 600; }
.pl-today small { color: var(--navy); }
.pl-books { margin-top: 28px; }
.pl-bh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pl-bh h3 { margin: 0; font-family: 'Gowun Batang', serif; font-size: 22px; font-weight: 700; }
/* 구약·신약 — 흰 알(::before)이 스르륵 옮겨 감, 목록은 살짝 내려가며 사라졌다 올라오며 나타남 */
.pl-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); }
.pl-seg::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); transition: transform .34s cubic-bezier(.22, .8, .24, 1); }
.pl-seg.r::before { transform: translateX(calc(100% + 4px)); }
.pl-seg button { position: relative; border: 0; border-radius: 999px; padding: 7px 14px; background: none; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .25s; }
.pl-seg button.on { color: var(--ink2); }
.pl-glist { transition: opacity .18s ease, transform .18s ease; }
.pl-glist.out { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .pl-seg::before, .pl-glist, .seg-ind { transition: none; } }
/* 갈래 줄 — 율법서 5권 ─────── */
.pl-grp + .pl-grp { margin-top: 22px; }
.pl-gh { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; }
.pl-gh b { font-family: 'Gowun Batang', serif; font-size: 16px; color: var(--navy); }
.pl-gh span { color: var(--muted); }
.pl-gh::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.pl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; } /* 한 줄 6권 (2026-10-27), 좁은 화면은 아래 미디어쿼리 */
.pl-books { --bk: #cfdcef; --bk-fill: #a9c0e2; --bk-ink: #1f3556; --bk-deep: #2d4a78; } /* 책 칸 — 옅은 파랑 바탕 + 진한 남색 글자 (2026-10-27: 진한 파랑은 반려, 절반 넘게 옅게) */
.pl-books.nt { --bk: #f1d6d6; --bk-fill: #e4b3b3; --bk-ink: #5a2228; --bk-deep: #8a3a40; } /* 신약은 붉은 계열 */
.pl-book { position: relative; display: grid; gap: 4px; padding: 16px 16px 18px; border: 0; border-radius: 10px; text-align: left; cursor: pointer; overflow: hidden; color: var(--bk-ink);
  background: linear-gradient(to top, var(--bk-fill) var(--p, 0%), var(--bk) var(--p, 0%)); transition: filter .15s; } /* 쓴 만큼 아래에서 조금 진한 색이 차오름 */
.pl-book:hover { filter: brightness(.96); }
.pl-book .no { position: absolute; right: -5px; bottom: -15px; font-family: 'Gowun Batang', serif; font-size: 66px; font-style: normal; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--bk-fill); opacity: .2; pointer-events: none; } /* 순번 — 오른쪽 아래에 크게, 칸 밖으로 넘친 부분은 칸에 가려 잘림 (2026-10-27) */
.pl-book b, .pl-book small { z-index: 1; }
.pl-book b, .pl-book small { position: relative; }
.pl-book b { font-family: 'Gowun Batang', serif; font-size: 21px; line-height: 1.3; font-weight: 700; }
.pl-book small { font-size: 15px; opacity: .72; }
.pl-book.on { outline: 2px solid var(--bk-deep); outline-offset: 2px; }
.pl-book.full { background: var(--bk-deep); color: #fff; } /* 다 쓴 책 — 진한 색 바탕 흰 글자 */
.pl-book.full .no { color: #fff; opacity: .06; }
/* 장 고르기 칸 펼침·접힘 — 높이 0fr↔1fr 로 부드럽게 */
.pl-chw { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .34s cubic-bezier(.22, .8, .24, 1), opacity .26s ease; }
.pl-chw.open { grid-template-rows: 1fr; opacity: 1; }
.pl-chw > div { min-height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pl-chw { transition: none; } }
.pl-chs { margin-top: 14px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.pl-chh { margin: 0 0 12px; font-size: 16px; }
.pl-chh small { margin-left: 8px; color: var(--muted); font-size: 14px; }
.pl-chg { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.pl-ch { height: 44px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink2);
  background: linear-gradient(to top, #dde3ee var(--p), #fff var(--p)); }
.pl-ch.full { background: var(--bk-deep); border-color: var(--bk-deep); color: #fff; font-weight: 700; }
/* 쓰기 화면 */
/* 위 막대 — 글 칸(.pl-paper)과 같은 폭으로 가운데: 왼쪽 처음으로 · 가운데 제목 · 오른쪽 도구 */
.pl-wtop { --w: 880px; --g: clamp(18px, 4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "back title tools"; gap: 12px; }
.pl-wtop .pl-back { grid-area: back; justify-self: start; }
.pl-wt { grid-area: title; min-width: 0; display: grid; justify-items: center; text-align: center; }
.pl-wt b { font-family: 'Gowun Batang', serif; font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-wt small { font-size: 14px; color: var(--muted); }
.pl-tools { grid-area: tools; justify-self: end; display: flex; align-items: center; gap: 8px; }
/* 제목 줄 — ‹ 이전 장 · [책 장 ▾] · 다음 장 ›, 아래 번역 표시 */
.pl-nav { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.pl-nav > button:not(.pl-pick) { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--ink2); cursor: pointer; }
.pl-nav > button:not(.pl-pick):hover { background: var(--fog); }
.pl-nav > button:disabled { opacity: .3; cursor: default; }
.pl-nav > button:not(.pl-pick) svg { width: 20px; height: 20px; stroke-width: 2.2; transform: rotate(90deg); }
.pl-nav > button:last-child svg { transform: rotate(-90deg); }
.pl-pick { flex: none; max-width: 100%; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-family: 'Gowun Batang', serif; font-size: 19px; font-weight: 700; color: var(--ink2); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-pick:hover, .pl-pick[aria-expanded="true"] { background: var(--fog); }
.pl-pick svg { width: 16px; height: 16px; flex: none; stroke-width: 2.2; color: var(--muted); }
.pl-ver { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); vertical-align: 2px; }
.pl-wt small .pl-ver { margin-left: 2px; }
.pl-wt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-pickbox { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 6px); z-index: 3; display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-lift); }
.pl-pickbox label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pl-pickbox select { height: 40px; min-width: 120px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 16px; color: var(--ink2); }
/* 듣기 — 아이콘+글자 한 단추 / 글자 크기 — 작은 '가'·큰 '가' 한 묶음 / 닫기 — 둥근 단추 */
.pl-tool, .pl-size { height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink2); }
.pl-tool { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 12px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pl-tool svg { width: 18px; height: 18px; }
.pl-size { display: inline-flex; overflow: hidden; }
.pl-size button { width: 42px; height: 100%; display: grid; place-items: center; border: 0; background: none; color: var(--ink2); cursor: pointer; font-weight: 700; line-height: 1; }
.pl-size button + button { border-left: 1px solid var(--line); }
.pl-size .s1 { font-size: 13px; }
.pl-size .s2 { font-size: 19px; }
.pl-tool:hover, .pl-size button:hover { background: var(--fog); }
.pl-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--line); }
.pl-bar i { display: block; height: 100%; background: var(--navy); transition: width .4s ease; }
.pl-paper { max-width: 880px; margin: 0 auto; padding: 24px clamp(18px, 4vw, 40px) 50vh; font-family: 'Gowun Batang', serif; font-size: var(--fs, 26px); line-height: 1.9; }
.pl-paper sup { margin-right: 8px; font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: .5em; font-weight: 700; color: var(--muted); vertical-align: .55em; }
.pl-done p { margin: 0 0 6px; font-size: .78em; line-height: 1.85; color: #4b5363; }
.pl-cur { position: relative; margin: 14px 0; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: text; transition: border-color .2s; }
.pl-cur:focus-within { border-color: var(--navy); }
.pl-cur > sup { position: absolute; left: 12px; top: 10px; margin: 0; }
.pl-guide { padding: 24px 24px 16px; background: linear-gradient(transparent calc(100% - 1px), var(--rule) 0) 0 0 / 100% 1.9em content-box; } /* 공책 줄 */
.pl-line { margin: 0; word-break: keep-all; overflow-wrap: anywhere; white-space: pre-wrap; }
.pl-line .todo { color: var(--guide); }
.pl-line .ok { color: var(--ink2); }
.pl-line .cm { color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.pl-line .bad { color: var(--err); background: var(--errbg); border-radius: 3px; }
.pl-line .at { box-shadow: -2px 0 0 var(--navy); animation: psCaret 1.1s steps(1) infinite; }
.pl-line .end { display: inline-block; width: 2px; height: 1em; vertical-align: -.1em; }
@keyframes psCaret { 50% { box-shadow: -2px 0 0 transparent; } }
/* 내가 친 글 — 친 그대로 보임, 띄어쓰기는 옅은 점(·), 틀린 칸은 빨간 바탕 */
.pl-mine { padding: 14px 24px 16px; border-top: 1px dashed var(--line); background: #fbfcfd; border-radius: 0 0 14px 14px; }
.pl-mlab { display: block; margin-bottom: 4px; font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 13px; font-weight: 700; color: var(--muted); }
.pl-typed { min-height: 1.9em; }
.pl-typed .sp { position: relative; }
.pl-typed .sp.ok::after { content: '·'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #c3c8d1; font-size: .7em; }
.pl-typed .ph { color: #c3c8d1; font-size: .7em; font-family: 'Pretendard Variable', Pretendard, sans-serif; }
.pl-stat { margin: 8px 0 0; font-family: 'Pretendard Variable', Pretendard, sans-serif; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pl-stat b { color: var(--err); }
.pl-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; resize: none; font-size: 16px; color: transparent; background: transparent; caret-color: transparent; cursor: text; user-select: text; -webkit-user-select: text; }
.pl-cur.done { border-color: var(--navy); }
.pl-cur.done::after { content: '✓'; position: absolute; right: 16px; top: 10px; font-family: 'Pretendard Variable', sans-serif; font-size: 20px; font-weight: 800; color: var(--navy); animation: bdIn .4s ease both; }
.pl-next p { margin: 0 0 6px; font-size: .78em; line-height: 1.85; color: #c3c8d1; }
.pl-fin { padding: 40px 0; text-align: center; font-family: 'Pretendard Variable', Pretendard, sans-serif; line-height: 1.6; }
.pl-fin-mark svg { width: 44px; height: 44px; }
.pl-fin h2 { margin: 10px 0 6px; font-family: 'Gowun Batang', serif; font-size: 26px; }
.pl-fin p { margin: 0; color: var(--muted); font-size: 16px; }
.pl-fin-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
@media (max-width: 760px) {
  .pl-cards { grid-template-columns: minmax(0, 1fr); }
  .pl-stats b { font-size: 22px; }
  .pl-hero, .pl-cols { grid-template-columns: minmax(0, 1fr); }
  .pl-big b { font-size: 42px; }
  .pl-brand { font-size: 18px; }
  .pl-tool span { display: none; } .pl-tool { padding: 0 11px; } .pl-size button { width: 36px; } .pl-tools { gap: 6px; }
  .pl-wt b { font-size: 16px; }
  .pl-wtop { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "back tools" "title title"; row-gap: 6px; } .pl-pick { font-size: 17px; } /* 폰: 제목 줄은 아래 가운데 (단추와 겹치지 않게) */
  .pl-pickbox { left: 12px; right: 12px; transform: none; }
  .pl-book .no { font-size: 58px; bottom: -13px; } .pl-book { padding: 14px 14px 16px; } .pl-book b { font-size: 19px; } .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-guide { padding: 22px 16px 14px; } .pl-mine { padding: 12px 16px 14px; }
}

/* ---------- 반응형 ---------- */
@media (max-width: 1480px) {
  .topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-shelf .card:nth-child(n+5) { display: none; }
  .people { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1280px) {
  body.watching .watch { grid-template-columns: minmax(0, 1fr) 380px; }
  .rel { grid-template-columns: 160px minmax(0, 1fr); }
  /* 좁은 화면: 왼쪽 메뉴는 서랍 */
  .side { width: 272px; transform: translateX(-102%); box-shadow: 8px 0 32px -12px rgba(8, 12, 22, .35); z-index: 60; top: 0; padding-top: calc(var(--head-h) + 8px); }
  body.side-open .side { transform: none; }
  body.side-open .side-dim { opacity: 1; pointer-events: auto; z-index: 55; }
  body.side-open .site-head { z-index: 70; }
  .head-end { display: none; }
}
@media (max-width: 1100px) {
  body.watching .watch { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .rels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  /* 한 장씩, 손가락으로도 넘김 */
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .pick-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-shelf .card:nth-child(n+4) { display: none; }
  .people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --bar-h: 60px; --tn-h: 44px; --hx-l: 16px; }
  .logo span { display: none; }
  /* 폰·세로 태블릿: ☰ 없이 로고 줄 + 그 아래 탭 줄 (옆으로 밀어 봄) */
  .menu-btn, .side, .side-dim { display: none; }
  .head-in { height: calc(var(--bar-h) + var(--tn-h)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: var(--bar-h) var(--tn-h); align-items: center; column-gap: 12px; row-gap: 0; }
  .logo { grid-area: 1 / 1; }
  .hsearch { grid-area: 1 / 2; }
  .search-open { grid-area: 1 / 3; }
  .acct { grid-area: 1 / 4; margin-left: -6px; }
  .tnav { grid-area: 2 / 1 / 3 / -1; display: flex; align-items: center; gap: 2px; height: 100%; margin: 0 calc(-1 * var(--hx-r)) 0 calc(-1 * var(--hx-l)); padding: 0 10px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tnav::-webkit-scrollbar { display: none; }
  .tn { flex: none; height: 36px; padding: 0 12px; font-size: 15.5px; border-radius: 10px; }
  .tn.on::after { left: 12px; right: 12px; bottom: 1px; }
  .tn-dd .tn.on::after { right: 30px; }
  .tn svg { width: 15px; height: 15px; }
  .tn-dd { flex: none; position: static; }
  .tn-panel { position: fixed; top: calc(var(--bar-h) + var(--tn-h) - 2px); left: 8px; right: 8px; width: auto !important; min-width: 0; max-height: 70vh; overflow-y: auto; }
  .tn-topics .tn-panel { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } /* 폰은 한 줄에 하나, 넓으면 둘 */
  .hsearch { height: 40px; }
  .hsearch .hs-go { width: 52px; }
  .grid, .pick-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-shelf .card:nth-child(n+3) { display: none; }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rels { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  :root { --ps-h: 88px; }
  .ps-list { padding-left: 8px; gap: 0; }
  .ps-p { width: 76px; }
  .ps-avw { width: 52px; height: 52px; }
  .ps-n { font-size: 12.5px; }
  .ps-more { padding: 0 12px 0 10px; font-size: 14.5px; }
  /* 폰 추천 설교: 2×2 (아래 피드는 한 줄 — 서로 다른 결) */
  .pick-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; padding: 0 var(--gutter); }
  .pick .card { gap: 8px; }
  .pick .thumb { border-radius: 10px; }
  .pick .card-body { grid-template-columns: minmax(0, 1fr); }
  .pick .card-body .av { display: none; }
  .pick-cards .card-title { font-size: 15.5px; line-height: 1.38; }
  .pick .card-who, .pick .meta { font-size: 13px; }
  .pick .meta { flex-wrap: wrap; white-space: normal; row-gap: 1px; } .pick .meta i { display: none; } .pick .meta > * { margin-right: 6px; white-space: nowrap; }
  .pick .thumb em { right: 5px; bottom: 5px; padding: 0 5px; font-size: 12px; }
  .pick .thumb-badge { left: 6px; top: 6px; transform: scale(.85); transform-origin: 0 0; }
  /* 차례로 한 편씩 살짝 크게 (app.js spotStart) — transform 은 떠오르는 움직임이 쓰므로 scale 속성으로 */
  .pick-cards.spotting .card { position: relative; transform-origin: 0 50%; border-radius: 10px 10px 8px 8px; background: var(--bg); transition: scale .6s cubic-bezier(.3, .7, .2, 1), opacity .6s; } /* 흰 바탕: 커져서 옆 칸을 덮을 때 글자가 겹쳐 보이지 않게 */
  .pick-cards.spotting .card:nth-child(even) { transform-origin: 100% 50%; }
  .pick-cards.spotting .card .thumb { transition: box-shadow .6s; }
  .pick-cards.spotting .card.spot { scale: 1.2; z-index: 3; }
  .pick-cards.spotting .card.was { z-index: 2; }
  .pick-cards.spotting .card.spot .thumb { box-shadow: 0 0 0 2px #d9b875, 0 14px 28px -12px rgba(60, 40, 10, .55); }
  .pick-cards.spotting .card.spot .card-title { color: var(--ink); }
  .pick-cards.spotting:has(.spot) .card:not(.spot) { opacity: .72; }
  .pick-h { padding: 0 var(--gutter); }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .topic-tx b { font-size: 16px; }
  .topic-tx small { font-size: 13.5px; }
  body { font-size: 17px; }
  .logo b { font-size: 19px; }
  .logo img { width: 30px; height: 30px; }
  .hsearch input { padding: 0 14px; font-size: 16px; }
  main.wrap { padding-left: 0; padding-right: 0; }
  main.wrap > :not(.feed) { padding-left: var(--gutter); padding-right: var(--gutter); }
  .chips { padding-left: var(--gutter); padding-right: var(--gutter); }
  .feed-note, .feed-head { padding: 0 var(--gutter); }
  .shorts .shelf-head { padding: 0 var(--gutter); }
  .shorts-row { margin: 0; } /* 이 폭에선 main 좌우 여백이 없어 음수 여백이면 화면 밖으로 나가 가로 스크롤 */
  /* 폰: 설교 목록도 좌우 여백 + 둥근 썸네일 ('오늘의 한 편'과 같은 결) */
  .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feed .grid { padding: 0 var(--gutter); }
  .grid-shelf { grid-template-columns: minmax(0, 1fr); }
  .grid-shelf .card:nth-child(n+3) { display: grid; }
  .grid-shelf .card:nth-child(n+4) { display: none; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .person-tx b { font-size: 17px; }
  .shelf-acts { flex: 1 1 auto; }
  .layer { padding: 0; }
  .layer-m { padding: 16px; } /* 로그인 창은 폰에서도 떠 있는 상자로 */
  .layer-box { border-radius: 0; min-height: 100%; }
  .pp-head { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-right: 0; }
  body.watching .watch { padding: 0 0 24px; gap: 20px; }
  .player { border-radius: 0; }
  .w-main > :not(.player):not(.w-church), .w-side { padding-left: var(--gutter); padding-right: var(--gutter); }
  .w-church { margin-left: var(--gutter); margin-right: var(--gutter); grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
  .wc-ph { max-width: 200px; }
  .wc-ph.wide { max-width: none; }
  .w-cards { grid-template-columns: minmax(0, 1fr); }
  .w-ch { width: 100%; justify-content: space-between; }
  .w-acts, .w-acts .pill { flex: 1 1 auto; justify-content: center; }
  .rel { grid-template-columns: 148px minmax(0, 1fr); }
  .pp-map iframe { height: 300px; }
  .pp-photo { width: 200px; }
  .cards-pp { grid-template-columns: minmax(0, 1fr); }
  .site-foot p span { display: block; margin: 4px 0 0; }
}
/* 폰: 심볼 + '백석TV 온라인방송국' 글자, 검색은 오른쪽 🔍 단추로 */
@media (max-width: 600px) {
  .logo span { display: inline; font-size: 14.5px; }
  .logo { gap: 7px; }
  .hsearch { display: none; }
  .search-open { display: grid; }
  .head-end { display: none; }
  body.searching .hsearch { display: flex; position: absolute; left: 8px; right: 8px; top: calc(var(--bar-h) / 2); transform: translateY(-50%); max-width: none; margin: 0; z-index: 2; height: 44px; }
  body.searching .hs-back { display: grid; flex: none; width: 44px; border: 0; background: none; place-items: center; cursor: pointer; color: var(--ink); }
  body.searching .hs-back svg { width: 22px; height: 22px; stroke-width: 2.2; }
  body.searching .hsearch input { padding: 0 8px 0 2px; }
  body.searching .logo, body.searching .search-open { visibility: hidden; }
}
@media (max-width: 420px) { .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } /* 말씀 필사 책 칸 — 폰은 2권씩 */
@media (max-width: 360px) {
  :root { --hx-l: 8px; --hx-r: 6px; }
  .head-in { column-gap: 6px; } /* 'beta' 까지 한 줄에 */
  .search-open { width: 38px; }
  .acct-in { width: 34px; height: 34px; }
  .tnav { padding: 0 4px; }
  .logo .beta { font-size: 11px; margin-left: -3px; }
  .logo span { font-size: 13px; }
  .logo b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
