@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Noto+Kufi+Arabic:wght@500;700;800&display=swap");

:root {
  --paper: #fbfaf4;
  --paper-light: #ffffff;
  --paper-dark: #efe8d7;
  --brown: #b98735;
  --brown-dark: #0b3f3b;
  --green: #14766f;
  --green-dark: #07564f;
  --accent: #c7963f;
  --accent-soft: #fff1d8;
  --text: #0b3634;
  --muted: #687673;
  --border: rgba(7, 86, 79, 0.16);
  --shadow: 0 16px 34px rgba(7, 86, 79, 0.10);
  --body: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --heading: "Noto Kufi Arabic", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  direction: rtl;
  text-align: right;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  background:
    radial-gradient(circle at 18% 8%, rgba(20,118,111,.12), transparent 30%),
    radial-gradient(circle at 82% 4%, rgba(199,150,63,.18), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #f4efdf 52%, #fffdf8 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.top-header {
  padding: 22px 0 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(199,150,63,.16), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(20,118,111,.12), transparent 30%),
    linear-gradient(180deg, rgba(255,253,248,.96), rgba(251,250,244,.74));
  border-bottom: 1px solid rgba(199,150,63,.22);
}

.header-brandbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 390px);
  gap: 24px;
  align-items: center;
}

.site-logo {
  display: flex;
  justify-content: flex-start;
}

.site-logo img {
  width: min(100%, 560px);
  max-height: 150px;
  object-fit: contain;
}

.header-tools {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  align-self: center;
}

.header-date {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.header-date span,
.header-date time {
  border: 1px solid rgba(199,150,63,.30);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.90), rgba(255,241,216,.78));
  padding: 4px 12px;
  box-shadow: 0 6px 16px rgba(128,88,31,.08);
}

.site-title-fallback {
  font-family: var(--heading);
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: var(--brown-dark);
  margin: 0;
}

.nav-strip {
  border-top: 1px solid rgba(255,255,255,.55);
  border-bottom: 1px solid rgba(199,150,63,.30);
  background:
    linear-gradient(90deg, rgba(7,86,79,.96), rgba(20,118,111,.92)),
    repeating-linear-gradient(90deg, rgba(199,150,63,.08) 0 10px, transparent 10px 20px);
  box-shadow:
    0 10px 24px rgba(7,86,79,.12),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.nav-list a {
  color: rgba(255,253,248,.90);
  font-weight: 800;
  font-size: 1.06rem;
}

.nav-list a:hover,
.nav-list a.active { color: #ffd989; }

.search-form {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(53,82,103,.18);
  border-radius: 16px;
  padding: 2px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.header-search {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,250,240,.88));
  border-color: rgba(199,150,63,.36);
  box-shadow:
    0 10px 22px rgba(7,86,79,.08),
    inset 0 1px 0 rgba(255,255,255,.90);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: .75rem .4rem;
}

.search-form input:focus { outline: none; }
.search-form button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: .55rem .75rem;
  cursor: pointer;
}

.main { padding: 34px 0 54px; }

.sheikh-news {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(7,86,79,.12);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(7,86,79,.07);
}

.sheikh-news::before {
  content: none;
}

.sheikh-news-head {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 18px;
  text-align: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.sheikh-news h2 {
  margin: 0;
  color: #ffffff;
  font-family: var(--heading);
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
}

.sheikh-news-slider {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.sheikh-news-slider::before,
.sheikh-news-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 34px;
  pointer-events: none;
}

.sheikh-news-slider::before {
  right: 0;
  background: linear-gradient(90deg, transparent, #ffffff);
}

.sheikh-news-slider::after {
  left: 0;
  background: linear-gradient(90deg, #ffffff, transparent);
}

.sheikh-news-track {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  width: max-content;
  overflow: visible;
  padding: 0;
  direction: rtl;
  animation: sheikh-news-marquee 34s linear infinite;
}

.sheikh-news-card {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  direction: rtl;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 48px;
  max-width: 440px;
  padding: 0 18px;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(7,86,79,.10);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--green-dark);
  cursor: pointer;
  text-decoration: none;
}

.sheikh-news-slider:hover .sheikh-news-track,
.sheikh-news-slider:focus-within .sheikh-news-track {
  animation-play-state: paused;
}

.sheikh-news-card:hover {
  color: #8a6224;
}

.sheikh-news-card.is-disabled {
  cursor: default;
  opacity: .82;
}

.sheikh-news-card.is-disabled:hover {
  color: var(--green-dark);
}

.sheikh-news-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sheikh-news-label {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--accent);
  font-size: .72rem;
  font-weight: 800;
}

.sheikh-news-card strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  color: currentColor;
  font-family: var(--heading);
  font-size: .98rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheikh-news-summary {
  display: block;
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: .86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheikh-news-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8a6224;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.sheikh-news-footer time {
  color: var(--green-dark);
  font-size: .82rem;
  font-weight: 800;
  direction: ltr;
}

@keyframes sheikh-news-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 20px;
}

.news-modal.is-open {
  display: grid;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,31,29,.54);
  backdrop-filter: blur(4px);
}

