.top-list {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    margin: 1.5rem 0;
}
.top-list-item {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    box-shadow: 0px 10px 40px 0px rgb(109 141 173 / 25%);
    margin-bottom: 2rem;
    border-radius: 8px;
    padding: 10px 5px;
    color: black;
    grid-gap: 5px;
}
.top-list-item:hover {
    box-shadow: 0px 15px 40px 0px rgb(109 141 173 / 55%);
}
.top-block {
    padding: 5px;
}
.top-block.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.top-block.action {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    position: relative;
}

.top-block.logo .stt {
    position: absolute;
    top: -22px;
    left: 15px;
    right: auto;
    width: 30px;
    height: 42px;
    border-radius: 5px;
    background-color: #ff2453;
}
.top-block.logo .stt span {
    position: relative;
    display: inline-block;
    width: 30px;
    padding: 7px 0;
    text-align: center;
    font-weight: 700;
    font-size: 1em;
    line-height: 1em;
    color: #fff;
}
.top-block.logo .stt:before {
    content: '';
    display: block;
    width: 30px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    top: 0;
    left: 0;
    right: 0;
    border-radius: 5px 5px 0 0;
    z-index: 1;
}

.top-block.logo img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.top-block.logo .bookie-name {
    font-weight: 600;
    text-align: center;
}
.bbtn-register, .bbtn-view {
    padding: 5px 8px;
    border-radius: 20px;
}
.bbtn-register {
    background: #2ecc71;
    margin-right: 8px;
    color: #fff;
    white-space: nowrap;
}
.bbtn-register:hover {
    box-shadow: 0px 0px 15px 0px rgb(46 204 113 / 55%) !important;
}

.bbtn-view {
    background: #7f8c8d ;
    color: #fff;
    white-space: nowrap;
}
.bbtn-view:hover {
    box-shadow: 0px 0px 15px 0px rgb(127 140 141 / 55%) !important
}
.top-block.promotion, .top-block.review {
    text-align: justify;
    position: relative;
    padding: 0 5px;
}
.top-block.promotion:after, .top-block.review:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ddd;
    right: -3px;
}

.top-block.review p {
    margin-bottom: 5px;
}

table.top-ten {
    border: 0;
    padding: 0;
    width: 100%;
    background-color: transparent;
    border-spacing: 0;
    border-collapse: collapse;
}

table.top-ten tr td {
    border: 0;
    padding: 0;
}

.top-rank-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border: 2px solid #39b549;
    border-radius: 5px;
    padding: 25px 15px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
    background: #fff;
    position: relative;
    flex-flow: row wrap;
}

.top-ten tr:first-child .top-rank-content {
    border: 2px solid #d90000;
}

.top-rank-content .thumb {
    flex-basis: 20%;
    max-width: 20%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.top-rank-content .thumb span {
    border-radius: 50%;
    border: 5px solid #3a3a3a;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    font-size: 1em;
    color: black;
}

.top-ten tr:first-child .top-rank-content .thumb span {
    border: 5px solid #d90000;
    color: #d90000;
}
.top-ten tr:nth-child(2) .top-rank-content {
    border: 2px solid #edd000;
}
.top-ten tr:nth-child(2) .custom-label span {
    background: #edd000;
    color: #000;
}
.top-ten tr:nth-child(3) .top-rank-content {
    border: 2px solid #00389C;
}
.top-ten tr:nth-child(3) .custom-label span {
    background: #00389C;
}

.top-rank-content img {
    max-width: 65px;
    margin: 0 10px;
}

.top-rank-content .content-title {
    flex-basis: 15%;
    max-width: 15%;
    text-align: left;
}

.top-rank-content .content-title div.b-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.2em;
    color: #000;
}
.top-rank-content .des {
    font-size: 1.2em;
    font-weight: 600;
    color: #000;
    flex-basis: 35%;
    max-width: 35%;
    text-align: center;
    line-height: 1.3em;
}
.top-rank-content .des ul {
    list-style: none;
    text-align: justify;
    font-weight: normal;
    margin: 0;
    font-size: 15px;
    padding: 5px;
}
.top-rank-content .des ul li {
    margin: 0;
    padding: 0;
}
.top-rank-content .des.hidden-desktop, .style4 .des.hidden-mobile, .style5 .des.hidden-mobile {
    display: none;
}
.top-rank-content .des p {
    margin: 0;
    line-height: 1.3em;
    color: black;
}

