/* Recently Played Games Section */
#recently-played-section {
    margin-bottom: 2rem;
}

.recently-played-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.recently-played-title-box {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    height: 60px;
    /* 让里面包裹的h3 垂直方向居中 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.recently-played-title {
    color: #fff;
    font-size: 0.8215rem;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recently-played-title i {
    color: #28a745;
    font-size: 0.9rem;
}

.recently-played-container {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.recently-played-container::-webkit-scrollbar {
    display: none;
}

.recently-played-item {
    flex-shrink: 0;
    width: 90px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.recently-played-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.recently-played-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.recently-played-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.recently-played-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recently-played-item:hover .recently-played-image img {
    transform: scale(1.1);
}

.recently-played-remove {
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.recently-played-item:hover .recently-played-remove {
    opacity: 1;
}

/* Loading State */
.recently-played-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    color: #888;
    font-size: 0.9rem;
}

/* Empty State */
.recently-played-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recently-played-wrapper {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .recently-played-title-box {
        align-self: flex-start;
    }
    
    .recently-played-container {
        gap: 0.5rem;
    }
    
    .recently-played-item {
        /* width: 80px;
        height: 45px; */
    }
}