/* ==========================================================================
   Al-Fath Platform - Reciter Video Showcase & Comprehensive Mushaf Reader
   Styling for Video Player, Enhanced Playlist, Quran.json Reader & Reciters
   ========================================================================== */

:root {
  --reciter-gold: #CD9F5C;
  --reciter-gold-light: #e6be7e;
  --reciter-gold-dark: #a2783a;
  --reciter-dark-navy: #081135;
  --reciter-deep-black: #020514;
  --reciter-bg-card: #ffffff;
  --reciter-border-light: rgba(205, 159, 92, 0.22);
  --reciter-text-main: #1e293b;
  --reciter-text-muted: #64748b;
  --reciter-mushaf-font-size: 24px;
}

body.page-reciter-videos {
  background-color: #f7f9fa;
  color: var(--reciter-text-main);
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ==========================================================================
   1. HERO BAR: ROYAL DARK NAVY & GOLD (IDENTICAL TO QURAN HERO SECTION)
   ========================================================================== */
.reciter-hero-bar {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background: radial-gradient(circle at 50% 25%, #081135 0%, #03081e 65%, #020514 100%) !important;
  border-bottom: 2px solid rgba(205, 159, 92, 0.35);
  box-shadow: 0 12px 36px rgba(2, 5, 20, 0.45);
  text-align: right;
}

/* Ambient Background Animations */
.reciter-hero-fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.reciter-hero-container {
  position: relative;
  z-index: 2;
}

.reciter-fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
}

.reciter-fx-orb.orb-gold {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(205, 159, 92, 0.32) 0%, rgba(205, 159, 92, 0) 70%);
  top: -90px;
  right: 14%;
  animation: orbFloatGold 13s ease-in-out infinite alternate;
}

.reciter-fx-orb.orb-emerald {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(30, 80, 175, 0.36) 0%, rgba(10, 30, 80, 0) 70%);
  bottom: -110px;
  left: 8%;
  animation: orbFloatSapphire 17s ease-in-out infinite alternate;
}

.reciter-fx-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: radial-gradient(rgba(205, 159, 92, 0.9) 1.2px, transparent 1.2px),
                    radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  animation: patternBreathe 12s ease-in-out infinite alternate;
}

.reciter-floating-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reciter-spark {
  position: absolute;
  color: #ffd79a;
  font-size: 15px;
  opacity: 0.35;
  text-shadow: 0 0 10px rgba(205, 159, 92, 0.7);
  user-select: none;
  animation: sparkDrift 7s ease-in-out infinite;
}

.reciter-spark.s1 { top: 20%; right: 14%; font-size: 18px; animation-delay: 0s; color: #ffd79a; }
.reciter-spark.s2 { top: 58%; right: 7%; font-size: 24px; animation-delay: 2.2s; color: #CD9F5C; opacity: 0.3; }
.reciter-spark.s3 { top: 16%; left: 12%; font-size: 16px; animation-delay: 4.2s; color: #fff3db; }
.reciter-spark.s4 { top: 64%; left: 8%; font-size: 22px; animation-delay: 1.6s; color: #CD9F5C; opacity: 0.35; }
.reciter-spark.s5 { top: 76%; right: 28%; font-size: 14px; animation-delay: 3s; color: #ffe6b5; }

@keyframes orbFloatGold {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 25px) scale(1.12); }
  100% { transform: translate(-25px, 45px) scale(0.94); }
}

@keyframes orbFloatSapphire {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, -25px) scale(1.1); }
  100% { transform: translate(35px, -40px) scale(0.92); }
}

@keyframes patternBreathe {
  0% { opacity: 0.04; transform: scale(1); }
  100% { opacity: 0.08; transform: scale(1.02); }
}

@keyframes sparkDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.25; }
  50% { transform: translateY(-16px) rotate(18deg); opacity: 0.75; }
}

/* Breadcrumbs in Hero */
.reciter-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(205, 159, 92, 0.25);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.reciter-breadcrumbs a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.25s ease;
}

.reciter-breadcrumbs a:hover {
  color: var(--reciter-gold);
}

.crumb-sep {
  color: var(--reciter-gold);
  font-size: 0.8rem;
}

.crumb-current {
  color: var(--reciter-gold-light);
  font-weight: 700;
}

.hero-sheikh-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-sheikh-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin: 0;
  max-width: 820px;
  line-height: 1.6;
}

/* ==========================================================================
   2. MAIN WRAPPER & GRID LAYOUT (WITH EXPANDABLE MUSHAF SUPPORT)
   ========================================================================== */
.reciter-main-wrapper {
  padding: 40px 0 60px;
  min-height: calc(100vh - 220px);
}

.reciter-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(460px, 1.15fr);
  gap: 32px;
  align-items: start;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expanded Mushaf Mode (Gives Mushaf generous primary width) */
.reciter-grid-layout.mushaf-expanded-mode {
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.45fr);
}

@media (max-width: 1100px) {
  .reciter-grid-layout,
  .reciter-grid-layout.mushaf-expanded-mode {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
}

/* ==========================================================================
   3. LEFT COLUMN: VIDEO PLAYER & SHEIKH DETAILS
   ========================================================================== */
.reciter-video-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.video-player-container {
  position: relative;
  background: #000000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.22);
  border: 1px solid rgba(205, 159, 92, 0.28);
  flex-shrink: 0;
}

.video-aspect-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.video-aspect-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.player-overlay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(8, 17, 53, 0.96) 0%, rgba(2, 5, 20, 0.99) 100%);
  border-top: 1px solid rgba(205, 159, 92, 0.25);
  gap: 14px;
}

