/* 카드 그리드 */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.manga-item {
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.2), rgba(15, 23, 42, 0.95));
  border-radius: 14px;
  padding: 6px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.manga-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  border-color: rgba(129, 140, 248, 0.9);
}

.manga-thumb-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
  background: #020617;
}

.manga-thumb-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.badge-today,
.badge-gray {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  border-radius: 999px;
  font-size: 11px;
}

.badge-today {
  background: rgba(34, 197, 94, 0.98);
  color: #022c22;
  font-weight: 600;
}

.badge-gray {
  background: rgba(31, 41, 55, 0.96);
  border: 1px solid rgba(75, 85, 99, 0.9);
  color: #e5e7eb;
}

/* 공지 배지 */
.badge-notice {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 0 8px;
  height: 20px;
  line-height: 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: #facc15;
  color: #020617;
  border: 1px solid #eab308;
  pointer-events: none;
  user-select: none;
}

.manga-info { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }

.manga-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  max-height: 2.8em;
  overflow: hidden;
}

.manga-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  align-items: center;
}

.meta-date { font-size: 11px; color: #9ca3af; }

.manga-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.type-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  letter-spacing: 0.02em;
}

.type-chip.video { border-color: rgba(56, 189, 248, 0.7); }
.type-chip.image { border-color: rgba(34, 197, 94, 0.7); }
.type-chip.audio { border-color: rgba(167, 139, 250, 0.7); }
.type-chip.pdf   { border-color: rgba(248, 113, 113, 0.7); }
.type-chip.file  { border-color: rgba(148, 163, 184, 0.6); }

@media (max-width: 1024px) {
  .manga-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .manga-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .manga-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
