/* mengatur style main */
main {
    width: 100%;
    align-items: center;
    justify-content: center;
}

/* Mengatur heading */
.heading {
    background: var(--back-color);
    padding: 8px 30px;
    border: 1px solid hsl(200 100% 99% / 5%);
    margin-bottom: 2rem;
    margin-top: 6.1rem !important;
}

.heading-title {
    padding-left: 30px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Mengatur isi content */
.movie {
    height: min-content;
    padding: 30px;
    display: flex;
}

.bg {
    width: 100%;
    height: 718px;
    position: absolute;
    top: 149px;
    left: 0;
    object-fit: cover;
    object-position: right;
    opacity: 30%;
}

.overlay {
    position: absolute;
    top: 149px;
    left: 0;
    width: 100%;
    height: 718.8px;
    background: rgba(0, 0, 0, 0.5);
}

.movie>figure img {
    width: 350px;
    aspect-ratio: 1/1.5;
    position: relative;
    margin: 0 30px 0 30px;
    bottom: 30px;
    box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.5);
}

figure img {
    border-radius: 5px;
}

/* Deskripsi */
.title {
    position: absolute;
    z-index: 1;
    left: 480px;
    padding-right: 70px;
    text-align: justify;
}

.title h1 {
    color: var(--text-color);
    text-shadow: 1px 1px 1px var(--main-color);
}

.title p {
    font-size: 0.983rem;
    margin: 10px 0 20px;
    color: var(--text-color);
    font-weight: bold;
}

.title .tagline {
    font-weight: lighter;
    font-style: italic;
    color: rgba(220, 220, 220, 0.693);
}

.title .desk {
    font-weight: normal;
}

.title div {
    display: flex;
    margin-bottom: 20px;
}

