/* ============================================
   GENRES PAGE — Genre Archive Hub
   ============================================ */

/* ============================================
   HERO — Cinematic Banner
   ============================================ */

.genres-hero {
  position: relative;
  width: 100%;
  min-height: 340px;
  max-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-card);
}

.genres-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.genres-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.genres-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(135deg, rgba(8,8,12,0.92) 0%, rgba(8,8,12,0.5) 50%, rgba(8,8,12,0.15) 100%);
}

.genres-hero__overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
}

.genres-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.genres-hero__content {
  max-width: 700px;
  padding-top: calc(var(--header-height) * 0.5);
}

.genres-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  height: 36px;
  line-height: 1;
}

.genres-hero__title {
  font-size: clamp(2.5rem, 5vw, var(--font-size-6xl));
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.0;
  margin-bottom: var(--space-md);
}

.genres-hero__desc {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 520px;
}

/* ============================================
   GRID
   ============================================ */

.genres-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ============================================
   GENRE CARD — Poster-style with image bg
   ============================================ */

.genre-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 3;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.genre-card--noimg {
  background: var(--bg-elevated);
  border-color: var(--border-light);
}

.genre-card--noimg:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.genre-card__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.genre-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.genre-card:hover .genre-card__bg img {
  transform: scale(1.06);
}

.genre-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,12,0.5);
  transition: background var(--transition-fast);
}

.genre-card:hover .genre-card__overlay {
  background: rgba(8,8,12,0.3);
}

.genre-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
}

.genre-card__name {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .genres-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .genres-hero {
    min-height: 320px;
  }

  .genres-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .genres-grid {
    gap: var(--space-lg);
  }

  .genre-card__content {
    padding: var(--space-lg);
  }

  .genre-card__name {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 768px) {
  .genres-hero {
    min-height: 300px;
  }

  .genres-hero__title {
    font-size: 2rem;
  }

  .genres-hero__desc {
    font-size: var(--font-size-base);
  }

  .genres-hero__badge {
    padding: 6px 16px;
    height: 32px;
    font-size: 10px;
  }

  .genres-hero__overlay {
    background: linear-gradient(180deg, rgba(8,8,12,0.85) 0%, rgba(8,8,12,0.5) 50%, rgba(8,8,12,0.6) 100%);
  }

  .genres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .genres-section {
    padding: var(--space-3xl) 0;
  }

  .genre-card {
    aspect-ratio: 4 / 3;
  }

  .genre-card__name {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 480px) {
  .genres-hero {
    min-height: 260px;
  }

  .genres-hero__title {
    font-size: 1.75rem;
  }

  .genres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .genre-card {
    border-radius: var(--border-radius-md);
    aspect-ratio: 4 / 3;
  }

  .genre-card__name {
    font-size: var(--font-size-base);
  }
}