.news-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(78vh, 620px);
  overflow-y: auto;
  border: 1px solid rgba(199,150,63,.34);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #ffffff, #fffaf0);
  box-shadow: 0 24px 60px rgba(5,31,29,.28);
  padding: 26px;
}

.news-modal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green-dark);
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.news-modal-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #8a6224;
  background: #fff1d8;
  font-size: .9rem;
  font-weight: 900;
}

.news-modal-card h2 {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-family: var(--heading);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.55;
}

.news-modal-card p {
  margin: 0;
  color: var(--text);
  line-height: 2;
  font-size: 1.05rem;
}

.cards-strip {
  display: grid;
  gap: 10px;
  margin: 0 auto 18px;
  padding: 18px;
  max-width: 900px;
  border: 1px solid rgba(0,109,119,.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,251,252,.9));
  box-shadow: 0 14px 30px rgba(24,42,58,.07);
}

.cards-strip-slider {
  position: relative;
  padding: 0 48px;
}

.cards-strip-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.cards-strip-track::-webkit-scrollbar {
  display: none;
}

.cards-strip-item {
  display: grid;
  gap: 10px;
  scroll-snap-align: start;
  min-width: 0;
  color: var(--ink);
}

.cards-strip-item img {
  width: 100%;
  max-height: min(430px, 54vh);
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(53,82,103,.12);
  background: #fff;
  padding: 8px;
}

.cards-strip-item span {
  display: none;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
}

.cards-strip .slider-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
}

.cards-strip .slider-dots {
  margin-top: 0;
}

.hero,
.section-shell,
.selected-categories-shell,
.single-shell {
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,252,.96)),
    radial-gradient(circle at top, rgba(0,140,137,.07), transparent 58%);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
  margin-bottom: 32px;
}

.selected-categories-shell {
  margin-top: 18px;
}

.selected-categories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.selected-category-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,140,137,.18);
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(24,42,58,.06);
}

.selected-category-link:hover {
  background: rgba(0,140,137,.09);
  border-color: rgba(0,140,137,.32);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 30px;
  border-color: rgba(15,127,120,.18);
  background:
    radial-gradient(circle at 50% 0, rgba(33,127,127,.16), transparent 28%),
    radial-gradient(circle at 18% 22%, rgba(181,138,67,.14), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,244,236,.96));
  box-shadow:
    0 22px 48px rgba(29,45,40,.10),
    inset 0 0 0 1px rgba(255,255,255,.74);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(33,127,127,.20);
  border-radius: 26px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.hero::after {
  content: "✦";
  position: absolute;
  top: 122px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--green);
  font-size: 1.8rem;
  text-shadow: 0 1px 0 #fff;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .section-title {
  min-width: min(360px, calc(100% - 70px));
  padding: 16px 34px 18px;
  border-radius: 20px;
  border-color: rgba(181,138,67,.38);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,247,232,.84));
  box-shadow:
    0 18px 34px rgba(29,45,40,.10),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.hero .divider {
  margin-bottom: 34px;
}

.section-title {
  display: table;
  margin: 0 auto;
  text-align: center;
  color: var(--brown-dark);
  font-family: var(--heading);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.35;
  padding: 10px 26px 12px;
  border: 1px solid rgba(185,139,56,.28);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,232,.72)),
    radial-gradient(circle at 50% 0, rgba(15,127,120,.12), transparent 72%);
  box-shadow:
    0 12px 28px rgba(29,45,40,.08),
    inset 0 1px 0 rgba(255,255,255,.9);
  position: relative;
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.section-title::before { right: -42px; }
.section-title::after { left: -42px; }

.section-headline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-headline .section-title {
  grid-column: 2;
}

.section-more {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,127,120,.20);
  font-weight: 900;
}

.audio-latest-shell {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,251,249,.96)),
    radial-gradient(circle at 12% 0, rgba(185,139,56,.12), transparent 34%);
}

.audio-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.audio-latest-card {
  position: relative;
  display: grid;
  min-height: 96px;
  padding: 14px 14px 14px 62px;
  border-radius: 16px;
  border: 1px solid rgba(15,127,120,.16);
  background: rgba(255,255,255,.86);
  box-shadow: 0 10px 24px rgba(29,45,40,.06);
}

.audio-latest-card > a {
  display: block;
  min-width: 0;
  padding-inline-start: 50px;
  padding-inline-end: 8px;
}

.audio-latest-card > a strong {
  display: block;
  min-width: 0;
}

