/* Puni strip čitač + detalj scene */
.reader-page-body {
  margin: 0;
  background: #0b0b10;
  color: #eee;
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

#reader-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.reader-topbar-member .topbar-member-btn {
  padding: 8px 12px;
  font-size: 10px;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  background: rgba(11, 11, 16, 0.95);
  border-bottom: 1px solid #2a2a3a;
  position: sticky;
  top: 0;
  z-index: 10;
}

.reader-back {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1c1c28;
  color: #fff;
  text-decoration: none;
  font-size: 1.25rem;
}

.reader-topbar-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.reader-topbar-meta strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
}

.reader-topbar-meta span {
  font-size: 0.75rem;
  color: #9a9ab0;
}

.reader-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.reader-counter {
  font-size: 0.8rem;
  color: #9a9ab0;
  white-space: nowrap;
}

.reader-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.reader-nav {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.reader-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.reader-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reader-track::-webkit-scrollbar {
  display: none;
}

.reader-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(62vh, 640px);
  padding: 0.5rem;
}

.reader-slide img {
  max-width: 100%;
  max-height: min(62vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.reader-progress-wrap {
  height: 4px;
  background: #1c1c28;
  flex-shrink: 0;
}

.reader-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff4d4d, #ffd24d);
  transition: width 0.25s ease;
}

.reader-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #9a9ab0;
  margin: 0.75rem 1rem;
  flex-shrink: 0;
}

.reader-loading,
.reader-error {
  padding: 2rem;
  text-align: center;
}

/* --- Komentari na čitaču --- */
.reader-comments {
  flex: 0 0 auto;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  box-sizing: border-box;
  border-top: 1px solid #2a2a3a;
  background: #101018;
}

.reader-comments h2 {
  font-family: Bangers, cursive;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  color: #fff;
}

.reader-comments .comment-hint {
  color: #9a9ab0;
  margin: 0.5rem 0 1rem;
  line-height: 1.45;
}

.reader-comments .comment-hint a {
  color: #ffd24d;
  font-weight: 700;
}

.reader-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.reader-comments .comment-item {
  border: 2px solid #3a3a50;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #1a1a26;
  color: #eee;
}

.reader-comments .comment-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a9ab0;
  margin-bottom: 0.35rem;
}

.reader-comments .comment-item p {
  margin: 0;
  line-height: 1.45;
}

.reader-comments .comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.reader-comments .comment-form textarea {
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  border: 2px solid #4a4a62;
  border-radius: 12px;
  padding: 0.75rem;
  font: inherit;
  font-size: 1rem;
  color: #111;
  background: #fff;
  resize: vertical;
}

.reader-comments .comment-form textarea:focus {
  outline: none;
  border-color: #ffd24d;
  box-shadow: 0 0 0 2px rgba(255, 210, 77, 0.35);
}

.reader-comment-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border: 3px solid #0b0b10;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd24d, #ffb347);
  color: #0b0b10;
  font-weight: 900;
  font-size: 0.95rem;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 #0b0b10;
}

.reader-comment-submit:hover {
  filter: brightness(1.05);
}

.reader-comment-submit:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 #0b0b10;
}

.reader-comments .comment-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 210, 77, 0.15);
  color: #ffd24d;
  font-weight: 700;
  font-size: 0.9rem;
}

.reader-page-body .btn-favorite {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 2px solid #ffd24d;
  border-radius: 50%;
  background: #1c1c28;
  color: #ffd24d;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
}

.reader-page-body .btn-favorite.is-on {
  background: #ffd24d;
  color: #0b0b10;
}

.scene-detail {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.5rem;
  padding-bottom: 3rem;
}

.scene-detail-card {
  background: #14141c;
  border: 1px solid #2a2a3a;
  border-radius: 16px;
  padding: 1.25rem;
}

.scene-detail-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.scene-detail-card h1 {
  margin: 0.5rem 0;
  font-size: 1.5rem;
}

.comic-card-link {
  display: block;
}

@media (min-width: 900px) {
  .reader-stage {
    max-width: 900px;
    margin: 0 auto;
  }

  .reader-comments {
    max-width: 720px;
  }
}
