/* 640px - 740*/

: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;
}

.details__others {
  justify-content: start;
  gap: 25px;
}

/* Test--- */
.main {
  width: 90vw;
  /* grid-template-columns: repeat(
    auto-fit,
    minmax(min(260px, 100%), 1fr)
  ); */
  margin: 0 auto;

  /* gap: 30px; */
}

.main__container {
  width: 90vw;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(260px, 100%), 1fr)
  );
  margin: 0 auto;

  gap: 30px;
}

.main__section {
  aspect-ratio: 4/6;

  max-width: none;
  filter: drop-shadow(0px 0px 3px var(--bg-blue-10));
}

.main .details-div {
  width: 100%;
  grid-template-columns: none;
  position: relative;
}

.details__figure img {
  width: 100%;
  height: 100%;
}

.details__more {
  /* height: 100%; */
  /* display: none; */
  position: absolute;
  flex-direction: column-reverse;
  justify-content: space-between;
  /* align-content: space-between; */

  color: var(--white);
  /* color: var(--highlight-green); */
  top: 0;
  bottom: 0;
  padding: 20px;
}

/* nth: ennesima */
.details__more p:nth-child(2) {
  width: fit-content;
  order: 1;
  /* flex: 1; */
  padding: 2px 6px;
  border-radius: 6px;
  background-color: var(--bg-blue-80);
  opacity: 0.9;
}

/* .details__more p:nth-child(2)::before {
  content: "⭐";
  color: var(--bg-blue-20);
  font-size: 14px;
} */

.details__more p:nth-child(2)::after {
  content: "/10";
  color: var(--bg-blue-20);
  font-size: 14px;
}

.details__more p:nth-child(3) {
  /* color: darkgrey;
  order: 1; */
  display: none;
}

.details__more h3 {
  width: fit-content;
  /* top: 40px; */
  padding: 2px 6px;
  border-radius: 6px;
  background-color: var(--bg-blue-80);
  font-size: 16px;
  opacity: 0.9;
}

.details__more h3:hover {
  color: var(--highlight-green);
}

.button-description {
  display: none;
}

/* .description.disabled {
  display: none;
} */

/* Test */

@media screen and (min-width: 740px) {
  .header {
    padding: 0 4%;
  }

  .nav {
    max-width: 1160px;
    margin: 0 auto;
  }

  /* Test */

  .section {
    border-bottom: none;
    /* grid-template-columns: 50% 25% 25%; */
    grid-template-columns: 200px 160px;
    /* padding: 0 0 0 100px; */
    padding: 0 100px;

    justify-content: space-between;
  }

  .section__link-logo {
    position: absolute;

    bottom: -14px;
    top: 0;
    align-self: flex-end;
    margin: 0;
  }

  .section__links {
    justify-content: space-between;
  }

  /* Test */
  .section .section__link--movies {
    /* text-decoration: underline; */
    /* box-shadow: inset 0 -2px 0 var(--highlight-green); */
    border-bottom: 2px solid var(--highlight-green);
    padding-bottom: 4px;
  }

  .search {
    bottom: -22px;
  }

  /* .section__icon--search {
    bottom: -40px;
  } */

  /* .section__search.disabled {
    display: block;
  }

  .section__search {
    width: 30vw;
    max-width: 440px;
  }

  .close-icon {
    display: none;
  } */

  .section__search {
    width: 34vw;
    min-width: 400px;
    /* max-width: 440px; */
    right: -20px;
    top: -38px;
    /* bottom: 0; */
    /* align-content: start; */
  }

  /* .section__show--movies.disabled {
  } */

  .section__icons.login {
    position: absolute;
    align-items: center;
    margin: 0;
    bottom: -14px;
    right: 0;
    gap: 10px;
  }

  .section__icons.login a {
    /* width: 60px; */
    text-decoration: none;
    border: 2px solid var(--bg-blue-10);
    border-radius: 20px;
    font-weight: bold;
    color: var(--bg-blue-10);
    background-color: var(--bg-blue-80);
    padding: 5px 10px;
    cursor: pointer;
  }

  /*  */

  .section-menu {
    /* display: grid; */
    width: 360px;
    margin: 0 0 0 100px;
    justify-content: space-evenly;
  }

  .section-menu a:nth-child(1) {
    display: none;
  }

  /* Categories */

  .categories.categories-active {
    width: 400px;
    /* min-height: 270px; */
    aspect-ratio: 1/1;
    filter: drop-shadow(0 0 2px var(--bg-blue-10));
  }

  .categories .category-list {
    aspect-ratio: 1/1;
  }

  .container {
    max-width: 1160px;
    /* width: 100%; */

    /* background-image: url("../img/ft-bg.webp");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: 0 auto; */
    /* padding: 10px; */
  }

  /* .slider-container {
  } */

  /* .main {
    max-width: 1160px;
    grid-template-columns: repeat(
      auto-fit,
      minmax(min(200px, 100%), 1fr)
    );
  } */

  .main__container {
    max-width: 1160px;
    grid-template-columns: repeat(
      auto-fit,
      minmax(min(200px, 100%), 1fr)
    );
  }

  .details__more {
    padding: 20px 10px 10px;
  }

  .footer {
    max-height: 200px;
  }

  .footer .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-container,
  footer-info {
    max-width: 1160px;
  }

  .footer-container .footer-figure {
    width: 100%;
    text-align: start;
  }

  .footer-figure .figure-img {
    width: 140px;
    height: 40px;
  }

  .footer-contact {
    width: 14%;
  }

  .footer-info {
    width: 74%;
  }
}

