:root {
  --gold: #C8A351;
  --gold-light: #E8D5A0;
  --gold-dark: #8B6914;
  --cream: #FDF8EE;
  --warm-white: #FFFBF5;
  --text-primary: #2C1810;
  --text-secondary: #5C4033;
  --text-muted: #8B7355;
  --kakao-yellow: #FEE500;
  --font-scale: 1.15;
  --font-body: 'Noto Sans', -apple-system, sans-serif;
  --font-serif: 'Noto Serif', serif;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --warm-white: #1a1410;
  --cream: #2a2018;
  --text-primary: #f0e8dc;
  --text-secondary: #c8b8a0;
  --text-muted: #9a8870;
  --gold: #D4A855;
  --gold-light: #3a3020;
  --gold-dark: #e8c87a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: calc(16px * var(--font-scale)); }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, #2C1810 0%, #3d2317 100%);
  color: var(--cream);
  padding: 1.2rem 1.5rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

header h1 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-light);
}

header .date {
  font-size: 0.85rem;
  color: rgba(253,248,238,0.6);
  margin-top: 0.2rem;
}

/* ── Language Switcher ── */
.lang-switcher {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.8rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.lang-switcher-text {
  color: rgba(253, 248, 238, 0.7);
  margin-bottom: 0.5rem;
  display: block;
}

.lang-links {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-link {
  color: #E8D5A0;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.1);
}

.lang-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lang-link.active {
  background: var(--gold);
  color: white;
  font-weight: 600;
}

/* ── Main Content ── */
main {
  flex: 1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

/* ── Image ── */
.verse-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

/* ── Verse Card ── */
.verse-card {
  padding: 2rem 1.5rem;
  background: white;
}

.verse-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.verse-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 2.1;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  word-break: keep-all;
}

.verse-ref {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0;
}

/* ── Story ── */
.story-section {
  padding: 2rem 1.5rem;
  background: var(--cream);
}

.story-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.story-text {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text-secondary);
  word-break: keep-all;
}

.story-text p {
  margin-bottom: 1rem;
}

.story-text p:last-child {
  margin-bottom: 0;
}

/* ── Prayer ── */
.prayer-section {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #FFF9F0 0%, #FDF3E7 100%);
  border-top: 1px solid rgba(200,163,81,0.15);
}

.prayer-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 2.1;
  color: var(--text-secondary);
  word-break: keep-all;
  font-style: italic;
}

.prayer-text p {
  margin-bottom: 1rem;
}

.prayer-text p:last-child {
  margin-bottom: 0;
}

/* ── Liturgical Season Banner ── */
/* Season Card - enhanced */
.season-card {
  position: relative;
  margin: 0;
  padding: 1rem 1.5rem 1rem 1.8rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--season-color) 8%, white) 0%, color-mix(in srgb, var(--season-color) 3%, white) 100%);
  border-top: 1.5px solid color-mix(in srgb, var(--season-color) 30%, transparent);
  border-bottom: 1.5px solid color-mix(in srgb, var(--season-color) 30%, transparent);
  overflow: hidden;
}

.season-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--season-color);
  border-radius: 0;
}

.season-card-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.season-card-emoji {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.season-card-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.season-card-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--season-color);
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.season-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--season-color);
  font-family: var(--font-serif);
}

.season-card-theme {
  font-size: 0.8rem;
  color: var(--text-secondary, #888);
  margin-top: 2px;
  line-height: 1.4;
}

/* Story inline image */
.story-image-wrap {
  margin: 1.2rem -0.5rem;
  border-radius: 12px;
  overflow: hidden;
}

.story-inline-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  opacity: 0.92;
}

/* Prayer background image */
.prayer-section.has-bg-image {
  position: relative;
  overflow: hidden;
}

.prayer-section.has-bg-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--prayer-bg) center/cover no-repeat;
  opacity: 0.12;
  filter: blur(1px);
  z-index: 0;
}

.prayer-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,249,240,0.85) 0%, rgba(253,243,231,0.92) 100%);
  z-index: 1;
}

.prayer-inner {
  position: relative;
  z-index: 2;
}

[data-theme="dark"] .prayer-section.has-bg-image::before {
  opacity: 0.08;
}

