.genres-page {
  padding-top: 56px;
}

.genres-page-head {
  margin-bottom: 22px;
}

.genres-page-head h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 8px;
}

.genres-page-head p {
  color: var(--text-soft);
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.genre-card {
  background: var(--panel);
  border: 1px solid #dfe8f2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.genre-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfe0ff;
}

.genre-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: #f8fafc;
  overflow: hidden;
}

.genre-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.genre-card-media span {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
}

.genre-card-body {
  padding: 18px;
  text-align: center;
}

.genre-card-title {
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.genre-card-title a {
  color: #e11d48;
  transition: color var(--transition);
}

.genre-card-title a:hover {
  color: #be123c;
}

.genre-card-meta {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.genre-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
  transition: all var(--transition);
}

.genre-card-link:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.genres-empty {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.genres-empty strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.genres-empty span {
  color: var(--text-soft);
}

/* compact hero for genres page */
.home-hero.hero-compact {
  min-height: 70svh;
  padding: 170px 0 40px;
}

.home-hero.hero-compact .home-hero-title {
  margin-bottom: 14px;
}

.home-hero.hero-compact .home-hero-subtitle {
  margin: 0 auto 24px;
}

@media (max-width: 1199px) {
  .genres-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .home-hero.hero-compact {
    min-height: auto;
    padding: 150px 0 34px;
  }

  .genres-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-hero.hero-compact {
    min-height: auto;
    padding: 132px 0 24px;
  }

  .home-hero.hero-compact .home-hero-subtitle {
    margin: 0 auto 18px;
  }

  .genres-page {
    padding-top: 40px;
  }

  .genres-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .genre-card-body {
    padding: 16px;
  }

  .genre-card-title {
    font-size: 1.08rem;
  }
}