/* 搜索 */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-btn img {
    width: 28px;
    height: 28px;
}

.search-btn svg {
    width: 28px;
    height: 28px;
    stroke: #000;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-content {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.search-input-container {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 30px;
    padding: 5px 15px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 16px;
}

.close-search-btn {
    cursor: pointer;
}

.close-search-btn img {
    width: 24px;
    height: 24px;
}

.search-results {
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: block;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-size: 16px;
    color: #000;
}

.search-result-title .highlight {
    color: #ff0000;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* 最近游戏 */
#recent_games_section {
    margin-top: 10px;
    margin-bottom: 10px;
}

#recent_games_list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

#recent_games_list a {
    flex: 1;
}

#recent_games_list .recommend {
    height: 60px;
    margin-top: 15px;
    padding: 8px;
}

#recent_games_list .recommend img {
    width: 40px;
    height: 40px;
    top: -15px;
}

#recent_games_list .recommend .title {
    font-size: 12px;
    bottom: 8px;
    left: 8px;
}

#recent_games_list .recommend .play {
    font-size: 12px;
    top: 8px;
    right: 8px;
}

.more-games-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.more-games-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.more-games-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.more-games-title {
    font-size: 18px;
    font-weight: bold;
}

.close-more-games-btn {
    cursor: pointer;
}

.close-more-games-btn img {
    width: 24px;
    height: 24px;
}

.more-games-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.more-game-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.more-game-item:last-child {
    border-bottom: none;
}

.more-game-img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.more-game-img img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.more-game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.more-game-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.more-game-plays {
    font-size: 14px;
    color: #ff9c60;
}

.more-game-plays span {
    color: #999;
}

.no-recent-games {
    text-align: center;
    padding: 20px;
    color: #999;
}