.member-home { margin: 22px 0; color: #35302a; overflow-wrap: anywhere; }

.mh-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }.mh-filters label { flex: 1; min-width: 110px; display: grid; gap: 5px; font-size: .85rem; }.mh-filters select { width: 100%; min-height: 44px; font: inherit; color: #59482e; background: #fff; border: 1px solid #a3937b; border-radius: 10px; padding: 8px; }
.mh-heading { margin-bottom: 18px; }.mh-heading h2 { font-size: 1.4rem; margin: 4px 0; }.mh-kicker { color: #7c5c33; font-size: .85rem; margin: 0; }
.mh-section { margin: 22px 0; }.mh-section h3 { font-size: 1.05rem; margin: 0 0 10px; }.mh-list { display: grid; gap: 10px; }
.mh-video { border: 1px solid #eae2d3; background: #fffdf9; border-radius: 16px; padding: 10px; display: grid; grid-template-columns: 106px minmax(0,1fr); gap: 12px; text-align: left; color: inherit; width: 100%; min-height: 90px; cursor: pointer; font: inherit; }
.mh-hero { box-shadow: 0 6px 22px #7c5c3310; background: #f7efdf; grid-template-columns: minmax(0,1fr); padding: 12px; }.mh-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 10px; object-fit: cover; }.mh-hero .mh-thumb { max-height: 210px; }
.mh-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }.mh-title { font-weight: 650; line-height: 1.5; }.mh-meta,.mh-note { font-size: .82rem; color: #6b6257; }.mh-play { color: #7c5c33; font-size: .84rem; }.mh-hero .mh-play { background: #7c5c33; color: #fff; border-radius: 10px; min-height: 44px; display: grid; place-items: center; margin-top: 4px; }
.mh-more,.mh-controls button,.mh-external { min-height: 44px; padding: 10px 16px; border: 1px solid #a3937b; border-radius: 10px; background: #fff; color: #59482e; font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }.mh-more { margin-top: 10px; width: 100%; }.mh-controls { display: flex; flex-wrap: wrap; gap: 8px; }.mh-controls .mh-primary { background: #7c5c33; color: white; }.mh-controls button:disabled { opacity: .55; }.mh-player { width: 100%; min-height: 200px; aspect-ratio: 16/9; background: #222; border-radius: 14px; overflow: hidden; }.mh-player iframe { width: 100%; height: 100%; min-height: 200px; border: 0; }.mh-watch-title { font-size: 1.25rem; line-height: 1.5; }.mh-status,.mh-empty { padding: 14px 0; line-height: 1.6; }.mh-empty { border-radius: 14px; background: #f7f1e6; padding: 20px; }
.member-daily { border: 1px solid #eae2d3; background: #f8f2e8; border-radius: 14px; margin: 12px 0; }.member-daily>summary { min-height: 52px; padding: 14px 16px; cursor: pointer; font-weight: 600; }.member-daily #daily-card { margin: 0; box-shadow: none; }.member-home-links { display: flex; gap: 8px; margin: 12px 0 20px; }.member-home-links button { flex: 1; min-height: 44px; padding: 12px; background: #fff; border: 1px solid #eae2d3; border-radius: 12px; color: #59482e; font: inherit; }
#view-home #quick-title,#view-home #quick-actions,#view-home #home-note-btn,#view-home #self-attend,#scan-entry { display: none !important; }
.mh-video:focus-visible,.mh-more:focus-visible,.mh-controls :focus-visible,.member-home-links :focus-visible,.member-daily>summary:focus-visible { outline: 3px solid #7c5c33; outline-offset: 3px; }
@media(max-width:360px) { .mh-video { grid-template-columns: 82px minmax(0,1fr); gap: 8px; }.mh-hero { grid-template-columns: minmax(0,1fr); }.mh-controls>* { flex: 1 1 auto; } }

/* Legacy data and direct routes remain available; entry points are retired. */
#view-chat > .ws-seg, .member-legacy-qr, #mypage-panel .member-later { display: none !important; }
.mh-search-form input { min-height:44px; min-width:0; width:100%; padding:10px 12px; border:1px solid #d8d1c8; border-radius:12px; font:inherit; }
.top-nav .nav-item,.bottom-nav .nav-item { min-height:44px; }

.mh-cover { position:relative; display:block; width:100%; aspect-ratio:16/9; border-radius:10px; background:#d9c9ac; overflow:hidden; align-self:start; }
.mh-cover .mh-thumb { display:block; height:100%; border-radius:0; }
.mh-cover .mh-thumb[hidden] { display:none; }
.mh-cover-play { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:24px; text-shadow:0 1px 4px #44321f; background:#47331c18; }
.mh-cover[data-fallback] { background:linear-gradient(135deg,#b29a74,#725d43); }
.mh-hero .mh-cover { max-height:160px; }

.bottom-nav .nav-item { min-width:44px; flex:1 1 0; padding-left:4px; padding-right:4px; box-sizing:border-box; }

/* Curated home: one feature and a compact, keyboard-scrollable video rail.
   Same paper surface as every other tab (PO 10/31: light theme everywhere);
   only the structure follows the video-first layout. */
.member-home[data-surface="home"] { margin:8px 0 24px; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; min-width:0; box-sizing:border-box; }
.member-home[data-surface="home"] .mh-feature { min-width:0; }
.member-home[data-surface="home"] .mh-cover { border-radius:8px; aspect-ratio:16/9; }
.member-home[data-surface="home"] .mh-thumb { width:100%; height:100%; object-fit:cover; }
.mh-feature-title { margin:4px 0 0; font-size:1.375rem; line-height:1.35; font-weight:700; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.member-home[data-surface="home"] .mh-meta,.member-home[data-surface="home"] .mh-note { font-size:.875rem; line-height:1.5; }
.member-home[data-surface="home"] .mh-feature .mh-meta { margin:12px 0 0; }
.mh-feature-play { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:52px; margin-top:16px; border:0; border-radius:10px; background:#7c5c33; color:#fff; font:inherit; font-size:1.0625rem; font-weight:700; cursor:pointer; }
.mh-feature-play::before { content:'▶'; font-size:.82em; }
.mh-feature-play:active,.mh-rail-card:active { filter:brightness(.92); }
.mh-rail-section { margin:32px 0 2px; min-width:0; }
.mh-rail-section h3 { margin:0 0 12px; font-size:1.125rem; font-weight:700; line-height:1.4; }
.mh-rail { display:flex; gap:12px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x proximity; margin-inline:-16px; padding:2px 16px 10px; scroll-padding-inline:16px; scrollbar-width:thin; scrollbar-color:#cdbfa7 transparent; }
.mh-rail-card { flex:0 0 68%; max-width:250px; min-width:0; padding:0; border:0; background:transparent; color:inherit; text-align:left; font:inherit; cursor:pointer; scroll-snap-align:start; }
.mh-rail-card .mh-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.45; font-size:1rem; font-weight:600; margin-top:8px; min-height:2.9em; }
.mh-rail-card .mh-meta { display:block; margin-top:2px; }
.member-home[data-surface="home"] .mh-empty { min-height:100px; }
.mh-feature-play:focus-visible,.mh-rail-card:focus-visible,.member-home[data-surface="home"] :focus-visible { outline:3px solid #7c5c33; outline-offset:3px; }
@media(min-width:600px) { .mh-rail-card { flex-basis:40%; } }
@media(min-width:721px) { .mh-rail { margin-inline:0; padding-inline:2px; scroll-padding-inline:0; } }
@media(prefers-reduced-motion:reduce) { .mh-rail { scroll-behavior:auto; scroll-snap-type:none; } .mh-feature-play:active,.mh-rail-card:active { filter:none; } }
#view-home .home-greeting { margin:14px 0 8px; font-size:.9375rem; font-weight:600; line-height:1.4; }

.mh-back { display:inline-flex; align-items:center; min-height:44px; margin:0 0 4px -8px; padding:0 8px; border:0; background:transparent; color:#59482e; font:inherit; font-size:1rem; font-weight:600; cursor:pointer; border-radius:10px; }
.mh-back:focus-visible { outline:3px solid #7c5c33; outline-offset:2px; }

/* body.video-home-active stays as a state hook (the home hides the login banner),
   but it no longer repaints the shell: every tab shares the same top bar and nav. */
@media(max-width:365px) { .mh-rail { margin-inline:-12px; padding-inline:12px; scroll-padding-inline:12px; } }
/* Watch screen (PO 10/31 phone check): the programmatically focused title shows no box and the
   meta line sits under it. Play and pause live in the player; buttons appear only on a failure. */
.mh-watch-title { margin: 0 0 4px; scroll-margin-top: 96px; }
/* Beats `.member-home[data-surface="home"] :focus-visible`, which drew the brown box. */
.mh-watch-title:focus,.member-home[data-surface] .mh-watch-title:focus-visible { outline: none; }
.mh-watch-meta { margin: 0 0 12px; color: #6b5a41; font-size: .95rem; line-height: 1.5; }
.mh-controls > button:not(.mh-more),.mh-controls > .mh-external { flex: 1 1 30%; min-width: 0; box-sizing: border-box; padding-inline: 8px; }
.mh-controls:empty { display: none; }
/* Keep the role=status region in the tree (VoiceOver), just without its padding. */
.mh-status:empty { padding: 0; }
.mh-player + .mh-status:empty + .mh-controls { margin-top: 14px; }
.mh-watch-intro { margin: 20px 0 0; padding: 16px; border: 1px solid #eae2d3; border-radius: 14px; background: #f8f2e8; }
.mh-watch-intro[hidden] { display: none; }
.mh-intro-title { margin: 0 0 8px; font-size: 1rem; color: #59482e; }
.mh-intro-text { margin: 0; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
/* '다음 편' and '추천 영상' under the intro (PO 10/31: keep watching instead of 오늘의 말씀). */
.mh-next { margin: 28px 0 0; }
.mh-next-heading { margin: 0 0 12px; font-size: 1.125rem; font-weight: 700; line-height: 1.4; }
.mh-next-card { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 10px; border: 1px solid #eae2d3; border-radius: 14px; background: #fffdf9; color: inherit; text-align: left; font: inherit; cursor: pointer; box-sizing: border-box; }
.mh-next-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mh-next-card .mh-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.mh-next-card:focus-visible { outline: 3px solid #7c5c33; outline-offset: 3px; }
.mh-next-card:active { filter: brightness(.96); }
.mh-watch-next .mh-rail-section { margin-top: 28px; }
/* 오늘의 말씀 stays on the home list; the watch screen ends with what to watch next. */
#view-home:has(#member-home[data-watching]) #home-daily,#view-home:has(#member-home[data-series]) #home-daily { display: none; }
/* '시리즈로 보는 말씀' (11/1 PO): the series page lists episodes in order under one start button. */
.mh-series-name { margin: 4px 0 2px; font-size: 1.375rem; line-height: 1.35; font-weight: 700; word-break: keep-all; }
.mh-series-name:focus,.member-home[data-surface] .mh-series-name:focus-visible { outline: none; }
.member-home[data-surface="home"] .mh-series-meta { margin: 0; color: #6b5a41; }
.mh-episodes { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 4px; }
.mh-episode { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 4px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mh-episode:active { background: #f3ecdf; }
.member-home[data-surface="home"] .mh-episode .mh-cover { flex: 0 0 120px; width: 120px; border-radius: 6px; }
.mh-episode-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.mh-episode-no { font-size: .8125rem; font-weight: 700; color: #7c5c33; }
.mh-episode .mh-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; font-size: .9375rem; font-weight: 600; }
@media(max-width:365px) { .member-home[data-surface="home"] .mh-episode .mh-cover { flex-basis: 96px; width: 96px; } }
/* 검색 탭(PO 11/1): 검색창과 '검색' 버튼은 한 줄, 그 아래 예배 종류·설교자. */
.mh-search-row { display: flex; align-items: stretch; gap: 8px; flex: 1 1 100%; min-width: 0; }
.mh-search-row .mh-search-input { flex: 1 1 auto; min-width: 0; }
.mh-search-row .mh-primary { flex: 0 0 auto; min-height: 44px; padding: 0 20px; margin: 0; white-space: nowrap; }
/* 마이 '이어서 보기'(PO 11/1) — 제목은 두 줄까지, 위치는 오른쪽. */
.mp-continue-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; }
.mp-continue-title { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.mp-continue-row .mp-tag { flex: 0 0 auto; }
/* 홈 '오늘의 말씀' 카드 버튼(PO 11/1 — 폭마다 늘어지고 높이가 제각각이던 것). 한 줄: 들으러 가기(넓게) + 공유(좁게),
   같은 높이 48px·같은 모서리. 들으러 가기가 없으면 공유만 왼쪽. 예배 드리기 5·15·30분도 같은 높이. */
#home-daily .daily-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
#home-daily .daily-foot > :only-child { grid-column: 1 / -1; justify-self: start; }
#home-daily .daily-watch, #home-daily .daily-share { min-height: 48px; border-radius: 12px; box-sizing: border-box; justify-content: center; font-size: .9375rem; }
#home-daily .daily-watch { display: flex; padding: 0 16px; }
#home-daily .daily-share { padding: 0 20px; background: #fff; border-color: #d9cdb8; }
#home-daily .dw-btn { min-height: 44px; border-radius: 12px; }
@media (min-width: 721px) { #home-daily .daily-foot { grid-template-columns: auto auto; justify-content: start; } #home-daily .daily-watch { padding: 0 24px; } }
/* 말씀 탭 아래 묻기 창(디자인 검수 11/1): PC 에서 화면 끝까지 늘어지지 않게 본문 칸(720px)에 맞춘다. */
@media (min-width: 721px) { .composer .ask-form, .composer .mode-chips { max-width: 720px; margin-inline: auto; } }
/* 오늘의 말씀 예배 드리기(디자인 검수 11/1): PC 에서 5·15·30분이 칸 끝까지(217px) 늘어지지 않게 위 버튼 줄처럼 왼쪽에 모은다. */
@media (min-width: 721px) { #home-daily .dw-btn { flex: 0 0 112px; } }
/* 오늘의 말씀(디자인 검수 11/1): 접는 상자 안에 또 테두리·그림자 카드가 겹치던 것(카드 속 카드) — 안쪽은 바탕만 남긴다. */
#home-daily #daily-card { background: transparent; border: 0; border-radius: 0; padding: 4px 16px 18px; }
@media (min-width: 721px) { #home-daily #daily-card { padding: 4px 24px 22px; } }
/* 디자인 가이드 10절 맞추기(11/1 잔여 A5): 성도 앱 네 화면의 버튼은 알약(999px) 대신 12px — 말씀 탭 아래 '질문하기',
   오늘의 말씀 '낭독'. 입력창도 같은 모서리. 태그·뱃지·내비게이션 표시는 버튼이 아니라 그대로 둔다. */
.composer #ask-btn { border-radius: 12px; min-height: 48px; }
.composer .ask-form textarea { border-radius: 12px; }
.tts-btn { border-radius: 12px; min-height: 44px; }
