/* ============================================================
   Pretvfx-Tools — Ngaji (114 Surah + Audio Murottal)
   ============================================================ */
.pfx-ngaji-searchrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 19, 32, 0.55);
  border: 1.5px solid rgba(99, 102, 241, 0.28);
  margin-bottom: 12px;
  color: rgba(199, 210, 254, .5);
}
.pfx-ngaji-search {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: #e8ecff;
  font-size: .9rem;
}
.pfx-ngaji-search::placeholder { color: rgba(199, 210, 254, .4); }

.pfx-ngaji-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
}
.pfx-ngaji-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 19, 32, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.12);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.pfx-ngaji-item:active { background: rgba(99, 102, 241, .12); }
.pfx-ngaji-item.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.5);
}
.pfx-ngaji-item-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(99, 102, 241, .15);
  color: #c7d2fe;
  font-size: .76rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pfx-ngaji-item-info { flex: 1; min-width: 0; }
.pfx-ngaji-item-name {
  font-size: .88rem;
  font-weight: 700;
  color: #e8ecff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pfx-ngaji-item-meta { font-size: .74rem; color: rgba(199, 210, 254, .5); margin-top: 1px; }
.pfx-ngaji-item-arab {
  font-size: 1.05rem;
  color: #a855f7;
  flex-shrink: 0;
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Amiri', serif;
}
.pfx-ngaji-item-ico { color: rgba(199, 210, 254, .35); font-size: .8rem; flex-shrink: 0; width: 14px; text-align: center; }
.pfx-ngaji-item.active .pfx-ngaji-item-ico { color: #a855f7; }

.pfx-ngaji-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
  color: rgba(199, 210, 254, .4);
  font-size: .82rem;
}
.pfx-ngaji-empty i { font-size: 1.1rem; opacity: .6; }

/* Player nempel di bawah, sticky di dalam area scroll Tools */
.pfx-ngaji-player {
  position: sticky;
  bottom: 0;                                /* ← fix: was -1px */
  margin: 14px -2px 0;                      /* ← fix: was -24px bottom */
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0;
  background: rgba(10, 14, 24, 0.97);
  border-top: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .5);
  backdrop-filter: blur(10px);
  z-index: 5;
}

/* Fix tambahan: transform sisa dari animation parent (toolsCardIn, fill-mode both)
   bisa ganggu perhitungan sticky. Matikan fill-mode-nya khusus saat Ngaji aktif. */
.tools-detail-view:has(#pfxNgajiPlayer) {
  animation-fill-mode: none;
}

.pfx-ngaji-player-top { display: flex; align-items: center; gap: 12px; }
.pfx-ngaji-player-info { flex: 1; min-width: 0; }
.pfx-ngaji-player-name {
  font-size: .9rem;
  font-weight: 800;
  color: #e8ecff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pfx-ngaji-player-arab { font-size: .88rem; color: #a855f7; margin-top: 1px; }

.pfx-ngaji-round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .4);
}
.pfx-ngaji-round-btn:active { transform: scale(.94); }

.pfx-ngaji-seekrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: .72rem;
  color: rgba(199, 210, 254, .6);
}
.pfx-ngaji-seek-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  overflow: hidden;
}
.pfx-ngaji-seek-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
}

.pfx-ngaji-navrow { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
.pfx-ngaji-nav-btn {
  flex: 1;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(99, 102, 241, .28);
  color: #c7d2fe;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}
.pfx-ngaji-nav-btn[disabled] { opacity: .35; cursor: not-allowed; }
.pfx-ngaji-nav-btn:not([disabled]):active { transform: scale(.97); }