* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: sans-serif;
  font-size: 12px;
  background-color: #000;
}
a {
  text-decoration: none;
}
header {
  width: 100%;
  box-sizing: border-box;
  padding: 0 40px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}
header a {
  color: #fff;
  margin-right: 40px;
  font-size: 14px;
}
header a:hover {
  color: red;
}
.logo-link {
  margin-right: 0;
  flex-shrink: 0;
}
.logo-link .author {
  display: block;
  height: 26px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0;
}
.slider {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: -60px;
}
.slider .sliderlist .slideritem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider .sliderlist .slideritem {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}
.content {
  position: absolute;
  top: 20%;
  width: 600px;
  max-width: 100%;
  left: 10%;
  transform: translateX(-10%);
  background: radial-gradient(rgb(0, 0, 0), transparent);
  border-radius: 20px;
  padding: 4%;
  box-sizing: border-box;
  color: #fff;
  text-shadow: 0 5px 10px #000;
}
.author {
  display: inline-block;
  height: 28px;
  width: auto;
  object-fit: contain;
  background-color: #fffc;
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 5px 10px #0004;
  margin-bottom: 12px;
}
.date {
  font-weight: bold;
  letter-spacing: 2px;
}
.title {
  font-size: 4em;
  font-weight: bold;
  line-height: 1.2em;
}
.rating {
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 20px;
  margin-top: 7px;
}
.rating .imdb {
  color: #fff;
  background: orange;
  font-weight: 500;
  border-radius: 4px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 3px;
  padding-top: 3px;
}
.btn {
  display: grid;
  grid-template-columns: repeat(2, 132px);
  grid-template-rows: 40px;
  margin-top: 20px;
  gap: 20px;
}
.btn button {
  border: none;
  background: red;
  letter-spacing: 3px;
  font-family: sans-serif;
  font-weight: 600;
  color: #fff;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}
.btn button:hover {
  transform: scale(1.1);
  cursor: pointer;
}
.btn button:nth-child(2) {
  background: #fff;
  color: #000;
}
/* thumbnail slider images styling */

.thumbnail-img {
  position: absolute;
  bottom: 50px;
  left: 50%;
  z-index: 100;
  display: flex;
  gap: 20px;
}
.thumbnail-img .slideritem {
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
  border-radius: 10px;
}
.thumbnail-img .slideritem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.thumbnail-img .slideritem .content {
  color: #fff;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}
.thumbnail-img .slideritem .content .title {
  font-weight: 500;
  font-size: 15px;
  position: absolute;
  bottom: 20px;
  left: 10px;
  right: 10px;
}
.thumbnail-img .slideritem .content .description {
  font-weight: 500;
  position: absolute;
  bottom: 5px;
  left: 10px;
  right: 10px;
  font-size: 14px;
}
/* arrows styling */
.arrow-icons {
  position: absolute;
  top: 80%;
  right: 50%;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 12px;
  align-items: center;
}
.arrow-icons button {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background-color: rgba(141, 141, 141, 0.5);
  border: none;
  color: #fff;
  font-weight: 700;
  font-family: monospace;
  transition: 0.5s;
}
.arrow-icons button:hover {
  background: #fff;
  color: #000;
}
/* adding animation to sliderlist */
.slider .sliderlist .slideritem:nth-child(1) {
  z-index: 1;
}
/* animating first slideritem */
.slider .sliderlist .slideritem:nth-child(1) .content .date,
.slider .sliderlist .slideritem:nth-child(1) .content .title,
.slider .sliderlist .slideritem:nth-child(1) .content .rating,
.slider .sliderlist .slideritem:nth-child(1) .content .description,
.slider .sliderlist .slideritem:nth-child(1) .content .btn {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}
@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}
.slider .sliderlist .slideritem:nth-child(1) .content .title {
  animation-delay: 1.2s !important;
}
.slider .sliderlist .slideritem:nth-child(1) .content .rating {
  animation-delay: 1.2s !important;
}
.slider .sliderlist .slideritem:nth-child(1) .content .description {
  animation-delay: 1.2s !important;
}
.slider .sliderlist .slideritem:nth-child(1) .content .btn {
  animation-delay: 1.2s !important;
}

/* animating when user next click */
.slider.next .sliderlist .slideritem:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
.slider.next .thumbnail-img .slideritem:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.slider.preview .sliderlist .slideritem img {
  z-index: 100;
}
@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}
.slider.next .thumbnail-img {
  animation: effectNext 0.5s linear 1 forwards;
}
@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}
@keyframes runningTime {
  form {
    width: 100%;
  }
  to {
    width: 0;
  }
}
/* when user preview click */
.slider.preview .sliderlist .slideritem:nth-child(2) {
  z-index: 2;
}
.slider.preview .sliderlist .slideritem:nth-child(2) img {
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}
@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}
.slider.preview .thumbnail-img .slideritem:nth-child() {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.slider.next .arrow-icons button,
.slider.preview .arrow-icons button {
  pointer-events: none;
}
.slider.preview .sliderlist .slideritem:nth-child(2) .content .date,
.slider.preview .sliderlist .slideritem:nth-child(2) .content .title,
.slider.preview .sliderlist .slideritem:nth-child(2) .content .rating,
.slider.preview .sliderlist .slideritem:nth-child(2) .content .description,
.slider.preview .sliderlist .slideritem:nth-child(2) .content .btn {
  animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}
.slider.preview .sliderlist .slideritem:nth-child(2) .content .date,
.slider.preview .sliderlist .slideritem:nth-child(2) .content .title,
.slider.preview .sliderlist .slideritem:nth-child(2) .content .rating,
.slider.preview .sliderlist .slideritem:nth-child(2) .content .description,
.slider.preview .sliderlist .slideritem:nth-child(2) .content .btn {
  animation: contentOut 1.5s linear 1 forwards !important;
}
@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}
/* mobile responsive */
@media screen and (max-width: 680px) {
  .slider .sliderlist .slideritem .content {
    padding-right: 0;
  }
  .slider .sliderlist .slideritem .content .title {
    font-size: 35px;
  }
  header {
    padding: 0 16px;
    height: 50px;
  }
  header a {
    margin-right: 16px;
    font-size: 12px;
  }
  .logo-link .author {
    height: 20px;
  }
  .slider {
    margin-top: -50px;
  }
}