.player-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.hd-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(205, 159, 92, 0.16);
  border: 1px solid rgba(205, 159, 92, 0.35);
  color: var(--reciter-gold-light);
  padding: 3.5px 10px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.current-playing-title {
  color: #f1f5f9;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Video Info Card (Compact, Solid, and Cohesive without empty gaps) */
.video-info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  border: 1.5px solid rgba(205, 159, 92, 0.28);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-info-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(205, 159, 92, 0.2);
}

.active-video-heading {
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.45;
  text-align: right;
  width: 100%;
}

/* Button: Convert to MP3 Audio Player (Integrated in Player Toolbar) */
.btn-convert-mp3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(205, 159, 92, 0.18) 0%, rgba(205, 159, 92, 0.32) 100%);
  color: #ffffff;
  border: 1.5px solid var(--reciter-gold);
  border-radius: 999px;
  padding: 6.5px 16px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-convert-mp3::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-convert-mp3:hover::before {
  left: 100%;
}

.btn-convert-mp3:hover {
  background: linear-gradient(135deg, var(--reciter-gold) 0%, #b8853b 100%);
  color: #ffffff;
  border-color: #ffd494;
  box-shadow: 0 6px 22px rgba(205, 159, 92, 0.45);
  transform: translateY(-2px);
}

.btn-convert-mp3:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(205, 159, 92, 0.3);
}

.btn-mp3-icon {
  color: var(--reciter-gold);
  display: flex;
  transition: color 0.3s ease;
}

.btn-convert-mp3:hover .btn-mp3-icon {
  color: #ffffff;
}

.btn-mp3-label {
  letter-spacing: -0.2px;
}

.btn-mp3-waves {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.btn-mp3-waves span {
  display: block;
  width: 3px;
  height: 100%;
  background: var(--reciter-gold);
  border-radius: 2px;
  animation: mp3WavePulse 1.2s infinite ease-in-out;
  transition: background 0.3s ease;
}

.btn-convert-mp3:hover .btn-mp3-waves span {
  background: #ffffff;
}

@keyframes mp3WavePulse {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Dedicated Video Description Box */
.video-description-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #fdfbf7 0%, #fcf7ee 100%);
  border: 1px solid rgba(205, 159, 92, 0.28);
  border-right: 4px solid var(--reciter-gold);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(205, 159, 92, 0.05);
}

.desc-gold-ico {
  color: var(--reciter-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.active-video-desc {
  font-size: 0.91rem;
  color: #475569;
  line-height: 1.62;
  margin: 0;
  text-align: right;
  font-weight: 500;
}

/* Sheikh Profile Strip */
.sheikh-profile-strip {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #fcfaf5 100%);
  border: 1.5px solid rgba(205, 159, 92, 0.3);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 4px 18px rgba(205, 159, 92, 0.06);
  text-align: right;
  position: relative;
  transition: all 0.25s ease;
}

.sheikh-profile-strip:hover {
  border-color: rgba(205, 159, 92, 0.48);
  box-shadow: 0 6px 22px rgba(205, 159, 92, 0.12);
}

.sheikh-avatar-wrapper {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  margin-top: 2px;
}

.avatar-ring-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--reciter-gold), transparent 70%);
  animation: avatarRingSpin 10s linear infinite;
  opacity: 0.6;
}

@keyframes avatarRingSpin {
  100% { transform: rotate(360deg); }
}