.audio-mini-play {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.audio-mini-play .material-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.audio-latest-card strong {
  color: #102b28;
  font-family: var(--heading);
  font-size: 1rem;
  line-height: 1.55;
}

.audio-latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
  margin-top: 8px;
  padding-inline-start: 50px;
  padding-inline-end: 8px;
}

.audio-mini-play {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(15,127,120,.22);
}

.divider {
  width: min(260px, 70%);
  height: 12px;
  margin: 10px auto 24px;
  position: relative;
}

.home-insights {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}

.radio-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(70px, 120px) auto;
  grid-template-areas: "copy wave controls";
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  min-height: 150px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px) clamp(20px, 4vw, 34px);
  border: 1px solid rgba(199,150,63,.34);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 46%, rgba(199,150,63,.14) 0 2px, transparent 3px 16px),
    repeating-radial-gradient(circle at 24% 48%, rgba(199,150,63,.13) 0 1px, transparent 2px 18px),
    linear-gradient(160deg, rgba(255,255,255,.98) 0%, rgba(255,253,248,.96) 56%, rgba(255,240,206,.55) 100%);
  box-shadow:
    0 22px 50px rgba(128,88,31,.12),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.radio-frame::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -34px;
  height: 116px;
  background:
    radial-gradient(120% 95% at 50% 0, rgba(255,255,255,.90), transparent 58%),
    linear-gradient(12deg, rgba(255,234,194,.64), transparent 58%);
  pointer-events: none;
}

.radio-frame::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 18px;
  width: 76px;
  height: 116px;
  opacity: .13;
  background:
    linear-gradient(66deg, transparent 46%, var(--green-dark) 47% 49%, transparent 50%),
    linear-gradient(114deg, transparent 46%, var(--green-dark) 47% 49%, transparent 50%),
    radial-gradient(circle at 50% 14%, transparent 0 8px, var(--green-dark) 9px 11px, transparent 12px),
    linear-gradient(90deg, transparent 46%, var(--green-dark) 47% 51%, transparent 52%);
  pointer-events: none;
}

.radio-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
  justify-items: start;
  grid-area: copy;
}

.radio-kicker {
  width: fit-content;
  padding: 8px 22px;
  border: 1px solid rgba(199,150,63,.36);
  border-radius: 999px;
  color: #8a6224;
  background:
    radial-gradient(circle at 22% 50%, rgba(255,255,255,.85), transparent 34%),
    linear-gradient(180deg, #fff8ec, #ffe9c1);
  box-shadow: 0 12px 26px rgba(128,88,31,.12);
  font-size: 1.02rem;
  font-weight: 900;
}

.radio-copy h2 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.45;
}

.radio-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.radio-description {
  max-width: 520px;
  font-size: .86rem;
  line-height: 1.7;
}

.radio-frame.is-playing .radio-copy p {
  color: var(--green-dark);
}

.radio-controls {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  justify-self: center;
  grid-area: controls;
}

.radio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  border: 1px solid rgba(7,86,79,.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-dark);
  font: 900 .95rem/1 var(--body);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(7,86,79,.08);
}

.radio-play {
  width: 74px;
  height: 74px;
  border: 6px solid rgba(255,232,186,.9);
  color: #ffffff;
  background:
    radial-gradient(circle at 42% 38%, rgba(255,255,255,.14), transparent 35%),
    linear-gradient(135deg, var(--green-dark), var(--green));
  box-shadow:
    0 0 0 10px rgba(199,150,63,.10),
    0 0 0 18px rgba(199,150,63,.055),
    0 16px 34px rgba(7,86,79,.22);
}

.radio-play .material-icon {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.radio-frame.is-playing .radio-play .icon-play,
.radio-play .icon-pause {
  display: none;
}

.radio-frame.is-playing .radio-play .icon-pause {
  display: inline-flex;
}

.radio-mute {
  min-width: 116px;
  padding: 0 22px;
  color: var(--green-dark);
  border-color: rgba(199,150,63,.32);
  background: rgba(255,255,255,.74);
}

.radio-wave {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 54px;
  color: rgba(199,150,63,.34);
  grid-area: wave;
}

.radio-wave::before,
.radio-wave::after {
  content: "";
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, currentColor);
}

.radio-wave::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.radio-wave span {
  display: block;
  width: 6px;
  border-radius: 999px;
  background: currentColor;
}

.radio-wave span:nth-child(1) { height: 18px; }
.radio-wave span:nth-child(2) { height: 34px; }
.radio-wave span:nth-child(3) { height: 54px; }
.radio-wave span:nth-child(4) { height: 34px; }
.radio-wave span:nth-child(5) { height: 18px; }

.radio-frame.is-playing .radio-wave span {
  animation: radioWave 1.05s ease-in-out infinite;
}

