/* Baby Fred Update – College Try Styles (Clean Master)
   2026-02-19
   Page ID: 786

   Structure:
   1) Page width / breathing room
   2) Track grid (Players | Lyrics)
   3) A/B player layout
   4) Lyrics panel
   5) Play All controls (aligned to player column)
   6) Now Playing glow
   7) Responsive
*/


/* ==================================================
   1) Page layout
================================================== */

body.page-id-786 .wp-site-blocks {
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 80px; /* space for future sticky player */
}

/* Center content */
body.page-id-786 .wp-block-post-content {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Remove Gutenberg constraint wrapper */
body.page-id-786 .wp-block-group.is-layout-constrained {
  max-width: none;
}


/* ==================================================
   2) Per-track grid: Players | Lyrics
================================================== */

body.page-id-786 .bf-album-track {
  display: grid;
  grid-template-columns: minmax(760px, auto) 1fr;
  gap: 48px;
  align-items: start;
  padding: 8px 10px; /* gives glow breathing room */
}

/* Players column */
body.page-id-786 .bf-album-track .bf-track-columns {
  grid-column: 1;
}

/* Lyrics column */
body.page-id-786 .bf-album-track .lyrics-toggle,
body.page-id-786 .bf-album-track .lyrics-panel {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: break-word;
}


/* ==================================================
   3) A/B player layout (inside left column)
================================================== */

body.page-id-786 .bf-track-columns {
  display: flex;
  gap: 32px;
}

body.page-id-786 .bf-track-col {
  flex: 1 1 0;
  min-width: 0;
}

/* Audio sizing */
body.page-id-786 .wp-block-audio {
  width: 100%;
  margin-bottom: 1.25rem;
}

body.page-id-786 .wp-block-audio audio {
  width: 100%;
  min-width: 0;
  display: block;
}


/* ==================================================
   4) Lyrics
================================================== */

body.page-id-786 .lyrics-panel {
  display: none;
  margin-top: 18px;
  padding: 18px;
  background: #f5f7fa;
  border: 1px solid #c9d3df;
  border-radius: 6px;
}

body.page-id-786 .lyrics-panel.open {
  display: block;
}

body.page-id-786 .lyrics-toggle {
  display: inline-block;
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  background: #111;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
}

body.page-id-786 .lyrics-toggle:hover {
  background: #333;
}


/* ==================================================
   5) Play All (FINAL WORKING ALIGNMENT)
   Uses fixed player-column width inside page container
================================================== */

body.page-id-786 .bf-playall-wrapper {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

body.page-id-786 .bf-playall-bar {
  width: 760px;     /* matches left player column */
  display: flex;
  gap: 32px;
}

body.page-id-786 .bf-playall-col {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}

/* =========================================================
   Baby Fred Update – 2026-02-20
   College Try – Play All button styling + active state
   Scope: page-id-786 only
========================================================= */

body.page-id-786 .bf-playall-btn {
  padding: 8px 14px;
  border: 1px solid #bfc8d2;
  background: #eef2f5;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.1;

  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

body.page-id-786 .bf-playall-btn:hover {
  background: #e2e8ee;
}

body.page-id-786 .bf-playall-btn:active {
  transform: translateY(1px);
}

/* Active (Stop state) */
body.page-id-786 .bf-playall-btn.bf-active {
  background: #dbe7f2;
  border-color: #9fb4c8;
  box-shadow: 0 0 0 2px rgba(120, 160, 200, 0.15);
}

/* ==================================================
   6) Now Playing glow (enhanced – teal)
   Baby Fred Update 2026-02-19
================================================== */

body.page-id-786 .bf-album-track {
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* ==================================================
   Now Playing glow – per version panel
   Baby Fred Update 2026-02-19
================================================== */

body.page-id-786 .bf-track-col {
  position: relative;
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

/* Active panel */
body.page-id-786 .bf-track-col.is-playing {
  background: #e6f4f3;
  border-radius: 8px;

  box-shadow:
    0 0 0 2px rgba(0, 140, 140, 0.35),
    0 4px 14px rgba(0, 120, 120, 0.10);
}

/* Optional teal accent strip (looks nice with Singles styling) */
body.page-id-786 .bf-track-col.is-playing::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: #0aa3a3;
  border-radius: 2px;
}

/* Ensure positioning context */
body.page-id-786 .bf-album-track {
  position: relative;
}


/* ==================================================
   7) Responsive
================================================== */

@media (max-width: 1100px) {

  body.page-id-786 .bf-album-track {
    grid-template-columns: 1fr;
  }

  body.page-id-786 .bf-track-columns {
    flex-wrap: wrap;
  }

  body.page-id-786 .bf-track-col {
    flex: 1 1 420px;
  }

  /* Play All becomes full width on small screens */
  body.page-id-786 .bf-playall-bar {
    width: 100%;
  }
}

/* ==================================================
   8) Bottom transport – Clean (Ghost Town standard)
   Baby Fred Update – 2026-02-20
   Structure: flat HTML (no bf-player-left/center/right)
================================================== */

body.page-id-786 #bf-global-player {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(900px, 92vw);
  padding: 12px 16px;

  background: #eef2f5;
  border: 1px solid #c9d3df;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);

  /* Ghost Town layout */
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  gap: 12px;
  align-items: center;
}

/* Buttons */
body.page-id-786 #bf-global-player button {
  font-size: 16px;
  padding: 6px 10px;
  cursor: pointer;

  background: #e8edf2;
  border: 1px solid #c9d3df;
  border-radius: 6px;
}

body.page-id-786 #bf-global-player button:hover {
  background: #dde6ee;
}

/* Seek bar flexes */
body.page-id-786 #bf-seek {
  width: 100%;
}

/* Title (matches Ghost Town behavior) */
body.page-id-786 #bf-now-playing {
  max-width: 320px;
  font-size: 14px;
  font-weight: 600;
  color: #2a3a46;

  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Prevent content from hiding under player */
body.page-id-786 {
  padding-bottom: 120px;
}