* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button:focus {
    outline: none;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.panel-trigger {
    position: fixed;
    display: none;
    width: 40px;
    height: 40px;
    left: -20px;
    top: 50%;
    background: #ddd url("./icon.png") no-repeat center center / cover;
    border-radius: 20px;
    z-index: 99;
}

.result-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 10px;
    display: none;
    background-image: url("./bg_v.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 9;
}

.result-panel.horizontal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 10px;
    display: none;
    background-image: url("./bg_h.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 9;
}

.panel-head {
    position: relative;
}

.panel-head img {
    width: 100%;
}

.user-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-left: 60px;
}

.user-info .avatar {
    display: inline-block;
    position: absolute;
    left: 0;
    top: -5px;
    width: 50px;
    height: 50px;
    background-color: #eee;
    border-radius: 50%;
}

.user-info p {
    color: #fff;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-body {
    width: 80%;
    position: relative;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-top: 5px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 20px;
    padding: 0 0 5px 0;
}

.panel-body .body-title {
    background-color: #4080ff;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    line-height: 46px;
    text-shadow: 0 2px 2px #000;
}

.panel-body .close {
    position: absolute;
    right: 5px;
    top: 8px;
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACLklEQVRoQ8Wa0VHDMAxApQnoKGwAI8AE0AmgG5QNugHdoGzAsUFXYQJzCnHPSWxHkiUnn20Sv3euJVkuQuEKIewA4BMAHgHggIjn0r0en4cQaOxXADgi4kdpDMx9McJ/A8B98v2+l0QCH4c/I+I+x7oQKMDHZ90lMvBViYnACry7RAW+KHETYMK7STDgsxKDgBDeXEIAv5BAJbyZhAJ+IkECFwB4agiF6oXdAB9xDyQQGuDVM2EAT2P/kAAlC0oarRd7JozgfynJxkXcTcIUHvGahlF3CWt4+snME5mbhAf8QmDMCeYSXvBZAWsJAHgYq8qWIPG/YBGv85dkq1FjiRZwerYIX5yBOKJhiNVKVOFXBTaeiVV4lsBGEix4tkBnCTa8SKCThAheLOAsIYZXCThJqODVAsYSavhWgdi30cb49Dl2Kc7OxDUqo9pmPoRKolhKlASc4ONwYgmRgDO8SoIt0AleLMES6AwvklgV2AieLVEV2BieJVHb0FjEeUpSdwaJohidSucDVvB0OEJnDG59p9z5gBl83MMa7uwWMzFvq5jDO2xPJxJpY8sN3lMithbd4b0kqLnbDd5FwqC9rqrnjRb20F4/AcCbMlar4A1n4jmuATrEfhFKNMEbSAzRKI1CEgkT+AaJWyid5wGOhCm8QiKfB5IX1SRc4AUS9Uy8IuEKz5DIFnS1ajSdiS7wFQlZNZq86Dj+3eY9d7ggjFqi28c8QadFJ0T8Kj38B0s6mP5rprFUAAAAAElFTkSuQmCC');
    background-repeat: no-repeat;
    background-size: 60% auto;
    background-position: center center;
}

.panel-body .body-subname {
    font-size: 15px;
    height: 20px;
    text-align: center;
    color: #4080ff;
    cursor: pointer;
}

.panel-body .item {
    padding: 5px 85px 5px 75px;
    position: relative;
    color: black;
}

.panel-body .itemFirst {
    padding: 5px 85px 5px 75px;
    position: relative;
}

.panel-body .self-rank {
    padding: 5px 65px 5px 65px;
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    background: #ddd;
}

.panel-body .item .rank,
.panel-body .self-rank .rank {
    position: absolute;
    left: 0;
    display: block;
    line-height: 35px;
    width: 60px;
    font-size: 16px;
    text-align: center;
    color: black;
}

.panel-body .item .rankfirst {
    font-weight: bold;
    color: #ff9955;
    text-shadow: 3px 3px 3px #ff9955;
    position: absolute;
    left: 0;
    display: block;
    line-height: 35px;
    width: 60px;
    font-size: 30px;
    text-align: center;
}

.panel-body .item .namefirst,
.panel-body .self-rank .namefirst {
    font-weight: bold;
    color: #ff9955;
    font-size: 16px;
    line-height: 20px;
    position: relative;
    left: 40px
}

.panel-body .item .avatar,
.panel-body .self-rank .avatar {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    position: absolute;
    left: 65px;
}

.panel-body .item .name,
.panel-body .self-rank .name {
    font-size: 14px;
    line-height: 20px;
    position: relative;
    left: 40px
}

.panel-body .item .play-btn {
    font-size: 16px;
    display: inline-block;
    width: 60px;
    height: 36px;
    border: 1px solid #4080ff;
    color: #4080ff;
    text-align: center;
    line-height: 33px;
    border-radius: 10px;
    position: absolute;
    right: 20px;
    cursor: pointer;
    top: 7px;
}

.panel-body .item .score,
.panel-body .self-rank .score {
    font-size: 14px;
    line-height: 20px;
    position: relative;
    left: 40px
}

#friendsContent .item:nth-child(1) .rank,
#friendsContent .item:nth-child(1) .name,
#friendsContent .item:nth-child(1) .score {
    color: #f97807;
}

#friendsContent .item:nth-child(2) .rank,
#friendsContent .item:nth-child(2) .name,
#friendsContent .item:nth-child(2) .score {
    color: #03b575;
}

#friendsContent .item:nth-child(3) .rank,
#friendsContent .item:nth-child(3) .name,
#friendsContent .item:nth-child(3) .score {
    color: #985807;
}

.panel-foot {
    text-align: center;
    position: absolute;
    left: 0;
    bottom: 80px;
    width: 100%;
}

.panel-foot .foot-btn {
    display: inline-block;
    width: 40%;
    margin: 0 5%;
    text-align: center;
    padding: 8px 0;
    border-radius: 10px;
    font-size: 14px;
    color: #fff;
    background-color: #4080ff;
    cursor: pointer;
    text-shadow: 0 2px 2px #000;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.6);
}

.no-friends {
    text-align: center;
    font-size: 20px;
    padding: 10px 0;
}

.games-container {
    padding: 5px;
    background-color: #4080ff;
    text-align: center;
    margin-top: 5px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow-x: scroll;
}

.games-container img {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #eee;
    margin-right: 10px;
}

.horizontal::after {
    content: "";
    display: table;
    clear: both;
}

.horizontal .panel-head {
    display: inline-block;
}

.horizontal .panel-head .banner {
    width: auto;
}

.horizontal .user-info {
    padding: 0;
    text-align: center;
}

.horizontal .user-info .avatar {
    position: relative;
}

.horizontal .user-info p {
    max-width: 100px;
}

.horizontal .panel-body {
    width: 46%;
    float: left;
}

.horizontal .panel-foot {
    width: 50%;
    float: right;
    position: relative;
    left: auto;
    bottom: auto;
}

.horizontal .games-container {
    position: relative;
    width: 50%;
    float: right;
    border-radius: 10px;
    margin-top: 10px;
}

.switch-tabs {
    width: 80%;
    height: 30px;
    overflow: hidden;
    text-align: top;
    margin: 0 auto;
}

.switch-tabs_item {
    width: 50%;
    height: 30px;
    border-radius: 5px;
    border: 1px solid #4080ff;
    background-color: #fff;
    color: #4080ff;
    margin: 0 auto;
}

.tab-active {
    background-color: #4080ff;
    color: #fff;
}