/* =====================================================
   Ayat v2 — Design System
   "Noor & Sakina" — Designed with Stitch MCP
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;600;700;900&family=Manrope:wght@300;400;600;700&family=Noto+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/* ── CSS Variables — Noor & Sakina Design System (Stitch) ── */
:root {
  /* Surfaces — tonal layering, no harsh lines */
  --bg-primary:          #0d1320;   /* surface */
  --bg-secondary:        #151b29;   /* surface-container-low */
  --bg-card:             rgba(47, 53, 67, 0.55); /* surface-container-highest + glass */
  --bg-card-hover:       rgba(51, 57, 72, 0.65);
  --surface-container:   #191f2d;
  --surface-bright:      #333948;

  /* Ghost borders — felt, not seen */
  --border:              rgba(60, 74, 66, 0.15);
  --border-glow:         rgba(78, 222, 163, 0.25);

  /* Primary — Emerald healing light */
  --emerald:             #4edea3;
  --emerald-dim:         #10b981;
  --emerald-glow:        rgba(78, 222, 163, 0.15);

  /* Secondary — Gold of divine protection */
  --gold:                #ffb95f;
  --gold-dim:            #ee9800;
  --gold-glow:           rgba(255, 185, 95, 0.15);

  /* Text */
  --text-primary:        #dde2f5;   /* on-surface */
  --text-secondary:      #bbcabf;   /* on-surface-variant */
  --text-muted:          rgba(187, 202, 191, 0.45);

  /* Fonts — Stitch Noor & Sakina spec */
  --font-arabic:         'Amiri', 'Noto Serif', 'Traditional Arabic', serif;
  --font-heading:        'Noto Serif', 'Amiri', serif;
  --font-ui:             'Manrope', 'Cairo', sans-serif;

  --radius-card:         16px;
  --radius-btn:          9999px;
  --shadow-card:         0 8px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow:         0 0 50px rgba(78, 222, 163, 0.1);

  --transition:          0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast:     0.2s ease;

  --player-height:       90px;
  --nav-width:           60px;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: relative;
  /* Subtle starfield feel with subtle Islamic geometric pattern overlay */
  background-image:
    radial-gradient(ellipse at 10% 20%, rgba(78,222,163,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 80%, rgba(255,185,95,0.04) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' width='80' height='80'%3E%3Cpath fill='%234edea3' fill-opacity='0.03' d='M40 0l10 10 30-10-10 30 10 10-30 10-10 30-10-30-30-10 10-30-10-10 30-10z'/%3E%3C/svg%3E");
}

/* ── Scrollable Container ── */
#scroll-container {
  width: 100%;
  height: calc(100vh - var(--player-height));
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
  z-index: 1;
}

#scroll-container::-webkit-scrollbar {
  display: none;
}

/* ── Section ── */
.section {
  height: calc(100vh - var(--player-height));
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px 20px 20px calc(var(--nav-width) + 20px);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animated Background ── */
.section-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ── Geometric Pattern ── */
.section-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(16,185,129,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245,158,11,0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Card ── */
.verse-card {
  background: var(--bg-card);
  border: 1px solid var(--border); /* ghost border — felt, not seen */
  border-radius: var(--radius-card);
  padding: 20px 32px;
  max-width: 1040px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none; /* Hide scrollbar for internal overflow */
  position: relative;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.verse-card::-webkit-scrollbar {
  display: none;
}

.section.active .verse-card {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Top accent line */
.verse-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 20px;
  left: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--emerald)), transparent);
  border-radius: 1px;
  opacity: 0.5;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  /* No divider lines — extra whitespace instead (Stitch guideline) */
}

.section-icon {
  font-size: 2.2rem;
  margin-bottom: 6px;
  display: block;
  color: var(--gold);
  animation: pulse-icon 3s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 185, 95, 0.4));
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.section-subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.repeat-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 16px;
  background: var(--gold-dim);
  border-radius: 9999px;
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  color: #472a00;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 185, 95, 0.3);
}

/* ── Verse Group ── */
.verse-group {
  margin-bottom: 28px;
}

.verse-group:last-child {
  margin-bottom: 0;
}

