html {
  width: 100%;
  height: 100%;
}

body {
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", "Helvetica";
  padding: 0;
  margin: 0;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.01rem;
  overflow: hidden;
  width: 100%;
  height: 100%;
  --background-height: 380px;
  --background-width: 2542px;
}

a {
  color: inherit;
  text-decoration: none;
}

#bronze-player {
  width: 100%;
  height: 100%;
  z-index: 9999;
  position: absolute;
  left: 0;
  top: 0;
  border: 0;
  background: black;
  opacity: 0;
  transition: opacity 0.1s;
}

#bronze-player:hover {
  opacity: 0.1;
}

.background {
  background: none;
  background-image: url(/static/img/background.png);
  background-size: auto 38%;
  background-position: 41.5% 47%;
}

.background-wrap {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.background-half {
  background-image: url(/static/img/background.png);
  background-position: 41.5% 47%;
  background-size: auto var(--background-height);
}

.background-one {
  flex-grow: 1;
}

.background-two {
  flex-grow: 0;
}

.Playing .background-one {
  animation: 30s stretch-one linear infinite;
}

.Playing .background-two {
  animation: 30s stretch-two linear infinite;
}

@keyframes stretch-one {
  0% {
    flex-grow: 1;
    background-size: var(--background-width) var(--background-height);
  }
  100% {
    flex-grow: 0;
    background-size: var(--background-width) 0px;
  }
}

@keyframes stretch-two {
  0% {
    flex-grow: 0;
    background-size: var(--background-width) 0px;
  }
  100% {
    flex-grow: 1;
    background-size: var(--background-width) var(--background-height);
  }
}

.container-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 95%;
}

.flex-margin {
  min-height: 20px;
  width: 100%;
}

.container {
  box-sizing: border-box;
  width: 95%;
  max-width: 900px;
  padding: 30px 60px;
  background: black;
  color: white;
  position: relative;
  margin: auto;
  display: grid;
  grid-gap: 80px;
  grid-template-columns: 1fr 1fr;
  transition: padding 0.2s;
}

.left-column {
  position: relative;
}

#player-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

#player {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  grid-gap: 10px;
  min-height: 62px;
}


#controls,
#error {
  transition: width 0.2s;
  width: 80px;
  height: 92px;
  position: relative;
}

#controls button {
  -webkit-appearance: none;
  position: relative;
  background: none;
  border: 0;
  outline: none;
  transition: opacity 0.1s;
  cursor: pointer;
  padding: 0;
  width: 100%;
  height: 100%;
}

#controls button:hover {
  opacity: 0.9;
}

#controls button:active {
  opacity: 0.6;
}

#controls button img {
  height: 100%;
  width: auto;
  transition: width 0.2s;
  display: block;
}

#play img {
  z-index: 1;
}

#stop {
  display: none;
}

.Loading #stop {
  display: none;
}

.Playing #stop {
  display: block;
}

.Playing #play {
  display: none;
}

#loading-overlay {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.45);
  mix-blend-mode: darken;
}

.Loading #loading-overlay {
  display: block;
}

#song-info,
#loading-text {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 24px;
  min-width: 120px;
}

#song-info {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#song-info .artist {
  letter-spacing: 0.27px;
}

#loading-text {
  display: none;
  text-align: left;
  margin-top: 10px;
}

.Loading #loading-text {
  display: flex;
}

#error {
  display: none;
  position: relative;
}

.Error #error {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.Error #controls {
  display: none;
}

.right-column {
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-column a {
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  color: inherit;
  transition: opacity 0.1s;
}

.right-column a:hover {
  opacity: 0.8;
}

.cc-window {
  background: #000000;
  color: #ffffff;
}

.cc-btn {
  background: rgb(200, 200, 200);
  color: #000000;
}

.cc-btn:hover {
  background: rgb(150, 150, 150);
}

/* Responsive */

@media only screen and (max-width: 1400px) {
  .player-wrap {
    position: static;
    transform: none;
    min-height: 35vw;
    margin-bottom: 30px;
  }
}

@media only screen and (max-width: 950px) {
  body {
    overflow: auto;
    background-image: url(/static/img/background.png);
    background-size: auto 50%;
    background-position: center center;
    font-size: 14px;
  }

  .background-wrap {
    display: none;
  }

  .container-wrapper {
    height: 100%;
  }

  .container {
    grid-template-columns: unset;
    grid-template-rows: 1fr;
    max-width: 80%;
  }

  #controls,
  #error {
    width: 52px;
    height: 60px;
  }

  #loading-text {
    font-size: 12px;
    margin-top: 5px;
  }

  .right-column p:last-child {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 768px) {
  .container {
    padding: 30px;
    max-width: 85%;
  }
}
