/* ---------- Recordings grid ---------- */
.recordings{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.recordings-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rec-card{
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rec-card:hover{
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -14px rgba(226,52,44,0.45);
}

.rec-card.is-playing{
  border-color: var(--red);
  box-shadow: 0 0 0 1px rgba(226,52,44,0.35), 0 12px 30px -14px rgba(226,52,44,0.5);
}

.rec-title{
  font-family: "slight-chance", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
  text-align: center;
}

.rec-subtext{
  display: block;
  margin: 4px 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.rec-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 14px;
}

.rec-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.rec-btn:hover{
  border-color: var(--red);
  color: var(--red-glow);
}

.rec-play{
  width: 42px;
  height: 42px;
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--red);
  border-color: var(--red);
}

.rec-play:hover{
  background: var(--red-glow);
  border-color: var(--red-glow);
  color: var(--bg);
}

.rec-card.is-playing .rec-play{
  background: var(--red-glow);
  border-color: var(--red-glow);
}

.rec-scrub{
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  cursor: pointer;
  margin-bottom: 8px;
}

.rec-scrub-fill{
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--red);
}

.rec-scrub-handle{
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-glow);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(255,74,61,0.7);
}

.rec-time{
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- "Coming soon" placeholder cards (no real audio yet) ---------- */
.rec-card.is-coming-soon{
  position: relative;
  overflow: hidden;
  cursor: not-allowed;
  min-height: 172px;
}

/* Sits next to real cards in the same row — nudge its height up so the
   row reads as aligned even though it has no title/subtext of its own. */
.rec-card.is-coming-soon.rec-card-expand{
  min-height: 212px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .recordings-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .recordings-grid{ grid-template-columns: 1fr; }
}
