* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background-color: #111;
  color: #eee;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

main {
  padding: 2rem;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.comic-card {
  background: #1c1c1c;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-direction:column;
}

.comic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.comic-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
  object-fit: cover;
  max-height: 350px;
}

.comic-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.chapter-list {
  list-style: none;
}

.chapter-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid #2a2a2a;
}

.chapter-list li:last-child {
  border-bottom: none;
}

.chapter-list a {
  color: #ff4d6d;
  text-decoration: none;
}

.chapter-list a:hover {
  text-decoration: underline;
}

.date {
  font-size: 0.8rem;
  color: #aaa;
}

footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid #333;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #777;
}

.latest-update {
  background: #181818;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.latest-update h2 {
  margin-bottom: 1rem;
}

.latest-card h3 {
  margin-bottom: 0.5rem;
}

.latest-card a {
  color: #ff4d6d;
  text-decoration: none;
  font-weight: bold;
}

.latest-card a:hover {
  text-decoration: underline;
}

/* Badge */
.new-badge {
  background: linear-gradient(45deg, #ff4d6d, #ff1e4d);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 20px;
  margin-left: 8px;
  box-shadow: 0 0 8px rgba(255, 77, 109, 0.6);
}
