/* ===== base reset ===== */
/* removing default margins and paddings, using border-box everywhere */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* shared variables for accent color and layout widths */
:root{
  --accent: #FED002;     /* yellow accent color */
  --inner-w: 80%;        /* shared inner width for buttons, player, selector */
  --max-w: 640px;        /* hard max width for large screens */
}

/* ===== page ===== */
/* full page background image, black fallback, white text, vertical flex */
body.page-body{
  background: black url('bg.png') center/cover fixed no-repeat;
  color: white;
  font-family: sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== header ===== */
/* centered logo + tagline + divider */
.header{ width: 100%; padding: 16px; text-align: center; }
.logo{ max-height: 128px; height: auto; width: 100%; object-fit: contain; }
.tagline{ margin-top: 16px; font-size: 16px; }
.divider{
  width: 30%; height: 2px; background-color: var(--accent);
  border-radius: 12px; margin: 24px auto 0;
}

/* ===== main layout ===== */
/* mobile: stacked columns, desktop+: split into two */
.main-content{ display: flex; flex-direction: column; }
@media (min-width: 768px){
  .main-content{ flex-direction: row; flex-grow: 1; height: 100%; align-items: stretch; }
  .links-section, .out-now-section{
    flex: 1; display: flex; flex-direction: column; justify-content: center;
  }
  .links{ flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
}

/* ===== links section ===== */
/* stack of rounded nav buttons */
.links-section{ width: 100%; padding: 16px; }
.links{
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  width: var(--inner-w); max-width: var(--max-w); margin: 0 auto;
}
.btn{
  width: 100%; height: 48px; background: #fff; color:#000; font-weight: bold;
  text-transform: uppercase; text-align: center; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}
.btn:hover, .btn:active{ background: var(--accent); color:#000; transform: translateY(-2px); }

/* ===== player section ===== */
/* embed area and horizontal album scroller */
.out-now-section{
  width: 100%; padding: 16px; display: flex; flex-direction: column; align-items: center; text-align: center;
}

/* embed sizing matches link buttons */
.spotify-embed{
  width: var(--inner-w); max-width: var(--max-w);
  border-radius: 12px; border: 0;
}

/* player container with locked height */
.player-wrap {
  position: relative;
  width: var(--inner-w);
  max-width: var(--max-w);
  height: 352px;
  margin: 0 auto;
}
.player-wrap .spotify-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}
.player-wrap .spotify-embed.active {
  opacity: 1;
  pointer-events: auto;
}

/* smoother crossfade using easing curve + gpu hints */
.player-wrap .spotify-embed {
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* optional blur effect for outgoing iframe
.player-wrap .spotify-embed:not(.active) {
  filter: blur(0.2px);
}
*/

/* horizontal album scroller with accent scrollbar */
.album-scroll{
  margin-top: 16px; display: flex; gap: 8px; overflow-x: auto;
  width: var(--inner-w); max-width: var(--max-w);
  padding-bottom: 12px;
  scrollbar-color: var(--accent) black;
  scrollbar-width: thin;
}
.album-scroll::-webkit-scrollbar{ height: 8px; }
.album-scroll::-webkit-scrollbar-track{ background: black; }
.album-scroll::-webkit-scrollbar-thumb{
  background: var(--accent); border-radius: 4px; border: 2px solid black;
}

/* album thumbnails with hover + active highlight */
.album-thumb{
  flex: 0 0 auto; width: 60px; height: 60px; object-fit: cover; border-radius: 4px;
  opacity: .5; cursor: pointer; transition: opacity .3s ease, border .3s ease;
}
.album-thumb:hover{ opacity: 1; }
.album-thumb.active{ border: 4px solid var(--accent); opacity: 1; }

/* ===== cta bar ===== */
/* accent strip with centered newsletter button */
.cta-bar{
  width: 100%; height: 80px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-top: 48px;
}
.cta-button{
  height: 48px; padding: 0 40px; background: #000; color:#fff; font-weight: bold;
  text-transform: uppercase; border-radius: 9999px; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform 150ms ease, color 150ms ease;
}
.cta-button:hover, .cta-button:active{ color: var(--accent); transform: translateY(-2px); }

/* ===== accessibility extras ===== */
/* visible focus outline for keyboard users */
a.btn:focus-visible,
.cta-button:focus-visible,
.album-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* more breathing room on wider layouts */
@media (min-width: 768px){
  .links-section { padding-top: 24px; padding-bottom: 24px; }
  .out-now-section { padding-top: 24px; padding-bottom: 24px; }
}

/* ===== footer ===== */
/* transparent background, accent text, centered content */
.site-footer{
  background: transparent;
  color: var(--accent);
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  width: 100%;
}
.footer-inner{
  width: 100%;
  max-width: none;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-inner small{
  font-size: 13px;
  letter-spacing: 0.3px;
  line-height: 1.6;
}