.radio-frame.is-playing .radio-wave span:nth-child(2) { animation-delay: .1s; }
.radio-frame.is-playing .radio-wave span:nth-child(3) { animation-delay: .2s; }
.radio-frame.is-playing .radio-wave span:nth-child(4) { animation-delay: .3s; }
.radio-frame.is-playing .radio-wave span:nth-child(5) { animation-delay: .4s; }

@keyframes radioWave {
  0%, 100% { transform: scaleY(.55); }
  50% { transform: scaleY(1); }
}

.radio-frame.is-muted .radio-mute {
  color: #ffffff;
  background: var(--accent);
  border-color: rgba(199,150,63,.45);
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.home-stat-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 150px;
  padding: 18px 12px;
  border: 1px solid rgba(29,45,40,.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,248,.94));
  box-shadow: 0 12px 28px rgba(29,45,40,.07);
}

.home-stat-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 12px 22px rgba(15,127,120,.22);
}

.home-stat-card:nth-child(2n) .home-stat-icon {
  background: linear-gradient(135deg, var(--accent), #9c5a35);
}

.home-stat-card:nth-child(3n) .home-stat-icon {
  background: linear-gradient(135deg, #173d6f, #0d1d45);
}

.home-stat-icon .material-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.home-stat-card span:not(.home-stat-icon) {
  color: var(--muted);
  font-weight: 900;
}

.home-stat-card strong {
  color: #102b4d;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1;
}

.home-stat-card small {
  color: #8a9691;
  font-weight: 800;
}

.home-popular-cats {
  padding: 22px;
  border: 1px solid rgba(29,45,40,.12);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 28px rgba(29,45,40,.06);
  margin-bottom: 32px;
}

.home-popular-cats h2 {
  margin: 0 0 16px;
  color: #102b4d;
  text-align: center;
  font-family: var(--heading);
  font-size: 1.25rem;
}

.home-popular-cats div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.home-popular-cats a {
  min-width: 96px;
  text-align: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #42606c;
  background: linear-gradient(180deg, #f8faf9, #eef2f0);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(54,82,103,.22);
}

.divider::before { right: 0; }
.divider::after { left: 0; }
.divider span {
  display: block;
  width: 36px;
  height: 8px;
  margin: 2px auto 0;
  border-radius: 999px;
  background: var(--green);
}

.latest-grid,
.cards-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.library-gateways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.library-gateway {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 190px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(24,42,58,.06);
}

.library-gateway-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.library-gateway-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading);
  font-size: 1.35rem;
}

.library-gateway-head span {
  color: var(--muted);
  white-space: nowrap;
}

.library-gateway-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-gateway-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,140,137,.09);
  color: var(--green-dark);
  font-size: .9rem;
  font-weight: 800;
}

.library-gateway .btn {
  justify-self: start;
}

.latest-slider {
  position: relative;
  padding: 0 54px;
}

.latest-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(235px, 260px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,109,119,.35) transparent;
}

.latest-track::-webkit-scrollbar {
  height: 8px;
}

.latest-track::-webkit-scrollbar-thumb {
  background: rgba(0,109,119,.35);
  border-radius: 999px;
}

.latest-slide {
  scroll-snap-align: start;
  min-width: 0;
}

.latest-slide .material-card {
  height: 100%;
}

.console-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(300px, 1fr) auto;
  gap: 16px;
  min-height: 470px;
  height: 100%;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(33,127,127,.26);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 36%, rgba(181,138,67,.16), transparent 25%),
    radial-gradient(circle at 50% 48%, rgba(33,127,127,.12), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,245,239,.96));
  box-shadow:
    0 16px 34px rgba(29,45,40,.09),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.console-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 96px;
  width: 190px;
  height: 190px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(181,138,67,.12), rgba(33,127,127,.10)),
    radial-gradient(circle, rgba(255,255,255,.26), transparent 62%);
  transform: translateX(-50%) rotate(45deg);
  opacity: .92;
}

.console-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.console-date {
  margin-inline-start: 0;
  padding: 6px 11px;
  border-radius: 999px;
  color: #8a6a42;
  background: #f5eadc;
  font-size: .74rem;
  font-weight: 900;
  white-space: nowrap;
}

.console-type {
  order: -1;
  margin-inline-start: auto;
  padding: 6px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-size: .74rem;
  font-weight: 900;
  white-space: nowrap;
}

.console-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.console-art {
  position: relative;
  display: grid;
  place-items: center;
  width: min(210px, 92%);
  aspect-ratio: 1;
  overflow: visible;
  border-radius: 0;
  margin-top: 8px;
}

.console-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(13,49,64,.16));
}

.console-art span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  color: var(--green-dark);
  background: rgba(15,127,120,.10);
}

