/* ===== DETAIL KOMIK ===== */
.detail-komik {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  color: white;
}

.cover-container {
  position: relative;
  text-align: center;
  margin-bottom: 10px;
}

.cover-container img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.cover-placeholder {
  width: 200px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #222;
  border-radius: 10px;
}

.bookmark-btn {
  background: #f33;
  color: white;
  border: none;
  padding: 8px 15px;
  margin: 10px 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.bookmark-btn:hover {
  background: #d22;
}

.info-komik {
  text-align: center;
  margin-top: 10px;
}

.info-komik h2 {
  font-size: 20px;
  margin-bottom: 5px;
}

/* ===== RATING ===== */
.rating-container {
  text-align: center;
  margin: 15px 0;
}

.stars {
  display: inline-flex;
  gap: 8px;
  font-size: 32px;
  cursor: pointer;
}

.stars .star {
  color: #555;
  transition: color 0.2s;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

.stars .star.active {
  color: gold;
}

.rating-info {
  font-size: 13px;
  margin-top: 5px;
  color: #ccc;
}

/* ===== CHAPTER LIST ===== */
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  margin-top: 10px;
}

.chapter-list a {
  display: block;
  background: #222;
  padding: 10px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}

.chapter-list a:hover {
  background: #333;
  transform: translateX(4px);
}

.chapter-read {
  color: #777 !important;   /* abu-abu */
}

/* Tombol Lihat Semua Chapter */
.lihat-semua {
  text-align: center;
  margin: 15px 0;
}

.lihat-semua button {
  background: #f33;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.lihat-semua button:hover {
  background: #d22;
}

/* ===== KOMENTAR ===== */
.comments-section {
  margin-top: 20px;
  padding: 15px;
  background: #111;
  border-radius: 8px;
}

.comments-section h3 {
  margin-bottom: 12px;
  color: white;
  font-size: 16px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}

.comment-form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.comment-form img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-form textarea {
  flex: 1;
  background: #1a1a1a;
  color: white;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 8px;
  font-size: 14px;
  resize: none;
  min-height: 40px;
}

.comment-form button {
  background: #f33;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  align-self: center;
  transition: background 0.3s;
}

.comment-form button:hover {
  background: #d22;
}

.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.comment img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  background: #222;
  padding: 8px 12px;
  border-radius: 6px;
  flex: 1;
}

.comment-content strong {
  display: block;
  color: #f33;
  margin-bottom: 3px;
  font-size: 14px;
}

.comment-content p {
  margin: 0;
  font-size: 13px;
  color: #ddd;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .cover-container img {
    width: 150px;
  }
  .stars {
    font-size: 26px;
  }
  .comment-form textarea {
    font-size: 13px;
  }
}

/* === Info Komik === */
.info-komik {
  background: #1a1a1a; /* Latar belakang gelap */
  padding: 15px;
  margin-top: 15px;
  border-radius: 8px;
  color: #eee; /* Warna teks utama */
  line-height: 1.6;
  font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.info-komik h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #f33; /* Warna judul merah */
  text-align: center;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.info-komik p {
  margin: 6px 0;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
}

.info-komik p strong {
  width: 80px; /* Label rata kiri */
  color: #ff4444;
  font-weight: bold;
  flex-shrink: 0;
  text-align: left;
}

.info-komik span {
  color: #ddd;
  flex: 1;
  text-align: left; /* Supaya teks isi ikut rata kiri */
}

.info-komik p:last-child {
  margin-top: 10px;
}

.info-komik #komikSinopsis {
  display: block;
  margin-top: 5px;
  color: #ccc;
  font-size: 13px;
  line-height: 1.6;
  text-align: justify;
}