.top-rank-content .score {
    text-align: center;
    flex-basis: 15%;
    max-width: 15%;
}

span.review-score {
    display: block;
    line-height: 1em;
    font-size: 1.8em;
    font-weight: 600;
    color: #000;
}

.star {
    display: inline-block;
    font-size: 1.25em;
    line-height: 0.7;
    background: linear-gradient(90deg,#2db201 var(--percent),#989898 var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    transform: translateX(-2px);
}

.top-tent-btn {
    flex-basis: 15%;
    max-width: 15%;
}

.top-rank-content .top-tent-btn a {
    display: block;
    background: #39b549;
    border-radius: 5px;
    color: #fff;
    text-decoration: none !important;
    text-align: center;
    padding: 5px;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 10px;
}

.top-rank-content .top-tent-btn a.btn-play {
    margin-bottom: 0;
    border: 1px solid #000;
    background: transparent;
    color: #000;
}

.top-ten tr:first-child .top-tent-btn .btn-play {
    /* pointer-events: none; */
    background: #979797;
    color: #fff;
    border-color: #979797;
}


.custom-label {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    color: #fff;
    min-width: 220px;
    text-align: center;
}

.custom-label span {
    background: #39b549;
    padding: 0px 20px;
    border-radius: 0px 0px 4px 4px;
    width: 100%;
    display: block;
}
.top-ten tr:first-child .custom-label span {
    background: #d90000;
}

@media screen and (max-width: 767px) {
    .top-rank-content {
        padding: 10px 10px;
    }
    .top-rank-content .thumb {
        flex-basis: 25%;
        max-width: 25%;
        order: 2;
    }
    .top-rank-content .thumb span {
        width: 30px;
        height: 30px;
        border-width: 3px !important;
    }
    .top-rank-content .content-title {
        flex-basis: 55%;
        max-width: 55%;
        text-align: left;
        order: 3;
    }
    .top-rank-content .content-title div.b-title {
        font-size: 1.2em;
    }
    .top-rank-content .des.hidden-desktop {
        flex-basis: 100%;
        max-width: 100%;
        display: inline-block;
        text-align: left;
        font-size: 1em;
    }
    .top-rank-content .des.hidden-mobile {
        display: none;
    }
    .top-rank-content .score {
        flex-basis: 18%;
        max-width: 18%;
        line-height: 1em;
        order: 4;
    }
    span.review-score {
        font-size: 1.5em;
    }
    .star {
        font-size: 0.9em;
    }
    .top-tent-btn {
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
        order: 5;
    }
    .top-rank-content .top-tent-btn a {
        flex-basis: 48%;
        max-width: 48%;
        margin: 0;
        padding: 2px 5px;
    }
    .custom-label {
        padding: 0px 10px;
        text-align: center;
        order: 1;
        flex-basis: 100%;
        max-width: 100%;
        transform: translate(0);
        position: unset;
        margin-top: -5px;
        margin-bottom: 10px;
        line-height: 1em;
    }
    .custom-label span {
        background: #39b549;
        padding: 2px 20px 6px;
        border-radius: 0px 0px 4px 4px;
        line-height: 1em;
        display: initial;
        min-width: 145px;
    }
}


.link-vao-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99999999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    display: flex;
    transition: all 0.2s;
}
.link-vao-mask.open {
    visibility: visible;
    opacity: 1;
}
.link-vao {
    width: 100%;
    max-width: 568px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0px 10px 40px 0px rgb(109 141 173 / 25%);
    transition: all 0.2s;
    transform: scale(0);
    opacity: 0;
    overflow: hidden;
}
.link-vao.open {
    transform: scale(1);
    opacity: 1;
}

