.vq-rec-stage {
  --rec-ink: #f3f7ff;
  --rec-quiet: #b7c9e0;
  --rec-accent: #c9dffd;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  inline-size: 100%;
  aspect-ratio: 1.22;
  margin: 0;
  color: var(--rec-ink);
  font: inherit;
}
.vq-rec-stage, .vq-rec-stage * { box-sizing: border-box; }
.vq-rec-light {
  position: absolute;
  inset: 4% -1% 2%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 61% 49%, rgba(70, 111, 166, .26) 0, rgba(43, 76, 124, .17) 28%, transparent 66%);
}
[dir="rtl"] .vq-rec-light { transform: scaleX(-1); }
.vq-rec-rig {
  position: absolute;
  inset-inline-end: 6.6%;
  inset-block-start: 1%;
  inline-size: 59.5%;
  aspect-ratio: 671 / 809;
  user-select: none;
  pointer-events: none;
}
.vq-rec-rig::before {
  content: "";
  position: absolute;
  inset: 89% -8% -3%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(2, 7, 18, .74), transparent 69%);
}
.vq-rec-cabinet, .vq-rec-cone { display: block; position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.vq-rec-cone { transform-origin: 37.85% 70.95%; opacity: 0; }
.vq-rec-stage[data-playing="true"] .vq-rec-cone { opacity: 1; }
.vq-rec-console {
  position: absolute;
  inset-inline-start: 2%;
  inset-block-end: 3%;
  z-index: 1;
  inline-size: min(63%, 22.5rem);
  padding: clamp(14px, 3.2cqw, 23px) clamp(15px, 3.4cqw, 25px) clamp(10px, 2cqw, 15px);
  border: 1px solid rgba(167, 197, 237, .33);
  border-radius: 14px;
  background: linear-gradient(123deg, rgba(44, 65, 94, .94), rgba(19, 34, 58, .94) 83%);
  box-shadow: 0 18px 35px -19px rgba(0, 5, 17, .9), inset 0 1px 0 rgba(223, 235, 255, .15);
}
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .vq-rec-console {
    background: linear-gradient(121deg, rgba(48, 70, 99, .79), rgba(19, 34, 58, .9) 78%);
    -webkit-backdrop-filter: blur(13px);
    backdrop-filter: blur(13px);
  }
}
.vq-rec-context { display: flex; align-items: center; gap: 8px; color: #d0dcef; font-size: clamp(.76rem, 2cqw, .86rem); line-height: 1.5; }
.vq-rec-context svg { inline-size: 19px; block-size: 19px; flex: none; color: #b8d6ff; }
.vq-rec-record { display: flex; align-items: center; gap: clamp(10px, 2.5cqw, 16px); margin-block-start: clamp(10px, 2.4cqw, 18px); }
.vq-rec-art { flex: none; inline-size: clamp(32px, 7.9cqw, 48px); block-size: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.vq-rec-record strong { flex: 1; min-inline-size: 0; font: inherit; font-size: clamp(1.12rem, 4.7cqw, 1.8rem); font-weight: 600; line-height: 1.25; color: var(--rec-ink); }
.vq-rec-stage:lang(ar) .vq-rec-record strong { line-height: 1.7; font-family: "VQ Arabic", "Noto Sans Arabic", sans-serif; }
.vq-rec-play {
  display: none; flex: none; inline-size: clamp(44px, 8cqw, 50px); block-size: clamp(44px, 8cqw, 50px);
  padding: 0; border: 0; border-radius: 50%; background: #dceaff; color: #132744; cursor: pointer; place-items: center;
  transition: background-color .15s, transform .15s; touch-action: manipulation;
}
.vq-rec-stage[data-mounted] .vq-rec-play { display: grid; }
.vq-rec-play > span { grid-area: 1 / 1; display: grid; place-items: center; }
.vq-rec-play .vq-rec-stop-icon, .vq-rec-stage[data-playing="true"] .vq-rec-start-icon { display: none; }
.vq-rec-stage[data-playing="true"] .vq-rec-stop-icon { display: grid; }
.vq-rec-play svg { inline-size: 21px; block-size: 21px; }
.vq-rec-play:active { transform: scale(.95); }
@media (hover:hover) { .vq-rec-play:hover { background: #f4f8ff; } }
.vq-rec-play:focus-visible, .vq-rec-track:focus-within { outline: 2px solid #d3e7ff; outline-offset: 3px; }
.vq-rec-custom { display: none; align-items: center; gap: 11px; margin-block-start: 4px; }
.vq-rec-stage[data-mounted] .vq-rec-custom { display: flex; }
.vq-rec-track { display: grid; position: relative; flex: 1; min-inline-size: 0; block-size: 44px; align-items: center; border-radius: 4px; }
.vq-rec-wave, .vq-rec-played {
  grid-area: 1 / 1; inline-size: 100%; block-size: 37px;
  -webkit-mask: url("/assets/recitation-stage/fatihah-wave.svg") center / 100% 100% no-repeat;
  mask: url("/assets/recitation-stage/fatihah-wave.svg") center / 100% 100% no-repeat;
}
.vq-rec-wave { background: #7792b4; }
.vq-rec-played { background: #e1edff; clip-path: inset(0 100% 0 0); }
.vq-rec-stage[data-track="other"] :is(.vq-rec-wave, .vq-rec-played) { height: 2px; mask: none; -webkit-mask: none; }
.vq-rec-track input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.vq-rec-track input:disabled { cursor: auto; }
.vq-rec-custom time { color: var(--rec-quiet); font-family: "VQ Sans", Arial, sans-serif; font-size: .73rem; font-variant-numeric: tabular-nums; line-height: 1; }
.vq-rec-console audio { display: block; inline-size: 100%; margin-block-start: 9px; }
.vq-rec-stage[data-mounted] audio { display: none; }
.vq-rec-error { line-height: 1.48; margin: 4px 0 0; color: #f7d1ce; font-size: .85rem; }
.vq-rec-error:empty { display: none; }
@container (max-width: 410px) {
  .vq-rec-console { inline-size: 73%; inset-inline-start: 0; inset-block-end: 0; }
  .vq-rec-rig { inset-inline-end: 2%; inset-block-start: 0; }
}
@media (max-width: 700px) {
  .vq-rec-stage { max-inline-size: 520px; margin-inline: auto; aspect-ratio: 1.13; }
}
@media (max-width: 360px) {
  .vq-rec-stage { aspect-ratio: 1.06; }
  .vq-rec-console { inline-size: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  .vq-rec-rig, .vq-rec-cone, .vq-rec-play { transform: none !important; transition: none; }
  .vq-rec-stage[data-playing="true"] .vq-rec-cone { opacity: 0; }
}
@media (forced-colors: active) {
  .vq-rec-console, .vq-rec-play { border: 1px solid ButtonText; }
  .vq-rec-wave, .vq-rec-played { forced-color-adjust: none; }
}

.vq-rec-credit { flex:1; min-inline-size:0; }
.vq-rec-credit strong, .vq-rec-credit span { display:block; }
.vq-rec-credit span { color:var(--rec-quiet); font-size:clamp(.76rem,2.2cqw,.93rem); line-height:1.5; }

/* The folds follow the three thirds of the recording. The seek bar retains exact time. */
.vq-fold { display:block; flex:none; fill:#97b9e7; }
.vq-fold path { transition:fill 180ms ease; }
.vq-rec-context .vq-fold { inline-size:22px; block-size:22px; }
.vq-rec-stage[data-rec-third="0"] .vq-fold path:first-child,
.vq-rec-stage[data-rec-third="1"] .vq-fold path:nth-child(2),
.vq-rec-stage[data-rec-third="2"] .vq-fold path:nth-child(3) { fill:#f0f7ff; }
.vq-rec-stage[data-rec-third]:not([data-rec-third=""]) .vq-rec-context { color:#e4efff; }
.vq-footer .footer-brand .vq-owner { display:inline-flex; align-items:center; gap:.54rem; color:#cbddf7; }
.vq-owner .vq-fold { inline-size:clamp(24px,2.8vw,38px); block-size:auto; }
.vq-owner .vq-fold path:nth-child(2) { fill:#7399ce; }
.vq-owner .vq-fold path:nth-child(3) { fill:#cde2ff; }
.vq-owner:is(:hover,:focus-visible) .vq-fold path { fill:#f0f7ff; }
@media (prefers-reduced-motion:reduce) { .vq-fold path { transition:none; } }
