:root {
  --bg-blue-100: #020617;
  --bg-blue-80: #0f172a;
  --bg-blue-60: #1e293b;
  --bg-blue-50: #334155;
  --bg-blue-40: #475569;
  --bg-blue-30: #64748b;
  --bg-blue-20: #94a3b8;
  --bg-blue-10: #cbd5e1;
  --white: #ffffff;
  --highlight-green: #dcf836;
  --highlight-pink: #de2239;
}

.main-latest {
  width: 100%;
  height: 2320px;
  position: relative;
}

.background {
  aspect-ratio: 16/9;
}

.background .bg-img {
  width: 100%;
  height: 100%;
}

.main-latest h2 {
  text-align: center;
  position: absolute;
  top: 8px;
  right: 0;
  left: 0;
  color: var(--white);
}

/* Movies latest */
.main-latest__container {
  width: 80%;
  /* height: auto; */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(118px, 100%), 1fr));
  /* grid-template-rows: 1fr; */

  justify-self: center;
  position: absolute;
  top: 50px;
  right: 0;
  left: 0;
  /* bottom: 0; */
  gap: 20px;
}

.container__movie {
  display: grid;
  min-height: 208px;
  grid-template-columns: 1fr;
  grid-template-rows: auto 28px;
  color: var(--bg-blue-10);
}

.movie-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.movie-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-title {
  width: 100%;
  height: 100%;
  /* color: var(--bg-blue-10); */
  align-content: center;
  /* text-align: center; */
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  /* padding: 4px 0; */
  background-color: var(--bg-blue-80);
  padding: 0 10px;

  /* overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-rating {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}

.rating {
  display: flex;
  width: 62px;
  /* height: 24px; */

  align-items: center;
  margin: 10px 0 0 10px;
  padding: 2px 4px;
  text-wrap: balance;
  background-color: var(--bg-blue-80);
  border-radius: 4px;
  opacity: 0.8;
}

.rating img {
  width: 16px;
  height: 16px;
}

.movie-rating span:nth-child(2) {
  position: absolute;
  text-wrap: balance;
  bottom: 0;
  margin: 0 0 10px 10px;
  border-radius: 4px;
  padding: 2px 8px;
  background-color: var(--bg-blue-80);
}

.movie-rating span:nth-child(3) {
  position: absolute;
  text-wrap: balance;
  bottom: 0;
  right: 0;
  /* margin: 0 0 10px 10px; 
  border-radius: 4px;*/
  padding: 2px 12px;
  font-size: 12px;
  background-color: var(--highlight-green);
}

@media screen and (min-width: 540px) {
  .main-latest .main-latest__container {
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  }
}
