/* ============ МОБІЛЬНИЙ повноекранний перегляд тексту обкладинки ============ */
.reader { display: none; }
@media (max-width: 700px) and (min-height: 501px), (max-width: 700px) and (orientation: portrait) {
  .reader {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    position: fixed; inset: 0; z-index: 30; isolation: isolate; overflow: hidden;
    background: #e8f1f9;
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
    overscroll-behavior: contain;
  }
  .reader.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .reader__bg {
    position: absolute; z-index: -2; left: -30%; top: -30%; width: 160%; height: 160%; object-fit: cover;
    filter: blur(34px) saturate(1.4); pointer-events: none; user-select: none;
  }
  .reader__veil { position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .62); }
  .reader__head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: max(12px, env(safe-area-inset-top)) 8px 6px 20px; touch-action: none;
  }
  .reader__who { display: grid; gap: 2px; min-width: 0; padding-top: 7px; }
  .reader__who b { font-size: 18px; line-height: 1.2; font-weight: 700; }
  .reader__who span { font-size: 13px; opacity: .8; }
  .reader__close { width: 48px; height: 48px; display: grid; place-items: center; flex: none; -webkit-tap-highlight-color: transparent; }
  .reader__close svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
  .reader__body {
    min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: 10px 16px; display: flex; flex-direction: column;
  }
  .reader__text { display: block; width: 100%; margin: auto 0; padding: 6px 4px; }
  .reader__text p { margin: 0 0 1.05em; font-size: 17px; line-height: 1.62; white-space: pre-line; text-wrap: pretty; hyphens: auto; -webkit-hyphens: auto; }
  .reader__text strong { font-weight: 700; }
  .reader__text p:last-child { margin-bottom: 0; }
  .reader__text.is-img { padding: 0; }
  .reader__text.is-img img {
    display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none;
    box-shadow: 0 18px 40px -22px rgba(20, 86, 143, .55);
  }
  .reader__ctrl { display: grid; gap: 6px; padding: 8px 24px max(18px, env(safe-area-inset-bottom)); touch-action: none; }
  .reader .seek { width: 100%; flex: none; }
  .reader .widget__ctrl { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .slide img { transform: none !important; }
}
