:root {
  --bg: #07140f;
  --bg-soft: #0d2119;
  --card: rgba(12, 31, 23, 0.82);
  --card-border: rgba(237, 247, 241, 0.1);
  --text: #f4fbf7;
  --muted: #bfd1c5;
  --accent: #22c55e;
  --accent-2: #d4af37;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.16), transparent 24%),
  linear-gradient(180deg, #091711 0%, var(--bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

body.page-entered {
  opacity: 1;
  transform: translateY(0);
}

body.page-exit {
  opacity: 0;
  transform: translateY(4px);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f4fbf7;
  color: #07140f;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  width: 280px;
  height: 280px;
  background: rgba(34, 197, 94, 0.2);
  top: 8%;
  left: -80px;
}

.ambient-two {
  width: 340px;
  height: 340px;
  background: rgba(212, 175, 55, 0.14);
  bottom: 12%;
  right: -110px;
}

.topbar,
main,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2dd36f, #1b7f43);
  color: white;
  font-family: "Cinzel", serif;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #f8e8b8;
  background: rgba(212, 175, 55, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.01em;
  line-height: 1.08;
}

.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(3rem, 6vw, 5.4rem);
  max-width: 11ch;
}

.hero p,
.panel-text p,
.feature-card p,
.cta p,
.panel-quote p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.hero p {
  max-width: 58ch;
  margin-bottom: 28px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.nav a:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.9);
  outline-offset: 3px;
}

.button-primary {
  color: #03120a;
  background: linear-gradient(135deg, #87f0a8, #22c55e);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  max-width: 560px;
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 390px);
  border-radius: 38px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.phone-top {
  width: 38%;
  height: 18px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.screen {
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.2), transparent 36%),
    linear-gradient(180deg, #0f241b 0%, #0a1712 100%);
  padding: 18px;
  min-height: 560px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(34, 197, 94, 0.12);
  color: #aaf0c0;
  font-size: 0.85rem;
}

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

.tile {
  min-height: 130px;
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tile-wide {
  grid-column: span 2;
  min-height: 182px;
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.2), rgba(255, 255, 255, 0.05));
}

.tile-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.tile strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 32px 0 20px;
}

.section-heading {
  margin-bottom: 22px;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 16px 0 0;
  max-width: 14ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.surah-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.searchbox {
  flex: 1;
  display: grid;
  gap: 10px;
  max-width: 520px;
  color: var(--muted);
  font-weight: 600;
}

.searchbox input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  outline: none;
}

.searchbox input:focus {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.surah-count {
  color: var(--muted);
  font-size: 0.96rem;
}

.panel-navigate {
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.035));
}

.control-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.control-row-tight {
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.field {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.field span {
  font-size: 0.95rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.section-result {
  margin-top: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  line-height: 1.7;
}

.section-result-loading {
  opacity: 0.92;
}

.section-result-status {
  color: var(--muted);
  font-weight: 600;
}

.section-result-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-result-head h3 {
  margin: 8px 0 0;
  font-size: 1.7rem;
  color: var(--text);
}

.section-result-kicker {
  color: #f4e8c4;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.section-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.section-result-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
}

.section-ayah-grid {
  display: grid;
  gap: 14px;
}

.ayah-card-section {
  background: rgba(255, 255, 255, 0.04);
}

.ayah-card-section .bookmark-card-top {
  margin-bottom: 8px;
}

.bookmark-list {
  display: grid;
  gap: 14px;
}

.bookmark-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bookmark-card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.bookmark-card-title {
  font-weight: 800;
  font-size: 1.04rem;
  color: var(--text);
}

.bookmark-card-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.bookmark-card-arabic {
  margin: 16px 0 10px;
  text-align: right;
  direction: rtl;
  font-family: "Cinzel", serif;
  font-size: 1.45rem;
  line-height: 2.1;
  color: #f9f5e8;
}

.bookmark-card-translation {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.bookmark-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tasbih-panel {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
}

.tasbih-display {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-bottom: 18px;
}

.tasbih-dhikr {
  color: #f4e8c4;
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tasbih-count {
  font-family: "Cinzel", serif;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  color: var(--text);
}

.tasbih-goal {
  color: var(--muted);
  font-weight: 600;
}

.section + .section {
  margin-top: 4px;
}

.section .panel {
  overflow: hidden;
}

.surah-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 920px;
}

.surah-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.surah-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.25);
  background: rgba(255, 255, 255, 0.07);
}

.surah-card:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.9);
  outline-offset: 3px;
}