[data-theme="dark"] .prayer-bg-overlay {
  background: linear-gradient(180deg, rgba(30,21,16,0.88) 0%, rgba(37,26,16,0.94) 100%);
}

/* ── Share Buttons ── */
.share-section {
  padding: 1.5rem;
  background: white;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  border-top: 1px solid rgba(0,0,0,0.05);
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border: none;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.share-btn:active {
  transform: scale(0.96);
}

.share-kakao {
  background: var(--kakao-yellow);
  color: #3C1E1E;
}

.share-copy {
  background: #f0f0f0;
  color: #333;
}

.share-copy.copied {
  background: #4CAF50;
  color: white;
}

.share-twitter {
  background: #1DA1F2;
  color: white;
}

.share-facebook {
  background: #1877F2;
  color: white;
}

.share-whatsapp {
  background: #25D366;
  color: white;
}

.share-pinterest {
  background: #E60023;
  color: white;
}

.share-pinterest.pinned {
  background: #4CAF50;
}

.share-band {
  background: #06C755;
  color: white;
}

.share-messenger {
  background: #0084FF;
  color: white;
}

/* ── Archive ── */
.archive-section {
  padding: 2rem 1.5rem;
  background: var(--warm-white);
}

.archive-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.archive-year {
  margin-bottom: 1rem;
}

.archive-year-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.archive-year-label .toggle-arrow {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.archive-year-label .toggle-arrow.collapsed {
  transform: rotate(-90deg);
}

.archive-month {
  margin-bottom: 0.75rem;
  margin-left: 0.5rem;
}

.archive-month-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
}

.archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: white;
  color: var(--text-secondary);
  font-size: 1rem;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.archive-link:hover, .archive-link.active {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.archive-year-content.hidden {
  display: none;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.empty-state p { color: var(--text-muted); }

/* ── Support Banner ── */
.support-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--cream);
  border-top: 1px solid rgba(200,163,81,0.2);
  border-bottom: 1px solid rgba(200,163,81,0.2);
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.support-banner-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.support-banner-btn {
  display: inline-block;
  background: var(--gold);
  color: #2C1810;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.support-banner-btn:hover {
  background: var(--gold-dark);
  color: white;
  transform: translateY(-1px);
}

/* ── Footer ── */
footer {
  background: #1a0f0a;
  color: rgba(253,248,238,0.4);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.8;
}

footer strong { color: var(--gold); }

/* ── Shorts + YouTube Bar ── */
/* Compact Shorts inline link */
.shorts-inline {
  display: flex;
  justify-content: center;
  padding: 0.6rem 1rem;
}

.shorts-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--gold-dark, #8B6914);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid rgba(200,163,81,0.4);
  border-radius: 20px;
  background: var(--cream, #FFF9F0);
  transition: all 0.2s ease;
}

.shorts-inline-link:hover {
  background: var(--gold, #C8A351);
  color: #2C1810;
}

.shorts-inline-link:active {
  transform: scale(0.97);
}

.shorts-inline-icon {
  width: 16px;
  height: 16px;
  color: #CC0000;
  flex-shrink: 0;
}

.shorts-inline-badge {
  background: rgba(204,0,0,0.1);
  color: #CC0000;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Bottom CTA */
.bottom-cta {
  text-align: center;
  padding: 1.2rem 1.5rem;
  margin: 0.5rem 0;
  background: var(--cream, #FFF9F0);
  border-top: 1px solid rgba(200,163,81,0.15);
  border-bottom: 1px solid rgba(200,163,81,0.15);
}

.bottom-cta-title {
  font-size: 0.82rem;
  color: var(--text-muted, #999);
  margin: 0 0 0.6rem;
  font-weight: 400;
}

.bottom-cta-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bottom-cta-btn:active {
  transform: scale(0.96);
}

.bottom-cta-yt {
  background: rgba(204,0,0,0.08);
  color: #CC0000;
  border: 1px solid rgba(204,0,0,0.2);
}

.bottom-cta-yt:hover {
  background: #CC0000;
  color: white;
}

.bottom-cta-kakao {
  background: #FEE500;
  color: #3C1E1E;
  border: 1px solid rgba(60,30,30,0.15);
}

.bottom-cta-kakao:hover {
  background: #FFD43B;
}

/* ── Push 알림 시간 선택 ── */
.push-time-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 8px;
}

.push-time-row label {
  font-size: 0.9rem;
  color: var(--text-secondary, #666);
  white-space: nowrap;
}

.push-time-select {
  padding: 6px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.3s;
}

.push-time-select:focus {
  outline: none;
  border-color: #6366f1;
}

/* ── Push 알림 버튼 ── */
.bottom-cta-push {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  width: 100%;
}

.bottom-cta-push:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.bottom-cta-push.push-active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.bottom-cta-push.push-active:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* iOS 설치 안내 */
.ios-install-guide {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  width: 100%;
}

.ios-install-guide p {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: #1e3a5f;
}

.ios-install-steps {
  font-size: 0.8rem !important;
  color: #64748b !important;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #333;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  z-index: 1000;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── Dark Mode Specific Overrides ── */
[data-theme="dark"] .verse-card,
[data-theme="dark"] .share-section {
  background: #231a14;
}

[data-theme="dark"] .prayer-section {
  background: linear-gradient(135deg, #1e1510 0%, #251a10 100%);
  border-top-color: rgba(200,163,81,0.12);
}

[data-theme="dark"] .archive-link {
  background: #2a2018;
  border-color: rgba(255,255,255,0.08);
  color: var(--text-secondary);
}

[data-theme="dark"] .archive-link:hover,
[data-theme="dark"] .archive-link.active {
  background: var(--gold);
  color: #1a1410;
  border-color: var(--gold);
}

[data-theme="dark"] .verse-image {
  filter: brightness(0.9);
}

[data-theme="dark"] .share-copy {
  background: #3a2e24;
  color: var(--text-primary);
}

[data-theme="dark"] .share-copy.copied {
  background: #4CAF50;
  color: white;
}

[data-theme="dark"] .season-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--season-color) 12%, #1a1410) 0%, color-mix(in srgb, var(--season-color) 5%, #1a1410) 100%);
  border-color: color-mix(in srgb, var(--season-color) 40%, transparent);
}

/* ── Dark mode: lang switcher ── */
[data-theme="dark"] .lang-switcher {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .lang-switcher-text {
  color: rgba(232, 213, 160, 0.7);
}

[data-theme="dark"] .lang-link {
  color: #E8D5A0;
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .lang-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .lang-link.active {
  background: var(--gold);
  color: #1a0f08;
}

/* ── Header Controls ── */
.header-controls {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.6rem;
}

.ctrl-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #E8D5A0;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: -0.01em;
  min-width: 2rem;
  text-align: center;
}

.ctrl-btn:hover {
  background: rgba(255,255,255,0.28);
}

.ctrl-btn:active {
  transform: scale(0.90);
}

.theme-toggle {
  font-size: 1rem;
  padding: 0.3rem 0.4rem;
  min-width: auto;
}

.ctrl-btn.disabled {
  opacity: 0.35;
  cursor: default;
}

/* ── Book More Button (verse card) ── */
.book-more-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--cream);
  border: 1.5px solid rgba(200,163,81,0.3);
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}
.book-more-btn:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
  box-shadow: 0 3px 12px rgba(200,163,81,0.25);
  transform: translateY(-1px);
}
.book-more-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.book-more-text {
  font-size: 0.88rem;
  font-weight: 600;
  flex: 1;
}
.book-more-arrow {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  transition: transform 0.2s;
}
.book-more-btn:hover .book-more-arrow {
  transform: translateX(3px);
  color: white;
}

/* ── Archive Nav Links ── */
.archive-nav-links {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.archive-nav-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: var(--cream);
  border: 1.5px solid rgba(200,163,81,0.25);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.25s ease;
}
.archive-nav-link:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
  box-shadow: 0 3px 10px rgba(200,163,81,0.2);
  transform: translateY(-1px);
}
.archive-nav-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}


/* ── Sticky Bottom CTA Bar ── */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(200,163,81,0.2);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  gap: 0.5rem;
  animation: stickySlideUp 0.3s ease-out;
}

@keyframes stickySlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

[data-theme="dark"] .sticky-cta-bar {
  background: rgba(30,28,26,0.97);
  border-top-color: rgba(200,163,81,0.3);
}

.sticky-cta-inner {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.sticky-cta-text {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta-btn {
  flex-shrink: 0;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.sticky-cta-btn:active {
  transform: scale(0.96);
}

.sticky-cta-btn-push {
  background: linear-gradient(135deg, var(--gold) 0%, #D4A942 100%);
  color: white;
  box-shadow: 0 2px 6px rgba(200,163,81,0.3);
}

.sticky-cta-btn-kakao {
  background: #FEE500;
  color: #3C1E1E;
  box-shadow: 0 2px 6px rgba(254,229,0,0.3);
}

.sticky-cta-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
}

.sticky-cta-close:hover {
  background: rgba(0,0,0,0.05);
}

[data-theme="dark"] .sticky-cta-close:hover {
  background: rgba(255,255,255,0.1);
}

/* safe area for notched phones */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .sticky-cta-bar {
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom));
  }
}

/* ── Inline Push CTA (콘텐츠 직후) ── */
.inline-push-cta {
  text-align: center;
  padding: 1.2rem 1.5rem 1rem;
  background: linear-gradient(135deg, #FDF8EE 0%, #FFF5E1 100%);
  border-top: 1px solid rgba(200,163,81,0.15);
  border-bottom: 1px solid rgba(200,163,81,0.15);
}

[data-theme="dark"] .inline-push-cta {
  background: linear-gradient(135deg, rgba(200,163,81,0.08) 0%, rgba(200,163,81,0.04) 100%);
}

.inline-push-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 0.7rem;
  line-height: 1.4;
}

.inline-push-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, var(--gold) 0%, #D4A942 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(200,163,81,0.3);
}

