body {
  text-align: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.header button {
  background-color: #ffd700;
  border: none;
  color: black;
  padding: 10px 20px;
  margin: 0 5px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}

.header button.active {
  background-color: #f57c00;
}

.hidden {
  display: none;
}

.video-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.form__input {
  background: black;
  border-radius: 10px;
  outline: rgba(255, 255, 255, 0.7) solid 2px;
  text-align: center;
  width: 50%;
  padding: 1vw;
  font-size: 24px;
  border: none;
  color: white;
  transition: 0.2s;
  margin: 0;
}

.form__input::placeholder {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #cdd6f4;
  text-align: center;
  opacity: 0.8;
}

img {
  height: auto;
  max-height: 218px;
  width: 145px;
  border: 0;
  -ms-interpolation-mode: bicubic;
  vertical-align: middle;
  border-radius: 25px;
  max-width: 145px;
}

img.ad {
  height: auto;
  max-height: none;
  width: auto;
  border: none;
  -ms-interpolation-mode: auto;
  vertical-align: baseline;
  border-radius: 0px;
  max-width: none;
}

.icon {
  border-radius: 25px;
}

.card {
  transition: 0.1s;
  width: 158px;
  background-color: transparent;
  margin: 16px;
  float: left;
  position: relative;
}

.card:hover {
  color: rgb(164, 176, 176);
  scale: 1.2;
  transition: 0.2s;
  cursor: pointer;
}

.image-container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.item-name {
  font-family: "Inter", Arial, sans-serif;
  position: absolute;
  bottom: 0;
  left: 7.49px;
  width: 78.5%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  margin: 0px;
  opacity: 0;
  transition: opacity 0.2s;
  border-bottom-left-radius: 500px;
  border-bottom-right-radius: 500px;
  font-size: 12px;
}

.attribution {
  position: fixed;
  right: 10px;
  bottom: 10px;
  color: #f5e0dc;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 1000;
}

.attribution img {
  margin-left: 5px;
}

.popular {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.rating {
  position: absolute;
  top: 17px;
  left: 17px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffce44;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
  z-index: 1000;
  opacity: 0;
}

.year {
  position: absolute;
  top: 17px;
  right: 17px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 12px;
  z-index: 1000;
  opacity: 0;
}

.card:hover .rating,
.card:hover .year {
  opacity: 0.9;
}
.image-container:hover .item-name {
  opacity: 1;
}
.card:hover .item-name {
  opacity: 1;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}

.play-button::before {
  content: "▶";
  font-size: 30px;
  color: white;
}

.card:hover .play-button {
  opacity: 1;
}
.title {
  font-family: "Inter", Arial, sans-serif;
  font-size: 24px;
  margin: 20px 0;
  text-align: center;
  clear: both;
}
.scroll-container-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-container {
  display: flex;
  overflow-x: hidden;
  white-space: nowrap;
  padding: 10px 0;
  scroll-behavior: smooth;
  flex-grow: 1;
}

#movie-container,
#tv-container {
  display: flex;
  flex-wrap: nowrap;
}

.btn {
  color: #89b4fa;
  font-size: 20px;
}
