/* Additive Quran-only presentation. Existing navigation and other pages are untouched. */
.quran-refreshed::after {
  display: none;
}
.quran-refreshed .qrf-cover .qrf-cover-title[lang="ar"] {
  font:
    400 clamp(34px, 3.1vw, 44px)/1.7 "Noto Naskh Arabic",
    "Amiri",
    serif;
  color: #edd4a0;
  text-align: center;
  overflow-wrap: anywhere;
}
body.quran-refreshed {
  --qrf-line: #d6b37430;
  --qrf-muted: #bba684;
}
.quran-refreshed .qrf-intro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 115px 32px 28px;
  text-align: left;
  animation: qrf-appear 0.55s ease both;
}
.quran-refreshed .qrf-intro .nbk-driving-entry {
  position: absolute;
  right: 32px;
  bottom: 30px;
  margin: 0;
}
.quran-refreshed .qrf-intro .star-icon {
  display: none;
}
.quran-refreshed .qrf-intro h1 {
  font-size: 54px;
  font-weight: 400;
  color: #f0dfbd;
  background: none;
  margin: 4px 0 8px;
}
.quran-refreshed .qrf-intro p {
  text-transform: none;
  letter-spacing: 0;
  color: var(--qrf-muted);
  opacity: 1;
  font-size: 12px;
}
.quran-refreshed .qrf-intro .qrf-eyebrow {
  font:
    15px "Playfair Display",
    serif;
  color: #c5aa79;
}
.quran-refreshed .qrf-reciters {
  max-width: 1240px;
  margin: 0 auto 28px;
  padding: 0 32px;
  position: relative;
  z-index: 10;
}
.quran-refreshed .qrf-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.quran-refreshed .qrf-section-head h2 {
  font:
    500 22px "Playfair Display",
    serif;
  color: #efdfc0;
}
.quran-refreshed .qrf-rail-actions {
  display: flex;
  gap: 7px;
}
.quran-refreshed .qrf-rail-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--qrf-line);
  background: #241b10b0;
  color: #dec18d;
  cursor: pointer;
}
.quran-refreshed #carouselWrap {
  height: auto;
  margin: 0;
  padding: 5px 2px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
  scrollbar-color: #a383493b transparent;
}
.quran-refreshed #carouselTrack {
  position: relative;
  inset: auto;
  display: flex;
  gap: 14px;
  width: auto;
  height: auto;
}
.quran-refreshed .carousel-item {
  position: relative;
  inset: auto;
  flex: 0 0 calc((100% - 56px) / 5);
  min-width: 170px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 20px 12px 17px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 20px;
  border: 1px solid #b8955730;
  background: linear-gradient(165deg, #20180edb, #17110de8);
  overflow: visible;
  transform: none !important;
  opacity: 1 !important;
  z-index: auto !important;
  animation: none;
  transition:
    background 0.24s,
    border-color 0.24s,
    box-shadow 0.24s;
}
.quran-refreshed .carousel-item:hover {
  background: #2c2115e6;
  border-color: #c8a16270;
  box-shadow: 0 7px 23px #0003;
}
.quran-refreshed .carousel-item.active {
  background:
    radial-gradient(ellipse at 50% 0, #b18d4936, transparent 90%), #21190feb;
  border-color: #d8b4729c;
  box-shadow: inset 0 0 30px #e3b96906;
  animation: none;
}
.quran-refreshed .carousel-item.active::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 10px;
  color: #e2c18b;
  font-size: 11px;
}
.quran-refreshed .carousel-item .qrf-portrait {
  display: grid;
  place-items: center;
  flex: none;
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #b89b623d;
  box-shadow: 0 0 0 5px #be9c5910;
  background: linear-gradient(145deg, #332819, #17120c);
  font:
    25px "Playfair Display",
    serif;
}
.quran-refreshed .qrf-reciter-caption {
  text-align: center;
  min-width: 0;
}
.quran-refreshed .qrf-reciter-caption strong {
  display: block;
  font:
    500 17px/1.35 "Playfair Display",
    serif;
  color: #efdfc0;
  overflow-wrap: anywhere;
}
.quran-refreshed .qrf-reciter-caption small {
  display: block;
  font:
    10px/1.6 Poppins,
    sans-serif;
  color: #b29d7a;
  margin-top: 6px;
}
.quran-refreshed .player-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 342px;
  gap: 28px;
  max-width: 1240px;
  padding: 0 32px 28px;
  align-items: start;
}
.quran-refreshed .desktop-left {
  display: block;
  order: 0;
  min-width: 0;
  padding: 0;
}
.quran-refreshed .desktop-right {
  display: block;
  order: 1;
  min-width: 0;
  width: auto;
  position: sticky;
  top: 20px;
}
.quran-refreshed #browseTabs {
  display: flex;
  justify-content: flex-start;
  gap: 26px;
  margin: 0 0 19px;
  padding: 0;
  max-width: none;
  border: 0;
  background: none;
  border-radius: 0;
}
.quran-refreshed #browseTabs button {
  flex: 0 0 auto;
  padding: 0 0 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  font:
    500 22px "Playfair Display",
    serif;
  color: #b59e79;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}
