.wd-body-azkar .wd-azkar-content {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 16px 24px 28px;
}

.wd-azkar-page-head {
  margin-bottom: 20px;
}

.wd-azkar-page-head--detail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wd-azkar-page-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: #1f2937;
}

.wd-azkar-page-lead {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.wd-azkar-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border: 1px solid #eceef2;
  border-radius: 9999px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.wd-azkar-detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wd-azkar-detail-image {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid #eceef2;
  flex-shrink: 0;
}

.wd-azkar-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.wd-azkar-category-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid #eceef2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wd-azkar-category-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.wd-azkar-category-card-media {
  aspect-ratio: 1.35 / 1;
  background: #f6f7f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wd-azkar-category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-azkar-category-card-fallback {
  font-size: 2rem;
  color: #9ca3af;
}

.wd-azkar-category-card-body {
  padding: 12px 14px 14px;
}

.wd-azkar-category-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.4;
}

.wd-azkar-category-card-count {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
}

.wd-azkar-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wd-azkar-item-card {
  border: 1px solid #eceef2;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.wd-azkar-item-text {
  font-size: 1rem;
  line-height: 1.9;
  color: #111827;
  white-space: pre-wrap;
}

.wd-azkar-item-meta {
  margin-top: 10px;
}

.wd-azkar-repeat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0 0.55rem;
  border-radius: 9999px;
  background: #f6f7f8;
  border: 1px solid #eceef2;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 700;
}

.wd-azkar-item-description,
.wd-azkar-item-reference {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #6b7280;
}

.wd-azkar-item-reference {
  color: #1A843A;
  font-weight: 600;
}

.wd-azkar-item-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.wd-azkar-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.wd-azkar-counter-btn,
.wd-azkar-counter-reset,
.wd-azkar-audio-btn,
.wd-azkar-share-btn {
  border: 1px solid #eceef2;
  background: #fff;
  color: #374151;
  border-radius: 9999px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.wd-azkar-counter-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wd-azkar-counter-value {
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f2937;
}

.wd-azkar-counter-sep {
  opacity: 0.55;
  margin-inline: 0.1rem;
}

.wd-azkar-counter-reset {
  padding: 0.35rem 0.7rem;
}

.wd-azkar-audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.wd-azkar-audio-btn,
.wd-azkar-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
}

.wd-azkar-audio-btn.is-playing {
  border-color: #1A843A;
  background: #f6fcf8;
  color: #1A843A;
}

.wd-azkar-audio-btn--sequence.is-playing {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.wd-azkar-empty {
  text-align: center;
  color: #6b7280;
  padding: 2rem 1rem;
}

@media (max-width: 640px) {
  .wd-body-azkar .wd-azkar-content {
    padding: 12px 14px 22px;
  }

  .wd-azkar-detail-hero {
    align-items: flex-start;
  }

  .wd-azkar-item-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wd-azkar-audio-actions {
    width: 100%;
  }

  .wd-azkar-audio-btn,
  .wd-azkar-share-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
