/* Revista O Empresário | leitor da revista digital (/edicoes/?e=...) */
.cabeca--leitor { padding-bottom: 18px; }
.cabeca--leitor h1 { margin-bottom: 4px; }

.leitor { position: relative; background: radial-gradient(ellipse at 50% 35%, #26332d 0%, var(--tinta) 70%); color: #fff; display: flex; flex-direction: column; outline: none; }
.leitor__palco { position: relative; height: min(calc(100vh - 84px), 1000px); height: min(calc(100svh - 84px), 1000px); min-height: 420px; overflow: hidden; display: flex; padding: 12px; }
.leitor--zoom .leitor__palco { overflow: auto; cursor: zoom-out; overscroll-behavior: contain; }
.leitor__palco.arrastando { cursor: grabbing; user-select: none; }
.leitor__folha { margin: auto; display: flex; flex: none; position: relative; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04); background: #fff; }
.leitor--pronto .leitor__folha { cursor: zoom-in; }
.leitor--zoom .leitor__folha { cursor: zoom-out; }
.leitor__pag { display: block; width: auto; height: 100%; max-width: none; flex: none; user-select: none; -webkit-user-drag: none; }
.leitor__folha:not(.leitor__folha--dupla) .leitor__pag { width: 100%; object-fit: contain; }
.leitor__folha--dupla .leitor__pag { width: 50%; object-fit: fill; }
/* a dobra no meio da revista aberta */
.leitor__folha--dupla::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 9%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .16) 42%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .14) 58%, transparent 100%); }
.vira-prox { animation: leitor-prox .42s cubic-bezier(.2, .8, .2, 1); }
.vira-ant { animation: leitor-ant .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes leitor-prox { from { opacity: .25; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes leitor-ant { from { opacity: .25; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vira-prox, .vira-ant { animation: none; } }

.leitor__seta { position: absolute; top: 50%; z-index: 2; width: 54px; height: 54px; margin-top: -27px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s, transform .2s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.leitor__seta svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.leitor__seta:hover:not(:disabled) { background: var(--amarelo); color: #111; transform: scale(1.06); }
.leitor__seta:disabled { opacity: .18; cursor: default; }
.leitor__seta--ant { left: 18px; }
.leitor__seta--prox { right: 18px; }
.leitor--zoom .leitor__seta { display: none; }

.leitor__barra { display: flex; align-items: center; gap: 18px; padding: 12px 96px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.leitor__onde { font-family: var(--titulo); font-weight: 700; font-size: .95rem; white-space: nowrap; min-width: 168px; }
.leitor__trilho { flex: 1; accent-color: var(--amarelo); min-width: 60px; height: 28px; cursor: pointer; }
.leitor__botoes { display: flex; gap: 6px; }
.leitor__botoes button, .leitor__botoes a { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.leitor__botoes svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.leitor__botoes button:hover, .leitor__botoes a:hover, .leitor__botoes [aria-pressed="true"] { background: var(--amarelo); color: #111; }

.leitor__todas { position: absolute; inset: 0; z-index: 5; background: rgba(12, 21, 18, .97); display: flex; flex-direction: column; }
.leitor__todas[hidden] { display: none; }
.leitor__todas-topo { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-family: var(--titulo); font-size: 1.1rem; }
.leitor__todas-topo .botao { min-height: 40px; padding: 6px 16px; }
.leitor__miniaturas { flex: 1; overflow: auto; padding: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 14px; align-content: start; }
.leitor__mini { border: 0; padding: 0; background: none; color: #cfd6d1; cursor: pointer; display: grid; gap: 6px; font-size: .82rem; text-align: center; }
.leitor__mini img { width: 100%; height: auto; background: #2a3530; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s, transform .2s; }
.leitor__mini:hover img { transform: translateY(-3px); }
.leitor__mini.atual img, .leitor__mini:focus-visible img { outline-color: var(--amarelo); }
.leitor__mini.atual span { color: var(--amarelo); font-weight: 700; }

/* tela cheia */
.leitor:fullscreen, .leitor--cheia { width: 100%; height: 100%; }
.leitor:fullscreen .leitor__palco, .leitor--cheia .leitor__palco { flex: 1; height: auto; min-height: 0; }
.leitor:fullscreen .leitor__barra, .leitor--cheia .leitor__barra { padding-right: 20px; }
.leitor--cheia { position: fixed; inset: 0; z-index: 2000; height: 100dvh; }
html.sem-rolar, html.sem-rolar body { overflow: hidden; }

@media (max-width: 899px) {
  .leitor__palco { height: min(calc(100vh - 150px), 760px); height: min(calc(100svh - 150px), 760px); min-height: 360px; padding: 8px; }
  .leitor__seta { width: 42px; height: 42px; margin-top: -21px; background: rgba(12, 21, 18, .55); }
  .leitor__seta--ant { left: 6px; }
  .leitor__seta--prox { right: 6px; }
  .leitor__folha { cursor: default; }
  .leitor__barra { flex-wrap: wrap; gap: 10px 14px; padding: 10px 76px 14px 14px; }
  .leitor__onde { min-width: 0; flex: 1; font-size: .88rem; }
  .leitor__trilho { order: 3; flex-basis: 100%; }
  .leitor__botoes button, .leitor__botoes a { width: 40px; height: 40px; }
}

/* lista de edições */
.edicoes-destaque { display: grid; grid-template-columns: minmax(200px, 380px) 1fr; gap: 40px; align-items: center; }
.edicoes-destaque__capa img { width: 100%; box-shadow: 0 22px 44px rgba(12, 21, 18, .32); transform: rotate(-1.5deg); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.edicoes-destaque__capa:hover img { transform: rotate(0) translateY(-4px); }
.edicoes-destaque h2 { font-family: var(--titulo); font-weight: 800; font-stretch: 84%; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; margin: 6px 0 8px; }
.edicoes-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 20px; }
.edicoes-item { display: grid; gap: 6px; text-decoration: none; }
.edicoes-item img { width: 100%; box-shadow: 0 12px 26px rgba(12, 21, 18, .22); transition: transform .3s; }
.edicoes-item:hover img { transform: translateY(-4px); }
.edicoes-item strong { font-family: var(--titulo); line-height: 1.2; margin-top: 6px; }
@media (max-width: 720px) {
  .edicoes-destaque { grid-template-columns: 1fr; gap: 24px; }
  .edicoes-destaque__capa { max-width: 300px; }
  .edicoes-grade { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}
