/* ==========================================================================
   Ouvir — narração das páginas da Cripta (10/11/2026)
   ========================================================================== */

/* ---------------------------------------------------------------- o botão, na abertura da página */
.cr-ouvir{display:inline-flex;align-items:center;gap:14px;margin-top:30px;padding:9px 22px 9px 9px;border-radius:999px;cursor:pointer;
  font:inherit;color:var(--texto,#f3eee4);text-align:left;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.015));
  border:1px solid rgba(201,162,75,.38);box-shadow:0 0 0 0 rgba(201,162,75,0),0 18px 40px -22px rgba(0,0,0,.9);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  transition:border-color .4s var(--ease,ease),box-shadow .5s var(--ease,ease),transform .4s var(--ease,ease)}
.cr-ouvir:hover,.cr-ouvir:focus-visible{border-color:rgba(236,208,149,.7);box-shadow:0 0 0 6px rgba(201,162,75,.08),0 22px 46px -22px rgba(0,0,0,.9);transform:translateY(-1px);outline:none}
.cr-ouvir .ic{position:relative;flex:none;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#14100a;
  background:radial-gradient(circle at 35% 30%,#f6e2b0,var(--ouro,#c9a24b) 60%,#8f6d2a);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 8px 22px -8px rgba(201,162,75,.7)}
.cr-ouvir .ic svg{width:18px;height:18px;margin-left:2px}
.cr-ouvir .ic::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:1px solid rgba(201,162,75,.45);opacity:0;transform:scale(.85)}
.cr-ouvir:not(.tocando) .ic::after{animation:ovPulso 3.2s ease-out infinite}
@keyframes ovPulso{0%{opacity:.7;transform:scale(.86)}70%,100%{opacity:0;transform:scale(1.32)}}
.cr-ouvir .tx{display:flex;flex-direction:column;line-height:1.15}
.cr-ouvir .tx b{font-weight:600;font-size:15px;letter-spacing:.01em}
.cr-ouvir .tx small{margin-top:4px;font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ouro-claro,#ecd095);opacity:.8}
.cr-ouvir .eq{display:none;align-items:flex-end;gap:3px;height:16px;margin-left:4px}
.cr-ouvir .eq i{display:block;width:3px;border-radius:2px;background:var(--ouro-claro,#ecd095);animation:ovEq 1s ease-in-out infinite}
.cr-ouvir .eq i:nth-child(2){animation-delay:-.35s}.cr-ouvir .eq i:nth-child(3){animation-delay:-.6s}.cr-ouvir .eq i:nth-child(4){animation-delay:-.15s}
@keyframes ovEq{0%,100%{height:4px}50%{height:16px}}
.cr-ouvir.tocando .eq{display:inline-flex}
.cr-ouvir.tocando .ic svg{display:none}
.cr-ouvir.tocando .ic::before{content:"";width:12px;height:14px;border-left:4px solid #14100a;border-right:4px solid #14100a;box-sizing:border-box}

/* ---------------------------------------------------------------- o trecho que está sendo lido */
[data-k]{transition:color .6s var(--ease,ease),background-color .6s var(--ease,ease),box-shadow .6s var(--ease,ease)}
body.ov-on [data-k]{cursor:pointer;border-radius:10px}
body.ov-on .prose p[data-k]:hover:not(.ov-lendo){background:rgba(255,255,255,.025)}
.ov-lendo{color:#fbf7ee !important;background:linear-gradient(90deg,rgba(201,162,75,.12),rgba(201,162,75,.02) 70%,transparent) !important;
  box-shadow:inset 2px 0 0 var(--ouro,#c9a24b)}
.prose p[data-k]{margin-left:-16px;padding:6px 14px 6px 16px}
blockquote[data-k].ov-lendo{box-shadow:none;background:radial-gradient(ellipse at center,rgba(201,162,75,.12),transparent 70%) !important}
h1[data-k].ov-lendo{box-shadow:none;background:none !important;text-shadow:0 0 34px rgba(236,208,149,.35)}

/* ---------------------------------------------------------------- a barra do player */
.ov{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:900;width:min(940px,calc(100% - 24px));
  transform:translate(-50%,140%);opacity:0;transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .4s ease}
.ov.on{transform:translate(-50%,0);opacity:1}
.ov-in{display:flex;align-items:center;gap:14px;padding:10px 12px 10px 10px;border-radius:20px;
  background:rgba(9,10,13,.82);-webkit-backdrop-filter:blur(22px) saturate(1.25);backdrop-filter:blur(22px) saturate(1.25);
  border:1px solid rgba(201,162,75,.26);box-shadow:0 30px 80px -30px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.05)}
.ov-capa{flex:none;width:46px;height:46px;border-radius:12px;overflow:hidden;box-shadow:0 0 0 1px rgba(201,162,75,.35)}
.ov-capa img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
.ov-tit{min-width:0;flex:0 1 210px;display:flex;flex-direction:column;line-height:1.2}
.ov-tit b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f6f1e6}
.ov-tit small{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--ouro-claro,#ecd095);opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-ctl{display:flex;align-items:center;gap:2px}
.ov-b{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:0;background:none;color:#e9e3d6;cursor:pointer;
  font:600 12.5px/1 var(--ff-body,inherit);transition:background .25s,color .25s,transform .2s}
.ov-b svg{width:22px;height:22px}
.ov-b:hover,.ov-b:focus-visible{background:rgba(255,255,255,.07);color:#fff;outline:none}
.ov-b:active{transform:scale(.94)}
.ov-pp{width:48px;height:48px;color:#14100a;background:radial-gradient(circle at 35% 30%,#f6e2b0,var(--ouro,#c9a24b) 60%,#8f6d2a);box-shadow:0 8px 22px -10px rgba(201,162,75,.8)}
.ov-pp:hover,.ov-pp:focus-visible{background:radial-gradient(circle at 35% 30%,#fff0c8,#d8b25b 60%,#9a7630);color:#14100a}
.ov-pp svg{width:20px;height:20px}
.ov-tl{flex:1;min-width:120px;display:flex;align-items:center;gap:10px;font:500 11.5px/1 var(--ff-body,inherit);color:#b9b1a2;font-variant-numeric:tabular-nums}
.ov-bar{position:relative;flex:1;height:22px;cursor:pointer;touch-action:none}
.ov-bar::before{content:"";position:absolute;left:0;right:0;top:50%;height:3px;margin-top:-1.5px;border-radius:3px;background:rgba(255,255,255,.12)}
.ov-fill{position:absolute;left:0;top:50%;height:3px;margin-top:-1.5px;border-radius:3px;width:0;background:linear-gradient(90deg,#8f6d2a,var(--ouro-claro,#ecd095));box-shadow:0 0 12px rgba(236,208,149,.35)}
.ov-dot{position:absolute;top:50%;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border-radius:50%;background:#f6e2b0;box-shadow:0 0 0 4px rgba(236,208,149,.16),0 2px 8px rgba(0,0,0,.6);transition:transform .2s}
.ov-bar:hover .ov-dot,.ov-bar:focus-visible .ov-dot{transform:scale(1.18)}
.ov-bar:focus-visible{outline:none}.ov-bar:focus-visible::before{box-shadow:0 0 0 3px rgba(201,162,75,.35)}
.ov-tick{position:absolute;top:50%;width:2px;height:9px;margin:-4.5px 0 0 -1px;border-radius:1px;background:rgba(236,208,149,.38)}
.ov-vel{width:auto;min-width:46px;padding:0 10px;border-radius:12px;border:1px solid rgba(255,255,255,.1)}
.ov-x{color:#a39c8e}

@media (max-width:760px){
  .ov-in{flex-wrap:wrap;gap:8px 10px;padding:10px}
  .ov-tit{flex:1 1 calc(100% - 210px)}
  .ov-vt,.ov-av{width:36px;height:36px}
  .ov-tl{order:5;flex:1 1 100%;padding:0 4px 2px}
  .ov-vel{order:3}.ov-x{order:4}
  .prose p[data-k]{margin-left:-10px;padding:6px 10px}
  .cr-ouvir{margin-top:24px}
}
@media (prefers-reduced-motion:reduce){
  .ov{transition:none}.cr-ouvir .ic::after{animation:none}.cr-ouvir .eq i{animation:none;height:10px}
}

/* ---------------------------------------------------------------- fontes da página */
.cr-fontes{padding:6px 0 70px;background:#050608}
.cr-fontes details{max-width:860px;border-top:1px solid rgba(201,162,75,.18);padding-top:18px}
.cr-fontes summary{cursor:pointer;list-style:none;display:inline-flex;align-items:center;gap:10px;font:600 12px/1 var(--ff-body,inherit);letter-spacing:.16em;text-transform:uppercase;color:var(--ouro-claro,#ecd095)}
.cr-fontes summary::-webkit-details-marker{display:none}
.cr-fontes summary::before{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .3s}
.cr-fontes details[open] summary::before{transform:rotate(45deg)}
.cr-fontes ol{margin:16px 0 0;padding-left:20px;color:#a8a194;font-size:14px;line-height:1.6}
.cr-fontes li{margin:6px 0}
.cr-fontes a{color:#d9d2c3;text-decoration:underline;text-decoration-color:rgba(201,162,75,.4);text-underline-offset:3px}
.cr-fontes a:hover{color:#fff;text-decoration-color:var(--ouro,#c9a24b)}
