.thumbrating {
  margin-left: auto;
  line-height: 0;
}

.ratingtooltip {
  visibility: hidden;
  text-align: left;
  display: block;
  box-shadow: 0 0 15px 0 hsla(0,0%,0%,0.6);
  transition: opacity 0.3s, visibility 0.3s step-end;
  opacity: 0;
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.relatedrating .ratingtooltip {
  width: 216px;
  margin: -35px 0 0 -226px;
}

.contentrating .ratingtooltip {
  width: 174px;
  margin: -35px 0 0 -184px;
}

.thumbrating:hover .ratingtooltip {
  visibility: visible;
  transition: opacity 0.2s 0.1s;
  opacity: 1;
}

.ratingtooltip:after {
  content: "";
  position: absolute;
  top: 6px;
  left: 100%;
  border: 5px solid transparent;
  transition: top 0.3s ease-out;
}

.thumbrating:hover .ratingtooltip:after {
  transition: top 0.2s ease-in-out 0.1s;
  top: 10px;
}

.ratingtooltipheader {
  display: block;
  padding: 1px 10px;
  font-size: 18px;
  line-height: 20px;
  font-weight: 500;
  transition: padding 0.3s ease-out;
}

.thumbrating:hover .ratingtooltipheader {
  padding: 5px 10px;
  transition: padding 0.2s ease-in-out 0.1s;
}

.ratingtooltipcontent {
  display: block;
  padding: 5px 10px 7px;
  line-height: 16px;
}

.ratingtooltipcontent br {
  margin-bottom: 3px;
}

.thumbrating.unrated .ratingtooltip {
  background: hsl(225,8%,15%);
  color: white;
}

.thumbrating.unrated .ratingtooltipheader {
  background: hsl(225,8%,5%);
}

.thumbrating.unrated .ratingtooltip:after {
  border-left-color: hsl(225,8%,5%);
}

.unrated #videoratingtext {
  background: hsl(225,8%,5%);
  border-right-color: hsl(225,8%,15%);
}

.thumbrating.ratedG .ratingtooltip {
  background: #4CE074;
  color: white;
}

.thumbrating.ratedG .ratingtooltipheader {
  background: hsl(135,70%,35%);
}

.thumbrating.ratedG .ratingtooltip:after {
  border-left-color: hsl(135,70%,35%);
}

.ratedG #videoratingtext {
  background: hsl(135,70%,35%);
  border-right-color: #4ce074;
}

.thumbrating.rated10 .ratingtooltip {
  background: #92E04C;
  color: white;
}

.thumbrating.rated10 .ratingtooltipheader {
  background: hsl(92,70%,30%);
}

.thumbrating.rated10 .ratingtooltip:after {
  border-left-color: hsl(92,70%,30%);
}

.rated10 #videoratingtext {
  background: hsl(92,70%,30%);
  border-right-color: #92E04C;
}

.thumbrating.rated14 .ratingtooltip {
  background: #FFFF2D;
  color: black;
}

.thumbrating.rated14 .ratingtooltipheader {
  background: hsl(51,100%,30%);
  color: white;
}

.thumbrating.rated14 .ratingtooltip:after {
  border-left-color: hsl(51,100%,30%);
}

.rated14 #videoratingtext {
  background: hsl(51,100%,30%);
  border-right-color: #FFFF2D;
}

.thumbrating.rated16 .ratingtooltip {
  background: #FFB241;
  color: black;
}

.thumbrating.rated16 .ratingtooltipheader {
  background: hsl(35,100%,35%);
  color: white;
}

.thumbrating.rated16 .ratingtooltip:after {
  border-left-color: hsl(35,100%,35%);
}

.rated16 #videoratingtext {
  background: hsl(35,100%,35%);
  border-right-color: #FFB241;
}

.thumbrating.rated17 .ratingtooltip {
  background: #FF4141;
  color: white;
}

.thumbrating.rated17 .ratingtooltipheader {
  background: hsl(0,100%,30%);
}

.thumbrating.rated17 .ratingtooltip:after {
  border-left-color: hsl(0,100%,30%);
}

.rated17 #videoratingtext {
  background: hsl(0,100%,30%);
  border-right-color: #FF4141;
}

.ratingcontentnone #videoratingtext, .ratingcontentnone .ratingtooltipcontent {
  font-style: italic;
}