.quran-refreshed #browseTabs button.active {
  color: #f0dfbd;
  border-color: #d6b374;
}
.quran-refreshed .qrf-search {
  display: flex;
  padding: 12px 16px;
  border: 1px solid var(--qrf-line);
  border-radius: 14px;
  background: #17110ce3;
}
.quran-refreshed .qrf-search:focus-within {
  border-color: #d6b3748a;
  box-shadow: 0 0 0 3px #cfac6a0a;
}
.quran-refreshed .qrf-search input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: #e9d8b8;
  font:
    12px Poppins,
    sans-serif;
}
.quran-refreshed .qrf-search input::placeholder {
  color: #af9879;
  opacity: 1;
}
.quran-refreshed .qrf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.quran-refreshed .qrf-filters button {
  padding: 7px 12px;
  min-height: 36px;
  font:
    11px Poppins,
    sans-serif;
  color: #c6b18f;
  border: 1px solid var(--qrf-line);
  border-radius: 99px;
  background: #21180f99;
  cursor: pointer;
}
.quran-refreshed .qrf-filters button[aria-pressed="true"] {
  border-color: #cbaa6f70;
  background: #cbaa6f1c;
  color: #ebcf9c;
}
.quran-refreshed .qrf-results {
  font:
    10px/1.6 Poppins,
    sans-serif;
  color: #ae9876;
  margin: 9px 2px 14px;
}
.quran-refreshed:not(.quran-playlists) #surahListHeader .section-label {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.3px;
  text-transform: none;
  margin: 0 0 12px;
}
.quran-refreshed #maqamFilterRow {
  justify-content: flex-start;
}
.quran-refreshed:not(.quran-playlists) #surahList {
  max-height: none;
  overflow: visible;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 0;
  border-radius: 0;
  background: none;
}
.quran-refreshed:not(.quran-playlists) .surah-row {
  min-height: 85px;
  margin: 0;
  padding: 16px;
  gap: 13px;
  border: 1px solid #d9b9751c;
  border-radius: 15px;
  background: #1b140fda;
  transition:
    background 0.23s,
    border-color 0.23s,
    transform 0.23s;
}
.quran-refreshed:not(.quran-playlists) .surah-row:hover {
  border-color: #d4af6a50;
  background: #251c13ee;
  transform: translateX(2px);
}
.quran-refreshed:not(.quran-playlists) .surah-row.active {
  background: linear-gradient(105deg, #8f70344d, #20170fea);
  border-color: #caa35e65;
}
.quran-refreshed:not(.quran-playlists) .surah-num {
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 36px;
  border: 1px solid #d4b37424;
  border-radius: 11px;
  background: #be9a4c0c;
  font-size: 10px;
  color: #b29a73;
}
.quran-refreshed:not(.quran-playlists) .surah-title {
  min-width: 0;
  font:
    500 22px/1.5 "Playfair Display",
    serif;
  color: #eee2cd;
  overflow-wrap: anywhere;
}
.quran-refreshed:not(.quran-playlists) .surah-file-reference {
  font:
    10px/1.6 Poppins,
    sans-serif;
  color: #b49b77;
  opacity: 1;
}
.quran-refreshed:not(.quran-playlists) .surah-badge {
  font:
    9px/1.5 Poppins,
    sans-serif;
  letter-spacing: 0;
  text-transform: none;
  padding: 2px 7px;
}
.quran-refreshed:not(.quran-playlists) .surah-part-row {
  border-radius: 12px;
  background: #20180fd4;
  margin: 0 0 0 26px;
  padding: 13px;
}
.quran-refreshed #surahActiveIndicator {
  display: none;
}
.quran-refreshed .player-panel {
  border: 1px solid #d6b37442;
  border-radius: 23px;
  padding: 23px;
  background:
    radial-gradient(ellipse at 50% 0, #95703a26, transparent 68%),
    linear-gradient(155deg, #2b2115f5, #1b150ef5);
  box-shadow: 0 15px 40px #0002;
  animation: qrf-appear 0.6s ease both;
}
.quran-refreshed .qrf-player-label {
  color: #c4ab81;
  font:
    11px Poppins,
    sans-serif;
  margin-bottom: 16px;
}
.quran-refreshed .qrf-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 148px;
  border: 1px solid #d3ac682a;
  border-radius: 15px;
  background:
    linear-gradient(#17110b4d, #17110b99),
    url("/assets/images/bg-ornament.jpg") center 42% / cover;
}
.quran-refreshed .qrf-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 35% 70%, #efc5792b, transparent 75%);
  opacity: 0.5;
}
.quran-refreshed .qrf-cover .qrf-cover-symbol {
  position: absolute;
  width: 132px;
  height: 132px;
  right: -4px;
  color: #dec187;
  opacity: 0.14;
}
.quran-refreshed .qrf-cover span {
  padding: 16px;
  color: #e8d1a3;
  font:
    24px "Playfair Display",
    serif;
}
.quran-refreshed .qrf-playing-title {
  font:
    400 34px/1.3 "Playfair Display",
    serif;
  color: #f1e2c6;
  margin: 20px 0 6px;
  overflow-wrap: anywhere;
}
.quran-refreshed .qrf-playing-artist {
  color: #c6b18f;
  font:
    12px Poppins,
    sans-serif;
}
.quran-refreshed .qrf-playing-type {
  color: #ae9571;
  font:
    10px/1.7 Poppins,
    sans-serif;
  margin: 7px 0 13px;
}
.quran-refreshed #nowPlaying {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.quran-refreshed .player-top-row {
  justify-content: flex-end;
  margin-bottom: 3px;
}
.quran-refreshed #miniTime {
  color: #bda781;
  font-size: 10px;
}
.quran-refreshed #progressTrack {
  display: none;
}
.quran-refreshed .qrf-seek {
  display: block;
  width: 100%;
  min-width: 0;
  height: 24px;
  margin: 2px 0 14px;
  appearance: none;
  background: transparent;
  cursor: pointer;
  accent-color: #e5c58c;
}
.quran-refreshed .qrf-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    #e5c58c var(--qrf-progress, 0%),
    #d6b37422 var(--qrf-progress, 0%)
  );
}
.quran-refreshed .qrf-seek::-webkit-slider-thumb {
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #e5c58c;
  margin-top: -4.5px;
}
.quran-refreshed .qrf-seek::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: #d6b37433;
}
.quran-refreshed .qrf-seek::-moz-range-progress {
  height: 4px;
  background: #e5c58c;
}
.quran-refreshed .qrf-seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #e5c58c;
}
.quran-refreshed .play-pause-btn {
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, #efd59c, #d7b16e);
  color: #251c10;
  border-color: #edce94;
}
.quran-refreshed .play-pause-btn:hover {
  box-shadow: 0 0 20px #dbb26e27;
}
.quran-refreshed .desktop-right > .reciter-name {
  font:
    500 16px "Playfair Display",
    serif;
  color: #d8bd8b;
  margin: 0 0 8px;
}
.quran-refreshed .ambience-label {
  text-align: left;
  font:
    500 19px "Playfair Display",
    serif;
  color: #e9d7b6;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  margin: 20px 0 12px;
}
.quran-refreshed #ambienceRow {
  gap: 7px;
  justify-content: space-between;
}
.quran-refreshed #nbk-quran-sound-effects {
  border-radius: 17px;
  background: #21180fe0;
}
.quran-refreshed .qrf-availability {
  position: relative;
  z-index: 10;
  max-width: 1176px;
  margin: 0 auto 32px;
  padding: 12px 16px;
  border: 1px solid var(--qrf-line);
  border-radius: 14px;
  background: #1c150fcc;
  color: #c8b38c;
  font:
    11px/1.7 Poppins,
    sans-serif;
}
.quran-refreshed .qrf-availability summary {
  cursor: pointer;
}
.quran-refreshed .qrf-availability .quran-availability-notice {
  margin: 12px 0 0;
  max-width: none;
  background: none;
}
.quran-refreshed .qrf-mini {
  display: none;
}
.quran-refreshed .qrf-player-dialog {
  border: 1px solid #ab8a53;
  border-radius: 24px;
  color: #eddfc4;
  background: #17110d;
  width: calc(100% - 24px);
  max-width: 480px;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 18px;
  overscroll-behavior: contain;
}
.quran-refreshed .qrf-player-dialog::backdrop {
  background: #0b0806c9;
  backdrop-filter: blur(7px);
}
.quran-refreshed .qrf-player-dialog[open] {
  animation: qrf-drawer 0.3s ease both;
}
.quran-refreshed .qrf-player-close {
  display: block;
  margin: 0 0 18px auto;
  background: #b9945112;
  color: #e5c58c;
  border: 1px solid var(--qrf-line);
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 99px;
  font:
    12px Poppins,
    sans-serif;
  cursor: pointer;
}
.quran-refreshed
  :is(.qrf-reciters, .player-wrap, .qrf-mini, .qrf-player-dialog)
  :focus-visible {
  outline: 2px solid #e5c58c;
  outline-offset: 4px;
}
.quran-refreshed .qrf-search input:focus-visible {
  outline: none;
}
.quran-refreshed.qrf-is-playing .qrf-cover::before {
  animation: qrf-breathe 4s ease-in-out infinite;
}
.quran-refreshed [hidden] {
  display: none !important;
}
.quran-refreshed.quran-playlists .player-wrap {
  display: block;
}
.quran-refreshed.quran-playlists .desktop-left {
  width: 100%;
}
@keyframes qrf-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes qrf-drawer {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes qrf-breathe {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.85;
  }
}
@media (max-width: 1080px) and (min-width: 821px) {
  .quran-refreshed .player-wrap {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
  }
  .quran-refreshed .player-panel {
    padding: 18px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-row {
    padding: 13px 11px;
    gap: 9px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-title {
    font-size: 20px;
  }
}
@media (max-width: 820px) {
  body.quran-refreshed {
    padding-bottom: calc(var(--nbk-mobile-nav-space, 0px) + 110px);
  }
  .quran-refreshed .qrf-intro {
    padding: 26px 18px 23px;
  }
  .quran-refreshed .qrf-intro h1 {
    font-size: 42px;
  }
  .quran-refreshed .qrf-intro p {
    font-size: 11px;
  }
  .quran-refreshed .qrf-intro .qrf-eyebrow {
    font-size: 12px;
  }
  .quran-refreshed .qrf-intro .nbk-driving-entry {
    position: static;
    margin: 16px 0 0;
    justify-content: flex-start;
  }
  .quran-refreshed .qrf-reciters {
    padding: 0 18px;
    margin-bottom: 22px;
  }
  .quran-refreshed .qrf-section-head h2 {
    font-size: 20px;
  }
  .quran-refreshed .carousel-item {
    min-width: 244px;
    flex-basis: 244px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 13px;
    gap: 13px;
    border-radius: 17px;
  }
  .quran-refreshed .carousel-item .qrf-portrait {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  .quran-refreshed .qrf-reciter-caption {
    text-align: left;
  }
  .quran-refreshed .qrf-reciter-caption strong {
    font-size: 16px;
  }
  .quran-refreshed .qrf-reciter-caption small {
    font-size: 9px;
    margin-top: 4px;
  }
  .quran-refreshed .player-wrap {
    display: block;
    padding: 0 18px 25px;
  }
  .quran-refreshed .desktop-right {
    position: static;
  }
  .quran-refreshed .qrf-player-dialog .desktop-right {
    width: 100%;
  }
  .quran-refreshed .qrf-player-dialog .player-panel {
    padding: 19px;
    border-radius: 19px;
  }
  .quran-refreshed .qrf-player-dialog .qrf-cover {
    height: 112px;
  }
  .quran-refreshed .qrf-player-dialog .qrf-playing-title {
    font-size: 31px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-row {
    min-height: 82px;
    padding: 13px 10px;
    gap: 9px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-title {
    font-size: 20px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-num {
    width: 26px;
    min-height: 32px;
    font-size: 9px;
  }
  .quran-refreshed:not(.quran-playlists) .surah-file-reference {
    font-size: 9px;
  }
  .quran-refreshed .qrf-availability {
    margin: 0 18px 24px;
  }
  .quran-refreshed .qrf-mini {
    display: flex;
    position: fixed;
    align-items: center;
    gap: 6px;
    left: 12px;
    right: 12px;
    bottom: calc(
      var(--nbk-mobile-nav-space, 0px) + max(10px, env(safe-area-inset-bottom))
    );
    border: 1px solid #b8955759;
    border-radius: 17px;
    background: linear-gradient(110deg, #312617fa, #20170efa);
    padding: 9px;
    box-shadow: 0 5px 24px #0006;
    z-index: 2090;
  }
  .quran-refreshed .qrf-mini button {
    color: #e9d4ad;
    background: none;
    border: 0;
    cursor: pointer;
    min-height: 44px;
  }
  .quran-refreshed .qrf-mini-open {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
  }
  .quran-refreshed .qrf-mini-art {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    background: #b48c3c14;
    border: 1px solid var(--qrf-line);
    border-radius: 11px;
    color: #dcc08b;
    font-size: 30px;
  }
  .quran-refreshed .qrf-mini-text {
    display: block;
    min-width: 0;
  }
  .quran-refreshed .qrf-mini-text strong {
    display: block;
    font:
      500 18px/1.4 "Playfair Display",
      serif;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .quran-refreshed .qrf-mini-text small {
    display: block;
    font:
      9px/1.6 Poppins,
      sans-serif;
    color: #bea984;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .quran-refreshed .qrf-mini-play,
  .quran-refreshed .qrf-mini-next {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
  }
  .quran-refreshed .qrf-mini svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }
  .quran-refreshed #queueToggleBtn {
    bottom: calc(var(--nbk-mobile-nav-space, 0px) + 92px);
  }
  .quran-refreshed #queuePanel {
    bottom: calc(var(--nbk-mobile-nav-space, 0px) + 150px);
    max-height: calc(100dvh - var(--nbk-mobile-nav-space, 0px) - 170px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.quran-refreshed::after,
  .quran-refreshed
    :is(.qrf-intro, .qrf-reciters, .player-wrap, .qrf-mini, .qrf-player-dialog),
  .quran-refreshed
    :is(.qrf-intro, .qrf-reciters, .player-wrap, .qrf-mini, .qrf-player-dialog)
    *,
  .quran-refreshed .qrf-cover::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 769px) and (max-width: 820px) {
  .quran-refreshed .qrf-intro {
    padding-top: 115px;
  }
}

/* Maqam choices share the main filters and only exist for tagged reciters. */
.quran-refreshed .qrf-filters #maqamFilterRow { flex-basis:100%; flex-wrap:wrap; gap:8px; margin:2px 0 0; padding:0; }
.quran-refreshed .qrf-filters .maqam-chip { letter-spacing:normal; transition:background-color .18s ease,border-color .18s ease,color .18s ease; }
.quran-refreshed .qrf-filters .maqam-chip:hover { border-color:#cbaa6f80; color:#ebcf9c; }
.quran-refreshed .qrf-filters .maqam-chip:focus-visible { outline:2px solid #cbaa6f; outline-offset:3px; }
@media(max-width:760px){.quran-refreshed .qrf-filters #maqamFilterRow button { min-height:40px; }}