.surah-number {
  width: 54px;
  height: 54px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #2dd36f, #1b7f43);
  color: white;
  font-weight: 800;
}

.surah-body {
  flex: 1;
  min-width: 0;
}

.surah-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.surah-topline h3 {
  margin: 0;
  font-size: 1.08rem;
}

.surah-topline span,
.surah-meta,
.surah-arabic {
  color: var(--muted);
}

.surah-arabic {
  margin: 10px 0 6px;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.surah-meta {
  margin: 0;
  font-size: 0.94rem;
}

.surah-preview {
  margin: 8px 0 6px;
  color: #f4e8c4;
  line-height: 1.6;
  font-size: 0.95rem;
}

.detail-page,
.reader-page {
  padding-bottom: 180px;
}

.reader-section {
  margin-bottom: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 18px;
  color: #dbe7dd;
  font-weight: 700;
}

.back-link:hover {
  color: var(--text);
}

.reader-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.reader-nav-center {
  display: flex;
  justify-content: center;
}

.reader-nav-center span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 700;
}

.reader-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
}

.reader-nav-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.reader-nav-button,
.reader-nav-center span,
.reader-preview-card,
.ayah-card,
.bottom-player {
  backdrop-filter: blur(18px);
}

.reader-hero,
.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.reader-cover,
.reader-panel,
.detail-hero-copy,
.detail-hero-panel {
  border-radius: 28px;
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 28px;
}

.reader-cover h1,
.detail-hero-copy h1 {
  margin: 16px 0 12px;
  font-family: "Cinzel", serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.04;
}

.reader-cover p,
.detail-hero-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.reader-stats,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reader-stats span,
.detail-stats span,
.detail-loading {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.reader-panel,
.detail-hero-panel {
  display: grid;
  place-items: center;
  min-height: 240px;
  background:
    radial-gradient(circle at top, rgba(34, 197, 94, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.reader-panel {
  place-items: stretch;
  gap: 18px;
  position: sticky;
  top: 18px;
  align-self: start;
}

.reader-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.reader-panel-kicker {
  margin: 0 0 8px;
  color: #f4e8c4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  font-weight: 800;
}

.reader-panel h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 1.5rem;
}

.reader-live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #b7f7c8;
  font-size: 0.9rem;
  font-weight: 800;
}

.reader-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.reader-audio-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.045);
}

.reader-preview {
  margin: 18px 0 0;
}

.reader-page-separator {
  max-width: 760px;
  margin: 24px auto 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-page-separator::before,
.reader-page-separator::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

.reader-page-separator span,
.reader-page-separator em {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(7, 20, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-page-separator em {
  color: #f4e8c4;
  font-style: normal;
}

.reader-page-separator-soft {
  color: #b7f7c8;
}

.reader-preview-card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 26px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(77, 186, 230, 0.14), transparent 28%),
    linear-gradient(180deg, #fbfbf7 0%, #f4f3ec 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
  color: #0f172a;
}

.reader-preview-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border: 2px solid #e11d48;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #e11d48;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.85);
}

.reader-preview-body {
  padding: 40px 6px 4px 76px;
}

.reader-preview-surah {
  margin-bottom: 18px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
}

.reader-preview-arabic {
  margin: 0 0 16px;
  direction: rtl;
  text-align: right;
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.75;
  color: #111827;
}

.reader-preview-translation {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: #4b5563;
  max-width: 24ch;
}

.bottom-player {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  z-index: 50;
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 20, 15, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
}

.bottom-player-scroll {
  display: grid;
  gap: 8px;
}

.bottom-player-scroll-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bottom-player-scroll-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4af37, #87f0a8);
  box-shadow: 0 0 20px rgba(135, 240, 168, 0.4);
  transition: width 120ms linear;
}

.bottom-player-scroll-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.bottom-player-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.bottom-player-kicker {
  color: #f4e8c4;
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 4px;
}

.bottom-player-title {
  font-family: "Cinzel", serif;
  font-size: 1.12rem;
  color: var(--text);
}

.bottom-player-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bottom-player-pill {
  border: 0;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #b7f7c8;
  font-weight: 800;
  cursor: pointer;
}

