*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  background: #f6f5f3;
  font-family: Roboto, Arial, sans-serif;
  font-size: 1em;
  line-height: 1.5;
}

.container {
  margin: 150px auto;
  max-width: 700px;
  padding: 0 25px;
}

.podcast {
  background: #2c3e50;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  margin: 20px auto;
  max-width: 700px;
  overflow: hidden;
}
.podcast__title, .podcast__desc {
  margin: 15px 0 5px 0;
}
.podcast__desc, .podcast__date {
  margin: 0;
}
.podcast__desc {
  font-size: 16px;
  margin-bottom: 15px;
}
.podcast__date {
  color: #89abe3;
  font-size: 14px;
  margin-bottom: 5px;
}
.podcast__cover {
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
  width: 200px;
}
.podcast__cover:before {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.podcast__cover:hover .volume {
  opacity: 1;
  top: 0;
}
.podcast__cover, .podcast__meta {
  float: left;
}
.podcast__meta {
  border-bottom: 6px solid #89abe3;
  max-height: 200px;
  min-height: 200px;
  padding: 0 20px;
  position: relative;
  width: calc(100% - 200px);
}
.podcast__control {
  background-color: rgba(0, 0, 0, 0.3);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 55px;
  cursor: pointer;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  -webkit-transition: background-size 0.1s ease-in-out;
  transition: background-size 0.1s ease-in-out;
  width: 100%;
  will-change: background-size;
}
.podcast__control:hover {
  background-size: 60px;
}
.podcast__play {
  background-image: url(../svg/play.svg);
}
.podcast__pause {
  background-image: url(../svg/pause.svg);
}
.podcast__time {
  bottom: 0;
  color: #fff;
  font-size: 14px;
  position: absolute;
  width: 100%;
}
.podcast__visual {
  border-radius: 4px;
  height: 100%;
  left: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  -webkit-transition: left 0.25s ease-in-out, opacity 0.5s ease-in-out;
  transition: left 0.25s ease-in-out, opacity 0.5s ease-in-out;
  visibility: hidden;
  will-change: left;
  width: 100%;
}
.podcast__visual:after {
  background-color: #000;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  opacity: 0.3;
  position: absolute;
  top: 0;
  width: 100%;
}
.podcast__visual canvas {
  bottom: 0;
  height: 100%;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}
.podcast__visual--loaded {
  opacity: 1;
  visibility: visible;
}
.podcast__text {
  position: relative;
  z-index: 2;
}
.podcast--loading .podcast__meta:before {
  -webkit-animation: opacityAnim 0.7s infinite alternate;
          animation: opacityAnim 0.7s infinite alternate;
  background-color: #fff;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.volume {
  cursor: pointer;
  left: 0;
  margin: 0 auto;
  opacity: 0;
  padding: 20px 0;
  position: absolute;
  right: 0;
  top: -5px;
  -webkit-transition: opacity 0.3s ease-in-out, top 0.2s ease-in-out;
  transition: opacity 0.3s ease-in-out, top 0.2s ease-in-out;
  width: 80%;
  will-change: transform;
  z-index: 2;
}
.volume-full {
  background: #fff;
  cursor: pointer;
  height: 1px;
  left: 0;
  margin: 20px auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}
.volume-line {
  background: #89abe3;
  height: 12px;
  left: 50%;
  position: absolute;
  top: 0;
  margin: 14px 0;
  width: 2px;
}

.time__current, .time__full {
  cursor: default;
  margin: 10px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.time__current {
  float: left;
}
.time__full {
  float: right;
}
.time__line {
  background: #fff;
  bottom: 0;
  cursor: pointer;
  height: 6px;
  position: absolute;
  width: 100%;
}

.line__current {
  height: 6px;
  position: absolute;
  width: 0%;
  background: #89abe3;
}

.visual__progress {
  background: #000;
  height: 100%;
  opacity: 0.25;
  position: absolute;
  top: 0;
  left: 0;
}

@media screen and (max-width: 700px) {
  .podcast__cover, .podcast__meta {
    max-height: none;
    width: 100%;
  }
}
@-webkit-keyframes opacityAnim {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.2;
  }
}
@keyframes opacityAnim {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.2;
  }
}
.credits {
  font-size: 0.8em;
  text-align: center;
}

.love {
  background: url(../svg/heart-smil.svg);
  display: inline-block;
  height: 16px;
  vertical-align: middle;
  width: 16px;
}

.title {
  text-align: center;
}
.title h1 {
  margin: 10px;
}
.title * {
  vertical-align: middle;
}
.title a:hover img {
  -webkit-animation: link 0.5s;
          animation: link 0.5s;
}
.title a img {
  width: 18px;
}

@-webkit-keyframes link {
  25% {
    -webkit-transform: rotate(10deg);
            transform: rotate(10deg);
  }
  50% {
    -webkit-transform: rotate(-10deg);
            transform: rotate(-10deg);
  }
}

@keyframes link {
  25% {
    -webkit-transform: rotate(10deg);
            transform: rotate(10deg);
  }
  50% {
    -webkit-transform: rotate(-10deg);
            transform: rotate(-10deg);
  }
}
