
/* =========================================================================
   Talk Wiz — single-file stylesheet
   ========================================================================= */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, sans-serif;
  background: #FFF8E7;
  color: #2D2D2D;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---- Brand typography ---- */
.wordmark {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* ---- Page progress bar (top, fixed) ---- */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent, #2ECC71);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- Header (Liquid Glass, iOS 26 style) ---- */
.site-header {
  position: sticky;
  top: 12px;
  margin: 12px 16px 0;
  z-index: 100;
  background: rgba(255, 248, 231, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.10),
    0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.75),
    inset 0 -1px 1px rgba(0, 0, 0, 0.03);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header .wordmark {
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 0;
}
.site-header .wordmark .wordmark-logo {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 6px;
}
.site-header .wordmark .dot { color: #2ECC71; }
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.back-home {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  display: none;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05), inset 0 1px 1px rgba(255,255,255,0.7);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.back-home svg { width: 13px; height: 13px; }
.back-home:hover { color: var(--accent, #2ECC71); border-color: var(--accent, #2ECC71); }
/* Show the back-home button only on episode pages (body[data-route^="episode-"]) */
body[data-route^="episode-"] .back-home { display: inline-flex; }
.reserve-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #2ECC71;
  color: #fff !important;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.32);
}
.reserve-btn:hover { background: #27AE60; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(46, 204, 113, 0.45); }
.reserve-btn svg { width: 14px; height: 14px; }

/* ---- Liquid Glass utility (iOS 26 style) ---- */
/* Apply to any element that should look like frosted glass. */
.glass-surface {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    inset 0 -1px 1px rgba(0, 0, 0, 0.02);
}
/* Stronger glass for elements that float over images / varied backgrounds */
.glass-surface-strong {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(0, 0, 0, 0.03);
}
/* Tinted glass — for elements that should pick up the accent color */
.glass-surface-tinted {
  background: color-mix(in srgb, var(--accent, #2ECC71) 14%, rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

/* ---- Page container ---- */
main { min-height: calc(100vh - 70px); }
/* Multi-page: body fades in on each page load (replaces .page show/hide) */
body { animation: pageFadeIn 0.3s ease; }
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================================
   LANDING PAGE
   ========================================================================= */

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 24px 24px 36px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  min-height: auto;
}
/* Full-bleed background image with beige gradient overlay for readability. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}
/* Soft fade from the hero's bottom edge into the page background.
   Replaces the hard rounded cutoff with a gentle ~48px gradient dissolve,
   so the hero melts into the page instead of ending in a hard line. */
.hero-edge-fade {
  position: relative;
  z-index: 1;
  height: 48px;
  margin-top: -48px;
  background: linear-gradient(to bottom, rgba(255,248,231,0) 0%, #FFF8E7 100%);
  pointer-events: none;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Desktop shows the wide landscape image; mobile image is hidden by default */
.hero-bg-mobile { display: none; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255,248,231,0.96) 0%, rgba(255,248,231,0.88) 35%, rgba(255,248,231,0.55) 65%, rgba(255,248,231,0.25) 100%);
}
.hero-text { position: relative; z-index: 1; }
.hero-logo {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.10));
}
.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: clamp(15px, 2vw, 20px);
  color: #555;
  line-height: 1.35;
  margin-bottom: 0;
  max-width: 440px;
}
.hero-cta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
/* Constrain SVG icons inside buttons so they don't render at huge sizes */
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Logo images inside buttons (Google Maps, Neshan) */
.btn-logo { width: 18px; height: 18px; flex-shrink: 0; object-fit: contain; }
.btn-primary {
  background: #2ECC71;
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.28);
}
.btn-primary:hover { background: #27AE60; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46, 204, 113, 0.38); }
.btn-secondary {
  background: #fff;
  color: #2D2D2D;
  border: 1.5px solid rgba(0,0,0,0.1);
}
.btn-secondary:hover { border-color: #2D2D2D; }
.btn-ghost {
  background: transparent;
  color: #2D2D2D;
  border: 1.5px solid rgba(0,0,0,0.15);
}
.btn-ghost:hover { background: #2D2D2D; color: #fff; }

/* ---- Hero image (legacy — no longer used, hero is now full-bleed background) ---- */
.hero-image { display: none; }

/* ---- Countdown ---- */
.countdown-block {
  margin-top: 14px;
  padding: 14px 20px;
  border-radius: 18px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(0, 0, 0, 0.03);
}
.countdown-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  margin-bottom: 10px;
}
.countdown-timer {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.countdown-unit {
  text-align: center;
  min-width: 56px;
}
.countdown-num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: #2ECC71;
  line-height: 1;
}
.countdown-word {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-top: 4px;
}

/* ---- Calendar dropdown ---- */
.calendar-dropdown {
  position: relative;
  display: inline-block;
}
.calendar-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  border-radius: 14px;
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 50;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.16),
    0 2px 6px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
.calendar-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.calendar-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #2D2D2D;
  transition: background 0.15s ease;
}
.calendar-menu a:hover { background: #FFF8E7; }
.calendar-menu a svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- Section title ---- */
.section { padding: 64px 24px; max-width: 1400px; margin: 0 auto; }
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 44px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #2D2D2D;
  margin-bottom: 8px;
}
.section-title .accent { color: #2ECC71; }
.section-sub {
  font-size: 16px;
  color: #666;
  margin-bottom: 36px;
  max-width: 600px;
}

/* ---- Episode cards (landing) ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.episode-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  min-height: 460px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.episode-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
.episode-card .poster {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.episode-card .poster img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.episode-card:hover .poster img { transform: scale(1.06); }
.episode-card .poster::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 100%);
}
.episode-card .badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--card-accent);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}
.episode-card .badge.past {
  background: rgba(0,0,0,0.5);
  color: #fff;
  backdrop-filter: blur(6px);
}
.episode-card .episode-number {
  position: absolute;
  top: 16px; right: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 38px;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.episode-card .poster-overlay-text {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  color: #fff;
  z-index: 2;
}
.episode-card .poster-overlay-text .tagline {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 4px;
}
.episode-card .poster-overlay-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
}
.episode-card .card-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.episode-card .card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.episode-card .meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card-accent-soft, #F5EFE0);
  color: var(--card-accent-dark, #2D2D2D);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.episode-card .meta-pill svg { width: 13px; height: 13px; flex-shrink: 0; }
.episode-card .card-cta {
  margin-top: auto;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--card-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.episode-card.past {
  opacity: 0.6;
  filter: grayscale(0.5);
}
.episode-card.past:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}
.faq-item {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}
.faq-item:hover {
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}
.faq-item.open {
  background: rgba(255, 255, 255, 0.7);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #2D2D2D;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question .toggle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #FFF8E7;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: #2ECC71;
  transition: transform 0.25s ease;
}
.faq-item.open .faq-question .toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #555;
  font-size: 15px;
  line-height: 1.7;
}
.faq-answer-inner { padding: 0 22px 20px; }

/* ---- Footer / Contact ---- */
.site-footer {
  background: #2D2D2D;
  color: #FFF8E7;
  padding: 60px 24px 36px;
  margin-top: 60px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  display: block;
}
.footer-brand p {
  color: rgba(255,248,231,0.7);
  max-width: 380px;
  font-size: 15px;
}
.footer-contact h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2ECC71;
  margin-bottom: 18px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-wrap: nowrap;
}
.footer-contact-item:hover { background: rgba(255,255,255,0.12); }
.footer-contact-item .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(46,204,113,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #2ECC71;
  flex-shrink: 0;
}
.footer-contact-item > div:not(.icon):not(.copied-tag):not(.contact-link-icon) {
  min-width: 0;
  flex: 1;
}
.footer-contact-item .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,248,231,0.5);
  white-space: nowrap;
}
.footer-contact-item .value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.footer-contact-item .copied-tag {
  margin-left: auto;
  font-size: 11px;
  color: #2ECC71;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.footer-contact-item.copied .copied-tag { opacity: 1; }
.footer-contact-item .contact-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(46, 204, 113, 0.18);
  color: #2ECC71;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.footer-contact-item .contact-link-icon:hover {
  background: #2ECC71;
  color: #fff;
  transform: scale(1.05);
}
.footer-contact-item .contact-link-icon svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,248,231,0.5);
}

