.issue-reader { max-width: 980px; margin: 0 auto; }
.issue-reader-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.issue-reader-back { display: block; font-size: .85rem; color: var(--ink-faint); margin-bottom: 6px; }
.issue-reader-head h1 { margin: 0; }
.issue-reader-download { width: auto; padding: 10px 20px; white-space: nowrap; }

.issue-reader-viewer { background: var(--paper-alt); border-radius: var(--radius); overflow: hidden; }
.issue-reader-viewer.is-fullscreen {
  position: fixed; inset: 0; z-index: 2000; border-radius: 0;
  background: #1b1b1b; display: flex; flex-direction: column;
}
body.ir-lock-scroll { overflow: hidden; }
.issue-reader-toolbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--paper);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2;
}
.issue-reader-toolbar button {
  width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 1rem; line-height: 1;
}
.issue-reader-toolbar button:hover { background: var(--paper-alt); }
.issue-reader-toolbar-spacer { flex: 1; }
.issue-reader-pageinfo { font-size: .88rem; font-weight: 600; min-width: 70px; text-align: center; }

.issue-reader-stage {
  position: relative; display: flex; justify-content: center; align-items: center;
  padding: 32px 20px; overflow: auto; min-height: 460px;
}
.issue-reader-viewer.is-fullscreen .issue-reader-stage { flex: 1; min-height: 0; }

.issue-reader-loading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-faint); font-size: .9rem;
}
.issue-reader-spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: ir-spin 0.8s linear infinite;
}
@keyframes ir-spin { to { transform: rotate(360deg); } }
.issue-reader-progress { width: 200px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.issue-reader-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .15s ease; }

.issue-reader-book { filter: drop-shadow(0 12px 28px rgba(0,0,0,.28)); }
.issue-reader-hint { text-align: center; font-size: .78rem; color: var(--ink-faint); padding: 10px 16px 16px; margin: 0; }
.issue-reader-viewer.is-fullscreen .issue-reader-hint { color: #cfcfcf; }

.issue-reader-mobile { width: 100%; height: 100%; overflow: hidden; touch-action: none; }
.issue-reader-mobile-track { display: flex; height: 100%; width: 100%; }
.issue-reader-mobile-slide {
  flex: 0 0 100%; width: 100%; display: flex; align-items: center; justify-content: center;
  min-width: 0;
}
.issue-reader-mobile-slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  box-shadow: var(--shadow); background: #fff; transform-origin: center center; pointer-events: none;
}

.issue-reader-mobile-only { display: none; }

.issue-reader-lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.92);
  display: flex; align-items: center; justify-content: center; padding: 40px 20px;
  overflow: hidden;
}
.issue-reader-lightbox[hidden] { display: none; }
.issue-reader-lightbox-inner {
  display: flex; gap: 6px; max-width: 100%; max-height: 100%;
  transform-origin: center center; cursor: grab; touch-action: none;
}
.issue-reader-lightbox-inner.is-zoomed { cursor: grab; }
.issue-reader-lightbox-inner.is-panning { cursor: grabbing; }
.issue-reader-lightbox-inner img {
  flex: 0 1 auto; min-width: 0; max-height: 85vh; max-width: 90vw; width: auto; height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); pointer-events: none;
}
.issue-reader-lightbox-close {
  position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.issue-reader-lightbox-close:hover { background: rgba(255,255,255,.22); }

@media (max-width: 640px) {
  .issue-reader-head { flex-direction: column; align-items: flex-start; }
  .issue-reader-download { width: 100%; text-align: center; }
  .issue-reader-stage { padding: 16px 8px; min-height: 360px; }
  .issue-reader-desktop-only { display: none !important; }
  .issue-reader-mobile-only { display: block; }
}