.bottom-player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.bottom-player-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
}

.bottom-player-button-main {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #87f0a8, #22c55e);
  color: #03120a;
  font-size: 1.1rem;
}

.bottom-player-progress {
  display: grid;
  gap: 8px;
}

.bottom-player-progress input[type="range"] {
  width: 100%;
}

.bottom-player-time {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-ayah-preview {
  font-family: "Cinzel", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.35;
  text-align: center;
  color: #f7f1de;
}

.audio-card {
  width: min(100%, 460px);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.audio-card .audio-title {
  margin: 0 0 12px;
  font-weight: 800;
}

.audio-now {
  margin: 0 0 12px;
  color: #f4e8c4;
  line-height: 1.7;
}

.audio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.audio-controls .button {
  min-height: 42px;
  padding: 0 14px;
}

.speed-control {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.speed-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speed-row input[type="range"] {
  flex: 1;
}

.speed-row output {
  min-width: 44px;
  text-align: right;
  color: var(--text);
  font-weight: 700;
}

.audio-progress {
  display: grid;
  gap: 8px;
}

.audio-progress input[type="range"] {
  width: 100%;
}

.audio-time {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-loading {
  margin-bottom: 16px;
  width: fit-content;
}

.ayah-list {
  display: grid;
  gap: 14px;
}

.ayah-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(77, 186, 230, 0.06), transparent 22%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-bottom: 220px;
}

.ayah-card-playing {
  border-color: rgba(34, 197, 94, 0.55);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.12);
}

.ayah-number {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #2dd36f, #1b7f43);
  color: white;
  font-weight: 800;
}

.ayah-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.ayah-actions .button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.ayah-content {
  min-width: 0;
}

.ayah-card .ayah-content {
  padding-top: 2px;
}

.ayah-arabic {
  margin: 0 0 12px;
  text-align: right;
  direction: rtl;
  font-size: 1.9rem;
  line-height: 2.35;
  color: #f9f5e8;
  font-family: "Cinzel", serif;
}

.ayah-translation {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.04rem;
}

.feature-card,
.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.feature-card {
  padding: 24px;
  min-height: 240px;
}

.brand,
.hero-copy,
.hero-panel,
.feature-card,
.panel,
.cta {
  animation: rise 0.7s ease both;
}

.hero-panel {
  animation-delay: 0.08s;
}

.feature-card:nth-child(2) {
  animation-delay: 0.05s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.1s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.12);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-card h3,
.panel-text h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 28px;
}

.panel-text ul {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.8;
}

.panel-quote {
  display: grid;
  place-items: center;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(34, 197, 94, 0.08)),
    var(--card);
}

.panel-quote p {
  font-family: "Cinzel", serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: #f7f1de;
  text-align: center;
  max-width: 16ch;
  line-height: 1.35;
}

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 28px 0 46px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at left, rgba(34, 197, 94, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta h2 {
  max-width: 18ch;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .split,
  .surah-grid,
  .reader-hero,
  .detail-hero,
  .control-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta {
    display: grid;
    justify-items: start;
  }

  .section-result-head,
  .bookmark-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .reader-panel-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .reader-nav {
    grid-template-columns: 1fr;
  }

  .reader-nav-center {
    justify-content: flex-start;
  }

  .reader-page-separator {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero-stats,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .surah-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .control-row-tight {
    grid-template-columns: 1fr;
  }

  .field input,
  .field select {
    min-height: 48px;
  }

  .reader-select-grid {
    grid-template-columns: 1fr;
  }

  .reader-preview-card {
    padding: 20px 18px 22px;
  }

  .reader-preview-body {
    padding: 52px 0 0 58px;
  }

  .reader-preview-translation {
    max-width: none;
  }

  .ayah-card {
    grid-template-columns: 1fr;
  }

  .ayah-number {
    width: 52px;
    height: 52px;
  }

  .section h2,
  .hero h1 {
    max-width: none;
  }

  .screen {
    min-height: auto;
  }

  .panel-navigate,
  .tasbih-panel,
  .panel {
    padding: 20px;
  }

  .reader-page {
    padding-bottom: 200px;
  }

  .bottom-player {
    width: calc(100% - 24px);
    bottom: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .bottom-player-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .bottom-player-controls {
    justify-content: space-between;
  }

  .reader-page-separator {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
