.epaper-reader {
  max-width: 900px;
  margin: 0 auto;
  font-family: sans-serif;
}
.epaper-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.epaper-toolbar button {
  padding: 6px 14px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.epaper-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .epaper-body { grid-template-columns: 1fr; }
  .epaper-thumbs { display: flex; overflow-x: auto; }
}
.epaper-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.epaper-thumb {
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
  flex: 0 0 auto;
}
.epaper-thumb.active { border-color: #8e1a1a; }
.epaper-thumb img { width: 100%; display: block; }
.epaper-thumb-num {
  position: absolute;
  top: 2px;
  right: 4px;
  background: rgba(255,255,255,0.8);
  font-size: 10px;
  padding: 0 4px;
}
.epaper-stage {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.epaper-page-wrap {
  position: relative;
  transform-origin: center center;
  transition: transform 0.25s ease;
}
.epaper-page-image { width: 100%; display: block; }
.epaper-hotspot-layer { position: absolute; inset: 0; }
.epaper-hotspot {
  position: absolute;
  cursor: pointer;
}
.epaper-hotspot:hover { outline: 2px solid rgba(142,26,26,0.6); }

.epaper-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.epaper-modal-backdrop.open { display: flex; }
.epaper-modal {
  background: #fff;
  max-width: 520px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 6px;
  position: relative;
}
.epaper-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}
.epaper-modal-byline {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}
