/* ---------- Ouvir esta página ---------- */
.leitura { position: fixed; bottom: var(--rd-y, 14px); z-index: var(--rd-z, 60); transform: scale(var(--rd-scale, 1)); --rd-c1: #d10f1a; --rd-c2: #8f0a12; --rd-tx: #fff; --rd-hl: #b88a3b; --rd-pbg1: #241418; --rd-pbg2: #170f12; --rd-ptx: #fff; font-family: var(--font-sans); }
.leitura-fab { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 12px; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(135deg, var(--rd-c1), var(--rd-c2) 70%); color: var(--rd-tx); box-shadow: 0 14px 30px color-mix(in srgb, var(--rd-c1) 42%, transparent), inset 0 0 0 1.5px rgba(255, 255, 255, .22); transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.leitura-fab::before { content: ""; position: absolute; inset: -5px; border-radius: inherit; border: 2px solid color-mix(in srgb, var(--rd-c1) 45%, transparent); animation: leituraPulse 2.4s ease-out infinite; pointer-events: none; }
.leitura-fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 38px rgba(209, 15, 26, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.leitura-fab:focus-visible, .leitura-panel button:focus-visible { outline: 3px solid var(--rd-hl); outline-offset: 3px; }
.leitura-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.lt-short { display: none; }
.leitura-txt b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.leitura-txt small { font-size: 11.5px; opacity: .85; margin-top: 2px; }
.leitura-eq { display: inline-flex; align-items: center; justify-content: center; gap: 3px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: 0 0 auto; }
.leitura-eq i { display: block; width: 3.5px; height: 10px; border-radius: 3px; background: #fff; }
.leitura-eq i:nth-child(2) { height: 18px; } .leitura-eq i:nth-child(3) { height: 13px; } .leitura-eq i:nth-child(4) { height: 20px; } .leitura-eq i:nth-child(5) { height: 9px; }
.leitura[data-state="playing"] .leitura-eq i { animation: leituraEq .9s ease-in-out infinite; transform-origin: center; }
.leitura[data-state="playing"] .leitura-eq i:nth-child(2) { animation-delay: .12s; } .leitura[data-state="playing"] .leitura-eq i:nth-child(3) { animation-delay: .27s; }
.leitura[data-state="playing"] .leitura-eq i:nth-child(4) { animation-delay: .05s; } .leitura[data-state="playing"] .leitura-eq i:nth-child(5) { animation-delay: .35s; }
.leitura.open .leitura-fab { display: none; }
.leitura-panel { width: min(340px, calc(100vw - 28px)); padding: 14px 14px 12px; border-radius: 22px; background: linear-gradient(160deg, var(--rd-pbg1), var(--rd-pbg2)); color: var(--rd-ptx); border: 1.5px solid color-mix(in srgb, var(--rd-hl) 60%, transparent); box-shadow: 0 22px 50px rgba(0, 0, 0, .4), 0 0 0 5px rgba(209, 15, 26, .12); animation: leituraIn .35s cubic-bezier(.2, .8, .2, 1); }
.leitura-panel[hidden] { display: none; }
.leitura-top { display: flex; align-items: center; gap: 12px; }
.leitura-top .leitura-eq { background: linear-gradient(135deg, var(--rd-c1), var(--rd-c2)); color: #fff; }
.leitura-now { flex: 1; min-width: 0; line-height: 1.25; }
.leitura-now small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--rd-hl); font-weight: 600; }
.leitura-now strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leitura-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.leitura-bar { height: 5px; margin: 12px 2px; border-radius: 5px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.leitura-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--rd-hl), color-mix(in srgb, var(--rd-hl) 55%, #fff)); transition: width .5s ease; }
.leitura-ctl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.leitura-ctl button { height: 42px; min-width: 42px; padding: 0 12px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.leitura-ctl button:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.leitura-ctl .leitura-play { flex: 1; background: linear-gradient(135deg, var(--rd-c1), var(--rd-c2)); color: #fff; font-size: 16px; }
.leitura-ctl .leitura-play:hover { filter: brightness(1.12); }
/* texto em leitura: realce suave com borda dourada */
.leitura-on main > * { transition: opacity .4s; }
.leitura-hl { position: relative; background: linear-gradient(90deg, color-mix(in srgb, var(--rd-hl) 24%, transparent), color-mix(in srgb, var(--rd-hl) 7%, transparent)); box-shadow: -14px 0 0 color-mix(in srgb, var(--rd-hl) 22%, transparent), 14px 0 0 color-mix(in srgb, var(--rd-hl) 7%, transparent), inset 4px 0 0 var(--rd-c1); border-radius: 6px; transition: background .3s, box-shadow .3s; animation: leituraGlow 2.2s ease-in-out infinite; scroll-margin: 120px; }
@keyframes leituraEq { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.25); } }
@keyframes leituraPulse { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.18, 1.5); opacity: 0; } }
@keyframes leituraIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes leituraGlow { 0%, 100% { background-color: rgba(184, 138, 59, 0); } 50% { background-color: rgba(184, 138, 59, .1); } }
@media (prefers-reduced-motion: reduce) { .leitura-fab::before, .leitura-hl, .leitura-eq i { animation: none !important; } }
@media print { .leitura { display: none; } }

/* posição, formas e variações (definidas no painel) */
.leitura[data-pos="left"] { left: max(var(--rd-x, 14px), env(safe-area-inset-left)); transform-origin: left bottom; }
.leitura[data-pos="right"] { right: max(var(--rd-x, 14px), env(safe-area-inset-right)); transform-origin: right bottom; }
.leitura[data-pos="center"] { left: 50%; margin-left: calc(var(--rd-x, 0px)); transform: translateX(-50%) scale(var(--rd-scale, 1)); transform-origin: center bottom; }
.leitura[data-shape="square"] .leitura-fab { border-radius: 14px; } .leitura[data-shape="square"] .leitura-fab::before { border-radius: 18px; }
.leitura[data-shape="round"] .leitura-fab, .leitura[data-shape="icon"] .leitura-fab { padding: 10px; border-radius: 50%; }
.leitura[data-shape="round"] .leitura-txt, .leitura[data-shape="icon"] .leitura-txt { display: none; }
.leitura[data-nosub="1"] .leitura-txt small { display: none; }
.leitura[data-pulse="0"] .leitura-fab::before { display: none; }
.leitura[data-eqfx="0"] .leitura-eq i { animation: none !important; }
.leitura[data-panel="light"] { --rd-pbg1: #ffffff; --rd-pbg2: #f6f1ea; --rd-ptx: #1d1518; }
.leitura[data-panel="light"] .leitura-x, .leitura[data-panel="light"] .leitura-ctl button:not(.leitura-play) { background: rgba(0, 0, 0, .07); color: #1d1518; }
.leitura[data-panel="light"] .leitura-bar { background: rgba(0, 0, 0, .1); }
.leitura-ico { font-size: 20px; line-height: 1; }
body.leitura-hl-underline .leitura-hl { background: none; box-shadow: none; text-decoration: underline; text-decoration-color: var(--rd-hl); text-decoration-thickness: 3px; text-underline-offset: 5px; animation: none; }
body.leitura-hl-none .leitura-hl { background: none; box-shadow: none; animation: none; }
.leitura[hidden], .leitura.rd-off { display: none !important; }
@media (max-width: 640px) { .leitura[data-mobile="0"] { display: none !important; } }
@media (min-width: 641px) { .leitura[data-desktop="0"] { display: none !important; } }
.leitura.rd-late { opacity: 0; pointer-events: none; }
.leitura { transition: opacity .5s, transform .5s; }
.leitura-demo { position: relative !important; left: auto !important; right: auto !important; bottom: auto !important; margin: 0 !important; transform: scale(var(--rd-scale, 1)); transform-origin: left center; display: inline-block; }

/* ---------- telemóvel: compacto, não tapa a leitura ---------- */
@media (max-width: 640px) {
  .leitura { bottom: max(calc(var(--rd-y, 14px) - 2px), env(safe-area-inset-bottom)); transform: scale(calc(var(--rd-scale, 1) * .88)); }
  .leitura[data-pos="left"] { left: max(10px, env(safe-area-inset-left)); }
  .leitura[data-pos="right"] { right: max(10px, env(safe-area-inset-right)); }
  .leitura-fab { gap: 8px; padding: 5px 15px 5px 5px; box-shadow: 0 8px 20px color-mix(in srgb, var(--rd-c1) 40%, transparent), inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
  .leitura-fab::before { inset: -4px; }
  .leitura-eq { width: 34px; height: 34px; gap: 2.5px; }
  .leitura-eq i { width: 3px; }
  .leitura-txt small { display: none; }
  .leitura-txt b { font-size: 13.5px; }
  .lt-full { display: none; } .lt-short { display: inline; }
  .leitura:not(.open) .leitura-fab { transition: padding .3s, gap .3s, transform .3s; }
  .leitura.mini .leitura-fab { padding: 5px; gap: 0; }
  .leitura.mini .leitura-txt { display: none; }
  .leitura[data-shape="round"] .leitura-fab, .leitura[data-shape="icon"] .leitura-fab { padding: 5px; }
  /* leitor compacto */
  .leitura-panel { width: min(290px, calc(100vw - 20px)); padding: 10px 10px 9px; border-radius: 18px; }
  .leitura-top { gap: 9px; } .leitura-top .leitura-eq { width: 34px; height: 34px; }
  .leitura-now small { font-size: 10px; } .leitura-now strong { font-size: 12.5px; }
  .leitura-x { width: 28px; height: 28px; font-size: 18px; }
  .leitura-bar { margin: 9px 2px; }
  .leitura-ctl button { height: 38px; min-width: 38px; border-radius: 12px; font-size: 14px; padding: 0 9px; }
  .leitura-hl { box-shadow: inset 3px 0 0 var(--rd-c1); }
}
@media (max-width: 380px) { .leitura-txt b { font-size: 12.5px; } .leitura-fab { padding-right: 12px; } }
