/* Noor Salam: тёмно-зелёный фон, золотые акценты. */
:root {
  --bg: #0a1f14;
  --bg-elev: #0f2b1c;
  --bg-card: #123524;
  --bg-card-hi: #17422d;
  --border: #1e4d34;
  --gold: #d4af37;
  --gold-soft: #c9a227;
  --text: #eef4ee;
  --text-dim: #8fae9c;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; } /* иначе .modal{display:flex} перебивает атрибут hidden */
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}
body { padding-bottom: 200px; } /* место под плеер */

.dev-banner {
  background: #3a2a00; color: var(--gold); font-size: 12px;
  text-align: center; padding: 6px; border-bottom: 1px solid var(--border);
}

.view { padding: 20px 16px; }

/* ── HOME ── */
.home-hero { text-align: center; padding: 18px 6px 22px; }
.bismillah {
  font-family: "Amiri", serif; font-size: 22px; color: var(--gold);
  direction: rtl; margin-bottom: 18px;
}
#greeting { margin: 0; font-size: 22px; font-weight: 800; }
.hero-sub { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; }

.reciter-block { display: flex; align-items: center; gap: 10px; margin: 8px 0 20px; }
.reciter-label { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.select-wrap { position: relative; flex: 1; }
#reciter {
  width: 100%; appearance: none; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 34px 12px 14px; font: 600 15px "Manrope"; cursor: pointer;
}
#reciter:focus { outline: none; border-color: var(--gold-soft); }
.chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); pointer-events: none; }

.btn-primary {
  width: 100%; border: none; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1200;
  font: 800 16px "Manrope"; padding: 16px; margin-bottom: 12px;
}
.btn-primary.big { font-size: 18px; padding: 18px; }
.btn-primary:active { filter: brightness(0.95); }
.btn-ghost {
  width: 100%; border: 1px solid var(--border); border-radius: 14px; cursor: pointer;
  background: var(--bg-card); color: var(--text); font: 600 15px "Manrope"; padding: 14px; margin-bottom: 12px;
}
.btn-ghost:active { background: var(--bg-card-hi); }
.btn-premium {
  width: 100%; border: 1px solid var(--gold-soft); border-radius: 14px; cursor: pointer;
  background: transparent; color: var(--gold); font: 700 15px "Manrope"; padding: 14px;
}

/* ── CATALOG ── */
.cat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.icon-btn {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  width: 40px; height: 40px; border-radius: 12px; font-size: 24px; line-height: 1; cursor: pointer;
}
.cat-title { font-weight: 700; font-size: 17px; }
.surah-list { display: flex; flex-direction: column; gap: 8px; }
.surah-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 12px; cursor: pointer; color: var(--text);
}
.surah-row:active { background: var(--bg-card-hi); }
.sr-num {
  flex-shrink: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-soft); color: var(--gold); border-radius: 50%; font: 700 12px "Manrope";
}
.sr-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-ar { font-family: "Amiri", serif; font-size: 18px; direction: rtl; }
.sr-ru { font-size: 12px; color: var(--text-dim); }
.sr-play { color: var(--gold); font-size: 14px; }

/* ── PLAYER ── */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: linear-gradient(180deg, var(--bg-elev), #0b241799);
  backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
}
.pl-info { text-align: center; margin-bottom: 8px; }
.pl-ar { font-family: "Amiri", serif; font-size: 20px; color: var(--gold); direction: rtl; }
.pl-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.pl-seek { display: flex; align-items: center; gap: 10px; }
.pl-time { font-size: 11px; color: var(--text-dim); width: 34px; text-align: center; }
.pl-range {
  flex: 1; appearance: none; height: 4px; border-radius: 3px; background: var(--border); cursor: pointer;
}
.pl-range::-webkit-slider-thumb {
  appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--gold);
}
.pl-range::-moz-range-thumb { width: 15px; height: 15px; border: none; border-radius: 50%; background: var(--gold); }
.pl-controls { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 8px 0; }
.pl-btn { background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }
.pl-btn.play {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #1a1200; font-size: 24px;
}
.pl-bg {
  width: 100%; margin-top: 4px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text-dim); font: 600 13px "Manrope"; padding: 11px; cursor: pointer;
}
.pl-bg:active { background: var(--bg-card-hi); color: var(--text); }

/* ── PAYWALL ── */
.modal {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65); padding: 24px;
}
.modal-card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px;
  padding: 26px 22px; max-width: 360px; width: 100%; text-align: center;
}
.modal-star { font-size: 40px; }
.modal-card h2 { margin: 8px 0 10px; color: var(--gold); }
.modal-card p { color: var(--text); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.modal-feat { color: var(--text-dim) !important; font-size: 12.5px !important; margin-bottom: 18px !important; }
.modal-card .btn-primary { margin-bottom: 10px; }

/* ── TOAST ── */
.toast {
  position: fixed; left: 50%; bottom: 210px; transform: translateX(-50%); z-index: 80;
  background: #05130c; border: 1px solid var(--border); color: var(--text);
  padding: 10px 16px; border-radius: 12px; font-size: 13px; max-width: 90%; text-align: center;
}
