/* Match the refreshed Quran page, including the existing reader's fullscreen mode. */
.quran-refreshed #quranLyricsPanel.immersive-fallback { z-index:2147483000; }
.quran-refreshed .quran-lyrics-toggle-btn {
  justify-content: flex-start;
  padding: 15px 17px;
  gap: 11px;
  border-radius: 16px;
  background: linear-gradient(120deg, #322517e8, #20170ee8);
  border-color: #d6b37442;
  color: #e8d5b1;
  box-shadow: none;
  font-size: 12px;
}
.quran-refreshed .quran-lyrics-toggle-btn::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  color: #c2a675;
}
.quran-refreshed .quran-lyrics-toggle-btn[aria-expanded="true"]::after {
  content: "−";
}
.quran-refreshed .quran-lyrics-toggle-btn[aria-expanded="true"] {
  border-color: #d6b3748c;
  background: #3a2a18dc;
}
.quran-refreshed .qrf-reader-slot {
  min-width: 0;
  scroll-margin-top: 105px;
}
.quran-refreshed #quranLyricsPanel {
  width: 100%;
  color: #eee0c4;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0, #ad804323, transparent 65%),
    linear-gradient(155deg, #2a2016fa, #1c150ffa);
  box-shadow: 0 16px 40px #0002;
}
.quran-refreshed #quranLyricsPanel.open {
  border-color: #d6b37445;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-header {
  padding: 20px 22px;
  background: transparent;
  gap: 18px;
  border-color: #d6b37424;
  align-items: flex-start;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-header h3 {
  font:
    400 27px/1.3 "Playfair Display",
    serif;
  color: #f0dfbd;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-header p {
  display: block;
  margin: 7px 0 0;
  color: #c1ac88;
  font:
    11px/1.8 Poppins,
    sans-serif;
  overflow-wrap: anywhere;
}
.quran-refreshed #quranLyricsPanel .qrf-reader-marker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font:
    10px/1.5 Poppins,
    sans-serif;
  color: #c6b18d;
}
.quran-refreshed #quranLyricsPanel .qrf-reader-marker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ccb17d;
  box-shadow: 0 0 8px #d7b47b30;
}
.quran-refreshed #quranLyricsPanel .qrf-translation-note {
  position: relative;
  max-width: 66ch;
  margin-top: 9px;
  padding-left: 12px;
  color: #c1b49c;
  font: 400 11px/1.75 Poppins, sans-serif;
  overflow-wrap: anywhere;
}
.quran-refreshed #quranLyricsPanel .qrf-translation-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d6b374;
}
.quran-refreshed #quranLyricsPanel .qrf-translation-note{padding:0;margin-top:8px;font-size:10px;line-height:1.65}
.quran-refreshed #quranLyricsPanel .qrf-translation-note::before{display:none}
.quran-refreshed #quranLyricsPanel .qrf-translation-note summary{cursor:pointer;width:fit-content;padding:3px 0;color:#cdbb99;font-size:11px;list-style-position:inside}
.quran-refreshed #quranLyricsPanel .qrf-translation-note p{margin:7px 0 0;font-size:10px;line-height:1.7;max-height:100px;overflow:auto}
@media(max-width:820px){.quran-refreshed #quranLyricsPanel.open:not(:fullscreen):not(.immersive-fallback){height:min(65svh,520px)}.quran-refreshed #quranLyricsPanel .quran-lyrics-body{flex:1 1 0;min-height:0;overflow-y:auto}.quran-refreshed #quranLyricsPanel .quran-lyrics-header{padding:14px;gap:10px}.quran-refreshed #quranLyricsPanel .quran-lyrics-header h3{font-size:22px}}
.quran-refreshed
  #quranLyricsPanel
  :is(.quran-lyrics-close, .quran-lyrics-fullscreen) {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  justify-content: center;
  border-color: #d6b37438;
  background: #b18b4f0c;
  color: #dfc593;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-header-actions {
  gap: 7px;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-header-actions button span {
  display: none;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-status {
  padding: 10px 22px;
  border-color: #d6b37420;
  background: #c49a5010;
  color: #c6b18d;
  font-size: 10px;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-body {
  padding: 20px 22px 26px;
  gap: 12px;
  scroll-padding: 20px;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-ayah {
  position: relative;
  flex: none;
  margin: 0;
  padding: 25px 24px;
  border: 1px solid #d6b3741a;
  border-radius: 18px;
  background: #b08b4806;
  transition:
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-ayah:hover {
  border-color: #d6b37450;
  background: #c39c5911;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-ayah.active {
  border-color: #d6b37470;
  background:
    radial-gradient(ellipse at 50% 0, #bc944226, transparent 90%), #b58e4c0c;
  box-shadow:
    inset 3px 0 #d6b37499,
    0 6px 25px #0000000c;
}
.quran-refreshed #quranLyricsPanel .ql-num {
  padding: 4px 11px;
  font:
    10px/1.5 Poppins,
    sans-serif;
  letter-spacing: 0;
  color: #d6bd8c;
  border-color: #d6b37430;
  background: #b18a4910;
  margin-bottom: 12px;
}
.quran-refreshed #quranLyricsPanel .ql-arabic {
  font-size: clamp(27px, 2.5vw, 36px);
  line-height: 2.15;
  color: #f2e2c3;
  margin: 0 0 12px;
  text-wrap: pretty;
}
.quran-refreshed #quranLyricsPanel .ql-translation {
  font:
    13px/1.95 Poppins,
    sans-serif;
  color: #c9b99c;
  max-width: 62ch;
  text-wrap: pretty;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-translation-note {
  flex: none;
  padding: 13px 15px;
  margin: 0 0 4px;
  font-size: 10px;
  line-height: 1.85;
  border-color: #d6b37424;
  background: #b18a4908;
  color: #bca987;
  border-radius: 13px;
}
.quran-refreshed
  #quranLyricsPanel
  :is(.quran-lyrics-empty, .quran-lyrics-locked, .quran-lyrics-loggedout) {
  max-width: 440px;
  border: 0;
  background: none;
  padding: 32px 20px;
  color: #c1ac88;
  font-size: 13px;
  line-height: 1.9;
}
.quran-refreshed #quranLyricsPanel .ql-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  border-color: #d6b3743a;
  background: #c49a5010;
  box-shadow: none;
}
.quran-refreshed #quranLyricsPanel:is(:fullscreen, .immersive-fallback) {
  border-radius: 0;
  background:
    linear-gradient(110deg, #160f09e6, #160f09cc),
    url("/assets/images/bg-ornament.jpg") center top / 620px auto repeat;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-header {
  padding: 24px 32px;
  background: #21180fd9;
  border-color: #d6b37430;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-immersive {
  background: transparent;
  border-color: #d6b37424;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-player-heading {
  border: 1px solid #d6b37430;
  border-radius: 20px;
  padding: 25px 17px;
  background:
    radial-gradient(ellipse at 50% 0, #d3a85215, transparent 80%), #2b2015d9;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-artwork {
  width: 80px;
  height: 80px;
  border-color: #d6b37470;
  box-shadow: 0 0 0 5px #b18a4910;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-reciter {
  font:
    400 26px/1.3 "Playfair Display",
    serif;
  text-shadow: none;
  color: #ecd5a9;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-current {
  font-size: 12px;
  color: #bfa984;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-player-controls {
  padding: 19px 15px;
  border: 1px solid #d6b37430;
  border-radius: 20px;
  background: #241a11d9;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-immersive-field
  label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: #bea781;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-immersive-field
  select {
  border-radius: 13px;
  border-color: #d6b37438;
  background: #241a11e8;
  box-shadow: none;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-play {
  background: linear-gradient(145deg, #efd59c, #d7b16e);
  border-color: #edce94;
  box-shadow: 0 4px 18px #dbb26e14;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-player-ambience {
  border-color: #d6b37430;
  background: #241a11d9;
  border-radius: 16px;
}
.quran-refreshed #quranLyricsPanel .quran-lyrics-volumes {
  border: 0;
  padding: 8px 0 0;
  background: none;
}
@media (min-width: 821px) {
  .quran-refreshed .qrf-reader-slot #quranLyricsPanel.open {
    height: min(680px, 76vh);
    min-height: 420px;
    margin: 0 0 24px;
  }
  .quran-refreshed .qrf-reader-slot #quranLyricsPanel:not(.open) {
    display: none;
  }
  .quran-refreshed .qrf-reader-slot #quranLyricsPanel.open {
    animation: none;
  }
  .quran-refreshed .carousel-item:hover {
    transform: translateY(-3px) !important;
  }
  .quran-refreshed .carousel-item.active {
    animation: qrf-reciter-select 0.4s ease both;
  }
}
@media (min-width: 901px) and (min-height: 501px) {
  .quran-refreshed #quranLyricsPanel:is(:fullscreen, .immersive-fallback) {
    grid-template-columns: 360px minmax(0, 1fr);
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .quran-lyrics-immersive {
    padding: 26px;
    gap: 22px;
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .quran-lyrics-body {
    padding: 28px max(30px, calc((100% - 920px) / 2)) 40px;
    gap: 17px;
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .quran-lyrics-ayah {
    padding: 30px;
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .ql-arabic {
    font-size: clamp(32px, 2.6vw, 42px);
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .ql-translation {
    font-size: 14px;
  }
}
@media (max-width: 900px), (max-height: 500px) {
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .quran-lyrics-header {
    padding: 12px max(14px, env(safe-area-inset-right)) 12px
      max(14px, env(safe-area-inset-left));
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .quran-refreshed #quranLyricsPanel .quran-lyrics-header h3 {
    font-size: 22px;
  }
  .quran-refreshed #quranLyricsPanel .qrf-reader-marker {
    display: none;
  }
  .quran-refreshed #quranLyricsPanel .quran-lyrics-header p {
    font-size: 10px;
    line-height: 1.6;
  }
  .quran-refreshed #quranLyricsPanel .quran-lyrics-header {
    padding: 16px;
    gap: 10px;
  }
  .quran-refreshed #quranLyricsPanel .quran-lyrics-header-actions {
    gap: 4px;
  }
  .quran-refreshed #quranLyricsPanel .quran-lyrics-body {
    padding: 14px;
    gap: 11px;
  }
  .quran-refreshed #quranLyricsPanel .quran-lyrics-ayah {
    padding: 21px 15px;
  }
  .quran-refreshed #quranLyricsPanel .ql-arabic {
    font-size: 29px;
  }
  .quran-refreshed #quranLyricsPanel .ql-translation {
    font-size: 12px;
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .quran-lyrics-artwork {
    width: 52px;
    height: 52px;
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .quran-lyrics-reciter {
    font-size: 21px;
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .quran-lyrics-player-heading {
    padding: 17px;
  }
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-header
  h3 {
  font:
    400 27px/1.3 "Playfair Display",
    serif;
}
.quran-refreshed
  #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
  .quran-lyrics-header
  p {
  display: block;
  font:
    11px/1.7 Poppins,
    sans-serif;
}
@media (max-width: 900px), (max-height: 500px) {
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .quran-lyrics-header
    h3 {
    font-size: 20px;
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .quran-lyrics-header
    p {
    font-size: 10px;
  }
  .quran-refreshed
    #quranLyricsPanel:is(:fullscreen, .immersive-fallback)
    .ql-translation {
    font-size: 14px;
    line-height: 1.9;
  }
}
@keyframes qrf-reader-enter {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes qrf-reciter-select {
  from {
    box-shadow: 0 0 0 3px #d8b47220;
  }
  to {
    box-shadow: inset 0 0 30px #e3b96906;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quran-refreshed .carousel-item,
  .quran-refreshed .carousel-item:hover,
  .quran-refreshed #quranLyricsPanel,
  .quran-refreshed #quranLyricsPanel *,
  .quran-refreshed #quranLyricsPanel *::before,
  .quran-refreshed #quranLyricsPanel *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .quran-refreshed .carousel-item:hover {
    transform: none !important;
  }
}
