/**
 * Featured Tracks — yatay kart layout (sol kapak + sağ player).
 * 2 sütun grid (md+), 1 sütun (mobile).
 * Click → kartın altında Spotify embed accordion açılır + autoplay.
 */

.ce-ft {
  width: 100%;
}

.ce-ft__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============ KART (yatay) ============ */
.ce-ft__card {
  position: relative;
  display: block;
  min-height: 140px;
  background: var(--cep-card-bg, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--cep-card-border, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, min-height 0.4s ease;
}
.ce-ft__card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(200, 135, 110, 0.3);
  transform: translateY(-2px);
}
.ce-ft__card.is-playing {
  background: rgba(200, 135, 110, 0.08);
  border-color: rgba(200, 135, 110, 0.4);
}

/* Cover sol, info ortada, play sağda */
.ce-ft__card-row {
  display: flex;
  align-items: center;
  gap: 0;
}
.ce-ft__card-cover {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  position: relative;
  overflow: hidden;
  background: #141414;
}
.ce-ft__card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ce-ft__card-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

/* Number badge — cover sol-üst */
.ce-ft__card-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  line-height: 1;
  pointer-events: none;
}

/* Info area — orta, tipografi */
.ce-ft__card-info {
  flex: 1;
  min-width: 0;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.ce-ft__card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ce-ft__card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ce-ft__card-title a:hover {
  color: var(--cep-accent, #d4a574);
}
.ce-ft__card-album {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ce-ft__card-dot { margin: 0 6px; opacity: 0.5; }

/* Play button — sağ kenarda copper */
.ce-ft__card-play-btn {
  flex: 0 0 64px;
  align-self: center;
  margin-right: 18px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--cep-accent, #d4a574);
  color: var(--cep-cta-text, #06231A);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}
.ce-ft__card-play-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.08);
}
.ce-ft__card-play-icon svg {
  width: 18px;
  height: 18px;
  margin-left: 1px;
  display: block;
}
/* Playing iken pause iconu görünsün */
.ce-ft__card.is-playing .ce-ft__card-play-icon-play { display: none; }
.ce-ft__card-play-icon-pause { display: none; }
.ce-ft__card.is-playing .ce-ft__card-play-icon-pause { display: block; }

/* ============ INLINE EMBED — kart içinde morph (fade + scale) ============ */
.ce-ft__card-row {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ce-ft__card-embed {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ce-ft__embed-mount {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ce-ft__embed-mount iframe {
  width: 100% !important;
  height: 80px !important;
  border: 0;
  display: block;
}
.ce-ft__card.is-playing {
  background: #000;
  border-color: rgba(200, 135, 110, 0.4);
}
.ce-ft__card.is-playing .ce-ft__card-row {
  opacity: 0;
  transform: scale(1.01);
  pointer-events: none;
}
.ce-ft__card.is-playing .ce-ft__card-embed {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Close (X) — sağ üst kapat butonu */
.ce-ft__card-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.ce-ft__card-close-btn:hover {
  background: rgba(200, 135, 110, 0.9);
  transform: scale(1.08);
}
.ce-ft__card-close-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Light section override */
.ce-hb-section--light .ce-ft__card {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.06);
}
.ce-hb-section--light .ce-ft__card:hover {
  background: rgba(0, 0, 0, 0.04);
}
.ce-hb-section--light .ce-ft__card-title { color: #111; }
.ce-hb-section--light .ce-ft__card-album { color: rgba(0, 0, 0, 0.5); }

/* ============ RESPONSIVE ============ */
@media (max-width: 800px) {
  .ce-ft__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 500px) {
  .ce-ft__card-cover {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
  }
  .ce-ft__card-info { padding: 14px; }
  .ce-ft__card-title { font-size: 15px; }
  .ce-ft__card-play-btn {
    width: 38px;
    height: 38px;
    margin-right: 12px;
  }
}