.inline-push-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,163,81,0.4);
}

.inline-push-btn:active {
  transform: scale(0.98);
}

.inline-push-time-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.6rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-push-time-link:hover {
  color: var(--gold-dark);
}

/* ── Share More Toggle ── */
.share-extra {
  display: none;
  contents: '';
}
.share-extra.open {
  display: contents;
}

.share-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid rgba(200,163,81,0.35);
  border-radius: 14px;
  background: transparent;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
  margin-top: 0.3rem;
}

.share-more-toggle:hover {
  background: var(--gold-light);
  border-color: var(--gold);
}

[data-theme="dark"] .share-more-toggle {
  border-color: rgba(200,163,81,0.4);
  color: var(--gold-dark);
}

[data-theme="dark"] .share-more-toggle:hover {
  background: var(--gold-light);
}

/* ── Social Follow Row (Secondary CTA) ── */
.social-follow-section {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(200,163,81,0.15);
}

.social-follow-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.social-follow-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.social-follow-btn:active {
  transform: scale(0.95);
}

.social-follow-yt {
  background: rgba(204,0,0,0.08);
  color: #CC0000;
  border: 1px solid rgba(204,0,0,0.2);
}

.social-follow-yt:hover {
  background: #CC0000;
  color: white;
}

.social-follow-kakao {
  background: #FEE500;
  color: #3C1E1E;
  border: 1px solid rgba(60,30,30,0.12);
}

