/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1A3654;
  background: linear-gradient(180deg, #A8E6F0 0%, #2178B5 70%, #1A5A8C 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input { font-family: inherit; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,54,84,0.08);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-icon-img {
  width: 48px; height: 48px;
  object-fit: contain;
}
.logo-icon-img.small { width: 32px; height: 32px; }
.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 600;
  color: #1A3654;
  letter-spacing: -0.3px;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(26,54,84,0.55);
  transition: color 0.2s;
}
.nav-link.active { color: #1A3654; }
.nav-link:hover { color: #1A3654; }
.btn-subscribe {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: #1A3654;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-subscribe:hover { background: #2178B5; }
.mobile-menu-btn { display: none; font-size: 24px; color: #1A3654; }

/* Mobile nav overlay */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 99;
  }
  .nav.open { display: flex; }
  .nav.open .nav-link { display: block; font-size: 20px; color: #1A3654; }
  .nav.open .btn-subscribe { font-size: 18px; padding: 14px 40px; }
}

/* ===== Hero ===== */
.hero {
  padding: 100px 40px 80px;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(26,54,84,0.18);
  background: rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 500;
  color: rgba(26,54,84,0.55);
  margin-bottom: 32px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #1A3654;
  border-radius: 50%;
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 500;
  color: #1A3654;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: rgba(26,54,84,0.5);
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto 32px;
}
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: #1A3654;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(26,54,84,0.18);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #2178B5; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: 1px solid rgba(26,54,84,0.18);
  background: rgba(255,255,255,0.12);
  color: #1A3654;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.3); }

/* ===== Hero Animations ===== */
.hero-title .word {
  display: inline-block;
  white-space: nowrap;
}
.hero-title .letter {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
}
.hero-title .letter-space {
  display: inline-block;
  width: 0.3em;
}
.hero-animate {
  opacity: 0;
  transform: translateY(12px);
}

/* ===== Sections Shared ===== */
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #2178B5;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 500;
  color: #1A3654;
  letter-spacing: -0.8px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(26,54,84,0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(26,54,84,0.45);
  transition: all 0.2s;
}
.btn-outline-sm:hover { border-color: rgba(26,54,84,0.3); color: #1A3654; }

/* ===== Latest Episodes ===== */
.latest-section {
  background: #fff;
  padding: 80px 40px;
}
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.episode-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #E0E8F0;
  box-shadow: 0 4px 16px rgba(26,54,84,0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26,54,84,0.12);
}
.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #E0E8F0;
}
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.card-ep { font-weight: 600; color: #2178B5; }
.card-dot { width: 4px; height: 4px; background: rgba(26,54,84,0.25); border-radius: 50%; }
.card-date { font-weight: 500; color: rgba(26,54,84,0.45); }
.card-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: #1A3654;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.card-desc {
  font-size: 14px;
  color: rgba(26,54,84,0.5);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.card-dur {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(26,54,84,0.3);
}
.card-play {
  width: 36px; height: 36px;
  background: #2178B5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.card-play:hover { background: #1A3654; transform: scale(1.08); }

/* ===== All Episodes ===== */
.all-section {
  background: #F0F7FB;
  padding: 80px 40px;
}
.all-header { margin-bottom: 40px; }
.all-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.ep-count { font-size: 14px; font-weight: 500; color: rgba(26,54,84,0.45); }
.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #E0E8F0;
  border-radius: 12px;
}
.search-bar i { color: rgba(26,54,84,0.3); font-size: 20px; }
.search-bar input {
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  color: #1A3654;
  width: 100%;
}
.search-bar input::placeholder { color: rgba(26,54,84,0.3); }

.episode-list { display: flex; flex-direction: column; }
.episode-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #E0E8F0;
  transition: background 0.15s;
}
.episode-row:hover { background: rgba(255,255,255,0.5); }
.ep-num {
  width: 30px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: rgba(26,54,84,0.3);
  flex-shrink: 0;
}
.ep-info { flex: 1; min-width: 0; }
.ep-title {
  font-size: 16px;
  font-weight: 600;
  color: #1A3654;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ep-author {
  font-size: 14px;
  color: rgba(26,54,84,0.5);
  margin-top: 2px;
}
.ep-date, .ep-dur {
  font-size: 13px;
  font-weight: 500;
  color: rgba(26,54,84,0.3);
  flex-shrink: 0;
  width: 60px;
}
.ep-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid #E0E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A3654;
  font-size: 14px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}
.ep-play:hover { background: #2178B5; color: #fff; border-color: #2178B5; }

/* Episode item wrapper with dropdown */
.episode-item { border-bottom: 1px solid #E0E8F0; }
.episode-item .episode-row { border-bottom: none; cursor: pointer; }
.ep-chevron {
  flex-shrink: 0;
  color: rgba(26,54,84,0.3);
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
}
.episode-item.expanded .ep-chevron { transform: rotate(180deg); }
.ep-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px 0 54px;
}
.episode-item.expanded .ep-dropdown {
  max-height: 300px;
  padding: 0 20px 20px 54px;
}
.ep-description {
  font-size: 14px;
  color: rgba(26,54,84,0.6);
  line-height: 1.6;
}

.load-more-wrap { display: flex; justify-content: center; padding-top: 24px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 40px;
  border: 1px solid rgba(26,54,84,0.12);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(26,54,84,0.5);
  background: #fff;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(26,54,84,0.3); color: #1A3654; }

/* ===== Now Playing Bar ===== */
.now-playing-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 200;
  box-shadow: 0 -2px 20px rgba(26,54,84,0.15);
  border-top: 1px solid #E0E8F0;
}
.now-playing-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 8px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.now-playing-player { flex: 1; min-width: 0; }
.now-playing-player div { width: 100%; }
.now-playing-close {
  color: rgba(26,54,84,0.4);
  padding: 8px;
  transition: color 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.now-playing-close:hover { color: #1A3654; }

/* ===== Footer ===== */
.footer {
  background: #1A3654;
  color: #fff;
  padding: 60px 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}
.footer-brand { max-width: 400px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-socials { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  transition: all 0.2s;
}
.social-icon img {
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.social-icon:hover img { opacity: 1; }
.social-icon:hover { background: rgba(255,255,255,0.18); color: #fff; }
.footer-links { display: flex; gap: 80px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: #fff; }

/* ===== About Section ===== */
.about-section {
  background: #fff;
  padding: 80px 40px;
}
.about-content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-top: 40px;
}
.about-img-wrap {
  flex-shrink: 0;
  width: 380px;
}
.about-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(26,54,84,0.12);
}
.about-text {
  flex: 1;
}
.about-text p {
  font-size: 18px;
  color: rgba(26,54,84,0.7);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #2178B5;
  transition: color 0.2s;
}
.about-link:hover {
  color: #1A3654;
}
.about-link i {
  font-size: 20px;
}

/* ===== Follow Section ===== */
.follow-section {
  background: #F0F7FB;
  padding: 80px 40px;
}
.follow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.follow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #E0E8F0;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.follow-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,54,84,0.1);
}
.follow-name {
  font-size: 17px;
  font-weight: 600;
  color: #1A3654;
}
.follow-arrow {
  color: rgba(26,54,84,0.3);
  font-size: 18px;
  transition: color 0.2s;
}
.follow-card:hover .follow-arrow {
  color: #2178B5;
}

/* ===== Follow Page ===== */
.follow-hero { padding-bottom: 40px; }
.follow-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.follow-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
}

/* Social media section */
.social-section {
  margin-top: 60px;
  text-align: center;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 24px auto 0;
}

/* RSS copy section */
.rss-section {
  margin-top: 60px;
  text-align: center;
}
.rss-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: #1A3654;
  margin-bottom: 8px;
}
.rss-desc {
  font-size: 15px;
  color: rgba(26,54,84,0.5);
  margin-bottom: 20px;
}
.rss-copy-row {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}
.rss-url {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid #E0E8F0;
  border-radius: 10px;
  font-size: 14px;
  color: #1A3654;
  background: #fff;
  outline: none;
}
.rss-copy-btn {
  padding: 14px 24px;
  font-size: 14px;
  white-space: nowrap;
}

/* ===== About Page ===== */
.about-hero { padding-bottom: 40px; }
.about-heading {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 500;
  color: #1A3654;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.about-connect {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #E0E8F0;
}
.about-connect-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  color: #1A3654;
  margin-bottom: 16px;
}

/* ===== No Results ===== */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: rgba(26,54,84,0.4);
  font-size: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header-inner { padding: 14px 20px; }
  .nav .nav-link { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 60px 20px 50px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .latest-section, .all-section, .about-section, .follow-section, .footer { padding: 50px 20px; }
  .about-content { flex-direction: column; gap: 32px; }
  .about-img-wrap { width: 260px; }
  .follow-grid { grid-template-columns: 1fr 1fr; }
  .rss-copy-row { flex-direction: column; }
  .cards-row { grid-template-columns: 1fr; gap: 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .all-header-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section-title { font-size: 28px; }
  .episode-row { gap: 12px; }
  .ep-date { display: none; }
  .ep-dropdown { padding-left: 12px !important; }
  .episode-item.expanded .ep-dropdown { padding-left: 12px !important; }
  .now-playing-inner { padding: 6px 8px 6px 4px; }
}
@media (max-width: 600px) {
  .cards-row { grid-template-columns: 1fr; }
  .ep-num { display: none; }
  .footer-links { gap: 24px; }
  .follow-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
}

/* ===== New Episode Toast ===== */
.new-ep-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 1000;
  animation: toastSlideIn 0.4s ease-out;
}
.new-ep-toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(26,54,84,0.15);
  border: 1px solid rgba(33,120,181,0.2);
  font-size: 14px;
  color: #1A3654;
}
.new-ep-toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2178B5;
  flex-shrink: 0;
  animation: toastPulse 2s ease-in-out infinite;
}
.new-ep-toast-text { font-weight: 500; }
.new-ep-toast-link {
  font-weight: 600;
  color: #2178B5;
  text-decoration: none;
  white-space: nowrap;
}
.new-ep-toast-link:hover { text-decoration: underline; }
.new-ep-toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #1A3654;
  opacity: 0.5;
  padding: 2px;
  display: flex;
  transition: opacity 0.2s;
}
.new-ep-toast-close:hover { opacity: 1; }
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (max-width: 600px) {
  .new-ep-toast { right: 12px; left: 12px; top: 72px; }
}