.sheikh-avatar-pic {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.sheikh-verified-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 22px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sheikh-text-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheikh-full-name {
  font-size: 1.28rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.sheikh-detailed-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.68;
  margin: 0;
  text-align: right;
}

/* Recitation Reflection Box */
.recitation-reflection-box {
  background: linear-gradient(135deg, rgba(205, 159, 92, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(205, 159, 92, 0.32);
  border-right: 4px solid var(--reciter-gold);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 10px rgba(205, 159, 92, 0.05);
}

.reflection-header {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8c5916;
  font-size: 0.92rem;
  font-weight: 800;
}

.reflection-icon {
  display: flex;
  align-items: center;
}

.recitation-reflection-box p {
  margin: 0;
  font-size: 0.91rem;
  color: #334155;
  line-height: 1.7;
  text-align: right;
}

/* Desktop default for mobile quick-access dock, close button, and backdrop */
.mobile-video-top-docks,
.btn-close-sidebar-drawer,
.sidebar-drawer-backdrop {
  display: none !important;
}

/* ==========================================================================
   4. RIGHT COLUMN: ENHANCED PLAYLIST & MUSHAF SIDEBAR
   ========================================================================== */
.reciter-sidebar-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-shell-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 24px;
  border: 1.5px solid rgba(205, 159, 92, 0.28);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

/* Dock Header Bar (Single Row, No Wrap on Desktop) */
.sidebar-header-dock {
  background: linear-gradient(135deg, #09132b 0%, #03081e 100%);
  padding: 12px 18px;
  border-bottom: 2px solid rgba(205, 159, 92, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  flex-shrink: 0;
}

.dock-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.dock-icon-gold {
  color: var(--reciter-gold);
}

.videos-count-tag {
  background: rgba(205, 159, 92, 0.18);
  color: var(--reciter-gold-light);
  border: 1px solid rgba(205, 159, 92, 0.35);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Left Side Controls in ONE SINGLE ROW */
.dock-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Autoplay Toggle Switch */
.autoplay-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(205, 159, 92, 0.35);
  transition: all 0.25s ease;
  user-select: none;
}

.autoplay-toggle-wrapper input {
  display: none;
}

.autoplay-ico-gold {
  color: var(--reciter-gold);
  display: flex;
}

.toggle-slider {
  position: relative;
  width: 30px;
  height: 16px;
  background: #334155;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  top: 2px;
  right: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.autoplay-toggle-wrapper input:checked + .toggle-slider {
  background: var(--reciter-gold);
}

.autoplay-toggle-wrapper input:checked + .toggle-slider::after {
  transform: translateX(-14px);
}

.toggle-label {
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Button: Toggle Mushaf Mode */
.btn-toggle-mushaf-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--reciter-gold) 0%, #b8853b 100%);
  color: #ffffff;
  border: 1px solid #ffd494;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.3);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.mushaf-btn-svg {
  color: #ffffff;
}

.btn-toggle-mushaf-mode:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  box-shadow: 0 6px 18px rgba(205, 159, 92, 0.45);
}

.btn-toggle-mushaf-mode.active-state {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid var(--reciter-gold);
  color: var(--reciter-gold-light);
}

.btn-toggle-mushaf-mode.active-state .mushaf-btn-svg {
  color: var(--reciter-gold);
}

.btn-toggle-mushaf-mode:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-toggle-mushaf-mode.active-state {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--reciter-gold);
}

/* Sidebar View Panes */
.sidebar-view-pane {
  display: none;
  padding: 20px;
}

.sidebar-view-pane.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 18px 20px;
}

/* Playlist Search Box */
.playlist-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid rgba(205, 159, 92, 0.28);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.playlist-search-box:focus-within {
  border-color: var(--reciter-gold);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(205, 159, 92, 0.12);
}

.playlist-search-box .search-ico {
  color: var(--reciter-gold);
  margin-left: 10px;
  flex-shrink: 0;
}

.playlist-search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.92rem;
  color: #1e293b;
  outline: none;
}

.playlist-search-box input::placeholder {
  color: #94a3b8;
}

.btn-clear-plist-search {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
}

/* Playlist Tracker Banner (Luxury Modern Islamic Design) */
.playlist-tracker-banner {
  background: linear-gradient(135deg, rgba(205, 159, 92, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(205, 159, 92, 0.28);
  border-right: 4px solid var(--reciter-gold);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.06);
  position: relative;
}

.tracker-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  gap: 12px;
}

.tracker-info-side {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tracker-ico-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(205, 159, 92, 0.15);
  border: 1px solid rgba(205, 159, 92, 0.3);
  flex-shrink: 0;
}

.tracker-current-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
}

.tracker-percent {
  font-size: 0.78rem;
  font-weight: 800;
  color: #8c5916;
  background: rgba(205, 159, 92, 0.16);
  border: 1px solid rgba(205, 159, 92, 0.35);
  padding: 2.5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tracker-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(205, 159, 92, 0.14);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.tracker-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--reciter-gold) 0%, #f59e0b 50%, var(--reciter-gold) 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(205, 159, 92, 0.45);
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Playlist Scrollable Items (Showing 7 videos to fill column height seamlessly) */
.playlist-items-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 650px;
  max-height: 685px;
  overflow-y: auto;
  padding-left: 6px;
  padding-right: 2px;
}

.playlist-items-scroll::-webkit-scrollbar {
  width: 6px;
}
.playlist-items-scroll::-webkit-scrollbar-thumb {
  background: rgba(205, 159, 92, 0.4);
  border-radius: 4px;
}

.playlist-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #edf2f7;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.playlist-item-card:hover {
  background: #fdfcf9;
  border-color: rgba(205, 159, 92, 0.45);
  transform: translateX(-3px);
  box-shadow: 0 6px 18px rgba(205, 159, 92, 0.12);
}

.playlist-item-card.active {
  background: linear-gradient(135deg, #fffdf8 0%, #fbf5e7 100%);
  border-color: var(--reciter-gold);
  border-right: 4px solid var(--reciter-gold);
  box-shadow: 0 6px 20px rgba(205, 159, 92, 0.18);
}

.item-number-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #8c5916;
  background: rgba(205, 159, 92, 0.12);
  border: 1px solid rgba(205, 159, 92, 0.28);
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 32px;
  text-align: center;
  transition: all 0.2s ease;
}