.group-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-right: 10px;
  border-right: 2px solid var(--accent, var(--emerald));
  opacity: 0.8;
}

/* ── Arabic Text ── */
.verse-content {
  position: relative;
}

.ayah {
  cursor: pointer;
  border-radius: 6px;
  padding: 0 4px;
  transition: color var(--transition-fast), text-shadow var(--transition-fast), background var(--transition-fast);
}

.ayah:hover {
  color: var(--emerald);
  text-shadow: 0 0 16px rgba(78, 222, 163, 0.4);
  background: rgba(78, 222, 163, 0.05);
}

.ayah.playing {
  color: var(--emerald);
  text-shadow: 0 0 16px rgba(78, 222, 163, 0.5);
  background: rgba(78, 222, 163, 0.1);
}

.arabic-text {
  font-family: var(--font-arabic);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.85;
  text-align: center; /* better balance for single verses */
  color: var(--text-primary);
  letter-spacing: 0.02em;
  word-spacing: 0.15em;
  position: relative;
}

.bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  text-align: center;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0.9;
}

.arabic-text.loading {
  opacity: 0.4;
}

.arabic-text.loading::after {
  content: 'جاري التحميل...';
  font-size: 1rem;
  color: var(--text-muted);
  display: block;
  text-align: center;
  margin-top: 12px;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Notes Section ── */
.notes-section {
  flex-direction: column;
  gap: 0;
}

.notes-card {
  max-width: 1040px;
  width: 100%;
}

.notes-title {
  font-family: var(--font-arabic);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  text-align: center;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 12px;
  margin-bottom: 14px;
  transition: background var(--transition-fast);
}

.note-item:hover {
  background: rgba(245, 158, 11, 0.1);
}

.note-item:last-child {
  margin-bottom: 0;
}

.note-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.note-text {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* ── Side Navigation Dots — Glowing Status Indicators (Stitch) ── */
#side-nav {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  z-index: 100;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-dot::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-arabic);
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  background: var(--surface-container);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.nav-dot:hover::before {
  opacity: 1;
}

/* Glowing pulse animation (Stitch Noor & Sakina spec) */
.nav-dot.active {
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(78, 222, 163, 0.4);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(78, 222, 163, 0.4); transform: scale(1.4); }
  70%  { box-shadow: 0 0 0 8px rgba(78, 222, 163, 0); transform: scale(1.4); }
  100% { box-shadow: 0 0 0 0 rgba(78, 222, 163, 0); transform: scale(1.4); }
}

.nav-dot:hover:not(.active) {
  background: var(--text-secondary);
  transform: scale(1.2);
}

/* ── Arrow Navigation ── */
#nav-arrows {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--player-height) + 20px);
  display: flex;
  gap: 12px;
  z-index: 100;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

#nav-arrows:hover {
  opacity: 1;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.arrow-btn:hover:not(:disabled) {
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
  transform: scale(1.1);
}

.arrow-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* ── Audio Player — Glassmorphic dock (Stitch spec) ── */
#audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--player-height);
  background: rgba(13, 19, 32, 0.75);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  z-index: 200;
}

.player-info {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  max-width: 200px;
}

.player-section-name {
  font-family: var(--font-arabic);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-verse-indicator {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  direction: ltr;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.ctrl-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Play button — emerald gradient (Stitch spec) */
.ctrl-btn.play-btn {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dim));
  border: none;
  color: #002113;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(78, 222, 163, 0.35), 0 4px 12px rgba(0,0,0,0.3);
}

.ctrl-btn.play-btn:hover {
  transform: scale(1.07);
  box-shadow: 0 0 30px rgba(78, 222, 163, 0.55), 0 6px 16px rgba(0,0,0,0.4);
}

.ctrl-btn.play-btn.loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.player-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.progress-bar-container {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  overflow: visible;
}

/* Progress fill — emerald with outer glow (Stitch spec) */
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  border-radius: 4px;
  transition: width 0.1s linear;
  position: relative;
  box-shadow: 0 0 8px rgba(78, 222, 163, 0.5);
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.progress-bar-container:hover .progress-bar-fill::after {
  opacity: 1;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  direction: ltr;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.volume-icon {
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.volume-slider {
  -webkit-appearance: none;
  width: 80px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald);
  cursor: pointer;
}

/* ── Section Progress Bar (top) ── */
#progress-line {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width 0.3s ease;
  z-index: 300;
  box-shadow: 0 0 10px var(--emerald);
}