.console-art .material-icon {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.console-copy {
  min-width: 0;
  text-align: center;
}

.console-copy h3 {
  margin: 0 0 14px;
  color: #102b4d;
  font-family: var(--heading);
  font-size: 1.14rem;
  line-height: 1.7;
}

.console-copy a:hover {
  color: var(--green-dark);
}

.console-copy p {
  margin: 0;
  color: #6d7b84;
  font-weight: 800;
}

.console-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.console-action {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #17313a;
  background: #f4f7f6;
  box-shadow: 0 8px 18px rgba(29,45,40,.08);
  cursor: pointer;
}

.console-action.view {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.console-action.play {
  color: #ffffff;
  background: linear-gradient(135deg, #d6b06a, #a97932);
}

.console-action.download {
  color: #ffffff;
  background: linear-gradient(135deg, #25323a, #132027);
}

.console-action .material-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.console-action .icon-pause,
.console-action.is-playing .icon-play {
  display: none;
}

.console-action.is-playing .icon-pause {
  display: inline-flex;
}

.slider-arrow {
  position: absolute;
  top: 48%;
  z-index: 2;
  width: 48px;
  height: 66px;
  border: 1px solid rgba(15,127,120,.20);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  color: var(--green-dark);
  box-shadow: 0 14px 26px rgba(29,45,40,.10);
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
}

.slider-arrow:hover {
  background: var(--green-dark);
  color: #ffffff;
}

.slider-next { right: 0; }
.slider-prev { left: 0; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: max-content;
  margin: 14px auto 0;
  padding: 12px 28px;
  border: 1px solid rgba(15,127,120,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(53,82,103,.24);
}

.slider-dots button.active {
  width: 30px;
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.material-card,
.category-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(24,42,58,.06);
}

.category-tree {
  display: grid;
  gap: 16px;
}

.category-tree-roots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.category-tree-card {
  position: relative;
  min-width: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(24,42,58,.06);
}

.category-tree-card .card-title {
  margin-bottom: 6px;
}

.category-tree-card-head {
  display: grid;
  gap: 4px;
}

.category-tree-children {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-right: 18px;
  border-right: 2px solid rgba(0,140,137,.16);
}

.category-tree-children .category-tree-card {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,251,252,.98));
  box-shadow: none;
}

.category-tree-children .category-tree-card::before {
  content: "";
  position: absolute;
  top: 28px;
  right: -20px;
  width: 18px;
  height: 2px;
  background: rgba(0,140,137,.22);
}

.category-tree-children .category-tree-children {
  margin-top: 10px;
  padding-right: 14px;
}

.category-directory {
  display: grid;
  gap: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .95rem;
}

.breadcrumb a,
.breadcrumb span {
  line-height: 1.8;
}

.breadcrumb a {
  color: var(--green-dark);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--brown-dark);
}

.category-directory-section {
  display: grid;
  gap: 12px;
}

.category-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 10px;
  border-bottom: 1px solid rgba(53,82,103,.14);
}

.category-directory-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--ink);
}

.category-directory-head span {
  color: var(--muted);
  font-size: .92rem;
  white-space: nowrap;
}

.category-content-head {
  margin: 22px 0 12px;
  padding-inline: 0;
}

.category-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.category-directory-card {
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(24,42,58,.05);
}

.category-directory-card:hover {
  border-color: rgba(0,140,137,.38);
  transform: translateY(-1px);
}

.category-directory-card strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
}

.category-directory-card span {
  color: var(--muted);
  font-size: .92rem;
}

.material-list {
  display: grid;
  gap: 12px;
}

.material-list .material-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 48px;
  grid-template-rows: 1fr auto auto auto 1fr;
  grid-template-areas:
    "thumb . actions"
    "thumb meta actions"
    "thumb title actions"
    "thumb excerpt actions"
    "thumb . actions";
  align-items: center;
  gap: 8px 16px;
  min-height: 214px;
  border-radius: 16px;
}

.material-list .material-thumb {
  grid-area: thumb;
  width: 150px;
  aspect-ratio: 3 / 4;
  margin: 0;
  border-radius: 12px;
  background: #fffdf8;
}

.material-list .meta-row {
  grid-area: meta;
  margin: 0;
}

.material-list .card-title {
  grid-area: title;
  margin: 0;
  font-size: 1.18rem;
}

.material-list .excerpt {
  grid-area: excerpt;
  margin: 0;
}

.material-list .button-row {
  grid-area: actions;
  align-self: center;
  display: grid;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.pager-count {
  min-width: 64px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: .48;
  pointer-events: none;
}

.material-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #e7f3f4, #ffffff);
  border: 1px solid rgba(53,82,103,.16);
  margin-bottom: 12px;
}

.material-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffdf8;
}

.thumb-placeholder {
  font-family: var(--heading);
  color: var(--brown);
  font-size: 2.4rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(0,140,137,.11);
  color: var(--green-dark);
  font-weight: 800;
  font-size: .96rem;
}