.playlist-item-card.active .item-number-badge {
  background: linear-gradient(135deg, var(--reciter-gold) 0%, #b38541 100%);
  color: #ffffff;
  border-color: var(--reciter-gold);
  box-shadow: 0 2px 8px rgba(205, 159, 92, 0.35);
}

.item-thumb-box {
  position: relative;
  width: 86px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.item-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.playlist-item-card:hover .item-thumb-img {
  transform: scale(1.08);
}

.item-duration-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  direction: ltr;
}

.item-duration-tag.live {
  background: rgba(220, 38, 38, 0.9);
  border-color: rgba(239, 68, 68, 0.4);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 1.2s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.item-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.playlist-item-card:hover .item-thumb-overlay {
  opacity: 1;
}

.thumb-play-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: scale(0.85);
  transition: transform 0.2s ease;
}

.playlist-item-card:hover .thumb-play-circle {
  transform: scale(1);
}

.item-meta-info {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 5px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.playlist-item-card:hover .item-title {
  color: #8c5916;
}

.playlist-item-card.active .item-title {
  color: #8c5916;
  font-weight: 800;
}

.item-sub-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.item-surah-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #047857;
  background: rgba(4, 120, 87, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(4, 120, 87, 0.15);
}

.item-views-tag {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}

.plist-gold-ico {
  flex-shrink: 0;
}

.item-playing-indicator {
  display: none;
  align-items: flex-end;
  gap: 2.5px;
  height: 18px;
  margin-right: 4px;
  flex-shrink: 0;
  padding: 3px 5px;
  background: rgba(205, 159, 92, 0.14);
  border: 1px solid rgba(205, 159, 92, 0.25);
  border-radius: 6px;
}

.playlist-item-card.active .item-playing-indicator {
  display: flex;
}

.equalizer-bar {
  width: 3px;
  background: linear-gradient(180deg, var(--reciter-gold) 0%, #b38541 100%);
  border-radius: 2px;
  animation: barBounce 0.9s infinite ease-in-out;
}

.equalizer-bar.bar-1 { height: 100%; animation-delay: 0s; }
.equalizer-bar.bar-2 { height: 50%; animation-delay: 0.22s; }
.equalizer-bar.bar-3 { height: 78%; animation-delay: 0.44s; }

@keyframes barBounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* Empty State */
.playlist-empty-state {
  text-align: center;
  padding: 36px 20px;
  color: #64748b;
}

.btn-reset-filter {
  margin-top: 10px;
  background: var(--reciter-gold);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

/* ==========================================================================
   5. ADVANCED MUSHAF READER VIEW (POWERED BY QURAN.JSON)
   ========================================================================== */
.mushaf-viewer-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.mushaf-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(205, 159, 92, 0.2);
}

.mushaf-surah-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 220px;
}

.mushaf-picker-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

/* Custom Surah Searchable Dropdown (Opens downwards) */
.custom-surah-dropdown {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.surah-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.4);
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.surah-dropdown-trigger:hover,
.surah-dropdown-trigger[aria-expanded="true"] {
  border-color: var(--reciter-gold);
  box-shadow: 0 0 0 3px rgba(205, 159, 92, 0.18);
  background: #fffdfa;
}

.surah-trigger-content,
.surah-dropdown-trigger {
  gap: 8px;
}

.surah-trigger-book-ico,
.dropdown-trigger-icon {
  color: var(--reciter-gold);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
}

.surah-trigger-text,
.dropdown-trigger-text {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: right;
  margin-right: 4px;
}

.surah-trigger-arrow,
.dropdown-chevron {
  color: #64748b;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-right: 6px;
}

.surah-dropdown-trigger[aria-expanded="true"] .surah-trigger-arrow,
.surah-dropdown-trigger[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--reciter-gold);
}

/* Dropdown Panel - Opens Downwards */
.surah-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 1050;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
  padding: 10px;
  flex-direction: column;
  gap: 8px;
  animation: dropdownSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.surah-dropdown-panel.show {
  display: flex;
}

@keyframes dropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.surah-dropdown-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 12px;
  transition: all 0.2s ease;
}

.surah-dropdown-search-box:focus-within {
  border-color: var(--reciter-gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(205, 159, 92, 0.15);
}

.surah-picker-search-ico {
  color: var(--reciter-gold);
  flex-shrink: 0;
}

.surah-picker-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
}

.btn-clear-picker-search {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0 4px;
}

.surah-options-list {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 4px;
}

.surah-options-list::-webkit-scrollbar {
  width: 5px;
}
.surah-options-list::-webkit-scrollbar-thumb {
  background: rgba(205, 159, 92, 0.4);
  border-radius: 4px;
}

.surah-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #fafaf9;
  cursor: pointer;
  transition: all 0.18s ease;
}

.surah-option-item:hover {
  background: #fefce8;
  border-color: rgba(205, 159, 92, 0.35);
}

.surah-option-item.active {
  background: linear-gradient(135deg, rgba(205, 159, 92, 0.18) 0%, rgba(205, 159, 92, 0.08) 100%);
  border-color: var(--reciter-gold);
}

.surah-option-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.surah-opt-num {
  font-size: 0.76rem;
  font-weight: 800;
  color: #8c5916;
  background: rgba(205, 159, 92, 0.15);
  border: 1px solid rgba(205, 159, 92, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  min-width: 26px;
  text-align: center;
}

.surah-option-item.active .surah-opt-num {
  background: var(--reciter-gold);
  color: #ffffff;
}

.surah-opt-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
}

.surah-opt-count {
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.surah-picker-empty {
  text-align: center;
  padding: 20px 10px;
  color: #94a3b8;
  font-size: 0.84rem;
  font-weight: 600;
}

.mushaf-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


.btn-expand-mushaf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-expand-mushaf:hover {
  background: rgba(205, 159, 92, 0.15);
  border-color: var(--reciter-gold);
  color: var(--reciter-gold-dark);
}

.btn-expand-mushaf.active {
  background: var(--reciter-gold);
  color: #ffffff;
  border-color: var(--reciter-gold-dark);
}

/* Surah Stepper Bar (السابقة / التالية) */
.mushaf-surah-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #09132b 0%, #03081e 100%);
  border-radius: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(205, 159, 92, 0.3);
  gap: 8px;
  white-space: nowrap;
}

