html.wf-loading * {
  opacity: 0;
}

body {
  background-color: black;
  font-family: 'Roboto Condensed', sans-serif;
  color: white;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.howto,
.input,
.output,
.back {
  max-width: 540px;
  margin: 0 auto;
}

.logo {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.logo img {
  width: 160px;
}

.loading {
  background-color: black;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.5rem;
}

.loading .text {
  max-width: 540px;
  margin: 0 auto;
  height: fit-content;
  padding: 1.5rem 0;
  text-align: center;
  background: #161819;
  border-radius: 24px;
  margin-top: 40vh;
}

.loading span {
  font-weight: bold;
  font-size: 18px;
}

.intro {
  height: 100vw;
  position: relative;
  margin: 0 -1.5rem;
  margin-bottom: 1rem;
}

.intro::after {
  content: '';
  position: absolute;
  bottom: -1px;
  height: 140px;
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 70%,
    rgba(0, 0, 0, 1) 100%
  );
}

.caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1;
  max-width: 90%;
}

.caption h1 {
  font-weight: bold;
  font-size: 28px;
  line-height: 37px;
  margin-bottom: 0.5rem;
}

.caption p {
  font-weight: normal;
  font-size: 16px;
  line-height: 19px;
}

.howto {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: #161819;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 2rem;
}

.step {
  text-align: center;
  display: grid;
}

.step img {
  margin: 0 auto;
  margin-bottom: 4px;
}

.input {
  display: grid;
  row-gap: 1rem;
  padding: 2rem 1rem;
  background: #161819;
  border-radius: 20px;
}

.input input {
  background: #161819;
  text-align: center;
}

.input input,
.input input::placeholder {
  color: #858585;
}

.input input,
.input button {
  border-radius: 8px;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
}

.input button {
  background: #2e2f31;
  color: white;
}

.output {
  display: grid;
  row-gap: 1.5rem;
  margin: 2rem auto;
}

.song {
  display: grid;
  grid-template-columns: 2fr 4fr 1fr;
  align-items: center;
  column-gap: 0.5rem;
}

.cover {
  position: relative;
  width: 80px;
  height: 80px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 20px;
}

.spectrum {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
}

.meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.songtitle,
.artist {
  line-height: 19px;
}

.songtitle {
  font-weight: bold;
  margin-bottom: 4px;
}

.artist {
  font-size: 15px;
  font-weight: normal;
}

.control {
  cursor: pointer;
}

@media screen and (min-width: 540px) {
}

@media screen and (min-width: 620px) {
  .intro,
  .howto {
    margin-bottom: 3rem;
  }
  .intro {
    height: 70vw;
  }
  .logo,
  .caption {
    width: 540px;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  }
}

@media screen and (min-width: 1280px) {
  .intro {
    height: 55vh;
  }
}
