/* ============================================================
   Baby Fred — Singles page
   Clean + authoritative (2026-02-20)
   ============================================================ */

/* ============================================================
   Baby Fred Update — FULL WIDTH Singles page
   ============================================================ */

.page-slug-singles .wp-site-blocks,
.page-slug-singles main,
.page-slug-singles .wp-block-group.alignwide,
.page-slug-singles .entry-content {
  max-width: none !important;
  width: 100% !important;
}

.page-slug-singles .entry-content {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ============================================================
   Singles Grid (authoritative)
   ============================================================ */

.bf-singles-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  max-width: 1600px;
  margin: 20px auto;
  padding: 10px;
  width: 100%;
}

/* ============================================================
   Single Card (authoritative)
   ============================================================ */

.bf-single-card {
  /* layout + sizing */
  flex: 0 0 210px;              /* 7-across on wide Chrome, 6 on Firefox is fine */
  max-width: 220px;             /* allows a little headroom if you change flex later */
  padding: 12px;
  border-radius: 10px;
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 12px;

  /* visuals */
  background: linear-gradient(180deg, #7fb1b8, #5f8f97);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bf-single-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Cover image
   ============================================================ */

.bf-single-cover {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ============================================================
   Title (canonical)
   ============================================================ */

.bf-single-title {
  margin: 2px 0 0;
  min-height: 3.2em; /* adjust if needed */
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============================================================
   Tags / genres
   ============================================================ */

.single-tags {
  margin-top: 4px;
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0.85;
}

/* ============================================================
   Audio
   ============================================================ */

.bf-single-audio {
  width: 100%;
  margin-top: 2px;
  background: #e6f2f4;
  border-radius: 6px;
}

/* ============================================================
   Image hover overlay (authoritative)
   ============================================================ */

.bf-single-image-wrap {
  position: relative;
  cursor: pointer;
}

.bf-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  padding: 12px;
}

.bf-single-image-wrap:hover .bf-hover-overlay {
  opacity: 1;
}

/* ============================================================
   Baby Fred Update — Liner notes overlay (authoritative)
   ============================================================ */

.bf-single-card {
  position: relative; /* anchor for overlay */
}

.bf-liner-notes {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;

  background: rgba(255,255,255,0.97);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);

  font-size: 0.9rem;
  line-height: 1.4;

  /* hidden by default */
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;

  z-index: 10;
}

/* Visible state */
.bf-single-card.bf-notes-open .bf-liner-notes {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --------------------------------------------------
   Baby Fred Update — Global transport styling (Singles)
   Matches Ghost Town / College Try appearance
-------------------------------------------------- */

body.page-singles #bf-global-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  width: min(900px, 92vw);
  padding: 14px 18px;

  background: #eef2f5;
  border: 1px solid #c9d3df;
  border-radius: 10px;

  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  gap: 12px;
  align-items: center;

  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 999;
}

body.page-singles #bf-now-playing {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  color: #2a3a46;
}

/* Baby Fred Update – Play All placement (Singles) */
body.page-singles .bf-playall-wrap {
  max-width: 1600px;
  margin: 10px auto 0;
  padding: 0 10px;
}

/* --------------------------------------------------
   Baby Fred Update — Play All button styling (Singles)
   Match Ghost Town appearance
-------------------------------------------------- */

body.page-singles #bf-playall {
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;

  background: #eef2f5;
  border: 1px solid #c9d3df;
  border-radius: 8px;

  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

body.page-singles #bf-playall:hover {
  background: #e4ebf0;
}