.catalogFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 24px;
}

.catalogFilter {
  border: 1px solid #285477;
  border-radius: 999px;
  background: #07182b;
  color: #b9cede;
  padding: 9px 16px;
  font-weight: 700;
}

.catalogFilter:hover,
.catalogFilter.active {
  color: #fff;
  border-color: #38d4ff;
  background: #0a3153;
  box-shadow: 0 0 0 2px #38d4ff22;
}

.catalogFilter.premium {
  color: #ffd762;
  border-color: #9b7414;
}

#catalogCards .card {
  position: relative;
  padding-bottom: 46px;
}

#catalogCards .poster {
  box-shadow: 0 14px 28px #0005;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#catalogCards .card:hover .poster {
  transform: translateY(-4px);
  border-color: #38d4ff;
  box-shadow: 0 18px 34px #0008, 0 0 0 1px #38d4ff55;
}

#catalogCards .poster .catalogPlayButton {
  inset: auto 12px 12px auto;
  width: auto;
  height: 40px;
  margin: 0;
  padding: 0 14px;
  border-radius: 999px;
  gap: 7px;
  font-weight: 800;
}

#catalogCards .poster .catalogPlayButton::after {
  content: "Ver ahora";
}

.freeBadge,
.premiumBadge {
  top: 9px;
  right: 9px;
  left: auto;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  letter-spacing: .08em;
  font-weight: 900;
  z-index: 2;
}

.freeBadge {
  position: absolute;
  color: #dfffe9;
  background: #0b713f;
  border: 1px solid #42db8d;
}

.catalogDetailsButton {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  border: 1px solid #285477;
  border-radius: 9px;
  background: #081b32;
  color: #d7ebfa;
  padding: 9px 12px;
  font-weight: 700;
}

.catalogDetailsButton:hover {
  border-color: #38d4ff;
  background: #0a2947;
}

.catalogDetailsModal {
  backdrop-filter: blur(8px);
}

.catalogDetails {
  position: relative;
  width: min(820px, 96vw);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(270px, 42%) 1fr;
  border: 1px solid #2a78aa;
  border-radius: 18px;
  background: #06182d;
  box-shadow: 0 24px 80px #000b;
}

.catalogDetailsPoster {
  min-height: 360px;
  background-color: #020914;
  background-position: center;
  background-size: cover;
}

.catalogDetailsBody {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.catalogDetailsBody h2 {
  margin: 12px 0 8px;
  font-size: 34px;
}

.catalogMeta,
.catalogDescription {
  color: #9fb6ca;
}

.catalogDescription {
  line-height: 1.65;
}

.catalogAccess {
  width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.catalogAccess.free {
  color: #dfffe9;
  background: #0b713f;
}

.catalogAccess.premium {
  color: #1b1400;
  background: linear-gradient(135deg, #ffe47a, #d89a10);
}

.catalogWatch {
  margin-top: 12px;
}

.catalogDetailsClose {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid #44708f;
  border-radius: 50%;
  background: #03101fd9;
  color: #fff;
  font-size: 27px;
  line-height: 1;
}

@media (max-width: 700px) {
  .catalogFilters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .catalogFilter {
    white-space: nowrap;
  }

  .catalogDetails {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow: auto;
  }

  .catalogDetailsPoster {
    min-height: 230px;
  }

  .catalogDetailsBody {
    padding: 24px;
  }
}
