/* v1.2: element bar as one scrolling line, المظهر grouping, header, player bar, tafsir split editor */

/* ---------- element bar: one line, drag to scroll ---------- */
html body #qvsElementBar.qvs18-bar,
html body #qvsElementBar{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center;
  gap:7px;
  overflow-x:auto!important;
  overflow-y:hidden;
  scrollbar-width:none;
  -ms-overflow-style:none;
  padding:8px 6px!important;
  cursor:grab;
  touch-action:pan-x;
  overscroll-behavior-x:contain;
}
html body #qvsElementBar::-webkit-scrollbar{display:none}
html body #qvsElementBar.qvs19-drag{cursor:grabbing}
html body #qvsElementBar > button{flex:0 0 auto!important;white-space:nowrap}

/* ---------- المظهر card and the sections moved under another element ---------- */
html body details.qvs19-sub{
  margin:8px 0 0;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  padding:0 10px;
}
html body details.qvs19-sub > summary{
  list-style:none;
  cursor:pointer;
  padding:10px 2px;
  font:700 13px system-ui,Tahoma,sans-serif;
  color:#dbeae5;
  display:flex;
  align-items:center;
  gap:8px;
}
html body details.qvs19-sub > summary::-webkit-details-marker{display:none}
html body details.qvs19-sub > summary .qvs-chev{display:none}
html body details.qvs19-sub > summary:after{content:'‹';margin-inline-start:auto;opacity:.6;transition:transform .15s}
html body details.qvs19-sub[open] > summary:after{transform:rotate(-90deg)}
html body details.qvs19-sub .qvs-card-body{padding:0 0 8px}

/* ---------- header: logo without the gold frame, bigger, balanced name block ---------- */
html body header.site-header .brand{gap:14px;align-items:center}
html body header.site-header .brand-mark{
  width:62px!important;height:62px!important;min-width:62px!important;
  border:0!important;outline:0!important;box-shadow:none!important;
  background:transparent!important;padding:0!important;border-radius:16px!important;
  overflow:hidden;
}
html body header.site-header .brand-mark svg{width:100%!important;height:100%!important;display:block;border-radius:16px}
html body header.site-header .brand-name{display:flex;align-items:baseline;gap:9px;line-height:1.1}
html body header.site-header .brand-name h1{font-size:24px;line-height:1.1;margin:0}
html body header.site-header .brand-latin{font-size:14px;opacity:.75;line-height:1.1;letter-spacing:.02em}
html body header.site-header .brand-sub{font-size:12.5px;opacity:.7;margin-top:5px;line-height:1.2}

/* ---------- player bar ---------- */
/* the row is: [play/stop] [time] [seek] [volume icon+slider] [safe] [fullscreen]
   .timeline-head is display:contents, so its children are flex items of .timeline-control. */
html body[data-theme] section.panel.preview div.timeline-control .transport-volume{
  display:flex!important;align-items:center;gap:8px;
  width:auto!important;min-width:0!important;max-width:none!important;
  flex:0 0 auto!important;height:42px!important;
  position:static!important;overflow:visible!important;
  margin:0 14px 0 10px!important;padding:0!important;background:transparent!important;
}
html body[data-theme] section.panel.preview div.timeline-control .transport-volume input#previewVolume{
  display:block!important;position:static!important;transform:none!important;inset:auto!important;
  width:118px!important;min-width:118px!important;max-width:118px!important;
  height:26px!important;padding:0!important;margin:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;
  appearance:auto;-webkit-appearance:auto;accent-color:#2aa6a0;cursor:pointer;
}
html body[data-theme] section.panel.preview div.timeline-control #seekBar{margin:0 8px!important}
html body[data-theme] section.panel.preview div.timeline-control #qvs14SafeQuick{margin-inline-start:10px!important}

@media (max-width:820px){
  html body[data-theme] section.panel.preview div.timeline-control .transport-volume{gap:6px;margin:0 4px!important;height:38px!important}
  html body[data-theme] section.panel.preview div.timeline-control #seekBar{margin:0!important}
  html body[data-theme] section.panel.preview div.timeline-control .transport-volume input#previewVolume{
    width:92px!important;min-width:92px!important;max-width:92px!important;height:24px!important;
  }
  html body[data-theme] section.panel.preview div.timeline-control #seekLabel{
    flex:1 1 auto!important;min-width:0!important;text-align:left!important;order:9!important;
    margin:0!important;white-space:nowrap!important;
  }
  html body[data-theme] section.panel.preview div.timeline-control #qvs14SafeQuick{margin-inline-start:4px!important}
}

/* ---------- tafsir split editor ---------- */
html body .qvs19-tm{margin-top:10px;border:1px solid rgba(255,255,255,.10);border-radius:12px;padding:10px 11px;background:rgba(255,255,255,.02)}
html body .qvs19-tm-h{display:flex;align-items:center;gap:8px;font:700 12.5px system-ui,Tahoma,sans-serif;color:#dbeae5}
html body .qvs19-tm-h button{margin-inline-start:auto;font:600 11.5px system-ui;padding:4px 9px;border-radius:8px;border:1px solid rgba(255,255,255,.16);background:transparent;color:#cfe3dd;cursor:pointer}
html body .qvs19-tm-note{font-size:11.5px;line-height:1.6;opacity:.7;margin-top:6px}
html body .qvs19-tm-body{margin-top:8px;font:400 13px/1.9 "Noto Naskh Arabic",serif;color:#e7dfec}
html body .qvs19-tm-s{display:inline}
html body .qvs19-tm-cut{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:18px;margin:0 3px;padding:0 5px;
  border:1px dashed rgba(255,255,255,.28);border-radius:6px;
  font:600 10px system-ui;color:#9fb6ae;background:transparent;cursor:pointer;vertical-align:middle;
}
html body .qvs19-tm-cut.on{border-style:solid;border-color:#2dd4a8;color:#04231d;background:#2dd4a8}
html body .qvs19-tm-part{display:inline-block;font:700 10px system-ui;color:#2dd4a8;border:1px solid rgba(45,212,168,.45);border-radius:6px;padding:0 5px;margin:0 4px;vertical-align:middle}
html body .qvs19-tm-empty{font-size:12px;opacity:.65;margin-top:6px}

/* ---------- clearer loading hint ---------- */
html body #readerHint.qvs19-loading{color:#ffd98a;font-weight:700;animation:qvs19pulse 1.4s ease-in-out infinite}
@keyframes qvs19pulse{0%,100%{opacity:.55}50%{opacity:1}}

/* a sub-card kept always visible (رقم الآية under النص) */
html body .qvs19-substatic{
  margin:10px 0 0;border:1px solid rgba(255,255,255,.10);border-radius:12px;
  background:rgba(255,255,255,.02);padding:0 10px 8px;
}
html body .qvs19-substatic-h{
  display:flex;align-items:center;gap:8px;padding:10px 2px 6px;
  font:700 13px system-ui,Tahoma,sans-serif;color:#dbeae5;
}
html body .qvs19-substatic-h .qvs-t{margin-inline-start:6px}
html body .qvs19-substatic .qvs-card-body{padding:0 0 4px}

/* flicker: a word that carries a meaning keeps its meaning colour in both states (spoken highlight on or off) */
html body #arabic span.qvs14-mw.active-word{color:var(--q14mc,#ffe08a)!important}
