.lc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  transform: translateY(0);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.26s ease,
    border-color 0.26s ease,
    box-shadow 0.26s ease,
    backdrop-filter 0.26s ease;
}

.lc-header.is-hidden {
  transform: translateY(-100%) !important;
  box-shadow: none !important;
}

.lc-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(0, 49, 83, 0.10);
  box-shadow: 0 8px 28px rgba(0, 27, 48, 0.08);
}

.lc-header-inner {
  height: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 640px) {
  .lc-header-inner { padding: 0 18px; }
}

.lc-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--berlin);
  flex-shrink: 0;
}

.lc-logo-mark {
  width: 22px;
  height: 22px;
  border: 1.8px solid var(--berlin);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.lc-logo-mark::before, .lc-logo-mark::after { content: ''; position: absolute; background: var(--berlin); }
.lc-logo-mark::before { width: 1.6px; height: 12px; }
.lc-logo-mark::after { width: 10px; height: 1.6px; top: 7px; }

.lc-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 4px;
}

.lc-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 15px;
  cursor: pointer;
}

.lc-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: color 0.16s ease;
}

.lc-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--berlin);
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.lc-nav-item:not(.is-closing):hover > .lc-nav-link { color: var(--berlin-mid); }
.lc-nav-item:not(.is-closing):hover > .lc-nav-link::after { transform: scaleX(1); }

.lc-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 2px solid var(--berlin);
  padding: 10px 0;
  box-shadow: 0 14px 32px rgba(0, 27, 48, 0.11);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1050;
}

.lc-nav-item:not(.is-closing):hover .lc-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lc-nav-item.is-closing .lc-dropdown {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.lc-dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-sub);
}

.lc-dropdown a:hover {
  background: var(--berlin-tint);
  color: var(--berlin);
  font-weight: 600;
}

/* 다크 히어로 페이지(워십 등) 최상단 화이트 텍스트 반전 */
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-logo,
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-nav-link,
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-auth-links a:not(.lc-auth-pill) { color: #FFFFFF; }
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-logo-mark { border-color: #FFFFFF; }
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-logo-mark::before,
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-logo-mark::after,
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-nav-link::after { background: #FFFFFF; }
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-nav-item:not(.is-closing):hover > .lc-nav-link { color: rgba(255, 255, 255, 0.82); }
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-auth-pill { border-color: rgba(255, 255, 255, 0.82); color: #FFFFFF; }
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-auth-pill:hover { background: #FFFFFF; color: var(--berlin-deep); }
body.has-dark-hero .lc-header:not(.is-scrolled) .profile-trigger,
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-menu-pill-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #FFFFFF;
}

.lc-header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lc-auth-links { display: flex; align-items: center; gap: 14px; font-size: 0.83rem; font-weight: 600; }

.lc-auth-pill {
  padding: 7px 15px;
  border: 1.5px solid var(--berlin);
  border-radius: 999px;
  color: var(--berlin);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease;
}

.lc-auth-pill:hover { background: var(--berlin); color: #FFFFFF; }

.lc-menu-pill-btn {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--off-white);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lc-menu-pill-btn svg { width: 16px; height: 16px; }

@media (max-width: 1024px) {
  .lc-nav, .lc-auth-links { display: none; }
  .lc-menu-pill-btn { display: inline-flex; }
}

/* Profile 3단 팝오버 */
.profile-menu-wrap { position: relative; }
.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
}

.avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--berlin);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }

.profile-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 264px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 27, 48, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 1100;
}

.profile-popover.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.popover-sec { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.popover-sec:last-child { border-bottom: none; }
.popover-head-title { font-size: 0.73rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 10px; }
.popover-user-row { display: flex; align-items: center; gap: 11px; }
.popover-user-row .avatar-circle { width: 38px; height: 38px; font-size: 0.9rem; }
.popover-user-name { font-weight: 700; font-size: 0.94rem; color: var(--ink); }
.popover-user-meta { font-size: 0.79rem; color: var(--ink-muted); margin-top: 2px; }

.popover-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--ink-sub);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.popover-nav-link:hover { color: var(--berlin); font-weight: 600; }

/* 모바일 슬라이드 드로어 */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 19, 34, 0.56);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.mobile-drawer-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  height: 100dvh;
  background: #FFFFFF;
  color: var(--ink);
  z-index: 1250;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px 28px;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
}

.mobile-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1.5px solid var(--berlin); }
.drawer-close-btn { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.drawer-links { display: flex; flex-direction: column; margin-top: 8px; }
.drawer-link { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.drawer-footer { padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-muted); line-height: 1.7; }

/* 우측 하단 맨 위로(TOP) 플로팅 버튼 */
.floating-top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 980;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--berlin);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(0, 19, 34, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s ease, background-color 0.18s ease;
}

.floating-top-btn.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.floating-top-btn:hover { background: var(--berlin-mid); transform: translateY(-3px); }

@media (max-width: 640px) {
  .floating-top-btn { right: 18px; bottom: 20px; width: 44px; height: 44px; }
}

/* === [OFFICIAL LOGO HEADER START] === */
.lc-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 4px 0;
  flex-shrink: 0;
}

.lc-logo-img {
  height: 38px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.lc-logo-color { display: block !important; }
.lc-logo-white { display: none !important; }

body.has-dark-hero .lc-header:not(.is-scrolled) .lc-logo-color { display: none !important; }
body.has-dark-hero .lc-header:not(.is-scrolled) .lc-logo-white { display: block !important; }

.lc-drawer-logo {
  height: 32px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .lc-logo-img {
    height: 32px;
    max-width: 156px;
  }
}
/* === [OFFICIAL LOGO HEADER END] === */

/* === [LIVE ON AIR CSS START] === */
.lc-live-onair-pill {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #C81E1E;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(200, 30, 30, 0.36);
  transition: transform 0.18s ease, background 0.18s ease;
}

.lc-live-onair-pill.is-live {
  display: inline-flex;
}

.lc-live-onair-pill:hover {
  background: #A61616;
  transform: translateY(-1px);
}

.lc-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-block;
  flex-shrink: 0;
  animation: hsLivePulse 1.5s ease-in-out infinite;
}

@keyframes hsLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.38; transform: scale(0.82); }
}

.lc-drawer-live-link {
  display: none !important;
  color: #C81E1E !important;
  font-weight: 800 !important;
  background: #FEF2F2 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  border-radius: 10px;
  margin-bottom: 6px;
}

.lc-drawer-live-link.is-live {
  display: flex !important;
}

.lc-drawer-live-link .lc-live-dot {
  background: #C81E1E;
  margin-right: 8px;
}

.lc-drawer-live-wrap {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 480px) {
  .lc-live-onair-pill span:last-child {
    font-size: 0.73rem;
  }
  .lc-live-onair-pill {
    padding: 5px 10px;
  }
}
/* === [LIVE ON AIR CSS END] === */
