:root {
  --font-avenir-next: "Avenir Next LT Pro";
  --regular: 400;
  --medium: 600;
  --bold: 700;
  --primary: #000000;
  --secondary: #d22f26;
  --light: #ffffff;
  --gray: #686868;
}

body {
  background: var(--primary);
  color: var(--light);
  margin: 0;
  font-family: "Avenir Next LT Pro", Arial, Helvetica, sans-serif;
  font-size: 14px;
}

a {
  color: var(--light);
  text-decoration: none;
  cursor: pointer;
}

.wrapper {
  padding: 0 16px;
}

ul {
  list-style: none;
  margin-block: 0;
  margin-inline: 0;
  padding-inline: 0;
}

button:focus {
  outline: none;
}

/* Header */
.header {
  background-image: linear-gradient(
    to bottom,
    var(--primary) 0%,
    var(--primary) 40%,
    rgba(0, 0, 0, 0.5) 80%,
    transparent 100%
  );
  padding: 16px 16px 120px;
  position: relative;
  z-index: 2;
}
.logo {
  margin-bottom: 24px;
}
.navigation {
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-columns: 100px;
  grid-auto-flow: column;
  justify-content: space-evenly;
}
.navigation-item {
  list-style: none;
  text-align: center;
}
.navigation-item a {
  color: var(--light);
  font-size: 14px;
  font-weight: var(--regular);
  line-height: 24px;
}

/* Hero */
.hero {
  margin-top: -215px;
  position: relative;
  overflow: hidden;
}
.hero-details {
  background-image: linear-gradient(
    to top,
    var(--primary) 0%,
    var(--primary) 25%,
    rgba(0, 0, 0, 0.5) 35%,
    transparent 100%
  );
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.hero-details .title img {
  margin-bottom: 12px;
}
.hero-details .title img {
  width: 312px;
}
.hero-details .tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  color: var(--light);
  font-size: 0.8em;
  font-weight: var(--regular);
  line-height: 15.3px;
  margin: 0;
  margin-bottom: 15px;
}
.hero-details .tags .tags-item::before {
  content: "•";
  margin-right: 4px;
}
.hero-details .tags .tags-item:first-child:before {
  display: none;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding-bottom: 1em;
}

@media (min-width: 375px) {
  .hero {
    margin-top: -180px;
  }
}

/* Movie Section */
.main {
  padding: 30px 0 50px;
}
.movie-list {
  padding: 8px 0 8px 16px;
}
.movie-list__header {
  margin-bottom: 8px;
}
.movie-list__header .title {
  color: var(--light);
  font-size: 18px;
  font-style: normal;
  font-weight: var(--bold);
  line-height: 24px;
  margin-block: 0;
  margin-inline: 0;
}
.movie-list__content {
  white-space: nowrap;
  overflow-x: auto;
}
.movie-list__content::-webkit-scrollbar {
  display: none;
}
.movie-list__item {
  display: inline-block;
}
.movie-list__item img {
  width: 96px;
  height: 144px;
  border-radius: 2px;
}
.movie-list__item:not(:last-child) {
  margin-right: 8px;
}
.movie-list__item:last-child {
  margin-right: 16px;
}

/* Footer */
.footer {
  background-color: var(--primary);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}
.footer-content {
  height: 64px;
}
.footer-content nav {
  height: 100%;
}
.footer-navigation {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 100%;
}
.footer-navigation__item {
  flex: 1 1 25%;
  max-width: 25%;
}
.footer-navigation__item .btn {
  width: 100%;
  height: 64px;
  background-color: transparent;
  border: none;
  padding: 0;
}
.footer-navigation__item .btn svg path {
  fill: var(--gray);
}
.footer-navigation__item .btn.active svg path {
  fill: var(--light);
}
.footer-navigation__item .btn span {
  font-family: var(--font-avenir-next);
  color: var(--gray);
  font-size: 0.8em;
  font-weight: var(--regular);
  line-height: 15.3px;
}
.footer-navigation__item .btn.active span {
  color: var(--light);
}

/* Button */
.button {
  background-color: var(--light);
  color: var(--primary);
  border: none;
  border-radius: 2px;
  font-family: var(--font-avenir-next);
  font-size: 0.8em;
  font-weight: var(--medium);
  font-style: normal;
  line-height: 15.3px;
  cursor: pointer;
}
.button.button-primary {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  position: relative;
  overflow: hidden;
}
.button.button-primary::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 4px;
}
.button.button-outline {
  background-color: transparent;
  color: var(--light);
  min-width: 50px;
}
.button.button-outline::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: auto;
  margin-bottom: 6px;
}

.icon-add::before {
  background-image: url("./../images/icons/plus.svg");
}
.icon-play::before {
  background-image: url("./../images/icons/play.svg");
}
.icon-info::before {
  background-image: url("./../images/icons/info.svg");
}

/* Credits */
.credits {
  font-family: system-ui;
  background: #212429;
  font-size: 11px;
  color: white;
  padding: 0.5rem 0;
  text-align: center;
}
.credits a {
  color: #f865b0;
  text-decoration: none;
}
