/* ── Bunting SVG ─────────────────────────── */
.bunting-svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.bunting-svg .string {
  fill: none;
  stroke: #222;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.bunting-svg .flag {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: bunting-swing 3.5s ease-in-out infinite;
}
.bunting-svg .flag:nth-child(odd) { animation-delay: -0.8s; }
.bunting-svg .flag:nth-child(3n) { animation-delay: -1.8s; }
.bunting-svg .flag:nth-child(5n) { animation-delay: -2.5s; }

@keyframes bunting-swing {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.section-bunting {
  width: 340px;
  height: 48px;
  margin: 0 auto 14px;
}

/* ── Navigation ─────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,253,248,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--green);
  transition: box-shadow 0.3s;
}

nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-bunting {
  display: inline-flex;
  gap: 1px;
  margin-right: 4px;
}

.nav-logo .logo-flag {
  width: 12px;
  height: 16px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.25s;
}

.nav-links a:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.nav-links a.active {
  background: var(--green);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
}
.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Mobile nav overlay ─────────────────── */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(255,253,248,0.98);
  backdrop-filter: blur(12px);
  padding: 24px;
  gap: 8px;
  border-bottom: 3px solid var(--green);
  box-shadow: var(--shadow);
  z-index: 999;
}

.nav-links.open a {
  font-size: 1.1rem;
  padding: 12px 20px;
}

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 3px solid transparent;
}

.btn-primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 4px 16px rgba(77,195,56,0.3);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(77,195,56,0.4);
}

.btn-outline {
  background: white;
  color: var(--green-dark);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

/* ── Section Headers ─────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.4rem;
  color: var(--black);
  margin-bottom: 6px;
}

.section-header .section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ── Wave Divider ─────────────────────────── */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -2px;
}
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ── View All Link ─────────────────────────── */
.view-all-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.05rem;
}
.view-all-link:hover { text-decoration: underline; }

/* ── Fade-in on scroll ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ─────────────────────────── */
footer {
  background: var(--black);
  color: white;
  padding: 48px 0 24px;
}

.footer-bunting {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 24px;
  opacity: 0.35;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--green);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: 0.3s;
}
.footer-links a:hover { color: white; }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  transition: 0.3s;
}
.social-link:hover {
  background: var(--green);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ── Episode Cards ─────────────────────────── */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.episode-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border: 2px solid transparent;
}
.episode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green);
}

.episode-card .ep-color-bar { height: 5px; }
.episode-card:nth-child(6n+1) .ep-color-bar { background: var(--flag-green); }
.episode-card:nth-child(6n+2) .ep-color-bar { background: var(--flag-blue); }
.episode-card:nth-child(6n+3) .ep-color-bar { background: var(--flag-pink); }
.episode-card:nth-child(6n+4) .ep-color-bar { background: var(--flag-yellow); }
.episode-card:nth-child(6n+5) .ep-color-bar { background: var(--flag-coral); }
.episode-card:nth-child(6n+6) .ep-color-bar { background: var(--flag-red); }

.episode-card .ep-body { padding: 24px; }

.episode-card .ep-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  background: var(--green);
  display: inline-block;
  padding: 2px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.episode-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--black);
}

.episode-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.episode-card .ep-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.episode-card .ep-duration {
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  box-shadow: 0 3px 12px rgba(77,195,56,0.3);
}
.play-btn:hover {
  background: var(--green-dark);
  transform: scale(1.1);
}
.play-btn svg { width: 18px; height: 18px; margin-left: 2px; }

/* ── Podsearch ─────────────────────────── */
.podsearch {
  background: var(--black);
  color: white;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.podsearch::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(77,195,56,0.12) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(30,144,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.podsearch .section-header h2 { color: white; }
.podsearch .section-header .section-subtitle { color: rgba(255,255,255,0.6); }
.podsearch .bunting-svg .string { stroke: rgba(255,255,255,0.3); }

.search-box {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 18px 60px 18px 24px;
  border-radius: 100px;
  font-size: 1.05rem;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  color: white;
  transition: all 0.3s;
}
.search-box input::placeholder { color: rgba(255,255,255,0.4); }
.search-box input:focus {
  border-color: var(--green);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 0 4px rgba(77,195,56,0.2);
}

.search-box .search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  cursor: pointer;
}

.search-toggle {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.search-toggle label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: 0.3s;
}
.search-toggle label:hover { border-color: rgba(255,255,255,0.3); }
.search-toggle input[type="radio"] { display: none; }
.search-toggle input[type="radio"]:checked + label {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* ── Podsearch status & results ──────────── */
.podsearch-status {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.podsearch-status[hidden] { display: none; }
.podsearch-status--error { color: var(--flag-coral); }

.podsearch-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

#podsearch-results {
  max-width: 760px;
  margin: 32px auto 0;
  text-align: left;
}

.podsearch-episode {
  margin-bottom: 28px;
}
.podsearch-episode-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.podsearch-episode-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green);
  line-height: 1.3;
}
.podsearch-episode-date {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

.podsearch-result {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.podsearch-result:hover {
  background: rgba(255,255,255,0.1);
}
.podsearch-result-time {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.podsearch-result-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
}
.podsearch-result-text mark {
  background: rgba(77,195,56,0.25);
  color: var(--green);
  border-radius: 3px;
  padding: 1px 3px;
}
.podsearch-result-listen {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  transition: opacity 0.2s;
  background: none;
  cursor: pointer;
  padding: 0;
}
.podsearch-result-listen:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ── Fundraising Ideas ─────────────────────────── */
.fundraising-search {
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}
.fundraising-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 100px;
  border: 2px solid #e0e0e0;
  background: white;
  font-size: 1rem;
  transition: 0.3s;
}
.fundraising-search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(77,195,56,0.15);
}
.fundraising-search .search-icon-sm {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
}

