:root {
  color-scheme: dark;
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, sans-serif;
  background: #07150f;
  color: #f4ecd8;
}

* { box-sizing: border-box; }
html, body, .receiver { width: 100%; height: 100%; margin: 0; overflow: hidden; }

.receiver {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(27, 79, 54, .46), transparent 54%),
    #07150f;
}

.page-stage {
  position: absolute;
  inset: 2.2vh 2.2vw;
  display: grid;
  place-items: center;
}

.mushaf-page {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: drop-shadow(0 1.2vh 2vh rgba(0, 0, 0, .52));
  transition: opacity 180ms ease-out;
}

.mushaf-page.visible { opacity: 1; }

.waiting {
  display: grid;
  gap: 1.4vh;
  justify-items: center;
  font-size: clamp(25px, 3.1vw, 58px);
  text-align: center;
}

.waiting .mark { font-size: clamp(80px, 10vw, 190px); color: #87cba8; }
.waiting small { font-size: .48em; opacity: .78; }

.now-playing, .status {
  position: absolute;
  left: 3vw;
  right: 3vw;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(5, 23, 15, .88);
  box-shadow: 0 .6vh 2vh rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
  transition: opacity 220ms ease;
}

.now-playing {
  top: 2.4vh;
  width: max-content;
  max-width: 58vw;
  margin-inline-start: auto;
  padding: 1vh 1.4vw;
  border-radius: 1.1vh;
}

.title { font-size: clamp(18px, 1.7vw, 33px); font-weight: 700; }
.reciter { margin-top: .2vh; font-size: clamp(14px, 1.1vw, 23px); opacity: .8; }

.status {
  bottom: 2.4vh;
  width: min(54vw, 1000px);
  margin-inline: auto;
  padding: 1vh 1.4vw;
  border-radius: 1.1vh;
}

.track-place { margin-bottom: .7vh; text-align: center; font-size: clamp(15px, 1.25vw, 25px); }
.progress { height: .55vh; min-height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.2); direction: ltr; }
.progress span { display: block; width: 0; height: 100%; background: #86d2a9; transition: width 240ms linear; }
.times { display: flex; justify-content: space-between; margin-top: .5vh; font: 500 clamp(13px, 1vw, 21px) system-ui, sans-serif; }
.hidden { opacity: 0; pointer-events: none; }

@media (max-aspect-ratio: 1/1) {
  .page-stage { inset: 1.5vh 1.5vw; }
  .now-playing { max-width: 84vw; }
  .status { width: 84vw; }
}
