.kindle-simulator {
  --reader-shell: #1b1b1d;
  --reader-shell-2: #0f0f10;
  --reader-edge: rgba(255, 255, 255, 0.09);
  --reader-screen: #f5f2e8;
  --reader-ink: #1b1a17;
  --reader-muted: rgba(27, 26, 23, 0.58);
  --reader-soft: rgba(27, 26, 23, 0.08);
  --reader-font-size: 18px;
  --reader-width: min(100%, 1120px);
  width: 100%;
  color: #171717;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.kindle-simulator,
.kindle-simulator * { box-sizing: border-box; }

.book-reader-extension {
  width: 100%;
  margin-top: 50px;
  padding: clamp(12px, 2.8vw, 34px) 0 clamp(28px, 5vw, 58px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.78), rgba(255,255,255,0) 44%),
    linear-gradient(180deg, rgba(246,242,234,.94) 0%, rgba(226,219,206,.92) 100%);
  border-top: 1px solid rgba(21,20,18,.08);
  border-bottom: 1px solid rgba(21,20,18,.08);
}

.kindle-simulator--split {
  min-height: auto;
  padding: clamp(8px, 1.6vw, 14px) 0;
  background: transparent;
}

.kindle-split-layout {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
}

.kindle-simulator-frame {
  width: 100%;
  margin: 0;
}

.reader-header {
  width: min(100%, 520px);
  margin: 0 0 16px;
  display: block;
}

.reader-eyebrow {
  margin: 0 0 6px;
  font-size: .73rem;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(23, 23, 23, .56);
}

.reader-title {
  margin: 0;
  color: #171717;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.22rem, 2.1vw, 1.72rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 720;
}

.reader-header-note {
  max-width: none;
  margin: 8px 0 0;
  color: rgba(23, 23, 23, .65);
  font-size: .84rem;
  line-height: 1.45;
  text-align: left;
}

.device-shell {
  position: relative;
  width: min(100%, 520px);
  margin: 0;
  padding: clamp(14px, 2.2vw, 22px) clamp(10px, 1.8vw, 17px) clamp(20px, 2.8vw, 32px);
  border-radius: clamp(28px, 4vw, 42px);
  background:
    linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,0) 20%),
    linear-gradient(315deg, rgba(255,255,255,.07), rgba(255,255,255,0) 25%),
    linear-gradient(180deg, var(--reader-shell) 0%, var(--reader-shell-2) 100%);
  box-shadow:
    0 36px 90px rgba(0,0,0,.28),
    0 16px 38px rgba(0,0,0,.22),
    inset 0 1px 0 var(--reader-edge),
    inset 0 -18px 32px rgba(0,0,0,.18);
  overflow: hidden;
}

.device-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.04);
  pointer-events: none;
}

.device-top-mark {
  width: 46px;
  height: 4px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.35);
}

.device-screen-wrap {
  position: relative;
  padding: clamp(7px, 1.3vw, 11px);
  border-radius: clamp(18px, 3vw, 28px);
  background: #0b0b0c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 8px 22px rgba(0,0,0,.52);
}

.device-screen {
  position: relative;
  height: clamp(520px, 72vh, 720px);
  min-height: 500px;
  border-radius: clamp(10px, 2vw, 18px);
  background:
    radial-gradient(circle at 30% 12%, rgba(255,255,255,.38), rgba(255,255,255,0) 22%),
    linear-gradient(180deg, #fbf8ef 0%, var(--reader-screen) 100%);
  color: var(--reader-ink);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 0 28px rgba(0,0,0,.07);
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.012) 1px, transparent 1px);
  background-size: 4px 4px, 5px 5px;
  mix-blend-mode: multiply;
  opacity: .32;
}

.reader-statusbar,
.reader-bottombar {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(26,25,22,.74);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: .72rem;
  line-height: 1;
  user-select: none;
}