.btn-surah-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(205, 159, 92, 0.3);
  color: #f1f5f9;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.btn-surah-step:hover:not(:disabled) {
  background: var(--reciter-gold);
  color: #03081e;
}

.btn-surah-step:disabled,
.btn-surah-step.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

.mushaf-surah-center-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.surah-badge-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}

.surah-badge-verses {
  background: rgba(205, 159, 92, 0.22);
  color: var(--reciter-gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Dedicated Tools Toggle Row */
.mushaf-tools-toggle-row {
  display: flex;
  justify-content: center;
  margin: -2px 0 2px;
}

.btn-mushaf-tools-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdfbf7;
  border: 1px solid rgba(205, 159, 92, 0.35);
  color: var(--reciter-gold-dark);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(205, 159, 92, 0.08);
  transition: all 0.2s ease;
}

.btn-mushaf-tools-toggle:hover {
  background: #ffffff;
  border-color: var(--reciter-gold);
  box-shadow: 0 3px 10px rgba(205, 159, 92, 0.18);
}

.btn-mushaf-tools-toggle.active {
  background: var(--reciter-gold);
  color: #ffffff;
  border-color: var(--reciter-gold-dark);
}

.btn-mushaf-tools-toggle .toggle-chevron {
  transition: transform 0.25s ease;
}

.btn-mushaf-tools-toggle.active .toggle-chevron {
  transform: rotate(180deg);
}

/* Mushaf Controls: Search inside Surah + View Modes + Font Zoom (Collapsible) */
.mushaf-tools-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fdfbf7;
  border: 1px solid rgba(205, 159, 92, 0.22);
  border-radius: 14px;
  padding: 12px;
  transition: all 0.25s ease;
}

.mushaf-tools-toolbar.toolbar-hidden {
  display: none !important;
}

.mushaf-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(205, 159, 92, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
}

.mushaf-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  color: #0f172a;
  margin-right: 8px;
}

.btn-clear-mushaf-search {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  cursor: pointer;
}

.mushaf-adjusters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* View Modes: Segmented Button */
.view-modes-segmented {
  display: flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.btn-view-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-mode.active {
  background: #ffffff;
  color: var(--reciter-gold-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Luxury Segmented Font Zoom Controls (A- 100% A+) */
.font-zoom-controls {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #fbf8f2 0%, #f6f0e4 100%);
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  border-radius: 30px;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(205, 159, 92, 0.08);
}

.btn-zoom,
.btn-zoom-reset {
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 4px 11px;
  border-radius: 20px;
}

.btn-zoom {
  color: #475569;
  font-size: 0.86rem;
}

.btn-zoom:hover {
  background: var(--reciter-gold);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(205, 159, 92, 0.35);
}

.btn-zoom-reset {
  border-left: 1px solid rgba(205, 159, 92, 0.25);
  border-right: 1px solid rgba(205, 159, 92, 0.25);
  color: var(--reciter-gold-dark);
  font-size: 0.78rem;
  min-width: 46px;
  text-align: center;
}

.btn-zoom-reset:hover {
  background: rgba(205, 159, 92, 0.15);
}

/* Search Matches Bar */
.mushaf-search-matches-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
}

.btn-clear-matches {
  background: none;
  border: none;
  color: #b45309;
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Basmalah Callout */
.mushaf-basmalah-callout {
  text-align: center;
  margin: 4px 0;
  flex-shrink: 0;
}

.basmalah-frame {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fdfbf7 0%, #f6f1e6 100%);
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  padding: 6px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(205, 159, 92, 0.08);
}

.basmalah-side-knot {
  color: var(--reciter-gold);
  font-size: 1.1rem;
}

.basmalah-text {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

/* Quran Verses View Container */
.mushaf-quran-text {
  flex: 1;
  min-height: 0;
  transition: all 0.25s ease;
}

/* Mode 1: Paginated Quran Pages Frame - ZERO SCROLLBAR */
.mushaf-quran-text.mode-continuous {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: var(--reciter-mushaf-font-size);
  color: #0f172a;
  overflow: hidden !important; /* No scrollbar */
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.mushaf-page-frame {
  background: #fffefb;
  border: 2px solid #ecd8b8;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 6px 20px rgba(205, 159, 92, 0.08), inset 0 0 24px rgba(205, 159, 92, 0.04);
  position: relative;
  outline: 1px solid rgba(205, 159, 92, 0.3);
  outline-offset: -5px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  box-sizing: border-box;
}

.mushaf-page-decor-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid rgba(205, 159, 92, 0.25);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--reciter-gold-dark);
  flex-shrink: 0;
}

.page-decor-knot {
  color: var(--reciter-gold);
  font-size: 1.15rem;
}

.mushaf-page-content {
  display: block;
  text-align: justify;
  text-align-last: center;
  line-height: 2.35;
  padding: 8px 12px;
  direction: rtl;
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: var(--reciter-mushaf-font-size, 25px);
  color: #0f172a;
}

/* Dedicated Fixed Bottom Page Navigation Dock */
.mushaf-page-navigation-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 6px 0;
  margin-top: auto;
  flex-shrink: 0;
}

.mushaf-pagination-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 5px;
  background: #ffffff;
  border: 1.5px solid rgba(2, 54, 56, 0.09);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(2, 54, 56, 0.04);
}

.mushaf-pagination-list .page-num-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #023638;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mushaf-pagination-list .page-num-btn:hover {
  background: #f7f4ec;
  border-color: rgba(205, 159, 92, 0.35);
  color: #CD9F5C;
}