.title div .icon {
    display: flex;
    margin-right: 30px;
    background: var(--back-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.title div .play {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-shadow: 1px 1px 1px var(--main-color);
    cursor: pointer;
}

/* Trailer styles */
.trail {
    display: none;
    position: fixed;
    z-index: 2;
    padding-top: 95px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.trail-content {
    background-color: black;
    margin: auto;
    border: 1px solid #888;
    width: 100%;
    height: 540px;
    max-width: 900px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-right: 30px;
}

.close:hover,
.close:focus {
    text-decoration: none;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 497px;
    border: 0;
}

/* Detail */
section {
    margin: auto;
    width: 100%;
    position: relative;
}

/* Style Cast */
.tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--back-color);
    padding: 8px 30px;
    border: 1px solid hsl(200 100% 99% / 5%);
    margin-bottom: 2rem;
}

.tag-tittle {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.content {
    display: flex;
    overflow: scroll;
    overflow-y: hidden;
}

figure {
    padding: 10px;
    margin-bottom: 5px;
    transition: 0.5s;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
}

figure>img {
    box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.5);
}

.cast-name {
    font-weight: bold;
}

.cast-char {
    font-style: italic;
}

.content figure:hover {
    transform: scale(1.1);
}

.content img {
    width: 200px;
    height: auto;
    border-radius: 10px;
}

.content::-webkit-scrollbar {
    background: var(--scr-color);
    width: 0.5rem;
}

.content::-webkit-scrollbar-thumb {
    background: var(--scroll-color);
}

/* Style Rekomen & Similar */
.film .content a{
    color: #fff;
}

/* Responsive styling for main section */
@media (max-width: 861px) {
    .heading {
     margin-top: 6rem !important;
    }

    .movie {
      flex-direction: column;
      align-items: center;
      padding: 20px;
    }
  
    .bg, .overlay {
      height: 950px;
    }
  
    .movie > figure img {
      width: 250px;
      margin: 0;
      bottom: 0;
      margin-bottom: 20px;
    }
  
    .title {
      position: static;
      padding: 0;
      text-align: justify;
      margin-top: 20px;
    }
  
    .title h1 {
      font-size: 1.5rem;
    }
  
    .title p {
      font-size: 0.9rem;
    }
  
    .title div {
      justify-content: center;
      margin-bottom: 15px;
    }
  
    .title div .icon {
      width: 35px;
      height: 35px;
      margin-right: 15px;
    }
  
    .title div .play {
      height: 35px;
      gap: 15px;
    }
  
    .trail-content {
      width: 90%;
      height: auto;
      max-height: 500px;
    }
  
    .trail-content iframe {
      height: 300px;
    }
  
    .tag {
      padding: 8px 15px;
      margin-bottom: 1.5rem;
    }
  
    .content {
      overflow-x: auto;
      margin: 0 15px;
    }
  
    .content figure {
      margin: 0 10px;
    }
  
    .content img {
      width: 150px;
    }
  
    .tag-tittle {
      font-size: 1.25rem;
    }
  }

  @media (max-width: 821px) {
    .heading {
        margin-top: 5.95rem !important;
    }

    .bg, .overlay {
        height: 970px;
    }
  }

  @media (max-width: 799px) {
    .heading {
        margin-top: 5.8rem !important;
    }

    .bg, .overlay {
        top: 147px;
    }
  }

  @media (max-width: 781px) {
    .heading {
        margin-top: 5.62rem !important;
    }

    .bg, .overlay {
        top: 134px;
    }

    .heading-title {
      font-size: 18px;
    }

    .tag .tag-title{
      font-size: 18px;
    }
  }

  @media (max-width: 769px) {
    .heading {
        margin-top: 6.25rem !important;
    }

    .bg, .overlay {
        top: 144px;
    }

    .trail-content iframe {
      height: 400px;
    }
  }

  @media (max-width: 673px) {
    .heading {
        margin-top: 8.75rem !important;
    }

    .bg, .overlay {
        top: 184px;
        height: 995px;
    }
    
    .trail {
      top: 45px;
    }
  }
  
  @media (max-width: 601px) {
    .bg, .overlay {
     height: 885px;
    }

    .movie > figure img {
      width: 200px;
    }
  
    .title h1 {
      font-size: 1.25rem;
    }
  
    .title p {
      font-size: 0.8rem;
    }
  
    .title div .icon {
      width: 30px;
      height: 30px;
      margin-right: 10px;
    }
  
    .title div .play {
      height: 30px;
      gap: 10px;
    }
  
    .trail-content iframe {
      height: 250px;
    }
  
    .tag {
      padding: 8px 10px;
      margin-bottom: 1rem;
    }
  
    .content img {
      width: 130px;
    }
  
    .tag-tittle {
      font-size: 1.1rem;
    }
  }
  
  @media (max-width: 480px) {
    .bg, .overlay {
        height: 830px;
    }

    .movie > figure img {
      width: 150px;
    }
  
    .title h1 {
      font-size: 1rem;
    }
  
    .title p {
      font-size: 0.7rem;
    }
  
    .title div .icon {
      width: 25px;
      height: 25px;
      margin-right: 5px;
    }
  
    .title div .play {
      height: 25px;
      gap: 5px;
    }
  
    .trail-content iframe {
      height: 200px;
    }
  
    .tag {
      padding: 8px 5px;
      margin-bottom: 0.5rem;
    }
  
    .content img {
      width: 100px;
    }
  
    .tag-tittle {
      font-size: 1rem;
    }
  }

  @media (max-width: 352px) {
    .bg, .overlay {
        height: 840px;
    }
  }
  
  @media (max-width: 321px) {
    .bg, .overlay {
        height: 700px;
    }

    .movie > figure img {
      width: 100px;
    }
  
    .title h1 {
      font-size: 0.875rem;
    }
  
    .title p {
      font-size: 0.6rem;
    }

    .title div .icon {
        width: 30px;
        height: 30px;
        margin-right: 15px;
    }

    .title div .play {
        gap: 10px;
        font-size: 0.8rem;
    }

    .title div .play .material-icons {
        font-size: 24px;
    }
  
    .trail-content iframe {
      height: 150px;
    }
  
    .tag {
      padding: 8px 5px;
      margin-bottom: 0.5rem;
    }
  
    .content img {
      width: 80px;
    }
  
    .tag-tittle {
      font-size: 0.875rem;
    }
  }
  