/**
 * Album Detail B — MicDrop Album Page Clone (Pixel-Perfect)
 * White bg, two-column sticky cover, large title, clean tracklist
 */

@keyframes ceAlbumPlayPulse {
  from { transform: scale(1); opacity: 0.65; }
  to { transform: scale(1.12); opacity: 1; }
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.ce-album-b {
  position: relative;
  width: 100%;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Force white body on single album pages */
body.single-ce_album {
  background: #fff !important;
}

/* Hide Theme A header/footer on single album pages */
body.single-ce_album .ce-header,
body.single-ce_album .ce-footer,
body.single-ce_album > .wp-site-blocks > header,
body.single-ce_album > .wp-site-blocks > footer {
  display: none !important;
}
body.single-ce_album .wp-site-blocks {
  padding: 0 !important;
  margin: 0 !important;
}
body.single-ce_album .wp-site-blocks > * + * {
  margin-block-start: 0 !important;
}

/* wpautop fix — kill injected <p> and <br> everywhere */
/* wpautop'un eklediği boş p/br'leri sakla */
.ce-album-b__content > br,
.ce-album-b__info > p:empty,
.ce-album-b__cover-col > p:empty,
.ce-album-b__track-row > br,
.ce-album-b__track-info > br,
.ce-album-b__tracks > br,
.ce-album-b__meta > br {
  display: none !important;
  margin: 0 !important;
}

/* wpautop'un sardığı <p>'leri layout'tan sıyır ama içeriği görünür tut */
.ce-album-b > p,
.ce-album-b__content > p,
.ce-album-b__track-row > p,
.ce-album-b__track-item > p,
.ce-album-b__tracks > p,
.ce-album-b__meta > p {
  display: contents;
}

/* =============================================
   HEADER — Theme B header dark bar
   ============================================= */
.ce-album-b .ce-hb-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ce-album-b .ce-hb-header.is-sticky {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ce-album-b .ce-hb-hamburger span {
  background-color: #000;
}
.ce-album-b .ce-hb-socials a svg {
  fill: #000;
}

/* =============================================
   ALBUM CONTENT — Two-column layout
   ============================================= */
.ce-album-b__content {
  display: grid;
  grid-template-columns: 47% 1fr;
  min-height: 100vh;
  padding-top: 80px;
}

/* LEFT COLUMN — Cover + Spotify (sticky) */
.ce-album-b__cover-col {
  position: sticky;
  top: 80px;
  align-self: start;
  padding: 40px 40px 60px 80px;
}

.ce-album-b__cover {
  position: relative;
}
.ce-album-b__cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* Spotify embed under cover — no gap */
.ce-album-b__spotify-embed {
  background: #000;
  margin-top: 0;
}
.ce-album-b__spotify-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* Streaming platform links */
.ce-album-b__platforms {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.ce-album-b__platform {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #1a1a1a;
  text-decoration: none;
  transition: background 0.3s ease;
}
.ce-album-b__platform:hover {
  background: var(--cep-accent, #d4a574);
}
.ce-album-b__platform svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}
.ce-album-b__platform span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
}

/* RIGHT COLUMN — Info + Tracklist */
.ce-album-b__info {
  padding: 40px 80px 80px 40px;
  min-width: 0;
}

/* Album Title — MicDrop style: huge, bold, uppercase */
.ce-album-b__title {
  font-family: 'Poppins', sans-serif;
  font-size: var(--ce-fs-article-title);
  font-weight: 800;
  text-transform: uppercase;
  color: #000;
  line-height: 1.04;
  letter-spacing: -1px;
  margin: 0 0 8px;
}

.ce-album-b__artist {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
  margin: 0 0 40px;
}

/* =============================================
   TRACKLIST — MicDrop style
   ============================================= */
.ce-album-b__tracklist-label {
  font-family: 'Poppins', sans-serif;
  font-size: 23px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: #000;
  margin: 0;
  padding-bottom: 18px;
  border-bottom: 3px solid #000;
}

.ce-album-b__tracks {
  margin-top: 0;
  min-width: 0;
}

/* Single track item */
.ce-album-b__track-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  min-width: 0;
  max-width: 100%;
}

.ce-album-b__track-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 22px 0;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 0;
  max-width: 100%;
}
.ce-album-b__track-row:hover {
  background: rgba(0, 0, 0, 0.015);
  margin: 0 -16px;
  padding: 22px 16px;
}

/* Track number */
.ce-album-b__track-num {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  min-width: 32px;
  flex-shrink: 0;
}

/* Track name — uzun isimler alt satıra sarılır */
.ce-album-b__track-name {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #000;
  display: block;
  max-width: 100%;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Track credit (söz/müzik) */
.ce-album-b__track-credit {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.35);
  margin-top: 3px;
}

/* Track info column */
.ce-album-b__track-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Track duration */
.ce-album-b__track-dur {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  margin-left: 24px;
}

/* Künye butonu — track satırında play btn'den önce */
.ce-album-b__credits-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.ce-album-b__credits-btn:hover {
  background: var(--cep-accent, #d4a574);
  border-color: var(--cep-accent, #d4a574);
  color: #fff;
  transform: translateY(-1px);
}
.ce-album-b__credits-btn svg {
  flex-shrink: 0;
}
/* Uzun parça isimlerinde künye butonu sığsın diye label'ı daha erken gizle (tablet + ufak desktop) */
@media (max-width: 1024px) {
  .ce-album-b__credits-btn {
    padding: 6px 10px;
    margin-left: 8px;
  }
  .ce-album-b__credits-btn-label {
    display: none;
  }
}

/* Spotify play icon — replaces download icon */
.ce-album-b__track-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.ce-album-b__track-play-btn:hover {
  color: #1DB954;
  background: rgba(29, 185, 84, 0.08);
}
.ce-album-b__track-play-btn:disabled {
  color: rgba(0, 0, 0, 0.16);
  background: transparent;
  cursor: not-allowed;
}
.ce-album-b__track-play-btn:disabled:hover {
  color: rgba(0, 0, 0, 0.16);
  background: transparent;
}
.ce-album-b__track-play-btn.is-loading .ce-album-b__icon-play {
  animation: ceAlbumPlayPulse 0.7s ease-in-out infinite alternate;
}
.ce-album-b__track-item.no-embed .ce-album-b__track-row {
  cursor: default;
}
.ce-album-b__track-play-btn .ce-album-b__icon-play {
  margin-left: 2px;
}
.ce-album-b__track-play-btn .ce-album-b__icon-pause {
  display: none;
}

/* Playing state */
.ce-album-b__track-item.is-playing .ce-album-b__track-play-btn {
  color: #1DB954;
  background: rgba(29, 185, 84, 0.1);
}
.ce-album-b__track-item.is-playing .ce-album-b__track-name {
  color: #1DB954;
}
.ce-album-b__track-item.is-playing .ce-album-b__icon-play {
  display: none;
}
.ce-album-b__track-item.is-playing .ce-album-b__icon-pause {
  display: block;
}

/* Spotify embed panel — hidden by default */
.ce-album-b__track-embed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              padding 0.5s ease;
  padding: 0;
}
.ce-album-b__track-item.is-playing .ce-album-b__track-embed {
  max-height: 400px;
  padding: 8px 0 16px;
}
.ce-album-b__track-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

/* =============================================
   METADATA — Below tracklist
   ============================================= */
.ce-album-b__meta {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
}

.ce-album-b__meta-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 8px;
}

.ce-album-b__meta-val {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
}

/* =============================================
   ALBUM NAV — Prev/Next
   ============================================= */
.ce-album-b__nav {
  padding: 48px 80px;
  background: #f7f7f7;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ce-album-b__nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ce-album-b__nav-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.3s ease;
}
.ce-album-b__nav-link:hover {
  opacity: 0.6;
}

.ce-album-b__nav-dir {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.35);
}

