@charset "utf-8";

/* header */

header {
  margin-top: 5rem;
}

.home {
  display: block;
  width: fit-content;
  padding: .6rem;
}

.main-title {
  font-size: 1.5rem;
  line-height: 1.4;
}

.sub-title {
  font-size: 1rem;
}

/* main */

.detail-container {
  margin-top: 0.5rem;
  padding: 6rem 0 0;
  border-top: 1px solid #888;
  display: flex;
  justify-content: space-evenly;
}

.img-frame {
  width: 512px;
  height: 512px;
  flex-shrink: 0;
}

.image-source {
  font-size: .8rem;
  text-align: right;
  margin-top: .2rem;
  padding-right: .4rem;
}

.source-link {
  color: #777;
}

.source-link:hover {
  color: #333;
  text-decoration: underline;
}

.title {
  font-size: 2.5rem;
  line-height: 1.4;
}

.tracklist {
  font-size: 1rem;
  margin-top: 2rem;
}

.tracklist p {
  font-weight: bold;
}

.tracklist ul {
  margin-top: .4rem;
  padding-left: .5rem;
  border-left: 1px solid #333;
}

.linkfire {
  width: 16rem;
  margin-top: 2rem;
}

.related-movies-area {
  margin-top: 6rem;
  padding-bottom: 3rem;
  border-top: 1px solid #888;
}

.related-movies-area h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
}

.related-movies {
  margin-top: 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.embedded-movie {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 1px 1px 14px rgba(0, 0, 0, .6);
  aspect-ratio: 16 / 9;
}

.movie-text {
  min-height: 5rem;
  margin-top: .6rem;
}

.movie-title {
  font-size: 1.2rem;
  font-weight: bold;
}

@media (max-width: 1024px) {

  .detail-container {
    flex-direction: column;
    align-items: center;
  }

  .img-frame {
    width: 100%;
    height: auto;
    max-width: 512px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  .img-frame-inner {
    height: auto;
  }

  .detail-text {
    margin: 2.5rem auto 0;
  }

  .title {
    font-size: clamp(1.2rem, 5vw, 2.4rem);
    text-align: center;
  }

  .date {
    font-size: clamp(.8rem, 3vw, 1.2rem);
    text-align: center;
  }

  .tracklist {
    font-size: clamp(.8rem, 2vw, 1rem);
    width: fit-content;
    margin: 3rem auto 0;
  }

  .linkfire {
    font-size: clamp(.8rem, 2.5vw, 1rem);
    width: 100%;
    min-width: 13rem;
    max-width: 14rem;
    margin: 2.5rem auto 0;
  }

  .related-movies-area h2 {
    font-size: clamp(1rem, 3vw, 1.6rem);
    margin-top: 3.5rem;
  }

  .related-movies {
    grid-template-columns: 1fr;
  }

  .movie-title {
    font-size: clamp(1rem, 3vw, 1.6rem);
  }

  .movie-date {
    font-size: clamp(.8rem, 2.5vw, 1.5rem);
  }

}

@media (max-width: 768px) {

  .container {
    padding: 0 5%;
  }

  .main-title {
    font-size: 1rem;
  }

  .sub-title {
    font-size: .8rem;
  }

}

@media (max-width: 450px) {

  .detail-container {
    margin-top: 0;
    padding-top: 3rem;
  }

  .img-frame {
    padding: .4rem;
  }

  .image-source {
    font-size: .6rem;
  }

}