/* FullscreenImageViewer 全屏图片查看器样式 */

.viewer {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.paywallViewer {
  cursor: default;
  overflow: hidden;
}

.viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.paywallImage {
  filter: blur(18px);
  object-fit: cover;
  transform: scale(1.08);
}

.nativePaywallImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.paywallScrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.02) 48%,
      rgba(255, 255, 255, 0.18) 100%
    );
  pointer-events: none;
}

.backButton {
  position: absolute;
  top: 22px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #6d6d6d;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.unlockButton {
  position: absolute;
  right: 18px;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 18px;
  z-index: 1;
  min-height: 64px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e05ad7 0%, #ef66b0 100%);
  box-shadow: 0 8px 16px rgba(130, 60, 90, 0.28);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-athelas), Athelas, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.unlockButton:active {
  transform: translateY(1px);
}

.loading {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-accent, #f84d96);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.error {
  color: var(--color-text-secondary, #9e9e9e);
  font-size: 48px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