.hijri-meta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .96rem;
  font-weight: 800;
}

.muted { color: var(--muted); }

.card-title {
  margin: 0 0 10px;
  color: var(--brown-dark);
  font-family: var(--heading);
  font-size: 1.35rem;
  line-height: 1.45;
}

.card-title a:hover { color: var(--green-dark); }

.excerpt {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .94rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.latest-slide .button-row,
.material-card .button-row {
  flex-wrap: nowrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 9px 15px;
  background: var(--green-dark);
  color: #f7ffff;
  font-weight: 800;
  border: 1px solid rgba(0,109,119,.18);
}

button.btn {
  font: inherit;
  cursor: pointer;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(0,109,119,.18);
  background: var(--green-dark);
  color: #f7ffff;
  font: 800 1rem/1 var(--body);
  cursor: pointer;
}

.material-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.icon-pause {
  display: none;
}

.play-btn.is-playing .icon-play {
  display: none;
}

.play-btn.is-playing .icon-pause {
  display: inline-flex;
}

.icon-btn.secondary {
  background: #ffffff;
  color: var(--brown-dark);
  border-color: var(--border);
}

.play-btn {
  background: var(--accent);
}

.btn.secondary {
  background: #ffffff;
  color: var(--brown-dark);
  border-color: var(--border);
}

.type-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.type-tabs a {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.9);
  color: var(--brown);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
}

.type-tabs a.active,
.type-tabs a:hover {
  background: var(--green-dark);
  color: #fff8e8;
}

.books-slider-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(199,150,63,.52);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(7,86,79,.22), transparent 34%),
    linear-gradient(135deg, #d7ad5c 0%, #c7963f 44%, #a8782f 100%);
  box-shadow:
    0 18px 38px rgba(128,88,31,.18),
    inset 0 1px 0 rgba(255,255,255,.35);
  padding: clamp(18px, 3vw, 30px);
  margin-bottom: 32px;
  color: #fffdf6;
}

.books-side-title {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: auto;
}

.books-side-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 24px 12px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26);
  color: #fffdf6;
  text-shadow: 0 2px 10px rgba(77,48,14,.20);
  font-family: var(--heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
}

.books-side-title a {
  align-self: center;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: var(--green-dark);
  font-weight: 800;
}

.books-slider {
  position: relative;
  min-width: 0;
  padding: 0 46px;
}

.books-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 230px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(7,86,79,.48) transparent;
}

.books-track::-webkit-scrollbar {
  height: 8px;
}

.books-track::-webkit-scrollbar-thumb {
  background: rgba(7,86,79,.48);
  border-radius: 999px;
}

.book-slide {
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255,255,255,.74);
  box-shadow:
    0 12px 24px rgba(110,73,21,.12),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.book-cover {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffaf0, #f1e1c1);
  border: 1px solid rgba(199,150,63,.34);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fffdf8;
}

.book-cover span {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
}

.book-slide h3 {
  margin: 0;
  color: var(--green-dark);
  font-family: var(--heading);
  font-size: 1.1rem;
  line-height: 1.55;
}

.book-slide .btn {
  padding: 8px 12px;
}

.book-slide .btn.secondary {
  color: var(--green-dark);
  background: rgba(7,86,79,.08);
  border-color: rgba(7,86,79,.16);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: start;
}

.single-main {
  min-width: 0;
}

.single-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.single-title {
  margin: 0 0 18px;
  color: #0e2942;
  font-family: var(--heading);
  font-size: clamp(1.45rem, 2.3vw, 2.25rem);
  line-height: 1.45;
  text-align: right;
}

.player-card,
.side-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.player-card {
  margin-bottom: 14px;
}

.single-side {
  position: sticky;
  top: 16px;
  align-self: start;
}

.single-side-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fffdf8;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(53,82,103,.14);
}

.single-side p,
.single-info {
  margin: 0;
  color: #263c50;
  font-size: .94rem;
  line-height: 1.8;
}

.single-side p + p {
  margin-top: 8px;
}

.single-side strong,
.single-info dt {
  color: #7d1d0e;
  font-weight: 900;
}

.single-info {
  display: grid;
  gap: 8px;
}

.single-info div {
  display: grid;
  gap: 2px;
}

.single-info dd {
  margin: 0;
}

.single-info a {
  color: inherit;
}

.share-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(53,82,103,.12);
  text-align: center;
}

.share-box > strong {
  display: block;
  margin-bottom: 10px;
  color: #263c50;
  font-size: .95rem;
}

.share-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  color: #ffffff;
  font-size: .82rem;
  font-weight: 900;
}