.reader-statusbar { top: 0; padding: 12px clamp(16px, 3.4vw, 30px) 9px; background: linear-gradient(180deg, rgba(251,248,239,.96), rgba(251,248,239,.76) 72%, rgba(251,248,239,0)); }
.reader-bottombar { bottom: 0; padding: 11px clamp(16px, 3.4vw, 30px) 13px; background: linear-gradient(0deg, rgba(245,242,232,.98), rgba(245,242,232,.76) 74%, rgba(245,242,232,0)); }
.reader-signal { display: inline-flex; align-items: center; gap: 6px; }
.reader-signal::before { content:""; width:11px; height:8px; border:2px solid currentColor; border-top:0; border-left-color:transparent; border-right-color:transparent; border-radius:50%; transform:translateY(-1px); }
.reader-battery { display:inline-flex; align-items:center; gap:6px; }
.reader-battery::before { content:""; width:21px; height:9px; border:1.6px solid currentColor; border-radius:2px; box-shadow: inset 13px 0 0 currentColor; }
.reader-page-label { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.reader-page-counter { white-space:nowrap; }
.reader-progress { position:absolute; left:clamp(16px, 3.4vw, 30px); right:clamp(16px, 3.4vw, 30px); bottom:4px; height:2px; border-radius:999px; background:rgba(26,25,22,.11); overflow:hidden; }
.reader-progress-fill { display:block; width:0; height:100%; border-radius:inherit; background:rgba(26,25,22,.52); transition:width .22s ease; }

.reader-page {
  height: 100%;
  padding: 50px clamp(20px, 4vw, 42px) 54px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(26,25,22,.24) transparent;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: var(--reader-font-size);
  line-height: 1.52;
}
.reader-page::-webkit-scrollbar { width: 7px; }
.reader-page::-webkit-scrollbar-thumb { background: rgba(26,25,22,.20); border-radius:999px; }
.reader-page-inner { max-width: 520px; min-height: 100%; margin: 0 auto; padding: 0 0 10px; }

.tap-zone { position:absolute; z-index:4; top:46px; bottom:46px; width:22%; border:0; background:transparent; cursor:pointer; }
.tap-zone-left { left:0; }
.tap-zone-right { right:0; }

.reader-page h1 { margin:1.05em 0 1.25em; color:var(--reader-ink); font-family: Georgia, "Times New Roman", Times, serif; font-size:1.58em; line-height:1.18; text-align:center; font-weight:700; letter-spacing:-.015em; }
.reader-page h2 { margin:1.7em 0 .65em; font-size:1.06em; line-height:1.25; }
.reader-page p { margin:0 0 .78em; text-align:justify; text-indent:1.25em; -webkit-hyphens:none; hyphens:none; word-break:normal; overflow-wrap:normal; }
.reader-page p.noindent,
.reader-page .credits p,
.reader-page .title-page p,
.reader-page .toc p,
.reader-page .note,
.reader-page .signature,
.reader-page .center,
.reader-page .institutional,
.reader-page .author,
.reader-page .subtitle,
.reader-page .chapter-number { text-indent:0; }
.reader-page.title-page { overflow:hidden; }
.reader-page.title-page .reader-page-inner,
.reader-page .title-page { min-height:100%; text-align:center; }
.reader-page .title-page { display:flex; flex-direction:column; justify-content:space-between; gap:clamp(22px, 5vh, 54px); padding:clamp(52px, 8vh, 84px) 0 clamp(34px, 5vh, 50px); }
.reader-page .title-page-main { width:100%; margin:auto 0; display:flex; flex-direction:column; align-items:center; text-align:center; }
.reader-page .title-page .author { max-width:18em; margin:0 auto clamp(34px, 6vh, 62px); text-align:center; font-size:clamp(1.15em, 2.4vw, 1.48em); line-height:1.2; font-weight:520; letter-spacing:.02em; }
.reader-page .title-page h1 { width:100%; max-width:7.8em; margin:.06em auto 0; font-size:clamp(2.35em, 7vw, 3.48em); line-height:.98; letter-spacing:.012em; text-align:center; text-transform:uppercase; }
.reader-page .title-page .subtitle { display:block; width:100%; max-width:18em; margin:.42em auto 0; text-align:center; font-size:clamp(1.22em, 2.7vw, 1.62em); line-height:1.16; letter-spacing:.01em; }
.reader-page .title-page-brand { display:flex; justify-content:center; align-items:flex-end; width:100%; margin-top:auto; padding-bottom:0; }
.reader-page .logo-small { width:3.25em; max-width:132px; height:auto; display:inline-block; margin:.2em auto 0; filter:grayscale(1) contrast(1.05); }
.reader-page .title-page-logo { width:auto; height:min(15vh, 92px); max-width:92px; max-height:92px; margin:0 auto; object-fit:contain; }
.reader-page.catalog-title-page .title-page h1 { max-width:10.5em; margin-left:auto; margin-right:auto; font-size:clamp(1.72em, 5.4vw, 2.85em); line-height:1.06; letter-spacing:-.012em; text-transform:none; overflow-wrap:break-word; }
.reader-page.catalog-title-page .title-page .author { max-width:18em; margin-bottom:clamp(26px, 5vh, 46px); font-size:clamp(1.02em, 2.2vw, 1.32em); }
.reader-page.credits h1,
.reader-page.backmatter h1,
.reader-page.frontmatter h1 { margin-top:.45em; font-size:1.25em; }
.reader-page.credits p { margin-bottom:.58em; font-size:.64em; line-height:1.38; text-align:left; }
.reader-page .rights { margin-top:1.2em; }
.reader-page .catalog-card { width:100%; margin:1.35em 0; padding:.9em 0; border-top:1px solid rgba(26,25,22,.28); border-bottom:1px solid rgba(26,25,22,.28); white-space:pre-wrap; text-align:center; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:.52em; line-height:1.08; overflow-x:auto; }
.reader-page .epigraph,
.reader-page .epigraph-inline { margin:min(28vh, 190px) auto 0; padding:0 1.2em; text-align:center; font-style:italic; }
.reader-page .epigraph p,
.reader-page .epigraph-inline p { margin:.35em 0; text-align:center; text-indent:0; }
.reader-page .chapter-number { margin:1.1em 0 .28em; text-align:center; font-size:.92em; letter-spacing:.052em; text-transform:uppercase; }
.reader-page .chapter-title { margin-top:0; }
.reader-page.frontmatter p:first-of-type,
.reader-page.chapter p:first-of-type,
.reader-page .first-indent { text-indent:1.25em; }
.reader-page .signature { margin-top:1.15em; text-align:right; font-style:italic; }
.reader-page .note { margin-top:1em; font-size:.9em; }
.reader-page .toc-visual { max-width:520px; margin:0 auto; padding:1.3em 0 1em; }
.reader-page .toc-visual h1 { margin:.6em 0 1.25em; }
.reader-page .toc-visual-list { margin:0; padding:0; list-style:none; }
.reader-page .toc-visual-list li { margin:0; padding:.62em 0 .54em; border-bottom:1px dotted rgba(26,25,22,.22); line-height:1.22; text-indent:0; }
.reader-page .toc-entry { display:block; color:inherit; text-decoration:none; text-indent:0; }
.reader-page .toc-entry-disabled { color:rgba(26,25,22,.38); cursor:default; }
.reader-page .institutional,
.reader-page .center { text-align:center; }
.reader-page .small { font-size:.9em; }
.reader-page .simulator-brand { margin:.2em 0 1.2em; }
.reader-page .simulator-logo { width:min(36%, 122px); max-width:122px; filter:grayscale(1) contrast(1.08); }

.reader-action-row { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin:1.45em 0 .85em; font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.reader-action { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 16px; border-radius:999px; border:1px solid rgba(26,25,22,.28); color:var(--reader-ink); text-decoration:none; font-size:.76rem; font-weight:750; letter-spacing:.01em; background:rgba(255,255,255,.24); transition:transform .16s ease, background-color .16s ease, color .16s ease; }
.reader-action-primary { background:rgba(26,25,22,.86); color:#f5f2e8!important; border-color:rgba(26,25,22,.86); }
.reader-action-secondary { background:rgba(255,255,255,.42); color:var(--reader-ink)!important; }
.reader-action-disabled { cursor:not-allowed; color:rgba(26,25,22,.46)!important; background:rgba(255,255,255,.48); border-color:rgba(26,25,22,.12); }
.reader-action:hover { transform:translateY(-1px); }
.reader-availability-badge { display:flex; width:max-content; max-width:100%; margin:.7em auto .3em!important; padding:.48em .9em; border-radius:999px; background:#f57400; color:#fff; text-align:center!important; text-indent:0!important; font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size:.64em; font-weight:900; letter-spacing:.06em; line-height:1.12; text-transform:uppercase; }
.device-bottom { display:grid; place-items:center; padding-top:clamp(16px, 2.6vw, 24px); }
.device-home-button { width:clamp(46px, 8vw, 66px); height:clamp(46px, 8vw, 66px); border-radius:999px; background:radial-gradient(circle at 50% 42%, rgba(255,255,255,.12), rgba(255,255,255,.03) 38%, rgba(0,0,0,.18) 100%), #141415; border:1px solid rgba(255,255,255,.08); box-shadow:inset 0 1px 6px rgba(255,255,255,.05), inset 0 -6px 14px rgba(0,0,0,.32); }
.reader-controls { width:min(100%, 520px); margin:clamp(16px, 2.5vw, 22px) 0 0; display:grid; grid-template-columns:1fr; align-items:center; gap:10px; }
.reader-control-group { display:flex; align-items:center; justify-content:center; gap:8px; }
.reader-control-button { min-width:42px; min-height:38px; padding:0 13px; border:1px solid rgba(23,23,23,.14); border-radius:999px; background:rgba(255,255,255,.46); color:rgba(23,23,23,.82); font:650 .86rem/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; cursor:pointer; box-shadow:0 10px 22px rgba(0,0,0,.06); transition:transform .15s ease, background .15s ease, opacity .15s ease; }
.reader-control-button:hover:not(:disabled) { transform:translateY(-1px); background:rgba(255,255,255,.72); }
.reader-control-button:disabled { cursor:not-allowed; opacity:.38; }
.reader-font-indicator { min-width:44px; text-align:center; color:rgba(23,23,23,.58); font-size:.78rem; font-weight:650; }
.reader-assistive-note { width:min(100%, 520px); margin:14px 0 0; color:rgba(23,23,23,.72); text-align:center; font-size:.92rem; line-height:1.5; font-weight:620; }
.reader-assistive-actions { width:min(100%, 520px); margin:12px 0 0; display:flex; justify-content:center; }
.reader-assistive-actions .reader-action { min-height:42px; padding-inline:18px; }

.kindle-split-copy { max-width:560px; color:rgba(23,23,23,.86); }
.kindle-split-kicker { margin:0 0 10px; font-size:.73rem; line-height:1.2; letter-spacing:.16em; text-transform:uppercase; color:rgba(23,23,23,.55); }
.kindle-split-copy h2 { margin:0; color:#171717; font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size:clamp(2rem, 4.8vw, 4.35rem); line-height:.96; letter-spacing:-.055em; }
.kindle-split-copy p { max-width:48em; margin:18px 0 0; color:rgba(23,23,23,.68); font-size:clamp(1rem, 1.4vw, 1.1rem); line-height:1.62; }
.kindle-split-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.kindle-split-actions .reader-action { min-height:42px; padding-inline:18px; }
.kindle-split-note { display:inline-flex; align-items:center; justify-content:center; width:auto; max-width:100%; margin-top:16px; padding:7px 12px; border-radius:999px; background:#f57400; color:#fff; font-size:10px; font-weight:900; letter-spacing:.07em; line-height:1; text-transform:uppercase; }

@media (max-width: 860px) {
  .kindle-split-layout { grid-template-columns:1fr; }
  .reader-header,
  .device-shell,
  .reader-controls,
  .reader-assistive-note,
  .reader-assistive-actions { width:100%; margin-left:auto; margin-right:auto; }
  .kindle-split-copy { order:-1; max-width:680px; }
}

@media (max-width: 760px) {
  .book-reader-extension { padding: 24px 0 34px; }
  .reader-header { display:block; width:min(100%, 620px); margin-bottom:16px; padding:0 4px; }
  .reader-title { max-width:560px; font-size:clamp(1.35rem, 7vw, 2rem); }
  .reader-header-note { max-width:none; margin-top:10px; text-align:left; font-size:.88rem; }
  .device-shell { width:100%; padding:14px 10px 24px; border-radius:32px; }
  .device-top-mark { margin-bottom:12px; }
  .device-screen-wrap { padding:8px; border-radius:20px; }
  .device-screen { height:min(76vh, 720px); min-height:520px; border-radius:14px; }
  .reader-page { padding:48px 24px 52px; line-height:1.5; }
  .reader-page-inner { max-width:100%; }
  .reader-page .title-page { padding-top:54px; padding-bottom:30px; }
  .reader-page .catalog-card { font-size:.48em; }
  .tap-zone { width:18%; }
  .reader-control-button { min-height:40px; }
}

@media (max-width: 430px) {
  .reader-page { padding-left:18px; padding-right:18px; }
  .reader-statusbar,
  .reader-bottombar { padding-left:14px; padding-right:14px; }
  .reader-page .title-page h1 { font-size:2.42em; }
  .reader-page .title-page .author { font-size:1.12em; }
  .reader-page .title-page .subtitle { font-size:1.22em; }
  .reader-page .catalog-card { font-size:.42em; }
  .reader-action-row { display:grid; }
  .reader-action { width:100%; }
  .kindle-split-actions { display:grid; }
  .kindle-split-actions .reader-action { width:100%; }
}

@media (prefers-reduced-motion: reduce) {
  .kindle-simulator *,
  .kindle-simulator *::before,
  .kindle-simulator *::after { scroll-behavior:auto!important; transition:none!important; }
}


/* Ajustes finais do simulador Kindle */
.kindle-simulator .reader-header { display:none !important; }