/* =========================================================================
   EPISODE PAGE
   ========================================================================= */
.episode-page {
  --accent: #2ECC71;
  --accent-soft: #E8F8EF;
  --accent-dark: #27AE60;
}
.episode-hero {
  position: relative;
  padding: 24px 24px 28px;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 28px;
  align-items: center;
}
.episode-hero .poster {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}
.episode-hero .poster img { width: 100%; height: 100%; object-fit: cover; }
.episode-hero .poster::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 50%);
  opacity: 0.18;
  mix-blend-mode: multiply;
}
/* Content wrapper: holds info + buttons + countdown.
   On desktop this sits in the right grid column.
   On mobile it becomes a centered flex column (see media query). */
.episode-hero-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.episode-hero .info .ep-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.episode-hero .info h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #2D2D2D;
  margin-bottom: 6px;
}
.episode-hero .info .tagline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.episode-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.meta-pill {
  border-radius: 999px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.meta-pill .icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.meta-pill .icon svg { width: 14px; height: 14px; }
.meta-pill .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  display: block;
  line-height: 1.2;
}
.meta-pill .value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #2D2D2D;
  display: block;
  line-height: 1.2;
}
.episode-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.btn-soft:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent)); }
.episode-hero .btn { padding: 11px 20px; font-size: 13px; }