.mushaf-pagination-list .page-num-btn.active {
  background: #023638;
  color: #ffffff;
  border-color: #CD9F5C;
  box-shadow: 0 3px 10px rgba(2, 54, 56, 0.2);
}

.mushaf-pagination-list .page-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1.5px solid transparent;
  background: #f8fafc;
  color: #023638;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mushaf-pagination-list .page-nav-btn:hover:not(:disabled) {
  background: #023638;
  color: #ffffff;
  border-color: #CD9F5C;
}

.mushaf-pagination-list .page-nav-btn:disabled,
.mushaf-pagination-list .page-nav-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
  pointer-events: none;
}

.mushaf-pagination-list .pagination-ellipsis {
  width: 26px;
  text-align: center;
  color: #a0aec0;
  font-weight: 900;
  font-size: 0.95rem;
  user-select: none;
}

.verse-unit {
  display: inline;
  transition: all 0.25s ease;
  border-radius: 6px;
  padding: 2px 5px;
  cursor: pointer;
}

.verse-unit:hover {
  background: rgba(205, 159, 92, 0.14);
}

/* Mouse Click Verse Selection Highlight */
.verse-unit.user-selected-verse {
  background: linear-gradient(135deg, rgba(205, 159, 92, 0.26) 0%, rgba(205, 159, 92, 0.14) 100%) !important;
  color: #000000;
  box-shadow: 0 0 0 2px var(--reciter-gold), 0 4px 12px rgba(205, 159, 92, 0.25);
  border-radius: 8px;
}

.verse-unit.highlight-active {
  background: #fef08a !important;
  color: #000000;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.verse-words {
  letter-spacing: 0.3px;
}

.verse-ayah-end {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 6px;
  color: var(--reciter-gold-dark);
  font-size: 1.15em;
  user-select: none;
}

.ayah-symbol {
  font-family: 'Amiri', serif;
}

.ayah-digits {
  position: absolute;
  font-size: 0.55em;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
  color: #000000;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Mode 2: Ayah by Ayah Cards (Equal Height Containment) */
.mushaf-quran-text.mode-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding-left: 8px;
}

.ayah-card-unit {
  background: #fdfbf7;
  border: 1px solid rgba(205, 159, 92, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s ease;
}

.ayah-card-unit:hover {
  background: #ffffff;
  border-color: var(--reciter-gold);
  box-shadow: 0 4px 16px rgba(205, 159, 92, 0.12);
}

.ayah-card-unit.highlight-active {
  border-color: #eab308;
  background: #fef9c3;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.35);
}

.ayah-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ayah-card-badge {
  background: rgba(205, 159, 92, 0.14);
  color: var(--reciter-gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
}

/* Ayah Copy Button with Brand Gold SVG Icon */
.btn-copy-ayah {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid rgba(205, 159, 92, 0.35);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-ayah .copy-gold-ico {
  color: var(--reciter-gold);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-copy-ayah:hover {
  background: rgba(205, 159, 92, 0.1);
  border-color: var(--reciter-gold);
  color: var(--reciter-gold-dark);
}

.btn-copy-ayah:hover .copy-gold-ico {
  transform: scale(1.15);
}

.ayah-card-text {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: var(--reciter-mushaf-font-size);
  line-height: 2;
  color: #0f172a;
}

/* Loading Placeholder */
.mushaf-loading-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 14px;
  color: #64748b;
}

.mushaf-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(205, 159, 92, 0.2);
  border-top-color: var(--reciter-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}


/* ==========================================================================
   6. MORE SHEIKHS SHOWCASE SECTION (UP TO 9 SHEIKHS + RETURN ACTION)
   ========================================================================== */
.more-sheikhs-showcase-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #f7f9fa 0%, #edf2f7 100%);
  border-top: 1px solid rgba(205, 159, 92, 0.22);
}

.more-sheikhs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.more-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(205, 159, 92, 0.12);
  color: var(--reciter-gold-dark);
  border: 1px solid rgba(205, 159, 92, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--reciter-gold);
  border-radius: 50%;
}

.more-sheikhs-h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}

.more-sheikhs-sub {
  font-size: 0.98rem;
  color: #64748b;
  margin: 0;
}