.social-follow-kakao:hover {
  background: #FFD43B;
}

.social-follow-insta {
  background: rgba(225,48,108,0.08);
  color: #C13584;
  border: 1px solid rgba(225,48,108,0.2);
}

.social-follow-insta:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  border-color: transparent;
}

[data-theme="dark"] .social-follow-yt {
  background: rgba(204,0,0,0.12);
  border-color: rgba(204,0,0,0.3);
}

[data-theme="dark"] .social-follow-kakao {
  border-color: rgba(60,30,30,0.2);
}

[data-theme="dark"] .social-follow-insta {
  background: rgba(225,48,108,0.12);
  border-color: rgba(225,48,108,0.3);
}

/* ── MV Embed Section ── */
.mv-section {
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--cream) 100%);
}
.mv-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.mv-embed-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.mv-lite {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: #000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.mv-lite .mv-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.mv-lite .mv-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1;
}
.mv-lite:hover .mv-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}
.mv-caption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════
   RANKING PAGE
   ════════════════════════════════════════════════════════════════ */

/* ── Ranking Page Header Nav ── */
.ranking-header-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.ranking-header-nav a {
  color: rgba(253, 248, 238, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.ranking-header-nav a:hover {
  color: var(--gold-light);
}

.ranking-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1rem 6rem;
}

.ranking-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  text-align: center;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

/* Tabs */
.ranking-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(200, 163, 81, 0.2);
}

