html {
  scroll-behavior: smooth;
}

:root {
  --primary: #0ea5e9;
  --secondary: #1e3a8a;
  --background: #0f172a;
  --foreground: #ffffff;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --bg: #0f172a;
  --surface: #1e293b;
  --surface2: #162032;
  --border: rgba(51, 65, 85, 0.7);
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --gold: #fbbf24;
  --win: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--background);
  color: var(--text);
  line-height: 1.75;
  scroll-behavior: smooth;
}

.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 2rem;
}

header {
  width: 100%;
  background-color: transparent;
  padding: 1rem 0;
  position: fixed;
  z-index: 999;
}

header.scrolled {
  background-color: var(--background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
}

section {
  background: var(--background);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--gradient);
  cursor: pointer;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

a {
  text-decoration: none;
}

nav a {
  margin: 0.5rem 1rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

section {
  padding: 3rem 0;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.2)), url('./images/hero.jpg') center/cover no-repeat;
  padding: 5rem 0;
}

.hero .content {
  width: fit-content;
  margin-left: auto;
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: 3.5rem;
  background: linear-gradient(45deg, #FFD700, #FFC300);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  line-height: 4rem;
  animation: fadeInDown 1.2s;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: none;
  margin-top: 1rem;
  outline: none;
  display: block;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 3px;
  background: var(--gradient);
  display: block;
  margin: 10px auto 0;
  border-radius: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #1e293b;
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card-video {
  width: 100%;
  height: 450px;
  background: #1e293b;
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-top: 40px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  height: 400px;
  object-fit: fill;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
}

#contact p {
  color: var(--accent);
}

#contact p a {
  color: var(--text-muted);
  text-decoration: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

form input,
form textarea {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #334155;
  font-size: 1rem;
  background: #0f172a;
  color: var(--foreground);
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.3);
}

footer {
  background: var(--background);
  text-align: center;
  padding: 2.5rem 0;
  color: var(--text-muted);
  font-size: 1rem;
  border-top: 1px solid #334155;
}

footer nav {
  display: block;
  margin-bottom: 1rem;
}

footer nav a {
  color: var(--text-muted);
  margin: 0 0.6rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

footer nav a:hover {
  color: var(--accent);
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  margin: 0 0.5rem;
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.3s;
}

.social-icons a:hover {
  color: var(--primary);
  transform: scale(1.2);
}

#testimonials .card img {
  max-height: 320px;
  object-fit: cover;
}

#testimonials .caption {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Podcast Section ── */
.podcast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.podcast-card {
  background: #1e293b;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.podcast-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
}

.podcast-thumb {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #0f172a;
}

.podcast-thumb video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.ep-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.podcast-card h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  margin-top: 0.4rem;
}

.podcast-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.podcast-hidden {
  display: none;
}

/* ── Reveal animation for new cards ── */
@keyframes podcastFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.podcast-card-reveal {
  animation: podcastFadeUp 0.45s ease both;
}

/* ── Toggle row: line · · · pill · · · line ── */
.podcast-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.podcast-toggle-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #334155, transparent);
}

.podcast-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 1.5px solid #334155;
  color: var(--accent);
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.3s ease, background 0.3s ease,
    box-shadow 0.3s ease, color 0.3s ease;
}

.podcast-toggle-btn:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.07);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
  color: #fff;
}

#toggleIcon {
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  stroke: currentColor;
}

/* ── Responsive ── */
/* ── Podcast thumbnail placeholder overlay ── */
.podcast-thumb {
  position: relative;
}

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0f1e35, #1a2f4a);
  border-radius: 10px;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.thumb-play-icon {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.thumb-ep-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
  }

  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  nav.show {
    display: flex !important;
  }

  #menu-toggle {
    display: block;
  }

  .card-video {
    height: 350px;
  }

  .podcast-thumb video {
    height: 180px;
  }

  .podcast-toggle-line {
    display: none;
  }

  .podcast-toggle-wrap {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .card-video {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .podcast-thumb video {
    height: 160px;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav.animate {
  animation: slideDown 0.4s ease-in-out;
}

#menu-toggle i {
  font-size: 1.5rem;
  transition: transform 0.3s;
}

#menu-toggle .close-icon,
.open-icon {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mt-4 {
  margin-top: 1rem;
}

/* ── HERO ── */
.page-hero {
  padding: 7rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.page-hero .eyebrow::before,
.page-hero .eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero h1 span {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── CONTROLS ── */
.controls-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: color 0.25s;
}

#searchInput {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

#searchInput::placeholder {
  color: var(--text-muted);
}

#searchInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

#searchInput:focus~i {
  color: var(--accent);
}

.search-wrap:focus-within i {
  color: var(--accent);
}

/* Filter pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.pill {
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pill.active {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Sort dropdown */
.sort-wrap {
  position: relative;
}

#sortSelect {
  appearance: none;
  padding: 0.8rem 2.4rem 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s;
}

#sortSelect:focus {
  border-color: var(--primary);
}

.sort-wrap::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.75rem;
  pointer-events: none;
}

/* ── RESULTS META ── */
.results-meta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.results-count {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--accent);
  font-weight: 600;
}

.clear-btn {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.clear-btn:hover {
  color: var(--accent);
}

.clear-btn.hidden {
  visibility: hidden;
}

/* ── GRID ── */
.podcast-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

.podcast-card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  animation: cardIn 0.4s ease both;
}

.podcast-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.25);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-thumb {
  position: relative;
  background: #0a1628;
  overflow: hidden;
}

