/* Qurany Black Calm UI — visual refinement layer. The original styles.css remains intact. */
:root {
  --bg: #050608;
  --bg-elevated: #0b0c0e;
  --sidebar-bg: #121212;
  --surface: #141517;
  --surface-2: #1b1c1f;
  --surface-hover: #242528;
  --text: #ffffff;
  --muted: #92959b;
  --line: rgba(255,255,255,.085);
  --line-strong: rgba(255,255,255,.16);
  --lime: #ffffff;
  --lime-ink: #000000;
  --lime-soft: rgba(255,255,255,.09);
  --lav: #4ea1f3;
  --link-blue: #4ea1f3;
  --danger: #ff5c6c;
  --shadow-lg: 0 24px 64px rgba(0,0,0,.72);
  --shadow-md: 0 12px 32px rgba(0,0,0,.52);
  color-scheme: dark;
}
body.light {
  --bg: #f7f7f8; --bg-elevated: #fff; --sidebar-bg: #f0f0f2;
  --surface: #fff; --surface-2: #e9e9ec; --surface-hover: #dedee3;
  --text: #101113; --muted: #6f7278; --line: rgba(0,0,0,.08);
  --line-strong: rgba(0,0,0,.15); --lime: #111214; --lime-ink: #fff;
  --lime-soft: rgba(0,0,0,.07); --link-blue: #2574d4;
}
body { user-select: auto; background: var(--bg); }
button, .nav-item, .reciter-row, .surah-row, .pick-card, .surah-chip { user-select: none; }
.ayah-text, .ayah-item, input, textarea, .admin-row-copy, .admin-track-copy { user-select: text; }
@media (min-width: 901px) {
  .sidebar { right: 12px; left: auto; top: 12px; bottom: 90px; width: 238px; border-radius: 18px; background: var(--sidebar-bg); border-color: var(--line); box-shadow: var(--shadow-md); }
  #app { margin-left: 0; margin-right: calc(238px + 24px); padding-top: 24px; }
  .mini-player { left: calc(238px + 28px); right: 28px; width: auto; max-width: none; border-radius: 17px; background: rgba(20,20,22,.94); }
  body.light .mini-player { background: rgba(255,255,255,.94); }
  .selected-reciter-strip { min-height: 218px; padding: 22px 0 18px 58px; gap: 28px; border-bottom: 1px solid var(--line); }
  .album-cover-wrap { width: 204px; height: 204px; flex-basis: 204px; border-radius: 50%; box-shadow: 0 18px 50px rgba(0,0,0,.34); }
  .selected-copy h1 { font-size: clamp(28px, 3vw, 38px); }
  .preview-pill-btn { min-height: 42px; padding-inline: 28px; box-shadow: 0 8px 22px rgba(255,255,255,.08); }
}
.section-block { margin-bottom: 38px; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { letter-spacing: -.25px; }
.see-all { color: var(--link-blue); }
.search-box, .home-filter, .filter-chip { background: var(--surface); border-color: var(--line); }
.home-filter.active, .filter-chip.active, .moshaf-chip.active { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.reciter-list.cards-row { grid-auto-columns: minmax(126px,136px); gap: 20px; padding: 4px 2px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.reciter-list.cards-row::-webkit-scrollbar { display: none; }
.reciter-row { scroll-snap-align: start; }
.avatar-wrap { border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.reciter-row.is-active .avatar-wrap { box-shadow: 0 0 0 2px var(--text), 0 8px 24px rgba(0,0,0,.28); }
.reciter-row strong { font-weight: 600; }
.surah-list { background: var(--bg-elevated); border-color: var(--line); border-radius: 18px; padding: 7px; }
.surah-row { min-height: 60px; padding: 10px 13px; }
.surah-row .num { border-radius: 10px; background: var(--surface-2); }
.surah-row:hover, .surah-row.is-active { background: var(--surface-hover); }
.surah-row.is-active .num { background: var(--lime); color: var(--lime-ink); }
.surah-row-actions button { transition: background .16s ease, color .16s ease, transform .16s ease; }
.surah-row-actions button:hover { transform: translateY(-1px); }
@media (max-width: 900px) {
  #app { background: var(--bg); }
  .album-hero-shell { margin-inline: -14px; padding: 0 14px 18px; }
  .selected-reciter-strip { position: relative; min-height: 430px; padding: 0 8px 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0; overflow: hidden; text-align: center; }
  .selected-reciter-strip::before { content: ""; position: absolute; inset: 0 -14px 30px; background: var(--surface-2); z-index: 0; }
  .selected-reciter-strip::after { content: ""; position: absolute; inset: 18% -14px 0; background: linear-gradient(to bottom, transparent 0%, var(--bg) 86%); z-index: 1; pointer-events: none; }
  .selected-reciter-strip .album-cover-wrap { position: absolute; inset: 0 -14px auto; width: calc(100% + 28px); height: 355px; max-width: none; border-radius: 0; border: 0; z-index: 0; -webkit-mask-image: none; mask-image: none; }
  .selected-reciter-strip .album-cover-wrap img { object-position: center 18%; }
  .selected-reciter-strip .selected-copy { position: relative; z-index: 2; width: 100%; align-items: center; text-align: center; margin-top: 0; }
  .selected-reciter-strip .selected-copy h1 { font-size: 27px; text-shadow: 0 2px 16px rgba(0,0,0,.8); }
  .selected-reciter-strip .selected-meta { font-size: 12px; color: rgba(255,255,255,.72); }
  .selected-reciter-strip .selected-actions { justify-content: center; margin-top: 13px; gap: 8px; }
  .selected-reciter-strip .preview-pill-btn { height: 44px; padding-inline: 32px; }
  .selected-reciter-strip .page-back-btn, .selected-reciter-strip .reciter-fav-action { top: 16px; z-index: 4; background: rgba(25,25,27,.72); border-color: rgba(255,255,255,.15); backdrop-filter: blur(12px); }
  .selected-reciter-strip .page-back-btn { left: 8px; }
  .selected-reciter-strip .reciter-fav-action { right: 8px; left: auto; }
  .surah-list { margin-top: -2px; }
  .reciter-list.cards-row { grid-auto-columns: minmax(108px,116px); gap: 15px; }
}
.mini-player { border-color: var(--line-strong); box-shadow: 0 12px 34px rgba(0,0,0,.48); }
.mini-play { background: var(--lime); color: var(--lime-ink); }
.mini-progress > span { background: var(--lime); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--link-blue); outline-offset: 2px; }