.btn-all-sheikhs-return {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0f172a;
  border: 1.5px solid rgba(205, 159, 92, 0.35);
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.btn-all-sheikhs-return:hover {
  background: var(--reciter-gold);
  color: #ffffff;
  border-color: var(--reciter-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(205, 159, 92, 0.3);
}

/* More Sheikhs Grid */
.more-sheikhs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.more-sheikh-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(205, 159, 92, 0.2);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.more-sheikh-card:hover {
  transform: translateY(-5px);
  border-color: var(--reciter-gold);
  box-shadow: 0 14px 34px rgba(205, 159, 92, 0.16);
}

.more-sheikh-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 16px;
}

.more-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.more-verified-badge {
  position: absolute;
  bottom: 0;
  left: 4px;
  width: 22px;
  height: 22px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.more-sheikh-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.more-sheikh-narration {
  background: rgba(205, 159, 92, 0.12);
  color: var(--reciter-gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.more-sheikh-desc {
  font-size: 0.86rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-open-sheikh-videos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #09132b 0%, #03081e 100%);
  color: #ffffff;
  border: 1px solid var(--reciter-gold);
  border-radius: 20px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
  justify-content: center;
}

.btn-open-sheikh-videos:hover {
  background: var(--reciter-gold);
  color: #03081e;
  box-shadow: 0 6px 18px rgba(205, 159, 92, 0.3);
}

/* Bottom CTA Return Banner */
.more-sheikhs-footer-banner {
  margin-top: 20px;
}

.banner-cta-card {
  background: linear-gradient(135deg, #09132b 0%, #03081e 100%);
  border: 2px solid rgba(205, 159, 92, 0.35);
  border-radius: 24px;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 12px 35px rgba(2, 5, 20, 0.3);
}

.banner-cta-text h3 {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
}

.banner-cta-text p {
  color: #94a3b8;
  font-size: 0.94rem;
  margin: 0;
  max-width: 600px;
}

.btn-cta-explore-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--reciter-gold) 0%, var(--reciter-gold-dark) 100%);
  color: #ffffff;
  border-radius: 30px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(205, 159, 92, 0.35);
  transition: all 0.25s ease;
}

.btn-cta-explore-all:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(205, 159, 92, 0.45);
}

/* ==========================================================================
   Mobile & Tablet Responsiveness for Reciter Showcase Page
   (حصر التعديل على وضع الهاتف والشاشات الصغيرة فقط - Desktop دون أي تغيير)
   ========================================================================== */
@media (max-width: 991px) {
  /* 1. Hero Bar on Mobile */
  .reciter-hero-bar {
    padding: 22px 0 24px !important;
    text-align: center !important;
  }

  .reciter-hero-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0 16px !important;
  }

  .reciter-breadcrumbs {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.74rem !important;
    margin-bottom: 12px !important;
    max-width: 100% !important;
    line-height: 1.4 !important;
  }

  .hero-sheikh-title {
    font-size: clamp(1.25rem, 5.2vw, 1.48rem) !important;
    line-height: 1.38 !important;
    text-align: center !important;
    margin: 0 0 8px !important;
  }

  .hero-sheikh-subtitle {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
    text-align: center !important;
    max-width: 100% !important;
    color: #94a3b8 !important;
    margin: 0 auto !important;
    padding: 0 4px;
  }

  /* Hide floating sparks on mobile so they never collide with text */
  .reciter-floating-sparks {
    display: none !important;
  }

  /* 2. Main Layout */
  .reciter-main-wrapper {
    padding: 16px 0 36px !important;
  }

  .reciter-grid-layout,
  .reciter-grid-layout.mushaf-expanded-mode {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* 2.5 Mobile Video Top Access Dock (Over Video) */
  .mobile-video-top-docks {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }

  .btn-mobile-dock-trigger {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, rgba(8, 17, 53, 0.96) 0%, rgba(3, 8, 30, 0.98) 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(205, 159, 92, 0.4) !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(2, 5, 20, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .btn-mobile-dock-trigger:hover,
  .btn-mobile-dock-trigger:active,
  .btn-mobile-dock-trigger.active {
    background: linear-gradient(135deg, #0e1e55 0%, #060e30 100%) !important;
    border-color: var(--reciter-gold) !important;
    box-shadow: 0 6px 20px rgba(205, 159, 92, 0.3) !important;
  }

  .btn-mobile-dock-trigger.active {
    border-color: #ffd79a !important;
  }

  .dock-btn-ico {
    color: var(--reciter-gold) !important;
    flex-shrink: 0 !important;
    width: 16px !important;
    height: 16px !important;
  }

  .dock-btn-text {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .dock-btn-badge {
    background: rgba(205, 159, 92, 0.22) !important;
    color: #ffd79a !important;
    border: 1px solid rgba(205, 159, 92, 0.45) !important;
    padding: 2.5px 7px !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
  }

  /* 3. Video Player Container & Toolbar */
  .video-player-container {
    border-radius: 18px !important;
  }

  .player-overlay-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  .player-bar-info {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .hd-badge-pill {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
  }

  .current-playing-title {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 220px !important;
  }

  .btn-convert-mp3 {
    width: 100% !important;
    justify-content: center !important;
    padding: 9px 14px !important;
    font-size: 0.8rem !important;
  }

  /* 4. Video Details & Sheikh Info Card */
  .video-info-card {
    padding: 18px 16px !important;
    border-radius: 18px !important;
    gap: 14px !important;
  }

  .active-video-heading {
    font-size: 1.1rem !important;
    line-height: 1.45 !important;
    text-align: right !important;
  }

  .active-video-desc {
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
  }

  .sheikh-profile-strip {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
    background: #f8fafc !important;
    border-radius: 14px !important;
  }

  .sheikh-avatar-wrapper {
    width: 54px !important;
    height: 54px !important;
    flex-shrink: 0 !important;
  }

  .sheikh-full-name {
    font-size: 1.05rem !important;
  }

  .sheikh-detailed-desc {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
  }

  .recitation-reflection-box {
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }

  .reflection-header {
    font-size: 0.84rem !important;
  }

  .recitation-reflection-box p {
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
  }

  /* 5. Right Column: Transform into Floating Side Drawer Over Video on Mobile */
  .sidebar-drawer-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(2, 5, 20, 0.72) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 99998 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .sidebar-drawer-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.reciter-drawer-locked {
    overflow: hidden !important;
  }

  .reciter-sidebar-column {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 95% !important;
    max-width: 440px !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 99999 !important;
    transform: translateX(105%) !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .reciter-sidebar-column.drawer-open {
    transform: translateX(0) !important;
  }

  .sidebar-shell-card {
    height: 100% !important;
    border-radius: 20px 0 0 20px !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 2px solid rgba(205, 159, 92, 0.4) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .sidebar-header-dock {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
  }

  .dock-title-box {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .dock-title-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
  }

  .dock-actions-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .btn-close-sidebar-drawer {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
  }

  .btn-close-sidebar-drawer:hover,
  .btn-close-sidebar-drawer:active {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #ffffff !important;
  }

  .autoplay-toggle-wrapper {
    flex: 1 !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    font-size: 0.74rem !important;
  }

  .btn-toggle-mushaf-mode {
    flex: 1 !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
  }

  .sidebar-view-pane.active {
    padding: 12px 10px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .playlist-search-box {
    padding: 8px 12px !important;
    margin-bottom: 8px !important;
    flex-shrink: 0 !important;
  }

  .playlist-search-box input {
    font-size: 0.85rem !important;
  }

  .playlist-tracker-banner {
    padding: 8px 12px !important;
    margin-bottom: 10px !important;
    flex-shrink: 0 !important;
  }

  .tracker-current-text {
    font-size: 0.74rem !important;
  }

  .playlist-items-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    padding-bottom: 24px !important;
  }

  .playlist-item-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 10px !important;
    border-radius: 14px !important;
  }

  .item-number-badge {
    font-size: 0.74rem !important;
    padding: 3px 6px !important;
    min-width: 26px !important;
    flex-shrink: 0 !important;
  }

  .item-thumb-box {
    width: 72px !important;
    height: 48px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .item-meta-info {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .item-title {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    margin: 0 0 4px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .item-sub-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .item-surah-tag {
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
  }

  .item-views-tag {
    font-size: 0.68rem !important;
  }

  .item-playing-indicator {
    flex-shrink: 0 !important;
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  /* 6. Mushaf Viewer in Mobile View */
  .mushaf-header-strip {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  .btn-expand-mushaf {
    display: none !important;
  }

  .mushaf-surah-stepper-bar {
    padding: 6px 10px !important;
    flex-shrink: 0 !important;
  }

  .btn-surah-step {
    padding: 5px 10px !important;
    font-size: 0.76rem !important;
  }

  .surah-badge-title {
    font-size: 0.86rem !important;
  }

  #paneMushafView.active {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .mushaf-viewer-box {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    height: 100% !important;
  }

  .mushaf-quran-text.mode-continuous {
    overflow: visible !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .mushaf-page-frame {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 14px !important;
    overflow: hidden !important;
  }

  .mushaf-page-content {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    max-height: calc(100vh - 330px) !important;
    max-height: calc(100dvh - 330px) !important;
    font-size: var(--reciter-mushaf-font-size, 24px) !important;
    line-height: 2.1 !important;
    padding: 6px 6px !important;
    touch-action: pan-y !important;
  }

  /* Enhanced Mobile Toast Notification */
  .toast-notice {
    position: fixed !important;
    top: 75px !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-25px) !important;
    width: auto !important;
    max-width: min(92vw, 420px) !important;
    background: linear-gradient(135deg, rgba(8, 17, 53, 0.98) 0%, rgba(3, 8, 30, 0.99) 100%) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1.5px solid rgba(205, 159, 92, 0.6) !important;
    border-radius: 14px !important;
    padding: 10px 18px !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(205, 159, 92, 0.2) !important;
    z-index: 100005 !important;
    pointer-events: none !important;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .toast-notice.show {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
  }

  .toast-notice svg {
    color: #CD9F5C !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
  }

  .mushaf-page-navigation-dock {
    padding: 6px 10px !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
  }

  .btn-mushaf-page-nav {
    padding: 5px 8px !important;
    font-size: 0.72rem !important;
  }

  .mushaf-page-counter-pill {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
  }

  /* 7. More Sheikhs Section on Mobile */
  .more-sheikhs-showcase-section {
    padding: 36px 0 48px !important;
  }

  .more-sheikhs-header {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
  }

  .more-sheikhs-h2 {
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
    text-align: center !important;
  }

  .more-sheikhs-sub {
    font-size: 0.82rem !important;
    text-align: center !important;
  }

  .btn-all-sheikhs-return {
    width: 100% !important;
    max-width: 300px !important;
    justify-content: center !important;
    font-size: 0.86rem !important;
    padding: 10px 18px !important;
  }

  .more-sheikhs-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .banner-cta-card {
    padding: 20px 16px !important;
    border-radius: 18px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
  }

  .banner-cta-text h3 {
    font-size: 1.15rem !important;
  }

  .banner-cta-text p {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
  }

  .btn-cta-explore-all {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    font-size: 0.88rem !important;
  }
}

@media (max-width: 480px) {
  .current-playing-title {
    max-width: 180px !important;
  }

  .reciter-sidebar-column {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sidebar-shell-card {
    border-radius: 0 !important;
  }

  .playlist-items-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .mushaf-page-content {
    max-height: calc(100vh - 340px) !important;
    max-height: calc(100dvh - 340px) !important;
    font-size: var(--reciter-mushaf-font-size, 22px) !important;
    line-height: 2 !important;
  }
}