.ranking-tab {
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.ranking-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.ranking-tab:hover {
  color: var(--gold);
}

/* Podium */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.podium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 1rem;
  border-radius: 16px;
  background: var(--cream);
  border: 2px solid rgba(200, 163, 81, 0.3);
  width: 30%;
  max-width: 160px;
  transition: transform 0.2s;
}

.podium-card.first {
  transform: scale(1.08);
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(200, 163, 81, 0.3);
  order: 2;
  padding: 1.5rem 1rem;
}

.podium-card.second {
  order: 1;
}

.podium-card.third {
  order: 3;
}

.podium-card.me {
  background: rgba(200, 163, 81, 0.12);
}

.podium-medal {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.podium-card.first .podium-medal {
  font-size: 2.5rem;
}

.podium-rank {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.podium-card.first .podium-rank {
  font-size: 2rem;
}

.podium-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  text-align: center;
  word-break: keep-all;
  color: var(--text-primary);
}

.podium-points {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  white-space: nowrap;
}

/* Ranking List (4~50) */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ranking-row {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  transition: background 0.15s;
}

.ranking-row:nth-child(even) {
  background: rgba(200, 163, 81, 0.04);
}

.ranking-row.me {
  background: rgba(200, 163, 81, 0.15);
  border: 1px solid rgba(200, 163, 81, 0.3);
}

.ranking-top3 {
  padding: 0.9rem 0.8rem;
  font-size: 1.05rem;
}

.ranking-top3:first-child {
  background: rgba(200, 163, 81, 0.1);
  border: 1px solid rgba(200, 163, 81, 0.25);
}

.ranking-medal {
  font-size: 1.3rem;
  min-width: 2.5rem;
  text-align: center;
  line-height: 1;
}

.ranking-pos {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  min-width: 2.5rem;
  text-align: center;
}

.ranking-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.5rem;
  color: var(--text-primary);
}

.ranking-pts {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

/* Title Badges */
.title-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.title-badge.title-새신자 {
  background: #e8e8e8;
  color: #666;
}

[data-theme="dark"] .title-badge.title-새신자 {
  background: #3a3a3a;
  color: #aaa;
}

.title-badge.title-성경-학생 {
  background: #dceefb;
  color: #2a6bac;
}

[data-theme="dark"] .title-badge.title-성경-학생 {
  background: #1a2e45;
  color: #6ab4f0;
}

.title-badge.title-성경-선생 {
  background: #d4f5d4;
  color: #2a7a2a;
}

[data-theme="dark"] .title-badge.title-성경-선생 {
  background: #1a351a;
  color: #6adf6a;
}

.title-badge.title-성경-박사 {
  background: #f0e4f7;
  color: #7b3fa0;
}

[data-theme="dark"] .title-badge.title-성경-박사 {
  background: #2e1a3e;
  color: #c89ee0;
}

.title-badge.title-성경-마스터 {
  background: linear-gradient(135deg, #fff4d6, #ffe8a0);
  color: #8B6914;
  border: 1px solid rgba(200, 163, 81, 0.3);
}

[data-theme="dark"] .title-badge.title-성경-마스터 {
  background: linear-gradient(135deg, #3a2e10, #4a3a18);
  color: #e8c87a;
  border: 1px solid rgba(200, 163, 81, 0.4);
}

/* My Rank Bar (fixed bottom) */
.my-rank-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  background: var(--cream);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 50;
  gap: 0.8rem;
}

/* Empty State */
.ranking-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.ranking-empty p:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 400px) {
  .podium-card {
    padding: 0.8rem 0.5rem;
  }
  .podium-card.first {
    padding: 1rem 0.6rem;
  }
  .podium-name {
    font-size: 0.8rem;
  }
}
