@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Naskh+Arabic:wght@400;500;600&display=swap");
:root {
  color-scheme: dark;
  --bg: #101724;
  --surface: #151e2d;
  --elevated: #1b2636;
  --line: #ffffff12;
  --text: #eff0f4;
  --muted: #97a2b6;
  --accent: #ddc291;
  --soft: #c2c8d3;
  --player: #151e2df5;
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
a {
  color: inherit;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button,
input {
  touch-action: manipulation;
}
.preview-note {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ddc2910b;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--accent);
}
.preview-note span {
  opacity: 0.5;
}
header {
  height: 105px;
  max-width: 1380px;
  padding: 0 60px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-mark {
  width: 44px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid #ddc29170;
  border-radius: 14px 14px 5px 5px;
  color: var(--accent);
  font-family: "Noto Naskh Arabic", serif;
  font-weight: 400;
  font-size: 35px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 5px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}
.icon-btn {
  border: 0;
  background: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 25px;
  color: var(--soft);
}
.header-right .icon-btn {
  border: 1px solid var(--line);
  border-radius: 50%;
}
main {
  max-width: 1380px;
  margin: auto;
  padding: 40px 60px 180px;
}
.introduction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.fine-line {
  width: 24px;
  height: 1px;
  background: var(--accent);
}
h1 {
  font-family: "Manrope", sans-serif;
  font-size: 43px;
  line-height: 1.3;
  letter-spacing: -1.6px;
  font-weight: 500;
  margin: 20px 0 0;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}
.bismillah {
  font-family: "Noto Naskh Arabic", serif;
  font-size: 36px;
  line-height: 1.8;
  color: var(--accent);
  margin: 0 50px 0 20px;
  text-align: center;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
h2 {
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0;
}
.section-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.reciters {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.reciter {
  position: relative;
  padding: 21px 7px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  min-width: 0;
}
.reciter:hover {
  background: var(--elevated);
}
.reciter.active {
  border: 1px solid #ddc2918c;
  background: linear-gradient(145deg, #ddc29115, transparent), var(--surface);
}
.reciter .avatar {
  height: 58px;
  width: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--elevated);
  border: 1px solid var(--line);
  font-family: "Noto Naskh Arabic", serif;
  color: var(--soft);
  font-size: 19px;
  line-height: 1.4;
}
.reciter.active .avatar {
  color: var(--accent);
  background: #ddc29110;
  border-color: #ddc29124;
}
.reciter strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}
.reciter small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.reciter .check {
  position: absolute;
  top: 9px;
  right: 9px;
  color: var(--accent);
  font-size: 11px;
}
.listening-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 40px;
  margin-top: 43px;
}
.library-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 15px;
}
.library-top h2 {
  font-size: 25px;
  margin-top: 8px;
}
.count {
  vertical-align: middle;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 9px;
  color: var(--muted);
  margin-left: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 9px;
  max-width: 230px;
}
.search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  flex-shrink: 0;
}
.search input {
  color: var(--text);
  font-size: 13px;
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
}
.search input::placeholder {
  color: var(--muted);
}
.list-head,
.surah {
  display: grid;
  grid-template-columns: 32px 1fr 130px 30px;
  gap: 16px;
  align-items: center;
}
.list-head {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.7px;
  padding: 0 15px 13px;
  border-bottom: 1px solid var(--line);
}
.list-head span:nth-child(3) {
  text-align: right;
  padding-right: 10px;
}
.surah {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 18px 15px;
  min-height: 82px;
}
.surah:hover {
  background: var(--surface);
}
.surah.active {
  background: #ddc2910a;
  border-radius: 8px;
  box-shadow: inset 2px 0 var(--accent);
}
.number {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.surah.active .number {
  color: var(--accent);
}
.surah-title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}
.surah-meta {
  font-size: 12px;
  color: var(--muted);
}
.surah-arabic {
  font-family: "Noto Naskh Arabic", serif;
  font-size: 25px;
  text-align: right;
  color: var(--soft);
}
.surah.active .surah-arabic {
  color: var(--accent);
}
.row-play {
  font-size: 12px;
  color: var(--muted);
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
}
.active .row-play {
  color: var(--accent);
  background: #ddc29113;
}
.session {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 21px;
  align-self: start;
  position: sticky;
  top: 24px;
}
.session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.session-top .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.spark {
  font-size: 20px;
  color: var(--accent);
}
.album {
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse at 30% 20%, #55678160, transparent 70%),
    linear-gradient(140deg, #24374b, #182535 80%);
  border-radius: 9px;
  border: 1px solid #ddc29133;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 12px;
  color: #ddc291;
}
.album-edition {
  font-family: "Noto Naskh Arabic", serif;
  font-size: 17px;
  opacity: 0.8;
}
.album-arabic {
  font-family: "Noto Naskh Arabic", serif;
  font-size: 48px;
  text-align: center;
  line-height: 1.6;
}
.album-bottom {
  font-size: 7px;
  letter-spacing: 1.2px;
  white-space: nowrap;
  color: #c8b799;
}
.album-bottom span {
  margin: 0 6px;
}
.session-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 0;
}
.session-title h3 {
  font-size: 20px;
  margin: 0 0 7px;
  letter-spacing: -0.5px;
}
.session-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.session-title > span {
  font-size: 30px;
  color: #77879c4d;
  font-weight: 300;
}
.primary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px 8px;
  background: var(--accent);
  color: #202633;
  font-size: 13px;
  font-weight: 600;
}
.primary:hover {
  filter: brightness(1.08);
}
.session-options {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 8px;
}
.session-options > button,
.session-options > label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 12px;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  color: var(--soft);
}
.session-options > button > span:first-child,
.session-options > label > span {
  font-size: 20px;
  width: 20px;
  color: var(--muted);
}
.toggle {
  margin-left: auto;
  width: 25px;
  height: 15px;
  background: var(--elevated);
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
}
.toggle:after {
  content: "";
  height: 9px;
  width: 9px;
  background: var(--muted);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
}
button[aria-pressed="true"] .toggle {
  background: var(--accent);
}
button[aria-pressed="true"] .toggle:after {
  left: 12px;
  background: #162130;
}
.session-options input {
  margin-left: auto;
  accent-color: var(--accent);
}
.quiet-note {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin: 12px 0 0;
}
footer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin-top: 24px;
}
footer a {
  text-underline-offset: 4px;
}
#empty {
  padding: 20px;
  color: var(--muted);
}
.player {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #ffffff14;
  backdrop-filter: blur(20px);
  background: var(--player);
  display: grid;
  grid-template-columns: 1fr minmax(280px, 1.3fr) 1fr;
  gap: 40px;
  align-items: center;
  padding: 16px max(30px, calc((100vw - 1260px) / 2))
    max(16px, env(safe-area-inset-bottom));
}
.player-track {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
#track-art {
  height: 54px;
  width: 54px;
  flex-shrink: 0;
  border: 1px solid #ddc29130;
  border-radius: 8px;
  background: linear-gradient(135deg, #304358, #172739);
  display: grid;
  place-items: center;
  font-family: "Noto Naskh Arabic", serif;
  font-size: 18px;
  color: #ddc291;
  padding: 3px;
}
.player-track h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 5px;
}
.player-track p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.play-buttons {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
}
.play-buttons svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: currentColor;
}
.play {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #172131;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.timeline input {
  flex: 1;
  min-width: 0;
}
.player input[type="range"] {
  accent-color: var(--accent);
  height: 3px;
}
.player-end {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 15px;
}
.player-end label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-end input {
  width: 75px;
}
#status {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}
.light {
  color-scheme: light;
  --bg: #f5f6f9;
  --surface: #fff;
  --elevated: #eef0f5;
  --line: #162d4914;
  --text: #202d43;
  --muted: #64748b;
  --accent: #a47a3f;
  --soft: #485d75;
  --player: #ffffffed;
}
.light .primary,
.light .play {
  background: #d8bb87;
}
.light .reciter.active {
  background: #a47a3f09;
}
.light .album {
  color: #ddc291;
}
.light .brand-mark {
  color: #a47a3f;
}
.light .surah.active {
  background: #a47a3f0b;
}
@media (min-width: 1500px) {
  header,
  main {
    padding-left: 30px;
    padding-right: 30px;
  }
}
@media (max-width: 1100px) {
  header {
    padding: 0 30px;
  }
  main {
    padding: 30px 30px 170px;
  }
  .listening-layout {
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) 255px;
  }
  .reciters {
    gap: 8px;
  }
  .reciter strong {
    font-size: 12px;
  }
  .bismillah {
    margin-right: 15px;
  }
  .session {
    padding: 17px;
  }
  .album-arabic {
    font-size: 42px;
  }
  .player {
    gap: 25px;
  }
  .list-head,
  .surah {
    grid-template-columns: 25px 1fr 95px 25px;
    gap: 10px;
  }
}
@media (max-width: 800px) {
  header {
    height: 87px;
    padding: 0 22px;
  }
  .header-right > span {
    display: none;
  }
  main {
    padding: 25px 22px 145px;
  }
  .brand {
    font-size: 24px;
  }
  .introduction {
    margin-bottom: 28px;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin-top: 16px;
  }
  .bismillah {
    font-size: 24px;
    margin: 0 0 0 15px;
  }
  .introduction .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .fine-line {
    width: 16px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading > span {
    font-size: 11px;
  }
  .desktop-only {
    display: none;
  }
  .reciters {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 1px 1px 12px;
    scrollbar-width: thin;
    scrollbar-color: #ddc29135 transparent;
  }
  .reciter {
    min-width: 123px;
    flex: 0 0 123px;
    padding: 17px 6px 15px;
  }
  .reciter .avatar {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }
  .reciter strong {
    font-size: 13px;
  }
  .listening-layout {
    display: block;
    margin-top: 25px;
  }
  .session {
    display: none;
  }
  .library-top {
    margin-bottom: 23px;
  }
  .library-top h2 {
    font-size: 23px;
  }
  .library-top .eyebrow {
    font-size: 9px;
  }
  .search {
    max-width: 180px;
    padding: 11px;
  }
  .search input {
    font-size: 14px;
  }
  .player {
    grid-template-columns: 1fr auto;
    padding: 12px 20px max(12px, env(safe-area-inset-bottom));
    gap: 0 10px;
  }
  .transport {
    display: contents;
  }
  .play-buttons {
    grid-row: 1;
    grid-column: 2;
    gap: 6px;
  }
  .play-buttons .icon-btn {
    width: 32px;
  }
  .play {
    width: 40px;
    height: 40px;
  }
  .timeline {
    grid-row: 2;
    grid-column: 1/-1;
    margin-top: 10px;
  }
  .player-end {
    display: none;
  }
  .player-track {
    gap: 11px;
  }
  #track-art {
    width: 43px;
    height: 46px;
    font-size: 16px;
  }
  .player-track h3 {
    font-size: 14px;
  }
  .player-track p {
    font-size: 12px;
  }
  .list-head,
  .surah {
    grid-template-columns: 24px minmax(0, 1fr) 80px 20px;
    gap: 10px;
  }
  .surah {
    padding: 15px 9px;
  }
  .surah-arabic {
    font-size: 23px;
  }
  .surah-title {
    font-size: 15px;
  }
  .surah-meta {
    font-size: 12px;
    line-height: 1.5;
  }
  .row-play {
    width: 22px;
  }
  .count {
    font-size: 10px;
    margin-left: 8px;
  }
  .list-head {
    padding-left: 9px;
    padding-right: 9px;
  }
  .search {
    max-width: 46%;
  }
  .preview-note {
    height: 25px;
    font-size: 9px;
  }
  .surah.active {
    box-shadow: inset 2px 0 var(--accent);
  }
}
@media (max-width: 410px) {
  h1 {
    font-size: 28px;
  }
  .bismillah {
    font-size: 20px;
  }
  .introduction .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .search input {
    font-size: 12px;
  }
  .surah-arabic {
    font-size: 22px;
  }
  .library-top h2 {
    font-size: 21px;
  }
  .surah-meta {
    font-size: 11px;
  }
  .player-track {
    max-width: 180px;
  }
  .player-track h3 {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.18s ease,
      border-color 0.18s ease;
  }
  .reciter:hover {
    transform: translateY(-2px);
  }
}

.mobile-options {
  display: none;
}
@media (max-width: 800px) {
  .mobile-options {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 12px;
  }
  .mobile-options button {
    background: none;
    color: inherit;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 12px;
  }
  .mobile-options button[aria-pressed="true"] {
    color: var(--accent);
    border-color: var(--accent);
  }
  .mobile-options label {
    display: flex;
    gap: 7px;
    align-items: center;
  }
  .mobile-options input {
    accent-color: var(--accent);
  }
}
