/* Intro: centered heading + short lead copy */
.reels-intro {
  text-align: center;
  margin: 2rem auto;
}
.reels-intro h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.reels-intro .lead {
  font-size: 1.1rem;
  color: #555;
}

/* Responsive grid of cards (auto-fits columns) */
.audio-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

/* Card container: white tile with subtle elevation */
.audio-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden; /* clip image corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover affordance: slight lift + stronger shadow */
.audio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Thumbnail area: fixed 16:9 media well */
.card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;  /* 16:9 aspect ratio */
  overflow: hidden;
}
.card-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;    /* fill and crop nicely */
}

/* Title + native audio control */
.audio-card h3 {
  font-size: 1.2rem;
  margin: 1rem;
  color: var(--color-accent);
  flex-grow: 0;
}
.audio-card audio {
  margin: 0 1rem 1rem;
  width: calc(100% - 2rem); /* respect side padding */
}

/* Small screens: tighten gaps */
@media (max-width: 480px) {
  .audio-grid .grid {
    gap: 1.5rem;
  }
}