.share-link.telegram { background: #3286c6; }
.share-link.whatsapp { background: #15803d; }
.share-link.facebook { background: #2f55a4; }
.share-link.copy { background: #10263b; }

.image-viewer-card {
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
}

.image-viewer-card img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
}

.file-actions {
  margin-top: 0;
}

audio { width: 100%; margin-top: 12px; }

.custom-audio-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  grid-template-areas: "body play";
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(0,140,137,.18);
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(0,140,137,.12), rgba(255,255,255,.94) 52%, rgba(216,95,79,.09)),
    #ffffff;
  box-shadow: 0 16px 32px rgba(24,42,58,.09);
}

.custom-audio-play {
  grid-area: play;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(0,109,119,.28);
  cursor: pointer;
}

.custom-audio-play:hover {
  background: linear-gradient(135deg, var(--brown-dark), var(--green-dark));
}

.custom-audio-play .material-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.custom-audio-play .icon-pause,
.custom-audio-player.is-playing .custom-audio-play .icon-play {
  display: none;
}

.custom-audio-player.is-playing .custom-audio-play .icon-pause {
  display: inline-flex;
}

.custom-audio-body {
  grid-area: body;
  min-width: 0;
}

.custom-audio-label {
  margin-bottom: 9px;
  color: var(--brown-dark);
  font-weight: 900;
}

.custom-audio-progress {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(53,82,103,.13);
  cursor: pointer;
}

.custom-audio-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

.custom-audio-times {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  direction: ltr;
  font-weight: 800;
  font-size: .88rem;
}

.content-box {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(53,82,103,.14);
  border-radius: 14px;
  padding: clamp(18px, 4vw, 34px);
  margin-top: 8px;
  color: #1d2d3a;
  font-size: 1.05rem;
  line-height: 2.2;
}

.single-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.adjacent-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid rgba(0,140,137,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  color: #0e2942;
  box-shadow: 0 10px 24px rgba(24,42,58,.05);
}

.adjacent-card span {
  color: #0e2942;
  font-weight: 900;
  font-size: .98rem;
}

.adjacent-card strong {
  color: #0e2942;
  font-family: var(--heading);
  font-size: 1.08rem;
  line-height: 1.45;
}

.adjacent-card:hover {
  border-color: rgba(0,140,137,.36);
  transform: translateY(-1px);
}

.adjacent-previous {
  text-align: right;
}

.adjacent-next {
  text-align: right;
}

.adjacent-card.is-empty {
  color: var(--muted);
  background: rgba(255,255,255,.62);
  box-shadow: none;
}

.adjacent-card.is-empty strong {
  color: var(--muted);
  font-family: inherit;
  font-size: .95rem;
}

.article-content {
  max-width: 860px;
  margin-top: 8px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,252,253,.96));
  border-color: rgba(53,82,103,.12);
  border-radius: 20px;
  color: #1d2d3a;
  font-size: 1.08rem;
  line-height: 2.25;
  text-align: justify;
  overflow-wrap: anywhere;
}

.article-content br {
  content: "";
  display: block;
  margin-bottom: .7em;
}

.article-content p {
  margin: 0 0 1.05em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 1.4em 0 .55em;
  color: var(--brown-dark);
  font-family: var(--heading);
  line-height: 1.5;
}

.article-content a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer {
  background: #102531;
  color: #eef8fb;
  padding: 28px 0;
}

.footer-simple {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.footer a {
  color: rgba(238,248,251,.84);
}

.footer a:hover { color: #7ee0dc; }

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.footer-social-frame {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(126,224,220,.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(15,127,120,.10)),
    rgba(255,255,255,.035);
}

.footer-social-frame > strong {
  display: block;
  margin-bottom: 10px;
  color: #eaf7f6;
  font-family: var(--heading);
  font-size: 1rem;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255,255,255,.06);
}

.footer-social-links a:hover {
  background: rgba(126,224,220,.12);
  border-color: rgba(126,224,220,.32);
}

.footer-contact-frame {
  width: min(620px, 100%);
  margin: 6px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(185,139,56,.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(185,139,56,.10)),
    rgba(255,255,255,.04);
}

.footer-contact-frame strong {
  display: block;
  margin-bottom: 10px;
  color: #ffe8a8;
  font-family: var(--heading);
}

.footer-contact-frame div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer-contact-frame a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15,127,120,.34);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 900;
}

.footer-designer {
  color: rgba(238,248,251,.76);
  font-size: .95rem;
}

.footer-designer a {
  color: #ffffff;
  font-weight: 800;
}

