<fieldset class="rating">
    <input <?php echo ($rating == 5) ? " checked " : "" ?> data-id="<?php echo $videoID; ?>" type="radio" id="star5" name="rating" value="5" /><label class = "full" for="star5" title="Awesome - 5 stars"></label>
    <input <?php echo ($rating == 4.5) ? " checked " : "" ?> data-id="<?php echo $videoID; ?>" type="radio" id="star4half" name="rating" value="4.5" /><label class="half" for="star4half" title="Pretty good - 4.5 stars"></label>
    <input <?php echo ($rating == 4) ? " checked " : "" ?> data-id="<?php  echo $videoID; ?>" type="radio" id="star4" name="rating" value="4" /><label class = "full" for="star4" title="Pretty good - 4 stars"></label>
    <input <?php echo ($rating == 3.5) ? " checked " : "" ?> data-id="<?php  echo $videoID; ?>" type="radio" id="star3half" name="rating" value="3.5" /><label class="half" for="star3half" title="Meh - 3.5 stars"></label>
    <input <?php echo ($rating == 3) ? " checked " : "" ?> data-id="<?php  echo $videoID; ?>" type="radio" id="star3" name="rating" value="3" /><label class = "full" for="star3" title="Meh - 3 stars"></label>
    <input <?php echo ($rating == 2.5) ? " checked " : "" ?> data-id="<?php  echo $videoID; ?>" type="radio" id="star2half" name="rating" value="2.5" /><label class="half" for="star2half" title="Kinda bad - 2.5 stars"></label>
    <input <?php echo ($rating == 2) ? " checked " : "" ?> data-id="<?php  echo $videoID; ?>" type="radio" id="star2" name="rating" value="2" /><label class = "full" for="star2" title="Kinda bad - 2 stars"></label>
    <input <?php echo ($rating == 1.5) ? " checked " : "" ?> data-id="<?php  echo $videoID; ?>" type="radio" id="star1half" name="rating" value="1.5" /><label class="half" for="star1half" title="Meh - 1.5 stars"></label>
    <input <?php echo ($rating == 1) ? " checked " : "" ?> data-id="<?php  echo $videoID; ?>" type="radio" id="star1" name="rating" value="1" /><label class = "full" for="star1" title="Sucks big time - 1 star"></label>
    <input <?php echo ($rating == 0.5) ? " checked " : "" ?> data-id="<?php  echo $videoID; ?>" type="radio" id="starhalf" name="rating" value="0.5" /><label class="half" for="starhalf" title="Sucks big time - 0.5 stars"></label>
</fieldset>

<style>
    @import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
    .rating {
        border: none;
        float: left;
    }


    .rating > label{
        cursor: pointer;
    }


    .rating > input { display: none; }
    .rating > label:before {
        margin: 5px;
        font-size: 1.25em;
        font-family: FontAwesome;
        display: inline-block;
        content: "\f005";
    }

    .rating > .half:before {
        content: "\f089";
        position: absolute;
    }

    .rating > label {
        color: #ddd;
        float: right;
    }

    /***** CSS Magic to Highlight Stars on Hover *****/

    .rating > input:checked ~ label, /* show gold star when clicked */
    .rating:not(:checked) > label:hover, /* hover current star */
    .rating:not(:checked) > label:hover ~ label { color: #fff;  } /* hover previous stars in list */

    .rating > input:checked + label:hover, /* hover current star when changing rating */
    .rating > input:checked ~ label:hover,
    .rating > label:hover ~ input:checked ~ label, /* lighten current selection */
    .rating > input:checked ~ label:hover ~ label { color: #18c29b;  }
</style>