.card-thumb video {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s;
}

/* placeholder while video loads */
.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0b1930, #16304a);
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 1;
}

.play-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.play-ring i {
  color: var(--accent);
  font-size: 1rem;
  margin-left: 3px;
}

.overlay-ep {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.6;
  text-transform: uppercase;
}

.ep-number-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  z-index: 2;
}

/* Topic tag badge on card */
.topic-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(14, 165, 233, 0.18);
  color: var(--accent2);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 2;
  border: 1px solid rgba(56, 189, 248, 0.2);
  text-transform: capitalize;
}

.card-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.card-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.card-body .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── EMPTY STATE ── */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  grid-column: 1 / -1;
}

.empty-state.visible {
  display: flex;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  opacity: 0.3;
}

.empty-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── FOOTER ── */
footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  header nav {
    display: none;
  }

  .podcast-grid {
    grid-template-columns: 1fr;
  }

  .controls-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-pills {
    order: 3;
  }

  #sortSelect {
    width: 100%;
  }
}

/* ── Page hero ────────────────────────────────── */
.page-hero {
  padding: 7.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.page-hero h1 span {
  background: linear-gradient(90deg, #38bdf8, #7dd3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Main wrapper ─────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
}

/* ── Steps indicator ──────────────────────────── */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 auto 3rem;
  max-width: 500px;
  padding: 0 2rem;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--surface2);
  transition: all 0.35s ease;
  position: relative;
  z-index: 1;
}

.step-circle.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.step-circle.done {
  border-color: var(--win);
  background: rgba(16, 185, 129, 0.15);
  color: var(--win);
}

.step-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.04em;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 1.4rem;
  transition: background 0.4s;
}

.step-connector.done {
  background: var(--win);
}

/* ── Card panels ──────────────────────────────── */
.panel {
  display: none;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1.5rem;
  animation: fadeUp 0.5s ease both;
}

.panel.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.4rem 2rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.card-panel h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--fg);
}

.card-panel .sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
}

/* ── Form fields ──────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f172a;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.field input::placeholder {
  color: var(--muted);
}

.duplicate-msg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1.5px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  margin: 0 auto 1.5rem;
  max-width: 640px;
  animation: fadeUp 0.35s ease both;
}

.duplicate-msg i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap select {
  width: 100%;
}

.select-wrap::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.75rem;
  pointer-events: none;
}

/* ── Primary button ───────────────────────────── */
.btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  background: var(--gradient);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-loader {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: inline;
}

/* ── Book vote grid ───────────────────────────── */
.books-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.books-intro h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.books-intro p {
  color: var(--muted);
  font-size: 0.97rem;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.book-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.book-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.book-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 20px 40px rgba(0, 0, 0, 0.35);
}

.book-card .check-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.book-card.selected .check-badge {
  opacity: 1;
  transform: scale(1);
}

.book-img-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #0a1628;
}

.book-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-card:hover .book-img-wrap img {
  transform: scale(1.04);
}

.book-info {
  padding: 0.9rem 0.85rem;
}

.book-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.book-info p {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.vote-btn-wrap {
  text-align: center;
  margin-top: 2.5rem;
  padding: 0 1.5rem;
}

.vote-btn-wrap .btn {
  max-width: 320px;
  margin: 0 auto;
}

/* ── Prize progress bar ───────────────────────── */
.prize-bar-wrap {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.prize-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.prize-bar-info {
  flex: 1;
}

.prize-bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.prize-bar-track {
  height: 6px;
  background: rgba(51, 65, 85, 0.8);
  border-radius: 999px;
  overflow: hidden;
}

.prize-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--win), #34d399);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.prize-count {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Result panels ────────────────────────────── */
.result-card {
  text-align: center;
  padding: 3rem 2rem;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 1.2rem;
  display: block;
}

.result-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.result-card.winner h2 {
  color: var(--gold);
}

.result-card.thanks h2 {
  color: var(--accent);
}

.result-card p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 380px;
  margin: 0 auto 1.5rem;
}

.confetti-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0.2;
  }
}

/* ── Error message ────────────────────────────── */
.err-msg {
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.err-msg.show {
  display: block;
}

/* ── Footer ───────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

footer nav {
  display: block;
  margin-bottom: 0.8rem;
}

footer nav a {
  color: var(--muted);
  margin: 0 0.6rem;
  text-decoration: none;
  transition: color 0.2s;
}

footer nav a:hover {
  color: var(--accent);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 680px) {
  .books-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .prize-bar-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  nav.show {
    display: flex;
  }

  #menu-toggle {
    display: block;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  nav.show {
    animation: slideDown 0.3s ease;
  }
}

.disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.2rem;
  opacity: 0.7;
}

/* ── Index Podcast Pills ── */
.pod-pill {
  padding: .45rem 1.05rem;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #1e293b;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}

.pod-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pod-pill.active {
  background: rgba(14, 165, 233, .15);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ── Index podcast card thumbnail wrapper ── */
.pod-thumb-wrap {
  position: relative;
  background: #0a1628;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  height: 185px;
}

.pod-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: rgba(10, 22, 40, 0.55);
  cursor: pointer;
  transition: background 0.2s;
}

.pod-overlay:hover {
  background: rgba(10, 22, 40, 0.35);
}

.pod-play-btn {
  cursor: pointer;
  transition: transform 0.2s;
}

.pod-play-btn:hover {
  transform: scale(1.12);
}

.pod-ep-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  opacity: .7;
}