.empty {
  text-align: center;
  padding: 28px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .header-brandbar,
  .audio-latest-grid,
  .nav-inner,
  .single-layout,
  .books-slider-shell {
    grid-template-columns: 1fr;
  }
  .header-brandbar {
    gap: 16px;
  }
  .site-logo,
  .header-date {
    justify-content: center;
  }
  .header-tools {
    justify-items: center;
  }
  .header-search {
    max-width: 520px;
  }
  .single-side {
    position: static;
    order: -1;
  }
  .single-adjacent {
    grid-template-columns: 1fr;
  }
  .nav-list { gap: 12px 14px; }
  .search-form {
    max-width: 520px;
    margin-inline: auto;
  }
  .books-side-title {
    min-height: auto;
    align-items: center;
  }
  .books-side-title span {
    writing-mode: horizontal-tb;
  }
}

@media (max-width: 560px) {
  .section-title {
    max-width: calc(100% - 48px);
    padding-inline: 18px;
  }
  .section-title::before,
  .section-title::after {
    width: 20px;
  }
  .section-title::before { right: -28px; }
  .section-title::after { left: -28px; }
  .section-headline {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .section-headline .section-title,
  .section-more {
    grid-column: 1;
    justify-self: center;
  }
  .home-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .radio-frame {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "wave"
      "controls";
    min-height: 0;
    justify-items: center;
    text-align: center;
    padding: 22px 16px;
  }
  .radio-copy {
    justify-items: center;
  }
  .radio-copy h2 {
    font-size: clamp(1.15rem, 6vw, 1.55rem);
  }
  .radio-play {
    width: 82px;
    height: 82px;
    border-width: 6px;
  }
  .radio-play .material-icon {
    width: 32px;
    height: 32px;
  }
  .radio-wave {
    height: 50px;
  }
  .console-card {
    min-height: 430px;
    padding: 15px;
  }
  .console-card-body {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .console-art {
    width: min(170px, 82%);
    margin-top: 0;
  }
  .console-copy h3 {
    font-size: 1rem;
  }
  .top-header { padding-top: 16px; }
  .header-date {
    gap: 6px;
    font-size: .86rem;
  }
  .header-date span,
  .header-date time {
    padding: 3px 9px;
  }
  .container {
    width: min(100% - 20px, 1180px);
  }
  .nav-inner {
    gap: 10px;
    padding: 10px 0;
  }
  .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  .nav-list li {
    min-width: 0;
  }
  .nav-list a {
    display: block;
    width: 100%;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--green-dark);
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 12px;
    background: rgba(255,255,255,.88);
    padding: 6px 8px;
    font-size: .92rem;
  }
  .nav-list a:hover,
  .nav-list a.active {
    color: #8a6224;
    background: #fff1d8;
  }
  .search-form {
    max-width: none;
    border-radius: 14px;
    padding: 2px 6px;
  }
  .search-form input {
    padding: .62rem .35rem;
    font-size: 1rem;
  }
  .search-form button {
    padding: .48rem .55rem;
  }
  .main { padding-top: 22px; }
  .sheikh-news {
    border-radius: 12px;
    display: block;
  }
  .sheikh-news-head {
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
  }
  .sheikh-news-slider {
    min-height: 46px;
  }
  .sheikh-news-track {
    animation-duration: 26s;
  }
  .sheikh-news-card {
    height: 46px;
    max-width: 320px;
    padding: 0 12px;
  }
  .sheikh-news-content {
    gap: 8px;
  }
  .sheikh-news-card strong {
    max-width: 170px;
    font-size: .98rem;
  }
  .sheikh-news-summary {
    display: none;
  }
  .hero,
  .section-shell,
  .single-shell { border-radius: 20px; }
  .latest-slider { padding: 0 0 4px; }
  .latest-track { grid-auto-columns: minmax(230px, 86%); }
  .cards-strip-slider { padding: 0 0 4px; }
  .books-slider { padding: 0 0 4px; }
  .books-track { grid-auto-columns: minmax(190px, 82%); }
  .slider-arrow { display: none; }
  .latest-grid,
  .cards-grid,
  .category-grid { grid-template-columns: 1fr; }
  .material-list .material-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
      "thumb meta"
      "thumb title"
      "thumb excerpt"
      "actions actions";
    align-items: start;
    gap: 8px 12px;
    min-height: 0;
  }
  .material-list .material-thumb {
    width: 112px;
    aspect-ratio: 3 / 4;
  }
  .material-list .button-row {
    display: flex;
    justify-content: flex-start;
  }
  .category-tree-roots {
    grid-template-columns: 1fr;
  }
  .category-tree-card {
    border-radius: 18px;
    padding: 13px;
  }
  .category-tree-children {
    padding-right: 12px;
  }
  .category-tree-children .category-tree-card::before {
    right: -14px;
    width: 12px;
  }
  .custom-audio-player {
    grid-template-columns: minmax(0, 1fr) 58px;
    grid-template-areas: "body play";
    gap: 12px;
    border-radius: 18px;
    padding: 12px;
  }
  .custom-audio-play {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }
  .custom-audio-play .material-icon {
    width: 28px;
    height: 28px;
  }
}