@media screen and (min-width: 994px) {
  /* .nav {
    align-content: center;
  } */
  /* .nav .section {
    align-items: flex-end;
  } */
  .section__links {
    padding: 12px 0 0;
  }

  .details {
    display: grid;
    grid-template-columns: 2fr 1fr;
  }

  .details__others {
    grid-column: 1;
  }
  .details__genre {
    grid-column: 1;
  }

  .details__overview {
    grid-column: 1;
  }

  .watch {
    width: 200px;
    height: 60px;
    grid-column: 2;
    grid-row: 1/3;
    justify-self: flex-end;

    font-size: 20px;
    cursor: pointer;
  }

  .watch:hover {
    background-color: var(--highlight-green);
    color: var(--bg-blue-80);
    transition: background-color 0.6s ease, color 0.6s ease;
  }

  .trailer {
    width: 200px;
    height: 60px;
    opacity: 0.9;

    border: 1px solid var(--bg-blue-10);
    border-radius: 5px;
    font-weight: bold;
    font-size: 20px;
    justify-self: flex-end;
    cursor: pointer;
    text-align: center;
    padding: 14px 0;
  }

  .trailer:hover {
    opacity: 1;
    color: var(--highlight-green);
    border: 1px solid var(--highlight-green);
    transition: opacity 0.6s ease, color 0.6s ease, border 0.6s ease;
  }

  .orientation {
    padding: 0 60px;
    top: 80px;
    /* justify-content: space-evenly; */
  }

  .left,
  .right {
    width: 43px;
  }

  .left:hover,
  .right:hover {
    background-color: var(--bg-blue-100);
  }

  .left img,
  .right img {
    width: 100%;
  }

  .container__div.slider .details {
    padding: 15px 60px 0;
  }
}

@media screen and (min-width: 1000px) {
  .section__icon.section__icon--search {
    display: none;
  }

  .section__search.disabled {
    display: flex;
    justify-content: flex-end;
    align-content: center;
    flex-wrap: wrap;

    top: -35px;
  }

  .section__search--movie {
    /* width: 300px; */
    width: 30vw;
  }

  .section__search--movie .close-icon {
    display: none;
  }
}
