:host {
  box-sizing: border-box;
  width: calc(100% + 3rem);
  background-color: black;
  position: relative;
  color: white;
  display: block;
  margin-left: -1.5rem;
  padding: 0 1rem;
  height: calc(20vw + 4rem);
  contain: strict;
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  filter: blur(30px);
  opacity: 0.3;
  z-index: 0;
}

figure {
  margin: 0;
  width: 20vw;
  height: 20vw;
  display: inline-block;
  border-radius: 12px;
  contain: strict;
  box-shadow: 0 2px 4px black;
}

:host(:nth-child(odd)) {
  padding-right: 2rem;
}

:host(:nth-child(even)) li .left {
  order: 1;
}

slot[name="audio"] {
  display: none;
}

li {
  list-style: none;
  display: flex;
  align-items: center;
  flex-flow: row nowrap;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
}

li h4 {
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
  margin-bottom: 0.5em;
}

.right,
.left {
  margin: 0 1rem;
  z-index: 1;
}

.right {
  flex: 1;
}

#play {
  font-size: 1rem;
  background: none;
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.6em 1.2em;
  margin-top: 1rem;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: background-color 250ms ease;
}

.desc {
  flex-grow: none;
  display: none;
}

#play:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

:host-context(.show-player) slot[name="audio"] {
  display: block;
  position: fixed;
  bottom: 50px;
  width: 100%;
  left: 0;
  right: 0;
}

@media (min-width: 770px) {
  .desc {
    display: block;
  }
}

@media (min-width: 900px) {
  :host {
    max-height: 300px;
  }

  li h4 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1050px) {
  :host {
    max-height: 400px;
  }
}
