/* Eşlik detay — giriş yapılmış hal (eslik-detay.css üzerine ek) */

/* Parça satırı: kilit yerine çal/duraklat düğmesi */
.track-play {
  flex: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--gray);
  transition: background .2s;
}
.track-play:hover { background: var(--blue-soft); }
.track-row.is-current .track-play { background: var(--blue); }
.track-row.is-current .track-play .ic-play { border-left-color: #fff; }

/* Çal / duraklat ikonları (CSS ile çizilir) */
.ic-play, .ic-pause { position: absolute; left: 50%; top: 50%; display: block; }
.ic-play {
  width: 0;
  height: 0;
  margin: -6px 0 0 -4px;
  border-left: 11px solid var(--blue);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.ic-pause {
  display: none;
  width: 12px;
  height: 14px;
  margin: -7px 0 0 -6px;
}
.ic-pause::before,
.ic-pause::after {
  content: "";
  position: absolute;
  top: 0;
  width: 4px;
  height: 14px;
  background: #fff;
  border-radius: 1px;
}
.ic-pause::before { left: 0; }
.ic-pause::after { left: 8px; }
.is-playing .ic-play { display: none; }
.is-playing .ic-pause { display: block; }

.track-time { text-align: right; }
.track-note { padding-top: 14px; font-size: 12px; line-height: 18px; color: #6B7280; }

/* Alt çalar: sayfanın geri kalanı ne kadar uzasa da, ekranın altına sabitlenip her zaman görünür
   kalır. İçeriğin genişlik/ortalama hesabı için .wrap sınıfı tekrar kullanılıyor (aynı responsive
   gutter'lar) — .player-dock sadece dikeyde viewport'a sabitleyen, görünmez bir şerit. */
.player-dock { position: fixed; left: 0; right: 0; bottom: 16px; z-index: 50; transition: bottom .2s ease; }
/* Sayfanın en altına inilince footer'ın üzerine binmesin diye biraz daha yukarı kalkar (bkz. tracklist.js). */
.player-dock.is-page-bottom { bottom: 55px; }
.player {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px 12px 12px;
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(23, 70, 158, 0.12);
}
.player-toggle {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
}
.player-toggle .ic-play { border-left-color: #fff; }
.player-thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #E8EEF9;
}
.player-thumb img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { flex: 0 0 230px; min-width: 0; display: flex; flex-direction: column; }
.player-meta strong { font-weight: 500; font-size: 14px; line-height: 21px; color: var(--ink); }
.player-meta small { font-size: 12px; line-height: 18px; color: #6B7280; }
.player-progress { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 16px; }
.player-progress span { flex: none; font-size: 12px; line-height: 18px; color: #6B7280; }
.player-bar {
  position: relative;
  flex: 1 1 0;
  height: 16px;
  cursor: pointer;
}
.player-bar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 4px;
  border-radius: 999px;
  background: var(--blue-soft);
}
.player-fill {
  position: absolute;
  left: 0;
  top: 6px;
  height: 4px;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
}
.player-actions { flex: none; display: flex; align-items: center; gap: 16px; }
.player-actions button, .player-actions a {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  color: var(--menu);
  white-space: nowrap;
}
.player-actions .is-blue { color: var(--blue); }

@media (max-width: 991.98px) {
  .player { flex-wrap: wrap; border-radius: 24px; gap: 12px 14px; }
  .player-meta { flex: 1 1 0; }
  .player-progress { order: 5; flex: 1 1 100%; }
  .player-actions { order: 4; gap: 12px; }
}
@media (max-width: 575.98px) {
  .player { padding: 12px; }
  .player-thumb { display: none; }
  .player-actions { flex: 1 1 100%; order: 6; justify-content: space-between; }
}
