/* Resets */
body,
header,
main,
section,
article,
div,
p,
h1,
h2,
h3,
h4,
span,
img,
ul,
li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Layout */
.row {
  clear: both;
  /* Clearfix */
}
.row:before, .row:after {
  visibility: hidden;
  content: "";
  display: table;
  clear: both;
}

.col-s,
.col-lg {
  float: left;
}

.col-s {
  width: 80px;
}

.col-lg {
  width: calc(100%-80px);
}

/* Generic */
body {
  background-color: #eee;
  font-family: Roboto, sans-serif;
  font-size: 100%;
}

.channel-link:link, .channel-link:hover, .channel-link:focus, .channel-link:visited {
  color: inherit;
}

/* Top Bar */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1em 2em;
  background-color: #6441a4;
  font-size: 14px;
  color: #fff;
  z-index: 10;
}
.global-header h1,
.global-header .filters {
  display: inline-block;
  vertical-align: baseline;
  width: 50%;
  margin: 0;
  margin-right: -.25em;
}

@media (min-width: 550px) {
  .global-header {
    font-size: 16px;
  }
}
.filters {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
  text-transform: uppercase;
}
.filters li {
  display: inline-block;
}
.filters li {
  padding: 0.5em;
  cursor: pointer;
}

.logo {
  height: 30px;
  width: auto;
}

/* Content */
main {
  font-size: 14px;
  padding-top: 5em;
}

@media (min-width: 1500px) {
  main {
    font-size: 16px;
  }
}
.channel {
  background-color: #fff;
  width: calc(100% - 1em*2);
  max-width: 500px;
  margin: 1em auto;
  box-shadow: 2px 2px 5px 3px rgba(150, 150, 150, 0.2);
  overflow: hidden;
}
.channel:hover {
  border: 1px solid #6441a4;
  /* Arrow animation */
}
.channel:hover .more-btn {
  transform: rotate(270deg);
}

#online .channel {
  /* Details animations */
}
#online .channel .channel-curr-status {
  color: #6441a4;
}
#online .channel:hover .stream-preview {
  max-height: 281px;
}
#online .channel:hover .channel-stats li:first-child,
#online .channel:hover .channel-stats li:nth-child(2),
#online .channel:hover .stream-game,
#online .channel:hover .stream-stats {
  animation: slide-in-out 400ms ease-out forwards;
}
#online .channel:hover .channel-stats li:first-child {
  animation-delay: 400ms;
}
#online .channel:hover .channel-stats li:nth-child(2) {
  animation-delay: 500ms;
}
#online .channel:hover .stream-game {
  animation-delay: 800ms;
}
#online .channel:hover .stream-stats {
  animation-delay: 1000ms;
}
#online .channel:hover .stream-game,
#online .channel:hover .stream-stats {
  animation-direction: reverse;
}

.channel-primary {
  padding: 2em;
  padding-bottom: 1em;
}

.channel-details {
  position: relative;
  color: #a1a1a1;
  border-top: 1px solid #eee;
  overflow: hidden;
  padding: 1em 2em;
}

/* Channel Header */
.channel-name,
.channel-curr-status {
  float: left;
}

.channel-logo {
  padding-right: 1em;
}
.channel-logo img {
  width: 100%;
  border-radius: 50%;
}

.channel-name {
  width: calc(100% - 1.5em);
  font-weight: 600;
}

.channel-curr-status {
  width: 3.5em;
  text-align: right;
}

.channel-status {
  color: #a1a1a1;
  margin-top: .5em;
  padding-right: 3.5em;
}

@media (max-width: 549px) {
  .channel-status {
    font-size: .9em;
  }
}
/* Stream Preview */
.stream-preview {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}
.stream-preview img {
  width: 100%;
  height: auto;
}

#online .channel:hover .stream-preview {
  max-height: 281px;
}

/* Channel Details */
.channel-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  float: left;
  width: 80%;
}
.channel-stats li {
  display: inline-block;
}
.channel-stats li {
  transform: translateY(0);
  margin-right: 1em;
}
.channel-stats li i {
  margin-right: 0.5em;
}

.stream-details {
  position: absolute;
  top: 1em;
  left: 2em;
}

.stream-game {
  border-right: 1px solid;
  margin-right: 1em;
  padding-right: 1em;
}

.stream-game,
.stream-stats {
  display: inline-block;
  position: relative;
  top: 0;
  left: 0;
  transform: translateY(200%);
}

.stream-stats i {
  margin: 0 0.5em 0 0;
}

.more-btn {
  float: right;
  transform: rotate(0);
  transition: all 500ms ease-out;
}

/* Animations */
@keyframes slide-in-out {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    transform: translateY(-50%);
    opacity: 1;
  }
  60% {
    transform: translateY(0);
    opacity: 1;
  }
  90% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(200%);
    opacity: 0;
  }
}