.fundraising-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-chip {
  padding: 8px 20px;
  border-radius: 100px;
  border: 2px solid #e0e0e0;
  background: white;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--text);
}
.filter-chip:hover { border-color: var(--green); color: var(--green-dark); }
.filter-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.idea-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-top: 5px solid var(--flag-green);
  position: relative;
}
.idea-card:nth-child(6n+2) { border-top-color: var(--flag-blue); }
.idea-card:nth-child(6n+3) { border-top-color: var(--flag-yellow); }
.idea-card:nth-child(6n+4) { border-top-color: var(--flag-pink); }
.idea-card:nth-child(6n+5) { border-top-color: var(--flag-coral); }
.idea-card:nth-child(6n+6) { border-top-color: var(--flag-red); }

.idea-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.idea-card .idea-icon { font-size: 2rem; margin-bottom: 12px; }
.idea-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.idea-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.5;
}
.idea-card .idea-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.idea-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}

/* Idea card with image */
.idea-card.has-image {
  padding: 0;
}
.idea-card.has-image .idea-body {
  padding: 20px 24px 24px;
}
.idea-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.idea-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idea-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.idea-volunteers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Ideas loading state */
.ideas-loading {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
  font-size: 0.95rem;
}
.ideas-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-light);
  font-size: 0.95rem;
  display: none;
}

/* Hide cards that don't match filter/search */
.idea-card.hidden {
  display: none;
}

/* ── PTA Game ─────────────────────────── */
.game-intro {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
}
.game-intro a {
  color: var(--green-dark);
  font-weight: 600;
}

.game-embed {
  max-width: 500px;
  margin: 32px auto 0;
}
.game-iframe-wrapper {
  position: relative;
  height: 0;
  padding-bottom: 117.6%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.game-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Book Club ─────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.book-card {
  text-align: center;
  padding: 24px 16px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.book-cover {
  width: 120px;
  height: 170px;
  border-radius: 8px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
}

.book-card:nth-child(4n+1) .book-cover { background: linear-gradient(135deg, #a8e6cf, #88d8a8); }
.book-card:nth-child(4n+2) .book-cover { background: linear-gradient(135deg, #ffd3b6, #ffaaa5); }
.book-card:nth-child(4n+3) .book-cover { background: linear-gradient(135deg, #c3bef7, #a5a0f5); }
.book-card:nth-child(4n+4) .book-cover { background: linear-gradient(135deg, #ffeaa7, #fdcb6e); }

.book-card a { display: block; color: inherit; }
.book-card h4 { font-size: 1rem; margin-bottom: 4px; }
.book-card .book-author { font-size: 0.85rem; color: var(--text-light); }
.book-card .book-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 8px;
}

/* ── Resources ─────────────────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-left: 4px solid var(--green);
  cursor: pointer;
}
.resource-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.resource-card .res-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.resource-card .res-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.resource-card .res-info p { font-size: 0.82rem; color: var(--text-light); }

.resources-section-title {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 20px;
  margin-top: 40px;
}
.resources-section-title:first-of-type { margin-top: 0; }

/* ── Newsletter ─────────────────────────── */
.newsletter {
  background: var(--green);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.newsletter .section-header h2 { color: white; }
.newsletter .section-header .section-subtitle { color: rgba(255,255,255,0.8); }

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 24px;
  border-radius: 100px;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: white;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus {
  border-color: white;
  background: rgba(255,255,255,0.2);
}

.newsletter-form button {
  padding: 16px 32px;
  border-radius: 100px;
  background: var(--black);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}
.newsletter-form button:hover {
  background: #333;
  transform: translateY(-2px);
}

.newsletter .privacy-note {
  font-size: 0.82rem;
  margin-top: 12px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}

/* ── About ─────────────────────────── */
.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-photo {
  width: 300px;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--green);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h3 {
  font-size: 1.8rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.about-text .about-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--flag-coral);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ── Contact Form ─────────────────────────── */
.contact-wrapper { max-width: 600px; margin: 0 auto; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 2px solid #e0e0e0;
  background: white;
  font-size: 1rem;
  transition: 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(77,195,56,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Sticky Audio Player Bar ──────────── */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: var(--black);
  color: white;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}
.player-bar.visible {
  transform: translateY(0);
}

.player-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.player-play-btn:hover {
  background: var(--green-dark);
}
.player-play-btn svg {
  width: 20px;
  height: 20px;
}
/* Show play icon when paused, pause icon when playing */
.player-bar .player-icon-pause { display: block; }
.player-bar .player-icon-play { display: none; }
.player-bar.is-paused .player-icon-pause { display: none; }
.player-bar.is-paused .player-icon-play { display: block; }

.player-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}
.player-ep-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  background: var(--green);
  padding: 1px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.player-ep-number:empty { display: none; }
.player-title {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-progress-wrap {
  flex: 1;
  min-width: 80px;
  cursor: pointer;
  padding: 8px 0;
}
.player-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.player-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  width: 0%;
  transition: width 0.15s linear;
}
.player-progress-wrap:hover .player-progress-bar {
  height: 6px;
}

.player-time {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.player-close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  background: none;
  flex-shrink: 0;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.player-close-btn:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}
.player-close-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Active episode card state ────────── */
.episode-card.is-playing {
  border-color: var(--green);
  box-shadow: 0 0 0 2px var(--green), var(--shadow-hover);
}

/* ── Episodes loading state ──────────── */
.episodes-loading {
  text-align: center;
  padding: 48px 0;
  color: var(--text-light);
  font-size: 0.95rem;
}
.episodes-loading .podsearch-spinner {
  border-color: rgba(0,0,0,0.1);
  border-top-color: var(--green);
  margin-right: 8px;
  vertical-align: middle;
}