/* ---- Episode countdown (compact, on episode page) ---- */
.episode-countdown {
  padding: 12px 18px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  align-self: flex-start;
  background: color-mix(in srgb, var(--accent) 14%, rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.07),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.episode-countdown .label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
}
.episode-countdown .timer { display: flex; gap: 10px; }
.episode-countdown .unit { text-align: center; min-width: 36px; }
.episode-countdown .num {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--accent-dark);
  line-height: 1;
}
.episode-countdown .word {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  opacity: 0.7;
  margin-top: 3px;
}
.episode-countdown.past {
  background: rgba(0,0,0,0.04);
}
.episode-countdown.past .label,
.episode-countdown.past .num,
.episode-countdown.past .word {
  color: #666;
}
.episode-countdown.past .held-message {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}
.episode-countdown.past .held-message svg {
  width: 18px; height: 18px;
  color: #2ECC71;
}
.episode-countdown.past .timer { display: none; }
.episode-countdown:not(.past) .held-message { display: none; }

/* ---- Episode body sections ---- */
.episode-body { padding: 0 24px 80px; max-width: 1400px; margin: 0 auto; }
.episode-section {
  padding: 56px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.episode-section:first-child { border-top: none; }
.episode-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 3.5vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #2D2D2D;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.episode-section-title .num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 18px;
}
.episode-section-sub { color: #666; font-size: 15px; margin-bottom: 28px; }

/* ---- Sources grid ---- */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.source-card {
  border-radius: 16px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.source-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  border-color: var(--accent);
}
.source-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.source-card .text { flex: 1; min-width: 0; }
.source-card .type-tag {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.source-card .title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #2D2D2D;
  line-height: 1.3;
  margin-bottom: 4px;
}
.source-card .author { font-size: 13px; color: #777; }

/* ---- Location card ---- */
.location-card {
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.07),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.location-card .info h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #2D2D2D;
  margin-bottom: 8px;
}
.location-card .info p { color: #666; margin-bottom: 18px; }
.location-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.location-visual {
  aspect-ratio: 1.4;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.location-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.location-visual .pin-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 56px;
  color: #E63946;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
  pointer-events: none;
}

/* ---- Quiz ---- */
.quiz-card {
  border-radius: 22px;
  padding: 36px;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.75);
}
.quiz-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}
.quiz-progress-bar {
  height: 4px;
  background: #EEE;
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}
.quiz-progress-bar .fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}
.quiz-question {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: #2D2D2D;
  margin-bottom: 24px;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  padding: 16px 20px;
  background: #F8F4E8;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  color: #2D2D2D;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.quiz-option:hover { background: #fff; border-color: var(--accent-soft); }
.quiz-option .letter {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.quiz-option.correct {
  background: #E8F8EF;
  border-color: #2ECC71;
  color: #1A8B47;
}
.quiz-option.correct .letter { background: #2ECC71; color: #fff; }
.quiz-option.incorrect {
  background: #FDECEC;
  border-color: #E63946;
  color: #A82836;
}
.quiz-option.incorrect .letter { background: #E63946; color: #fff; }
.quiz-option.disabled { pointer-events: none; opacity: 0.65; }
.quiz-option.disabled.correct, .quiz-option.disabled.incorrect { opacity: 1; }

.quiz-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #E8F8EF;
  color: #1A8B47;
  font-size: 14px;
  line-height: 1.6;
  display: none;
}
.quiz-feedback.show { display: block; }
.quiz-feedback .verdict {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}
.quiz-feedback.wrong { background: #FDECEC; color: #A82836; }
.quiz-next {
  margin-top: 18px;
  display: none;
}
.quiz-next.show { display: inline-flex; }

.quiz-result { display: none; text-align: center; padding: 30px 0; }
.quiz-result.show { display: block; }
.quiz-result .score {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 64px;
  color: #2ECC71;
  line-height: 1;
  margin-bottom: 10px;
}
.quiz-result .score-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #666;
  margin-bottom: 24px;
}
.quiz-result .verdict-text {
  font-size: 18px;
  color: #2D2D2D;
  margin-bottom: 26px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}

/* ---- Vocabulary / Flashcards ---- */
.flashcard-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.flashcards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.flashcard {
  perspective: 1200px;
  height: 220px;
  cursor: pointer;
}
.flashcard-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flashcard.flipped .flashcard-inner { transform: rotateY(180deg); }
.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
}
.flashcard-front {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(255, 255, 255, 0.5);
}
.flashcard-front .phrase { flex: 1; display: flex; align-items: center; }
.flashcard-back {
  background: var(--accent);
  color: #fff;
  transform: rotateY(180deg);
  justify-content: space-between;
}
.flashcard-front .phrase {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #2D2D2D;
  line-height: 1.25;
}
.flashcard-front .flashcard-type {
  align-self: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.flashcard-front .hint {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  text-align: center;
}
.flashcard-back .meaning {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 10px;
}
.flashcard-back .example {
  font-style: italic;
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 10px;
}
.flashcard-back .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 4px;
  font-weight: 700;
}
.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  background: rgba(0,0,0,0.05);
  padding: 4px 9px;
  border-radius: 999px;
  color: #666;
  transition: all 0.2s ease;
  cursor: pointer;
}
.copy-chip:hover { background: var(--accent-soft); color: var(--accent-dark); }
.copy-chip.copied { background: var(--accent); color: #fff; }
.copy-chip svg { width: 12px; height: 12px; }

/* ---- Mind map (HTML divs over SVG lines) ---- */
.mindmap-wrap {
  border-radius: 22px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.07),
    inset 0 1px 1px rgba(255, 255, 255, 0.75);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.mindmap-canvas {
  position: relative;
  width: 100%;
  height: 600px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--accent) 10%, transparent) 1.5px, transparent 1.5px) 0 0/24px 24px,
    #FAFAFA;
  border-radius: 16px;
  /* visible: branch nodes near the edges (e.g. "Healthy Use") are no longer
     clipped. The dotted background is still contained by the element's box,
     so the visual edge stays clean — only the pill-shaped nodes can extend
     slightly past it. */
  overflow: visible;
}
.mindmap-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.mindmap-edge {
  stroke: color-mix(in srgb, var(--accent) 35%, transparent);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  transition: stroke 0.25s ease, stroke-width 0.25s ease, opacity 0.25s ease;
}
.mindmap-edge.active {
  stroke: var(--accent);
  stroke-width: 3;
}
.mindmap-edge.dimmed { opacity: 0.25; }