.ce-album-b__nav-name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}

.ce-album-b__nav-next {
  text-align: right;
}

.ce-album-b__nav-all {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #000;
  padding: 14px 32px;
  transition: background 0.3s ease;
}
.ce-album-b__nav-all:hover {
  background: var(--cep-accent, #d4a574);
}

/* Footer styles in theme-b-shared.css */

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .ce-album-b__content {
    grid-template-columns: 42% 1fr;
  }
  .ce-album-b__cover-col {
    padding: 40px 24px 40px 40px;
  }
  .ce-album-b__info {
    padding: 40px 40px 60px 24px;
  }
  .ce-album-b__title {
    font-size: clamp(30px, 4vw, 48px);
  }
}

@media (max-width: 768px) {
  .ce-album-b__content {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ce-album-b__cover-col {
    position: relative;
    top: auto;
    padding: 100px 24px 32px;
    max-width: 400px;
    margin: 0 auto;
  }
  .ce-album-b__info {
    padding: 0 24px 48px;
  }
  .ce-album-b__title {
    font-size: 40px;
    text-align: center;
  }
  .ce-album-b__artist {
    text-align: center;
  }
  .ce-album-b__tracklist-label {
    font-size: 18px;
  }
  .ce-album-b__meta {
    grid-template-columns: 1fr 1fr;
  }
  .ce-album-b__nav {
    padding: 32px 24px;
  }
  .ce-album-b__nav-inner {
    flex-direction: column;
    gap: 20px;
  }
  .ce-album-b__nav-link,
  .ce-album-b__nav-next {
    text-align: center;
  }
}
