/* Página de catálogo */
.page--catalog {
  padding: 3rem 5vw 4rem;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-main);
}

/* Hero superior */
.hero {
  background: radial-gradient(circle at top left, #0b1220, #020617);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-kicker {
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #60a5fa;
}

.hero-title {
  font-size: 2.5rem;
  margin: 0.4rem 0 0.9rem;
}

.hero-subtitle {
  max-width: 36rem;
  color: #cbd5f5;
  line-height: 1.6;
}

.hero-birdy {
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 211, 238, 0.7);
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.hero-birdy-label {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-birdy-text {
  font-weight: 600;
}

/* Grid de pelis */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

/* Tarjeta de película */
.movie-card {
  background: linear-gradient(135deg, #020617, #020617 30%, #020817 100%);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out,
              border-color 160ms ease-out;
}

.movie-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Poster */
.movie-card-poster-wrapper {
  position: relative;
  overflow: hidden;
  /* Altura controlada tipo Netflix */
  max-height: 280px;
}

.movie-card-poster {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 200ms ease-out;
}

/* Badge “你好 Birdy” / u otro */
.movie-card-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border: 1px solid rgba(96, 165, 250, 0.7);
}

/* Contenido tarjeta */
.movie-card-body {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.movie-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.movie-card-title {
  font-size: 1.1rem;
  margin: 0;
}

.movie-card-year {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.movie-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.movie-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.55);
}

/* Botón CTA */
.movie-card-cta {
  margin-top: 0.4rem;
  align-self: flex-start;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  border: none;
  color: white;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.1rem;
  cursor: pointer;
}

/* Hover tarjeta */
.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.9);
  border-color: rgba(94, 234, 212, 0.6);
}

.movie-card:hover .movie-card-poster {
  transform: scale(1.03);
}

/* Estado vacío */
.empty-state {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px dashed var(--border-subtle);
  background: rgba(15, 23, 42, 0.7);
  max-width: 32rem;
}

.empty-state-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: #3b82f6;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .page--catalog {
    padding: 2rem 1.5rem 3rem;
  }

  .hero {
    padding: 1.6rem 1.4rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}