.mindmap-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 2px solid var(--accent);
  color: var(--accent-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08), inset 0 1px 1px rgba(255,255,255,0.8);
  white-space: nowrap;
  user-select: none;
  z-index: 2;
}
/* Branch nodes (not the central one): allow wrapping so long names like
   "Healthy Use" or "Mental Health" don't get clipped at the canvas edges. */
.mindmap-node:not(.central) {
  max-width: 130px;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.25;
}
.mindmap-node:hover {
  background: var(--accent-soft);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent), inset 0 1px 1px rgba(255,255,255,0.9);
}
.mindmap-node.central {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
  font-size: 15px;
  font-weight: 800;
  padding: 16px 26px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1px 1px rgba(255,255,255,0.3);
}
.mindmap-node.central:hover {
  background: var(--accent-dark);
  transform: translate(-50%, -50%) scale(1.05);
}
.mindmap-node.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 1px rgba(255,255,255,0.3);
  transform: translate(-50%, -50%) scale(1.1);
}
.mindmap-node.dimmed { opacity: 0.4; transform: translate(-50%, -50%) scale(0.92); }
.mindmap-node .node-icon {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.7;
}
.mindmap-node.central .node-icon { display: none; }

.mindmap-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 24px;
  background: var(--accent-soft);
  border-radius: 16px;
  min-height: 200px;
  transition: background 0.3s ease;
}
.mindmap-detail .branch-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--accent-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mindmap-detail .branch-name::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.mindmap-detail .branch-count {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  opacity: 0.7;
  margin-bottom: 14px;
  font-weight: 600;
}
.mindmap-detail .children { display: flex; flex-direction: column; gap: 10px; }
.mindmap-detail .child {
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: #2D2D2D;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid var(--accent);
  transition: transform 0.2s ease;
}
.mindmap-detail .child:hover { transform: translateX(4px); }
.mindmap-detail .child .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}
.mindmap-detail .child .child-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.mindmap-detail .child .child-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #2D2D2D;
}
.mindmap-detail .child .child-context {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.mindmap-detail .placeholder {
  color: var(--accent-dark);
  font-size: 15px;
  opacity: 0.65;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* ---- Scroll to top ---- */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, #2ECC71) 60%, rgba(255, 255, 255, 0.3));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 24px color-mix(in srgb, var(--accent, #2ECC71) 40%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 200;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent-dark, #27AE60); transform: translateY(-2px); }

/* ---- Share button on episode page ---- */
.share-wrap { position: relative; display: inline-block; }
.share-toast {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: #2D2D2D;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  white-space: nowrap;
  z-index: 50;
}
.share-toast.show { opacity: 1; transform: translateY(0); }

/* =========================================================================
   HOBBY CAROUSEL (Episode 7)
   ========================================================================= */
.hobby-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 8px;
}
.hobby-carousel-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.hobby-carousel-center-marker {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 156px; height: 196px;
  border: 3px solid var(--accent);
  border-radius: 18px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.6);
  transition: border-color 0.2s ease;
}
.hobby-carousel-track {
  display: flex;
  gap: 14px;
  will-change: transform;
}
.hobby-card {
  flex-shrink: 0;
  width: 140px;
  height: 180px;
  border-radius: 16px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 2px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-dark);
  user-select: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hobby-card:hover {
  transform: scale(1.03);
  border-color: var(--accent);
}
.carousel-nav {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
  border: none;
}
.carousel-nav:hover { background: var(--accent-dark); transform: scale(1.08); }
.carousel-nav:active { transform: scale(0.95); }
.carousel-controls {
  text-align: center;
  margin-top: 12px;
}
.carousel-controls .btn { font-size: 16px; padding: 14px 40px; }
.carousel-controls .btn:disabled { opacity: 0.6; cursor: not-allowed; }
.hobby-result {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.4s ease;
}
.hobby-result.show {
  max-height: 800px;
  opacity: 1;
}
.hobby-result-card {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 36px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: hobbyResultPop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes hobbyResultPop {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hobby-result-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 8px;
}
.hobby-result-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 5vw, 32px);
  margin-bottom: 8px;
  line-height: 1.1;
}
.hobby-result-desc {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 20px;
  font-style: italic;
}
.hobby-result-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.hobby-question {
  padding: 12px 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.hobby-question.funny {
  background: rgba(255,255,255,0.25);
  font-style: italic;
}
.hobby-question::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.hobby-question.funny::before {
  background: rgba(255,255,255,0.9);
}
.hobby-result-spin-again {
  margin-top: 20px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.hobby-result-spin-again:hover {
  background: rgba(255,255,255,0.3);
}

/* =========================================================================
   HOBBY MATCHER — Build Your Weekend (Episode 7)
   ========================================================================= */
.hobby-matcher {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.matcher-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.matcher-group-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}
.matcher-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.matcher-option {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 2px solid rgba(0,0,0,0.08);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}
.matcher-option:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.matcher-option.selected {
  background: var(--accent);
  border-color: var(--accent-dark);
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.matcher-find-btn {
  align-self: center;
  margin-top: 8px;
  padding: 14px 36px;
  font-size: 15px;
}
.matcher-find-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.matcher-results {
  display: none;
  margin-top: 12px;
}
.matcher-results.show {
  display: block;
  animation: matcherFadeIn 0.5s ease both;
}
@keyframes matcherFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.matcher-results-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-dark);
  margin-bottom: 14px;
  text-align: center;
}
.matcher-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.matcher-result-card {
  padding: 22px 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.matcher-result-card .check {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.matcher-result-card .check svg { width: 16px; height: 16px; }
.matcher-result-card .name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-dark);
}
.matcher-result-card .desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  font-style: italic;
}
.matcher-more-wrap {
  text-align: center;
  margin-top: 18px;
}
.matcher-show-more {
  padding: 10px 24px;
  font-size: 13px;
}

