/* ======================================================
   OBSYNIAVERSE — GENRE.CSS
   STYLE SIMPLE / WEBTOON
   ====================================================== */

body{
  margin:0;
  background:#0b0714;
  color:#fff;
  font-family:Arial, Helvetica, sans-serif;
}

/* ===== LAYOUT ===== */
.layout{
  max-width:1400px;
  margin:0 auto;
  padding:20px;
}

.content h1{
  font-size:22px;
  margin-bottom:20px;
}

/* ===== GRID ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:20px;
}

/* ===== GENRE CARD ===== */
.genre-card{
  display:block;
  background:#120c22;
  border-radius:8px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition:transform .2s ease, box-shadow .2s ease;
}

.genre-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,.45);
}

/* ===== IMAGE ===== */
.genre-card .img-wrap{
  position:relative;
  width:100%;
  aspect-ratio:3 / 2;
  background:#0f172a;
}

.genre-card img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

/* ===== FALLBACK ===== */
.genre-fallback{
  width:100%;
  aspect-ratio:3 / 2;
  background:#1a142b;
}

/* ===== INFO ===== */
.card-info{
  padding:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.card-info .title{
  font-size:14px;
  font-weight:bold;
}

/* ===== COUNT ===== */
.genre-count{
  font-size:12px;
  color:#cfcfcf;
  background:#1a142b;
  padding:4px 8px;
  border-radius:4px;
}

/* ===== BADGE ADULT ===== */
.badge-adult{
  position:absolute;
  top:8px;
  right:8px;
  background:#dc2626;
  color:#fff;
  font-size:12px;
  font-weight:bold;
  padding:3px 6px;
  border-radius:4px;
}

/* ===== LINKS ===== */
a{
  color:inherit;
  text-decoration:none;
}

/* ===== MOBILE ===== */
@media (max-width:600px){
  .grid{
    grid-template-columns:repeat(auto-fill, minmax(150px, 1fr));
    gap:14px;
  }

  .content h1{
    font-size:18px;
  }
}
