@media only screen and (min-width : 481px) {
  :root {
    --star-size: 30px;
    --star-color: #7e7e7e;
    --star-background: #fc0;
  }
}

@media only screen and (max-width : 480px) {
  :root {
    --star-size: 50px;
    --star-color: #7e7e7e;
    --star-background: #fc0;
  }
}

.Stars {
  --percent: calc(var(--rating) / 5 * 100%);
  
  display: inline-block;
  font-size: var(--star-size);
  font-family: Times; // make sure ★ appears correctly
  line-height: 1;
  
  &::before {
    content: '★★★★★';
    letter-spacing: 3px;
    background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

// Just to make a preview more beautifull

body {
  background: #eee;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

* {
  position: relative;
  box-sizing: border-box;
}

#rating_container {
  border: 1px solid #ccc;
  padding: 10px 20px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  background: white;
  display:inline-block
}

#rating_container .glabel {
  font-weight:bold;
  font-size: 20px;
  text-align: center
}

#rating_container .starval {
  font-weight:bold;
  font-size: 28px;
  text-align: center
}

#rating_container .rezlabel {
  font-size: 16px;
  text-align: center
}

#rating_container a {
  font-size: 16px;
  font-weight: bold
}




#rating_container_sm {
  border: 1px solid #ccc;
  padding: 8px 16px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  border-radius: 8px;
  background: white;
  display:inline-block
}

#rating_container_sm .glabel {
  font-weight:bold;
  font-size: 16px;
  text-align: center
}

#rating_container_sm .starval {
  font-weight:bold;
  font-size: 22px;
  text-align: center
}

#rating_container_sm .rezlabel {
  font-size: 13px;
  text-align: center
}

#rating_container_sm a {
  font-size: 13px;
  font-weight: bold
}