/* =========================================================
   Baby Fred Update - 2026-05-07
   Double A-Side page CSS - clean consolidated version
   Page ID: 1436

   Notes:
   - Removes duplicate late overrides.
   - Centers lyrics buttons and bottom transport together.
   - Makes the lyrics button wrapper/panel fully transparent when closed.
   - Keeps the actual lyric panels styled when opened.
========================================================= */


/* =========================================================
   Page width reset
   Let this page escape the normal WordPress content column.
========================================================= */

body.page-id-1436,
body.page-id-1436 .bf-double-a-page,
body.page-id-1436 .bf-double-a-page * {
  box-sizing: border-box;
}

body.page-id-1436 {
  overflow-x: hidden;
}

body.page-id-1436 .entry-content,
body.page-id-1436 .wp-block-post-content {
  max-width: none !important;
  width: 100% !important;
}

body.page-id-1436 .entry-content > *,
body.page-id-1436 .wp-block-post-content > *,
body.page-id-1436 .wp-block-html {
  max-width: none !important;
}

body.page-id-1436 img,
body.page-id-1436 video,
body.page-id-1436 audio {
  max-width: 100%;
}


/* =========================================================
   Main page wrapper
========================================================= */

body.page-id-1436 .bf-double-a-page {
  width: 100vw !important;
  max-width: 100% !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 42px 0 90px;
  overflow-x: hidden;
}


/* =========================================================
   Intro banner and description
========================================================= */

body.page-id-1436 .bf-double-a-intro {
  width: min(1100px, 92vw);
  margin: 0 auto 44px;
  text-align: left;
}

body.page-id-1436 .bf-double-a-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
}

body.page-id-1436 .bf-double-a-description,
body.page-id-1436 .bf-double-a-intro p {
  margin: 14px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.55;
}


/* =========================================================
   Stage layout
========================================================= */

body.page-id-1436 .bf-double-a-stage-layout {
  display: block;
  width: min(1240px, 96vw);
  margin: 0 auto 2rem;
}

body.page-id-1436 .bf-record-stage {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

body.page-id-1436 .bf-turntable-wrap {
  position: relative;
  width: 100%;
}

body.page-id-1436 .bf-turntable-img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   Record overlay placement
========================================================= */

body.page-id-1436 .bf-record-disc-wrap {
  position: absolute;
  width: 34%;
  left: 59.2%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

body.page-id-1436 .bf-record-disc {
  display: block;
  width: 100%;
  height: auto;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
}


/* =========================================================
   Record spin animation
========================================================= */

body.page-id-1436 .bf-record-disc.is-spinning {
  animation: bf-double-a-spin-45rpm 1.333s linear infinite;
}

@keyframes bf-double-a-spin-45rpm {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   Record flip animation
========================================================= */

body.page-id-1436 .bf-record-disc.bf-is-flipping {
  animation: bf-double-a-record-flip-theatrical 2.75s cubic-bezier(0.45, 0, 0.2, 1);
}

@keyframes bf-double-a-record-flip-theatrical {
  0% {
    transform: rotate(0deg) scaleX(1) scaleY(1);
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
  }

  20% {
    transform: rotate(8deg) scaleX(1.02) scaleY(1.02);
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45));
  }

  45% {
    transform: rotate(88deg) scaleX(0.08) scaleY(1.04);
    filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.55));
  }

  55% {
    transform: rotate(92deg) scaleX(0.08) scaleY(1.04);
    filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.55));
  }

  80% {
    transform: rotate(352deg) scaleX(1.02) scaleY(1.02);
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45));
  }

  100% {
    transform: rotate(360deg) scaleX(1) scaleY(1);
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
  }
}


/* =========================================================
   Power glow overlay
========================================================= */

body.page-id-1436 .bf-power-glow {
  position: absolute;
  left: 49.4%;
  top: 75.4%;
  width: 2%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 80, 55, 0.95) 0%,
    rgba(230, 20, 20, 0.85) 35%,
    rgba(180, 0, 0, 0.45) 58%,
    rgba(180, 0, 0, 0) 74%
  );
  box-shadow:
    0 0 8px rgba(255, 45, 30, 0.75),
    0 0 18px rgba(255, 45, 30, 0.38);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 180ms ease;
}

body.page-id-1436 .bf-double-a-page.is-powered-on .bf-power-glow {
  opacity: 1;
}


/* =========================================================
   Knob hotspot
========================================================= */

body.page-id-1436 .bf-knob-hotspot {
  position: absolute;
  left: 38%;
  top: 67.2%;
  width: 6.5%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  z-index: 5;
}

body.page-id-1436 .bf-knob-hotspot:hover {
  background: rgba(255, 255, 255, 0.12);
}

body.page-id-1436 .bf-knob-hotspot:focus,
body.page-id-1436 .bf-knob-hotspot:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}


/* =========================================================
   Hidden audio sources
========================================================= */

body.page-id-1436 .bf-double-a-track .wp-block-audio {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


/* =========================================================
   Bottom transport
========================================================= */

body.page-id-1436 #bf-global-player {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 12px;

  width: min(100%, 520px);
  max-width: calc(100vw - 48px);
  margin: 28px auto 0 !important;
  padding: 12px 16px;

  position: relative;
  left: auto !important;

  background: #eef2f5;
  border: 1px solid #c9d3df;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) !important;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease,
    transform 0.35s ease;
}

