html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: Roboto, sans-serif;
    font-size: 16px;
}
*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

/**
 * Header
 */
.header {
    position: fixed;
    top: 0;
    background: white;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    width: 100%;
    height: 70px;
    margin: 0 auto;
    padding: 3px 30px;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-icon {
    width: 50px;
    height: 50px;
}

.header-text p {
    color: rgb(95, 99, 104);
    font-weight: 500;
    font-size: 20px;
}


/**
 * Content header
 */
.content-header {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 0px 0px;
    box-sizing: border-box;
}

.content-header-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0px auto 0px 0px;
}

.content-header-app-logo {
    width: 220px;
    height: auto;
}

.content-header-app-name {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 5px;
}

.content-header-app-tag {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #01875F;
}

.content-header-app-title {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 5px;
}

.content-header-app-description {
    font-size: 13px;
    font-weight: 500;
    color: rgb(95, 99, 104);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 8px 40px;
    background-color: #01875F;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color:rgb(2, 97, 68);
}

.content-header-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0px auto 20px 0px;
}

.content-header-rating-item,
.content-header-rating-item-last {
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    padding: 0px 35px;
    box-sizing: border-box; 
}

.content-header-rating-item {
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.content-header-rating-item:first-child {
    padding-left: 0px;
}

.content-header-rating-item-content,
.content-header-rating-item-content-last {
    font-size: 13px;
    color: rgb(32, 33, 36);
}

.content-header-rating-item-content {
    margin-bottom: 5px;
}

.content-header-rating-item-content-last img {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    margin-bottom: 0px;
}

.content-header-rating-item-description {
    font-size: 13px;
    font-weight: 500;
    color: rgb(95, 99, 104);
}

.content-header-line {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/**
 * Content suggest
 */
.content-suggest {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0px 0px;
    box-sizing: border-box;
}

.content-suggest p {
    font-size: 20px;
    font-weight: 600;
}

.content-suggest-info {
    width: 100%;
    max-width: 1200px;
    font-size: 15px;
    color: rgb(95, 99, 104);
    margin-bottom: 20px;
    line-height: 1.5;
}

.content-suggest-item {
    width: 100%;
    max-width: 1200px;
    overflow-x: scroll;
    margin-bottom: 10px;
}

.content-suggest-item img {
    height: 400px;
    border-radius: 10px;
}

/**
 * Content review
 */

.content-rate {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0px 0px 0px;
    box-sizing: border-box;
}

.content-rate p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.rating-summary {
    display: flex;
    margin-bottom: 20px;
}
  
.rating-value {
    font-size: 50px;
    font-weight: bold;
    margin-right: 15px;
}
  
.rating-stars {
    font-size: 24px;
    color: #ffcc00;
}
  
.rating-stars .filled {
    color: #ffcc00;
}
  
.rating-count {
    font-size: 14px;
    color: #777;
}

.rating-distribution {
    width: 70%;
    margin-left: 20px;
}
  
.rating-bar {
    display: flex;
    align-items: center;
    margin: 5px 0;
    position: relative;
}
  
.rating-bar .label {
    width: 20px;
    font-size: 14px;
    color: #333;
    margin-right: 10px;
}
  
.rating-bar .bar {
    flex: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
  
.rating-bar .filled {
    height: 100%;
    background-color: #0a7b61;
    border-radius: 4px;
    transition: width 0.3s ease;
}
  
.rating-bar:hover::after {
    content: attr(data-count);
    position: absolute;
    left: 50px;
    top: -28px;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.rating-container {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    gap: 8px;
}
  
.stars-outer {
    position: relative;
    display: inline-block;
    font-family: FontAwesome;
    font-size: 20px;
    color: #ccc;
}
  
.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    color: #FFD700; /* Màu sao vàng */
}
  
.stars-outer::before,
.stars-inner::before {
    content: "★★★★★";
}

/**
 * Reviews
 */
.reviews {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 0px 20px;
    box-sizing: border-box;
}

.title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.review-item {
    background: #fff;
    padding: 15px;
    margin-bottom: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-name {
    font-weight: bold;
}

.review-date {
    color: #888;
    font-size: 13px;
}

.review-stars {
    color: #ffb400;
    font-size: 16px;
    margin: 6px 0;
}

.review-text {
    font-size: 15px;
    line-height: 1.4;
}

@media screen and (max-width: 1201px) {
    .header,
    .content-suggest,
    .content-rate,
    .reviews {
        padding: 10px 20px;
        box-sizing: border-box;
    }

    .content-header {
        padding: 80px 20px 0px;
        align-items: center;
    }

    .content-header-app-logo {
        width: 160px;
    }
}

@media screen and (max-width: 900px) {
    .header,
    .content-suggest,
    .content-rate,
    .reviews {
        padding: 10px 20px;
        box-sizing: border-box;
    }

    .content-header {
        padding: 80px 20px 0px;
        align-items: center;
    }

    .content-header-app-logo {
        width: 160px;
    }

    .content-header-app-name {
        font-size: 20px;
    }

    .content-header-app-tag {
        font-size: 11px;
    }
    
    .content-header-app-title {
        font-size: 15px;
    }
    
    .content-header-app-description {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .content-header-app {
        margin-bottom: 20px;
    }

    .content-header-rating-item,
    .content-header-rating-item-last {
        padding: 0px 15px;
    }

    .content-header-rating-item-content,
    .content-header-rating-item-content-last,
    .content-header-rating-item-description {
        font-size: 10px;
    }

    .rating-stars {
        font-size: 15px;
    }

    .rating-count {
        font-size: 10px;
    }
}