.link-vao-pop {
    width: 100%;
    padding: 10px;
    background: var(--head-color);
}
.link-vao-pop-title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--title-color);
}
.link-vao-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}
.link-vao-content a {
    padding: 5px;
    border-bottom: 1px dashed #ddd;
    color: var(--title-color);
}
.link-vao-content a.block {
    text-decoration: line-through;
}


.paginate-wrp {
    display: flex;
    align-items: center;
    justify-content: center;
}
.paginate-item {
    width: 28px;
    height: 28px;
    border-radius: 1px;
    border: 1px solid #39b549;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s;
}
.paginate-item:hover, .paginate-item.active {
    background-color: #39b549;
    color: white;
}
.top-list-bookie-tab {
    display: flex;
    margin-bottom: 1rem;
}
.top-list-bookie-tab div {
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}
.top-list-bookie-tab div.active {
    border-bottom: 2px solid #39b549;
}
.top-list-bookie-wrp {
    margin: 1rem 0;
}

.bookie-itemt {
    display: grid;
    grid-template-columns: 1fr;
    background: #f2f2f2;
    padding: 8px;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-bottom: 1px solid #a3a3a3;
}
.block-1 {
    display: flex;
    align-items: center;
}
.block-1 .stt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    color: #fff;
    font-weight: 600;
    margin-right: 1rem;
}
.bookie-itemt .block-1 .stt {
    background-image: url('../images/top4.svg');
}
.bookie-itemt:first-child .block-1 .stt {
    background-image: url('../images/top1.svg');
}
.bookie-itemt:nth-child(2) .block-1 .stt {
    background-image: url('../images/top2.svg');
}
.bookie-itemt:nth-child(3) .block-1 .stt {
    background-image: url('../images/top3.svg');
}
.block-1 .logo {
    width: 70px;
    height: 70px;
    margin-right: 1rem;
}

.name-rating .rating {
    display: inline-block;
    font-size: 1.25em;
    font-family: Times;
    line-height: 1;
    letter-spacing: 3px;
    background: linear-gradient(90deg,#FE8C23 var(--percent),#989898 var(--percent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
}
.name-rating .name {
    font-weight: 600;
    font-size: 18px;
}
.block-2 {
    padding: 10px 5px;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.block-2 .promotion {
    font-weight: 700;
    font-size: 18px;
    width: 100%;
}
.block-2 .review {
    font-size: 14px;
    width: 100%;
}
.block-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.block-3 a {
    padding: 6px 8px;
    width: 100%;
    background: #39b549;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
}

.block-3 a:hover {
    opacity: 0.8;
}
.top-list-enter-link {
    width: 100%;
    margin: 1rem 0;
}
.enter-item {
    width: 100%;
}

.enter-item-inner {
    margin: 2px;
    border: 1px solid #ccc;
}

.enter-item-header {
    padding: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    background: var(--header-color);
    color: var(--title-color);
}
.enter-item-inner .link-list-item {
    padding: 5px;
    text-decoration: underline;
    color: blue;
    transition: all 0.2s;
}
.enter-item-inner .link-list-item.block {
    text-decoration: line-through;
    color: red;
}
.enter-item-inner .link-list-item:hover {
    color: #0000cd;
    background: #ddd;
}
.link-list {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.toplist-search {
    margin: 1rem 0;
    width: 100%;
}
.toplist-search input {
    padding: 8px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
}


@media screen and (min-width: 568px) {
    .top-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .enter-item {
        width: calc(100% / 2);
    }
}
@media screen and (min-width: 992px) {
    .top-list {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .top-list-item {
        grid-template-columns: 1fr 1fr 2fr 1fr;
    }
    .top-block.action {
        flex-direction: column;
    }
    .bbtn-register {
        margin-right: 0;
        margin-bottom: 8px;
    }
    .bookie-itemt {
        grid-template-columns: 2fr 3fr 1fr;
    }
    .enter-item {
        width: calc(100% / 3);
    }
    
}