/* Nazuaf Komik — tema terang modern khas situs komik manga */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #191c22;
  --muted: #6b7280;
  --line: #e7e9ee;
  --accent: #e11d48;
  --accent-soft: #fff1f2;
  --accent2: #4f46e5;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 4px 14px rgba(16, 24, 40, 0.05);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.55; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 0.9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: var(--text); font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.main-nav a:hover { background: var(--accent-soft); text-decoration: none; color: var(--accent); }
.main-nav a.on { background: var(--accent); color: #fff; }
.search { margin-left: auto; display: flex; gap: 8px; }
.search input, .toolbar input, .toolbar select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 14px; font-size: 0.95rem; outline: none; }
.search input { width: 230px; }
.search input:focus, .toolbar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search button { border: none; background: var(--accent); color: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 700; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(120deg, #fff1f2, #eef2ff 60%, #f0fdf4); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; margin: 20px 0 8px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -0.5px; }
.hero p { margin: 0 0 18px; color: #374151; max-width: 640px; }
.hero-search input { width: min(420px, 100%); }

/* Sections & cards */
.sec { margin: 28px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.3px; padding-left: 12px; border-left: 4px solid var(--accent); }
.more { font-weight: 600; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(16, 24, 40, 0.12); }
.card a { color: inherit; display: block; }
.card a:hover { text-decoration: none; }
.cover { position: relative; aspect-ratio: 3 / 4; background: #e5e7eb; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 8px; font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(17, 24, 39, 0.82); color: #fff; }
.badge.type { left: 8px; }
.badge.status { right: 8px; background: var(--accent); }
.card h3 { margin: 10px 12px 2px; font-size: 0.95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card .meta { margin: 0 12px 4px; color: var(--muted); font-size: 0.82rem; }
.card .genres { margin: 0 12px 12px; }
.chip { display: inline-block; font-size: 0.75rem; font-weight: 600; color: #374151; padding: 2px 9px; border-radius: 999px; margin: 2px 2px 2px 0; }
.chip.big { font-size: 0.9rem; padding: 7px 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 200px; }

/* Detail */
.crumbs { color: var(--muted); font-size: 0.88rem; margin: 18px 0; }
.detail-top { display: flex; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); flex-wrap: wrap; }
.detail-cover { flex: 0 0 220px; }
.detail-cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.detail-info { flex: 1; min-width: 260px; }
.detail-info h1 { margin: 0 0 4px; font-size: 1.7rem; letter-spacing: -0.5px; }
.detail-info .alt { color: var(--muted); margin: 0 0 14px; }
.detail-info dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 20px; margin: 0 0 14px; }
.detail-info dl div { background: var(--bg); border-radius: 10px; padding: 8px 12px; }
.detail-info dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.detail-info dd { margin: 0; font-weight: 700; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 11px 20px; border-radius: 999px; }
.btn:hover { text-decoration: none; filter: brightness(0.94); }
.synopsis { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.chapters { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chapters li + li { border-top: 1px solid var(--line); }
.chapters a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--text); }
.chapters a:hover { background: var(--accent-soft); text-decoration: none; }
.ch-n { font-weight: 700; }
.ch-d { color: var(--muted); font-size: 0.88rem; }
.ch-go { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 0.88rem; white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; padding: 28px 0; color: #4b5563; font-size: 0.92rem; }

@media (max-width: 640px) {
  .search input { width: 150px; }
  .detail-cover { flex-basis: 150px; }
  .detail-top { padding: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
}
