body {
  font-family: sans-serif;
  margin: 2em;
  background: #f8f8f8;
  color: #333;
}

/* Headings */
h1 {
  margin-bottom: 1.5em;
  font-size: 3em;
  text-align: center;
  color: white;
}

.section-title {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  text-align: center;
  color: #222;
}

/* Manga Grid */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 0;
  transition: transform 0.2s ease;
}

/* Manga Cards */
.manga-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  flex: 0 0 300px;
  min-height: 100%;
}

.manga-card:hover {
  transform: scale(1.03);
}

/* Cover Images */
.cover {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.cover-wrapper {
  position: relative;
  width: 100%;
  padding-top: 150%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #000;
}

.cover-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Manga Info */
.info {
  padding: 1em;
}

.genre, .language, .desc, .date {
  font-size: 0.85em;
  color: #555;
}

.genre {
  color: #999;
  margin-top: 0.25em;
}

.date {
  color: #666;
  margin-top: 0.3em;
}

/* Scrollable Wrapper */
.scroll-wrapper {
  position: relative;
  overflow-y: hidden;
  width: 100%;
  display: flex;
  align-items: center;
}

.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1em;
  white-space: nowrap;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

/* Scroll Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  font-size: 2em;
  padding: 0.3em 0.5em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  z-index: 10;
  border-radius: 50%;
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

/* Chapter Navigation + Switch View */
.switch-view {
  text-align: center;
  margin-bottom: 20px;
}

.switch-view a,
.nav-btn,
.switch-link {
  text-decoration: none;
  background: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
}

.switch-view a:hover,
.nav-btn:hover,
.switch-link:hover {
  background: #444;
}

.nav-btn {
  margin: 0 10px;
  padding: 10px 15px;
}

/* Book Reader Click Zones */
.click-zones {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 999;
  pointer-events: none;
}

.left-zone,
.right-zone {
  flex: 1;
  height: 100%;
  pointer-events: auto;
}

.center-gap {
  width: 250px;
  pointer-events: none;
}

/* Header */
.site-header {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 10px;
}

.site-header h1 {
  font-size: 2.5em;
  font-weight: bold;
  color: #222;
  font-family: 'Segoe UI', sans-serif;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

/* Scanlator Button */
.scanlator-btn {
  padding: 0.6em 1.4em;
  font-size: 1em;
  background: #222;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.3s;
}

.scanlator-btn:hover {
  background: #444;
}