body.page-id-1436.bf-player-awake #bf-global-player {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) !important;
}

body.page-id-1436 #bf-global-player button {
  appearance: none;
  border: 1px solid #b9c6d2;
  background: #ffffff;
  color: #1f2a33;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

body.page-id-1436 #bf-global-player button:hover {
  background: #f8fbfd;
  border-color: #8fa7bc;
}

body.page-id-1436 #bf-global-player button:active {
  transform: translateY(1px);
}

body.page-id-1436 #bf-seek {
  width: 100%;
  margin: 0;
  cursor: pointer;
}

body.page-id-1436 #bf-now-playing {
  min-width: 160px;
  font-size: 14px;
  color: #2b3a44;
  white-space: nowrap;
}


/* =========================================================
   Lyrics area
   Important:
   The outer lyrics area is transparent so no ghost-box appears
   around the buttons. The actual lyric panels still get styling.
========================================================= */

body.page-id-1436 .bf-double-a-lyrics-area {
  width: min(560px, 92vw);
  max-width: 92vw;
  margin: 1.5rem auto 2rem;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.page-id-1436 .bf-double-a-lyrics-controls {
  width: min(100%, 520px);
  max-width: calc(100vw - 48px);
  margin: 0.85rem auto 0;
  padding: 0;
  box-sizing: border-box;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;

  clear: both;
  position: relative;
  left: auto !important;
  right: auto !important;
  transform: none !important;

  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

body.page-id-1436 .lyrics-toggle,
body.page-id-1436 .bf-double-a-lyrics-controls .lyrics-toggle {
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  text-align: center;
  flex: 0 1 auto;

  border: 1px solid rgba(24, 88, 104, 0.35);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;

  font: inherit;
  font-weight: 700;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(224, 245, 248, 0.95)
  );
  color: #14343d;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

body.page-id-1436 .lyrics-toggle:hover,
body.page-id-1436 .lyrics-toggle.is-active {
  background: linear-gradient(135deg, #14343d, #247184);
  color: #ffffff;
}

body.page-id-1436 .lyrics-toggle:focus,
body.page-id-1436 .lyrics-toggle:focus-visible {
  outline: none !important;
}


/* =========================================================
   Lyrics panels
========================================================= */

body.page-id-1436 .bf-double-a-lyrics-panel {
  display: none;
  max-height: 520px;
  overflow-y: auto;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #152b31;
  line-height: 1.55;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

body.page-id-1436 .bf-double-a-lyrics-panel.is-open {
  display: block;
}

body.page-id-1436 .bf-double-a-lyrics-panel h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

body.page-id-1436 .bf-double-a-lyrics-panel p {
  margin: 0 0 0.85rem;
}

body.page-id-1436 .bf-double-a-lyrics-panel p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   Optional parent wrappers
   Keeps any audio/control wrapper from forcing a row layout.
========================================================= */

body.page-id-1436 .bf-double-a-player-panel,
body.page-id-1436 .bf-double-a-controls,
body.page-id-1436 .bf-double-a-audio-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  box-sizing: border-box;
}


/* =========================================================
   Firefox-only adjustment
========================================================= */

@-moz-document url-prefix() {
  body.page-id-1436 .bf-double-a-stage-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: min(1240px, 96vw) !important;
    margin: 0 auto 2rem !important;
  }

  body.page-id-1436 .bf-record-stage {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
  }

  body.page-id-1436 .bf-double-a-lyrics-area {
    width: min(560px, 92vw) !important;
    max-width: 92vw !important;
    margin: 1.5rem auto 2rem !important;
    position: static !important;
    transform: none !important;
  }

  body.page-id-1436 .bf-double-a-lyrics-controls {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    transform: none !important;
  }

  body.page-id-1436 #bf-global-player {
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    transform: translateY(18px) !important;
  }

  body.page-id-1436.bf-player-awake #bf-global-player {
    transform: translateY(0) !important;
  }
}


/* =========================================================
   Responsive layout
========================================================= */

@media (max-width: 900px) {
  body.page-id-1436 .bf-double-a-lyrics-controls {
    transform: none !important;
    left: auto !important;
    right: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: min(100%, 340px) !important;
    max-width: calc(100vw - 48px) !important;
  }

  body.page-id-1436 .bf-double-a-lyrics-controls .lyrics-toggle {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 700px) {
  body.page-id-1436 .bf-double-a-page {
    padding-top: 28px;
  }

  body.page-id-1436 .bf-double-a-intro {
    width: 92vw;
    margin-bottom: 32px;
  }

  body.page-id-1436 #bf-global-player {
    grid-template-columns: auto auto auto;
    grid-template-areas:
      "prev play next"
      "seek seek seek"
      "now now now";
  }

  body.page-id-1436 #bf-prev {
    grid-area: prev;
  }

  body.page-id-1436 #bf-playpause {
    grid-area: play;
  }

  body.page-id-1436 #bf-next {
    grid-area: next;
  }

  body.page-id-1436 #bf-seek {
    grid-area: seek;
  }

  body.page-id-1436 #bf-now-playing {
    grid-area: now;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  body.page-id-1436 .bf-double-a-lyrics-controls {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
  }

  body.page-id-1436 .bf-double-a-lyrics-controls .lyrics-toggle {
    width: min(100%, 320px);
  }
}