/* AllAnim — shared layout & theme */
:root {
  --bg: #0a0a12;
  --surface: #12121c;
  --surface-hover: #1a1a28;
  /* Review cards: clearly different from page bg + small “how” blocks */
  --card-bg: #1c1c36;
  --card-bg-hover: #252548;
  --card-border: rgba(167, 139, 250, 0.28);
  --card-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f0f0f5;
  --muted: #9b9bb0;
  --accent: #e879a9;
  --accent-dim: #c45d8a;
  --anime: #7eb8da;
  --manhwa: #b8a0e8;
  --manga: #8fd9a8;
  --radius: 12px;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface);
  padding: 0.12em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
  color: var(--accent-dim);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hero .tagline {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.rating-scale {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.rating-scale strong {
  color: var(--text);
}

.how {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.how-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.how-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.section-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.section-title.anime .dot {
  background: var(--anime);
}

.section-title.manhwa .dot {
  background: var(--manhwa);
}

.section-title.manga .dot {
  background: var(--manga);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 2rem 0 1rem;
}

#featured .section-head:first-child {
  margin-top: 0;
}

.section-head .section-title {
  margin-bottom: 0;
}

.section-count {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85em;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  box-shadow: var(--card-shadow);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.btn-more:hover {
  color: var(--accent);
  text-decoration: none;
  background: var(--card-bg-hover);
  border-color: rgba(232, 121, 169, 0.45);
  transform: translateY(-1px);
}

.page-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.review-grid--home {
  margin-bottom: 0.25rem;
}

.review-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .review-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(232, 121, 169, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.badge--anime {
  background: rgba(126, 184, 218, 0.2);
  color: var(--anime);
}

.badge--manhwa {
  background: rgba(184, 160, 232, 0.2);
  color: var(--manhwa);
}

.badge--manga {
  background: rgba(143, 217, 168, 0.2);
  color: var(--manga);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.score {
  font-weight: 800;
  color: #ffd56a;
}

.stars {
  letter-spacing: 1px;
  opacity: 0.95;
}

.card p.summary {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.92rem;
  color: var(--muted);
}

.card__link {
  margin-top: auto;
  font-size: 0.9rem;
}

.card--muted {
  background: #18182e;
  border-color: rgba(255, 255, 255, 0.1);
  border-style: dashed;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.card--muted:hover {
  background: #1f1f38;
  border-color: rgba(167, 139, 250, 0.35);
}

.card--muted .summary {
  font-style: italic;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--muted);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Review article page */
.article {
  max-width: 720px;
}

.article h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--muted);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body .pros-cons {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
  box-shadow: var(--card-shadow);
}

.article-body .pros-cons strong {
  color: var(--text);
}

.article img.hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 1.25rem;
  border: 1px solid var(--border);
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