/* ── Entry Overlay (Splash Screen) ── */
#entry-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  overflow: hidden;
}

#entry-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Ethereal Background Orbs ── */
.splash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: blur(100px);
  opacity: 0.5;
}

.splash-orb {
  position: absolute;
  border-radius: 50%;
  animation: orb-float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--emerald-glow);
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--gold-glow);
  bottom: -5%;
  right: -5%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(78, 222, 163, 0.1);
  top: 40%;
  left: 50%;
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 30px) scale(1.1); }
  66% { transform: translate(-30px, 50px) scale(0.9); }
}

/* ── Content Reveal ── */
.entry-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-symbol {
  font-size: 5rem;
  margin-bottom: 24px;
  color: var(--gold);
  animation: 
    reveal-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    breathe-radiant 4s ease-in-out infinite;
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(255, 185, 95, 0.4));
}

.entry-title {
  font-family: var(--font-arabic);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 40px;
  opacity: 0;
  animation: reveal-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
  position: relative;
  overflow: hidden;
}

/* Text Shimmer Effect */
.entry-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  animation: text-shimmer 4s ease-in-out infinite 2s;
}

@keyframes text-shimmer {
  0% { left: -150%; }
  30%, 100% { left: 150%; }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes breathe-radiant {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255, 185, 95, 0.4)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 40px rgba(255, 185, 95, 0.7)); }
}

/* ── Start Button ── */
.btn-start-app {
  padding: 18px 72px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #1a1a1a;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(255, 185, 95, 0.3), 0 0 0 0 rgba(255, 185, 95, 0.2);
  opacity: 0;
  animation: 
    reveal-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards,
    btn-pulse 2s ease-in-out infinite 1.5s;
}

.btn-start-app:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(255, 185, 95, 0.5), 0 0 20px rgba(255, 185, 95, 0.3);
  filter: brightness(1.1);
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 185, 95, 0.3), 0 0 0 0 rgba(255, 185, 95, 0.2); }
  50% { box-shadow: 0 4px 25px rgba(255, 185, 95, 0.4), 0 0 20px 10px rgba(255, 185, 95, 0); }
}

.entry-footer {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  opacity: 0;
  animation: reveal-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.entry-footer a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  margin-right: 4px;
  transition: all var(--transition-fast);
  position: relative;
}

.entry-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.entry-footer a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--gold);
}

.entry-footer a:hover::after {
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root {
    --player-height: 80px;
    --nav-width: 36px;
  }

  .verse-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .section {
    padding: 20px 12px 20px calc(var(--nav-width) + 12px);
  }

  .arabic-text {
    font-size: 1.2rem;
    line-height: 2;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .player-volume {
    display: none;
  }

  .player-info {
    min-width: 100px;
    max-width: 120px;
  }

  #nav-arrows {
    gap: 8px;
  }

  .arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .verse-card {
    padding: 20px 16px;
  }

  .section-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .arabic-text {
    font-size: 1.1rem;
    line-height: 1.9;
  }

  .ctrl-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .ctrl-btn.play-btn {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
}

/* ── Scrollbar for mobile fallback ── */
@media (min-width: 1200px) {
  .verse-card {
    padding: 56px 72px;
  }
}

/* ── Bismillah decoration ── */
.bismillah {
  text-align: center;
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

/* ── Ayah number badge ── */
.ayah-num {
  font-family: var(--font-arabic);
  font-size: 1.1em;
  font-weight: 700;
  color: var(--gold);
  margin: 0 4px;
  display: inline;
  pointer-events: none; /* Make clicking easier on the surrounding span */
}

/* ── Audio fetching indicator ── */
.fetching-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.fetching-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  animation: bounce-dot 1.4s ease-in-out infinite;
}
.fetching-dot:nth-child(2) { animation-delay: 0.2s; }
.fetching-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Section transition states ── */
@keyframes slide-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section.entering .verse-card {
  animation: slide-in-up 0.5s ease forwards;
}