/* ---- Image strip (decorative episode images) ---- */
.image-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.image-strip-item {
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.image-strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.image-strip-item:hover img { transform: scale(1.05); }
.image-strip-item .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
main > * { animation: fadeUp 0.5s ease both; }
main > *:nth-child(2) { animation-delay: 0.05s; }
main > *:nth-child(3) { animation-delay: 0.1s; }

/* ---- View Transitions API ---- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: 0.35s;
}

/* =========================================================================
   MOBILE MIND MAP — vertical tree layout
   On screens ≤ 900px, the radial mind map is replaced with a vertical tree:
   central node at top, branches as a tappable vertical list of pills, and
   the detail panel below. This is far more touch-friendly than a cramped
   radial layout on a narrow screen.
   ========================================================================= */
.mindmap-mobile { display: none; }
.mindmap-mobile .mm-central {
  padding: 16px 24px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 17px;
  text-align: center;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent);
  margin-bottom: 16px;
}
.mindmap-mobile .mm-branches {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mindmap-mobile .mm-branch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.mindmap-mobile .mm-branch:active { transform: scale(0.98); }
.mindmap-mobile .mm-branch .mm-branch-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.mindmap-mobile .mm-branch .mm-branch-name { flex: 1; }
.mindmap-mobile .mm-branch .mm-branch-arrow {
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.2s ease;
}
.mindmap-mobile .mm-branch.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}
.mindmap-mobile .mm-branch.active .mm-branch-icon {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.mindmap-mobile .mm-branch.active .mm-branch-arrow {
  color: #fff;
  transform: rotate(90deg);
}
.mindmap-mobile .mm-detail {
  margin-top: 16px;
  padding: 20px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 12%, rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  min-height: 120px;
}
.mindmap-mobile .mm-detail .branch-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--accent-dark);
  margin-bottom: 6px;
}
.mindmap-mobile .mm-detail .branch-count {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  opacity: 0.7;
  margin-bottom: 12px;
  font-weight: 600;
}
.mindmap-mobile .mm-detail .children { display: flex; flex-direction: column; gap: 10px; }
.mindmap-mobile .mm-detail .child {
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: #2D2D2D;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid var(--accent);
}
.mindmap-mobile .mm-detail .child .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}
.mindmap-mobile .mm-detail .child .child-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.mindmap-mobile .mm-detail .child .child-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #2D2D2D;
}
.mindmap-mobile .mm-detail .child .child-context {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}
.mindmap-mobile .mm-detail .placeholder {
  color: var(--accent-dark);
  font-size: 14px;
  opacity: 0.65;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  /* On mobile: show the portrait hero image with a cream gradient overlay
     so the logo, buttons, and countdown stay readable. The hero background
     extends above the hero (under the top bar) at the top only. */
  .hero-bg-desktop { display: none; }
  .hero-bg-mobile { display: block; }
  .hero-bg {
    /* Extend above to go under the floating top bar; bottom untouched.
       Clipped at the document top via .landing-page overflow:hidden so
       the negative top doesn't create scrollable overflow above y=0. */
    inset: -70px 0 0 0;
    border-radius: 0 0 24px 24px;
  }
  /* Pull the landing section up to the very top of the page (under the
     floating header) and clip overflow. This prevents the hero-bg's
     negative top from creating scrollable space above the document —
     which was causing the page to load slightly scrolled on mobile. */
  .landing-page {
    margin-top: -60px;
    padding-top: 60px;
    overflow: hidden;
  }
  .hero-bg::after {
    /* Stronger overlay on mobile so text is fully readable over the photo,
       with a soft fade at the bottom so the hero image doesn't end in a
       hard line — it dissolves into the cream page background. */
    background:
      linear-gradient(180deg, rgba(255,248,231,0.88) 0%, rgba(255,248,231,0.72) 40%, rgba(255,248,231,0.82) 75%, rgba(255,248,231,1) 100%);
  }
  .hero {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    padding: 16px 20px 20px;
    gap: 0;
    /* Leave ~180px below the hero so the "All Episodes" section title is
       visible without scrolling on typical phones (iPhone 13, Galaxy A53). */
    min-height: calc(100vh - 200px);
  }
  /* Top section: logo + tagline, centered. .hero-text fills the hero
     height so the CTA + countdown inside it can be pushed to the bottom. */
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    flex: 1;
    width: 100%;
  }
  .hero-text .hero-logo { max-width: 145px; margin: 0 auto; }
  .hero-text .hero-tagline { font-size: 14px; line-height: 1.4; }
  /* Bottom group: CTA buttons stacked + countdown, all centered together
     at the bottom of the hero. */
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 14px;
    width: 100%;
  }
  .hero-cta .calendar-dropdown,
  .hero-cta .btn {
    width: 100%;
    max-width: 260px;
  }
  .hero-cta .btn {
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
    line-height: 1.2;
    min-height: 46px;
    box-sizing: border-box;
  }
  /* Countdown sits right below the buttons, centered */
  .countdown-block {
    margin: 0 auto;
    padding: 14px 20px;
    display: block;
    text-align: center;
  }
  .countdown-block .countdown-label { text-align: center; margin-bottom: 10px; }
  .countdown-timer { justify-content: center; }
  .countdown-num { font-size: 24px; }
  .countdown-unit { min-width: 44px; }
  /* Hide the desktop edge-fade on mobile — the mobile hero already has its
     own bottom fade built into the ::after gradient. This element would
     otherwise show as a white strip overlapping the countdown. */
  .hero-edge-fade { display: none; }
  /* Episode hero on mobile: switch from 2-column grid to centered column.
     Poster, title, buttons, and countdown are all centered. */
  .episode-hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding: 16px 18px 20px;
  }
  .episode-hero .poster { max-width: 100%; max-height: 240px; }
  /* Content wrapper: centered, items stacked */
  .episode-hero-content {
    align-items: center;
    width: 100%;
  }
  /* Center the info text on mobile */
  .episode-hero .info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .episode-hero .info h1 { font-size: 28px; }
  .episode-hero .info .tagline { font-size: 14px; margin-bottom: 10px; }
  /* Episode page meta pills: the GROUP of 3 pills is centered as a block.
     Each pill is compact (narrow), with label on top + value below (left-aligned).
     All 3 pills are the same size and aligned. */
  .episode-meta-grid {
    gap: 6px;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 0;
  }
  .episode-meta-grid .meta-pill {
    flex: 0 1 auto;
    justify-content: flex-start;
    align-items: center;
    padding: 7px 8px;
    font-size: 13px;
    text-align: left;
    min-width: 0;
    width: auto;
  }
  .episode-meta-grid .meta-pill .icon { width: 20px; height: 20px; margin-top: 0; flex-shrink: 0; }
  .episode-meta-grid .meta-pill .icon svg { width: 10px; height: 10px; }
  /* Label (title) on top, value (info) below — left aligned inside pill */
  .episode-meta-grid .meta-pill > div:not(.icon):not(.copied-tag):not(.contact-link-icon) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }
  .episode-meta-grid .meta-pill .label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-right: 0;
    line-height: 1.2;
  }
  .episode-meta-grid .meta-pill .label::after { content: ''; }
  .episode-meta-grid .meta-pill .value {
    display: block;
    font-size: 13px;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  /* Buttons: centered */
  .episode-hero-actions {
    justify-content: center;
    width: 100%;
  }
  .episode-hero .btn { padding: 9px 16px; font-size: 12px; }
  /* Countdown: compact, centered */
  .episode-countdown {
    padding: 8px 12px;
    gap: 8px;
    align-self: center;
    justify-content: center;
  }
  .episode-countdown .num { font-size: 16px; }
  .episode-countdown .label { font-size: 10px; }
  .episode-countdown .word { font-size: 8px; }
  .episode-countdown .unit { min-width: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .location-card { grid-template-columns: 1fr; }
  /* Location map buttons: side-by-side on mobile (Google Maps | Neshan).
     Each button takes equal width, no wrapping. */
  .location-buttons { flex-wrap: nowrap; }
  .location-buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 11px 10px;
    font-size: 12px;
    gap: 6px;
  }
  .location-buttons .btn-logo { width: 16px; height: 16px; }
  /* On mobile: hide the radial mind map, show the vertical tree instead */
  .mindmap-wrap { grid-template-columns: 1fr; }
  .mindmap-wrap .mindmap-canvas { display: none; }
  .mindmap-wrap .mindmap-detail { display: none; }
  .mindmap-mobile { display: block; }
  .quiz-card { padding: 24px; }
  /* Hobby carousel: smaller cards on mobile */
  .hobby-card { width: 110px; height: 150px; font-size: 13px; padding: 12px 10px; }
  .hobby-carousel-center-marker { width: 126px; height: 166px; }
  .carousel-nav { width: 38px; height: 38px; font-size: 20px; }
  .hobby-result-card { padding: 24px 20px; }
  /* Hobby matcher: pill buttons full-width-friendly on narrow screens */
  .matcher-option { padding: 9px 14px; font-size: 13px; }
  .section { padding: 48px 20px; }
  .episode-body { padding: 0 20px 60px; }
  .site-header { margin: 10px 12px 0; padding: 8px 14px; top: 10px; border-radius: 22px; }
  .site-header .wordmark .wordmark-logo { height: 32px; }
  .reserve-btn { padding: 6px 12px; font-size: 11px; }
  .reserve-btn svg { width: 12px; height: 12px; }
  .back-home { padding: 5px 10px; font-size: 11px; }
  /* On narrow phones, hide the "Home" text and just show the arrow icon */
  .header-actions .back-home span { display: inline; }
  .countdown-timer { gap: 10px; }
  .scroll-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
  .episode-card .card-meta { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .hero-text .hero-logo { max-width: 145px; }
  .episode-meta-grid { flex-direction: column; align-items: stretch; }
  .meta-pill { width: 100%; justify-content: flex-start; }
  .quiz-question { font-size: 18px; }
  .quiz-option { padding: 14px 16px; font-size: 14px; }
  .header-actions .back-home span { display: none; }
  .header-actions .back-home::before { content: "← Back"; }
  /* Keep "Call / WhatsApp / Telegram" on one line on narrow phones */
  .footer-contact-item .label {
    font-size: 10px;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .footer-contact-item { gap: 10px; padding: 10px 12px; }
  .footer-contact-item .icon { width: 32px; height: 32px; }
  .footer-contact-item .contact-link-icon { width: 32px; height: 32px; }
  .footer-contact-item .contact-link-icon svg { width: 15px; height: 15px; }
  .footer-contact-item .value { font-size: 14px; }
}
@media (min-width: 901px) {
  /* On desktop: prevent episode card meta pills from wrapping (all 3 in one row) */
  .episode-card .card-meta { flex-wrap: nowrap; }
  .episode-card .meta-pill {
    font-size: 11px;
    padding: 5px 10px;
    gap: 5px;
  }
  .episode-card .meta-pill svg { width: 12px; height: 12px; }
}

/* ---- Print-friendly ---- */
@media print {
  .site-header, .scroll-top, #progress-bar, .back-home, .quiz-next, .share-wrap { display: none !important; }
  .page { display: block !important; }
}
