.reader-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  min-height: 100vh;
}

.reader-header {
  background: linear-gradient(135deg, rgba(139, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00ffff;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.back-button:hover {
  color: #8b00ff;
  text-shadow: 0 0 10px #8b00ff;
}

.chapter-info h1 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 8px 0;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.chapter-info h2 {
  font-size: 18px;
  color: #00ffff;
  margin: 0;
  font-weight: normal;
}

.chapter-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 8px;
  margin-bottom: 20px;
}

.chapter-navigation.bottom {
  margin-top: 30px;
  margin-bottom: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(139, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
  border: 1px solid #00ffff;
  border-radius: 5px;
  color: #00ffff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-btn:hover:not(.disabled) {
  background: linear-gradient(135deg, rgba(139, 0, 255, 0.5), rgba(0, 255, 255, 0.5));
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transform: translateY(-2px);
}

.nav-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-btn.back-to-manga {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(139, 0, 255, 0.3));
  border-color: #8b00ff;
  color: #8b00ff;
}

.nav-btn.back-to-manga:hover {
  box-shadow: 0 0 15px rgba(139, 0, 255, 0.5);
}

.chapter-select {
  flex: 1;
  max-width: 400px;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #00ffff;
  border-radius: 5px;
  color: #00ffff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chapter-select:hover {
  border-color: #8b00ff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.chapter-select:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.chapter-select option {
  background: #000;
  color: #00ffff;
}

.pages-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.page {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}

.page img {
  width: 100%;
  height: auto;
  display: block;
}

.page-number {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #00ffff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(0, 255, 255, 0.5);
}

.no-pages {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.no-pages i {
  font-size: 60px;
  margin-bottom: 20px;
  color: rgba(0, 255, 255, 0.3);
}

.no-pages p {
  font-size: 18px;
  margin: 0;
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8b00ff, #00ffff);
  border: 2px solid #00ffff;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .reader-container {
    padding: 10px;
  }

  .reader-header {
    padding: 15px;
  }

  .chapter-info h1 {
    font-size: 20px;
  }

  .chapter-info h2 {
    font-size: 16px;
  }

  .chapter-navigation {
    flex-wrap: wrap;
    padding: 10px;
  }

  .nav-btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  .chapter-select {
    width: 100%;
    max-width: none;
    order: -1;
  }

  .scroll-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 20px;
    right: 20px;
  }
}
