@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,500;6..12,600;6..12,700;6..12,800;6..12,900;6..12,1000&display=swap');

:root {
  /* Palette derived from the LopeTalk logo */
  --navy-deep: #071a30;
  --navy: #0b2545;
  --teal: #1b9aaa;
  --teal-bright: #22c1d6;
  --orange: #ff6b35;
  --orange-bright: #ff8354;

  --text: #16202e;
  --text-muted: #5a6b7b;
  --background: #f6f9fc;
  --card: #ffffff;
  --border: #e2e8f0;

  --on-dark: #eef4fb;
  --on-dark-muted: #a9bdd4;

  --primary-shadow: rgba(11, 37, 69, 0.18) 0px 14px 30px, rgba(11, 37, 69, 0.16) 0px 6px 10px;
  --secondary-shadow: rgba(11, 37, 69, 0.08) 0px 1px 3px, rgba(11, 37, 69, 0.12) 0px 4px 12px;

  --radius: 0.75rem;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body,
html {
  background-color: var(--background);
  color: var(--text);
  margin: 0;
  padding: 0;
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0.5rem 0;
  line-height: 1.1;
}

img {
  max-width: 100%;
}

a {
  color: var(--teal);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

@keyframes fade_in {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Skip link for keyboard/screen-reader users */
.skip_link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--on-dark);
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip_link:focus {
  left: 0;
}

/* ---------- Splash / hero ---------- */
.splash {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark);
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 193, 214, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.18), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  margin-bottom: 6rem;
  overflow: hidden;
}

.splash .content {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: var(--max-width);
  padding: 5rem 2rem;
}

.splash .intro {
  flex: 1;
  min-width: 0;
}

.logo {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  box-shadow: var(--primary-shadow);
  animation: fade_in 1s ease forwards;
}

#podcast_name_splash {
  font-size: clamp(2.75rem, 8vw, 5rem);
  text-transform: uppercase;
  font-weight: 1000;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
}

#podcast_description {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--on-dark-muted);
  max-width: 40ch;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: var(--secondary-shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cta:hover {
  transform: translateY(-2px);
  background: var(--orange-bright);
}

.expand_from_splash {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  transition: opacity 0.6s ease;
  opacity: 0;
  animation: fade_in 1.2s ease forwards;
  animation-delay: 1.2s;
}
.expand_from_splash img {
  width: 100%;
  height: 100%;
  filter: invert(1);
}

/* ---------- Members ---------- */
.members {
  flex: 1;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.member {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  animation: fade_in 1s ease forwards;
}

.member:hover {
  transform: translateY(-4px);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--primary-shadow);
}

.member img {
  object-fit: cover;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  border: 2px solid var(--teal-bright);
  flex-shrink: 0;
}

.member section {
  display: flex;
  flex-direction: column;
}
.member h3 {
  margin: 0;
}
.member span {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

/* ---------- Episodes ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.section_title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-transform: uppercase;
  font-weight: 1000;
  text-align: center;
  margin-bottom: 2.5rem;
}

.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.episode {
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--secondary-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: var(--radius);
  overflow: hidden;
}

.episode:hover {
  transform: translateY(-6px);
  box-shadow: var(--primary-shadow);
}

.episode .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy);
}

.episode .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.35s ease;
}
.episode .thumb:hover img {
  filter: brightness(0.75);
}

.play_podcast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: var(--orange);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: var(--primary-shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.play_podcast:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background-color: var(--orange-bright);
}
.play_podcast img {
  height: 2rem;
  width: 2rem;
  filter: invert(1);
}

.episode .info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.episode .info h3 {
  margin: 0;
  color: var(--text);
}
.episode .info .desc {
  color: var(--text-muted);
}
.episode .info .date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Audio progress bar */
.episode .player {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem 1.25rem;
}
.episode .player .time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 3.2rem;
}
.episode .player .time.total {
  text-align: right;
}
.episode .seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
}
.episode .seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
  box-shadow: var(--secondary-shadow);
}
.episode .seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
}

/* ---------- Footer ---------- */
footer {
  padding: 4rem 2rem;
  background: var(--navy);
  color: var(--on-dark);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.footer_logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 0.5rem;
}
footer h2 {
  text-transform: uppercase;
  font-weight: 1000;
}
footer span {
  color: var(--on-dark-muted);
}

.socials {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}
.socials a {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.socials a:hover {
  background: var(--teal);
  transform: translateY(-2px);
}
.socials a img {
  width: 1.4rem;
  height: 1.4rem;
  filter: invert(1);
}
.copyright {
  color: var(--on-dark-muted);
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .splash .content {
    flex-direction: column;
    text-align: center;
    padding: 6rem 1.5rem 4rem;
    gap: 2rem;
  }
  .splash .intro {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #podcast_description {
    max-width: 100%;
  }
  .members {
    width: 100%;
  }
  .member {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }
  .episodes {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
