/* Imam & Science. — read-along recitations (Ziyarat, duas): Arabic, transliteration, translation, synced audio */
@font-face { font-family: "IS Scheherazade"; font-weight: 400; font-display: swap; src: url(../fonts/scheherazade-new-arabic-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Scheherazade"; font-weight: 700; font-display: swap; src: url(../fonts/scheherazade-new-arabic-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Naskh"; font-weight: 400; font-display: swap; src: url(../fonts/noto-naskh-arabic-arabic-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Naskh"; font-weight: 700; font-display: swap; src: url(../fonts/noto-naskh-arabic-arabic-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Lateef"; font-weight: 400; font-display: swap; src: url(../fonts/lateef-arabic-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Lateef"; font-weight: 700; font-display: swap; src: url(../fonts/lateef-arabic-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Nastaliq"; font-weight: 400; font-display: swap; src: url(../fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Nastaliq"; font-weight: 700; font-display: swap; src: url(../fonts/noto-nastaliq-urdu-arabic-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Kufi"; font-weight: 400; font-display: swap; src: url(../fonts/reem-kufi-arabic-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IS Al Majeed Quranic"; font-display: swap; src: url(../fonts/x-al-majeed-quranic-font-shiped.woff2) format("woff2"); }

:root { --du-ar-font: var(--font-ar); --du-ar-size: 34px; --du-ar-lh: 2.1; --du-en-size: 17px; }
.af-amiri { font-family: "IS Arabic", serif; }
.af-scheherazade { font-family: "IS Scheherazade", serif; }
.af-naskh { font-family: "IS Naskh", serif; }
.af-lateef { font-family: "IS Lateef", serif; }
.af-nastaliq { font-family: "IS Nastaliq", serif; line-height: 2.2; }
.af-majeed { font-family: "IS Al Majeed Quranic", "IS Arabic", serif; }

/* Hero */
.du__hero { position: relative; text-align: center; padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 28px); isolation: isolate; }
.du__hero::before { content: ""; position: absolute; inset: -40% 0 auto; height: 520px; z-index: -1; pointer-events: none; background: radial-gradient(42% 46% at 50% 40%, var(--glow), transparent 72%); }
.du__artitle { font-family: "IS Al Majeed Quranic", "IS Arabic", serif; font-size: clamp(46px, 9vw, 84px); line-height: 1.25; color: var(--ink); margin-top: 16px; direction: rtl; }
.du__title { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.04em; margin-top: 4px; }
.du__sub { color: var(--muted); font-size: 17px; margin-top: 8px; }
.du__chips { justify-content: center; flex-wrap: wrap; }
.du__chips li { display: inline-flex; align-items: center; gap: 6px; }
.du__chips .icon { width: 15px; height: 15px; }
.du__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 22px; }
.du__show { display: flex; gap: 6px; }
.du__show .chip[aria-pressed="false"] { text-decoration: line-through; opacity: .7; }
.chip--yt { display: inline-flex; align-items: center; gap: 6px; background: rgba(239, 68, 68, .1); color: #dc2626; border-radius: 999px; padding: 7px 15px; font-size: 13.5px; font-weight: 650; text-decoration: none !important; transition: background .2s, transform .15s; }
.chip--yt:hover { background: rgba(239, 68, 68, .18); transform: translateY(-1px); }
.chip--yt .icon { width: 16px; height: 16px; }
[data-mode="dark"] .chip--yt, [data-mode="gray"] .chip--yt { background: rgba(248, 113, 113, .15); color: #f87171; }
.du__note { max-width: 560px; margin: 18px auto 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.du__note--warn { color: #b45309; }
[data-mode="dark"] .du__note--warn, [data-mode="gray"] .du__note--warn { color: #fbbf24; }

/* Text */
.du__text { width: 100%; max-width: min(780px, calc(100% - var(--gutter) * 2)); margin: 0 auto; padding: 0 0 calc(120px + env(safe-area-inset-bottom)); }
.du__sec { margin-top: 22px; }
.du__sh { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 30px 0 10px; }
.du__sh .orn { width: 160px; color: var(--faint); }
.du__hint { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.du__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.vl { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 22px; border-radius: 0; background: var(--surface); box-shadow: 0 0 0 .5px var(--hair-2); transition: background-color .25s var(--ease), box-shadow .25s var(--ease); scroll-margin: 30vh 0; cursor: pointer; }
.vl__n { display: none !important; }
.show-num .vl__n { display: grid !important; align-self: center; margin-bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--fill); font-size: 11px; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.vl__body { width: 100%; text-align: center; }
.vl__ar { font-family: var(--du-ar-font); font-size: var(--du-ar-size); line-height: var(--du-ar-lh); color: var(--ink); text-align: center; direction: rtl; font-feature-settings: "kern", "liga", "calt"; overflow-wrap: break-word; margin: 0 auto; }
.vl__tr { margin: 10px auto 0; padding-top: 10px; border-top: .5px dashed var(--hair); font-size: calc(var(--du-en-size) * .95); line-height: 1.55; color: var(--muted); font-style: italic; text-align: center; max-width: 620px; }
.vl__en { margin: 6px auto 0; font-size: var(--du-en-size); line-height: 1.6; color: var(--text); text-align: center; max-width: 620px; }
.vl__rep { position: absolute; top: 10px; right: 14px; padding: 2px 8px; border-radius: 999px; background: var(--fill-2); color: var(--ink); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hide-tr .vl__tr, .hide-en .vl__en { display: none; }
@media (hover: hover) { .vl:hover { box-shadow: 0 0 0 .5px var(--hair-2), 0 6px 16px rgba(0, 0, 0, .04); } }
.vl.is-now { box-shadow: none; background: var(--fill); border-radius: 0; }
.du-focus .vl:not(.is-now) { opacity: .28; }
.du__credits { margin-top: 18px; text-align: center; font-size: 13px; color: var(--faint); }

/* Instruction Lines */
.vl--inst { display: flex; justify-content: center; text-align: center; padding: 10px 14px; margin: 6px 0; background: var(--fill); border-radius: 0; border: 1px dashed var(--hair-2); box-shadow: none; }
.vl--inst .vl__inst-box { display: flex; align-items: center; justify-content: center; gap: 8px; }
.vl--inst .vl__inst-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--fill-2); color: var(--ink); font-weight: 750; font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
.vl--inst .vl__inst-tag .icon { width: 12px; height: 12px; }
.vl--inst .vl__inst-txt { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.vl--inst.is-now { background: var(--fill-2); border-style: dashed; border-color: var(--hair-2); }
.vl--inst:hover { background: var(--fill-2); }

/* Extra Sections: Salat after Ziyarat & Related Duas */
.du__extra { margin-top: 32px; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); box-shadow: 0 4px 16px rgba(0,0,0,.02); }
.du__extra-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--ink); }
.du__extra-head .icon { width: 20px; height: 20px; flex-shrink: 0; }
.du__extra-title { font-size: 18px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
.du__extra-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.du__extra-body { font-size: 15px; line-height: 1.6; color: var(--text); }
.du__rel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.du__rel-card { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--fill); position: relative; transition: background .2s, transform .15s, box-shadow .2s; border: 1px solid transparent; text-decoration: none; }
.du__rel-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.05); background: var(--fill-2); }
.du__rel-card-t { font-size: 14.5px; font-weight: 750; color: var(--ink); }
.du__rel-card-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; padding-right: 18px; }
.du__rel-card-go { position: absolute; right: 12px; top: 12px; color: var(--faint); transition: transform .2s, color .2s; }
.du__rel-card:hover .du__rel-card-go { transform: translateX(3px); color: var(--ink); }

/* Resources & Downloads */
.du__resources { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--hair); }
.du__res-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; color: var(--ink); margin-bottom: 10px; }
.du__res-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.du__res-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; background: var(--fill); font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid var(--hair); text-decoration: none; transition: background .2s, color .2s, transform .15s; }
.du__res-chip:hover { background: var(--fill-2); color: var(--ink); transform: translateY(-1px); }
.du__res-chip .icon { width: 15px; height: 15px; color: var(--ink); }

/* Compact Sleek Floating Audio Player */
.dplayer { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%); width: min(540px, calc(100% - 20px)); padding: 8px 12px 9px; border-radius: 20px; background: var(--bar); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px); border: 1px solid var(--hair-2); box-shadow: var(--float), 0 8px 24px -6px rgba(0, 0, 0, .22); transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .3s ease; }
.dplayer.is-hidden { transform: translate(-50%, calc(100% + 50px + env(safe-area-inset-bottom, 0px))); opacity: 0; pointer-events: none; }
.dplayer__top { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; padding: 0 4px; margin-bottom: 2px; }
.dplayer__bar { position: relative; height: 16px; margin: 0 2px; cursor: pointer; touch-action: none; display: flex; align-items: center; }
.dplayer__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 3.5px; border-radius: 4px; background: var(--fill-3); }
.dplayer__fill { position: absolute; left: 0; top: 6px; height: 3.5px; width: 0; border-radius: 4px; background: var(--ink); }
.dplayer__knob { position: absolute; top: 2.5px; left: 0; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.dplayer__bar:hover .dplayer__knob, .dplayer__bar:focus-visible .dplayer__knob { transform: scale(1.3); }
.dplayer__bar:focus-visible { outline: none; }
.dplayer__ticks i { position: absolute; top: 11px; width: 1px; height: 3px; margin-left: -.5px; background: var(--faint); opacity: .4; border-radius: 1px; }
.dplayer__ctrls { display: flex; align-items: center; justify-content: space-between; gap: 3px; margin-top: 3px; }
.dpb { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; color: var(--ink); font-weight: 750; font-size: 13px; font-variant-numeric: tabular-nums; transition: background-color .2s, transform .15s var(--ease), color .2s; }
.dpb:hover { background: var(--fill); }
.dpb:active { transform: scale(.92); }
.dpb[aria-pressed="true"] { color: var(--ink); background: var(--fill-2); }
.dpb--play { width: 40px; height: 40px; background: var(--ink); color: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.2); display: inline-flex; align-items: center; justify-content: center; }
.dpb--play:hover { background: var(--ink); transform: scale(1.05); }
.dpb--play .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; color: var(--bg); }
.dpb--play .i-pause { display: none; }
.dpb--play .i-play { display: block; }
.is-playing .dpb--play .i-play { display: none !important; }
.is-playing .dpb--play .i-pause { display: block !important; }
.dpb--aa { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 12px; height: 34px; border-radius: 999px; background: var(--fill); font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.dpb--aa .icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Volume Controls in Player */
.dp-vol { position: relative; }
.dp-vol__pop { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 34px; height: 100px; padding: 10px 0; border-radius: 16px; background: var(--bar); -webkit-backdrop-filter: saturate(1.8) blur(22px); backdrop-filter: saturate(1.8) blur(22px); border: 1px solid var(--hair-2); box-shadow: var(--float); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 80; }
.dp-vol__pop[hidden] { display: none !important; }
.dp-vol__bar { position: relative; width: 5px; height: 72px; border-radius: 6px; background: var(--fill-3); cursor: pointer; touch-action: none; }
.dp-vol__fill { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; border-radius: 6px; background: var(--ink); }
.dp-vol__knob { position: absolute; bottom: 100%; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; margin-bottom: -5.5px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .12s; }
.dp-vol__bar:hover .dp-vol__knob { transform: scale(1.3); }
.dpb--vol.is-muted { color: var(--faint); opacity: .7; }

.dplayer[data-noaudio] .dplayer__bar, .dplayer[data-noaudio] .dplayer__time, .dplayer[data-noaudio] [data-dp="rate"], .dplayer[data-noaudio] [data-dp="loop"], .dplayer[data-noaudio] .dp-vol { opacity: .35; pointer-events: none; }
.dplayer[data-noaudio] .dpb--play { background: var(--fill-2); color: var(--faint); box-shadow: none; }

/* Sync mode */
.sync { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 90; width: min(640px, calc(100% - 16px)); padding: 14px; border-radius: 20px; background: var(--ink); color: var(--bg); box-shadow: var(--float); font-size: 14px; }
.sync b { color: #ffffff; }
.sync__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sync .btn--ghost { background: rgba(255,255,255,.12); color: var(--bg); box-shadow: none; }
.sync kbd { background: rgba(255,255,255,.15); color: var(--bg); }

/* Settings grid */
.cc__grid--dua { grid-template-rows: 88px 92px 92px 92px; }
.cc__grid--dua > [data-du-act="follow"] { grid-area: 1 / 4; }
.cc__grid--dua > [data-du-act="tr"] { grid-area: 2 / 3; }
.cc__grid--dua > [data-du-act="en"] { grid-area: 2 / 4; }
.cc__grid--dua > [data-vs="arsize"] { grid-area: 3 / 3 / span 2; }
.cc__grid--dua > [data-vs="bright"] { grid-area: 3 / 4 / span 2; }
.cc__grid--dua > [data-du-act="offline"] { grid-area: 4 / 1; }
.cc__grid--dua > [data-du-act="focus"] { grid-area: 4 / 2; }
.tile.is-on .tile__b { background: var(--green); color: var(--on-green); }
.tile__glyph { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.tile__arab, .vs__glyph { font-family: "IS Arabic", serif; font-size: 30px; line-height: 1; }
.vs__glyph { position: relative; z-index: 1; font-size: 24px; }
.fcards--ar .fcard { flex-basis: calc((100% - 24px) / 3.4); }
.fcard--ar span { font-size: 26px; line-height: 1.6; direction: rtl; }

@media (max-width: 520px) {
	:root { --du-ar-size: 28px; }
	.vl { grid-template-columns: 28px 1fr; gap: 8px; padding: 14px 10px 16px 4px; }
	.vl__n { width: 26px; height: 26px; font-size: 11px; }
	.vl__rep { left: 36px; }
	.dpb { min-width: 38px; height: 38px; }
	.dpb--play { width: 50px; height: 50px; }
	.dpb--aa { padding: 0 10px; height: 36px; font-size: 11.5px; }
	.dplayer { padding: 8px 8px 6px; }
	.du__extra { padding: 16px; }
	.du__rel-grid { grid-template-columns: 1fr; }
}

/* Cleaner read-along page ------------------------------------------------- */
.du__hero::before { opacity: .6; }
.du__artitle { font-size: clamp(42px, 8vw, 72px); }
.du__title { font-size: clamp(28px, 4.4vw, 42px); }
.du__sub { font-size: 16.5px; }
.du__chips { gap: 0; margin-top: 10px; }
.du__chips li { padding: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--faint); }
.du__chips li + li:not([hidden])::before { content: "·"; margin: 0 8px; }
.du__cta { margin-top: 20px; }
.du__show { gap: 0; padding: 3px; border-radius: 999px; background: var(--fill); }
.du__show .chip { background: transparent; color: var(--muted); border: 0; box-shadow: none; padding: 7px 14px; font-size: 13.5px; }
.du__show .chip[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 0 0 .5px var(--hair); }
.du__show .chip[aria-pressed="false"] { text-decoration: none; opacity: 1; }
.du__note { font-size: 14px; color: var(--faint); max-width: 520px; }
.du__sh { font-size: 12.5px; letter-spacing: .12em; margin: 40px 0 10px; }
.du__sh .orn { width: 120px; opacity: .7; }
.du__list { gap: 0; }
.vl { grid-template-columns: 26px 1fr; gap: 14px; padding: 22px 10px 24px 4px; border-radius: 0; }
.vl + .vl { border-top: .5px solid var(--hair); }
.vl__n { width: 26px; height: 26px; background: transparent; font-size: 12px; color: var(--faint); }
.vl__tr { margin-top: 10px; font-size: calc(var(--du-en-size) * .92); opacity: .9; }
.vl__en { margin-top: 4px; color: var(--muted); }
.vl__rep { left: 40px; top: 10px; }
@media (hover: hover) { .vl:hover { background: transparent; } .vl:hover .vl__n { background: var(--fill); color: var(--ink); } }
.vl.is-now { background: var(--green-soft); border-radius: 0; border-color: transparent; box-shadow: none; }
.vl.is-now + .vl { border-color: transparent; }
.dplayer[data-noaudio] .dplayer__top, .dplayer[data-noaudio] .dplayer__bar, .dplayer[data-noaudio] [data-dp="rate"], .dplayer[data-noaudio] [data-dp="loop"], .dplayer[data-noaudio] .dp-vol, .dplayer[data-noaudio] .dpb--play { display: none; }
.dplayer[data-noaudio] { width: auto; padding: 5px; border-radius: 999px; }
.dplayer[data-noaudio] .dplayer__ctrls { margin: 0; gap: 2px; justify-content: center; }

/* =========================================================================
   Single recitation page: calm, elegant header and centered verses
   ========================================================================= */
.du__hero { padding: clamp(20px, 3.5vw, 40px) 0 clamp(16px, 2.5vw, 24px); text-align: center; }
.du__hero::before { display: none; }
.du__hero .crumbs { justify-content: center; margin-bottom: 16px; }
.du__banner { position: relative; max-width: 780px; margin: 0 auto; padding: 0; background: none; box-shadow: none; color: var(--ink); text-align: center; }
.du__banner::after, .du__star { display: none; }
.du__kind { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--fill); border: 1px solid var(--hair-2); font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.du__artitle { font-family: "IS Al Majeed Quranic", "IS Arabic", serif; font-size: clamp(38px, 6.5vw, 64px); line-height: 1.35; color: var(--ink); margin: 14px 0 6px; direction: rtl; text-align: center; }
.du__title { font-size: clamp(26px, 4vw, 38px); font-weight: 780; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); margin: 4px 0 0; text-align: center; }
.du__sub { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 6px; text-align: center; }
.du__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; }
.du__chips li { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.du__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin-top: 20px; }
.du__note { max-width: 620px; margin: 18px auto 0; font-size: 14px; color: var(--muted); line-height: 1.6; text-align: center; padding-top: 14px; border-top: .5px solid var(--hair); }
.du__banner .btn--primary { background: var(--ink); color: var(--bg); box-shadow: var(--press); }
.du__banner .btn--primary:hover { opacity: .92; }
.du__banner .chip { background: var(--fill); color: var(--muted); border: 1px solid var(--hair-2); }
.du__banner .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.du__banner .chip--yt { background: rgba(239, 68, 68, .08); color: #dc2626; border: 1px solid rgba(239, 68, 68, .2); }
[data-mode="dark"] .du__banner .chip--yt, [data-mode="gray"] .du__banner .chip--yt { background: rgba(248, 113, 113, .12); color: #f87171; border-color: rgba(248, 113, 113, .25); }

/* more to read */
.du__more { margin-top: 46px; text-align: center; }
.du__more-h { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.03em; margin-bottom: 18px; }
.du__more .rgrid { text-align: left; }
.du__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; padding: 10px 18px; border-radius: 999px; background: var(--fill); font-weight: 700; color: var(--ink); }
.du__all:hover { background: var(--fill-2); }
.du__all .icon { width: 16px; height: 16px; }
