/* music.css — phần BỔ TRỢ cho template nkl.

   Giao diện chính là style.css GỐC của nhackhongloi.vn (copy nguyên từ glx2020,
   nằm ở /images/nkl/css/style.css). File này nạp SAU, chỉ thêm những thứ bản gốc
   không có vì hồi đó do AngularJS + jPlayer đảm nhiệm:
     - danh sách bài hát render sẵn từ server (.nkl-tracks / .track-row)
     - player cố định đáy màn hình thay cho jPlayer
     - khối đầu trang album (ảnh bìa + tên)
   Cố ý KHÔNG đụng tới class nào của style.css để giữ nguyên giao diện cũ. */

/* ── Danh sách bài hát ── */
.nkl-tracks {
  clear: both;
  margin: 6px 0 14px;
  border: 1px solid #e3e3e3;
  background: #fff;
}
.track-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  font-size: 13px;
}
.track-row:last-child { border-bottom: none; }
.track-row:hover { background: #fdf6e3; }
.track-row.playing { background: #fdf1d6; }
.track-row.playing .track-name { font-weight: 700; color: #c1272d; }
.track-idx { width: 26px; text-align: right; color: #999; flex: none; }
.track-row.playing .track-idx { color: #c1272d; font-weight: 700; }
.track-main { flex: 1; min-width: 0; }
.track-name {
  display: block; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-sub { display: block; font-size: 11px; color: #999; }
.track-size { flex: none; font-size: 11px; color: #aaa; }

/* ── Đầu trang album: ảnh bìa + tên ── */
.nkl-albumhead {
  clear: both; display: flex; gap: 12px; align-items: flex-start;
  margin: 10px 0 6px; padding: 10px; background: #fff; border: 1px solid #e3e3e3;
}
.nkl-albumcover { width: 120px; height: 120px; object-fit: cover; flex: none; }

/* ── Player cố định đáy màn hình (thay jPlayer của bản gốc) ── */
.nk-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: #2b2b2b; border-top: 2px solid #c1272d;
  padding: 6px 10px;
  transform: translateY(110%); transition: transform .2s ease;
}
.nk-player.show { transform: translateY(0); }
.nk-player-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 1000px; margin: 0 auto;
}
.nk-player-title { flex: 1; min-width: 0; color: #eee; }
.nk-player-title .t1 {
  font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nk-player-title .t2 { font-size: 11px; color: #aaa; }
.nk-player audio { flex: 2; min-width: 200px; height: 34px; }
.nk-player .btn-nav {
  color: #eee; background: none; border: none; font-size: 16px; padding: 2px 6px; cursor: pointer;
}
.nk-player .btn-nav:hover { color: #f0a500; }
body.player-open { padding-bottom: 66px; }

@media (max-width: 700px) {
  .nk-player-inner { flex-wrap: wrap; gap: 4px; }
  .nk-player audio { flex: 1 0 100%; order: 3; }
  body.player-open { padding-bottom: 106px; }
  .nkl-albumhead { flex-direction: column; }
}
