/* Sayfa çevirerek okuma */
.ok { --kagit: #f6f1e7; margin: 8px 0 0; }
.ok-ust { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ok-ust h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 0; line-height: 1.15; }
.ok-ust h1 small { display: block; font-size: 15px; font-weight: 500; color: var(--muted, #5b6577); margin-top: 4px; }
.ok-araclar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ok-araclar .btn { padding: 9px 14px; font-size: 15px; }
.ok-sahne { position: relative; display: flex; justify-content: center; align-items: center; padding: 10px 0 18px; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.ok-kitap { --pw: 300px; --ph: 432px; position: relative; display: flex; perspective: 2400px; cursor: pointer; }
.ok-sayfa { width: var(--pw); height: var(--ph); background: var(--kagit); position: relative; overflow: hidden; }
.ok-sayfa img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ok-sayfa.bos { background: transparent; }
.ok-sol { display: none; }
.ok.cift .ok-sol { display: block; box-shadow: -6px 10px 28px rgba(15, 23, 42, .18); border-radius: 4px 0 0 4px; }
.ok.cift .ok-sag { box-shadow: 6px 10px 28px rgba(15, 23, 42, .18); border-radius: 0 4px 4px 0; }
.ok:not(.cift) .ok-sag { box-shadow: 0 10px 28px rgba(15, 23, 42, .2); border-radius: 3px; }
.ok.cift .ok-sayfa.bos { box-shadow: none; }
/* sırt gölgesi */
.ok.cift .ok-sol:not(.bos)::after, .ok.cift .ok-sag:not(.bos)::after { content: ""; position: absolute; top: 0; bottom: 0; width: 28px; pointer-events: none; }
.ok.cift .ok-sol:not(.bos)::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .16), transparent); }
.ok.cift .ok-sag:not(.bos)::after { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .16), transparent); }
/* dönen yaprak */
.ok-yaprak { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transition: transform .62s cubic-bezier(.45, .05, .25, 1); z-index: 3; pointer-events: none; }
.ok-yaprak.ileri { left: 50%; transform-origin: left center; }
.ok-yaprak.ileri.git { transform: rotateY(-180deg); }
.ok-yaprak.geri { left: 0; transform-origin: right center; }
.ok-yaprak.geri.git { transform: rotateY(180deg); }
.ok-yaprak.tek { left: 0; transform-origin: left center; }
.ok-yaprak.tek.donmus { transform: rotateY(-180deg); }
.ok-yaprak.tek.donmus.git { transform: rotateY(0deg); }
.ok-yuz { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--kagit); overflow: hidden; }
.ok-yuz img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ok-yuz.arka { transform: rotateY(180deg); }
.ok-yuz.bos { background: var(--kagit); }
.ok-golge { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to right, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0) 40%); opacity: 0; transition: opacity .62s; }
.ok-yaprak.git .ok-golge { opacity: 1; }
.ok-alt { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; }
.ok-alt .ok-sayac { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; min-width: 9.5em; text-align: center; }
.ok-cubuk { flex: 1; min-width: 0; accent-color: var(--red, #d92d2a); }
.ok-ok { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line, #d6dbe4); background: var(--card, #fff); color: inherit; font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ok-ok:disabled { opacity: .35; cursor: default; }
.ok-ok:focus-visible, .ok-cubuk:focus-visible { outline: 3px solid var(--red, #d92d2a); outline-offset: 2px; }
.ok-devam { margin: 0 auto 12px; max-width: 760px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 15px; }
.ok-devam button { font: inherit; font-weight: 700; border: 0; background: none; color: var(--red, #d92d2a); text-decoration: underline; cursor: pointer; }
.ok-not { text-align: center; font-size: 14px; color: var(--muted, #5b6577); margin: 14px auto 0; max-width: 640px; }
.ok:fullscreen { background: #1b1f2a; color: #f3f4f6; padding: 18px 20px; overflow: auto; }
.ok:fullscreen .ok-ust h1 small, .ok:fullscreen .ok-not { color: #c3c8d4; }
.ok:fullscreen .ok-ok { background: #262b38; border-color: #3a4152; }
.ok-metin { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
  .ok-ust { flex-direction: column; align-items: stretch; }
  .ok-araclar .ok-tam { display: none; }
  .ok-alt { gap: 8px; }
  .ok-alt .ok-sayac { min-width: 0; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ok-yaprak, .ok-golge { transition: none; } }
