.comic-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  background: rgba(2, 6, 23, 0.96);
  color: #f8fafc;
}

.comic-viewer-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(217, 70, 239, 0.28);
}

.comic-viewer-icon,
.comic-viewer-nav {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.comic-viewer-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.comic-viewer-title-wrap {
  min-width: 0;
  flex: 1;
}

.comic-viewer-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #39ff14;
}

.comic-viewer-title {
  margin: 2px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comic-viewer-count {
  color: #ffcc00;
  font-weight: 800;
  min-width: 88px;
  text-align: right;
}

.comic-viewer-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 78px;
}

.comic-viewer-page-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.comic-viewer-page {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.comic-viewer-loading {
  max-width: 680px;
  padding: 28px;
  border: 1px solid rgba(57, 255, 20, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  text-align: center;
  color: #cbd5e1;
}

.comic-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.92;
}

.comic-viewer-nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.comic-viewer-nav img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.comic-viewer-prev { left: 18px; }
.comic-viewer-next { right: 18px; }

@media (max-width: 720px) {
  .comic-viewer-bar {
    min-height: 64px;
    padding: 10px 12px;
    gap: 10px;
  }
  .comic-viewer-icon img {
    width: 40px;
    height: 40px;
  }
  .comic-viewer-stage {
    padding: 12px 52px;
  }
  .comic-viewer-nav img {
    width: 42px;
    height: 42px;
  }
  .comic-viewer-prev { left: 8px; }
  .comic-viewer-next { right: 8px; }
}
